Larix
  • Who is Larix
  • Community
  • Roadmap
  • Product Update
  • Monthly Report
    • Larix Monthly Report [Oct]2021
    • Larix Monthly Report [Nov]2021
    • Larix Monthly Report [Dec]2021
    • Larix Monthly Report [Jan ]2022
    • Larix Monthly Report [Feb] 2022
    • Larix Monthly Report [Mar] 2022
    • Larix Monthly Report [April] 2022
    • Larix Monthly Report [May] 2022
  • FAQ
    • General FAQ
    • Raydium LPs FAQ
    • Error Explanation
    • Trouble shooting
    • Liquidation
  • PROTOCOL
    • Mainnet
      • Main Pool
        • Addresses
      • Lending Launchpad
        • Bonfida Pool
        • xSOL Pool
        • LARIX Pool
        • Step Pool
        • Stepn Pool
    • Devnet
  • Larix Guide
    • Step 1: Get Wallet
    • Step 2: Connect Wallet
    • Step 3: Deposit
    • Step 4: Borrow
    • Step 5: Repay
    • Step 6: Withdraw
    • Step 7: Claim rewards
  • Interest Rate Model
  • Mathematics
    • APY
    • Mining
    • Price Feed
    • Obligation Health
  • Function
  • Design and Principle of the Liquidation
  • Access Controls
  • Security
    • Bug Bounty Reward
    • Audit
    • Oracles
  • Tokenomics
    • LARIX
    • Buy LARIX
      • b30LARIX
    • Larix Distribution
    • LARIX Token Distribution Rate Model
  • Risk
    • Risk Framework
    • Asset Risk
    • Liquidity Risk
    • External Audits & Analysis
  • API
    • Instruction
    • Function
    • Query
      • Logo
      • State
      • Reserve
      • Mining
      • Obligation
      • SDK
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. Query

Reserve

pub struct Reserve

  • description: Lending market reserve state

  • variable:

pub struct Reserve {
Version of the struct
pub version: u8,
Last slot when supply and rates updated
pub last_update: LastUpdate,
Lending market address
pub lending_market: Pubkey,
Reserve liquidity
pub liquidity: ReserveLiquidity,
Reserve collateral
pub collateral: ReserveCollateral,
Reserve configuration values
pub config: ReserveConfig,

pub struct ReserveLiquidity

  • description: Reserve liquidity

  • variable:

Reserve liquidity mint address
pub mint_pubkey: Pubkey,
Reserve liquidity mint decimals
pub mint_decimals: u8,
Reserve liquidity supply address
pub supply_pubkey: Pubkey,
Reserve liquidity fee receiver address
pub fee_receiver: Pubkey,
Reserve liquidity oracle account
pub oracle_pubkey: Pubkey,
Reserve liquidity available
pub available_amount: u64,
Reserve liquidity borrowed
pub borrowed_amount_wads: Decimal,
Reserve liquidity cumulative borrow rate
pub cumulative_borrow_rate_wads: Decimal,
Reserve liquidity market price in quote currency
pub market_price: Decimal,

pub struct ReserveLiquidity

  • description: Reserve collateral

  • variable:

/// Reserve collateral mint address
pub mint_pubkey: Pubkey,
/// Reserve collateral mint supply, used for exchange rate
pub mint_total_supply: u64,
/// Reserve collateral supply address
pub supply_pubkey: Pubkey,

PreviousStateNextMining

Last updated 3 years ago

Was this helpful?