Structs§
- Array
Discriminator - Array Discriminator type
- BigFraction
Bytes - 256-bit fraction stored as 4 × u64 limbs.
- Borrow
Order - Owner-defined, permissionlessly-executed borrow order.
- Borrow
Rate Curve - Curve
Point - Elevation
Group - Fixed
Term Borrow Rollover Config - Fixed-term borrow rollover configuration on an obligation liquidity position.
- Global
Config - Global program configuration account.
- Last
Update - Last update state — tracks when an account was last refreshed.
- Lending
Market - Lending market account state.
- Obligation
- Lending market obligation state.
- Obligation
Collateral - A single collateral deposit within an obligation.
- Obligation
Liquidity - A single borrow position within an obligation.
- Obligation
Order - Owner-defined, permissionlessly-executed repay order.
- Permissioned
Op - Mirror of the on-chain
PermissionedOpbitmask (seeprograms/klend/src/utils/permissioning.rs). - PodU128
- A
u128stored as little-endian bytes, so it can be a field inside#[repr(C)]Podstructs. - Price
Heuristic - Pyth
Configuration - Referrer
State - Referrer state — maps a referrer to their short URL.
- Referrer
Token State - Per-referrer, per-reserve fee tracking account.
- Reserve
- Lending reserve account state.
- Reserve
Collateral - Reserve collateral state.
- Reserve
Config - Reserve configuration parameters.
- Reserve
Fees - Reserve
Liquidity - Reserve liquidity state.
- Scope
Configuration - Switchboard
Configuration - Token
Info - User
Metadata - User metadata — links a wallet to its referrer.
- Withdraw
Queue - Withdraw
Ticket - A ticket representing a depositor’s place in a reserve’s withdraw queue.
- Withdrawal
Caps
Enums§
- Account
Data Error - Errors returned by
from_account_data.
Constants§
- DISCRIMINATOR_
SIZE - Size of the Anchor account discriminator (8 bytes).
Traits§
- SplDiscriminate
- A trait for managing 8-byte discriminators in a slab of bytes
Functions§
- from_
account_ data - Cast raw account data (including the 8-byte Anchor discriminator) to
&T.
Derive Macros§
- SplDiscriminate
- Derive macro library to implement the
SplDiscriminatetrait on an enum or struct