Skip to content

TokenInterface ​

decimals ​

solidity
function decimals() external view returns (uint8)

ConstantVariables ​

NATIVE_TOKEN ​

solidity
address NATIVE_TOKEN

SUPPLY_TOKEN ​

solidity
address SUPPLY_TOKEN

collateral token address

BORROW_TOKEN ​

solidity
address BORROW_TOKEN

borrow token address

SUPPLY_DECIMALS ​

solidity
uint8 SUPPLY_DECIMALS

Token decimals. For example wETH is 18 decimals

BORROW_DECIMALS ​

solidity
uint8 BORROW_DECIMALS

Token decimals. For example USDC is 6 decimals

ADMIN_IMPLEMENTATION ​

solidity
address ADMIN_IMPLEMENTATION

VaultT1 AdminModule implemenation address

SECONDARY_IMPLEMENTATION ​

solidity
address SECONDARY_IMPLEMENTATION

VaultT1 Secondary implemenation (main2.sol) address

LIQUIDITY ​

solidity
contract IFluidLiquidity LIQUIDITY

liquidity proxy contract address

VAULT_FACTORY ​

solidity
contract IFluidVaultFactory VAULT_FACTORY

vault factory contract address

VAULT_ID ​

solidity
uint256 VAULT_ID

X8 ​

solidity
uint256 X8

X10 ​

solidity
uint256 X10

X16 ​

solidity
uint256 X16

X19 ​

solidity
uint256 X19

X20 ​

solidity
uint256 X20

X24 ​

solidity
uint256 X24

X25 ​

solidity
uint256 X25

X30 ​

solidity
uint256 X30

X35 ​

solidity
uint256 X35

X50 ​

solidity
uint256 X50

X64 ​

solidity
uint256 X64

X96 ​

solidity
uint256 X96

X128 ​

solidity
uint256 X128

EXCHANGE_PRICES_PRECISION ​

solidity
uint256 EXCHANGE_PRICES_PRECISION

LIQUIDITY_SUPPLY_EXCHANGE_PRICE_SLOT ​

solidity
bytes32 LIQUIDITY_SUPPLY_EXCHANGE_PRICE_SLOT

slot ids in Liquidity contract. Helps in low gas fetch from liquidity contract by skipping delegate call

LIQUIDITY_BORROW_EXCHANGE_PRICE_SLOT ​

solidity
bytes32 LIQUIDITY_BORROW_EXCHANGE_PRICE_SLOT

LIQUIDITY_USER_SUPPLY_SLOT ​

solidity
bytes32 LIQUIDITY_USER_SUPPLY_SLOT

LIQUIDITY_USER_BORROW_SLOT ​

solidity
bytes32 LIQUIDITY_USER_BORROW_SLOT

constantsView ​

solidity
function constantsView() external view returns (struct Structs.ConstantViews constantsView_)

returns all Vault constants

constructor ​

solidity
constructor(struct Structs.ConstantViews constants_) public