Skip to main content
The LendingMarket account is the central configuration account for a Kamino lending market. It defines global parameters, emergency controls, liquidation settings, elevation groups, and fee structures.

LendingMarket

version
u64
Program version number used to track protocol upgrades
bump_seed
u64
PDA bump seed for the lending market account
lending_market_owner
Pubkey
Authority that can update lending market configuration
lending_market_owner_cached
Pubkey
Cached copy of the lending market owner for validation
quote_currency
[u8; 32]
Quote currency identifier (e.g., “USD”) used for pricing across the market
referral_fee_bps
u16
Referral fee in basis points (1 bps = 0.01%)
emergency_mode
u8
Boolean flag (0 or 1) indicating if the market is in emergency mode, which disables most operations
autodeleverage_enabled
u8
Boolean flag enabling automatic deleveraging of unhealthy positions
borrow_disabled
u8
Boolean flag that disables all borrowing operations when set
price_refresh_trigger_to_max_age_pct
u8
Percentage threshold for triggering price refresh relative to max age
liquidation_max_debt_close_factor_pct
u8
Maximum percentage of debt that can be closed in a single liquidation (e.g., 50 = 50%)
insolvency_risk_unhealthy_ltv_pct
u8
LTV percentage threshold at which a position is considered at risk of insolvency
min_full_liquidation_value_threshold
u64
Minimum USD value below which a position can be fully liquidated regardless of close factor
max_liquidatable_debt_market_value_at_once
u64
Maximum USD value of debt that can be liquidated in a single transaction
global_allowed_borrow_value
u64
Global limit on total borrow value across all reserves in the market (in USD)
emergency_council
Pubkey
Authority that can trigger emergency mode and other emergency actions
elevation_groups
ElevationGroup[32]
Array of elevation group configurations for isolated lending pools
min_net_value_in_obligation_sf
u128
Minimum net value required in an obligation (scaled fraction format)
min_value_skip_liquidation_ltv_checks
u64
Minimum obligation value below which LTV checks are skipped during liquidation
name
[u8; 32]
Human-readable name for the lending market
min_value_skip_liquidation_bf_checks
u64
Minimum obligation value below which borrow factor checks are skipped during liquidation
individual_autodeleverage_margin_call_period_secs
u64
Time period in seconds for individual autodeleverage margin calls
min_initial_deposit_amount
u64
Minimum amount required for initial deposit into a reserve
obligation_order_execution_enabled
u8
Boolean flag enabling execution of obligation limit orders
immutable
u8
Boolean flag preventing any further configuration changes when set
obligation_order_creation_enabled
u8
Boolean flag enabling creation of new obligation limit orders
price_triggered_liquidation_disabled
u8
Boolean flag disabling liquidations triggered by price movements
mature_reserve_debt_liquidation_enabled
u8
Boolean flag enabling liquidation of mature debt reserves
obligation_borrow_debt_term_liquidation_enabled
u8
Boolean flag enabling liquidation based on debt term expiration
borrow_order_creation_enabled
u8
Boolean flag enabling creation of borrow limit orders
borrow_order_execution_enabled
u8
Boolean flag enabling execution of borrow limit orders
proposer_authority
Pubkey
Authority that can propose configuration changes
min_borrow_order_fill_value
u64
Minimum USD value required to fill a borrow order
withdraw_ticket_issuance_enabled
u8
Boolean flag enabling issuance of withdraw tickets for queued withdrawals
withdraw_ticket_redemption_enabled
u8
Boolean flag enabling redemption of withdraw tickets
min_withdraw_queued_liquidity_value
u64
Minimum USD value of liquidity required to process queued withdrawals

Account Size

The LendingMarket account has a fixed size defined by LENDING_MARKET_SIZE constant in the program.
  • ElevationGroup: Configuration for isolated lending pools with custom risk parameters
  • InitLendingMarketParams: Parameters used to initialize a new lending market

Build docs developers (and LLMs) love