Skip to content

IERC20 ​

decimals ​

solidity
function decimals() external view returns (uint8)

FluidVaultT1DeploymentLogic ​

NATIVE_TOKEN ​

solidity
address NATIVE_TOKEN

VAULT_T1_CREATIONCODE_ADDRESS_1 ​

solidity
address VAULT_T1_CREATIONCODE_ADDRESS_1

SSTORE2 pointer for the VaultT1 creation code. Stored externally to reduce factory bytecode (in 2 parts)

VAULT_T1_CREATIONCODE_ADDRESS_2 ​

solidity
address VAULT_T1_CREATIONCODE_ADDRESS_2

LIQUIDITY ​

solidity
address LIQUIDITY

address of liquidity contract

ADMIN_IMPLEMENTATION ​

solidity
address ADMIN_IMPLEMENTATION

address of Admin implementation

SECONDARY_IMPLEMENTATION ​

solidity
address SECONDARY_IMPLEMENTATION

address of Secondary implementation

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 ​

NameTypeDescription
vaultaddressThe address of the newly deployed vault.
vaultIduint256The id of the newly deployed vault.
supplyTokenaddressThe address of the supply token.
borrowTokenaddressThe address of the borrow token.

constructor ​

solidity
constructor(address liquidity_, address vaultAdminImplementation_, address vaultSecondaryImplementation_) public

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 ​

NameTypeDescription
supplyToken_addressThe address of the supply token.
borrowToken_addressThe address of the borrow token.

Return Values ​

NameTypeDescription
vaultCreationBytecode_bytesReturns the bytecode of the new vault to deploy.

vaultT1CreationBytecode ​

solidity
function vaultT1CreationBytecode() public view returns (bytes)

returns the stored VaultT1 creation bytecode