ImmutableState
The immutable state smart contract is abstract and inherited by lendgine. They are separated for readability.
Code
State-changing functions
factory
function factory() external view returns (address);
Returns the address of the factory that deployed this lendgine.
token0
function token0() external view returns (address);
The address of the ERC20 token0.
token1
function token1() external view returns (address);
The address of the ERC20 token1.
token0Scale
function token0Scale() external view returns (uint256);
The scale required to make token0 18 decimals. In extreme cases it can be set differently for more precision.
token1Scale
function token1Scale() external view returns (uint256);
The scale required to make token1 18 decimals. In extreme cases it can be set differently for more precision.
upperBound
function upperBound() external view returns (uint256);
The price at which the underlying liquidity pool is swapped entirely into token0.
Last updated