Skip to content

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.

solidity
bytes32 internal constant GOVERNANCE_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

EXCHANGE_PRICES_PRECISION ​

solidity
uint256 internal constant EXCHANGE_PRICES_PRECISION = 1e12;

SECONDS_PER_YEAR ​

Ignoring leap years

solidity
uint256 internal constant SECONDS_PER_YEAR = 365 days;

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;

FOUR_DECIMALS ​

solidity
uint256 internal constant FOUR_DECIMALS = 10000;

X8 ​

solidity
uint256 internal constant X8 = 0xff;

X14 ​

solidity
uint256 internal constant X14 = 0x3fff;

X16 ​

solidity
uint256 internal constant X16 = 0xffff;

X18 ​

solidity
uint256 internal constant X18 = 0x3ffff;

X24 ​

solidity
uint256 internal constant X24 = 0xffffff;

X33 ​

solidity
uint256 internal constant X33 = 0x1ffffffff;

X64 ​

solidity
uint256 internal constant X64 = 0xffffffffffffffff;

LIQUIDITY ​

address of the liquidity contract

solidity
IFluidLiquidity public immutable LIQUIDITY;

Functions ​

constructor ​

solidity
constructor(IFluidLiquidity liquidity_);