Module port_variable_rate_lending_instructions::state [−][src]
Expand description
State types
Structs
Calculate borrow result
Calculate liquidation result
Calculate repay result
Collateral exchange rate
Initialize a lending market
Initialize an obligation
Initialize a reserve
Last update state
Lending market state
Create a new reserve collateral
Create a new reserve liquidity
Lending market obligation state
Obligation collateral state
Obligation liquidity state
Lending market reserve state
Reserve collateral
Reserve configuration values
Additional fee information on a reserve
Reserve liquidity
Enums
Calculate fees exlusive or inclusive of an amount
Constants
Collateral tokens are initially valued at a ratio of 1:1 RATE(collateral:liquidity)
Collateral tokens are initially valued at a ratio of 1:1 (collateral:liquidity)
Obligation borrow amount that is small enough to close out
Percentage of an obligation that can be repaid during each liquidation call
Max number of collateral and liquidity reserve accounts combined for an obligation
OBLIGATION COLLATERAL LEN
OBLIGATION LEN
OBLIGATION LIQUIDITY LEN
Current version of the program and all new accounts created
Number of slots per year
Number of slots to consider stale after
Accounts are created with data zeroed out, so uninitialized state instances will have the version set to 0.
Functions
pack coption of pubkey into buffer
unpack coption pubkey from buffer