Skip to main content

Module state

Module state 

Source

Structs§

ArrayDiscriminator
Array Discriminator type
BigFractionBytes
256-bit fraction stored as 4 × u64 limbs.
BorrowOrder
Owner-defined, permissionlessly-executed borrow order.
BorrowRateCurve
CurvePoint
ElevationGroup
FixedTermBorrowRolloverConfig
Fixed-term borrow rollover configuration on an obligation liquidity position.
GlobalConfig
Global program configuration account.
LastUpdate
Last update state — tracks when an account was last refreshed.
LendingMarket
Lending market account state.
Obligation
Lending market obligation state.
ObligationCollateral
A single collateral deposit within an obligation.
ObligationLiquidity
A single borrow position within an obligation.
ObligationOrder
Owner-defined, permissionlessly-executed repay order.
PermissionedOp
Mirror of the on-chain PermissionedOp bitmask (see programs/klend/src/utils/permissioning.rs).
PodU128
A u128 stored as little-endian bytes, so it can be a field inside #[repr(C)] Pod structs.
PriceHeuristic
PythConfiguration
ReferrerState
Referrer state — maps a referrer to their short URL.
ReferrerTokenState
Per-referrer, per-reserve fee tracking account.
Reserve
Lending reserve account state.
ReserveCollateral
Reserve collateral state.
ReserveConfig
Reserve configuration parameters.
ReserveFees
ReserveLiquidity
Reserve liquidity state.
ScopeConfiguration
SwitchboardConfiguration
TokenInfo
UserMetadata
User metadata — links a wallet to its referrer.
WithdrawQueue
WithdrawTicket
A ticket representing a depositor’s place in a reserve’s withdraw queue.
WithdrawalCaps

Enums§

AccountDataError
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 SplDiscriminate trait on an enum or struct