Expand description
State types
Structs§
- Calculate
Borrow Result - Calculate borrow result
- Calculate
Liquidation Result - Calculate liquidation result
- Calculate
Repay Result - Calculate repay result
- Collateral
Exchange Rate - Collateral exchange rate
- Init
Lending Market Params - Initialize a lending market
- Init
Obligation Params - Initialize an obligation
- Init
Reserve Params - Initialize a reserve
- Last
Update - Last update state
- Lending
Market - Lending market state
- NewReserve
Collateral Params - Create a new reserve collateral
- NewReserve
Liquidity Params - Create a new reserve liquidity
- Obligation
- Lending market obligation state
- Obligation
Collateral - Obligation collateral state
- Obligation
Liquidity - Obligation liquidity state
- Reserve
- Lending market reserve state
- Reserve
Collateral - Reserve collateral
- Reserve
Config - Reserve configuration values
- Reserve
Fees - Additional fee information on a reserve
- Reserve
Liquidity - Reserve liquidity
Enums§
- FeeCalculation
- Calculate fees exlusive or inclusive of an amount
Constants§
- INITIAL_
COLLATERAL_ RATIO - Collateral tokens are initially valued at a ratio of 5:1 (collateral:liquidity)
- LIQUIDATION_
CLOSE_ AMOUNT - Obligation borrow amount that is small enough to close out
- LIQUIDATION_
CLOSE_ FACTOR - Percentage of an obligation that can be repaid during each liquidation call
- MAX_
LIQUIDATABLE_ VALUE_ AT_ ONCE - Maximum quote currency value that can be liquidated in 1 liquidate_obligation call
- MAX_
OBLIGATION_ RESERVES - Max number of collateral and liquidity reserve accounts combined for an obligation
- PROGRAM_
VERSION - Current version of the program and all new accounts created
- SLOTS_
PER_ YEAR - Number of slots per year
- STALE_
AFTER_ SLOTS_ ELAPSED - Number of slots to consider stale after
- UNINITIALIZED_
VERSION - Accounts are created with data zeroed out, so uninitialized state instances will have the version set to 0.