IERC20 ​
decimals ​
solidity
function decimals() external view returns (uint8)
FluidVaultT4DeploymentLogic ​
NATIVE_TOKEN ​
solidity
address NATIVE_TOKEN
LIQUIDITY ​
solidity
address LIQUIDITY
address of liquidity contract
DEPLOYER ​
solidity
address DEPLOYER
MINI_DEPLOYER ​
solidity
contract MiniDeployer MINI_DEPLOYER
address of MiniDeployer Contract
ADMIN_IMPLEMENTATION ​
solidity
address ADMIN_IMPLEMENTATION
address of Admin implementation
SECONDARY_IMPLEMENTATION ​
solidity
address SECONDARY_IMPLEMENTATION
address of Secondary implementation
VAULT_T4_CREATIONCODE_MAIN_OPERATE ​
solidity
address VAULT_T4_CREATIONCODE_MAIN_OPERATE
VAULT_T4_CREATIONCODE_MAIN_ADDRESS_1 ​
solidity
address VAULT_T4_CREATIONCODE_MAIN_ADDRESS_1
SSTORE2 pointer for the VaultT4 creation code. Stored externally to reduce factory bytecode (in 2 parts)
VAULT_T4_CREATIONCODE_MAIN_ADDRESS_2 ​
solidity
address VAULT_T4_CREATIONCODE_MAIN_ADDRESS_2
ADDRESS_THIS ​
solidity
address ADDRESS_THIS
address of this contract
VaultT4Deployed ​
solidity
event VaultT4Deployed(address vault, uint256 vaultId, address smartCol, address smartDebt)
Emitted when a new vaultT4 is deployed.
Parameters ​
Name | Type | Description |
---|---|---|
vault | address | The address of the newly deployed vault. |
vaultId | uint256 | The id of the newly deployed vault. |
smartCol | address | The address of the dex for which the smart collateral is used. |
smartDebt | address | The address of the dex for which the smart debt is used. |
constructor ​
solidity
constructor(address liquidity_, address vaultFactory_, address deployer_, address vaultAdminImplementation_, address vaultSecondaryImplementation_, address vaultOperateImplementation_, address vaultMainImplementation1_, address vaultMainImplementation2_) public
each vault type has different vaultAdminImplementation but same vaultSecondaryImplementatio
vaultT4 ​
solidity
function vaultT4(address smartCol_, address smartDebt_) external returns (bytes vaultCreationBytecode_)
operateCreationCode ​
solidity
function operateCreationCode() public view returns (bytes)
Retrieves the creation code for the Operate contract
mainCreationCode ​
solidity
function mainCreationCode() public view returns (bytes)
returns the stored DexT1 creation bytecode