FluidDexT1DeploymentLogic ​
Inherits:Error
Constants ​
POOL_T1_CREATIONCODE_ADDRESS_1 ​
SSTORE2 pointers for PoolT1 creation code - stored in two parts for concat
address internal immutable POOL_T1_CREATIONCODE_ADDRESS_1POOL_T1_CREATIONCODE_ADDRESS_2 ​
address internal immutable POOL_T1_CREATIONCODE_ADDRESS_2COL_OPERATIONS_CREATIONCODE_ADDRESS_1 ​
SSTORE2 pointers for col operations creation code
address internal immutable COL_OPERATIONS_CREATIONCODE_ADDRESS_1COL_OPERATIONS_CREATIONCODE_ADDRESS_2 ​
address internal immutable COL_OPERATIONS_CREATIONCODE_ADDRESS_2DEBT_OPERATIONS_CREATIONCODE_ADDRESS_1 ​
SSTORE2 pointers for debt operations creation code
address internal immutable DEBT_OPERATIONS_CREATIONCODE_ADDRESS_1DEBT_OPERATIONS_CREATIONCODE_ADDRESS_2 ​
address internal immutable DEBT_OPERATIONS_CREATIONCODE_ADDRESS_2LIQUIDITY ​
address of liquidity contract
address public immutable LIQUIDITYDEX_FACTORY ​
address of dexfactory contract
address public immutable DEX_FACTORYADMIN_IMPLEMENTATION ​
address of Admin implementation
address public immutable ADMIN_IMPLEMENTATIONSHIFT_IMPLEMENTATION ​
address of Shift implementation
address public immutable SHIFT_IMPLEMENTATIONCONTRACT_DEPLOYER ​
address of Deployer Contract
address public immutable CONTRACT_DEPLOYERMINI_DEPLOYER ​
address of MiniDeployer Contract
MiniDeployer public immutable MINI_DEPLOYERADDRESS_THIS ​
address of this contract
address public immutable ADDRESS_THISFunctions ​
constructor ​
constructor(
address liquidity_,
address dexFactory_,
address contractDeployer_,
address colOperations1_,
address colOperations2_,
address debtOperations1_,
address debtOperations2_,
address mainAddress1_,
address mainAddress2_
) ;dexT1 ​
function dexT1(address token0_, address token1_, uint256 oracleMapping_)
external
returns (bytes memory dexCreationBytecode_);dexT1CreationBytecode ​
returns the stored DexT1 creation bytecode
function dexT1CreationBytecode() public view returns (bytes memory);colOperationsCreationCode ​
Retrieves the creation code for the FluidDexT1OperationsCol contract
function colOperationsCreationCode() public view returns (bytes memory);debtOperationsCreationCode ​
Retrieves the creation code for the FluidDexT1OperationsDebt contract
function debtOperationsCreationCode() public view returns (bytes memory);perfectOperationsCreationCode ​
Retrieves the creation code for the FluidDexT1PerfectOperations contract
function perfectOperationsCreationCode() public pure returns (bytes memory);_calculateLiquidityDexSlots ​
Calculates the liquidity dex slots for the given supply token, borrow token, and dex (dex_).
function _calculateLiquidityDexSlots(IFluidDexT1.ConstantViews memory constants_, address dex_)
private
pure
returns (IFluidDexT1.ConstantViews memory);Parameters
| Name | Type | Description |
|---|---|---|
constants_ | IFluidDexT1.ConstantViews | Constants struct as used in Dex T1 |
dex_ | address | The address of the dex. |
Returns
| Name | Type | Description |
|---|---|---|
<none> | IFluidDexT1.ConstantViews | liquidityDexSlots_ Returns the calculated liquidity dex slots set in the IFluidDexT1.ConstantViews struct. |
Events ​
DexT1Deployed ​
Emitted when a new dexT1 is deployed.
event DexT1Deployed(address indexed dex, uint256 dexId, address indexed supplyToken, address indexed borrowToken);Parameters
| Name | Type | Description |
|---|---|---|
dex | address | The address of the newly deployed dex. |
dexId | uint256 | The id of the newly deployed dex. |
supplyToken | address | The address of the supply token. |
borrowToken | address | The address of the borrow token. |

