PowerMaker
  • PowerMaker Document Hub
  • Disclaimer
  • Resources
  • Quick Start
    • FAQ
    • Providing Liquidity
    • Tutorial: Perform a Trade
    • Tutorial: Providing Liquidity
    • Tutorial: Create a Market
  • Concepts
    • Power Perpetuals
      • PPT - Power Perpetual Token
    • Example Use Cases
      • Hedging Uniswap V3
  • Protocol
    • Overview
    • Capped Power Invariant
    • Understanding Returns
    • Security
    • Protocol Participants
    • Smart Contracts
      • Factory
      • Pair
      • ImmutableState
      • JumpRate
      • Lendgine
      • LendgineRouter
      • LiquidityManager
    • Deployed Contracts
  • Discord
  • Twitter
  • Github
Powered by GitBook
On this page
  • Code
  • State-changing functions
  • factory
  • token0
  • token1
  • token0Scale
  • token1Scale
  • upperBound
  1. Protocol
  2. Smart Contracts

ImmutableState

The immutable state smart contract is abstract and inherited by lendgine. They are separated for readability.

PreviousPairNextJumpRate

Last updated 2 years ago

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.

ImmutableState.sol