Variables

Git Source

State Variables

GOVERNANCE_SLOT

Storage slot with the admin of the contract. Logic from "proxy.sol". This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is validated in the constructor.

bytes32 internal constant GOVERNANCE_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

EXCHANGE_PRICES_PRECISION

uint256 internal constant EXCHANGE_PRICES_PRECISION = 1e12;

SECONDS_PER_YEAR

Ignoring leap years

uint256 internal constant SECONDS_PER_YEAR = 365 days;

SMALL_COEFFICIENT_SIZE

uint256 internal constant SMALL_COEFFICIENT_SIZE = 10;

DEFAULT_COEFFICIENT_SIZE

uint256 internal constant DEFAULT_COEFFICIENT_SIZE = 56;

DEFAULT_EXPONENT_SIZE

uint256 internal constant DEFAULT_EXPONENT_SIZE = 8;

DEFAULT_EXPONENT_MASK

uint256 internal constant DEFAULT_EXPONENT_MASK = 0xFF;

FOUR_DECIMALS

uint256 internal constant FOUR_DECIMALS = 10000;

X8

uint256 internal constant X8 = 0xff;

X14

uint256 internal constant X14 = 0x3fff;

X16

uint256 internal constant X16 = 0xffff;

X18

uint256 internal constant X18 = 0x3ffff;

X24

uint256 internal constant X24 = 0xffffff;

X33

uint256 internal constant X33 = 0x1ffffffff;

X64

uint256 internal constant X64 = 0xffffffffffffffff;

LIQUIDITY

address of the liquidity contract

IFluidLiquidity public immutable LIQUIDITY;

Functions

constructor

constructor(IFluidLiquidity liquidity_);