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
Program version number used to track protocol upgrades
PDA bump seed for the lending market account
Authority that can update lending market configuration
Cached copy of the lending market owner for validation
Quote currency identifier (e.g., “USD”) used for pricing across the market
Referral fee in basis points (1 bps = 0.01%)
Boolean flag (0 or 1) indicating if the market is in emergency mode, which disables most operations
Boolean flag enabling automatic deleveraging of unhealthy positions
Boolean flag that disables all borrowing operations when set
Percentage threshold for triggering price refresh relative to max age
Maximum percentage of debt that can be closed in a single liquidation (e.g., 50 = 50%)
LTV percentage threshold at which a position is considered at risk of insolvency
Minimum USD value below which a position can be fully liquidated regardless of close factor
Maximum USD value of debt that can be liquidated in a single transaction
Global limit on total borrow value across all reserves in the market (in USD)
Authority that can trigger emergency mode and other emergency actions
Array of elevation group configurations for isolated lending pools
Minimum net value required in an obligation (scaled fraction format)
Minimum obligation value below which LTV checks are skipped during liquidation
Human-readable name for the lending market
Minimum obligation value below which borrow factor checks are skipped during liquidation
Time period in seconds for individual autodeleverage margin calls
Minimum amount required for initial deposit into a reserve
Boolean flag enabling execution of obligation limit orders
Boolean flag preventing any further configuration changes when set
Boolean flag enabling creation of new obligation limit orders
Boolean flag disabling liquidations triggered by price movements
Boolean flag enabling liquidation of mature debt reserves
Boolean flag enabling liquidation based on debt term expiration
Boolean flag enabling creation of borrow limit orders
Boolean flag enabling execution of borrow limit orders
Authority that can propose configuration changes
Minimum USD value required to fill a borrow order
Boolean flag enabling issuance of withdraw tickets for queued withdrawals
Boolean flag enabling redemption of withdraw tickets
Minimum USD value of liquidity required to process queued withdrawals
Account Size
TheLendingMarket account has a fixed size defined by LENDING_MARKET_SIZE constant in the program.
Related Types
- ElevationGroup: Configuration for isolated lending pools with custom risk parameters
- InitLendingMarketParams: Parameters used to initialize a new lending market