IERC20 ​
decimals ​
solidity
function decimals() external view returns (uint8)
FluidVaultT1DeploymentLogic_Not_For_Prod ​
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_T1_CREATIONCODE_MAIN_OPERATE ​
solidity
address VAULT_T1_CREATIONCODE_MAIN_OPERATE
VAULT_T1_CREATIONCODE_MAIN ​
solidity
address VAULT_T1_CREATIONCODE_MAIN
ADDRESS_THIS ​
solidity
address ADDRESS_THIS
address of this contract
VaultT1Deployed ​
solidity
event VaultT1Deployed(address vault, uint256 vaultId, address supplyToken, address borrowToken)
Emitted when a new vaultT1 is deployed.
Parameters ​
Name | Type | Description |
---|---|---|
vault | address | The address of the newly deployed vault. |
vaultId | uint256 | The id of the newly deployed vault. |
supplyToken | address | The address of the supply token. |
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
vaultT1 ​
solidity
function vaultT1(address supplyToken_, address borrowToken_) external returns (bytes vaultCreationBytecode_)
Computes vaultT1 bytecode for the given supply token (supplyToken_
) and borrow token (borrowToken_
). This will be called by the VaultFactory via .delegateCall
Parameters ​
Name | Type | Description |
---|---|---|
supplyToken_ | address | The address of the supply token. |
borrowToken_ | address | The address of the borrow token. |
Return Values ​
Name | Type | Description |
---|---|---|
vaultCreationBytecode_ | bytes | Returns the bytecode of the new vault to deploy. |