Reserve

pub struct Reserve

  • description: Lending market reserve state
  • variable:
1
pub struct Reserve {
2
Version of the struct
3
pub version: u8,
4
Last slot when supply and rates updated
5
pub last_update: LastUpdate,
6
Lending market address
7
pub lending_market: Pubkey,
8
Reserve liquidity
9
pub liquidity: ReserveLiquidity,
10
Reserve collateral
11
pub collateral: ReserveCollateral,
12
Reserve configuration values
13
pub config: ReserveConfig,
Copied!

pub struct ReserveLiquidity

  • description: Reserve liquidity
  • variable:
1
Reserve liquidity mint address
2
pub mint_pubkey: Pubkey,
3
Reserve liquidity mint decimals
4
pub mint_decimals: u8,
5
Reserve liquidity supply address
6
pub supply_pubkey: Pubkey,
7
Reserve liquidity fee receiver address
8
pub fee_receiver: Pubkey,
9
Reserve liquidity oracle account
10
pub oracle_pubkey: Pubkey,
11
Reserve liquidity available
12
pub available_amount: u64,
13
Reserve liquidity borrowed
14
pub borrowed_amount_wads: Decimal,
15
Reserve liquidity cumulative borrow rate
16
pub cumulative_borrow_rate_wads: Decimal,
17
Reserve liquidity market price in quote currency
18
pub market_price: Decimal,
Copied!

pub struct ReserveLiquidity

  • description: Reserve collateral
  • variable:
1
/// Reserve collateral mint address
2
pub mint_pubkey: Pubkey,
3
/// Reserve collateral mint supply, used for exchange rate
4
pub mint_total_supply: u64,
5
/// Reserve collateral supply address
6
pub supply_pubkey: Pubkey,
Copied!
Last modified 11mo ago
Copy link
Contents