IERC20 ​
decimals ​
solidity
function decimals() external view returns (uint8)
FluidVaultT2DeploymentLogic ​
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_T2_CREATIONCODE_MAIN_OPERATE ​
solidity
address VAULT_T2_CREATIONCODE_MAIN_OPERATE
VAULT_T2_CREATIONCODE_MAIN ​
solidity
address VAULT_T2_CREATIONCODE_MAIN
ADDRESS_THIS ​
solidity
address ADDRESS_THIS
address of this contract
VaultT2Deployed ​
solidity
event VaultT2Deployed(address vault, uint256 vaultId, address smartCol, address borrowToken)
Emitted when a new vaultT2 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. |
borrowToken | address | The address of the borrow token. |
constructor ​
solidity
constructor(address liquidity_, address vaultFactory_, address deployer_, address vaultAdminImplementation_, address vaultSecondaryImplementation_, address vaultOperateImplementation_, address vaultMainImplementation_) public
each vault type has different vaultAdminImplementation but same vaultSecondaryImplementatio
vaultT2 ​
solidity
function vaultT2(address smartCol_, address borrowToken_) 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)
Retrieves the creation code for the main contract