@exponent-labs/klend-idl 0.9.24 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/accounts/GlobalConfig.d.ts +27 -0
- package/build/accounts/GlobalConfig.js +112 -0
- package/build/accounts/GlobalConfig.js.map +1 -0
- package/build/accounts/LendingMarket.d.ts +93 -9
- package/build/accounts/LendingMarket.js +202 -20
- package/build/accounts/LendingMarket.js.map +1 -1
- package/build/accounts/Obligation.d.ts +33 -9
- package/build/accounts/Obligation.js +69 -20
- package/build/accounts/Obligation.js.map +1 -1
- package/build/accounts/ReferrerState.js +7 -2
- package/build/accounts/ReferrerState.js.map +1 -1
- package/build/accounts/ReferrerTokenState.js +3 -1
- package/build/accounts/ReferrerTokenState.js.map +1 -1
- package/build/accounts/Reserve.d.ts +3 -0
- package/build/accounts/Reserve.js +8 -2
- package/build/accounts/Reserve.js.map +1 -1
- package/build/accounts/ShortUrl.js +7 -2
- package/build/accounts/ShortUrl.js.map +1 -1
- package/build/accounts/UserMetadata.js +3 -1
- package/build/accounts/UserMetadata.js.map +1 -1
- package/build/accounts/UserState.js +3 -1
- package/build/accounts/UserState.js.map +1 -1
- package/build/accounts/WithdrawTicket.d.ts +49 -0
- package/build/accounts/WithdrawTicket.js +158 -0
- package/build/accounts/WithdrawTicket.js.map +1 -0
- package/build/accounts/index.d.ts +4 -0
- package/build/accounts/index.js +5 -1
- package/build/accounts/index.js.map +1 -1
- package/build/errors/custom.d.ts +605 -13
- package/build/errors/custom.js +1063 -26
- package/build/errors/custom.js.map +1 -1
- package/build/index.d.ts +2 -3
- package/build/index.js +3 -7
- package/build/index.js.map +1 -1
- package/build/instructions/abortObligationOwnershipTransfer.d.ts +7 -0
- package/build/instructions/abortObligationOwnershipTransfer.js +21 -0
- package/build/instructions/abortObligationOwnershipTransfer.js.map +1 -0
- package/build/instructions/acceptObligationOwnership.d.ts +7 -0
- package/build/instructions/acceptObligationOwnership.js +21 -0
- package/build/instructions/acceptObligationOwnership.js.map +1 -0
- package/build/instructions/approveObligationOwnershipTransfer.d.ts +9 -0
- package/build/instructions/approveObligationOwnershipTransfer.js +23 -0
- package/build/instructions/approveObligationOwnershipTransfer.js.map +1 -0
- package/build/instructions/borrowObligationLiquidity.d.ts +1 -1
- package/build/instructions/borrowObligationLiquidity.js +9 -2
- package/build/instructions/borrowObligationLiquidity.js.map +1 -1
- package/build/instructions/borrowObligationLiquidityV2.js +26 -6
- package/build/instructions/borrowObligationLiquidityV2.js.map +1 -1
- package/build/instructions/calculateCtokenExchangeRate.d.ts +5 -0
- package/build/instructions/calculateCtokenExchangeRate.js +15 -0
- package/build/instructions/calculateCtokenExchangeRate.js.map +1 -0
- package/build/instructions/cancelWithdrawTicket.d.ts +19 -0
- package/build/instructions/cancelWithdrawTicket.js +87 -0
- package/build/instructions/cancelWithdrawTicket.js.map +1 -0
- package/build/instructions/cloneReserveConfig.d.ts +14 -0
- package/build/instructions/cloneReserveConfig.js +70 -0
- package/build/instructions/cloneReserveConfig.js.map +1 -0
- package/build/instructions/deleteReferrerStateAndShortUrl.js.map +1 -1
- package/build/instructions/depositAndWithdraw.d.ts +51 -0
- package/build/instructions/depositAndWithdraw.js +202 -0
- package/build/instructions/depositAndWithdraw.js.map +1 -0
- package/build/instructions/depositObligationCollateral.js.map +1 -1
- package/build/instructions/depositObligationCollateralV2.d.ts +25 -0
- package/build/instructions/depositObligationCollateralV2.js +109 -0
- package/build/instructions/depositObligationCollateralV2.js.map +1 -0
- package/build/instructions/depositReserveLiquidity.js +1 -1
- package/build/instructions/depositReserveLiquidity.js.map +1 -1
- package/build/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +1 -1
- package/build/instructions/depositReserveLiquidityAndObligationCollateral.js +9 -6
- package/build/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -1
- package/build/instructions/depositReserveLiquidityAndObligationCollateralV2.js +26 -6
- package/build/instructions/depositReserveLiquidityAndObligationCollateralV2.js.map +1 -1
- package/build/instructions/enqueueToWithdraw.d.ts +26 -0
- package/build/instructions/enqueueToWithdraw.js +113 -0
- package/build/instructions/enqueueToWithdraw.js.map +1 -0
- package/build/instructions/fillBorrowOrder.d.ts +25 -0
- package/build/instructions/fillBorrowOrder.js +82 -0
- package/build/instructions/fillBorrowOrder.js.map +1 -0
- package/build/instructions/fillBorrowOrderV2.d.ts +29 -0
- package/build/instructions/fillBorrowOrderV2.js +122 -0
- package/build/instructions/fillBorrowOrderV2.js.map +1 -0
- package/build/instructions/flashBorrowReserveLiquidity.d.ts +2 -2
- package/build/instructions/flashBorrowReserveLiquidity.js +9 -2
- package/build/instructions/flashBorrowReserveLiquidity.js.map +1 -1
- package/build/instructions/flashRepayReserveLiquidity.d.ts +2 -2
- package/build/instructions/flashRepayReserveLiquidity.js +13 -3
- package/build/instructions/flashRepayReserveLiquidity.js.map +1 -1
- package/build/instructions/idlMissingTypes.d.ts +3 -2
- package/build/instructions/idlMissingTypes.js +7 -3
- package/build/instructions/idlMissingTypes.js.map +1 -1
- package/build/instructions/index.d.ts +61 -3
- package/build/instructions/index.js +62 -3
- package/build/instructions/index.js.map +1 -1
- package/build/instructions/initFarmsForReserve.d.ts +1 -0
- package/build/instructions/initFarmsForReserve.js +6 -1
- package/build/instructions/initFarmsForReserve.js.map +1 -1
- package/build/instructions/initGlobalConfig.d.ts +10 -0
- package/build/instructions/initGlobalConfig.js +24 -0
- package/build/instructions/initGlobalConfig.js.map +1 -0
- package/build/instructions/initLendingMarket.d.ts +1 -0
- package/build/instructions/initLendingMarket.js +8 -1
- package/build/instructions/initLendingMarket.js.map +1 -1
- package/build/instructions/initObligation.js.map +1 -1
- package/build/instructions/initObligationFarmsForReserve.js +1 -1
- package/build/instructions/initObligationFarmsForReserve.js.map +1 -1
- package/build/instructions/initReferrerStateAndShortUrl.js.map +1 -1
- package/build/instructions/initReferrerTokenState.d.ts +2 -5
- package/build/instructions/initReferrerTokenState.js +3 -42
- package/build/instructions/initReferrerTokenState.js.map +1 -1
- package/build/instructions/initReserve.d.ts +3 -1
- package/build/instructions/initReserve.js +11 -1
- package/build/instructions/initReserve.js.map +1 -1
- package/build/instructions/initUserMetadata.d.ts +1 -1
- package/build/instructions/initUserMetadata.js +8 -5
- package/build/instructions/initUserMetadata.js.map +1 -1
- package/build/instructions/initiateObligationOwnershipTransfer.d.ts +11 -0
- package/build/instructions/initiateObligationOwnershipTransfer.js +61 -0
- package/build/instructions/initiateObligationOwnershipTransfer.js.map +1 -0
- package/build/instructions/liquidateObligationAndRedeemReserveCollateral.js +2 -2
- package/build/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -1
- package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts +42 -0
- package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.js +172 -0
- package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.js.map +1 -0
- package/build/instructions/markObligationForDeleveraging.d.ts +12 -0
- package/build/instructions/markObligationForDeleveraging.js +62 -0
- package/build/instructions/markObligationForDeleveraging.js.map +1 -0
- package/build/instructions/recoverInvalidTicketCollateral.d.ts +20 -0
- package/build/instructions/recoverInvalidTicketCollateral.js +89 -0
- package/build/instructions/recoverInvalidTicketCollateral.js.map +1 -0
- package/build/instructions/redeemFees.js +1 -1
- package/build/instructions/redeemFees.js.map +1 -1
- package/build/instructions/redeemReserveCollateral.js +1 -1
- package/build/instructions/redeemReserveCollateral.js.map +1 -1
- package/build/instructions/refreshObligation.js.map +1 -1
- package/build/instructions/refreshObligationFarmsForReserve.d.ts +8 -6
- package/build/instructions/refreshObligationFarmsForReserve.js +23 -7
- package/build/instructions/refreshObligationFarmsForReserve.js.map +1 -1
- package/build/instructions/refreshReserve.d.ts +4 -4
- package/build/instructions/refreshReserve.js +11 -12
- package/build/instructions/refreshReserve.js.map +1 -1
- package/build/instructions/refreshReservesBatch.js.map +1 -1
- package/build/instructions/repayAndWithdrawAndRedeem.d.ts +46 -0
- package/build/instructions/repayAndWithdrawAndRedeem.js +177 -0
- package/build/instructions/repayAndWithdrawAndRedeem.js.map +1 -0
- package/build/instructions/repayObligationLiquidity.js +1 -1
- package/build/instructions/repayObligationLiquidity.js.map +1 -1
- package/build/instructions/repayObligationLiquidityV2.js +31 -7
- package/build/instructions/repayObligationLiquidityV2.js.map +1 -1
- package/build/instructions/requestElevationGroup.js.map +1 -1
- package/build/instructions/rolloverFixedTermBorrow.d.ts +25 -0
- package/build/instructions/rolloverFixedTermBorrow.js +76 -0
- package/build/instructions/rolloverFixedTermBorrow.js.map +1 -0
- package/build/instructions/seedDepositOnInitReserve.d.ts +11 -0
- package/build/instructions/seedDepositOnInitReserve.js +37 -0
- package/build/instructions/seedDepositOnInitReserve.js.map +1 -0
- package/build/instructions/setBorrowOrder.d.ts +20 -0
- package/build/instructions/setBorrowOrder.js +76 -0
- package/build/instructions/setBorrowOrder.js.map +1 -0
- package/build/instructions/setBorrowOrderV2.d.ts +21 -0
- package/build/instructions/setBorrowOrderV2.js +78 -0
- package/build/instructions/setBorrowOrderV2.js.map +1 -0
- package/build/instructions/setObligationOrder.d.ts +13 -0
- package/build/instructions/setObligationOrder.js +62 -0
- package/build/instructions/setObligationOrder.js.map +1 -0
- package/build/instructions/socializeLoss.d.ts +1 -1
- package/build/instructions/socializeLoss.js +1 -1
- package/build/instructions/socializeLoss.js.map +1 -1
- package/build/instructions/socializeLossV2.d.ts +22 -0
- package/build/instructions/socializeLossV2.js +94 -0
- package/build/instructions/socializeLossV2.js.map +1 -0
- package/build/instructions/topupReserveRewards.d.ts +16 -0
- package/build/instructions/topupReserveRewards.js +73 -0
- package/build/instructions/topupReserveRewards.js.map +1 -0
- package/build/instructions/updateGlobalConfig.d.ts +13 -0
- package/build/instructions/updateGlobalConfig.js +66 -0
- package/build/instructions/updateGlobalConfig.js.map +1 -0
- package/build/instructions/updateGlobalConfigAdmin.d.ts +7 -0
- package/build/instructions/updateGlobalConfigAdmin.js +21 -0
- package/build/instructions/updateGlobalConfigAdmin.js.map +1 -0
- package/build/instructions/updateLendingMarket.d.ts +2 -1
- package/build/instructions/updateLendingMarket.js +10 -2
- package/build/instructions/updateLendingMarket.js.map +1 -1
- package/build/instructions/updateLendingMarketOwner.d.ts +1 -0
- package/build/instructions/updateLendingMarketOwner.js +5 -0
- package/build/instructions/updateLendingMarketOwner.js.map +1 -1
- package/build/instructions/updateObligationConfig.d.ts +15 -0
- package/build/instructions/updateObligationConfig.js +71 -0
- package/build/instructions/updateObligationConfig.js.map +1 -0
- package/build/instructions/updateReserveConfig.d.ts +6 -4
- package/build/instructions/updateReserveConfig.js +15 -4
- package/build/instructions/updateReserveConfig.js.map +1 -1
- package/build/instructions/withdrawObligationCollateral.js +1 -1
- package/build/instructions/withdrawObligationCollateral.js.map +1 -1
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +1 -1
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js +9 -6
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -1
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js +21 -5
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js.map +1 -1
- package/build/instructions/withdrawObligationCollateralV2.d.ts +25 -0
- package/build/instructions/withdrawObligationCollateralV2.js +109 -0
- package/build/instructions/withdrawObligationCollateralV2.js.map +1 -0
- package/build/instructions/withdrawProtocolFee.d.ts +3 -2
- package/build/instructions/withdrawProtocolFee.js +6 -5
- package/build/instructions/withdrawProtocolFee.js.map +1 -1
- package/build/instructions/withdrawQueuedLiquidity.d.ts +23 -0
- package/build/instructions/withdrawQueuedLiquidity.js +80 -0
- package/build/instructions/withdrawQueuedLiquidity.js.map +1 -0
- package/build/instructions/withdrawReferrerFees.js +1 -1
- package/build/instructions/withdrawReferrerFees.js.map +1 -1
- package/build/kamino_lending.d.ts +5753 -2295
- package/build/kamino_lending.js +5 -3936
- package/build/kamino_lending.js.map +1 -1
- package/build/kamino_lending.json +1856 -645
- package/build/types/BigFractionBytes.d.ts +2 -1
- package/build/types/BigFractionBytes.js +4 -1
- package/build/types/BigFractionBytes.js.map +1 -1
- package/build/types/BorrowOrder.d.ts +83 -0
- package/build/types/BorrowOrder.js +164 -0
- package/build/types/BorrowOrder.js.map +1 -0
- package/build/types/BorrowOrderConfigArgs.d.ts +42 -0
- package/build/types/BorrowOrderConfigArgs.js +107 -0
- package/build/types/BorrowOrderConfigArgs.js.map +1 -0
- package/build/types/BorrowRateCurve.js.map +1 -1
- package/build/types/CurvePoint.d.ts +2 -1
- package/build/types/CurvePoint.js.map +1 -1
- package/build/types/ElevationGroup.d.ts +2 -1
- package/build/types/ElevationGroup.js.map +1 -1
- package/build/types/ExchangeRateWithDecimals.d.ts +27 -0
- package/build/types/ExchangeRateWithDecimals.js +82 -0
- package/build/types/ExchangeRateWithDecimals.js.map +1 -0
- package/build/types/FeeCalculation.js +4 -1
- package/build/types/FeeCalculation.js.map +1 -1
- package/build/types/FixedTermBorrowRolloverConfig.d.ts +47 -0
- package/build/types/FixedTermBorrowRolloverConfig.js +114 -0
- package/build/types/FixedTermBorrowRolloverConfig.js.map +1 -0
- package/build/types/InitObligationArgs.d.ts +2 -1
- package/build/types/InitObligationArgs.js.map +1 -1
- package/build/types/LastUpdate.d.ts +12 -6
- package/build/types/LastUpdate.js +19 -7
- package/build/types/LastUpdate.js.map +1 -1
- package/build/types/ObligationLiquidity.d.ts +29 -5
- package/build/types/ObligationLiquidity.js +25 -8
- package/build/types/ObligationLiquidity.js.map +1 -1
- package/build/types/ObligationOrder.d.ts +57 -0
- package/build/types/ObligationOrder.js +127 -0
- package/build/types/ObligationOrder.js.map +1 -0
- package/build/types/ProgressCallbackType.d.ts +31 -0
- package/build/types/ProgressCallbackType.js +108 -0
- package/build/types/ProgressCallbackType.js.map +1 -0
- package/build/types/ReserveConfig.d.ts +87 -32
- package/build/types/ReserveConfig.js +122 -44
- package/build/types/ReserveConfig.js.map +1 -1
- package/build/types/ReserveConfigCustomizationArgs.d.ts +42 -0
- package/build/types/ReserveConfigCustomizationArgs.js +106 -0
- package/build/types/ReserveConfigCustomizationArgs.js.map +1 -0
- package/build/types/ReserveFees.d.ts +5 -5
- package/build/types/ReserveFees.js +7 -7
- package/build/types/ReserveFees.js.map +1 -1
- package/build/types/ReserveLiquidity.d.ts +20 -15
- package/build/types/ReserveLiquidity.js +29 -22
- package/build/types/ReserveLiquidity.js.map +1 -1
- package/build/types/UpdateConfigMode.d.ts +232 -63
- package/build/types/UpdateConfigMode.js +413 -100
- package/build/types/UpdateConfigMode.js.map +1 -1
- package/build/types/UpdateGlobalConfigMode.d.ts +31 -0
- package/build/types/UpdateGlobalConfigMode.js +108 -0
- package/build/types/UpdateGlobalConfigMode.js.map +1 -0
- package/build/types/UpdateLendingMarketConfigValue.d.ts +20 -0
- package/build/types/UpdateLendingMarketConfigValue.js +33 -1
- package/build/types/UpdateLendingMarketConfigValue.js.map +1 -1
- package/build/types/UpdateLendingMarketMode.d.ts +400 -23
- package/build/types/UpdateLendingMarketMode.js +732 -36
- package/build/types/UpdateLendingMarketMode.js.map +1 -1
- package/build/types/UpdateObligationConfigMode.d.ts +83 -0
- package/build/types/UpdateObligationConfigMode.js +204 -0
- package/build/types/UpdateObligationConfigMode.js.map +1 -0
- package/build/types/WithdrawQueue.d.ts +32 -0
- package/build/types/WithdrawQueue.js +93 -0
- package/build/types/WithdrawQueue.js.map +1 -0
- package/build/types/index.d.ts +32 -10
- package/build/types/index.js +21 -3
- package/build/types/index.js.map +1 -1
- package/package.json +3 -2
- package/scripts/generate-idl-module.mjs +18 -0
- package/scripts/patch-optional-accounts.mjs +98 -0
- package/scripts/verify-idl-provenance.mjs +16 -0
- package/src/accounts/GlobalConfig.ts +113 -0
- package/src/accounts/LendingMarket.ts +300 -29
- package/src/accounts/Obligation.ts +111 -26
- package/src/accounts/ReferrerState.ts +11 -4
- package/src/accounts/ReferrerTokenState.ts +6 -3
- package/src/accounts/Reserve.ts +10 -2
- package/src/accounts/ShortUrl.ts +15 -4
- package/src/accounts/UserMetadata.ts +6 -3
- package/src/accounts/UserState.ts +24 -8
- package/src/accounts/WithdrawTicket.ts +173 -0
- package/src/accounts/index.ts +4 -0
- package/src/errors/custom.ts +1177 -24
- package/src/index.ts +2 -4
- package/src/instructions/abortObligationOwnershipTransfer.ts +30 -0
- package/src/instructions/acceptObligationOwnership.ts +30 -0
- package/src/instructions/approveObligationOwnershipTransfer.ts +34 -0
- package/src/instructions/borrowObligationLiquidity.ts +18 -5
- package/src/instructions/borrowObligationLiquidityV2.ts +30 -9
- package/src/instructions/calculateCtokenExchangeRate.ts +22 -0
- package/src/instructions/cancelWithdrawTicket.ts +77 -0
- package/src/instructions/cloneReserveConfig.ts +56 -0
- package/src/instructions/deleteReferrerStateAndShortUrl.ts +4 -1
- package/src/instructions/depositAndWithdraw.ts +229 -0
- package/src/instructions/depositObligationCollateral.ts +3 -2
- package/src/instructions/depositObligationCollateralV2.ts +110 -0
- package/src/instructions/depositReserveLiquidity.ts +4 -3
- package/src/instructions/depositReserveLiquidityAndObligationCollateral.ts +18 -9
- package/src/instructions/depositReserveLiquidityAndObligationCollateralV2.ts +31 -14
- package/src/instructions/enqueueToWithdraw.ts +113 -0
- package/src/instructions/fillBorrowOrder.ts +114 -0
- package/src/instructions/fillBorrowOrderV2.ts +128 -0
- package/src/instructions/flashBorrowReserveLiquidity.ts +19 -6
- package/src/instructions/flashRepayReserveLiquidity.ts +23 -7
- package/src/instructions/idlMissingTypes.ts +17 -9
- package/src/instructions/index.ts +118 -6
- package/src/instructions/initFarmsForReserve.ts +11 -3
- package/src/instructions/initGlobalConfig.ts +36 -0
- package/src/instructions/initLendingMarket.ts +13 -3
- package/src/instructions/initObligation.ts +3 -2
- package/src/instructions/initObligationFarmsForReserve.ts +5 -3
- package/src/instructions/initReferrerStateAndShortUrl.ts +4 -2
- package/src/instructions/initReferrerTokenState.ts +6 -16
- package/src/instructions/initReserve.ts +21 -3
- package/src/instructions/initUserMetadata.ts +18 -8
- package/src/instructions/initiateObligationOwnershipTransfer.ts +44 -0
- package/src/instructions/liquidateObligationAndRedeemReserveCollateral.ts +7 -5
- package/src/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +191 -0
- package/src/instructions/markObligationForDeleveraging.ts +46 -0
- package/src/instructions/recoverInvalidTicketCollateral.ts +80 -0
- package/src/instructions/redeemFees.ts +8 -2
- package/src/instructions/redeemReserveCollateral.ts +4 -3
- package/src/instructions/refreshObligation.ts +7 -1
- package/src/instructions/refreshObligationFarmsForReserve.ts +35 -15
- package/src/instructions/refreshReserve.ts +27 -17
- package/src/instructions/refreshReservesBatch.ts +7 -2
- package/src/instructions/repayAndWithdrawAndRedeem.ts +199 -0
- package/src/instructions/repayObligationLiquidity.ts +4 -3
- package/src/instructions/repayObligationLiquidityV2.ts +35 -10
- package/src/instructions/requestElevationGroup.ts +4 -2
- package/src/instructions/rolloverFixedTermBorrow.ts +108 -0
- package/src/instructions/seedDepositOnInitReserve.ts +50 -0
- package/src/instructions/setBorrowOrder.ts +66 -0
- package/src/instructions/setBorrowOrderV2.ts +69 -0
- package/src/instructions/setObligationOrder.ts +45 -0
- package/src/instructions/socializeLoss.ts +5 -4
- package/src/instructions/socializeLossV2.ts +92 -0
- package/src/instructions/topupReserveRewards.ts +60 -0
- package/src/instructions/updateGlobalConfig.ts +53 -0
- package/src/instructions/updateGlobalConfigAdmin.ts +30 -0
- package/src/instructions/updateLendingMarket.ts +15 -5
- package/src/instructions/updateLendingMarketOwner.ts +10 -1
- package/src/instructions/updateObligationConfig.ts +65 -0
- package/src/instructions/updateReserveConfig.ts +27 -10
- package/src/instructions/withdrawObligationCollateral.ts +4 -3
- package/src/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +18 -9
- package/src/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts +26 -13
- package/src/instructions/withdrawObligationCollateralV2.ts +110 -0
- package/src/instructions/withdrawProtocolFee.ts +12 -9
- package/src/instructions/withdrawQueuedLiquidity.ts +110 -0
- package/src/instructions/withdrawReferrerFees.ts +8 -2
- package/src/kamino_lending.json +1856 -645
- package/src/kamino_lending.ts +5558 -6034
- package/src/types/BigFractionBytes.ts +9 -1
- package/src/types/BorrowOrder.ts +168 -0
- package/src/types/BorrowOrderConfigArgs.ts +96 -0
- package/src/types/BorrowRateCurve.ts +10 -3
- package/src/types/CurvePoint.ts +7 -1
- package/src/types/ElevationGroup.ts +2 -1
- package/src/types/ExchangeRateWithDecimals.ts +64 -0
- package/src/types/FeeCalculation.ts +9 -2
- package/src/types/FixedTermBorrowRolloverConfig.ts +110 -0
- package/src/types/InitObligationArgs.ts +3 -0
- package/src/types/LastUpdate.ts +26 -10
- package/src/types/ObligationLiquidity.ts +43 -10
- package/src/types/ObligationOrder.ts +121 -0
- package/src/types/ProgressCallbackType.ts +90 -0
- package/src/types/ReserveConfig.ts +169 -62
- package/src/types/ReserveConfigCustomizationArgs.ts +96 -0
- package/src/types/ReserveFees.ts +9 -9
- package/src/types/ReserveLiquidity.ts +38 -28
- package/src/types/UpdateConfigMode.ts +507 -117
- package/src/types/UpdateGlobalConfigMode.ts +90 -0
- package/src/types/UpdateLendingMarketConfigValue.ts +43 -0
- package/src/types/UpdateLendingMarketMode.ts +912 -41
- package/src/types/UpdateObligationConfigMode.ts +210 -0
- package/src/types/WithdrawQueue.ts +85 -0
- package/src/types/index.ts +175 -34
- package/src/types/AssetTier.ts +0 -116
package/src/kamino_lending.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.25.0",
|
|
3
3
|
"name": "kamino_lending",
|
|
4
4
|
"instructions": [
|
|
5
5
|
{
|
|
@@ -29,13 +29,21 @@
|
|
|
29
29
|
"name": "rent",
|
|
30
30
|
"isMut": false,
|
|
31
31
|
"isSigner": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "instructionSysvarAccount",
|
|
35
|
+
"isMut": false,
|
|
36
|
+
"isSigner": false
|
|
32
37
|
}
|
|
33
38
|
],
|
|
34
39
|
"args": [
|
|
35
40
|
{
|
|
36
41
|
"name": "quoteCurrency",
|
|
37
42
|
"type": {
|
|
38
|
-
"array": [
|
|
43
|
+
"array": [
|
|
44
|
+
"u8",
|
|
45
|
+
32
|
|
46
|
+
]
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
]
|
|
@@ -44,7 +52,7 @@
|
|
|
44
52
|
"name": "updateLendingMarket",
|
|
45
53
|
"accounts": [
|
|
46
54
|
{
|
|
47
|
-
"name": "
|
|
55
|
+
"name": "signer",
|
|
48
56
|
"isMut": false,
|
|
49
57
|
"isSigner": true
|
|
50
58
|
},
|
|
@@ -52,6 +60,11 @@
|
|
|
52
60
|
"name": "lendingMarket",
|
|
53
61
|
"isMut": true,
|
|
54
62
|
"isSigner": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "instructionSysvarAccount",
|
|
66
|
+
"isMut": false,
|
|
67
|
+
"isSigner": false
|
|
55
68
|
}
|
|
56
69
|
],
|
|
57
70
|
"args": [
|
|
@@ -62,7 +75,10 @@
|
|
|
62
75
|
{
|
|
63
76
|
"name": "value",
|
|
64
77
|
"type": {
|
|
65
|
-
"array": [
|
|
78
|
+
"array": [
|
|
79
|
+
"u8",
|
|
80
|
+
72
|
|
81
|
+
]
|
|
66
82
|
}
|
|
67
83
|
}
|
|
68
84
|
]
|
|
@@ -79,6 +95,11 @@
|
|
|
79
95
|
"name": "lendingMarket",
|
|
80
96
|
"isMut": true,
|
|
81
97
|
"isSigner": false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "instructionSysvarAccount",
|
|
101
|
+
"isMut": false,
|
|
102
|
+
"isSigner": false
|
|
82
103
|
}
|
|
83
104
|
],
|
|
84
105
|
"args": []
|
|
@@ -155,10 +176,53 @@
|
|
|
155
176
|
"name": "systemProgram",
|
|
156
177
|
"isMut": false,
|
|
157
178
|
"isSigner": false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "instructionSysvarAccount",
|
|
182
|
+
"isMut": false,
|
|
183
|
+
"isSigner": false
|
|
158
184
|
}
|
|
159
185
|
],
|
|
160
186
|
"args": []
|
|
161
187
|
},
|
|
188
|
+
{
|
|
189
|
+
"name": "cloneReserveConfig",
|
|
190
|
+
"accounts": [
|
|
191
|
+
{
|
|
192
|
+
"name": "signer",
|
|
193
|
+
"isMut": false,
|
|
194
|
+
"isSigner": true
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "targetLendingMarket",
|
|
198
|
+
"isMut": false,
|
|
199
|
+
"isSigner": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "sourceReserve",
|
|
203
|
+
"isMut": false,
|
|
204
|
+
"isSigner": false
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "targetReserve",
|
|
208
|
+
"isMut": true,
|
|
209
|
+
"isSigner": false
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "instructionSysvarAccount",
|
|
213
|
+
"isMut": false,
|
|
214
|
+
"isSigner": false
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"args": [
|
|
218
|
+
{
|
|
219
|
+
"name": "customizations",
|
|
220
|
+
"type": {
|
|
221
|
+
"defined": "ReserveConfigCustomizationArgs"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
162
226
|
{
|
|
163
227
|
"name": "initFarmsForReserve",
|
|
164
228
|
"accounts": [
|
|
@@ -211,6 +275,11 @@
|
|
|
211
275
|
"name": "systemProgram",
|
|
212
276
|
"isMut": false,
|
|
213
277
|
"isSigner": false
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "instructionSysvarAccount",
|
|
281
|
+
"isMut": false,
|
|
282
|
+
"isSigner": false
|
|
214
283
|
}
|
|
215
284
|
],
|
|
216
285
|
"args": [
|
|
@@ -242,6 +311,11 @@
|
|
|
242
311
|
"name": "reserve",
|
|
243
312
|
"isMut": true,
|
|
244
313
|
"isSigner": false
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "instructionSysvarAccount",
|
|
317
|
+
"isMut": false,
|
|
318
|
+
"isSigner": false
|
|
245
319
|
}
|
|
246
320
|
],
|
|
247
321
|
"args": [
|
|
@@ -344,6 +418,11 @@
|
|
|
344
418
|
"name": "tokenProgram",
|
|
345
419
|
"isMut": false,
|
|
346
420
|
"isSigner": false
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "instructionSysvarAccount",
|
|
424
|
+
"isMut": false,
|
|
425
|
+
"isSigner": false
|
|
347
426
|
}
|
|
348
427
|
],
|
|
349
428
|
"args": [
|
|
@@ -394,11 +473,57 @@
|
|
|
394
473
|
],
|
|
395
474
|
"args": []
|
|
396
475
|
},
|
|
476
|
+
{
|
|
477
|
+
"name": "topupReserveRewards",
|
|
478
|
+
"accounts": [
|
|
479
|
+
{
|
|
480
|
+
"name": "signer",
|
|
481
|
+
"isMut": false,
|
|
482
|
+
"isSigner": true
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "lendingMarket",
|
|
486
|
+
"isMut": false,
|
|
487
|
+
"isSigner": false
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "reserve",
|
|
491
|
+
"isMut": true,
|
|
492
|
+
"isSigner": false
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "reserveLiquidityMint",
|
|
496
|
+
"isMut": false,
|
|
497
|
+
"isSigner": false
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "reserveLiquiditySupply",
|
|
501
|
+
"isMut": true,
|
|
502
|
+
"isSigner": false
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "sourceLiquidity",
|
|
506
|
+
"isMut": true,
|
|
507
|
+
"isSigner": false
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "liquidityTokenProgram",
|
|
511
|
+
"isMut": false,
|
|
512
|
+
"isSigner": false
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"args": [
|
|
516
|
+
{
|
|
517
|
+
"name": "amount",
|
|
518
|
+
"type": "u64"
|
|
519
|
+
}
|
|
520
|
+
]
|
|
521
|
+
},
|
|
397
522
|
{
|
|
398
523
|
"name": "socializeLoss",
|
|
399
524
|
"accounts": [
|
|
400
525
|
{
|
|
401
|
-
"name": "
|
|
526
|
+
"name": "lendingMarketOwner",
|
|
402
527
|
"isMut": false,
|
|
403
528
|
"isSigner": true
|
|
404
529
|
},
|
|
@@ -437,7 +562,7 @@
|
|
|
437
562
|
"name": "socializeLossAccounts",
|
|
438
563
|
"accounts": [
|
|
439
564
|
{
|
|
440
|
-
"name": "
|
|
565
|
+
"name": "lendingMarketOwner",
|
|
441
566
|
"isMut": false,
|
|
442
567
|
"isSigner": true
|
|
443
568
|
},
|
|
@@ -502,7 +627,7 @@
|
|
|
502
627
|
"name": "markObligationForDeleveraging",
|
|
503
628
|
"accounts": [
|
|
504
629
|
{
|
|
505
|
-
"name": "
|
|
630
|
+
"name": "lendingMarketOwner",
|
|
506
631
|
"isMut": false,
|
|
507
632
|
"isSigner": true
|
|
508
633
|
},
|
|
@@ -515,6 +640,11 @@
|
|
|
515
640
|
"name": "lendingMarket",
|
|
516
641
|
"isMut": false,
|
|
517
642
|
"isSigner": false
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "instructionSysvarAccount",
|
|
646
|
+
"isMut": false,
|
|
647
|
+
"isSigner": false
|
|
518
648
|
}
|
|
519
649
|
],
|
|
520
650
|
"args": [
|
|
@@ -574,6 +704,20 @@
|
|
|
574
704
|
}
|
|
575
705
|
]
|
|
576
706
|
},
|
|
707
|
+
{
|
|
708
|
+
"name": "calculateCtokenExchangeRate",
|
|
709
|
+
"accounts": [
|
|
710
|
+
{
|
|
711
|
+
"name": "reserve",
|
|
712
|
+
"isMut": false,
|
|
713
|
+
"isSigner": false
|
|
714
|
+
}
|
|
715
|
+
],
|
|
716
|
+
"args": [],
|
|
717
|
+
"returns": {
|
|
718
|
+
"defined": "ExchangeRateWithDecimals"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
577
721
|
{
|
|
578
722
|
"name": "depositReserveLiquidity",
|
|
579
723
|
"accounts": [
|
|
@@ -2980,40 +3124,37 @@
|
|
|
2980
3124
|
{
|
|
2981
3125
|
"name": "owner",
|
|
2982
3126
|
"isMut": false,
|
|
2983
|
-
"isSigner": true
|
|
2984
|
-
"docs": ["The [Self::obligation]'s owner."]
|
|
3127
|
+
"isSigner": true
|
|
2985
3128
|
},
|
|
2986
3129
|
{
|
|
2987
3130
|
"name": "obligation",
|
|
2988
3131
|
"isMut": true,
|
|
2989
|
-
"isSigner": false
|
|
2990
|
-
"docs": ["The obligation to set the [BorrowOrder] on."]
|
|
3132
|
+
"isSigner": false
|
|
2991
3133
|
},
|
|
2992
3134
|
{
|
|
2993
3135
|
"name": "lendingMarket",
|
|
2994
3136
|
"isMut": false,
|
|
2995
|
-
"isSigner": false
|
|
2996
|
-
|
|
3137
|
+
"isSigner": false
|
|
3138
|
+
},
|
|
3139
|
+
{
|
|
3140
|
+
"name": "reserve",
|
|
3141
|
+
"isMut": false,
|
|
3142
|
+
"isSigner": false
|
|
2997
3143
|
},
|
|
2998
3144
|
{
|
|
2999
3145
|
"name": "filledDebtDestination",
|
|
3000
3146
|
"isMut": false,
|
|
3001
|
-
"isSigner": false
|
|
3002
|
-
"docs": [
|
|
3003
|
-
"The [BorrowOrder::filled_debt_destination] to set on order creation. Not editable on order",
|
|
3004
|
-
"updates.",
|
|
3005
|
-
"Ignored when cancelling the order."
|
|
3006
|
-
]
|
|
3147
|
+
"isSigner": false
|
|
3007
3148
|
},
|
|
3008
3149
|
{
|
|
3009
3150
|
"name": "debtLiquidityMint",
|
|
3010
3151
|
"isMut": false,
|
|
3011
|
-
"isSigner": false
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3152
|
+
"isSigner": false
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
"name": "instructionSysvarAccount",
|
|
3156
|
+
"isMut": false,
|
|
3157
|
+
"isSigner": false
|
|
3017
3158
|
},
|
|
3018
3159
|
{
|
|
3019
3160
|
"name": "eventAuthority",
|
|
@@ -3040,134 +3181,859 @@
|
|
|
3040
3181
|
]
|
|
3041
3182
|
},
|
|
3042
3183
|
{
|
|
3043
|
-
"name": "
|
|
3184
|
+
"name": "setBorrowOrderV2",
|
|
3044
3185
|
"accounts": [
|
|
3045
3186
|
{
|
|
3046
|
-
"name": "
|
|
3047
|
-
"
|
|
3048
|
-
|
|
3049
|
-
"name": "payer",
|
|
3050
|
-
"isMut": false,
|
|
3051
|
-
"isSigner": true
|
|
3052
|
-
},
|
|
3053
|
-
{
|
|
3054
|
-
"name": "obligation",
|
|
3055
|
-
"isMut": true,
|
|
3056
|
-
"isSigner": false,
|
|
3057
|
-
"docs": ["The obligation with a [BorrowOrder]."]
|
|
3058
|
-
},
|
|
3059
|
-
{
|
|
3060
|
-
"name": "lendingMarket",
|
|
3061
|
-
"isMut": false,
|
|
3062
|
-
"isSigner": false,
|
|
3063
|
-
"docs": ["The [Self::obligation]'s market - needed for borrowing-related configuration."]
|
|
3064
|
-
},
|
|
3065
|
-
{
|
|
3066
|
-
"name": "lendingMarketAuthority",
|
|
3067
|
-
"isMut": false,
|
|
3068
|
-
"isSigner": false,
|
|
3069
|
-
"docs": [
|
|
3070
|
-
"The [Self::lending_market]'s authority, needed to transfer the newly-borrowed funds out of",
|
|
3071
|
-
"the [Self::reserve_source_liquidity]."
|
|
3072
|
-
]
|
|
3073
|
-
},
|
|
3074
|
-
{
|
|
3075
|
-
"name": "borrowReserve",
|
|
3076
|
-
"isMut": true,
|
|
3077
|
-
"isSigner": false,
|
|
3078
|
-
"docs": [
|
|
3079
|
-
"The reserve to borrow from.",
|
|
3080
|
-
"",
|
|
3081
|
-
"Its mint must match the asset requested by the [BorrowOrder::debt_liquidity_mint]."
|
|
3082
|
-
]
|
|
3083
|
-
},
|
|
3084
|
-
{
|
|
3085
|
-
"name": "borrowReserveLiquidityMint",
|
|
3086
|
-
"isMut": false,
|
|
3087
|
-
"isSigner": false,
|
|
3088
|
-
"docs": ["The mint of [Self::borrow_reserve] - needed to execute the transfer."]
|
|
3089
|
-
},
|
|
3090
|
-
{
|
|
3091
|
-
"name": "reserveSourceLiquidity",
|
|
3092
|
-
"isMut": true,
|
|
3093
|
-
"isSigner": false,
|
|
3094
|
-
"docs": ["The vault of [Self::borrow_reserve], from which the funds are transferred."]
|
|
3095
|
-
},
|
|
3096
|
-
{
|
|
3097
|
-
"name": "borrowReserveLiquidityFeeReceiver",
|
|
3098
|
-
"isMut": true,
|
|
3099
|
-
"isSigner": false,
|
|
3100
|
-
"docs": ["The fee vault of [Self::borrow_reserve], to which the fees are transferred."]
|
|
3101
|
-
},
|
|
3102
|
-
{
|
|
3103
|
-
"name": "userDestinationLiquidity",
|
|
3104
|
-
"isMut": true,
|
|
3105
|
-
"isSigner": false,
|
|
3106
|
-
"docs": [
|
|
3107
|
-
"The destination token account that should receive the newly borrowed funds.",
|
|
3108
|
-
"",
|
|
3109
|
-
"It must match [BorrowOrder::filled_debt_destination], owner and mint.",
|
|
3110
|
-
"",
|
|
3111
|
-
"**Warning:** An altered destination account will prevent an order from being filled."
|
|
3112
|
-
]
|
|
3113
|
-
},
|
|
3114
|
-
{
|
|
3115
|
-
"name": "referrerTokenState",
|
|
3116
|
-
"isMut": true,
|
|
3117
|
-
"isSigner": false,
|
|
3118
|
-
"isOptional": true,
|
|
3119
|
-
"docs": ["The referrer's account, for accumulating fees - needed if the [Obligation::has_referrer]."]
|
|
3120
|
-
},
|
|
3121
|
-
{
|
|
3122
|
-
"name": "tokenProgram",
|
|
3123
|
-
"isMut": false,
|
|
3124
|
-
"isSigner": false,
|
|
3125
|
-
"docs": ["The token program of [Self::borrow_reserve] - needed to execute the transfer."]
|
|
3126
|
-
}
|
|
3127
|
-
]
|
|
3187
|
+
"name": "owner",
|
|
3188
|
+
"isMut": false,
|
|
3189
|
+
"isSigner": true
|
|
3128
3190
|
},
|
|
3129
3191
|
{
|
|
3130
|
-
"name": "
|
|
3131
|
-
"
|
|
3132
|
-
|
|
3133
|
-
"name": "obligationFarmUserState",
|
|
3134
|
-
"isMut": true,
|
|
3135
|
-
"isSigner": false,
|
|
3136
|
-
"isOptional": true
|
|
3137
|
-
},
|
|
3138
|
-
{
|
|
3139
|
-
"name": "reserveFarmState",
|
|
3140
|
-
"isMut": true,
|
|
3141
|
-
"isSigner": false,
|
|
3142
|
-
"isOptional": true
|
|
3143
|
-
}
|
|
3144
|
-
]
|
|
3192
|
+
"name": "obligation",
|
|
3193
|
+
"isMut": true,
|
|
3194
|
+
"isSigner": false
|
|
3145
3195
|
},
|
|
3146
3196
|
{
|
|
3147
|
-
"name": "
|
|
3197
|
+
"name": "lendingMarket",
|
|
3148
3198
|
"isMut": false,
|
|
3149
3199
|
"isSigner": false
|
|
3150
3200
|
},
|
|
3151
3201
|
{
|
|
3152
|
-
"name": "
|
|
3202
|
+
"name": "reserve",
|
|
3153
3203
|
"isMut": false,
|
|
3154
3204
|
"isSigner": false
|
|
3155
3205
|
},
|
|
3156
3206
|
{
|
|
3157
|
-
"name": "
|
|
3207
|
+
"name": "filledDebtDestination",
|
|
3158
3208
|
"isMut": false,
|
|
3159
3209
|
"isSigner": false
|
|
3160
|
-
}
|
|
3161
|
-
],
|
|
3162
|
-
"args": []
|
|
3163
|
-
},
|
|
3164
|
-
{
|
|
3165
|
-
"name": "initGlobalConfig",
|
|
3166
|
-
"accounts": [
|
|
3210
|
+
},
|
|
3167
3211
|
{
|
|
3168
|
-
"name": "
|
|
3169
|
-
"isMut":
|
|
3170
|
-
"isSigner":
|
|
3212
|
+
"name": "debtLiquidityMint",
|
|
3213
|
+
"isMut": false,
|
|
3214
|
+
"isSigner": false
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
"name": "instructionSysvarAccount",
|
|
3218
|
+
"isMut": false,
|
|
3219
|
+
"isSigner": false
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
"name": "eventAuthority",
|
|
3223
|
+
"isMut": false,
|
|
3224
|
+
"isSigner": false
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
"name": "program",
|
|
3228
|
+
"isMut": false,
|
|
3229
|
+
"isSigner": false
|
|
3230
|
+
}
|
|
3231
|
+
],
|
|
3232
|
+
"args": [
|
|
3233
|
+
{
|
|
3234
|
+
"name": "orderIdx",
|
|
3235
|
+
"type": "u8"
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
"name": "orderConfig",
|
|
3239
|
+
"type": {
|
|
3240
|
+
"defined": "BorrowOrderConfigArgs"
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
"name": "minExpectedCurrentRemainingDebtAmount",
|
|
3245
|
+
"type": "u64"
|
|
3246
|
+
}
|
|
3247
|
+
]
|
|
3248
|
+
},
|
|
3249
|
+
{
|
|
3250
|
+
"name": "updateObligationConfig",
|
|
3251
|
+
"accounts": [
|
|
3252
|
+
{
|
|
3253
|
+
"name": "owner",
|
|
3254
|
+
"isMut": false,
|
|
3255
|
+
"isSigner": true
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
"name": "obligation",
|
|
3259
|
+
"isMut": true,
|
|
3260
|
+
"isSigner": false
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
"name": "borrowReserve",
|
|
3264
|
+
"isMut": false,
|
|
3265
|
+
"isSigner": false,
|
|
3266
|
+
"isOptional": true
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
"name": "depositReserve",
|
|
3270
|
+
"isMut": false,
|
|
3271
|
+
"isSigner": false,
|
|
3272
|
+
"isOptional": true
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
"name": "lendingMarket",
|
|
3276
|
+
"isMut": false,
|
|
3277
|
+
"isSigner": false
|
|
3278
|
+
}
|
|
3279
|
+
],
|
|
3280
|
+
"args": [
|
|
3281
|
+
{
|
|
3282
|
+
"name": "mode",
|
|
3283
|
+
"type": {
|
|
3284
|
+
"defined": "UpdateObligationConfigMode"
|
|
3285
|
+
}
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
"name": "value",
|
|
3289
|
+
"type": "bytes"
|
|
3290
|
+
}
|
|
3291
|
+
]
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"name": "rolloverFixedTermBorrow",
|
|
3295
|
+
"accounts": [
|
|
3296
|
+
{
|
|
3297
|
+
"name": "rolloverAccounts",
|
|
3298
|
+
"accounts": [
|
|
3299
|
+
{
|
|
3300
|
+
"name": "payer",
|
|
3301
|
+
"isMut": false,
|
|
3302
|
+
"isSigner": true
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"name": "obligation",
|
|
3306
|
+
"isMut": true,
|
|
3307
|
+
"isSigner": false
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
"name": "lendingMarket",
|
|
3311
|
+
"isMut": false,
|
|
3312
|
+
"isSigner": false
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"name": "lendingMarketAuthority",
|
|
3316
|
+
"isMut": false,
|
|
3317
|
+
"isSigner": false
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "sourceBorrowReserve",
|
|
3321
|
+
"isMut": true,
|
|
3322
|
+
"isSigner": false
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "targetBorrowReserve",
|
|
3326
|
+
"isMut": true,
|
|
3327
|
+
"isSigner": false
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
"name": "liquidityMint",
|
|
3331
|
+
"isMut": false,
|
|
3332
|
+
"isSigner": false
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
"name": "sourceBorrowReserveLiquidity",
|
|
3336
|
+
"isMut": true,
|
|
3337
|
+
"isSigner": false
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"name": "targetBorrowReserveLiquidity",
|
|
3341
|
+
"isMut": true,
|
|
3342
|
+
"isSigner": false
|
|
3343
|
+
},
|
|
3344
|
+
{
|
|
3345
|
+
"name": "tokenProgram",
|
|
3346
|
+
"isMut": false,
|
|
3347
|
+
"isSigner": false
|
|
3348
|
+
}
|
|
3349
|
+
]
|
|
3350
|
+
},
|
|
3351
|
+
{
|
|
3352
|
+
"name": "sourceFarmsAccounts",
|
|
3353
|
+
"accounts": [
|
|
3354
|
+
{
|
|
3355
|
+
"name": "obligationFarmUserState",
|
|
3356
|
+
"isMut": true,
|
|
3357
|
+
"isSigner": false,
|
|
3358
|
+
"isOptional": true
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"name": "reserveFarmState",
|
|
3362
|
+
"isMut": true,
|
|
3363
|
+
"isSigner": false,
|
|
3364
|
+
"isOptional": true
|
|
3365
|
+
}
|
|
3366
|
+
]
|
|
3367
|
+
},
|
|
3368
|
+
{
|
|
3369
|
+
"name": "targetFarmsAccounts",
|
|
3370
|
+
"accounts": [
|
|
3371
|
+
{
|
|
3372
|
+
"name": "obligationFarmUserState",
|
|
3373
|
+
"isMut": true,
|
|
3374
|
+
"isSigner": false,
|
|
3375
|
+
"isOptional": true
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
"name": "reserveFarmState",
|
|
3379
|
+
"isMut": true,
|
|
3380
|
+
"isSigner": false,
|
|
3381
|
+
"isOptional": true
|
|
3382
|
+
}
|
|
3383
|
+
]
|
|
3384
|
+
},
|
|
3385
|
+
{
|
|
3386
|
+
"name": "farmsProgram",
|
|
3387
|
+
"isMut": false,
|
|
3388
|
+
"isSigner": false
|
|
3389
|
+
}
|
|
3390
|
+
],
|
|
3391
|
+
"args": []
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"name": "fillBorrowOrder",
|
|
3395
|
+
"accounts": [
|
|
3396
|
+
{
|
|
3397
|
+
"name": "borrowAccounts",
|
|
3398
|
+
"accounts": [
|
|
3399
|
+
{
|
|
3400
|
+
"name": "payer",
|
|
3401
|
+
"isMut": false,
|
|
3402
|
+
"isSigner": true
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
"name": "obligation",
|
|
3406
|
+
"isMut": true,
|
|
3407
|
+
"isSigner": false
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"name": "lendingMarket",
|
|
3411
|
+
"isMut": false,
|
|
3412
|
+
"isSigner": false
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
"name": "lendingMarketAuthority",
|
|
3416
|
+
"isMut": false,
|
|
3417
|
+
"isSigner": false
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
"name": "borrowReserve",
|
|
3421
|
+
"isMut": true,
|
|
3422
|
+
"isSigner": false
|
|
3423
|
+
},
|
|
3424
|
+
{
|
|
3425
|
+
"name": "borrowReserveLiquidityMint",
|
|
3426
|
+
"isMut": false,
|
|
3427
|
+
"isSigner": false
|
|
3428
|
+
},
|
|
3429
|
+
{
|
|
3430
|
+
"name": "reserveSourceLiquidity",
|
|
3431
|
+
"isMut": true,
|
|
3432
|
+
"isSigner": false
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
"name": "borrowReserveLiquidityFeeReceiver",
|
|
3436
|
+
"isMut": true,
|
|
3437
|
+
"isSigner": false
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
"name": "userDestinationLiquidity",
|
|
3441
|
+
"isMut": true,
|
|
3442
|
+
"isSigner": false
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
"name": "referrerTokenState",
|
|
3446
|
+
"isMut": true,
|
|
3447
|
+
"isSigner": false,
|
|
3448
|
+
"isOptional": true
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"name": "tokenProgram",
|
|
3452
|
+
"isMut": false,
|
|
3453
|
+
"isSigner": false
|
|
3454
|
+
},
|
|
3455
|
+
{
|
|
3456
|
+
"name": "instructionSysvarAccount",
|
|
3457
|
+
"isMut": false,
|
|
3458
|
+
"isSigner": false
|
|
3459
|
+
}
|
|
3460
|
+
]
|
|
3461
|
+
},
|
|
3462
|
+
{
|
|
3463
|
+
"name": "farmsAccounts",
|
|
3464
|
+
"accounts": [
|
|
3465
|
+
{
|
|
3466
|
+
"name": "obligationFarmUserState",
|
|
3467
|
+
"isMut": true,
|
|
3468
|
+
"isSigner": false,
|
|
3469
|
+
"isOptional": true
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
"name": "reserveFarmState",
|
|
3473
|
+
"isMut": true,
|
|
3474
|
+
"isSigner": false,
|
|
3475
|
+
"isOptional": true
|
|
3476
|
+
}
|
|
3477
|
+
]
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"name": "farmsProgram",
|
|
3481
|
+
"isMut": false,
|
|
3482
|
+
"isSigner": false
|
|
3483
|
+
},
|
|
3484
|
+
{
|
|
3485
|
+
"name": "eventAuthority",
|
|
3486
|
+
"isMut": false,
|
|
3487
|
+
"isSigner": false
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
"name": "program",
|
|
3491
|
+
"isMut": false,
|
|
3492
|
+
"isSigner": false
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3495
|
+
"args": []
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
"name": "fillBorrowOrderV2",
|
|
3499
|
+
"accounts": [
|
|
3500
|
+
{
|
|
3501
|
+
"name": "borrowAccounts",
|
|
3502
|
+
"accounts": [
|
|
3503
|
+
{
|
|
3504
|
+
"name": "payer",
|
|
3505
|
+
"isMut": false,
|
|
3506
|
+
"isSigner": true
|
|
3507
|
+
},
|
|
3508
|
+
{
|
|
3509
|
+
"name": "obligation",
|
|
3510
|
+
"isMut": true,
|
|
3511
|
+
"isSigner": false
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
"name": "lendingMarket",
|
|
3515
|
+
"isMut": false,
|
|
3516
|
+
"isSigner": false
|
|
3517
|
+
},
|
|
3518
|
+
{
|
|
3519
|
+
"name": "lendingMarketAuthority",
|
|
3520
|
+
"isMut": false,
|
|
3521
|
+
"isSigner": false
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
"name": "borrowReserve",
|
|
3525
|
+
"isMut": true,
|
|
3526
|
+
"isSigner": false
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
"name": "borrowReserveLiquidityMint",
|
|
3530
|
+
"isMut": false,
|
|
3531
|
+
"isSigner": false
|
|
3532
|
+
},
|
|
3533
|
+
{
|
|
3534
|
+
"name": "reserveSourceLiquidity",
|
|
3535
|
+
"isMut": true,
|
|
3536
|
+
"isSigner": false
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
"name": "borrowReserveLiquidityFeeReceiver",
|
|
3540
|
+
"isMut": true,
|
|
3541
|
+
"isSigner": false
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"name": "userDestinationLiquidity",
|
|
3545
|
+
"isMut": true,
|
|
3546
|
+
"isSigner": false
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"name": "referrerTokenState",
|
|
3550
|
+
"isMut": true,
|
|
3551
|
+
"isSigner": false,
|
|
3552
|
+
"isOptional": true
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "tokenProgram",
|
|
3556
|
+
"isMut": false,
|
|
3557
|
+
"isSigner": false
|
|
3558
|
+
},
|
|
3559
|
+
{
|
|
3560
|
+
"name": "instructionSysvarAccount",
|
|
3561
|
+
"isMut": false,
|
|
3562
|
+
"isSigner": false
|
|
3563
|
+
}
|
|
3564
|
+
]
|
|
3565
|
+
},
|
|
3566
|
+
{
|
|
3567
|
+
"name": "farmsAccounts",
|
|
3568
|
+
"accounts": [
|
|
3569
|
+
{
|
|
3570
|
+
"name": "obligationFarmUserState",
|
|
3571
|
+
"isMut": true,
|
|
3572
|
+
"isSigner": false,
|
|
3573
|
+
"isOptional": true
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
"name": "reserveFarmState",
|
|
3577
|
+
"isMut": true,
|
|
3578
|
+
"isSigner": false,
|
|
3579
|
+
"isOptional": true
|
|
3580
|
+
}
|
|
3581
|
+
]
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"name": "farmsProgram",
|
|
3585
|
+
"isMut": false,
|
|
3586
|
+
"isSigner": false
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"name": "eventAuthority",
|
|
3590
|
+
"isMut": false,
|
|
3591
|
+
"isSigner": false
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
"name": "program",
|
|
3595
|
+
"isMut": false,
|
|
3596
|
+
"isSigner": false
|
|
3597
|
+
}
|
|
3598
|
+
],
|
|
3599
|
+
"args": [
|
|
3600
|
+
{
|
|
3601
|
+
"name": "orderIdx",
|
|
3602
|
+
"type": "u8"
|
|
3603
|
+
}
|
|
3604
|
+
]
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
"name": "initiateObligationOwnershipTransfer",
|
|
3608
|
+
"accounts": [
|
|
3609
|
+
{
|
|
3610
|
+
"name": "owner",
|
|
3611
|
+
"isMut": false,
|
|
3612
|
+
"isSigner": true
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
"name": "obligation",
|
|
3616
|
+
"isMut": true,
|
|
3617
|
+
"isSigner": false
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
"name": "instructionSysvarAccount",
|
|
3621
|
+
"isMut": false,
|
|
3622
|
+
"isSigner": false
|
|
3623
|
+
}
|
|
3624
|
+
],
|
|
3625
|
+
"args": [
|
|
3626
|
+
{
|
|
3627
|
+
"name": "newOwner",
|
|
3628
|
+
"type": "publicKey"
|
|
3629
|
+
}
|
|
3630
|
+
]
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "approveObligationOwnershipTransfer",
|
|
3634
|
+
"accounts": [
|
|
3635
|
+
{
|
|
3636
|
+
"name": "globalAdmin",
|
|
3637
|
+
"isMut": false,
|
|
3638
|
+
"isSigner": true
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"name": "globalConfig",
|
|
3642
|
+
"isMut": false,
|
|
3643
|
+
"isSigner": false
|
|
3644
|
+
},
|
|
3645
|
+
{
|
|
3646
|
+
"name": "obligation",
|
|
3647
|
+
"isMut": true,
|
|
3648
|
+
"isSigner": false
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
"name": "pendingOwner",
|
|
3652
|
+
"isMut": false,
|
|
3653
|
+
"isSigner": false
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
"name": "instructionSysvarAccount",
|
|
3657
|
+
"isMut": false,
|
|
3658
|
+
"isSigner": false
|
|
3659
|
+
}
|
|
3660
|
+
],
|
|
3661
|
+
"args": []
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
"name": "acceptObligationOwnership",
|
|
3665
|
+
"accounts": [
|
|
3666
|
+
{
|
|
3667
|
+
"name": "pendingOwner",
|
|
3668
|
+
"isMut": false,
|
|
3669
|
+
"isSigner": true
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
"name": "obligation",
|
|
3673
|
+
"isMut": true,
|
|
3674
|
+
"isSigner": false
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"name": "instructionSysvarAccount",
|
|
3678
|
+
"isMut": false,
|
|
3679
|
+
"isSigner": false
|
|
3680
|
+
}
|
|
3681
|
+
],
|
|
3682
|
+
"args": []
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "abortObligationOwnershipTransfer",
|
|
3686
|
+
"accounts": [
|
|
3687
|
+
{
|
|
3688
|
+
"name": "owner",
|
|
3689
|
+
"isMut": false,
|
|
3690
|
+
"isSigner": true
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
"name": "obligation",
|
|
3694
|
+
"isMut": true,
|
|
3695
|
+
"isSigner": false
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
"name": "instructionSysvarAccount",
|
|
3699
|
+
"isMut": false,
|
|
3700
|
+
"isSigner": false
|
|
3701
|
+
}
|
|
3702
|
+
],
|
|
3703
|
+
"args": []
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
"name": "enqueueToWithdraw",
|
|
3707
|
+
"accounts": [
|
|
3708
|
+
{
|
|
3709
|
+
"name": "owner",
|
|
3710
|
+
"isMut": true,
|
|
3711
|
+
"isSigner": true
|
|
3712
|
+
},
|
|
3713
|
+
{
|
|
3714
|
+
"name": "lendingMarket",
|
|
3715
|
+
"isMut": false,
|
|
3716
|
+
"isSigner": false
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
"name": "lendingMarketAuthority",
|
|
3720
|
+
"isMut": false,
|
|
3721
|
+
"isSigner": false
|
|
3722
|
+
},
|
|
3723
|
+
{
|
|
3724
|
+
"name": "reserve",
|
|
3725
|
+
"isMut": true,
|
|
3726
|
+
"isSigner": false
|
|
3727
|
+
},
|
|
3728
|
+
{
|
|
3729
|
+
"name": "userSourceCollateralTa",
|
|
3730
|
+
"isMut": true,
|
|
3731
|
+
"isSigner": false
|
|
3732
|
+
},
|
|
3733
|
+
{
|
|
3734
|
+
"name": "userDestinationLiquidityTa",
|
|
3735
|
+
"isMut": false,
|
|
3736
|
+
"isSigner": false
|
|
3737
|
+
},
|
|
3738
|
+
{
|
|
3739
|
+
"name": "reserveLiquidityMint",
|
|
3740
|
+
"isMut": false,
|
|
3741
|
+
"isSigner": false
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"name": "reserveCollateralMint",
|
|
3745
|
+
"isMut": false,
|
|
3746
|
+
"isSigner": false
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"name": "collateralTokenProgram",
|
|
3750
|
+
"isMut": false,
|
|
3751
|
+
"isSigner": false
|
|
3752
|
+
},
|
|
3753
|
+
{
|
|
3754
|
+
"name": "withdrawTicket",
|
|
3755
|
+
"isMut": true,
|
|
3756
|
+
"isSigner": false
|
|
3757
|
+
},
|
|
3758
|
+
{
|
|
3759
|
+
"name": "ownerQueuedCollateralVault",
|
|
3760
|
+
"isMut": true,
|
|
3761
|
+
"isSigner": false
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
"name": "systemProgram",
|
|
3765
|
+
"isMut": false,
|
|
3766
|
+
"isSigner": false
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"name": "progressCallbackCustomAccount0",
|
|
3770
|
+
"isMut": false,
|
|
3771
|
+
"isSigner": false,
|
|
3772
|
+
"isOptional": true
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
"name": "progressCallbackCustomAccount1",
|
|
3776
|
+
"isMut": false,
|
|
3777
|
+
"isSigner": false,
|
|
3778
|
+
"isOptional": true
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
"name": "instructionSysvarAccount",
|
|
3782
|
+
"isMut": false,
|
|
3783
|
+
"isSigner": false
|
|
3784
|
+
}
|
|
3785
|
+
],
|
|
3786
|
+
"args": [
|
|
3787
|
+
{
|
|
3788
|
+
"name": "collateralAmount",
|
|
3789
|
+
"type": "u64"
|
|
3790
|
+
},
|
|
3791
|
+
{
|
|
3792
|
+
"name": "progressCallbackType",
|
|
3793
|
+
"type": {
|
|
3794
|
+
"defined": "ProgressCallbackType"
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
]
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"name": "withdrawQueuedLiquidity",
|
|
3801
|
+
"accounts": [
|
|
3802
|
+
{
|
|
3803
|
+
"name": "payer",
|
|
3804
|
+
"isMut": true,
|
|
3805
|
+
"isSigner": true
|
|
3806
|
+
},
|
|
3807
|
+
{
|
|
3808
|
+
"name": "lendingMarket",
|
|
3809
|
+
"isMut": false,
|
|
3810
|
+
"isSigner": false
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"name": "lendingMarketAuthority",
|
|
3814
|
+
"isMut": false,
|
|
3815
|
+
"isSigner": false
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"name": "reserve",
|
|
3819
|
+
"isMut": true,
|
|
3820
|
+
"isSigner": false
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
"name": "reserveLiquidityMint",
|
|
3824
|
+
"isMut": false,
|
|
3825
|
+
"isSigner": false
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
"name": "reserveCollateralMint",
|
|
3829
|
+
"isMut": true,
|
|
3830
|
+
"isSigner": false
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"name": "reserveLiquiditySupply",
|
|
3834
|
+
"isMut": true,
|
|
3835
|
+
"isSigner": false
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
"name": "ownerQueuedCollateralVault",
|
|
3839
|
+
"isMut": true,
|
|
3840
|
+
"isSigner": false
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"name": "userDestinationLiquidity",
|
|
3844
|
+
"isMut": true,
|
|
3845
|
+
"isSigner": false
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
"name": "collateralTokenProgram",
|
|
3849
|
+
"isMut": false,
|
|
3850
|
+
"isSigner": false
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
"name": "liquidityTokenProgram",
|
|
3854
|
+
"isMut": false,
|
|
3855
|
+
"isSigner": false
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"name": "withdrawTicket",
|
|
3859
|
+
"isMut": true,
|
|
3860
|
+
"isSigner": false
|
|
3861
|
+
},
|
|
3862
|
+
{
|
|
3863
|
+
"name": "withdrawTicketOwner",
|
|
3864
|
+
"isMut": true,
|
|
3865
|
+
"isSigner": false
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"name": "associatedTokenProgram",
|
|
3869
|
+
"isMut": false,
|
|
3870
|
+
"isSigner": false
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
"name": "systemProgram",
|
|
3874
|
+
"isMut": false,
|
|
3875
|
+
"isSigner": false
|
|
3876
|
+
},
|
|
3877
|
+
{
|
|
3878
|
+
"name": "progressCallbackProgram",
|
|
3879
|
+
"isMut": false,
|
|
3880
|
+
"isSigner": false,
|
|
3881
|
+
"isOptional": true
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
"name": "progressCallbackCustomAccount0",
|
|
3885
|
+
"isMut": false,
|
|
3886
|
+
"isSigner": false,
|
|
3887
|
+
"isOptional": true
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
"name": "progressCallbackCustomAccount1",
|
|
3891
|
+
"isMut": false,
|
|
3892
|
+
"isSigner": false,
|
|
3893
|
+
"isOptional": true
|
|
3894
|
+
},
|
|
3895
|
+
{
|
|
3896
|
+
"name": "instructionSysvarAccount",
|
|
3897
|
+
"isMut": false,
|
|
3898
|
+
"isSigner": false
|
|
3899
|
+
}
|
|
3900
|
+
],
|
|
3901
|
+
"args": [],
|
|
3902
|
+
"returns": "bool"
|
|
3903
|
+
},
|
|
3904
|
+
{
|
|
3905
|
+
"name": "recoverInvalidTicketCollateral",
|
|
3906
|
+
"accounts": [
|
|
3907
|
+
{
|
|
3908
|
+
"name": "payer",
|
|
3909
|
+
"isMut": false,
|
|
3910
|
+
"isSigner": true
|
|
3911
|
+
},
|
|
3912
|
+
{
|
|
3913
|
+
"name": "lendingMarket",
|
|
3914
|
+
"isMut": false,
|
|
3915
|
+
"isSigner": false
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
"name": "lendingMarketAuthority",
|
|
3919
|
+
"isMut": false,
|
|
3920
|
+
"isSigner": false
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"name": "reserve",
|
|
3924
|
+
"isMut": false,
|
|
3925
|
+
"isSigner": false
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
"name": "reserveCollateralMint",
|
|
3929
|
+
"isMut": false,
|
|
3930
|
+
"isSigner": false
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
"name": "ownerQueuedCollateralVault",
|
|
3934
|
+
"isMut": true,
|
|
3935
|
+
"isSigner": false
|
|
3936
|
+
},
|
|
3937
|
+
{
|
|
3938
|
+
"name": "userSourceCollateral",
|
|
3939
|
+
"isMut": true,
|
|
3940
|
+
"isSigner": false
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
"name": "collateralTokenProgram",
|
|
3944
|
+
"isMut": false,
|
|
3945
|
+
"isSigner": false
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
"name": "withdrawTicket",
|
|
3949
|
+
"isMut": true,
|
|
3950
|
+
"isSigner": false
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
"name": "withdrawTicketOwner",
|
|
3954
|
+
"isMut": true,
|
|
3955
|
+
"isSigner": false
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
"name": "instructionSysvarAccount",
|
|
3959
|
+
"isMut": false,
|
|
3960
|
+
"isSigner": false
|
|
3961
|
+
}
|
|
3962
|
+
],
|
|
3963
|
+
"args": [
|
|
3964
|
+
{
|
|
3965
|
+
"name": "ticketSequenceNumber",
|
|
3966
|
+
"type": "u64"
|
|
3967
|
+
}
|
|
3968
|
+
]
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
"name": "cancelWithdrawTicket",
|
|
3972
|
+
"accounts": [
|
|
3973
|
+
{
|
|
3974
|
+
"name": "owner",
|
|
3975
|
+
"isMut": false,
|
|
3976
|
+
"isSigner": true
|
|
3977
|
+
},
|
|
3978
|
+
{
|
|
3979
|
+
"name": "lendingMarket",
|
|
3980
|
+
"isMut": false,
|
|
3981
|
+
"isSigner": false
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
"name": "lendingMarketAuthority",
|
|
3985
|
+
"isMut": false,
|
|
3986
|
+
"isSigner": false
|
|
3987
|
+
},
|
|
3988
|
+
{
|
|
3989
|
+
"name": "reserve",
|
|
3990
|
+
"isMut": true,
|
|
3991
|
+
"isSigner": false
|
|
3992
|
+
},
|
|
3993
|
+
{
|
|
3994
|
+
"name": "reserveCollateralMint",
|
|
3995
|
+
"isMut": false,
|
|
3996
|
+
"isSigner": false
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
"name": "ownerQueuedCollateralVault",
|
|
4000
|
+
"isMut": true,
|
|
4001
|
+
"isSigner": false
|
|
4002
|
+
},
|
|
4003
|
+
{
|
|
4004
|
+
"name": "userDestinationCollateral",
|
|
4005
|
+
"isMut": true,
|
|
4006
|
+
"isSigner": false
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
"name": "collateralTokenProgram",
|
|
4010
|
+
"isMut": false,
|
|
4011
|
+
"isSigner": false
|
|
4012
|
+
},
|
|
4013
|
+
{
|
|
4014
|
+
"name": "withdrawTicket",
|
|
4015
|
+
"isMut": true,
|
|
4016
|
+
"isSigner": false
|
|
4017
|
+
}
|
|
4018
|
+
],
|
|
4019
|
+
"args": [
|
|
4020
|
+
{
|
|
4021
|
+
"name": "ticketSequenceNumber",
|
|
4022
|
+
"type": "u64"
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
"name": "collateralAmountToCancel",
|
|
4026
|
+
"type": "u64"
|
|
4027
|
+
}
|
|
4028
|
+
]
|
|
4029
|
+
},
|
|
4030
|
+
{
|
|
4031
|
+
"name": "initGlobalConfig",
|
|
4032
|
+
"accounts": [
|
|
4033
|
+
{
|
|
4034
|
+
"name": "payer",
|
|
4035
|
+
"isMut": true,
|
|
4036
|
+
"isSigner": true
|
|
3171
4037
|
},
|
|
3172
4038
|
{
|
|
3173
4039
|
"name": "globalConfig",
|
|
@@ -3188,6 +4054,11 @@
|
|
|
3188
4054
|
"name": "rent",
|
|
3189
4055
|
"isMut": false,
|
|
3190
4056
|
"isSigner": false
|
|
4057
|
+
},
|
|
4058
|
+
{
|
|
4059
|
+
"name": "instructionSysvarAccount",
|
|
4060
|
+
"isMut": false,
|
|
4061
|
+
"isSigner": false
|
|
3191
4062
|
}
|
|
3192
4063
|
],
|
|
3193
4064
|
"args": []
|
|
@@ -3204,6 +4075,11 @@
|
|
|
3204
4075
|
"name": "globalConfig",
|
|
3205
4076
|
"isMut": true,
|
|
3206
4077
|
"isSigner": false
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
"name": "instructionSysvarAccount",
|
|
4081
|
+
"isMut": false,
|
|
4082
|
+
"isSigner": false
|
|
3207
4083
|
}
|
|
3208
4084
|
],
|
|
3209
4085
|
"args": [
|
|
@@ -3231,6 +4107,11 @@
|
|
|
3231
4107
|
"name": "globalConfig",
|
|
3232
4108
|
"isMut": true,
|
|
3233
4109
|
"isSigner": false
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
"name": "instructionSysvarAccount",
|
|
4113
|
+
"isMut": false,
|
|
4114
|
+
"isSigner": false
|
|
3234
4115
|
}
|
|
3235
4116
|
],
|
|
3236
4117
|
"args": []
|
|
@@ -3257,6 +4138,11 @@
|
|
|
3257
4138
|
"name": "reserve",
|
|
3258
4139
|
"isMut": true,
|
|
3259
4140
|
"isSigner": false
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"name": "instructionSysvarAccount",
|
|
4144
|
+
"isMut": false,
|
|
4145
|
+
"isSigner": false
|
|
3260
4146
|
}
|
|
3261
4147
|
],
|
|
3262
4148
|
"args": [
|
|
@@ -3324,25 +4210,37 @@
|
|
|
3324
4210
|
{
|
|
3325
4211
|
"name": "padding0",
|
|
3326
4212
|
"type": {
|
|
3327
|
-
"array": [
|
|
4213
|
+
"array": [
|
|
4214
|
+
"u8",
|
|
4215
|
+
7
|
|
4216
|
+
]
|
|
3328
4217
|
}
|
|
3329
4218
|
},
|
|
3330
4219
|
{
|
|
3331
4220
|
"name": "rewardsTallyScaled",
|
|
3332
4221
|
"type": {
|
|
3333
|
-
"array": [
|
|
4222
|
+
"array": [
|
|
4223
|
+
"u128",
|
|
4224
|
+
10
|
|
4225
|
+
]
|
|
3334
4226
|
}
|
|
3335
4227
|
},
|
|
3336
4228
|
{
|
|
3337
4229
|
"name": "rewardsIssuedUnclaimed",
|
|
3338
4230
|
"type": {
|
|
3339
|
-
"array": [
|
|
4231
|
+
"array": [
|
|
4232
|
+
"u64",
|
|
4233
|
+
10
|
|
4234
|
+
]
|
|
3340
4235
|
}
|
|
3341
4236
|
},
|
|
3342
4237
|
{
|
|
3343
4238
|
"name": "lastClaimTs",
|
|
3344
4239
|
"type": {
|
|
3345
|
-
"array": [
|
|
4240
|
+
"array": [
|
|
4241
|
+
"u64",
|
|
4242
|
+
10
|
|
4243
|
+
]
|
|
3346
4244
|
}
|
|
3347
4245
|
},
|
|
3348
4246
|
{
|
|
@@ -3380,7 +4278,10 @@
|
|
|
3380
4278
|
{
|
|
3381
4279
|
"name": "padding1",
|
|
3382
4280
|
"type": {
|
|
3383
|
-
"array": [
|
|
4281
|
+
"array": [
|
|
4282
|
+
"u64",
|
|
4283
|
+
50
|
|
4284
|
+
]
|
|
3384
4285
|
}
|
|
3385
4286
|
}
|
|
3386
4287
|
]
|
|
@@ -3393,24 +4294,23 @@
|
|
|
3393
4294
|
"fields": [
|
|
3394
4295
|
{
|
|
3395
4296
|
"name": "globalAdmin",
|
|
3396
|
-
"docs": ["Global admin of the program"],
|
|
3397
4297
|
"type": "publicKey"
|
|
3398
4298
|
},
|
|
3399
4299
|
{
|
|
3400
4300
|
"name": "pendingAdmin",
|
|
3401
|
-
"docs": ["Pending admin must sign a specific transaction to become the global admin"],
|
|
3402
4301
|
"type": "publicKey"
|
|
3403
4302
|
},
|
|
3404
4303
|
{
|
|
3405
4304
|
"name": "feeCollector",
|
|
3406
|
-
"docs": ["Fee collector is the only allowed owner of token accounts receiving protocol fees"],
|
|
3407
4305
|
"type": "publicKey"
|
|
3408
4306
|
},
|
|
3409
4307
|
{
|
|
3410
4308
|
"name": "padding",
|
|
3411
|
-
"docs": ["Padding to make the struct size 1024 bytes"],
|
|
3412
4309
|
"type": {
|
|
3413
|
-
"array": [
|
|
4310
|
+
"array": [
|
|
4311
|
+
"u8",
|
|
4312
|
+
928
|
|
4313
|
+
]
|
|
3414
4314
|
}
|
|
3415
4315
|
}
|
|
3416
4316
|
]
|
|
@@ -3423,37 +4323,31 @@
|
|
|
3423
4323
|
"fields": [
|
|
3424
4324
|
{
|
|
3425
4325
|
"name": "version",
|
|
3426
|
-
"docs": ["Version of lending market"],
|
|
3427
4326
|
"type": "u64"
|
|
3428
4327
|
},
|
|
3429
4328
|
{
|
|
3430
4329
|
"name": "bumpSeed",
|
|
3431
|
-
"docs": ["Bump seed for derived authority address"],
|
|
3432
4330
|
"type": "u64"
|
|
3433
4331
|
},
|
|
3434
4332
|
{
|
|
3435
4333
|
"name": "lendingMarketOwner",
|
|
3436
|
-
"docs": ["Owner authority which can add new reserves"],
|
|
3437
4334
|
"type": "publicKey"
|
|
3438
4335
|
},
|
|
3439
4336
|
{
|
|
3440
4337
|
"name": "lendingMarketOwnerCached",
|
|
3441
|
-
"docs": ["Temporary cache of the lending market owner, used in update_lending_market_owner"],
|
|
3442
4338
|
"type": "publicKey"
|
|
3443
4339
|
},
|
|
3444
4340
|
{
|
|
3445
4341
|
"name": "quoteCurrency",
|
|
3446
|
-
"docs": [
|
|
3447
|
-
"Currency market prices are quoted in",
|
|
3448
|
-
"e.g. \"USD\" null padded (`*b\"USD\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\\0\"`) or a SPL token mint pubkey"
|
|
3449
|
-
],
|
|
3450
4342
|
"type": {
|
|
3451
|
-
"array": [
|
|
4343
|
+
"array": [
|
|
4344
|
+
"u8",
|
|
4345
|
+
32
|
|
4346
|
+
]
|
|
3452
4347
|
}
|
|
3453
4348
|
},
|
|
3454
4349
|
{
|
|
3455
4350
|
"name": "referralFeeBps",
|
|
3456
|
-
"docs": ["Referral fee for the lending market, as bps out of the total protocol fee"],
|
|
3457
4351
|
"type": "u16"
|
|
3458
4352
|
},
|
|
3459
4353
|
{
|
|
@@ -3462,12 +4356,6 @@
|
|
|
3462
4356
|
},
|
|
3463
4357
|
{
|
|
3464
4358
|
"name": "autodeleverageEnabled",
|
|
3465
|
-
"docs": [
|
|
3466
|
-
"Whether the obligations on this market should be subject to auto-deleveraging after deposit",
|
|
3467
|
-
"or borrow limit is crossed.",
|
|
3468
|
-
"Besides this flag, the particular reserve's flag also needs to be enabled (logical `AND`).",
|
|
3469
|
-
"**NOTE:** this also affects the individual \"target LTV\" deleveraging."
|
|
3470
|
-
],
|
|
3471
4359
|
"type": "u8"
|
|
3472
4360
|
},
|
|
3473
4361
|
{
|
|
@@ -3476,64 +4364,52 @@
|
|
|
3476
4364
|
},
|
|
3477
4365
|
{
|
|
3478
4366
|
"name": "priceRefreshTriggerToMaxAgePct",
|
|
3479
|
-
"docs": [
|
|
3480
|
-
"Refresh price from oracle only if it's older than this percentage of the price max age.",
|
|
3481
|
-
"e.g. if the max age is set to 100s and this is set to 80%, the price will be refreshed if it's older than 80s.",
|
|
3482
|
-
"Price is always refreshed if this set to 0."
|
|
3483
|
-
],
|
|
3484
4367
|
"type": "u8"
|
|
3485
4368
|
},
|
|
3486
4369
|
{
|
|
3487
4370
|
"name": "liquidationMaxDebtCloseFactorPct",
|
|
3488
|
-
"docs": ["Percentage of the total borrowed value in an obligation available for liquidation"],
|
|
3489
4371
|
"type": "u8"
|
|
3490
4372
|
},
|
|
3491
4373
|
{
|
|
3492
4374
|
"name": "insolvencyRiskUnhealthyLtvPct",
|
|
3493
|
-
"docs": ["Minimum acceptable unhealthy LTV before max_debt_close_factor_pct becomes 100%"],
|
|
3494
4375
|
"type": "u8"
|
|
3495
4376
|
},
|
|
3496
4377
|
{
|
|
3497
4378
|
"name": "minFullLiquidationValueThreshold",
|
|
3498
|
-
"docs": ["Minimum liquidation value threshold triggering full liquidation for an obligation"],
|
|
3499
4379
|
"type": "u64"
|
|
3500
4380
|
},
|
|
3501
4381
|
{
|
|
3502
4382
|
"name": "maxLiquidatableDebtMarketValueAtOnce",
|
|
3503
|
-
"docs": ["Max allowed liquidation value in one ix call"],
|
|
3504
4383
|
"type": "u64"
|
|
3505
4384
|
},
|
|
3506
4385
|
{
|
|
3507
4386
|
"name": "reserved0",
|
|
3508
|
-
"docs": ["[DEPRECATED] Global maximum unhealthy borrow value allowed for any obligation"],
|
|
3509
4387
|
"type": {
|
|
3510
|
-
"array": [
|
|
4388
|
+
"array": [
|
|
4389
|
+
"u8",
|
|
4390
|
+
8
|
|
4391
|
+
]
|
|
3511
4392
|
}
|
|
3512
4393
|
},
|
|
3513
4394
|
{
|
|
3514
4395
|
"name": "globalAllowedBorrowValue",
|
|
3515
|
-
"docs": ["Global maximum allowed borrow value allowed for any obligation"],
|
|
3516
4396
|
"type": "u64"
|
|
3517
4397
|
},
|
|
3518
4398
|
{
|
|
3519
|
-
"name": "
|
|
3520
|
-
"docs": [
|
|
3521
|
-
"The address of the risk council, in charge of making parameter and risk decisions on behalf of the protocol"
|
|
3522
|
-
],
|
|
4399
|
+
"name": "emergencyCouncil",
|
|
3523
4400
|
"type": "publicKey"
|
|
3524
4401
|
},
|
|
3525
4402
|
{
|
|
3526
4403
|
"name": "reserved1",
|
|
3527
|
-
"docs": ["[DEPRECATED] Reward points multiplier per obligation type"],
|
|
3528
4404
|
"type": {
|
|
3529
|
-
"array": [
|
|
4405
|
+
"array": [
|
|
4406
|
+
"u8",
|
|
4407
|
+
8
|
|
4408
|
+
]
|
|
3530
4409
|
}
|
|
3531
4410
|
},
|
|
3532
4411
|
{
|
|
3533
4412
|
"name": "elevationGroups",
|
|
3534
|
-
"docs": [
|
|
3535
|
-
"Elevation groups are used to group together reserves that have the same risk parameters and can bump the ltv and liquidation threshold"
|
|
3536
|
-
],
|
|
3537
4413
|
"type": {
|
|
3538
4414
|
"array": [
|
|
3539
4415
|
{
|
|
@@ -3546,119 +4422,144 @@
|
|
|
3546
4422
|
{
|
|
3547
4423
|
"name": "elevationGroupPadding",
|
|
3548
4424
|
"type": {
|
|
3549
|
-
"array": [
|
|
4425
|
+
"array": [
|
|
4426
|
+
"u64",
|
|
4427
|
+
90
|
|
4428
|
+
]
|
|
3550
4429
|
}
|
|
3551
4430
|
},
|
|
3552
4431
|
{
|
|
3553
4432
|
"name": "minNetValueInObligationSf",
|
|
3554
|
-
"docs": [
|
|
3555
|
-
"Min net value accepted to be found in a position after any lending action in an obligation (scaled by quote currency decimals)"
|
|
3556
|
-
],
|
|
3557
4433
|
"type": "u128"
|
|
3558
4434
|
},
|
|
3559
4435
|
{
|
|
3560
4436
|
"name": "minValueSkipLiquidationLtvChecks",
|
|
3561
|
-
"docs": ["Minimum value to enforce smallest ltv priority checks on the collateral reserves on liquidation"],
|
|
3562
4437
|
"type": "u64"
|
|
3563
4438
|
},
|
|
3564
4439
|
{
|
|
3565
4440
|
"name": "name",
|
|
3566
|
-
"docs": ["Market name, zero-padded."],
|
|
3567
4441
|
"type": {
|
|
3568
|
-
"array": [
|
|
4442
|
+
"array": [
|
|
4443
|
+
"u8",
|
|
4444
|
+
32
|
|
4445
|
+
]
|
|
3569
4446
|
}
|
|
3570
4447
|
},
|
|
3571
4448
|
{
|
|
3572
4449
|
"name": "minValueSkipLiquidationBfChecks",
|
|
3573
|
-
"docs": [
|
|
3574
|
-
"Minimum value to enforce highest borrow factor priority checks on the debt reserves on liquidation"
|
|
3575
|
-
],
|
|
3576
4450
|
"type": "u64"
|
|
3577
4451
|
},
|
|
3578
4452
|
{
|
|
3579
4453
|
"name": "individualAutodeleverageMarginCallPeriodSecs",
|
|
3580
|
-
"docs": [
|
|
3581
|
-
"Time (in seconds) that must pass before liquidation is allowed on an obligation that has",
|
|
3582
|
-
"been individually marked for auto-deleveraging (by the risk council)."
|
|
3583
|
-
],
|
|
3584
4454
|
"type": "u64"
|
|
3585
4455
|
},
|
|
3586
4456
|
{
|
|
3587
4457
|
"name": "minInitialDepositAmount",
|
|
3588
|
-
"docs": [
|
|
3589
|
-
"Minimum amount of deposit at creation of a reserve to prevent artificial inflation",
|
|
3590
|
-
"Note: this amount cannot be recovered, the ctoken associated are never minted"
|
|
3591
|
-
],
|
|
3592
4458
|
"type": "u64"
|
|
3593
4459
|
},
|
|
3594
4460
|
{
|
|
3595
4461
|
"name": "obligationOrderExecutionEnabled",
|
|
3596
|
-
"docs": ["Whether the obligation orders should be evaluated during liquidations."],
|
|
3597
4462
|
"type": "u8"
|
|
3598
4463
|
},
|
|
3599
4464
|
{
|
|
3600
4465
|
"name": "immutable",
|
|
3601
|
-
"docs": ["Whether the lending market is set as immutable."],
|
|
3602
4466
|
"type": "u8"
|
|
3603
4467
|
},
|
|
3604
4468
|
{
|
|
3605
4469
|
"name": "obligationOrderCreationEnabled",
|
|
3606
|
-
"docs": [
|
|
3607
|
-
"Whether new obligation orders can be created.",
|
|
3608
|
-
"Note: updating or cancelling existing orders is *not* affected by this flag."
|
|
3609
|
-
],
|
|
3610
4470
|
"type": "u8"
|
|
3611
4471
|
},
|
|
3612
4472
|
{
|
|
3613
4473
|
"name": "priceTriggeredLiquidationDisabled",
|
|
3614
|
-
"docs": [
|
|
3615
|
-
"Whether the liquidation operations that are triggered by price changes should be disabled.",
|
|
3616
|
-
"This includes regular liquidation (i.e. LTV exceeding the unhealthy threshold) and some",
|
|
3617
|
-
"obligation orders' execution.",
|
|
3618
|
-
"",
|
|
3619
|
-
"*Caution:* this flag is *disabling* the liquidations when `1` - contrary to all the other",
|
|
3620
|
-
"liquidation-driving flags (see e.g. [Self::autodeleverage_enabled])."
|
|
3621
|
-
],
|
|
3622
4474
|
"type": "u8"
|
|
3623
4475
|
},
|
|
3624
4476
|
{
|
|
3625
4477
|
"name": "matureReserveDebtLiquidationEnabled",
|
|
3626
|
-
"docs": [
|
|
3627
|
-
"Whether the debts that reached their reserve's [ReserveConfig::debt_maturity_timestamp] can",
|
|
3628
|
-
"be liquidated."
|
|
3629
|
-
],
|
|
3630
4478
|
"type": "u8"
|
|
3631
4479
|
},
|
|
3632
4480
|
{
|
|
3633
4481
|
"name": "obligationBorrowDebtTermLiquidationEnabled",
|
|
3634
|
-
"docs": [
|
|
3635
|
-
"Whether the [Obligation::borrows] that reached their [ReserveConfig::debt_term_seconds] can",
|
|
3636
|
-
"be liquidated."
|
|
3637
|
-
],
|
|
3638
4482
|
"type": "u8"
|
|
3639
4483
|
},
|
|
3640
4484
|
{
|
|
3641
4485
|
"name": "borrowOrderCreationEnabled",
|
|
3642
|
-
"docs": [
|
|
3643
|
-
"Whether new borrow orders can be created.",
|
|
3644
|
-
"Note: updating or cancelling existing orders is *not* affected by this flag."
|
|
3645
|
-
],
|
|
3646
4486
|
"type": "u8"
|
|
3647
4487
|
},
|
|
3648
4488
|
{
|
|
3649
4489
|
"name": "borrowOrderExecutionEnabled",
|
|
3650
|
-
"docs": ["Whether the existing borrow orders can be filled."],
|
|
3651
4490
|
"type": "u8"
|
|
3652
4491
|
},
|
|
3653
4492
|
{
|
|
3654
4493
|
"name": "proposerAuthority",
|
|
3655
|
-
"docs": ["Authority that can propose creating of new reserves but cannot enable them."],
|
|
3656
4494
|
"type": "publicKey"
|
|
3657
4495
|
},
|
|
4496
|
+
{
|
|
4497
|
+
"name": "minBorrowOrderFillValue",
|
|
4498
|
+
"type": "u64"
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"name": "withdrawTicketIssuanceEnabled",
|
|
4502
|
+
"type": "u8"
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
"name": "withdrawTicketRedemptionEnabled",
|
|
4506
|
+
"type": "u8"
|
|
4507
|
+
},
|
|
4508
|
+
{
|
|
4509
|
+
"name": "obligationBorrowRolloverConfigurationEnabled",
|
|
4510
|
+
"type": "u8"
|
|
4511
|
+
},
|
|
4512
|
+
{
|
|
4513
|
+
"name": "obligationBorrowMigrationToFixedExecutionEnabled",
|
|
4514
|
+
"type": "u8"
|
|
4515
|
+
},
|
|
4516
|
+
{
|
|
4517
|
+
"name": "withdrawTicketCancellationEnabled",
|
|
4518
|
+
"type": "u8"
|
|
4519
|
+
},
|
|
4520
|
+
{
|
|
4521
|
+
"name": "disableNonceBlock",
|
|
4522
|
+
"type": "u8"
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
"name": "reserveRewardsMaxAprBps",
|
|
4526
|
+
"type": "u16"
|
|
4527
|
+
},
|
|
4528
|
+
{
|
|
4529
|
+
"name": "minWithdrawQueuedLiquidityValue",
|
|
4530
|
+
"type": "u64"
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
"name": "fixedTermRolloverWindowDurationSeconds",
|
|
4534
|
+
"type": "u64"
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
"name": "openTermRolloverWindowDurationSeconds",
|
|
4538
|
+
"type": "u64"
|
|
4539
|
+
},
|
|
4540
|
+
{
|
|
4541
|
+
"name": "minPartialRolloverValue",
|
|
4542
|
+
"type": "u64"
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
"name": "termBasedFullLiquidationDurationSecs",
|
|
4546
|
+
"type": "u64"
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
"name": "permissioningAuthority",
|
|
4550
|
+
"type": "publicKey"
|
|
4551
|
+
},
|
|
4552
|
+
{
|
|
4553
|
+
"name": "permissionedOps",
|
|
4554
|
+
"type": "u64"
|
|
4555
|
+
},
|
|
3658
4556
|
{
|
|
3659
4557
|
"name": "padding1",
|
|
3660
4558
|
"type": {
|
|
3661
|
-
"array": [
|
|
4559
|
+
"array": [
|
|
4560
|
+
"u64",
|
|
4561
|
+
153
|
|
4562
|
+
]
|
|
3662
4563
|
}
|
|
3663
4564
|
}
|
|
3664
4565
|
]
|
|
@@ -3666,35 +4567,29 @@
|
|
|
3666
4567
|
},
|
|
3667
4568
|
{
|
|
3668
4569
|
"name": "Obligation",
|
|
3669
|
-
"docs": ["Lending market obligation state"],
|
|
3670
4570
|
"type": {
|
|
3671
4571
|
"kind": "struct",
|
|
3672
4572
|
"fields": [
|
|
3673
4573
|
{
|
|
3674
4574
|
"name": "tag",
|
|
3675
|
-
"docs": ["Version of the struct"],
|
|
3676
4575
|
"type": "u64"
|
|
3677
4576
|
},
|
|
3678
4577
|
{
|
|
3679
4578
|
"name": "lastUpdate",
|
|
3680
|
-
"docs": ["Last update to collateral, liquidity, or their market values"],
|
|
3681
4579
|
"type": {
|
|
3682
4580
|
"defined": "LastUpdate"
|
|
3683
4581
|
}
|
|
3684
4582
|
},
|
|
3685
4583
|
{
|
|
3686
4584
|
"name": "lendingMarket",
|
|
3687
|
-
"docs": ["Lending market address"],
|
|
3688
4585
|
"type": "publicKey"
|
|
3689
4586
|
},
|
|
3690
4587
|
{
|
|
3691
4588
|
"name": "owner",
|
|
3692
|
-
"docs": ["Owner authority which can borrow liquidity"],
|
|
3693
4589
|
"type": "publicKey"
|
|
3694
4590
|
},
|
|
3695
4591
|
{
|
|
3696
4592
|
"name": "deposits",
|
|
3697
|
-
"docs": ["Deposited collateral for the obligation, unique by deposit reserve address"],
|
|
3698
4593
|
"type": {
|
|
3699
4594
|
"array": [
|
|
3700
4595
|
{
|
|
@@ -3706,17 +4601,14 @@
|
|
|
3706
4601
|
},
|
|
3707
4602
|
{
|
|
3708
4603
|
"name": "lowestReserveDepositLiquidationLtv",
|
|
3709
|
-
"docs": ["Worst LTV for the collaterals backing the loan, represented as a percentage"],
|
|
3710
4604
|
"type": "u64"
|
|
3711
4605
|
},
|
|
3712
4606
|
{
|
|
3713
4607
|
"name": "depositedValueSf",
|
|
3714
|
-
"docs": ["Market value of deposits (scaled fraction)"],
|
|
3715
4608
|
"type": "u128"
|
|
3716
4609
|
},
|
|
3717
4610
|
{
|
|
3718
4611
|
"name": "borrows",
|
|
3719
|
-
"docs": ["Borrowed liquidity for the obligation, unique by borrow reserve address"],
|
|
3720
4612
|
"type": {
|
|
3721
4613
|
"array": [
|
|
3722
4614
|
{
|
|
@@ -3728,80 +4620,72 @@
|
|
|
3728
4620
|
},
|
|
3729
4621
|
{
|
|
3730
4622
|
"name": "borrowFactorAdjustedDebtValueSf",
|
|
3731
|
-
"docs": [
|
|
3732
|
-
"Risk adjusted market value of borrows/debt (sum of price * borrowed_amount * borrow_factor) (scaled fraction)"
|
|
3733
|
-
],
|
|
3734
4623
|
"type": "u128"
|
|
3735
4624
|
},
|
|
3736
4625
|
{
|
|
3737
4626
|
"name": "borrowedAssetsMarketValueSf",
|
|
3738
|
-
"docs": ["Market value of borrows - used for max_liquidatable_borrowed_amount (scaled fraction)"],
|
|
3739
4627
|
"type": "u128"
|
|
3740
4628
|
},
|
|
3741
4629
|
{
|
|
3742
4630
|
"name": "allowedBorrowValueSf",
|
|
3743
|
-
"docs": ["The maximum borrow value at the weighted average loan to value ratio (scaled fraction)"],
|
|
3744
4631
|
"type": "u128"
|
|
3745
4632
|
},
|
|
3746
4633
|
{
|
|
3747
4634
|
"name": "unhealthyBorrowValueSf",
|
|
3748
|
-
"docs": ["The dangerous borrow value at the weighted average liquidation threshold (scaled fraction)"],
|
|
3749
4635
|
"type": "u128"
|
|
3750
4636
|
},
|
|
3751
4637
|
{
|
|
3752
4638
|
"name": "paddingDeprecatedAssetTiers",
|
|
3753
|
-
"docs": ["The asset tier of the deposits"],
|
|
3754
4639
|
"type": {
|
|
3755
|
-
"array": [
|
|
4640
|
+
"array": [
|
|
4641
|
+
"u8",
|
|
4642
|
+
13
|
|
4643
|
+
]
|
|
3756
4644
|
}
|
|
3757
4645
|
},
|
|
3758
4646
|
{
|
|
3759
4647
|
"name": "elevationGroup",
|
|
3760
|
-
"docs": ["The elevation group id the obligation opted into."],
|
|
3761
4648
|
"type": "u8"
|
|
3762
4649
|
},
|
|
3763
4650
|
{
|
|
3764
4651
|
"name": "numOfObsoleteDepositReserves",
|
|
3765
|
-
"docs": ["The number of obsolete reserves the obligation has a deposit in"],
|
|
3766
4652
|
"type": "u8"
|
|
3767
4653
|
},
|
|
3768
4654
|
{
|
|
3769
4655
|
"name": "hasDebt",
|
|
3770
|
-
"docs": ["Marked = 1 if borrows array is not empty, 0 = borrows empty"],
|
|
3771
4656
|
"type": "u8"
|
|
3772
4657
|
},
|
|
3773
4658
|
{
|
|
3774
4659
|
"name": "referrer",
|
|
3775
|
-
"docs": ["Wallet address of the referrer"],
|
|
3776
4660
|
"type": "publicKey"
|
|
3777
4661
|
},
|
|
3778
4662
|
{
|
|
3779
4663
|
"name": "borrowingDisabled",
|
|
3780
|
-
"docs": ["Marked = 1 if borrowing disabled, 0 = borrowing enabled"],
|
|
3781
4664
|
"type": "u8"
|
|
3782
4665
|
},
|
|
3783
4666
|
{
|
|
3784
4667
|
"name": "autodeleverageTargetLtvPct",
|
|
3785
|
-
"docs": [
|
|
3786
|
-
"A target LTV set by the risk council when marking this obligation for deleveraging.",
|
|
3787
|
-
"Only effective when `deleveraging_margin_call_started_slot != 0`."
|
|
3788
|
-
],
|
|
3789
4668
|
"type": "u8"
|
|
3790
4669
|
},
|
|
3791
4670
|
{
|
|
3792
4671
|
"name": "lowestReserveDepositMaxLtvPct",
|
|
3793
|
-
"docs": ["The lowest max LTV found amongst the collateral deposits"],
|
|
3794
4672
|
"type": "u8"
|
|
3795
4673
|
},
|
|
3796
4674
|
{
|
|
3797
4675
|
"name": "numOfObsoleteBorrowReserves",
|
|
3798
|
-
"
|
|
4676
|
+
"type": "u8"
|
|
4677
|
+
},
|
|
4678
|
+
{
|
|
4679
|
+
"name": "ownershipTransferState",
|
|
3799
4680
|
"type": "u8"
|
|
3800
4681
|
},
|
|
3801
4682
|
{
|
|
3802
4683
|
"name": "reserved",
|
|
3803
4684
|
"type": {
|
|
3804
|
-
"array": [
|
|
4685
|
+
"array": [
|
|
4686
|
+
"u8",
|
|
4687
|
+
3
|
|
4688
|
+
]
|
|
3805
4689
|
}
|
|
3806
4690
|
},
|
|
3807
4691
|
{
|
|
@@ -3810,18 +4694,10 @@
|
|
|
3810
4694
|
},
|
|
3811
4695
|
{
|
|
3812
4696
|
"name": "autodeleverageMarginCallStartedTimestamp",
|
|
3813
|
-
"docs": [
|
|
3814
|
-
"A timestamp at which the risk council most-recently marked this obligation for deleveraging.",
|
|
3815
|
-
"Zero if not currently subject to deleveraging."
|
|
3816
|
-
],
|
|
3817
4697
|
"type": "u64"
|
|
3818
4698
|
},
|
|
3819
4699
|
{
|
|
3820
4700
|
"name": "obligationOrders",
|
|
3821
|
-
"docs": [
|
|
3822
|
-
"Owner-defined, permissionlessly-executed repay orders.",
|
|
3823
|
-
"Typical use-cases would be a stop-loss and a take-profit (possibly co-existing)."
|
|
3824
|
-
],
|
|
3825
4701
|
"type": {
|
|
3826
4702
|
"array": [
|
|
3827
4703
|
{
|
|
@@ -3832,19 +4708,33 @@
|
|
|
3832
4708
|
}
|
|
3833
4709
|
},
|
|
3834
4710
|
{
|
|
3835
|
-
"name": "
|
|
3836
|
-
"docs": [
|
|
3837
|
-
"Owner-defined, permissionlessly-executed borrow order applicable to this obligation.",
|
|
3838
|
-
"Non-zeroed only on a newly-initialized fixed-rate, fixed-term obligation."
|
|
3839
|
-
],
|
|
4711
|
+
"name": "headBorrowOrder",
|
|
3840
4712
|
"type": {
|
|
3841
4713
|
"defined": "BorrowOrder"
|
|
3842
4714
|
}
|
|
3843
4715
|
},
|
|
4716
|
+
{
|
|
4717
|
+
"name": "pendingOwner",
|
|
4718
|
+
"type": "publicKey"
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
"name": "tailBorrowOrders",
|
|
4722
|
+
"type": {
|
|
4723
|
+
"array": [
|
|
4724
|
+
{
|
|
4725
|
+
"defined": "BorrowOrder"
|
|
4726
|
+
},
|
|
4727
|
+
2
|
|
4728
|
+
]
|
|
4729
|
+
}
|
|
4730
|
+
},
|
|
3844
4731
|
{
|
|
3845
4732
|
"name": "padding3",
|
|
3846
4733
|
"type": {
|
|
3847
|
-
"array": [
|
|
4734
|
+
"array": [
|
|
4735
|
+
"u64",
|
|
4736
|
+
29
|
|
4737
|
+
]
|
|
3848
4738
|
}
|
|
3849
4739
|
}
|
|
3850
4740
|
]
|
|
@@ -3868,41 +4758,36 @@
|
|
|
3868
4758
|
},
|
|
3869
4759
|
{
|
|
3870
4760
|
"name": "ReferrerTokenState",
|
|
3871
|
-
"docs": ["Referrer account -> each owner can have multiple accounts for specific reserves"],
|
|
3872
4761
|
"type": {
|
|
3873
4762
|
"kind": "struct",
|
|
3874
4763
|
"fields": [
|
|
3875
4764
|
{
|
|
3876
4765
|
"name": "referrer",
|
|
3877
|
-
"docs": ["Pubkey of the referrer/owner"],
|
|
3878
4766
|
"type": "publicKey"
|
|
3879
4767
|
},
|
|
3880
4768
|
{
|
|
3881
4769
|
"name": "mint",
|
|
3882
|
-
"docs": ["Token mint for the account"],
|
|
3883
4770
|
"type": "publicKey"
|
|
3884
4771
|
},
|
|
3885
4772
|
{
|
|
3886
4773
|
"name": "amountUnclaimedSf",
|
|
3887
|
-
"docs": ["Amount that has been accumulated and not claimed yet -> available to claim (scaled fraction)"],
|
|
3888
4774
|
"type": "u128"
|
|
3889
4775
|
},
|
|
3890
4776
|
{
|
|
3891
4777
|
"name": "amountCumulativeSf",
|
|
3892
|
-
"docs": [
|
|
3893
|
-
"Amount that has been accumulated in total -> both already claimed and unclaimed (scaled fraction)"
|
|
3894
|
-
],
|
|
3895
4778
|
"type": "u128"
|
|
3896
4779
|
},
|
|
3897
4780
|
{
|
|
3898
4781
|
"name": "bump",
|
|
3899
|
-
"docs": ["Referrer token state bump, used for address validation"],
|
|
3900
4782
|
"type": "u64"
|
|
3901
4783
|
},
|
|
3902
4784
|
{
|
|
3903
4785
|
"name": "padding",
|
|
3904
4786
|
"type": {
|
|
3905
|
-
"array": [
|
|
4787
|
+
"array": [
|
|
4788
|
+
"u64",
|
|
4789
|
+
31
|
|
4790
|
+
]
|
|
3906
4791
|
}
|
|
3907
4792
|
}
|
|
3908
4793
|
]
|
|
@@ -3926,42 +4811,41 @@
|
|
|
3926
4811
|
},
|
|
3927
4812
|
{
|
|
3928
4813
|
"name": "UserMetadata",
|
|
3929
|
-
"docs": ["Referrer account -> each owner can have multiple accounts for specific reserves"],
|
|
3930
4814
|
"type": {
|
|
3931
4815
|
"kind": "struct",
|
|
3932
4816
|
"fields": [
|
|
3933
4817
|
{
|
|
3934
4818
|
"name": "referrer",
|
|
3935
|
-
"docs": ["Pubkey of the referrer/owner - pubkey::default if no referrer"],
|
|
3936
4819
|
"type": "publicKey"
|
|
3937
4820
|
},
|
|
3938
4821
|
{
|
|
3939
4822
|
"name": "bump",
|
|
3940
|
-
"docs": ["Bump used for validation of account address"],
|
|
3941
4823
|
"type": "u64"
|
|
3942
4824
|
},
|
|
3943
4825
|
{
|
|
3944
4826
|
"name": "userLookupTable",
|
|
3945
|
-
"docs": [
|
|
3946
|
-
"User lookup table - used to store all user accounts - atas for each reserve mint, each obligation PDA, UserMetadata itself and all referrer_token_states if there is a referrer"
|
|
3947
|
-
],
|
|
3948
4827
|
"type": "publicKey"
|
|
3949
4828
|
},
|
|
3950
4829
|
{
|
|
3951
4830
|
"name": "owner",
|
|
3952
|
-
"docs": ["User metadata account owner"],
|
|
3953
4831
|
"type": "publicKey"
|
|
3954
4832
|
},
|
|
3955
4833
|
{
|
|
3956
4834
|
"name": "padding1",
|
|
3957
4835
|
"type": {
|
|
3958
|
-
"array": [
|
|
4836
|
+
"array": [
|
|
4837
|
+
"u64",
|
|
4838
|
+
51
|
|
4839
|
+
]
|
|
3959
4840
|
}
|
|
3960
4841
|
},
|
|
3961
4842
|
{
|
|
3962
4843
|
"name": "padding2",
|
|
3963
4844
|
"type": {
|
|
3964
|
-
"array": [
|
|
4845
|
+
"array": [
|
|
4846
|
+
"u64",
|
|
4847
|
+
64
|
|
4848
|
+
]
|
|
3965
4849
|
}
|
|
3966
4850
|
}
|
|
3967
4851
|
]
|
|
@@ -3974,19 +4858,16 @@
|
|
|
3974
4858
|
"fields": [
|
|
3975
4859
|
{
|
|
3976
4860
|
"name": "version",
|
|
3977
|
-
"docs": ["Version of the reserve"],
|
|
3978
4861
|
"type": "u64"
|
|
3979
4862
|
},
|
|
3980
4863
|
{
|
|
3981
4864
|
"name": "lastUpdate",
|
|
3982
|
-
"docs": ["Last slot when supply and rates updated"],
|
|
3983
4865
|
"type": {
|
|
3984
4866
|
"defined": "LastUpdate"
|
|
3985
4867
|
}
|
|
3986
4868
|
},
|
|
3987
4869
|
{
|
|
3988
4870
|
"name": "lendingMarket",
|
|
3989
|
-
"docs": ["Lending market address"],
|
|
3990
4871
|
"type": "publicKey"
|
|
3991
4872
|
},
|
|
3992
4873
|
{
|
|
@@ -3999,7 +4880,6 @@
|
|
|
3999
4880
|
},
|
|
4000
4881
|
{
|
|
4001
4882
|
"name": "liquidity",
|
|
4002
|
-
"docs": ["Reserve liquidity"],
|
|
4003
4883
|
"type": {
|
|
4004
4884
|
"defined": "ReserveLiquidity"
|
|
4005
4885
|
}
|
|
@@ -4007,12 +4887,14 @@
|
|
|
4007
4887
|
{
|
|
4008
4888
|
"name": "reserveLiquidityPadding",
|
|
4009
4889
|
"type": {
|
|
4010
|
-
"array": [
|
|
4890
|
+
"array": [
|
|
4891
|
+
"u64",
|
|
4892
|
+
150
|
|
4893
|
+
]
|
|
4011
4894
|
}
|
|
4012
4895
|
},
|
|
4013
4896
|
{
|
|
4014
4897
|
"name": "collateral",
|
|
4015
|
-
"docs": ["Reserve collateral"],
|
|
4016
4898
|
"type": {
|
|
4017
4899
|
"defined": "ReserveCollateral"
|
|
4018
4900
|
}
|
|
@@ -4020,12 +4902,14 @@
|
|
|
4020
4902
|
{
|
|
4021
4903
|
"name": "reserveCollateralPadding",
|
|
4022
4904
|
"type": {
|
|
4023
|
-
"array": [
|
|
4905
|
+
"array": [
|
|
4906
|
+
"u64",
|
|
4907
|
+
150
|
|
4908
|
+
]
|
|
4024
4909
|
}
|
|
4025
4910
|
},
|
|
4026
4911
|
{
|
|
4027
4912
|
"name": "config",
|
|
4028
|
-
"docs": ["Reserve configuration values"],
|
|
4029
4913
|
"type": {
|
|
4030
4914
|
"defined": "ReserveConfig"
|
|
4031
4915
|
}
|
|
@@ -4033,7 +4917,10 @@
|
|
|
4033
4917
|
{
|
|
4034
4918
|
"name": "configPadding",
|
|
4035
4919
|
"type": {
|
|
4036
|
-
"array": [
|
|
4920
|
+
"array": [
|
|
4921
|
+
"u64",
|
|
4922
|
+
112
|
|
4923
|
+
]
|
|
4037
4924
|
}
|
|
4038
4925
|
},
|
|
4039
4926
|
{
|
|
@@ -4042,18 +4929,93 @@
|
|
|
4042
4929
|
},
|
|
4043
4930
|
{
|
|
4044
4931
|
"name": "borrowedAmountsAgainstThisReserveInElevationGroups",
|
|
4045
|
-
"docs": [
|
|
4046
|
-
"Amount of token borrowed in lamport of debt asset in the given",
|
|
4047
|
-
"elevation group when this reserve is part of the collaterals."
|
|
4048
|
-
],
|
|
4049
4932
|
"type": {
|
|
4050
|
-
"array": [
|
|
4933
|
+
"array": [
|
|
4934
|
+
"u64",
|
|
4935
|
+
32
|
|
4936
|
+
]
|
|
4937
|
+
}
|
|
4938
|
+
},
|
|
4939
|
+
{
|
|
4940
|
+
"name": "withdrawQueue",
|
|
4941
|
+
"type": {
|
|
4942
|
+
"defined": "WithdrawQueue"
|
|
4051
4943
|
}
|
|
4052
4944
|
},
|
|
4053
4945
|
{
|
|
4054
4946
|
"name": "padding",
|
|
4055
4947
|
"type": {
|
|
4056
|
-
"array": [
|
|
4948
|
+
"array": [
|
|
4949
|
+
"u64",
|
|
4950
|
+
204
|
|
4951
|
+
]
|
|
4952
|
+
}
|
|
4953
|
+
}
|
|
4954
|
+
]
|
|
4955
|
+
}
|
|
4956
|
+
},
|
|
4957
|
+
{
|
|
4958
|
+
"name": "WithdrawTicket",
|
|
4959
|
+
"type": {
|
|
4960
|
+
"kind": "struct",
|
|
4961
|
+
"fields": [
|
|
4962
|
+
{
|
|
4963
|
+
"name": "sequenceNumber",
|
|
4964
|
+
"type": "u64"
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"name": "owner",
|
|
4968
|
+
"type": "publicKey"
|
|
4969
|
+
},
|
|
4970
|
+
{
|
|
4971
|
+
"name": "reserve",
|
|
4972
|
+
"type": "publicKey"
|
|
4973
|
+
},
|
|
4974
|
+
{
|
|
4975
|
+
"name": "userDestinationLiquidityTa",
|
|
4976
|
+
"type": "publicKey"
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
"name": "queuedCollateralAmount",
|
|
4980
|
+
"type": "u64"
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
"name": "createdAtTimestamp",
|
|
4984
|
+
"type": "u64"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
"name": "invalid",
|
|
4988
|
+
"type": "u8"
|
|
4989
|
+
},
|
|
4990
|
+
{
|
|
4991
|
+
"name": "progressCallbackType",
|
|
4992
|
+
"type": "u8"
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
"name": "alignmentPadding",
|
|
4996
|
+
"type": {
|
|
4997
|
+
"array": [
|
|
4998
|
+
"u8",
|
|
4999
|
+
6
|
|
5000
|
+
]
|
|
5001
|
+
}
|
|
5002
|
+
},
|
|
5003
|
+
{
|
|
5004
|
+
"name": "progressCallbackCustomAccounts",
|
|
5005
|
+
"type": {
|
|
5006
|
+
"array": [
|
|
5007
|
+
"publicKey",
|
|
5008
|
+
2
|
|
5009
|
+
]
|
|
5010
|
+
}
|
|
5011
|
+
},
|
|
5012
|
+
{
|
|
5013
|
+
"name": "endPadding",
|
|
5014
|
+
"type": {
|
|
5015
|
+
"array": [
|
|
5016
|
+
"u64",
|
|
5017
|
+
40
|
|
5018
|
+
]
|
|
4057
5019
|
}
|
|
4058
5020
|
}
|
|
4059
5021
|
]
|
|
@@ -4061,9 +5023,52 @@
|
|
|
4061
5023
|
}
|
|
4062
5024
|
],
|
|
4063
5025
|
"types": [
|
|
5026
|
+
{
|
|
5027
|
+
"name": "ExchangeRateWithDecimals",
|
|
5028
|
+
"type": {
|
|
5029
|
+
"kind": "struct",
|
|
5030
|
+
"fields": [
|
|
5031
|
+
{
|
|
5032
|
+
"name": "exchangeRateSf",
|
|
5033
|
+
"type": "u128"
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
"name": "mintDecimals",
|
|
5037
|
+
"type": "u8"
|
|
5038
|
+
}
|
|
5039
|
+
]
|
|
5040
|
+
}
|
|
5041
|
+
},
|
|
5042
|
+
{
|
|
5043
|
+
"name": "ReserveConfigCustomizationArgs",
|
|
5044
|
+
"type": {
|
|
5045
|
+
"kind": "struct",
|
|
5046
|
+
"fields": [
|
|
5047
|
+
{
|
|
5048
|
+
"name": "overrideFixedRateBps",
|
|
5049
|
+
"type": "u8"
|
|
5050
|
+
},
|
|
5051
|
+
{
|
|
5052
|
+
"name": "fixedBorrowRateBps",
|
|
5053
|
+
"type": "u32"
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
"name": "overrideDebtTermSeconds",
|
|
5057
|
+
"type": "u8"
|
|
5058
|
+
},
|
|
5059
|
+
{
|
|
5060
|
+
"name": "debtTermSeconds",
|
|
5061
|
+
"type": "u64"
|
|
5062
|
+
},
|
|
5063
|
+
{
|
|
5064
|
+
"name": "clearElevationGroups",
|
|
5065
|
+
"type": "u8"
|
|
5066
|
+
}
|
|
5067
|
+
]
|
|
5068
|
+
}
|
|
5069
|
+
},
|
|
4064
5070
|
{
|
|
4065
5071
|
"name": "BorrowOrderConfigArgs",
|
|
4066
|
-
"docs": ["A subset of [BorrowOrderConfig] excluding the accounts passed via [SetBorrowOrder]."],
|
|
4067
5072
|
"type": {
|
|
4068
5073
|
"kind": "struct",
|
|
4069
5074
|
"fields": [
|
|
@@ -4082,6 +5087,10 @@
|
|
|
4082
5087
|
{
|
|
4083
5088
|
"name": "fillableUntilTimestamp",
|
|
4084
5089
|
"type": "u64"
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
"name": "enableAutoRolloverOnFilledBorrows",
|
|
5093
|
+
"type": "bool"
|
|
4085
5094
|
}
|
|
4086
5095
|
]
|
|
4087
5096
|
}
|
|
@@ -4164,7 +5173,7 @@
|
|
|
4164
5173
|
"name": "UpdateBorrowRateCurve"
|
|
4165
5174
|
},
|
|
4166
5175
|
{
|
|
4167
|
-
"name": "
|
|
5176
|
+
"name": "DeprecatedUpdateEntireReserveConfig"
|
|
4168
5177
|
},
|
|
4169
5178
|
{
|
|
4170
5179
|
"name": "UpdateDebtWithdrawalCap"
|
|
@@ -4255,6 +5264,21 @@
|
|
|
4255
5264
|
},
|
|
4256
5265
|
{
|
|
4257
5266
|
"name": "UpdateDebtTermSeconds"
|
|
5267
|
+
},
|
|
5268
|
+
{
|
|
5269
|
+
"name": "UpdateEarlyRepayRemainingInterestPct"
|
|
5270
|
+
},
|
|
5271
|
+
{
|
|
5272
|
+
"name": "UpdateReserveEmergencyMode"
|
|
5273
|
+
},
|
|
5274
|
+
{
|
|
5275
|
+
"name": "UpdateRewardsAmountPerAccrualUnit"
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"name": "UpdateReservePermissionedOps"
|
|
5279
|
+
},
|
|
5280
|
+
{
|
|
5281
|
+
"name": "UpdateInterestRateBasis"
|
|
4258
5282
|
}
|
|
4259
5283
|
]
|
|
4260
5284
|
}
|
|
@@ -4266,35 +5290,50 @@
|
|
|
4266
5290
|
"variants": [
|
|
4267
5291
|
{
|
|
4268
5292
|
"name": "Bool",
|
|
4269
|
-
"fields": [
|
|
5293
|
+
"fields": [
|
|
5294
|
+
"bool"
|
|
5295
|
+
]
|
|
4270
5296
|
},
|
|
4271
5297
|
{
|
|
4272
5298
|
"name": "U8",
|
|
4273
|
-
"fields": [
|
|
5299
|
+
"fields": [
|
|
5300
|
+
"u8"
|
|
5301
|
+
]
|
|
4274
5302
|
},
|
|
4275
5303
|
{
|
|
4276
5304
|
"name": "U8Array",
|
|
4277
5305
|
"fields": [
|
|
4278
5306
|
{
|
|
4279
|
-
"array": [
|
|
5307
|
+
"array": [
|
|
5308
|
+
"u8",
|
|
5309
|
+
8
|
|
5310
|
+
]
|
|
4280
5311
|
}
|
|
4281
5312
|
]
|
|
4282
5313
|
},
|
|
4283
5314
|
{
|
|
4284
5315
|
"name": "U16",
|
|
4285
|
-
"fields": [
|
|
5316
|
+
"fields": [
|
|
5317
|
+
"u16"
|
|
5318
|
+
]
|
|
4286
5319
|
},
|
|
4287
5320
|
{
|
|
4288
5321
|
"name": "U64",
|
|
4289
|
-
"fields": [
|
|
5322
|
+
"fields": [
|
|
5323
|
+
"u64"
|
|
5324
|
+
]
|
|
4290
5325
|
},
|
|
4291
5326
|
{
|
|
4292
5327
|
"name": "U128",
|
|
4293
|
-
"fields": [
|
|
5328
|
+
"fields": [
|
|
5329
|
+
"u128"
|
|
5330
|
+
]
|
|
4294
5331
|
},
|
|
4295
5332
|
{
|
|
4296
5333
|
"name": "Pubkey",
|
|
4297
|
-
"fields": [
|
|
5334
|
+
"fields": [
|
|
5335
|
+
"publicKey"
|
|
5336
|
+
]
|
|
4298
5337
|
},
|
|
4299
5338
|
{
|
|
4300
5339
|
"name": "ElevationGroup",
|
|
@@ -4308,7 +5347,10 @@
|
|
|
4308
5347
|
"name": "Name",
|
|
4309
5348
|
"fields": [
|
|
4310
5349
|
{
|
|
4311
|
-
"array": [
|
|
5350
|
+
"array": [
|
|
5351
|
+
"u8",
|
|
5352
|
+
32
|
|
5353
|
+
]
|
|
4312
5354
|
}
|
|
4313
5355
|
]
|
|
4314
5356
|
}
|
|
@@ -4339,7 +5381,7 @@
|
|
|
4339
5381
|
"name": "UpdateGlobalAllowedBorrow"
|
|
4340
5382
|
},
|
|
4341
5383
|
{
|
|
4342
|
-
"name": "
|
|
5384
|
+
"name": "UpdateEmergencyCouncil"
|
|
4343
5385
|
},
|
|
4344
5386
|
{
|
|
4345
5387
|
"name": "UpdateMinFullLiquidationThreshold"
|
|
@@ -4399,19 +5441,67 @@
|
|
|
4399
5441
|
"name": "UpdateProposerAuthority"
|
|
4400
5442
|
},
|
|
4401
5443
|
{
|
|
4402
|
-
"name": "UpdatePriceTriggeredLiquidationDisabled"
|
|
5444
|
+
"name": "UpdatePriceTriggeredLiquidationDisabled"
|
|
5445
|
+
},
|
|
5446
|
+
{
|
|
5447
|
+
"name": "UpdateMatureReserveDebtLiquidationEnabled"
|
|
5448
|
+
},
|
|
5449
|
+
{
|
|
5450
|
+
"name": "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
5451
|
+
},
|
|
5452
|
+
{
|
|
5453
|
+
"name": "UpdateBorrowOrderCreationEnabled"
|
|
5454
|
+
},
|
|
5455
|
+
{
|
|
5456
|
+
"name": "UpdateBorrowOrderExecutionEnabled"
|
|
5457
|
+
},
|
|
5458
|
+
{
|
|
5459
|
+
"name": "UpdateMinBorrowOrderFillValue"
|
|
5460
|
+
},
|
|
5461
|
+
{
|
|
5462
|
+
"name": "UpdateWithdrawTicketIssuanceEnabled"
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
"name": "UpdateWithdrawTicketRedemptionEnabled"
|
|
5466
|
+
},
|
|
5467
|
+
{
|
|
5468
|
+
"name": "UpdateMinWithdrawQueuedLiquidityValue"
|
|
5469
|
+
},
|
|
5470
|
+
{
|
|
5471
|
+
"name": "UpdateFixedTermRolloverWindowDurationSeconds"
|
|
5472
|
+
},
|
|
5473
|
+
{
|
|
5474
|
+
"name": "UpdateOpenTermRolloverWindowDurationSeconds"
|
|
5475
|
+
},
|
|
5476
|
+
{
|
|
5477
|
+
"name": "UpdateObligationBorrowRolloverConfigurationEnabled"
|
|
5478
|
+
},
|
|
5479
|
+
{
|
|
5480
|
+
"name": "UpdateTermBasedFullLiquidationDurationSecs"
|
|
5481
|
+
},
|
|
5482
|
+
{
|
|
5483
|
+
"name": "UpdateObligationBorrowMigrationToFixedExecutionEnabled"
|
|
5484
|
+
},
|
|
5485
|
+
{
|
|
5486
|
+
"name": "UpdateMinPartialRolloverValue"
|
|
5487
|
+
},
|
|
5488
|
+
{
|
|
5489
|
+
"name": "UpdateWithdrawTicketCancellationEnabled"
|
|
5490
|
+
},
|
|
5491
|
+
{
|
|
5492
|
+
"name": "UpdatePermissioningAuthority"
|
|
4403
5493
|
},
|
|
4404
5494
|
{
|
|
4405
|
-
"name": "
|
|
5495
|
+
"name": "UpdatePermissionedOps"
|
|
4406
5496
|
},
|
|
4407
5497
|
{
|
|
4408
|
-
"name": "
|
|
5498
|
+
"name": "DeprecatedUpdateReserveRewardsMaxAprPct"
|
|
4409
5499
|
},
|
|
4410
5500
|
{
|
|
4411
|
-
"name": "
|
|
5501
|
+
"name": "UpdateReserveRewardsMaxAprBps"
|
|
4412
5502
|
},
|
|
4413
5503
|
{
|
|
4414
|
-
"name": "
|
|
5504
|
+
"name": "UpdateDisableNonceBlock"
|
|
4415
5505
|
}
|
|
4416
5506
|
]
|
|
4417
5507
|
}
|
|
@@ -4432,30 +5522,33 @@
|
|
|
4432
5522
|
},
|
|
4433
5523
|
{
|
|
4434
5524
|
"name": "LastUpdate",
|
|
4435
|
-
"docs": ["Last update state"],
|
|
4436
5525
|
"type": {
|
|
4437
5526
|
"kind": "struct",
|
|
4438
5527
|
"fields": [
|
|
4439
5528
|
{
|
|
4440
5529
|
"name": "slot",
|
|
4441
|
-
"docs": ["Last slot when updated"],
|
|
4442
5530
|
"type": "u64"
|
|
4443
5531
|
},
|
|
4444
5532
|
{
|
|
4445
5533
|
"name": "stale",
|
|
4446
|
-
"docs": ["True when marked stale, false when slot updated"],
|
|
4447
5534
|
"type": "u8"
|
|
4448
5535
|
},
|
|
4449
5536
|
{
|
|
4450
5537
|
"name": "priceStatus",
|
|
4451
|
-
"docs": ["Status of the prices used to calculate the last update"],
|
|
4452
5538
|
"type": "u8"
|
|
4453
5539
|
},
|
|
4454
5540
|
{
|
|
4455
|
-
"name": "
|
|
5541
|
+
"name": "alignmentPadding",
|
|
4456
5542
|
"type": {
|
|
4457
|
-
"array": [
|
|
5543
|
+
"array": [
|
|
5544
|
+
"u8",
|
|
5545
|
+
2
|
|
5546
|
+
]
|
|
4458
5547
|
}
|
|
5548
|
+
},
|
|
5549
|
+
{
|
|
5550
|
+
"name": "timestamp",
|
|
5551
|
+
"type": "u32"
|
|
4459
5552
|
}
|
|
4460
5553
|
]
|
|
4461
5554
|
}
|
|
@@ -4495,13 +5588,15 @@
|
|
|
4495
5588
|
},
|
|
4496
5589
|
{
|
|
4497
5590
|
"name": "debtReserve",
|
|
4498
|
-
"docs": ["Mandatory debt reserve for this elevation group"],
|
|
4499
5591
|
"type": "publicKey"
|
|
4500
5592
|
},
|
|
4501
5593
|
{
|
|
4502
5594
|
"name": "padding1",
|
|
4503
5595
|
"type": {
|
|
4504
|
-
"array": [
|
|
5596
|
+
"array": [
|
|
5597
|
+
"u64",
|
|
5598
|
+
4
|
|
5599
|
+
]
|
|
4505
5600
|
}
|
|
4506
5601
|
}
|
|
4507
5602
|
]
|
|
@@ -4509,101 +5604,106 @@
|
|
|
4509
5604
|
},
|
|
4510
5605
|
{
|
|
4511
5606
|
"name": "BorrowOrder",
|
|
4512
|
-
"docs": [
|
|
4513
|
-
"A borrow order.",
|
|
4514
|
-
"",
|
|
4515
|
-
"When the [Obligation::borrow_order] is populated (i.e. non-zeroed) on an Obligation, then the",
|
|
4516
|
-
"permissionless \"fill\" operations may borrow liquidity to the owner according to this",
|
|
4517
|
-
"specification."
|
|
4518
|
-
],
|
|
4519
5607
|
"type": {
|
|
4520
5608
|
"kind": "struct",
|
|
4521
5609
|
"fields": [
|
|
4522
5610
|
{
|
|
4523
5611
|
"name": "debtLiquidityMint",
|
|
4524
|
-
"docs": [
|
|
4525
|
-
"The asset to be borrowed.",
|
|
4526
|
-
"The reserves used for [Obligation::borrows] *must* all provide exactly this asset."
|
|
4527
|
-
],
|
|
4528
5612
|
"type": "publicKey"
|
|
4529
5613
|
},
|
|
4530
5614
|
{
|
|
4531
5615
|
"name": "remainingDebtAmount",
|
|
4532
|
-
"docs": ["The amount of debt that still needs to be filled, in lamports."],
|
|
4533
5616
|
"type": "u64"
|
|
4534
5617
|
},
|
|
4535
5618
|
{
|
|
4536
5619
|
"name": "filledDebtDestination",
|
|
4537
|
-
"docs": [
|
|
4538
|
-
"The token account owned by the [Obligation::owner] and holding [Self::debt_liquidity_mint],",
|
|
4539
|
-
"where the filled funds should be transferred to."
|
|
4540
|
-
],
|
|
4541
5620
|
"type": "publicKey"
|
|
4542
5621
|
},
|
|
4543
5622
|
{
|
|
4544
5623
|
"name": "minDebtTermSeconds",
|
|
4545
|
-
"docs": [
|
|
4546
|
-
"The minimum allowed debt term that the obligation owner agrees to.",
|
|
4547
|
-
"The reserves used to fill this order *cannot* define their debt term *lower* than this.",
|
|
4548
|
-
"",
|
|
4549
|
-
"If zeroed, then only indefinite-term reserves may be used."
|
|
4550
|
-
],
|
|
4551
5624
|
"type": "u64"
|
|
4552
5625
|
},
|
|
4553
5626
|
{
|
|
4554
5627
|
"name": "fillableUntilTimestamp",
|
|
4555
|
-
"docs": ["The time until which the borrow order can still be filled."],
|
|
4556
5628
|
"type": "u64"
|
|
4557
5629
|
},
|
|
4558
5630
|
{
|
|
4559
5631
|
"name": "placedAtTimestamp",
|
|
4560
|
-
"docs": ["The time at which this order was placed.", "Currently, this is only a piece of metadata."],
|
|
4561
5632
|
"type": "u64"
|
|
4562
5633
|
},
|
|
4563
5634
|
{
|
|
4564
5635
|
"name": "lastUpdatedAtTimestamp",
|
|
4565
|
-
"docs": [
|
|
4566
|
-
"The time at which this order was most-recently updated (including: created).",
|
|
4567
|
-
"Currently, this is only a piece of metadata."
|
|
4568
|
-
],
|
|
4569
5636
|
"type": "u64"
|
|
4570
5637
|
},
|
|
4571
5638
|
{
|
|
4572
5639
|
"name": "requestedDebtAmount",
|
|
4573
|
-
"docs": [
|
|
4574
|
-
"The amount of debt that was originally requested when this order was most-recently updated.",
|
|
4575
|
-
"In other words: this field holds a value of [Self::remaining_debt_amount] captured at",
|
|
4576
|
-
"[Self::last_updated_at_timestamp].",
|
|
4577
|
-
"Currently, this is only a piece of metadata."
|
|
4578
|
-
],
|
|
4579
5640
|
"type": "u64"
|
|
4580
5641
|
},
|
|
4581
5642
|
{
|
|
4582
5643
|
"name": "maxBorrowRateBps",
|
|
4583
|
-
"docs": [
|
|
4584
|
-
"The maximum borrow rate that the obligation owner agrees to.",
|
|
4585
|
-
"The reserves used for [Obligation::borrows] *cannot* define their maximum borrow rate",
|
|
4586
|
-
"*higher* than this."
|
|
4587
|
-
],
|
|
4588
5644
|
"type": "u32"
|
|
4589
5645
|
},
|
|
5646
|
+
{
|
|
5647
|
+
"name": "active",
|
|
5648
|
+
"type": "u8"
|
|
5649
|
+
},
|
|
5650
|
+
{
|
|
5651
|
+
"name": "enableAutoRolloverOnFilledBorrows",
|
|
5652
|
+
"type": "u8"
|
|
5653
|
+
},
|
|
4590
5654
|
{
|
|
4591
5655
|
"name": "padding1",
|
|
4592
|
-
"docs": ["Alignment padding."],
|
|
4593
5656
|
"type": {
|
|
4594
|
-
"array": [
|
|
5657
|
+
"array": [
|
|
5658
|
+
"u8",
|
|
5659
|
+
2
|
|
5660
|
+
]
|
|
4595
5661
|
}
|
|
4596
5662
|
},
|
|
4597
5663
|
{
|
|
4598
5664
|
"name": "endPadding",
|
|
4599
|
-
"docs": ["End padding."],
|
|
4600
5665
|
"type": {
|
|
4601
|
-
"array": [
|
|
5666
|
+
"array": [
|
|
5667
|
+
"u64",
|
|
5668
|
+
5
|
|
5669
|
+
]
|
|
4602
5670
|
}
|
|
4603
5671
|
}
|
|
4604
5672
|
]
|
|
4605
5673
|
}
|
|
4606
5674
|
},
|
|
5675
|
+
{
|
|
5676
|
+
"name": "FixedTermBorrowRolloverConfig",
|
|
5677
|
+
"type": {
|
|
5678
|
+
"kind": "struct",
|
|
5679
|
+
"fields": [
|
|
5680
|
+
{
|
|
5681
|
+
"name": "autoRolloverEnabled",
|
|
5682
|
+
"type": "u8"
|
|
5683
|
+
},
|
|
5684
|
+
{
|
|
5685
|
+
"name": "openTermAllowed",
|
|
5686
|
+
"type": "u8"
|
|
5687
|
+
},
|
|
5688
|
+
{
|
|
5689
|
+
"name": "migrationToFixedEnabled",
|
|
5690
|
+
"type": "u8"
|
|
5691
|
+
},
|
|
5692
|
+
{
|
|
5693
|
+
"name": "fixedTermRolloverWindowDurationDays",
|
|
5694
|
+
"type": "u8"
|
|
5695
|
+
},
|
|
5696
|
+
{
|
|
5697
|
+
"name": "maxBorrowRateBps",
|
|
5698
|
+
"type": "u32"
|
|
5699
|
+
},
|
|
5700
|
+
{
|
|
5701
|
+
"name": "minDebtTermSeconds",
|
|
5702
|
+
"type": "u64"
|
|
5703
|
+
}
|
|
5704
|
+
]
|
|
5705
|
+
}
|
|
5706
|
+
},
|
|
4607
5707
|
{
|
|
4608
5708
|
"name": "InitObligationArgs",
|
|
4609
5709
|
"type": {
|
|
@@ -4622,39 +5722,32 @@
|
|
|
4622
5722
|
},
|
|
4623
5723
|
{
|
|
4624
5724
|
"name": "ObligationCollateral",
|
|
4625
|
-
"docs": ["Obligation collateral state"],
|
|
4626
5725
|
"type": {
|
|
4627
5726
|
"kind": "struct",
|
|
4628
5727
|
"fields": [
|
|
4629
5728
|
{
|
|
4630
5729
|
"name": "depositReserve",
|
|
4631
|
-
"docs": ["Reserve collateral is deposited to"],
|
|
4632
5730
|
"type": "publicKey"
|
|
4633
5731
|
},
|
|
4634
5732
|
{
|
|
4635
5733
|
"name": "depositedAmount",
|
|
4636
|
-
"docs": ["Amount of collateral deposited"],
|
|
4637
5734
|
"type": "u64"
|
|
4638
5735
|
},
|
|
4639
5736
|
{
|
|
4640
5737
|
"name": "marketValueSf",
|
|
4641
|
-
"docs": ["Collateral market value in quote currency (scaled fraction)"],
|
|
4642
5738
|
"type": "u128"
|
|
4643
5739
|
},
|
|
4644
5740
|
{
|
|
4645
5741
|
"name": "borrowedAmountAgainstThisCollateralInElevationGroup",
|
|
4646
|
-
"docs": [
|
|
4647
|
-
"Debt amount (lamport) taken against this collateral.",
|
|
4648
|
-
"(only meaningful if this obligation is part of an elevation group, otherwise 0)",
|
|
4649
|
-
"This is only indicative of the debt computed on the last refresh obligation.",
|
|
4650
|
-
"If the obligation have multiple collateral this value is the same for all of them."
|
|
4651
|
-
],
|
|
4652
5742
|
"type": "u64"
|
|
4653
5743
|
},
|
|
4654
5744
|
{
|
|
4655
5745
|
"name": "padding",
|
|
4656
5746
|
"type": {
|
|
4657
|
-
"array": [
|
|
5747
|
+
"array": [
|
|
5748
|
+
"u64",
|
|
5749
|
+
9
|
|
5750
|
+
]
|
|
4658
5751
|
}
|
|
4659
5752
|
}
|
|
4660
5753
|
]
|
|
@@ -4662,60 +5755,56 @@
|
|
|
4662
5755
|
},
|
|
4663
5756
|
{
|
|
4664
5757
|
"name": "ObligationLiquidity",
|
|
4665
|
-
"docs": ["Obligation liquidity state"],
|
|
4666
5758
|
"type": {
|
|
4667
5759
|
"kind": "struct",
|
|
4668
5760
|
"fields": [
|
|
4669
5761
|
{
|
|
4670
5762
|
"name": "borrowReserve",
|
|
4671
|
-
"docs": ["Reserve liquidity is borrowed from"],
|
|
4672
5763
|
"type": "publicKey"
|
|
4673
5764
|
},
|
|
4674
5765
|
{
|
|
4675
5766
|
"name": "cumulativeBorrowRateBsf",
|
|
4676
|
-
"docs": ["Borrow rate used for calculating interest (big scaled fraction)"],
|
|
4677
5767
|
"type": {
|
|
4678
5768
|
"defined": "BigFractionBytes"
|
|
4679
5769
|
}
|
|
4680
5770
|
},
|
|
4681
5771
|
{
|
|
4682
|
-
"name": "
|
|
4683
|
-
"docs": [
|
|
4684
|
-
"The timestamp at which this debt was taken.",
|
|
4685
|
-
"More specifically: when the *first* borrow operation from this reserve happened.",
|
|
4686
|
-
"This means that:",
|
|
4687
|
-
"- adding debt of the same reserve does *not* change this timestamp,",
|
|
4688
|
-
"- repaying the entire debt of this reserve *does* reset this timestamp.",
|
|
4689
|
-
"",
|
|
4690
|
-
"Note: this field is *not* only metadata: it is used in the logic, e.g. for enforcing the",
|
|
4691
|
-
"fixed-term borrows (i.e. those induced by [ReserveConfig::debt_term_seconds])."
|
|
4692
|
-
],
|
|
5772
|
+
"name": "lastBorrowedAtTimestamp",
|
|
4693
5773
|
"type": "u64"
|
|
4694
5774
|
},
|
|
4695
5775
|
{
|
|
4696
5776
|
"name": "borrowedAmountSf",
|
|
4697
|
-
"docs": ["Amount of liquidity borrowed plus interest (scaled fraction)"],
|
|
4698
5777
|
"type": "u128"
|
|
4699
5778
|
},
|
|
4700
5779
|
{
|
|
4701
5780
|
"name": "marketValueSf",
|
|
4702
|
-
"docs": ["Liquidity market value in quote currency (scaled fraction)"],
|
|
4703
5781
|
"type": "u128"
|
|
4704
5782
|
},
|
|
4705
5783
|
{
|
|
4706
5784
|
"name": "borrowFactorAdjustedMarketValueSf",
|
|
4707
|
-
"docs": ["Risk adjusted liquidity market value in quote currency - DEBUG ONLY - use market_value instead"],
|
|
4708
5785
|
"type": "u128"
|
|
4709
5786
|
},
|
|
4710
5787
|
{
|
|
4711
5788
|
"name": "borrowedAmountOutsideElevationGroups",
|
|
4712
|
-
"
|
|
5789
|
+
"type": "u64"
|
|
5790
|
+
},
|
|
5791
|
+
{
|
|
5792
|
+
"name": "fixedTermBorrowRolloverConfig",
|
|
5793
|
+
"type": {
|
|
5794
|
+
"defined": "FixedTermBorrowRolloverConfig"
|
|
5795
|
+
}
|
|
5796
|
+
},
|
|
5797
|
+
{
|
|
5798
|
+
"name": "borrowedAmountAtExpiration",
|
|
4713
5799
|
"type": "u64"
|
|
4714
5800
|
},
|
|
4715
5801
|
{
|
|
4716
5802
|
"name": "padding2",
|
|
4717
5803
|
"type": {
|
|
4718
|
-
"array": [
|
|
5804
|
+
"array": [
|
|
5805
|
+
"u64",
|
|
5806
|
+
4
|
|
5807
|
+
]
|
|
4719
5808
|
}
|
|
4720
5809
|
}
|
|
4721
5810
|
]
|
|
@@ -4723,120 +5812,80 @@
|
|
|
4723
5812
|
},
|
|
4724
5813
|
{
|
|
4725
5814
|
"name": "ObligationOrder",
|
|
4726
|
-
"docs": ["A single obligation order.", "See [Obligation::obligation_orders]."],
|
|
4727
5815
|
"type": {
|
|
4728
5816
|
"kind": "struct",
|
|
4729
5817
|
"fields": [
|
|
4730
5818
|
{
|
|
4731
5819
|
"name": "conditionThresholdSf",
|
|
4732
|
-
"docs": [
|
|
4733
|
-
"A threshold value used by the condition (scaled [Fraction]).",
|
|
4734
|
-
"The exact meaning depends on the specific [Self::condition_type].",
|
|
4735
|
-
"",
|
|
4736
|
-
"Examples:",
|
|
4737
|
-
"- when `condition_type == 2 (UserLtvBelow)`:",
|
|
4738
|
-
"then a value of `0.455` here means that the order is active only when the obligation's",
|
|
4739
|
-
"user LTV is less than `0.455` (i.e. < 45.5%).",
|
|
4740
|
-
"- when `condition_type == 3 (DebtCollPriceRatioAbove)`:",
|
|
4741
|
-
"assuming the obligation uses BTC collateral for SOL debt, then a value of `491.3` here",
|
|
4742
|
-
"means that the order is active only when the BTC-SOL price is greater than `491.3` (i.e.",
|
|
4743
|
-
"> 491.3 SOL per BTC)."
|
|
4744
|
-
],
|
|
4745
5820
|
"type": "u128"
|
|
4746
5821
|
},
|
|
4747
5822
|
{
|
|
4748
5823
|
"name": "opportunityParameterSf",
|
|
4749
|
-
"docs": [
|
|
4750
|
-
"A configuration parameter used by the opportunity (scaled [Fraction]).",
|
|
4751
|
-
"The exact meaning depends on the specific [Self::opportunity_type].",
|
|
4752
|
-
"",
|
|
4753
|
-
"Examples:",
|
|
4754
|
-
"- when `opportunity_type == 0 (DeleverageSingleDebtAmount)`:",
|
|
4755
|
-
"Assuming the obligation uses BTC collateral for SOL debt, then a value of `1_234_000_000`",
|
|
4756
|
-
"here means that a liquidator may repay up to 1234000000 lamports (i.e. 1.234 SOL) on this",
|
|
4757
|
-
"obligation.",
|
|
4758
|
-
"Note: the special value of [Fraction::MAX] is *not* allowed in this case.",
|
|
4759
|
-
"- when `opportunity_type == 1 (DeleverageAllDebtAmount)`:",
|
|
4760
|
-
"The only allowed value in this case is [Fraction::MAX] (to emphasize that *all* debt",
|
|
4761
|
-
"should be repaid)."
|
|
4762
|
-
],
|
|
4763
5824
|
"type": "u128"
|
|
4764
5825
|
},
|
|
4765
5826
|
{
|
|
4766
5827
|
"name": "minExecutionBonusBps",
|
|
4767
|
-
"docs": [
|
|
4768
|
-
"A *minimum* additional fraction of collateral transferred to the liquidator, in bps.",
|
|
4769
|
-
"",
|
|
4770
|
-
"The minimum bonus is applied exactly when the [Self::condition_threshold_sf] is met, and",
|
|
4771
|
-
"grows linearly towards the [Self::max_execution_bonus_bps].",
|
|
4772
|
-
"",
|
|
4773
|
-
"Example: a value of `50` here means 50bps == 0.5% bonus for an \"LTV > 65%\" order, when",
|
|
4774
|
-
"executed precisely at the moment LTV exceeds 65%."
|
|
4775
|
-
],
|
|
4776
5828
|
"type": "u16"
|
|
4777
5829
|
},
|
|
4778
5830
|
{
|
|
4779
5831
|
"name": "maxExecutionBonusBps",
|
|
4780
|
-
"docs": [
|
|
4781
|
-
"A *maximum* additional fraction of collateral transferred to the liquidator, in bps.",
|
|
4782
|
-
"",
|
|
4783
|
-
"The maximum bonus is applied at the relevant \"extreme\" state of the obligation, i.e.:",
|
|
4784
|
-
"- for a stop-loss condition, it is a point at which the obligation becomes liquidatable;",
|
|
4785
|
-
"- for a take-profit condition, it is a point at which obligation has 0% LTV.",
|
|
4786
|
-
"",
|
|
4787
|
-
"In non-extreme states, the actual bonus value is interpolated linearly, starting from",
|
|
4788
|
-
"[Self::min_execution_bonus_bps] (at the point specified by the order's condition).",
|
|
4789
|
-
"",
|
|
4790
|
-
"Example: a value of `300` here means 300bps == 3.0% bonus for a \"debt/coll price > 140\"",
|
|
4791
|
-
"order, when executed at a higher price = 200, at which the obligation's LTV happens to",
|
|
4792
|
-
"be equal to its liquidation LTV."
|
|
4793
|
-
],
|
|
4794
5832
|
"type": "u16"
|
|
4795
5833
|
},
|
|
4796
5834
|
{
|
|
4797
5835
|
"name": "conditionType",
|
|
4798
|
-
"docs": [
|
|
4799
|
-
"Serialized [ConditionType].",
|
|
4800
|
-
"The entire order is void when this is zeroed (i.e. representing [ConditionType::Never]).",
|
|
4801
|
-
"",
|
|
4802
|
-
"Example: a value of `2` here denotes `UserLtvBelow` condition type. Of course, to",
|
|
4803
|
-
"interpret this condition, we also need to take the [Self::condition_threshold_sf] into",
|
|
4804
|
-
"account."
|
|
4805
|
-
],
|
|
4806
5836
|
"type": "u8"
|
|
4807
5837
|
},
|
|
4808
5838
|
{
|
|
4809
5839
|
"name": "opportunityType",
|
|
4810
|
-
"docs": [
|
|
4811
|
-
"Serialized [OpportunityType].",
|
|
4812
|
-
"",
|
|
4813
|
-
"Example: a value of `0` here denotes `DeleverageSingleDebtAmount` opportunity. Of course, to",
|
|
4814
|
-
"interpret this opportunity, we also need to take the [Self::opportunity_parameter_sf] into",
|
|
4815
|
-
"account."
|
|
4816
|
-
],
|
|
4817
5840
|
"type": "u8"
|
|
4818
5841
|
},
|
|
4819
5842
|
{
|
|
4820
5843
|
"name": "padding1",
|
|
4821
|
-
"docs": [
|
|
4822
|
-
"Alignment padding.",
|
|
4823
|
-
"The fields above take up 2+2+1+1 bytes = 48 bits, which means we need 80 bits = 10 bytes to",
|
|
4824
|
-
"align with `u128`s."
|
|
4825
|
-
],
|
|
4826
5844
|
"type": {
|
|
4827
|
-
"array": [
|
|
5845
|
+
"array": [
|
|
5846
|
+
"u8",
|
|
5847
|
+
10
|
|
5848
|
+
]
|
|
4828
5849
|
}
|
|
4829
5850
|
},
|
|
4830
5851
|
{
|
|
4831
5852
|
"name": "padding2",
|
|
4832
|
-
"docs": ["End padding.", "The total size of a single instance is 8*u128 = 128 bytes."],
|
|
4833
5853
|
"type": {
|
|
4834
|
-
"array": [
|
|
5854
|
+
"array": [
|
|
5855
|
+
"u128",
|
|
5856
|
+
5
|
|
5857
|
+
]
|
|
4835
5858
|
}
|
|
4836
5859
|
}
|
|
4837
5860
|
]
|
|
4838
5861
|
}
|
|
4839
5862
|
},
|
|
5863
|
+
{
|
|
5864
|
+
"name": "UpdateObligationConfigMode",
|
|
5865
|
+
"type": {
|
|
5866
|
+
"kind": "enum",
|
|
5867
|
+
"variants": [
|
|
5868
|
+
{
|
|
5869
|
+
"name": "FixedTermRolloverEnabled"
|
|
5870
|
+
},
|
|
5871
|
+
{
|
|
5872
|
+
"name": "FixedTermRolloverMaxBorrowRateBps"
|
|
5873
|
+
},
|
|
5874
|
+
{
|
|
5875
|
+
"name": "FixedTermRolloverMinDebtTermSeconds"
|
|
5876
|
+
},
|
|
5877
|
+
{
|
|
5878
|
+
"name": "FixedTermRolloverOpenTermAllowed"
|
|
5879
|
+
},
|
|
5880
|
+
{
|
|
5881
|
+
"name": "MigrationToFixedEnabled"
|
|
5882
|
+
},
|
|
5883
|
+
{
|
|
5884
|
+
"name": "FixedTermRolloverWindowDurationDays"
|
|
5885
|
+
}
|
|
5886
|
+
]
|
|
5887
|
+
}
|
|
5888
|
+
},
|
|
4840
5889
|
{
|
|
4841
5890
|
"name": "BigFractionBytes",
|
|
4842
5891
|
"type": {
|
|
@@ -4845,13 +5894,19 @@
|
|
|
4845
5894
|
{
|
|
4846
5895
|
"name": "value",
|
|
4847
5896
|
"type": {
|
|
4848
|
-
"array": [
|
|
5897
|
+
"array": [
|
|
5898
|
+
"u64",
|
|
5899
|
+
4
|
|
5900
|
+
]
|
|
4849
5901
|
}
|
|
4850
5902
|
},
|
|
4851
5903
|
{
|
|
4852
5904
|
"name": "padding",
|
|
4853
5905
|
"type": {
|
|
4854
|
-
"array": [
|
|
5906
|
+
"array": [
|
|
5907
|
+
"u64",
|
|
5908
|
+
2
|
|
5909
|
+
]
|
|
4855
5910
|
}
|
|
4856
5911
|
}
|
|
4857
5912
|
]
|
|
@@ -4859,7 +5914,6 @@
|
|
|
4859
5914
|
},
|
|
4860
5915
|
{
|
|
4861
5916
|
"name": "FeeCalculation",
|
|
4862
|
-
"docs": ["Calculate fees exlusive or inclusive of an amount"],
|
|
4863
5917
|
"type": {
|
|
4864
5918
|
"kind": "enum",
|
|
4865
5919
|
"variants": [
|
|
@@ -4874,35 +5928,37 @@
|
|
|
4874
5928
|
},
|
|
4875
5929
|
{
|
|
4876
5930
|
"name": "ReserveCollateral",
|
|
4877
|
-
"docs": ["Reserve collateral"],
|
|
4878
5931
|
"type": {
|
|
4879
5932
|
"kind": "struct",
|
|
4880
5933
|
"fields": [
|
|
4881
5934
|
{
|
|
4882
5935
|
"name": "mintPubkey",
|
|
4883
|
-
"docs": ["Reserve collateral mint address"],
|
|
4884
5936
|
"type": "publicKey"
|
|
4885
5937
|
},
|
|
4886
5938
|
{
|
|
4887
5939
|
"name": "mintTotalSupply",
|
|
4888
|
-
"docs": ["Reserve collateral mint supply, used for exchange rate"],
|
|
4889
5940
|
"type": "u64"
|
|
4890
5941
|
},
|
|
4891
5942
|
{
|
|
4892
5943
|
"name": "supplyVault",
|
|
4893
|
-
"docs": ["Reserve collateral supply address"],
|
|
4894
5944
|
"type": "publicKey"
|
|
4895
5945
|
},
|
|
4896
5946
|
{
|
|
4897
5947
|
"name": "padding1",
|
|
4898
5948
|
"type": {
|
|
4899
|
-
"array": [
|
|
5949
|
+
"array": [
|
|
5950
|
+
"u128",
|
|
5951
|
+
32
|
|
5952
|
+
]
|
|
4900
5953
|
}
|
|
4901
5954
|
},
|
|
4902
5955
|
{
|
|
4903
5956
|
"name": "padding2",
|
|
4904
5957
|
"type": {
|
|
4905
|
-
"array": [
|
|
5958
|
+
"array": [
|
|
5959
|
+
"u128",
|
|
5960
|
+
32
|
|
5961
|
+
]
|
|
4906
5962
|
}
|
|
4907
5963
|
}
|
|
4908
5964
|
]
|
|
@@ -4910,152 +5966,128 @@
|
|
|
4910
5966
|
},
|
|
4911
5967
|
{
|
|
4912
5968
|
"name": "ReserveConfig",
|
|
4913
|
-
"docs": ["Reserve configuration values"],
|
|
4914
5969
|
"type": {
|
|
4915
5970
|
"kind": "struct",
|
|
4916
5971
|
"fields": [
|
|
4917
5972
|
{
|
|
4918
5973
|
"name": "status",
|
|
4919
|
-
"docs": ["Status of the reserve Active/Obsolete/Hidden"],
|
|
4920
5974
|
"type": "u8"
|
|
4921
5975
|
},
|
|
4922
5976
|
{
|
|
4923
5977
|
"name": "paddingDeprecatedAssetTier",
|
|
4924
|
-
"docs": ["Asset tier -> 0 - regular (collateral & debt), 1 - isolated collateral, 2 - isolated debt"],
|
|
4925
5978
|
"type": "u8"
|
|
4926
5979
|
},
|
|
4927
5980
|
{
|
|
4928
5981
|
"name": "hostFixedInterestRateBps",
|
|
4929
|
-
"docs": ["Flat rate that goes to the host"],
|
|
4930
5982
|
"type": "u16"
|
|
4931
5983
|
},
|
|
4932
5984
|
{
|
|
4933
5985
|
"name": "minDeleveragingBonusBps",
|
|
4934
|
-
"docs": ["Starting bonus for deleveraging-related liquidations, in bps."],
|
|
4935
5986
|
"type": "u16"
|
|
4936
5987
|
},
|
|
4937
5988
|
{
|
|
4938
5989
|
"name": "blockCtokenUsage",
|
|
4939
|
-
"
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
5990
|
+
"type": "u8"
|
|
5991
|
+
},
|
|
5992
|
+
{
|
|
5993
|
+
"name": "earlyRepayRemainingInterestPct",
|
|
5994
|
+
"type": "u8"
|
|
5995
|
+
},
|
|
5996
|
+
{
|
|
5997
|
+
"name": "emergencyMode",
|
|
5998
|
+
"type": "u8"
|
|
5999
|
+
},
|
|
6000
|
+
{
|
|
6001
|
+
"name": "interestRateBasis",
|
|
4944
6002
|
"type": "u8"
|
|
4945
6003
|
},
|
|
4946
6004
|
{
|
|
4947
6005
|
"name": "reserved1",
|
|
4948
|
-
"docs": ["Past reserved space - feel free to reuse."],
|
|
4949
6006
|
"type": {
|
|
4950
|
-
"array": [
|
|
6007
|
+
"array": [
|
|
6008
|
+
"u8",
|
|
6009
|
+
3
|
|
6010
|
+
]
|
|
4951
6011
|
}
|
|
4952
6012
|
},
|
|
4953
6013
|
{
|
|
4954
6014
|
"name": "protocolOrderExecutionFeePct",
|
|
4955
|
-
"docs": ["Cut of the order execution bonus that the protocol receives, as a percentage"],
|
|
4956
6015
|
"type": "u8"
|
|
4957
6016
|
},
|
|
4958
6017
|
{
|
|
4959
6018
|
"name": "protocolTakeRatePct",
|
|
4960
|
-
"docs": ["Protocol take rate is the amount borrowed interest protocol receives, as a percentage"],
|
|
4961
6019
|
"type": "u8"
|
|
4962
6020
|
},
|
|
4963
6021
|
{
|
|
4964
6022
|
"name": "protocolLiquidationFeePct",
|
|
4965
|
-
"docs": ["Cut of the liquidation bonus that the protocol receives, as a percentage"],
|
|
4966
6023
|
"type": "u8"
|
|
4967
6024
|
},
|
|
4968
6025
|
{
|
|
4969
6026
|
"name": "loanToValuePct",
|
|
4970
|
-
"docs": [
|
|
4971
|
-
"Target ratio of the value of borrows to deposits, as a percentage",
|
|
4972
|
-
"0 if use as collateral is disabled"
|
|
4973
|
-
],
|
|
4974
6027
|
"type": "u8"
|
|
4975
6028
|
},
|
|
4976
6029
|
{
|
|
4977
6030
|
"name": "liquidationThresholdPct",
|
|
4978
|
-
"docs": ["Loan to value ratio at which an obligation can be liquidated, as percentage"],
|
|
4979
6031
|
"type": "u8"
|
|
4980
6032
|
},
|
|
4981
6033
|
{
|
|
4982
6034
|
"name": "minLiquidationBonusBps",
|
|
4983
|
-
"docs": ["Minimum bonus a liquidator receives when repaying part of an unhealthy obligation, as bps"],
|
|
4984
6035
|
"type": "u16"
|
|
4985
6036
|
},
|
|
4986
6037
|
{
|
|
4987
6038
|
"name": "maxLiquidationBonusBps",
|
|
4988
|
-
"docs": ["Maximum bonus a liquidator receives when repaying part of an unhealthy obligation, as bps"],
|
|
4989
6039
|
"type": "u16"
|
|
4990
6040
|
},
|
|
4991
6041
|
{
|
|
4992
6042
|
"name": "badDebtLiquidationBonusBps",
|
|
4993
|
-
"docs": ["Bad debt liquidation bonus for an undercollateralized obligation, as bps"],
|
|
4994
6043
|
"type": "u16"
|
|
4995
6044
|
},
|
|
4996
6045
|
{
|
|
4997
6046
|
"name": "deleveragingMarginCallPeriodSecs",
|
|
4998
|
-
"docs": [
|
|
4999
|
-
"Time in seconds that must pass before redemptions are enabled after the deposit limit is",
|
|
5000
|
-
"crossed.",
|
|
5001
|
-
"Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case."
|
|
5002
|
-
],
|
|
5003
6047
|
"type": "u64"
|
|
5004
6048
|
},
|
|
5005
6049
|
{
|
|
5006
6050
|
"name": "deleveragingThresholdDecreaseBpsPerDay",
|
|
5007
|
-
"docs": [
|
|
5008
|
-
"The rate at which the deleveraging threshold decreases, in bps per day.",
|
|
5009
|
-
"Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case."
|
|
5010
|
-
],
|
|
5011
6051
|
"type": "u64"
|
|
5012
6052
|
},
|
|
5013
6053
|
{
|
|
5014
6054
|
"name": "fees",
|
|
5015
|
-
"docs": ["Program owner fees assessed, separate from gains due to interest accrual"],
|
|
5016
6055
|
"type": {
|
|
5017
6056
|
"defined": "ReserveFees"
|
|
5018
6057
|
}
|
|
5019
6058
|
},
|
|
5020
6059
|
{
|
|
5021
6060
|
"name": "borrowRateCurve",
|
|
5022
|
-
"docs": ["Borrow rate curve based on utilization"],
|
|
5023
6061
|
"type": {
|
|
5024
6062
|
"defined": "BorrowRateCurve"
|
|
5025
6063
|
}
|
|
5026
6064
|
},
|
|
5027
6065
|
{
|
|
5028
6066
|
"name": "borrowFactorPct",
|
|
5029
|
-
"docs": ["Borrow factor in percentage - used for risk adjustment"],
|
|
5030
6067
|
"type": "u64"
|
|
5031
6068
|
},
|
|
5032
6069
|
{
|
|
5033
6070
|
"name": "depositLimit",
|
|
5034
|
-
"docs": ["Maximum deposit limit of liquidity in native units, u64::MAX for inf"],
|
|
5035
6071
|
"type": "u64"
|
|
5036
6072
|
},
|
|
5037
6073
|
{
|
|
5038
6074
|
"name": "borrowLimit",
|
|
5039
|
-
"docs": ["Maximum amount borrowed, u64::MAX for inf, 0 to disable borrows (protected deposits)"],
|
|
5040
6075
|
"type": "u64"
|
|
5041
6076
|
},
|
|
5042
6077
|
{
|
|
5043
6078
|
"name": "tokenInfo",
|
|
5044
|
-
"docs": ["Token id from TokenInfos struct"],
|
|
5045
6079
|
"type": {
|
|
5046
6080
|
"defined": "TokenInfo"
|
|
5047
6081
|
}
|
|
5048
6082
|
},
|
|
5049
6083
|
{
|
|
5050
6084
|
"name": "depositWithdrawalCap",
|
|
5051
|
-
"docs": ["Deposit withdrawal caps - deposit & redeem"],
|
|
5052
6085
|
"type": {
|
|
5053
6086
|
"defined": "WithdrawalCaps"
|
|
5054
6087
|
}
|
|
5055
6088
|
},
|
|
5056
6089
|
{
|
|
5057
6090
|
"name": "debtWithdrawalCap",
|
|
5058
|
-
"docs": ["Debt withdrawal caps - borrow & repay"],
|
|
5059
6091
|
"type": {
|
|
5060
6092
|
"defined": "WithdrawalCaps"
|
|
5061
6093
|
}
|
|
@@ -5063,7 +6095,10 @@
|
|
|
5063
6095
|
{
|
|
5064
6096
|
"name": "elevationGroups",
|
|
5065
6097
|
"type": {
|
|
5066
|
-
"array": [
|
|
6098
|
+
"array": [
|
|
6099
|
+
"u8",
|
|
6100
|
+
20
|
|
6101
|
+
]
|
|
5067
6102
|
}
|
|
5068
6103
|
},
|
|
5069
6104
|
{
|
|
@@ -5072,81 +6107,47 @@
|
|
|
5072
6107
|
},
|
|
5073
6108
|
{
|
|
5074
6109
|
"name": "utilizationLimitBlockBorrowingAbovePct",
|
|
5075
|
-
"docs": ["Utilization (in percentage) above which borrowing is blocked. 0 to disable."],
|
|
5076
6110
|
"type": "u8"
|
|
5077
6111
|
},
|
|
5078
6112
|
{
|
|
5079
6113
|
"name": "autodeleverageEnabled",
|
|
5080
|
-
"docs": [
|
|
5081
|
-
"Whether this reserve should be subject to auto-deleveraging after deposit or borrow limit is",
|
|
5082
|
-
"crossed.",
|
|
5083
|
-
"Besides this flag, the lending market's flag also needs to be enabled (logical `AND`).",
|
|
5084
|
-
"**NOTE:** the manual \"target LTV\" deleveraging (enabled by the risk council for individual",
|
|
5085
|
-
"obligations) is NOT affected by this flag."
|
|
5086
|
-
],
|
|
5087
6114
|
"type": "u8"
|
|
5088
6115
|
},
|
|
5089
6116
|
{
|
|
5090
6117
|
"name": "proposerAuthorityLocked",
|
|
5091
|
-
"docs": [
|
|
5092
|
-
"Boolean flag indicating whether the reserve is locked for the proposer authority.",
|
|
5093
|
-
"",
|
|
5094
|
-
"Once the proposer have finished preparing the reserve, it must be locked to prevent",
|
|
5095
|
-
"further changes to the reserve configuration allowing review and voting on the proposal",
|
|
5096
|
-
"without alteration during the voting period."
|
|
5097
|
-
],
|
|
5098
6118
|
"type": "u8"
|
|
5099
6119
|
},
|
|
5100
6120
|
{
|
|
5101
6121
|
"name": "borrowLimitOutsideElevationGroup",
|
|
5102
|
-
"docs": [
|
|
5103
|
-
"Maximum amount liquidity of this reserve borrowed outside all elevation groups",
|
|
5104
|
-
"- u64::MAX for inf",
|
|
5105
|
-
"- 0 to disable borrows outside elevation groups"
|
|
5106
|
-
],
|
|
5107
6122
|
"type": "u64"
|
|
5108
6123
|
},
|
|
5109
6124
|
{
|
|
5110
6125
|
"name": "borrowLimitAgainstThisCollateralInElevationGroup",
|
|
5111
|
-
"docs": [
|
|
5112
|
-
"Defines the maximum amount (in lamports of elevation group debt asset)",
|
|
5113
|
-
"that can be borrowed when this reserve is used as collateral.",
|
|
5114
|
-
"- u64::MAX for inf",
|
|
5115
|
-
"- 0 to disable borrows in this elevation group (expected value for the debt asset)"
|
|
5116
|
-
],
|
|
5117
6126
|
"type": {
|
|
5118
|
-
"array": [
|
|
6127
|
+
"array": [
|
|
6128
|
+
"u64",
|
|
6129
|
+
32
|
|
6130
|
+
]
|
|
5119
6131
|
}
|
|
5120
6132
|
},
|
|
5121
6133
|
{
|
|
5122
6134
|
"name": "deleveragingBonusIncreaseBpsPerDay",
|
|
5123
|
-
"docs": [
|
|
5124
|
-
"The rate at which the deleveraging-related liquidation bonus increases, in bps per day.",
|
|
5125
|
-
"Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case."
|
|
5126
|
-
],
|
|
5127
6135
|
"type": "u64"
|
|
5128
6136
|
},
|
|
5129
6137
|
{
|
|
5130
6138
|
"name": "debtMaturityTimestamp",
|
|
5131
|
-
"docs": [
|
|
5132
|
-
"The timestamp at which all [Obligation::borrows] using this reserve become liquidatable",
|
|
5133
|
-
"(on the same terms as reserve-wide deleveraging).",
|
|
5134
|
-
"Inactive when zeroed (i.e. debt never matures).",
|
|
5135
|
-
"",
|
|
5136
|
-
"Note: this feature is independent of [Self::debt_term_seconds] - the liquidation mechanism",
|
|
5137
|
-
"is based directly on the timestamp defined here, on Reserve's level."
|
|
5138
|
-
],
|
|
5139
6139
|
"type": "u64"
|
|
5140
6140
|
},
|
|
5141
6141
|
{
|
|
5142
6142
|
"name": "debtTermSeconds",
|
|
5143
|
-
"
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
6143
|
+
"type": "u64"
|
|
6144
|
+
},
|
|
6145
|
+
{
|
|
6146
|
+
"name": "rewardsAmountPerAccrualUnit",
|
|
6147
|
+
"type": "u64"
|
|
6148
|
+
},
|
|
6149
|
+
{
|
|
6150
|
+
"name": "permissionedOps",
|
|
5150
6151
|
"type": "u64"
|
|
5151
6152
|
}
|
|
5152
6153
|
]
|
|
@@ -5168,41 +6169,24 @@
|
|
|
5168
6169
|
},
|
|
5169
6170
|
{
|
|
5170
6171
|
"name": "ReserveFees",
|
|
5171
|
-
"docs": [
|
|
5172
|
-
"Additional fee information on a reserve",
|
|
5173
|
-
"",
|
|
5174
|
-
"These exist separately from interest accrual fees, and are specifically for the program owner",
|
|
5175
|
-
"and referral fee. The fees are paid out as a percentage of liquidity token amounts during",
|
|
5176
|
-
"repayments and liquidations."
|
|
5177
|
-
],
|
|
5178
6172
|
"type": {
|
|
5179
6173
|
"kind": "struct",
|
|
5180
6174
|
"fields": [
|
|
5181
6175
|
{
|
|
5182
6176
|
"name": "originationFeeSf",
|
|
5183
|
-
"docs": [
|
|
5184
|
-
"Fee assessed on `BorrowObligationLiquidity`, as scaled fraction (60 bits fractional part)",
|
|
5185
|
-
"Must be between `0` and `2^60`, such that `2^60 = 1`. A few examples for",
|
|
5186
|
-
"clarity:",
|
|
5187
|
-
"1% = (1 << 60) / 100 = 11529215046068470",
|
|
5188
|
-
"0.01% (1 basis point) = 115292150460685",
|
|
5189
|
-
"0.00001% (Aave origination fee) = 115292150461"
|
|
5190
|
-
],
|
|
5191
6177
|
"type": "u64"
|
|
5192
6178
|
},
|
|
5193
6179
|
{
|
|
5194
6180
|
"name": "flashLoanFeeSf",
|
|
5195
|
-
"docs": [
|
|
5196
|
-
"Fee for flash loan, expressed as scaled fraction.",
|
|
5197
|
-
"0.3% (Aave flash loan fee) = 0.003 * 2^60 = 3458764513820541"
|
|
5198
|
-
],
|
|
5199
6181
|
"type": "u64"
|
|
5200
6182
|
},
|
|
5201
6183
|
{
|
|
5202
6184
|
"name": "padding",
|
|
5203
|
-
"docs": ["Used for allignment"],
|
|
5204
6185
|
"type": {
|
|
5205
|
-
"array": [
|
|
6186
|
+
"array": [
|
|
6187
|
+
"u8",
|
|
6188
|
+
8
|
|
6189
|
+
]
|
|
5206
6190
|
}
|
|
5207
6191
|
}
|
|
5208
6192
|
]
|
|
@@ -5210,112 +6194,95 @@
|
|
|
5210
6194
|
},
|
|
5211
6195
|
{
|
|
5212
6196
|
"name": "ReserveLiquidity",
|
|
5213
|
-
"docs": ["Reserve liquidity"],
|
|
5214
6197
|
"type": {
|
|
5215
6198
|
"kind": "struct",
|
|
5216
6199
|
"fields": [
|
|
5217
6200
|
{
|
|
5218
6201
|
"name": "mintPubkey",
|
|
5219
|
-
"docs": ["Reserve liquidity mint address"],
|
|
5220
6202
|
"type": "publicKey"
|
|
5221
6203
|
},
|
|
5222
6204
|
{
|
|
5223
6205
|
"name": "supplyVault",
|
|
5224
|
-
"docs": ["Reserve liquidity supply address"],
|
|
5225
6206
|
"type": "publicKey"
|
|
5226
6207
|
},
|
|
5227
6208
|
{
|
|
5228
6209
|
"name": "feeVault",
|
|
5229
|
-
"docs": ["Reserve liquidity fee collection address"],
|
|
5230
6210
|
"type": "publicKey"
|
|
5231
6211
|
},
|
|
5232
6212
|
{
|
|
5233
|
-
"name": "
|
|
5234
|
-
"docs": ["Reserve liquidity available"],
|
|
6213
|
+
"name": "totalAvailableAmount",
|
|
5235
6214
|
"type": "u64"
|
|
5236
6215
|
},
|
|
5237
6216
|
{
|
|
5238
6217
|
"name": "borrowedAmountSf",
|
|
5239
|
-
"docs": ["Reserve liquidity borrowed (scaled fraction)"],
|
|
5240
6218
|
"type": "u128"
|
|
5241
6219
|
},
|
|
5242
6220
|
{
|
|
5243
6221
|
"name": "marketPriceSf",
|
|
5244
|
-
"docs": ["Reserve liquidity market price in quote currency (scaled fraction)"],
|
|
5245
6222
|
"type": "u128"
|
|
5246
6223
|
},
|
|
5247
6224
|
{
|
|
5248
6225
|
"name": "marketPriceLastUpdatedTs",
|
|
5249
|
-
"docs": ["Unix timestamp of the market price (from the oracle)"],
|
|
5250
6226
|
"type": "u64"
|
|
5251
6227
|
},
|
|
5252
6228
|
{
|
|
5253
6229
|
"name": "mintDecimals",
|
|
5254
|
-
"docs": ["Reserve liquidity mint decimals"],
|
|
5255
6230
|
"type": "u64"
|
|
5256
6231
|
},
|
|
5257
6232
|
{
|
|
5258
6233
|
"name": "depositLimitCrossedTimestamp",
|
|
5259
|
-
"docs": [
|
|
5260
|
-
"Timestamp when the last refresh reserve detected that the liquidity amount is above the deposit cap. When this threshold is crossed, then redemptions (auto-deleverage) are enabled.",
|
|
5261
|
-
"If the threshold is not crossed, then the timestamp is set to 0"
|
|
5262
|
-
],
|
|
5263
6234
|
"type": "u64"
|
|
5264
6235
|
},
|
|
5265
6236
|
{
|
|
5266
6237
|
"name": "borrowLimitCrossedTimestamp",
|
|
5267
|
-
"docs": [
|
|
5268
|
-
"Timestamp when the last refresh reserve detected that the borrowed amount is above the borrow cap. When this threshold is crossed, then redemptions (auto-deleverage) are enabled.",
|
|
5269
|
-
"If the threshold is not crossed, then the timestamp is set to 0"
|
|
5270
|
-
],
|
|
5271
6238
|
"type": "u64"
|
|
5272
6239
|
},
|
|
5273
6240
|
{
|
|
5274
6241
|
"name": "cumulativeBorrowRateBsf",
|
|
5275
|
-
"docs": ["Reserve liquidity cumulative borrow rate (scaled fraction)"],
|
|
5276
6242
|
"type": {
|
|
5277
6243
|
"defined": "BigFractionBytes"
|
|
5278
6244
|
}
|
|
5279
6245
|
},
|
|
5280
6246
|
{
|
|
5281
6247
|
"name": "accumulatedProtocolFeesSf",
|
|
5282
|
-
"docs": ["Reserve cumulative protocol fees (scaled fraction)"],
|
|
5283
6248
|
"type": "u128"
|
|
5284
6249
|
},
|
|
5285
6250
|
{
|
|
5286
6251
|
"name": "accumulatedReferrerFeesSf",
|
|
5287
|
-
"docs": ["Reserve cumulative referrer fees (scaled fraction)"],
|
|
5288
6252
|
"type": "u128"
|
|
5289
6253
|
},
|
|
5290
6254
|
{
|
|
5291
6255
|
"name": "pendingReferrerFeesSf",
|
|
5292
|
-
"docs": [
|
|
5293
|
-
"Reserve pending referrer fees, to be claimed in refresh_obligation by referrer or protocol (scaled fraction)"
|
|
5294
|
-
],
|
|
5295
6256
|
"type": "u128"
|
|
5296
6257
|
},
|
|
5297
6258
|
{
|
|
5298
6259
|
"name": "absoluteReferralRateSf",
|
|
5299
|
-
"docs": [
|
|
5300
|
-
"Reserve referrer fee absolute rate calculated at each refresh_reserve operation (scaled fraction)"
|
|
5301
|
-
],
|
|
5302
6260
|
"type": "u128"
|
|
5303
6261
|
},
|
|
5304
6262
|
{
|
|
5305
6263
|
"name": "tokenProgram",
|
|
5306
|
-
"docs": ["Token program of the liquidity mint"],
|
|
5307
6264
|
"type": "publicKey"
|
|
5308
6265
|
},
|
|
6266
|
+
{
|
|
6267
|
+
"name": "rewardsAmountAvailable",
|
|
6268
|
+
"type": "u64"
|
|
6269
|
+
},
|
|
5309
6270
|
{
|
|
5310
6271
|
"name": "padding2",
|
|
5311
6272
|
"type": {
|
|
5312
|
-
"array": [
|
|
6273
|
+
"array": [
|
|
6274
|
+
"u64",
|
|
6275
|
+
50
|
|
6276
|
+
]
|
|
5313
6277
|
}
|
|
5314
6278
|
},
|
|
5315
6279
|
{
|
|
5316
6280
|
"name": "padding3",
|
|
5317
6281
|
"type": {
|
|
5318
|
-
"array": [
|
|
6282
|
+
"array": [
|
|
6283
|
+
"u128",
|
|
6284
|
+
32
|
|
6285
|
+
]
|
|
5319
6286
|
}
|
|
5320
6287
|
}
|
|
5321
6288
|
]
|
|
@@ -5338,9 +6305,28 @@
|
|
|
5338
6305
|
]
|
|
5339
6306
|
}
|
|
5340
6307
|
},
|
|
6308
|
+
{
|
|
6309
|
+
"name": "WithdrawQueue",
|
|
6310
|
+
"type": {
|
|
6311
|
+
"kind": "struct",
|
|
6312
|
+
"fields": [
|
|
6313
|
+
{
|
|
6314
|
+
"name": "queuedCollateralAmount",
|
|
6315
|
+
"type": "u64"
|
|
6316
|
+
},
|
|
6317
|
+
{
|
|
6318
|
+
"name": "nextIssuedTicketSequenceNumber",
|
|
6319
|
+
"type": "u64"
|
|
6320
|
+
},
|
|
6321
|
+
{
|
|
6322
|
+
"name": "nextWithdrawableTicketSequenceNumber",
|
|
6323
|
+
"type": "u64"
|
|
6324
|
+
}
|
|
6325
|
+
]
|
|
6326
|
+
}
|
|
6327
|
+
},
|
|
5341
6328
|
{
|
|
5342
6329
|
"name": "WithdrawalCaps",
|
|
5343
|
-
"docs": ["Reserve Withdrawal Caps State"],
|
|
5344
6330
|
"type": {
|
|
5345
6331
|
"kind": "struct",
|
|
5346
6332
|
"fields": [
|
|
@@ -5370,17 +6356,14 @@
|
|
|
5370
6356
|
"fields": [
|
|
5371
6357
|
{
|
|
5372
6358
|
"name": "lower",
|
|
5373
|
-
"docs": ["Lower value of acceptable price"],
|
|
5374
6359
|
"type": "u64"
|
|
5375
6360
|
},
|
|
5376
6361
|
{
|
|
5377
6362
|
"name": "upper",
|
|
5378
|
-
"docs": ["Upper value of acceptable price"],
|
|
5379
6363
|
"type": "u64"
|
|
5380
6364
|
},
|
|
5381
6365
|
{
|
|
5382
6366
|
"name": "exp",
|
|
5383
|
-
"docs": ["Number of decimals of the previously defined values"],
|
|
5384
6367
|
"type": "u64"
|
|
5385
6368
|
}
|
|
5386
6369
|
]
|
|
@@ -5393,7 +6376,6 @@
|
|
|
5393
6376
|
"fields": [
|
|
5394
6377
|
{
|
|
5395
6378
|
"name": "price",
|
|
5396
|
-
"docs": ["Pubkey of the base price feed (disabled if `null` or `default`)"],
|
|
5397
6379
|
"type": "publicKey"
|
|
5398
6380
|
}
|
|
5399
6381
|
]
|
|
@@ -5406,21 +6388,24 @@
|
|
|
5406
6388
|
"fields": [
|
|
5407
6389
|
{
|
|
5408
6390
|
"name": "priceFeed",
|
|
5409
|
-
"docs": ["Pubkey of the scope price feed (disabled if `null` or `default`)"],
|
|
5410
6391
|
"type": "publicKey"
|
|
5411
6392
|
},
|
|
5412
6393
|
{
|
|
5413
6394
|
"name": "priceChain",
|
|
5414
|
-
"docs": ["This is the scope_id price chain that results in a price for the token"],
|
|
5415
6395
|
"type": {
|
|
5416
|
-
"array": [
|
|
6396
|
+
"array": [
|
|
6397
|
+
"u16",
|
|
6398
|
+
4
|
|
6399
|
+
]
|
|
5417
6400
|
}
|
|
5418
6401
|
},
|
|
5419
6402
|
{
|
|
5420
6403
|
"name": "twapChain",
|
|
5421
|
-
"docs": ["This is the scope_id price chain for the twap"],
|
|
5422
6404
|
"type": {
|
|
5423
|
-
"array": [
|
|
6405
|
+
"array": [
|
|
6406
|
+
"u16",
|
|
6407
|
+
4
|
|
6408
|
+
]
|
|
5424
6409
|
}
|
|
5425
6410
|
}
|
|
5426
6411
|
]
|
|
@@ -5433,7 +6418,6 @@
|
|
|
5433
6418
|
"fields": [
|
|
5434
6419
|
{
|
|
5435
6420
|
"name": "priceAggregator",
|
|
5436
|
-
"docs": ["Pubkey of the base price feed (disabled if `null` or `default`)"],
|
|
5437
6421
|
"type": "publicKey"
|
|
5438
6422
|
},
|
|
5439
6423
|
{
|
|
@@ -5450,21 +6434,21 @@
|
|
|
5450
6434
|
"fields": [
|
|
5451
6435
|
{
|
|
5452
6436
|
"name": "name",
|
|
5453
|
-
"docs": ["UTF-8 encoded name of the token (null-terminated)"],
|
|
5454
6437
|
"type": {
|
|
5455
|
-
"array": [
|
|
6438
|
+
"array": [
|
|
6439
|
+
"u8",
|
|
6440
|
+
32
|
|
6441
|
+
]
|
|
5456
6442
|
}
|
|
5457
6443
|
},
|
|
5458
6444
|
{
|
|
5459
6445
|
"name": "heuristic",
|
|
5460
|
-
"docs": ["Heuristics limits of acceptable price"],
|
|
5461
6446
|
"type": {
|
|
5462
6447
|
"defined": "PriceHeuristic"
|
|
5463
6448
|
}
|
|
5464
6449
|
},
|
|
5465
6450
|
{
|
|
5466
6451
|
"name": "maxTwapDivergenceBps",
|
|
5467
|
-
"docs": ["Max divergence between twap and price in bps"],
|
|
5468
6452
|
"type": "u64"
|
|
5469
6453
|
},
|
|
5470
6454
|
{
|
|
@@ -5477,21 +6461,18 @@
|
|
|
5477
6461
|
},
|
|
5478
6462
|
{
|
|
5479
6463
|
"name": "scopeConfiguration",
|
|
5480
|
-
"docs": ["Scope price configuration"],
|
|
5481
6464
|
"type": {
|
|
5482
6465
|
"defined": "ScopeConfiguration"
|
|
5483
6466
|
}
|
|
5484
6467
|
},
|
|
5485
6468
|
{
|
|
5486
6469
|
"name": "switchboardConfiguration",
|
|
5487
|
-
"docs": ["Switchboard configuration"],
|
|
5488
6470
|
"type": {
|
|
5489
6471
|
"defined": "SwitchboardConfiguration"
|
|
5490
6472
|
}
|
|
5491
6473
|
},
|
|
5492
6474
|
{
|
|
5493
6475
|
"name": "pythConfiguration",
|
|
5494
|
-
"docs": ["Pyth configuration"],
|
|
5495
6476
|
"type": {
|
|
5496
6477
|
"defined": "PythConfiguration"
|
|
5497
6478
|
}
|
|
@@ -5503,18 +6484,38 @@
|
|
|
5503
6484
|
{
|
|
5504
6485
|
"name": "reserved",
|
|
5505
6486
|
"type": {
|
|
5506
|
-
"array": [
|
|
6487
|
+
"array": [
|
|
6488
|
+
"u8",
|
|
6489
|
+
7
|
|
6490
|
+
]
|
|
5507
6491
|
}
|
|
5508
6492
|
},
|
|
5509
6493
|
{
|
|
5510
6494
|
"name": "padding",
|
|
5511
6495
|
"type": {
|
|
5512
|
-
"array": [
|
|
6496
|
+
"array": [
|
|
6497
|
+
"u64",
|
|
6498
|
+
19
|
|
6499
|
+
]
|
|
5513
6500
|
}
|
|
5514
6501
|
}
|
|
5515
6502
|
]
|
|
5516
6503
|
}
|
|
5517
6504
|
},
|
|
6505
|
+
{
|
|
6506
|
+
"name": "ProgressCallbackType",
|
|
6507
|
+
"type": {
|
|
6508
|
+
"kind": "enum",
|
|
6509
|
+
"variants": [
|
|
6510
|
+
{
|
|
6511
|
+
"name": "None"
|
|
6512
|
+
},
|
|
6513
|
+
{
|
|
6514
|
+
"name": "KlendQueueAccountingHandlerOnKvault"
|
|
6515
|
+
}
|
|
6516
|
+
]
|
|
6517
|
+
}
|
|
6518
|
+
},
|
|
5518
6519
|
{
|
|
5519
6520
|
"name": "BorrowRateCurve",
|
|
5520
6521
|
"type": {
|
|
@@ -6246,7 +7247,7 @@
|
|
|
6246
7247
|
{
|
|
6247
7248
|
"code": 6123,
|
|
6248
7249
|
"name": "OrderIndexOutOfBounds",
|
|
6249
|
-
"msg": "
|
|
7250
|
+
"msg": "Order of the given index cannot exist"
|
|
6250
7251
|
},
|
|
6251
7252
|
{
|
|
6252
7253
|
"code": 6124,
|
|
@@ -6347,6 +7348,216 @@
|
|
|
6347
7348
|
"code": 6143,
|
|
6348
7349
|
"name": "ExpectationNotMet",
|
|
6349
7350
|
"msg": "The on-chain state does not meet expectation specified by the caller, so the operation must be aborted (to avoid race conditions)"
|
|
7351
|
+
},
|
|
7352
|
+
{
|
|
7353
|
+
"code": 6144,
|
|
7354
|
+
"name": "BorrowOrderFillValueTooSmall",
|
|
7355
|
+
"msg": "Available liquidity could not satisfy the minimum required borrow order fill value"
|
|
7356
|
+
},
|
|
7357
|
+
{
|
|
7358
|
+
"code": 6145,
|
|
7359
|
+
"name": "WithdrawTicketIssuanceDisabled",
|
|
7360
|
+
"msg": "Issuing new withdraw tickets is disabled by the market"
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"code": 6146,
|
|
7364
|
+
"name": "WithdrawTicketRedemptionDisabled",
|
|
7365
|
+
"msg": "Redeeming withdraw tickets is disabled by the market"
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"code": 6147,
|
|
7369
|
+
"name": "WithdrawTicketStillValid",
|
|
7370
|
+
"msg": "Recovering collateral is only available after the withdraw ticket has been marked invalid"
|
|
7371
|
+
},
|
|
7372
|
+
{
|
|
7373
|
+
"code": 6148,
|
|
7374
|
+
"name": "WithdrawTicketRequiresFullRedemption",
|
|
7375
|
+
"msg": "The withdraw ticket's current state requires that it is fully redeemed (e.g. due to owner ATA creation), but there is not enough liquidity"
|
|
7376
|
+
},
|
|
7377
|
+
{
|
|
7378
|
+
"code": 6149,
|
|
7379
|
+
"name": "UserTokenBalanceMismatch",
|
|
7380
|
+
"msg": "The user's token account has changed its balance in an unexpected way"
|
|
7381
|
+
},
|
|
7382
|
+
{
|
|
7383
|
+
"code": 6150,
|
|
7384
|
+
"name": "WithdrawQueuedLiquidityValueTooSmall",
|
|
7385
|
+
"msg": "Available liquidity could not satisfy the minimum required ticketed withdrawal value"
|
|
7386
|
+
},
|
|
7387
|
+
{
|
|
7388
|
+
"code": 6151,
|
|
7389
|
+
"name": "InvalidTokenAccountState",
|
|
7390
|
+
"msg": "Token account is in a state preventing the handler's operation (e.g. frozen or delegate)"
|
|
7391
|
+
},
|
|
7392
|
+
{
|
|
7393
|
+
"code": 6152,
|
|
7394
|
+
"name": "WithdrawTicketInvalid",
|
|
7395
|
+
"msg": "Cannot use ticket that was already marked invalid"
|
|
7396
|
+
},
|
|
7397
|
+
{
|
|
7398
|
+
"code": 6153,
|
|
7399
|
+
"name": "BorrowOrderValueTooSmall",
|
|
7400
|
+
"msg": "Borrow order's value would be below the market-configured minimum"
|
|
7401
|
+
},
|
|
7402
|
+
{
|
|
7403
|
+
"code": 6154,
|
|
7404
|
+
"name": "WithdrawTicketValueTooSmall",
|
|
7405
|
+
"msg": "Withdraw ticket's value would be below the market-configured minimum"
|
|
7406
|
+
},
|
|
7407
|
+
{
|
|
7408
|
+
"code": 6155,
|
|
7409
|
+
"name": "InvalidWithdrawTicketProgressCallbackConfig",
|
|
7410
|
+
"msg": "Invalid configuration or required custom accounts for the requested withdraw ticket callback type"
|
|
7411
|
+
},
|
|
7412
|
+
{
|
|
7413
|
+
"code": 6156,
|
|
7414
|
+
"name": "WithdrawTicketProgressCallbackAccountsMissing",
|
|
7415
|
+
"msg": "One or more accounts required by the ticket's configured progress callback are missing"
|
|
7416
|
+
},
|
|
7417
|
+
{
|
|
7418
|
+
"code": 6157,
|
|
7419
|
+
"name": "BorrowRolloverConfigurationDisabled",
|
|
7420
|
+
"msg": "Configuring auto-rollover on loans is disabled by market owner"
|
|
7421
|
+
},
|
|
7422
|
+
{
|
|
7423
|
+
"code": 6158,
|
|
7424
|
+
"name": "InvalidObligationConfigUpdateSubject",
|
|
7425
|
+
"msg": "Invalid specification of the Obligation's part to be configured"
|
|
7426
|
+
},
|
|
7427
|
+
{
|
|
7428
|
+
"code": 6159,
|
|
7429
|
+
"name": "BorrowRolloverLiquidityMintMismatch",
|
|
7430
|
+
"msg": "Auto-rollover must use a target reserve of the same token"
|
|
7431
|
+
},
|
|
7432
|
+
{
|
|
7433
|
+
"code": 6160,
|
|
7434
|
+
"name": "ObligationBorrowRolloverNotApplicable",
|
|
7435
|
+
"msg": "The given borrow is not fixed-term and does not require rolling over"
|
|
7436
|
+
},
|
|
7437
|
+
{
|
|
7438
|
+
"code": 6161,
|
|
7439
|
+
"name": "ObligationBorrowOutsideRolloverWindow",
|
|
7440
|
+
"msg": "The given borrow is outside the corresponding market-configured rollover window"
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"code": 6162,
|
|
7444
|
+
"name": "ObligationBorrowRolloverNotEnabledByOwner",
|
|
7445
|
+
"msg": "Obligation's owner did not opt-in for auto-rollover of the given borrow"
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"code": 6163,
|
|
7449
|
+
"name": "ObligationBorrowRolloverTargetReserveMismatch",
|
|
7450
|
+
"msg": "Obligation's owner did not allow to roll over into terms offered by the given reserve"
|
|
7451
|
+
},
|
|
7452
|
+
{
|
|
7453
|
+
"code": 6164,
|
|
7454
|
+
"name": "BorrowRolloverExecutionDisabled",
|
|
7455
|
+
"msg": "Executing auto-rollover is disabled by market owner"
|
|
7456
|
+
},
|
|
7457
|
+
{
|
|
7458
|
+
"code": 6165,
|
|
7459
|
+
"name": "ObligationAccountingMismatch",
|
|
7460
|
+
"msg": "Obligation internal state accounting has been unexpectedly modified"
|
|
7461
|
+
},
|
|
7462
|
+
{
|
|
7463
|
+
"code": 6166,
|
|
7464
|
+
"name": "PartialRolloverValueTooSmall",
|
|
7465
|
+
"msg": "Partial rollover amount is below the market-configured minimum value"
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
"code": 6167,
|
|
7469
|
+
"name": "ObligationBorrowRolloverConfigMismatch",
|
|
7470
|
+
"msg": "Pre-existing rollover configuration of the loan cannot be overwritten by the operation"
|
|
7471
|
+
},
|
|
7472
|
+
{
|
|
7473
|
+
"code": 6168,
|
|
7474
|
+
"name": "ObligationBorrowRolloverMustProlongDebtTerm",
|
|
7475
|
+
"msg": "Rollover into existing borrow must prolong the remaining debt term"
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"code": 6169,
|
|
7479
|
+
"name": "RolloverNotSupportedInElevationGroup",
|
|
7480
|
+
"msg": "Rollover is not supported for obligations in an elevation group"
|
|
7481
|
+
},
|
|
7482
|
+
{
|
|
7483
|
+
"code": 6170,
|
|
7484
|
+
"name": "WithdrawTicketCancellationDisabled",
|
|
7485
|
+
"msg": "Cancelling withdraw tickets is disabled by the market"
|
|
7486
|
+
},
|
|
7487
|
+
{
|
|
7488
|
+
"code": 6171,
|
|
7489
|
+
"name": "WithdrawTicketFullyCancelled",
|
|
7490
|
+
"msg": "Cannot use ticket that was already fully-cancelled"
|
|
7491
|
+
},
|
|
7492
|
+
{
|
|
7493
|
+
"code": 6172,
|
|
7494
|
+
"name": "CloneSourceReserveDisabled",
|
|
7495
|
+
"msg": "Cannot clone config from a reserve that is disabled"
|
|
7496
|
+
},
|
|
7497
|
+
{
|
|
7498
|
+
"code": 6173,
|
|
7499
|
+
"name": "CloneTargetReserveAlreadyInUse",
|
|
7500
|
+
"msg": "Cannot clone config into a reserve that has been in use"
|
|
7501
|
+
},
|
|
7502
|
+
{
|
|
7503
|
+
"code": 6174,
|
|
7504
|
+
"name": "ClonedReserveLiquidityMintMismatch",
|
|
7505
|
+
"msg": "Cannot clone config between reserves of different mints"
|
|
7506
|
+
},
|
|
7507
|
+
{
|
|
7508
|
+
"code": 6175,
|
|
7509
|
+
"name": "ReserveEmergencyMode",
|
|
7510
|
+
"msg": "Reserve emergency mode is enabled"
|
|
7511
|
+
},
|
|
7512
|
+
{
|
|
7513
|
+
"code": 6176,
|
|
7514
|
+
"name": "ObligationOwnershipTransferInProgress",
|
|
7515
|
+
"msg": "Obligation ownership transfer is in progress"
|
|
7516
|
+
},
|
|
7517
|
+
{
|
|
7518
|
+
"code": 6177,
|
|
7519
|
+
"name": "ObligationOwnershipTransferNotInInitiatedState",
|
|
7520
|
+
"msg": "Obligation ownership transfer is not in initiated state"
|
|
7521
|
+
},
|
|
7522
|
+
{
|
|
7523
|
+
"code": 6178,
|
|
7524
|
+
"name": "ObligationPendingOwnerNotSet",
|
|
7525
|
+
"msg": "Obligation pending owner not set"
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
"code": 6179,
|
|
7529
|
+
"name": "ObligationInvalidPendingOwner",
|
|
7530
|
+
"msg": "Invalid pending owner address"
|
|
7531
|
+
},
|
|
7532
|
+
{
|
|
7533
|
+
"code": 6180,
|
|
7534
|
+
"name": "ObligationOwnershipTransferNotApproved",
|
|
7535
|
+
"msg": "Obligation ownership transfer not approved by admin"
|
|
7536
|
+
},
|
|
7537
|
+
{
|
|
7538
|
+
"code": 6181,
|
|
7539
|
+
"name": "ObligationHasActiveBorrowOrders",
|
|
7540
|
+
"msg": "Obligation has active borrow orders"
|
|
7541
|
+
},
|
|
7542
|
+
{
|
|
7543
|
+
"code": 6182,
|
|
7544
|
+
"name": "OnlyComputeBudgetCompanionIxsAllowed",
|
|
7545
|
+
"msg": "Only ComputeBudget instructions may accompany this instruction"
|
|
7546
|
+
},
|
|
7547
|
+
{
|
|
7548
|
+
"code": 6183,
|
|
7549
|
+
"name": "MissingPermissioner",
|
|
7550
|
+
"msg": "Required permissioning account is missing"
|
|
7551
|
+
},
|
|
7552
|
+
{
|
|
7553
|
+
"code": 6184,
|
|
7554
|
+
"name": "ReserveRewardsDisabled",
|
|
7555
|
+
"msg": "Reserve rewards are disabled on this market (reserve_rewards_max_apr_bps is 0)"
|
|
7556
|
+
},
|
|
7557
|
+
{
|
|
7558
|
+
"code": 6185,
|
|
7559
|
+
"name": "TransactionIncludesNonceInstruction",
|
|
7560
|
+
"msg": "Transaction includes a nonce instruction, which is not allowed for admin operations"
|
|
6350
7561
|
}
|
|
6351
7562
|
]
|
|
6352
7563
|
}
|