Coda by Ian Macalinao
    Preparing search index...

    Reserve configuration values

    interface ReserveConfig {
        assetTier: number;
        autodeleverageEnabled: number;
        badDebtLiquidationBonusBps: number;
        borrowFactorPct: bigint;
        borrowLimit: bigint;
        borrowLimitAgainstThisCollateralInElevationGroup: bigint[];
        borrowLimitOutsideElevationGroup: bigint;
        borrowRateCurve: BorrowRateCurve;
        debtWithdrawalCap: WithdrawalCaps;
        deleveragingBonusIncreaseBpsPerDay: bigint;
        deleveragingMarginCallPeriodSecs: bigint;
        deleveragingThresholdDecreaseBpsPerDay: bigint;
        depositLimit: bigint;
        depositWithdrawalCap: WithdrawalCaps;
        disableUsageAsCollOutsideEmode: number;
        elevationGroups: number[];
        fees: ReserveFees;
        hostFixedInterestRateBps: number;
        liquidationThresholdPct: number;
        loanToValuePct: number;
        maxLiquidationBonusBps: number;
        minLiquidationBonusBps: number;
        protocolLiquidationFeePct: number;
        protocolOrderExecutionFeePct: number;
        protocolTakeRatePct: number;
        reserved1: number[];
        reserved2: number[];
        status: number;
        tokenInfo: TokenInfo;
        utilizationLimitBlockBorrowingAbovePct: number;
    }
    Index

    Properties

    assetTier: number

    Asset tier -> 0 - regular (collateral & debt), 1 - isolated collateral, 2 - isolated debt

    autodeleverageEnabled: number

    Whether this reserve should be subject to auto-deleveraging after deposit or borrow limit is crossed. Besides this flag, the lending market's flag also needs to be enabled (logical AND). NOTE: the manual "target LTV" deleveraging (enabled by the risk council for individual obligations) is NOT affected by this flag.

    badDebtLiquidationBonusBps: number

    Bad debt liquidation bonus for an undercollateralized obligation, as bps

    borrowFactorPct: bigint

    Borrow factor in percentage - used for risk adjustment

    borrowLimit: bigint

    Maximum amount borrowed, u64::MAX for inf, 0 to disable borrows (protected deposits)

    borrowLimitAgainstThisCollateralInElevationGroup: bigint[]

    Defines the maximum amount (in lamports of elevation group debt asset) that can be borrowed when this reserve is used as collateral.

    • u64::MAX for inf
    • 0 to disable borrows in this elevation group (expected value for the debt asset)
    borrowLimitOutsideElevationGroup: bigint

    Maximum amount liquidity of this reserve borrowed outside all elevation groups

    • u64::MAX for inf
    • 0 to disable borrows outside elevation groups
    borrowRateCurve: BorrowRateCurve

    Borrow rate curve based on utilization

    debtWithdrawalCap: WithdrawalCaps

    Debt withdrawal caps - borrow & repay

    deleveragingBonusIncreaseBpsPerDay: bigint

    The rate at which the deleveraging-related liquidation bonus increases, in bps per day. Only relevant when autodeleverage_enabled == 1, and must not be 0 in such case.

    deleveragingMarginCallPeriodSecs: bigint

    Time in seconds that must pass before redemptions are enabled after the deposit limit is crossed. Only relevant when autodeleverage_enabled == 1, and must not be 0 in such case.

    deleveragingThresholdDecreaseBpsPerDay: bigint

    The rate at which the deleveraging threshold decreases, in bps per day. Only relevant when autodeleverage_enabled == 1, and must not be 0 in such case.

    depositLimit: bigint

    Maximum deposit limit of liquidity in native units, u64::MAX for inf

    depositWithdrawalCap: WithdrawalCaps

    Deposit withdrawal caps - deposit & redeem

    disableUsageAsCollOutsideEmode: number
    elevationGroups: number[]

    Program owner fees assessed, separate from gains due to interest accrual

    hostFixedInterestRateBps: number

    Flat rate that goes to the host

    liquidationThresholdPct: number

    Loan to value ratio at which an obligation can be liquidated, as percentage

    loanToValuePct: number

    Target ratio of the value of borrows to deposits, as a percentage 0 if use as collateral is disabled

    maxLiquidationBonusBps: number

    Maximum bonus a liquidator receives when repaying part of an unhealthy obligation, as bps

    minLiquidationBonusBps: number

    Minimum bonus a liquidator receives when repaying part of an unhealthy obligation, as bps

    protocolLiquidationFeePct: number

    Cut of the liquidation bonus that the protocol receives, as a percentage

    protocolOrderExecutionFeePct: number

    Cut of the order execution bonus that the protocol receives, as a percentage

    protocolTakeRatePct: number

    Protocol take rate is the amount borrowed interest protocol receives, as a percentage

    reserved1: number[]
    reserved2: number[]

    [DEPRECATED] Space that used to hold 2 fields:

    • Boost for side (debt or collateral)
    • Reward points multiplier per obligation type Can be re-used after making sure all underlying production account data is zeroed.
    status: number

    Status of the reserve Active/Obsolete/Hidden

    tokenInfo: TokenInfo

    Token id from TokenInfos struct

    utilizationLimitBlockBorrowingAbovePct: number

    Utilization (in percentage) above which borrowing is blocked. 0 to disable.