Skip to content

IERC20 ​

decimals ​

solidity
function decimals() external view returns (uint8)

FluidDexT1DeploymentLogic ​

NATIVE_TOKEN ​

solidity
address NATIVE_TOKEN

POOL_T1_CREATIONCODE_ADDRESS_1 ​

solidity
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 ​

solidity
address POOL_T1_CREATIONCODE_ADDRESS_2

COL_OPERATIONS_CREATIONCODE_ADDRESS ​

solidity
address COL_OPERATIONS_CREATIONCODE_ADDRESS

SSTORE2 pointers for the creation code of various operations contracts

DEBT_OPERATIONS_CREATIONCODE_ADDRESS ​

solidity
address DEBT_OPERATIONS_CREATIONCODE_ADDRESS

PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_1 ​

solidity
address PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_1

PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_2 ​

solidity
address PERFECT_OPERATIONS_AND_SWAP_OUT_CREATIONCODE_ADDRESS_2

LIQUIDITY ​

solidity
address LIQUIDITY

address of liquidity contract

DEX_FACTORY ​

solidity
address DEX_FACTORY

address of dexfactory contract

ADMIN_IMPLEMENTATION ​

solidity
address ADMIN_IMPLEMENTATION

address of Admin implementation

SHIFT_IMPLEMENTATION ​

solidity
address SHIFT_IMPLEMENTATION

address of Shift implementation

CONTRACT_DEPLOYER ​

solidity
address CONTRACT_DEPLOYER

address of Deployer Contract

MINI_DEPLOYER ​

solidity
contract MiniDeployer MINI_DEPLOYER

address of MiniDeployer Contract

ADDRESS_THIS ​

solidity
address ADDRESS_THIS

address of this contract

DexT1Deployed ​

solidity
event DexT1Deployed(address dex, uint256 dexId, address supplyToken, address borrowToken)

Emitted when a new dexT1 is deployed.

Parameters ​

NameTypeDescription
dexaddressThe address of the newly deployed dex.
dexIduint256The id of the newly deployed dex.
supplyTokenaddressThe address of the supply token.
borrowTokenaddressThe address of the borrow token.

_deploy ​

solidity
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 ​

NameTypeDescription
bytecode_bytesThe bytecode of the contract to be deployed.

Return Values ​

NameTypeDescription
address_addressReturns the address of the deployed contract.

constructor ​

solidity
constructor(address liquidity_, address dexFactory_, address contractDeployer_, address colOperations_, address debtOperations_, address perfectOperationsAndSwapOut1_, address perfectOperationsAndSwapOut2_, address mainAddress1_, address mainAddress2_) public

dexT1 ​

solidity
function dexT1(address token0_, address token1_, uint256 oracleMapping_) external returns (bytes dexCreationBytecode_)

dexT1CreationBytecode ​

solidity
function dexT1CreationBytecode() public view returns (bytes)

returns the stored DexT1 creation bytecode

colOperationsCreationCode ​

solidity
function colOperationsCreationCode() public view returns (bytes)

Retrieves the creation code for the FluidDexT1OperationsCol contract

debtOperationsCreationCode ​

solidity
function debtOperationsCreationCode() public view returns (bytes)

Retrieves the creation code for the FluidDexT1OperationsDebt contract

perfectOperationsCreationCode ​

solidity
function perfectOperationsCreationCode() public view returns (bytes)

Retrieves the creation code for the FluidDexT1PerfectOperations contract