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