IERC20 ​
decimals ​
function decimals() external view returns (uint8)
FluidDexT1DeploymentLogic ​
NATIVE_TOKEN ​
address NATIVE_TOKEN
POOL_T1_CREATIONCODE_ADDRESS_1 ​
address POOL_T1_CREATIONCODE_ADDRESS_1
SSTORE2 pointer for the PoolT1 creation code. Stored externally to reduce factory bytecode (in 2 parts)
POOL_T1_CREATIONCODE_ADDRESS_2 ​
address POOL_T1_CREATIONCODE_ADDRESS_2
COL_OPERATIONS_CREATIONCODE_ADDRESS ​
address COL_OPERATIONS_CREATIONCODE_ADDRESS
SSTORE2 pointers for the creation code of various operations contracts
DEBT_OPERATIONS_CREATIONCODE_ADDRESS ​
address DEBT_OPERATIONS_CREATIONCODE_ADDRESS
PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_1 ​
address PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_1
PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_2 ​
address PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_2
LIQUIDITY ​
address LIQUIDITY
address of liquidity contract
DEX_FACTORY ​
address DEX_FACTORY
address of dexfactory contract
ADMIN_IMPLEMENTATION ​
address ADMIN_IMPLEMENTATION
address of Admin implementation
SHIFT_IMPLEMENTATION ​
address SHIFT_IMPLEMENTATION
address of Shift implementation
CONTRACT_DEPLOYER ​
address CONTRACT_DEPLOYER
address of Deployer Contract
MINI_DEPLOYER ​
contract MiniDeployer MINI_DEPLOYER
address of MiniDeployer Contract
ADDRESS_THIS ​
address ADDRESS_THIS
address of this contract
DexT1Deployed ​
event DexT1Deployed(address dex, uint256 dexId, address supplyToken, address borrowToken)
Emitted when a new dexT1 is deployed.
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. |
_deploy ​
function _deploy(bytes bytecode_) internal returns (address address_)
_Deploys a contract using the CREATE opcode with the provided bytecode (bytecode_
). This is an internal function, meant to be used within the contract to facilitate the deployment of other contracts._
Parameters ​
Name | Type | Description |
---|---|---|
bytecode_ | bytes | The bytecode of the contract to be deployed. |
Return Values ​
Name | Type | Description |
---|---|---|
address_ | address | Returns the address of the deployed contract. |
constructor ​
constructor(address liquidity_, address dexFactory_, address contractDeployer_, address colOperations_, address debtOperations_, address perfectOperationsAndSwapOut1_, address perfectOperationsAndSwapOut2_, address mainAddress1_, address mainAddress2_) public
dexT1 ​
function dexT1(address token0_, address token1_, uint256 oracleMapping_) external returns (bytes dexCreationBytecode_)
dexT1CreationBytecode ​
function dexT1CreationBytecode() public view returns (bytes)
returns the stored DexT1 creation bytecode
colOperationsCreationCode ​
function colOperationsCreationCode() public view returns (bytes)
Retrieves the creation code for the FluidDexT1OperationsCol contract
debtOperationsCreationCode ​
function debtOperationsCreationCode() public view returns (bytes)
Retrieves the creation code for the FluidDexT1OperationsDebt contract
perfectOperationsCreationCode ​
function perfectOperationsCreationCode() public view returns (bytes)
Retrieves the creation code for the FluidDexT1PerfectOperations contract