Constants ​
State Variables ​
RESERVE_CONTRACT ​
solidity
IFluidReserveContract public immutable RESERVE_CONTRACT;
LIQUIDITY ​
solidity
IFluidLiquidity public immutable LIQUIDITY;
SUPPLY_TOKEN ​
supply token at Liquidity which borrow rate is based on
solidity
address public immutable SUPPLY_TOKEN;
BORROW_TOKEN ​
borrow token at Liquidity for which the borrow rate is managed
solidity
address public immutable BORROW_TOKEN;
RATE_BUFFER_KINK1 ​
buffer at kink1 for the rate. borrow rate = supply rate + buffer. In percent (100 = 1%, 1 = 0.01%)
solidity
int256 public immutable RATE_BUFFER_KINK1;
RATE_BUFFER_KINK2 ​
buffer at kink2 for the rate. borrow rate = supply rate + buffer. In percent (100 = 1%, 1 = 0.01%)
only used if CURRENT borrow rate mode at Liquidity is V2 (with 2 kinks).
solidity
int256 public immutable RATE_BUFFER_KINK2;
MIN_UPDATE_DIFF ​
minimum percent difference to trigger an update. In percent (100 = 1%, 1 = 0.01%)
solidity
uint256 public immutable MIN_UPDATE_DIFF;
_LIQUDITY_SUPPLY_TOTAL_AMOUNTS_SLOT ​
solidity
bytes32 internal immutable _LIQUDITY_SUPPLY_TOTAL_AMOUNTS_SLOT;
_LIQUDITY_SUPPLY_EXCHANGE_PRICES_AND_CONFIG_SLOT ​
solidity
bytes32 internal immutable _LIQUDITY_SUPPLY_EXCHANGE_PRICES_AND_CONFIG_SLOT;
_LIQUDITY_BORROW_RATE_DATA_SLOT ​
solidity
bytes32 internal immutable _LIQUDITY_BORROW_RATE_DATA_SLOT;
EXCHANGE_PRICES_PRECISION ​
solidity
uint256 internal constant EXCHANGE_PRICES_PRECISION = 1e12;
DEFAULT_EXPONENT_SIZE ​
solidity
uint256 internal constant DEFAULT_EXPONENT_SIZE = 8;
DEFAULT_EXPONENT_MASK ​
solidity
uint256 internal constant DEFAULT_EXPONENT_MASK = 0xff;
X14 ​
solidity
uint256 internal constant X14 = 0x3fff;
X16 ​
solidity
uint256 internal constant X16 = 0xffff;
X64 ​
solidity
uint256 internal constant X64 = 0xffffffffffffffff;
FOUR_DECIMALS ​
solidity
uint256 internal constant FOUR_DECIMALS = 10000;