ConstantVariables ​
Inherits:StorageRead, Structs
State Variables ​
NATIVE_TOKEN ​
| | Constant Variables | |__________________________________
solidity
address internal constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
SUPPLY_TOKEN ​
collateral token address
solidity
address internal immutable SUPPLY_TOKEN;
BORROW_TOKEN ​
borrow token address
solidity
address internal immutable BORROW_TOKEN;
SUPPLY_DECIMALS ​
Token decimals. For example wETH is 18 decimals
solidity
uint8 internal immutable SUPPLY_DECIMALS;
BORROW_DECIMALS ​
Token decimals. For example USDC is 6 decimals
solidity
uint8 internal immutable BORROW_DECIMALS;
ADMIN_IMPLEMENTATION ​
VaultT1 AdminModule implemenation address
solidity
address internal immutable ADMIN_IMPLEMENTATION;
SECONDARY_IMPLEMENTATION ​
VaultT1 Secondary implemenation (main2.sol) address
solidity
address internal immutable SECONDARY_IMPLEMENTATION;
LIQUIDITY ​
liquidity proxy contract address
solidity
IFluidLiquidity public immutable LIQUIDITY;
VAULT_FACTORY ​
vault factory contract address
solidity
IFluidVaultFactory public immutable VAULT_FACTORY;
VAULT_ID ​
solidity
uint256 public immutable VAULT_ID;
X8 ​
solidity
uint256 internal constant X8 = 0xff;
X10 ​
solidity
uint256 internal constant X10 = 0x3ff;
X16 ​
solidity
uint256 internal constant X16 = 0xffff;
X19 ​
solidity
uint256 internal constant X19 = 0x7ffff;
X20 ​
solidity
uint256 internal constant X20 = 0xfffff;
X24 ​
solidity
uint256 internal constant X24 = 0xffffff;
X25 ​
solidity
uint256 internal constant X25 = 0x1ffffff;
X30 ​
solidity
uint256 internal constant X30 = 0x3fffffff;
X35 ​
solidity
uint256 internal constant X35 = 0x7ffffffff;
X50 ​
solidity
uint256 internal constant X50 = 0x3ffffffffffff;
X64 ​
solidity
uint256 internal constant X64 = 0xffffffffffffffff;
X96 ​
solidity
uint256 internal constant X96 = 0xffffffffffffffffffffffff;
X128 ​
solidity
uint256 internal constant X128 = 0xffffffffffffffffffffffffffffffff;
EXCHANGE_PRICES_PRECISION ​
solidity
uint256 internal constant EXCHANGE_PRICES_PRECISION = 1e12;
LIQUIDITY_SUPPLY_EXCHANGE_PRICE_SLOT ​
slot ids in Liquidity contract. Helps in low gas fetch from liquidity contract by skipping delegate call
solidity
bytes32 internal immutable LIQUIDITY_SUPPLY_EXCHANGE_PRICE_SLOT;
LIQUIDITY_BORROW_EXCHANGE_PRICE_SLOT ​
solidity
bytes32 internal immutable LIQUIDITY_BORROW_EXCHANGE_PRICE_SLOT;
LIQUIDITY_USER_SUPPLY_SLOT ​
solidity
bytes32 internal immutable LIQUIDITY_USER_SUPPLY_SLOT;
LIQUIDITY_USER_BORROW_SLOT ​
solidity
bytes32 internal immutable LIQUIDITY_USER_BORROW_SLOT;
Functions ​
constantsView ​
returns all Vault constants
solidity
function constantsView() external view returns (ConstantViews memory constantsView_);
constructor ​
solidity
constructor(ConstantViews memory constants_);