Skip to content

ConstantVariables ​

Git Source

Inherits:StorageRead

State Variables ​

TEAM_MULTISIG ​

solidity
address internal constant TEAM_MULTISIG = 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e;

NATIVE_TOKEN ​

solidity
address internal constant NATIVE_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;

NATIVE_TOKEN_DECIMALS ​

solidity
uint256 internal constant NATIVE_TOKEN_DECIMALS = 18;

ADDRESS_DEAD ​

solidity
address internal constant ADDRESS_DEAD = 0x000000000000000000000000000000000000dEaD;

TOKENS_DECIMALS_PRECISION ​

solidity
uint256 internal constant TOKENS_DECIMALS_PRECISION = 12;

TOKENS_DECIMALS ​

solidity
uint256 internal constant TOKENS_DECIMALS = 1e12;

SMALL_COEFFICIENT_SIZE ​

solidity
uint256 internal constant SMALL_COEFFICIENT_SIZE = 10;

DEFAULT_COEFFICIENT_SIZE ​

solidity
uint256 internal constant DEFAULT_COEFFICIENT_SIZE = 56;

DEFAULT_EXPONENT_SIZE ​

solidity
uint256 internal constant DEFAULT_EXPONENT_SIZE = 8;

DEFAULT_EXPONENT_MASK ​

solidity
uint256 internal constant DEFAULT_EXPONENT_MASK = 0xFF;

X2 ​

solidity
uint256 internal constant X2 = 0x3;

X3 ​

solidity
uint256 internal constant X3 = 0x7;

X5 ​

solidity
uint256 internal constant X5 = 0x1f;

X7 ​

solidity
uint256 internal constant X7 = 0x7f;

X8 ​

solidity
uint256 internal constant X8 = 0xff;

X9 ​

solidity
uint256 internal constant X9 = 0x1ff;

X10 ​

solidity
uint256 internal constant X10 = 0x3ff;

X11 ​

solidity
uint256 internal constant X11 = 0x7ff;

X14 ​

solidity
uint256 internal constant X14 = 0x3fff;

X16 ​

solidity
uint256 internal constant X16 = 0xffff;

X17 ​

solidity
uint256 internal constant X17 = 0x1ffff;

X18 ​

solidity
uint256 internal constant X18 = 0x3ffff;

X20 ​

solidity
uint256 internal constant X20 = 0xfffff;

X22 ​

solidity
uint256 internal constant X22 = 0x3fffff;

X23 ​

solidity
uint256 internal constant X23 = 0x7fffff;

X24 ​

solidity
uint256 internal constant X24 = 0xffffff;

X28 ​

solidity
uint256 internal constant X28 = 0xfffffff;

X30 ​

solidity
uint256 internal constant X30 = 0x3fffffff;

X32 ​

solidity
uint256 internal constant X32 = 0xffffffff;

X33 ​

solidity
uint256 internal constant X33 = 0x1ffffffff;

X40 ​

solidity
uint256 internal constant X40 = 0xffffffffff;

X64 ​

solidity
uint256 internal constant X64 = 0xffffffffffffffff;

X96 ​

solidity
uint256 internal constant X96 = 0xffffffffffffffffffffffff;

X128 ​

solidity
uint256 internal constant X128 = 0xffffffffffffffffffffffffffffffff;

TWO_DECIMALS ​

solidity
uint256 internal constant TWO_DECIMALS = 1e2;

THREE_DECIMALS ​

solidity
uint256 internal constant THREE_DECIMALS = 1e3;

FOUR_DECIMALS ​

solidity
uint256 internal constant FOUR_DECIMALS = 1e4;

FIVE_DECIMALS ​

solidity
uint256 internal constant FIVE_DECIMALS = 1e5;

SIX_DECIMALS ​

solidity
uint256 internal constant SIX_DECIMALS = 1e6;

EIGHT_DECIMALS ​

solidity
uint256 internal constant EIGHT_DECIMALS = 1e8;

NINE_DECIMALS ​

solidity
uint256 internal constant NINE_DECIMALS = 1e9;

PRICE_PRECISION ​

solidity
uint256 internal constant PRICE_PRECISION = 1e27;

ORACLE_PRECISION ​

solidity
uint256 internal constant ORACLE_PRECISION = 1e18;

ORACLE_LIMIT ​

solidity
uint256 internal constant ORACLE_LIMIT = 5 * 1e16;

MINIMUM_LIQUIDITY_SWAP ​

after swap token0 reserves should not be less than token1InToken0 / MINIMUM_LIQUIDITY_SWAP after swap token1 reserves should not be less than token0InToken1 / MINIMUM_LIQUIDITY_SWAP

solidity
uint256 internal constant MINIMUM_LIQUIDITY_SWAP = 1e4;

MINIMUM_LIQUIDITY_USER_OPERATIONS ​

after user operations (deposit, withdraw, borrow, payback) token0 reserves should not be less than token1InToken0 / MINIMUM_LIQUIDITY_USER_OPERATIONS after user operations (deposit, withdraw, borrow, payback) token1 reserves should not be less than token0InToken0 / MINIMUM_LIQUIDITY_USER_OPERATIONS

solidity
uint256 internal constant MINIMUM_LIQUIDITY_USER_OPERATIONS = 1e6;

SKIP_TRANSFERS ​

To skip transfers in liquidity layer if token in & out is same and liquidity layer is on the winning side

solidity
bytes32 internal constant SKIP_TRANSFERS = keccak256(bytes("SKIP_TRANSFERS"));

Functions ​

_decimals ​

solidity
function _decimals(address token_) internal view returns (uint256);