ConstantVariables

Git Source

Inherits:StorageRead, Structs

State Variables

NATIVE_TOKEN

| | Constant Variables | |__________________________________

address internal constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

SUPPLY_TOKEN

collateral token address

address internal immutable SUPPLY_TOKEN;

BORROW_TOKEN

borrow token address

address internal immutable BORROW_TOKEN;

SUPPLY_DECIMALS

Token decimals. For example wETH is 18 decimals

uint8 internal immutable SUPPLY_DECIMALS;

BORROW_DECIMALS

Token decimals. For example USDC is 6 decimals

uint8 internal immutable BORROW_DECIMALS;

ADMIN_IMPLEMENTATION

VaultT1 AdminModule implemenation address

address internal immutable ADMIN_IMPLEMENTATION;

SECONDARY_IMPLEMENTATION

VaultT1 Secondary implemenation (main2.sol) address

address internal immutable SECONDARY_IMPLEMENTATION;

LIQUIDITY

liquidity proxy contract address

IFluidLiquidity public immutable LIQUIDITY;

VAULT_FACTORY

vault factory contract address

IFluidVaultFactory public immutable VAULT_FACTORY;

VAULT_ID

uint256 public immutable VAULT_ID;

X8

uint256 internal constant X8 = 0xff;

X10

uint256 internal constant X10 = 0x3ff;

X16

uint256 internal constant X16 = 0xffff;

X19

uint256 internal constant X19 = 0x7ffff;

X20

uint256 internal constant X20 = 0xfffff;

X24

uint256 internal constant X24 = 0xffffff;

X25

uint256 internal constant X25 = 0x1ffffff;

X30

uint256 internal constant X30 = 0x3fffffff;

X35

uint256 internal constant X35 = 0x7ffffffff;

X50

uint256 internal constant X50 = 0x3ffffffffffff;

X64

uint256 internal constant X64 = 0xffffffffffffffff;

X96

uint256 internal constant X96 = 0xffffffffffffffffffffffff;

X128

uint256 internal constant X128 = 0xffffffffffffffffffffffffffffffff;

EXCHANGE_PRICES_PRECISION

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

bytes32 internal immutable LIQUIDITY_SUPPLY_EXCHANGE_PRICE_SLOT;

LIQUIDITY_BORROW_EXCHANGE_PRICE_SLOT

bytes32 internal immutable LIQUIDITY_BORROW_EXCHANGE_PRICE_SLOT;

LIQUIDITY_USER_SUPPLY_SLOT

bytes32 internal immutable LIQUIDITY_USER_SUPPLY_SLOT;

LIQUIDITY_USER_BORROW_SLOT

bytes32 internal immutable LIQUIDITY_USER_BORROW_SLOT;

Functions

constantsView

returns all Vault constants

function constantsView() external view returns (ConstantViews memory constantsView_);

constructor

constructor(ConstantViews memory constants_);