@kamino-finance/klend-sdk 7.4.0-beta.1 → 7.4.0-beta.3
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/dist/@codegen/klend/accounts/LendingMarket.d.ts +201 -6
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.js +130 -8
- package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.d.ts +24 -15
- package/dist/@codegen/klend/accounts/Obligation.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.js +24 -21
- package/dist/@codegen/klend/accounts/Obligation.js.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.d.ts +6 -0
- package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.js +9 -2
- package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.d.ts +0 -75
- package/dist/@codegen/klend/accounts/UserState.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.js +0 -25
- package/dist/@codegen/klend/accounts/UserState.js.map +1 -1
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts +144 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.d.ts.map +1 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.js +205 -0
- package/dist/@codegen/klend/accounts/WithdrawTicket.js.map +1 -0
- package/dist/@codegen/klend/accounts/index.d.ts +2 -0
- package/dist/@codegen/klend/accounts/index.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/index.js +3 -1
- package/dist/@codegen/klend/accounts/index.js.map +1 -1
- package/dist/@codegen/klend/errors/custom.d.ts +169 -1
- package/dist/@codegen/klend/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/klend/errors/custom.js +296 -1
- package/dist/@codegen/klend/errors/custom.js.map +1 -1
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts +62 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js +79 -0
- package/dist/@codegen/klend/instructions/enqueueToWithdraw.js.map +1 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts +36 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.js +49 -0
- package/dist/@codegen/klend/instructions/fillBorrowOrder.js.map +1 -0
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts +0 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.js +0 -2
- package/dist/@codegen/klend/instructions/idlMissingTypes.js.map +1 -1
- package/dist/@codegen/klend/instructions/index.d.ts +10 -0
- package/dist/@codegen/klend/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/index.js +12 -1
- package/dist/@codegen/klend/instructions/index.js.map +1 -1
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts +54 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js +66 -0
- package/dist/@codegen/klend/instructions/recoverInvalidTicketCollateral.js.map +1 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts +33 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.js +66 -0
- package/dist/@codegen/klend/instructions/setBorrowOrder.js.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts +66 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.d.ts.map +1 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js +41 -0
- package/dist/@codegen/klend/instructions/withdrawQueuedLiquidity.js.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrder.d.ts +192 -0
- package/dist/@codegen/klend/types/BorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrder.js +194 -0
- package/dist/@codegen/klend/types/BorrowOrder.js.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts +39 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.d.ts.map +1 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js +100 -0
- package/dist/@codegen/klend/types/BorrowOrderConfigArgs.js.map +1 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.d.ts +145 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.d.ts.map +1 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.js +144 -0
- package/dist/@codegen/klend/types/FixedTermBorrowRolloverConfig.js.map +1 -0
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts +64 -5
- package/dist/@codegen/klend/types/ObligationLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ObligationLiquidity.js +32 -8
- package/dist/@codegen/klend/types/ObligationLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/ObligationOrder.d.ts +4 -4
- package/dist/@codegen/klend/types/ObligationOrder.js +2 -2
- package/dist/@codegen/klend/types/ProgressCallbackType.d.ts +32 -0
- package/dist/@codegen/klend/types/ProgressCallbackType.d.ts.map +1 -0
- package/dist/@codegen/klend/types/{AssetTier.js → ProgressCallbackType.js} +24 -48
- package/dist/@codegen/klend/types/ProgressCallbackType.js.map +1 -0
- package/dist/@codegen/klend/types/ReserveConfig.d.ts +60 -5
- package/dist/@codegen/klend/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveConfig.js +36 -7
- package/dist/@codegen/klend/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts +26 -8
- package/dist/@codegen/klend/types/ReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/types/ReserveLiquidity.js +14 -8
- package/dist/@codegen/klend/types/ReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts +40 -14
- package/dist/@codegen/klend/types/UpdateConfigMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateConfigMode.js +72 -24
- package/dist/@codegen/klend/types/UpdateConfigMode.js.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts +130 -0
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.d.ts.map +1 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js +241 -1
- package/dist/@codegen/klend/types/UpdateLendingMarketMode.js.map +1 -1
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts +64 -0
- package/dist/@codegen/klend/types/WithdrawQueue.d.ts.map +1 -0
- package/dist/@codegen/klend/types/WithdrawQueue.js +104 -0
- package/dist/@codegen/klend/types/WithdrawQueue.js.map +1 -0
- package/dist/@codegen/klend/types/index.d.ts +27 -8
- package/dist/@codegen/klend/types/index.d.ts.map +1 -1
- package/dist/@codegen/klend/types/index.js +11 -3
- package/dist/@codegen/klend/types/index.js.map +1 -1
- package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts +8 -5
- package/dist/@codegen/klend/zero_padding/ObligationZP.d.ts.map +1 -1
- package/dist/@codegen/klend/zero_padding/ObligationZP.js +17 -14
- package/dist/@codegen/klend/zero_padding/ObligationZP.js.map +1 -1
- package/dist/@codegen/kvault/accounts/LendingMarket.d.ts +480 -0
- package/dist/@codegen/kvault/accounts/LendingMarket.d.ts.map +1 -0
- package/dist/@codegen/kvault/accounts/LendingMarket.js +480 -0
- package/dist/@codegen/kvault/accounts/LendingMarket.js.map +1 -0
- package/dist/@codegen/kvault/accounts/Obligation.d.ts +208 -0
- package/dist/@codegen/kvault/accounts/Obligation.d.ts.map +1 -0
- package/dist/@codegen/kvault/accounts/Obligation.js +298 -0
- package/dist/@codegen/kvault/accounts/Obligation.js.map +1 -0
- package/dist/@codegen/kvault/accounts/ReferrerTokenState.d.ts +51 -0
- package/dist/@codegen/kvault/accounts/ReferrerTokenState.d.ts.map +1 -0
- package/dist/@codegen/kvault/accounts/ReferrerTokenState.js +137 -0
- package/dist/@codegen/kvault/accounts/ReferrerTokenState.js.map +1 -0
- package/dist/@codegen/kvault/accounts/Reserve.d.ts +6 -0
- package/dist/@codegen/kvault/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/Reserve.js +9 -2
- package/dist/@codegen/kvault/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/kvault/accounts/VaultState.d.ts +45 -3
- package/dist/@codegen/kvault/accounts/VaultState.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/VaultState.js +28 -4
- package/dist/@codegen/kvault/accounts/VaultState.js.map +1 -1
- package/dist/@codegen/kvault/accounts/WithdrawTicket.d.ts +144 -0
- package/dist/@codegen/kvault/accounts/WithdrawTicket.d.ts.map +1 -0
- package/dist/@codegen/kvault/accounts/WithdrawTicket.js +205 -0
- package/dist/@codegen/kvault/accounts/WithdrawTicket.js.map +1 -0
- package/dist/@codegen/kvault/accounts/index.d.ts +8 -0
- package/dist/@codegen/kvault/accounts/index.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/index.js +9 -1
- package/dist/@codegen/kvault/accounts/index.js.map +1 -1
- package/dist/@codegen/kvault/errors/custom.d.ts +81 -1
- package/dist/@codegen/kvault/errors/custom.d.ts.map +1 -1
- package/dist/@codegen/kvault/errors/custom.js +141 -1
- package/dist/@codegen/kvault/errors/custom.js.map +1 -1
- package/dist/@codegen/kvault/instructions/index.d.ts +4 -0
- package/dist/@codegen/kvault/instructions/index.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/index.js +5 -1
- package/dist/@codegen/kvault/instructions/index.js.map +1 -1
- package/dist/@codegen/kvault/instructions/invest.d.ts +9 -0
- package/dist/@codegen/kvault/instructions/invest.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/invest.js +7 -0
- package/dist/@codegen/kvault/instructions/invest.js.map +1 -1
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillOrder.d.ts +51 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillOrder.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillOrder.js +154 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillOrder.js.map +1 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillWithdrawalTicket.d.ts +54 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillWithdrawalTicket.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillWithdrawalTicket.js +166 -0
- package/dist/@codegen/kvault/instructions/investInVirtualReserveAndFillWithdrawalTicket.js.map +1 -0
- package/dist/@codegen/kvault/instructions/updateKlendQueueAccounting.d.ts +1 -0
- package/dist/@codegen/kvault/instructions/updateKlendQueueAccounting.d.ts.map +1 -0
- package/dist/@codegen/kvault/instructions/updateKlendQueueAccounting.js +72 -0
- package/dist/@codegen/kvault/instructions/updateKlendQueueAccounting.js.map +1 -0
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts +3 -1
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.js +3 -0
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.js.map +1 -1
- package/dist/@codegen/kvault/types/BorrowOrder.d.ts +192 -0
- package/dist/@codegen/kvault/types/BorrowOrder.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/BorrowOrder.js +194 -0
- package/dist/@codegen/kvault/types/BorrowOrder.js.map +1 -0
- package/dist/@codegen/kvault/types/ElevationGroup.d.ts +67 -0
- package/dist/@codegen/kvault/types/ElevationGroup.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/ElevationGroup.js +137 -0
- package/dist/@codegen/kvault/types/ElevationGroup.js.map +1 -0
- package/dist/@codegen/kvault/types/FixedTermBorrowRolloverConfig.d.ts +145 -0
- package/dist/@codegen/kvault/types/FixedTermBorrowRolloverConfig.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/FixedTermBorrowRolloverConfig.js +144 -0
- package/dist/@codegen/kvault/types/FixedTermBorrowRolloverConfig.js.map +1 -0
- package/dist/@codegen/kvault/types/ObligationCollateral.d.ts +72 -0
- package/dist/@codegen/kvault/types/ObligationCollateral.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/ObligationCollateral.js +119 -0
- package/dist/@codegen/kvault/types/ObligationCollateral.js.map +1 -0
- package/dist/@codegen/kvault/types/ObligationLiquidity.d.ts +143 -0
- package/dist/@codegen/kvault/types/ObligationLiquidity.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/ObligationLiquidity.js +165 -0
- package/dist/@codegen/kvault/types/ObligationLiquidity.js.map +1 -0
- package/dist/@codegen/kvault/types/ObligationOrder.d.ts +284 -0
- package/dist/@codegen/kvault/types/ObligationOrder.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/ObligationOrder.js +205 -0
- package/dist/@codegen/kvault/types/ObligationOrder.js.map +1 -0
- package/dist/@codegen/kvault/types/ReserveConfig.d.ts +60 -5
- package/dist/@codegen/kvault/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/ReserveConfig.js +36 -7
- package/dist/@codegen/kvault/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/kvault/types/ReserveLiquidity.d.ts +26 -8
- package/dist/@codegen/kvault/types/ReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/ReserveLiquidity.js +14 -8
- package/dist/@codegen/kvault/types/ReserveLiquidity.js.map +1 -1
- package/dist/@codegen/kvault/types/ReserveType.d.ts +32 -0
- package/dist/@codegen/kvault/types/ReserveType.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/ReserveType.js +108 -0
- package/dist/@codegen/kvault/types/ReserveType.js.map +1 -0
- package/dist/@codegen/kvault/types/VaultAllocation.d.ts +60 -0
- package/dist/@codegen/kvault/types/VaultAllocation.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/VaultAllocation.js +38 -2
- package/dist/@codegen/kvault/types/VaultAllocation.js.map +1 -1
- package/dist/@codegen/kvault/types/WithdrawQueue.d.ts +64 -0
- package/dist/@codegen/kvault/types/WithdrawQueue.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/WithdrawQueue.js +104 -0
- package/dist/@codegen/kvault/types/WithdrawQueue.js.map +1 -0
- package/dist/@codegen/kvault/types/WithdrawTicketProgressEvent.d.ts +19 -0
- package/dist/@codegen/kvault/types/WithdrawTicketProgressEvent.d.ts.map +1 -0
- package/dist/@codegen/kvault/types/WithdrawTicketProgressEvent.js +82 -0
- package/dist/@codegen/kvault/types/WithdrawTicketProgressEvent.js.map +1 -0
- package/dist/@codegen/kvault/types/index.d.ts +34 -0
- package/dist/@codegen/kvault/types/index.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/index.js +19 -1
- package/dist/@codegen/kvault/types/index.js.map +1 -1
- package/dist/classes/action.d.ts +11 -0
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +66 -0
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/actionTypes.d.ts +29 -0
- package/dist/classes/actionTypes.d.ts.map +1 -1
- package/dist/classes/manager.d.ts +1 -1
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +13 -8
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/market.d.ts +10 -5
- package/dist/classes/market.d.ts.map +1 -1
- package/dist/classes/market.js +22 -15
- package/dist/classes/market.js.map +1 -1
- package/dist/classes/obligation.d.ts +2 -2
- package/dist/classes/obligation.d.ts.map +1 -1
- package/dist/classes/obligation.js +9 -7
- package/dist/classes/obligation.js.map +1 -1
- package/dist/classes/reserve.d.ts +2 -1
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +48 -32
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/utils.d.ts +2 -0
- package/dist/classes/utils.d.ts.map +1 -1
- package/dist/classes/utils.js +12 -1
- package/dist/classes/utils.js.map +1 -1
- package/dist/classes/vault.d.ts +4 -2
- package/dist/classes/vault.d.ts.map +1 -1
- package/dist/classes/vault.js +12 -2
- package/dist/classes/vault.js.map +1 -1
- package/dist/idl/klend.json +1461 -106
- package/dist/manager/client_kamino_manager.js +14 -11
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/dist/obligation_orders/price_based.js +5 -4
- package/dist/obligation_orders/price_based.js.map +1 -1
- package/dist/utils/managerTypes.d.ts.map +1 -1
- package/dist/utils/managerTypes.js +3 -1
- package/dist/utils/managerTypes.js.map +1 -1
- package/dist/utils/seeds.d.ts +24 -0
- package/dist/utils/seeds.d.ts.map +1 -1
- package/dist/utils/seeds.js +41 -1
- package/dist/utils/seeds.js.map +1 -1
- package/dist/utils/validations.d.ts +1 -0
- package/dist/utils/validations.d.ts.map +1 -1
- package/dist/utils/validations.js +5 -0
- package/dist/utils/validations.js.map +1 -1
- package/dist/utils/vault.d.ts.map +1 -1
- package/dist/utils/vault.js +2 -0
- package/dist/utils/vault.js.map +1 -1
- package/package.json +1 -1
- package/src/@codegen/klend/accounts/LendingMarket.ts +284 -12
- package/src/@codegen/klend/accounts/Obligation.ts +42 -31
- package/src/@codegen/klend/accounts/Reserve.ts +13 -2
- package/src/@codegen/klend/accounts/UserState.ts +0 -75
- package/src/@codegen/klend/accounts/WithdrawTicket.ts +280 -0
- package/src/@codegen/klend/accounts/index.ts +2 -0
- package/src/@codegen/klend/errors/custom.ts +333 -0
- package/src/@codegen/klend/instructions/enqueueToWithdraw.ts +120 -0
- package/src/@codegen/klend/instructions/fillBorrowOrder.ts +96 -0
- package/src/@codegen/klend/instructions/idlMissingTypes.ts +0 -3
- package/src/@codegen/klend/instructions/index.ts +19 -0
- package/src/@codegen/klend/instructions/recoverInvalidTicketCollateral.ts +103 -0
- package/src/@codegen/klend/instructions/setBorrowOrder.ts +81 -0
- package/src/@codegen/klend/instructions/withdrawQueuedLiquidity.ts +118 -0
- package/src/@codegen/klend/types/BorrowOrder.ts +267 -0
- package/src/@codegen/klend/types/BorrowOrderConfigArgs.ts +87 -0
- package/src/@codegen/klend/types/FixedTermBorrowRolloverConfig.ts +199 -0
- package/src/@codegen/klend/types/ObligationLiquidity.ts +76 -10
- package/src/@codegen/klend/types/ObligationOrder.ts +4 -4
- package/src/@codegen/klend/types/ProgressCallbackType.ts +91 -0
- package/src/@codegen/klend/types/ReserveConfig.ts +72 -9
- package/src/@codegen/klend/types/ReserveLiquidity.ts +30 -12
- package/src/@codegen/klend/types/UpdateConfigMode.ts +86 -26
- package/src/@codegen/klend/types/UpdateLendingMarketMode.ts +300 -0
- package/src/@codegen/klend/types/WithdrawQueue.ts +117 -0
- package/src/@codegen/klend/types/index.ts +63 -16
- package/src/@codegen/klend/zero_padding/ObligationZP.ts +17 -14
- package/src/@codegen/kvault/accounts/LendingMarket.ts +837 -0
- package/src/@codegen/kvault/accounts/Obligation.ts +459 -0
- package/src/@codegen/kvault/accounts/ReferrerTokenState.ts +160 -0
- package/src/@codegen/kvault/accounts/Reserve.ts +13 -2
- package/src/@codegen/kvault/accounts/VaultState.ts +59 -7
- package/src/@codegen/kvault/accounts/WithdrawTicket.ts +280 -0
- package/src/@codegen/kvault/accounts/index.ts +11 -0
- package/src/@codegen/kvault/errors/custom.ts +152 -0
- package/src/@codegen/kvault/instructions/index.ts +10 -0
- package/src/@codegen/kvault/instructions/invest.ts +16 -0
- package/src/@codegen/kvault/instructions/investInVirtualReserveAndFillOrder.ts +189 -0
- package/src/@codegen/kvault/instructions/investInVirtualReserveAndFillWithdrawalTicket.ts +205 -0
- package/src/@codegen/kvault/instructions/updateKlendQueueAccounting.ts +76 -0
- package/src/@codegen/kvault/instructions/updateReserveAllocation.ts +4 -1
- package/src/@codegen/kvault/types/BorrowOrder.ts +267 -0
- package/src/@codegen/kvault/types/ElevationGroup.ts +134 -0
- package/src/@codegen/kvault/types/FixedTermBorrowRolloverConfig.ts +199 -0
- package/src/@codegen/kvault/types/ObligationCollateral.ts +129 -0
- package/src/@codegen/kvault/types/ObligationLiquidity.ts +226 -0
- package/src/@codegen/kvault/types/ObligationOrder.ts +348 -0
- package/src/@codegen/kvault/types/ReserveConfig.ts +72 -9
- package/src/@codegen/kvault/types/ReserveLiquidity.ts +30 -12
- package/src/@codegen/kvault/types/ReserveType.ts +89 -0
- package/src/@codegen/kvault/types/VaultAllocation.ts +74 -2
- package/src/@codegen/kvault/types/WithdrawQueue.ts +117 -0
- package/src/@codegen/kvault/types/WithdrawTicketProgressEvent.ts +59 -0
- package/src/@codegen/kvault/types/index.ts +52 -0
- package/src/classes/action.ts +115 -1
- package/src/classes/actionTypes.ts +31 -0
- package/src/classes/manager.ts +24 -27
- package/src/classes/market.ts +34 -17
- package/src/classes/obligation.ts +9 -7
- package/src/classes/reserve.ts +48 -45
- package/src/classes/utils.ts +8 -0
- package/src/classes/vault.ts +35 -4
- package/src/idl/klend.json +1461 -106
- package/src/idl/kvault.json +2336 -299
- package/src/manager/client_kamino_manager.ts +14 -12
- package/src/obligation_orders/price_based.ts +7 -6
- package/src/utils/managerTypes.ts +3 -1
- package/src/utils/seeds.ts +49 -0
- package/src/utils/validations.ts +5 -0
- package/src/utils/vault.ts +2 -0
- package/dist/@codegen/klend/types/AssetTier.d.ts +0 -45
- package/dist/@codegen/klend/types/AssetTier.d.ts.map +0 -1
- package/dist/@codegen/klend/types/AssetTier.js.map +0 -1
- package/src/@codegen/klend/types/AssetTier.ts +0 -119
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { Address, GetAccountInfoApi, GetMultipleAccountsApi, Rpc } from "@solana/kit";
|
|
2
|
+
import BN from "bn.js";
|
|
3
|
+
import * as types from "../types";
|
|
4
|
+
export interface LendingMarketFields {
|
|
5
|
+
/** Version of lending market */
|
|
6
|
+
version: BN;
|
|
7
|
+
/** Bump seed for derived authority address */
|
|
8
|
+
bumpSeed: BN;
|
|
9
|
+
/** Owner authority which can add new reserves */
|
|
10
|
+
lendingMarketOwner: Address;
|
|
11
|
+
/** Temporary cache of the lending market owner, used in update_lending_market_owner */
|
|
12
|
+
lendingMarketOwnerCached: Address;
|
|
13
|
+
/**
|
|
14
|
+
* Currency market prices are quoted in
|
|
15
|
+
* 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
|
|
16
|
+
*/
|
|
17
|
+
quoteCurrency: Array<number>;
|
|
18
|
+
/** Referral fee for the lending market, as bps out of the total protocol fee */
|
|
19
|
+
referralFeeBps: number;
|
|
20
|
+
emergencyMode: number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the obligations on this market should be subject to auto-deleveraging after deposit
|
|
23
|
+
* or borrow limit is crossed.
|
|
24
|
+
* Besides this flag, the particular reserve's flag also needs to be enabled (logical `AND`).
|
|
25
|
+
* **NOTE:** this also affects the individual "target LTV" deleveraging.
|
|
26
|
+
*/
|
|
27
|
+
autodeleverageEnabled: number;
|
|
28
|
+
borrowDisabled: number;
|
|
29
|
+
/**
|
|
30
|
+
* Refresh price from oracle only if it's older than this percentage of the price max age.
|
|
31
|
+
* 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.
|
|
32
|
+
* Price is always refreshed if this set to 0.
|
|
33
|
+
*/
|
|
34
|
+
priceRefreshTriggerToMaxAgePct: number;
|
|
35
|
+
/** Percentage of the total borrowed value in an obligation available for liquidation */
|
|
36
|
+
liquidationMaxDebtCloseFactorPct: number;
|
|
37
|
+
/** Minimum acceptable unhealthy LTV before max_debt_close_factor_pct becomes 100% */
|
|
38
|
+
insolvencyRiskUnhealthyLtvPct: number;
|
|
39
|
+
/**
|
|
40
|
+
* Minimum liquidation value threshold triggering full liquidation for an obligation, in full
|
|
41
|
+
* units of the quote currency (e.g. `2` means "$2", not "2 lamports of USDC").
|
|
42
|
+
*/
|
|
43
|
+
minFullLiquidationValueThreshold: BN;
|
|
44
|
+
/** Max allowed liquidation value in one ix call */
|
|
45
|
+
maxLiquidatableDebtMarketValueAtOnce: BN;
|
|
46
|
+
/** [DEPRECATED] Global maximum unhealthy borrow value allowed for any obligation */
|
|
47
|
+
reserved0: Array<number>;
|
|
48
|
+
/** Global maximum allowed borrow value allowed for any obligation */
|
|
49
|
+
globalAllowedBorrowValue: BN;
|
|
50
|
+
/** The address of the risk council, in charge of making parameter and risk decisions on behalf of the protocol */
|
|
51
|
+
riskCouncil: Address;
|
|
52
|
+
/** [DEPRECATED] Reward points multiplier per obligation type */
|
|
53
|
+
reserved1: Array<number>;
|
|
54
|
+
/** Elevation groups are used to group together reserves that have the same risk parameters and can bump the ltv and liquidation threshold */
|
|
55
|
+
elevationGroups: Array<types.ElevationGroupFields>;
|
|
56
|
+
elevationGroupPadding: Array<BN>;
|
|
57
|
+
/** Min net value accepted to be found in a position after any lending action in an obligation (scaled by quote currency decimals) */
|
|
58
|
+
minNetValueInObligationSf: BN;
|
|
59
|
+
/** Minimum value to enforce smallest ltv priority checks on the collateral reserves on liquidation */
|
|
60
|
+
minValueSkipLiquidationLtvChecks: BN;
|
|
61
|
+
/** Market name, zero-padded. */
|
|
62
|
+
name: Array<number>;
|
|
63
|
+
/** Minimum value to enforce highest borrow factor priority checks on the debt reserves on liquidation */
|
|
64
|
+
minValueSkipLiquidationBfChecks: BN;
|
|
65
|
+
/**
|
|
66
|
+
* Time (in seconds) that must pass before liquidation is allowed on an obligation that has
|
|
67
|
+
* been individually marked for auto-deleveraging (by the risk council).
|
|
68
|
+
*/
|
|
69
|
+
individualAutodeleverageMarginCallPeriodSecs: BN;
|
|
70
|
+
/**
|
|
71
|
+
* Minimum amount of deposit at creation of a reserve to prevent artificial inflation
|
|
72
|
+
* Note: this amount cannot be recovered, the ctoken associated are never minted
|
|
73
|
+
*/
|
|
74
|
+
minInitialDepositAmount: BN;
|
|
75
|
+
/** Whether the obligation orders should be evaluated during liquidations. */
|
|
76
|
+
obligationOrderExecutionEnabled: number;
|
|
77
|
+
/** Whether the lending market is set as immutable. */
|
|
78
|
+
immutable: number;
|
|
79
|
+
/**
|
|
80
|
+
* Whether new obligation orders can be created.
|
|
81
|
+
* Note: updating or cancelling existing orders is *not* affected by this flag.
|
|
82
|
+
*/
|
|
83
|
+
obligationOrderCreationEnabled: number;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the liquidation operations that are triggered by price changes should be disabled.
|
|
86
|
+
* This includes regular liquidation (i.e. LTV exceeding the unhealthy threshold) and some
|
|
87
|
+
* obligation orders' execution.
|
|
88
|
+
*
|
|
89
|
+
* *Caution:* this flag is *disabling* the liquidations when `1` - contrary to all the other
|
|
90
|
+
* liquidation-driving flags (see e.g. [Self::autodeleverage_enabled]).
|
|
91
|
+
*/
|
|
92
|
+
priceTriggeredLiquidationDisabled: number;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the debts that reached their reserve's [ReserveConfig::debt_maturity_timestamp] can
|
|
95
|
+
* be liquidated.
|
|
96
|
+
*/
|
|
97
|
+
matureReserveDebtLiquidationEnabled: number;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the [Obligation::borrows] that reached their [ReserveConfig::debt_term_seconds] can
|
|
100
|
+
* be liquidated.
|
|
101
|
+
*/
|
|
102
|
+
obligationBorrowDebtTermLiquidationEnabled: number;
|
|
103
|
+
/**
|
|
104
|
+
* Whether new borrow orders can be created.
|
|
105
|
+
* Note: updating or cancelling existing orders is *not* affected by this flag.
|
|
106
|
+
*/
|
|
107
|
+
borrowOrderCreationEnabled: number;
|
|
108
|
+
/** Whether the existing borrow orders can be filled. */
|
|
109
|
+
borrowOrderExecutionEnabled: number;
|
|
110
|
+
/** Authority that can propose creating of new reserves but cannot enable them. */
|
|
111
|
+
proposerAuthority: Address;
|
|
112
|
+
/**
|
|
113
|
+
* Whether any new withdraw tickets can be issued (i.e. whether new requests can enter the
|
|
114
|
+
* withdraw queue).
|
|
115
|
+
*/
|
|
116
|
+
withdrawTicketIssuanceEnabled: number;
|
|
117
|
+
/**
|
|
118
|
+
* Whether the existing withdraw tickets can be redeemed (i.e. whether the tickets can be used
|
|
119
|
+
* to transfer accumulated pending liquidity to destination accounts).
|
|
120
|
+
*/
|
|
121
|
+
withdrawTicketRedemptionEnabled: number;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the owners can enable the "fixed term borrow rollover" on their obligations.
|
|
124
|
+
*
|
|
125
|
+
* *Note 1:* the actual execution of (different kinds of) rollovers can be disabled by zeroing
|
|
126
|
+
* [Self::fixed_rollover_window_duration_seconds] and
|
|
127
|
+
* [Self::variable_rollover_window_duration_seconds].
|
|
128
|
+
*
|
|
129
|
+
* *Note 2:* when this configuration is disabled, the obligation owners can still disable their
|
|
130
|
+
* rollover (i.e. set the obligation's flags to zeroes).
|
|
131
|
+
*/
|
|
132
|
+
obligationBorrowRolloverConfigurationEnabled: number;
|
|
133
|
+
padding2: Array<number>;
|
|
134
|
+
/**
|
|
135
|
+
* Minimum value that can be withdrawn in a single `withdraw_queued_liquidity()` call, in full
|
|
136
|
+
* units of the quote currency (e.g. `2` means "$2", not "2 lamports of USDC").
|
|
137
|
+
*/
|
|
138
|
+
minWithdrawQueuedLiquidityValue: BN;
|
|
139
|
+
/**
|
|
140
|
+
* A configurable time window (right before the end of a fixed debt term) during which an
|
|
141
|
+
* auto-rollover into another *fixed* rate/term can happen.
|
|
142
|
+
*
|
|
143
|
+
* When zeroed, this rollover mode is effectively disabled.
|
|
144
|
+
*
|
|
145
|
+
* See [FixedTermBorrowRolloverConfig].
|
|
146
|
+
*/
|
|
147
|
+
fixedRolloverWindowDurationSeconds: BN;
|
|
148
|
+
/**
|
|
149
|
+
* A configurable time window (right before the end of a fixed debt term) during which an
|
|
150
|
+
* auto-rollover into a *variable* (indefinite) rate/term can happen.
|
|
151
|
+
*
|
|
152
|
+
* When zeroed, this rollover mode is effectively disabled.
|
|
153
|
+
*
|
|
154
|
+
* This will typically be shorter than [Self::fixed_rollover_window_duration_seconds], acting
|
|
155
|
+
* as a fallback if a fixed reserve liquidity remains unavailable for considerable time.
|
|
156
|
+
*/
|
|
157
|
+
variableRolloverWindowDurationSeconds: BN;
|
|
158
|
+
padding1: Array<BN>;
|
|
159
|
+
}
|
|
160
|
+
export interface LendingMarketJSON {
|
|
161
|
+
/** Version of lending market */
|
|
162
|
+
version: string;
|
|
163
|
+
/** Bump seed for derived authority address */
|
|
164
|
+
bumpSeed: string;
|
|
165
|
+
/** Owner authority which can add new reserves */
|
|
166
|
+
lendingMarketOwner: string;
|
|
167
|
+
/** Temporary cache of the lending market owner, used in update_lending_market_owner */
|
|
168
|
+
lendingMarketOwnerCached: string;
|
|
169
|
+
/**
|
|
170
|
+
* Currency market prices are quoted in
|
|
171
|
+
* 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
|
|
172
|
+
*/
|
|
173
|
+
quoteCurrency: Array<number>;
|
|
174
|
+
/** Referral fee for the lending market, as bps out of the total protocol fee */
|
|
175
|
+
referralFeeBps: number;
|
|
176
|
+
emergencyMode: number;
|
|
177
|
+
/**
|
|
178
|
+
* Whether the obligations on this market should be subject to auto-deleveraging after deposit
|
|
179
|
+
* or borrow limit is crossed.
|
|
180
|
+
* Besides this flag, the particular reserve's flag also needs to be enabled (logical `AND`).
|
|
181
|
+
* **NOTE:** this also affects the individual "target LTV" deleveraging.
|
|
182
|
+
*/
|
|
183
|
+
autodeleverageEnabled: number;
|
|
184
|
+
borrowDisabled: number;
|
|
185
|
+
/**
|
|
186
|
+
* Refresh price from oracle only if it's older than this percentage of the price max age.
|
|
187
|
+
* 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.
|
|
188
|
+
* Price is always refreshed if this set to 0.
|
|
189
|
+
*/
|
|
190
|
+
priceRefreshTriggerToMaxAgePct: number;
|
|
191
|
+
/** Percentage of the total borrowed value in an obligation available for liquidation */
|
|
192
|
+
liquidationMaxDebtCloseFactorPct: number;
|
|
193
|
+
/** Minimum acceptable unhealthy LTV before max_debt_close_factor_pct becomes 100% */
|
|
194
|
+
insolvencyRiskUnhealthyLtvPct: number;
|
|
195
|
+
/**
|
|
196
|
+
* Minimum liquidation value threshold triggering full liquidation for an obligation, in full
|
|
197
|
+
* units of the quote currency (e.g. `2` means "$2", not "2 lamports of USDC").
|
|
198
|
+
*/
|
|
199
|
+
minFullLiquidationValueThreshold: string;
|
|
200
|
+
/** Max allowed liquidation value in one ix call */
|
|
201
|
+
maxLiquidatableDebtMarketValueAtOnce: string;
|
|
202
|
+
/** [DEPRECATED] Global maximum unhealthy borrow value allowed for any obligation */
|
|
203
|
+
reserved0: Array<number>;
|
|
204
|
+
/** Global maximum allowed borrow value allowed for any obligation */
|
|
205
|
+
globalAllowedBorrowValue: string;
|
|
206
|
+
/** The address of the risk council, in charge of making parameter and risk decisions on behalf of the protocol */
|
|
207
|
+
riskCouncil: string;
|
|
208
|
+
/** [DEPRECATED] Reward points multiplier per obligation type */
|
|
209
|
+
reserved1: Array<number>;
|
|
210
|
+
/** Elevation groups are used to group together reserves that have the same risk parameters and can bump the ltv and liquidation threshold */
|
|
211
|
+
elevationGroups: Array<types.ElevationGroupJSON>;
|
|
212
|
+
elevationGroupPadding: Array<string>;
|
|
213
|
+
/** Min net value accepted to be found in a position after any lending action in an obligation (scaled by quote currency decimals) */
|
|
214
|
+
minNetValueInObligationSf: string;
|
|
215
|
+
/** Minimum value to enforce smallest ltv priority checks on the collateral reserves on liquidation */
|
|
216
|
+
minValueSkipLiquidationLtvChecks: string;
|
|
217
|
+
/** Market name, zero-padded. */
|
|
218
|
+
name: Array<number>;
|
|
219
|
+
/** Minimum value to enforce highest borrow factor priority checks on the debt reserves on liquidation */
|
|
220
|
+
minValueSkipLiquidationBfChecks: string;
|
|
221
|
+
/**
|
|
222
|
+
* Time (in seconds) that must pass before liquidation is allowed on an obligation that has
|
|
223
|
+
* been individually marked for auto-deleveraging (by the risk council).
|
|
224
|
+
*/
|
|
225
|
+
individualAutodeleverageMarginCallPeriodSecs: string;
|
|
226
|
+
/**
|
|
227
|
+
* Minimum amount of deposit at creation of a reserve to prevent artificial inflation
|
|
228
|
+
* Note: this amount cannot be recovered, the ctoken associated are never minted
|
|
229
|
+
*/
|
|
230
|
+
minInitialDepositAmount: string;
|
|
231
|
+
/** Whether the obligation orders should be evaluated during liquidations. */
|
|
232
|
+
obligationOrderExecutionEnabled: number;
|
|
233
|
+
/** Whether the lending market is set as immutable. */
|
|
234
|
+
immutable: number;
|
|
235
|
+
/**
|
|
236
|
+
* Whether new obligation orders can be created.
|
|
237
|
+
* Note: updating or cancelling existing orders is *not* affected by this flag.
|
|
238
|
+
*/
|
|
239
|
+
obligationOrderCreationEnabled: number;
|
|
240
|
+
/**
|
|
241
|
+
* Whether the liquidation operations that are triggered by price changes should be disabled.
|
|
242
|
+
* This includes regular liquidation (i.e. LTV exceeding the unhealthy threshold) and some
|
|
243
|
+
* obligation orders' execution.
|
|
244
|
+
*
|
|
245
|
+
* *Caution:* this flag is *disabling* the liquidations when `1` - contrary to all the other
|
|
246
|
+
* liquidation-driving flags (see e.g. [Self::autodeleverage_enabled]).
|
|
247
|
+
*/
|
|
248
|
+
priceTriggeredLiquidationDisabled: number;
|
|
249
|
+
/**
|
|
250
|
+
* Whether the debts that reached their reserve's [ReserveConfig::debt_maturity_timestamp] can
|
|
251
|
+
* be liquidated.
|
|
252
|
+
*/
|
|
253
|
+
matureReserveDebtLiquidationEnabled: number;
|
|
254
|
+
/**
|
|
255
|
+
* Whether the [Obligation::borrows] that reached their [ReserveConfig::debt_term_seconds] can
|
|
256
|
+
* be liquidated.
|
|
257
|
+
*/
|
|
258
|
+
obligationBorrowDebtTermLiquidationEnabled: number;
|
|
259
|
+
/**
|
|
260
|
+
* Whether new borrow orders can be created.
|
|
261
|
+
* Note: updating or cancelling existing orders is *not* affected by this flag.
|
|
262
|
+
*/
|
|
263
|
+
borrowOrderCreationEnabled: number;
|
|
264
|
+
/** Whether the existing borrow orders can be filled. */
|
|
265
|
+
borrowOrderExecutionEnabled: number;
|
|
266
|
+
/** Authority that can propose creating of new reserves but cannot enable them. */
|
|
267
|
+
proposerAuthority: string;
|
|
268
|
+
/**
|
|
269
|
+
* Whether any new withdraw tickets can be issued (i.e. whether new requests can enter the
|
|
270
|
+
* withdraw queue).
|
|
271
|
+
*/
|
|
272
|
+
withdrawTicketIssuanceEnabled: number;
|
|
273
|
+
/**
|
|
274
|
+
* Whether the existing withdraw tickets can be redeemed (i.e. whether the tickets can be used
|
|
275
|
+
* to transfer accumulated pending liquidity to destination accounts).
|
|
276
|
+
*/
|
|
277
|
+
withdrawTicketRedemptionEnabled: number;
|
|
278
|
+
/**
|
|
279
|
+
* Whether the owners can enable the "fixed term borrow rollover" on their obligations.
|
|
280
|
+
*
|
|
281
|
+
* *Note 1:* the actual execution of (different kinds of) rollovers can be disabled by zeroing
|
|
282
|
+
* [Self::fixed_rollover_window_duration_seconds] and
|
|
283
|
+
* [Self::variable_rollover_window_duration_seconds].
|
|
284
|
+
*
|
|
285
|
+
* *Note 2:* when this configuration is disabled, the obligation owners can still disable their
|
|
286
|
+
* rollover (i.e. set the obligation's flags to zeroes).
|
|
287
|
+
*/
|
|
288
|
+
obligationBorrowRolloverConfigurationEnabled: number;
|
|
289
|
+
padding2: Array<number>;
|
|
290
|
+
/**
|
|
291
|
+
* Minimum value that can be withdrawn in a single `withdraw_queued_liquidity()` call, in full
|
|
292
|
+
* units of the quote currency (e.g. `2` means "$2", not "2 lamports of USDC").
|
|
293
|
+
*/
|
|
294
|
+
minWithdrawQueuedLiquidityValue: string;
|
|
295
|
+
/**
|
|
296
|
+
* A configurable time window (right before the end of a fixed debt term) during which an
|
|
297
|
+
* auto-rollover into another *fixed* rate/term can happen.
|
|
298
|
+
*
|
|
299
|
+
* When zeroed, this rollover mode is effectively disabled.
|
|
300
|
+
*
|
|
301
|
+
* See [FixedTermBorrowRolloverConfig].
|
|
302
|
+
*/
|
|
303
|
+
fixedRolloverWindowDurationSeconds: string;
|
|
304
|
+
/**
|
|
305
|
+
* A configurable time window (right before the end of a fixed debt term) during which an
|
|
306
|
+
* auto-rollover into a *variable* (indefinite) rate/term can happen.
|
|
307
|
+
*
|
|
308
|
+
* When zeroed, this rollover mode is effectively disabled.
|
|
309
|
+
*
|
|
310
|
+
* This will typically be shorter than [Self::fixed_rollover_window_duration_seconds], acting
|
|
311
|
+
* as a fallback if a fixed reserve liquidity remains unavailable for considerable time.
|
|
312
|
+
*/
|
|
313
|
+
variableRolloverWindowDurationSeconds: string;
|
|
314
|
+
padding1: Array<string>;
|
|
315
|
+
}
|
|
316
|
+
export declare class LendingMarket {
|
|
317
|
+
/** Version of lending market */
|
|
318
|
+
readonly version: BN;
|
|
319
|
+
/** Bump seed for derived authority address */
|
|
320
|
+
readonly bumpSeed: BN;
|
|
321
|
+
/** Owner authority which can add new reserves */
|
|
322
|
+
readonly lendingMarketOwner: Address;
|
|
323
|
+
/** Temporary cache of the lending market owner, used in update_lending_market_owner */
|
|
324
|
+
readonly lendingMarketOwnerCached: Address;
|
|
325
|
+
/**
|
|
326
|
+
* Currency market prices are quoted in
|
|
327
|
+
* 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
|
|
328
|
+
*/
|
|
329
|
+
readonly quoteCurrency: Array<number>;
|
|
330
|
+
/** Referral fee for the lending market, as bps out of the total protocol fee */
|
|
331
|
+
readonly referralFeeBps: number;
|
|
332
|
+
readonly emergencyMode: number;
|
|
333
|
+
/**
|
|
334
|
+
* Whether the obligations on this market should be subject to auto-deleveraging after deposit
|
|
335
|
+
* or borrow limit is crossed.
|
|
336
|
+
* Besides this flag, the particular reserve's flag also needs to be enabled (logical `AND`).
|
|
337
|
+
* **NOTE:** this also affects the individual "target LTV" deleveraging.
|
|
338
|
+
*/
|
|
339
|
+
readonly autodeleverageEnabled: number;
|
|
340
|
+
readonly borrowDisabled: number;
|
|
341
|
+
/**
|
|
342
|
+
* Refresh price from oracle only if it's older than this percentage of the price max age.
|
|
343
|
+
* 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.
|
|
344
|
+
* Price is always refreshed if this set to 0.
|
|
345
|
+
*/
|
|
346
|
+
readonly priceRefreshTriggerToMaxAgePct: number;
|
|
347
|
+
/** Percentage of the total borrowed value in an obligation available for liquidation */
|
|
348
|
+
readonly liquidationMaxDebtCloseFactorPct: number;
|
|
349
|
+
/** Minimum acceptable unhealthy LTV before max_debt_close_factor_pct becomes 100% */
|
|
350
|
+
readonly insolvencyRiskUnhealthyLtvPct: number;
|
|
351
|
+
/**
|
|
352
|
+
* Minimum liquidation value threshold triggering full liquidation for an obligation, in full
|
|
353
|
+
* units of the quote currency (e.g. `2` means "$2", not "2 lamports of USDC").
|
|
354
|
+
*/
|
|
355
|
+
readonly minFullLiquidationValueThreshold: BN;
|
|
356
|
+
/** Max allowed liquidation value in one ix call */
|
|
357
|
+
readonly maxLiquidatableDebtMarketValueAtOnce: BN;
|
|
358
|
+
/** [DEPRECATED] Global maximum unhealthy borrow value allowed for any obligation */
|
|
359
|
+
readonly reserved0: Array<number>;
|
|
360
|
+
/** Global maximum allowed borrow value allowed for any obligation */
|
|
361
|
+
readonly globalAllowedBorrowValue: BN;
|
|
362
|
+
/** The address of the risk council, in charge of making parameter and risk decisions on behalf of the protocol */
|
|
363
|
+
readonly riskCouncil: Address;
|
|
364
|
+
/** [DEPRECATED] Reward points multiplier per obligation type */
|
|
365
|
+
readonly reserved1: Array<number>;
|
|
366
|
+
/** Elevation groups are used to group together reserves that have the same risk parameters and can bump the ltv and liquidation threshold */
|
|
367
|
+
readonly elevationGroups: Array<types.ElevationGroup>;
|
|
368
|
+
readonly elevationGroupPadding: Array<BN>;
|
|
369
|
+
/** Min net value accepted to be found in a position after any lending action in an obligation (scaled by quote currency decimals) */
|
|
370
|
+
readonly minNetValueInObligationSf: BN;
|
|
371
|
+
/** Minimum value to enforce smallest ltv priority checks on the collateral reserves on liquidation */
|
|
372
|
+
readonly minValueSkipLiquidationLtvChecks: BN;
|
|
373
|
+
/** Market name, zero-padded. */
|
|
374
|
+
readonly name: Array<number>;
|
|
375
|
+
/** Minimum value to enforce highest borrow factor priority checks on the debt reserves on liquidation */
|
|
376
|
+
readonly minValueSkipLiquidationBfChecks: BN;
|
|
377
|
+
/**
|
|
378
|
+
* Time (in seconds) that must pass before liquidation is allowed on an obligation that has
|
|
379
|
+
* been individually marked for auto-deleveraging (by the risk council).
|
|
380
|
+
*/
|
|
381
|
+
readonly individualAutodeleverageMarginCallPeriodSecs: BN;
|
|
382
|
+
/**
|
|
383
|
+
* Minimum amount of deposit at creation of a reserve to prevent artificial inflation
|
|
384
|
+
* Note: this amount cannot be recovered, the ctoken associated are never minted
|
|
385
|
+
*/
|
|
386
|
+
readonly minInitialDepositAmount: BN;
|
|
387
|
+
/** Whether the obligation orders should be evaluated during liquidations. */
|
|
388
|
+
readonly obligationOrderExecutionEnabled: number;
|
|
389
|
+
/** Whether the lending market is set as immutable. */
|
|
390
|
+
readonly immutable: number;
|
|
391
|
+
/**
|
|
392
|
+
* Whether new obligation orders can be created.
|
|
393
|
+
* Note: updating or cancelling existing orders is *not* affected by this flag.
|
|
394
|
+
*/
|
|
395
|
+
readonly obligationOrderCreationEnabled: number;
|
|
396
|
+
/**
|
|
397
|
+
* Whether the liquidation operations that are triggered by price changes should be disabled.
|
|
398
|
+
* This includes regular liquidation (i.e. LTV exceeding the unhealthy threshold) and some
|
|
399
|
+
* obligation orders' execution.
|
|
400
|
+
*
|
|
401
|
+
* *Caution:* this flag is *disabling* the liquidations when `1` - contrary to all the other
|
|
402
|
+
* liquidation-driving flags (see e.g. [Self::autodeleverage_enabled]).
|
|
403
|
+
*/
|
|
404
|
+
readonly priceTriggeredLiquidationDisabled: number;
|
|
405
|
+
/**
|
|
406
|
+
* Whether the debts that reached their reserve's [ReserveConfig::debt_maturity_timestamp] can
|
|
407
|
+
* be liquidated.
|
|
408
|
+
*/
|
|
409
|
+
readonly matureReserveDebtLiquidationEnabled: number;
|
|
410
|
+
/**
|
|
411
|
+
* Whether the [Obligation::borrows] that reached their [ReserveConfig::debt_term_seconds] can
|
|
412
|
+
* be liquidated.
|
|
413
|
+
*/
|
|
414
|
+
readonly obligationBorrowDebtTermLiquidationEnabled: number;
|
|
415
|
+
/**
|
|
416
|
+
* Whether new borrow orders can be created.
|
|
417
|
+
* Note: updating or cancelling existing orders is *not* affected by this flag.
|
|
418
|
+
*/
|
|
419
|
+
readonly borrowOrderCreationEnabled: number;
|
|
420
|
+
/** Whether the existing borrow orders can be filled. */
|
|
421
|
+
readonly borrowOrderExecutionEnabled: number;
|
|
422
|
+
/** Authority that can propose creating of new reserves but cannot enable them. */
|
|
423
|
+
readonly proposerAuthority: Address;
|
|
424
|
+
/**
|
|
425
|
+
* Whether any new withdraw tickets can be issued (i.e. whether new requests can enter the
|
|
426
|
+
* withdraw queue).
|
|
427
|
+
*/
|
|
428
|
+
readonly withdrawTicketIssuanceEnabled: number;
|
|
429
|
+
/**
|
|
430
|
+
* Whether the existing withdraw tickets can be redeemed (i.e. whether the tickets can be used
|
|
431
|
+
* to transfer accumulated pending liquidity to destination accounts).
|
|
432
|
+
*/
|
|
433
|
+
readonly withdrawTicketRedemptionEnabled: number;
|
|
434
|
+
/**
|
|
435
|
+
* Whether the owners can enable the "fixed term borrow rollover" on their obligations.
|
|
436
|
+
*
|
|
437
|
+
* *Note 1:* the actual execution of (different kinds of) rollovers can be disabled by zeroing
|
|
438
|
+
* [Self::fixed_rollover_window_duration_seconds] and
|
|
439
|
+
* [Self::variable_rollover_window_duration_seconds].
|
|
440
|
+
*
|
|
441
|
+
* *Note 2:* when this configuration is disabled, the obligation owners can still disable their
|
|
442
|
+
* rollover (i.e. set the obligation's flags to zeroes).
|
|
443
|
+
*/
|
|
444
|
+
readonly obligationBorrowRolloverConfigurationEnabled: number;
|
|
445
|
+
readonly padding2: Array<number>;
|
|
446
|
+
/**
|
|
447
|
+
* Minimum value that can be withdrawn in a single `withdraw_queued_liquidity()` call, in full
|
|
448
|
+
* units of the quote currency (e.g. `2` means "$2", not "2 lamports of USDC").
|
|
449
|
+
*/
|
|
450
|
+
readonly minWithdrawQueuedLiquidityValue: BN;
|
|
451
|
+
/**
|
|
452
|
+
* A configurable time window (right before the end of a fixed debt term) during which an
|
|
453
|
+
* auto-rollover into another *fixed* rate/term can happen.
|
|
454
|
+
*
|
|
455
|
+
* When zeroed, this rollover mode is effectively disabled.
|
|
456
|
+
*
|
|
457
|
+
* See [FixedTermBorrowRolloverConfig].
|
|
458
|
+
*/
|
|
459
|
+
readonly fixedRolloverWindowDurationSeconds: BN;
|
|
460
|
+
/**
|
|
461
|
+
* A configurable time window (right before the end of a fixed debt term) during which an
|
|
462
|
+
* auto-rollover into a *variable* (indefinite) rate/term can happen.
|
|
463
|
+
*
|
|
464
|
+
* When zeroed, this rollover mode is effectively disabled.
|
|
465
|
+
*
|
|
466
|
+
* This will typically be shorter than [Self::fixed_rollover_window_duration_seconds], acting
|
|
467
|
+
* as a fallback if a fixed reserve liquidity remains unavailable for considerable time.
|
|
468
|
+
*/
|
|
469
|
+
readonly variableRolloverWindowDurationSeconds: BN;
|
|
470
|
+
readonly padding1: Array<BN>;
|
|
471
|
+
static readonly discriminator: Buffer<ArrayBuffer>;
|
|
472
|
+
static readonly layout: import("buffer-layout").Layout<LendingMarket>;
|
|
473
|
+
constructor(fields: LendingMarketFields);
|
|
474
|
+
static fetch(rpc: Rpc<GetAccountInfoApi>, address: Address, programId?: Address): Promise<LendingMarket | null>;
|
|
475
|
+
static fetchMultiple(rpc: Rpc<GetMultipleAccountsApi>, addresses: Address[], programId?: Address): Promise<Array<LendingMarket | null>>;
|
|
476
|
+
static decode(data: Buffer): LendingMarket;
|
|
477
|
+
toJSON(): LendingMarketJSON;
|
|
478
|
+
static fromJSON(obj: LendingMarketJSON): LendingMarket;
|
|
479
|
+
}
|
|
480
|
+
//# sourceMappingURL=LendingMarket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LendingMarket.d.ts","sourceRoot":"","sources":["../../../../src/@codegen/kvault/accounts/LendingMarket.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EAGP,iBAAiB,EACjB,sBAAsB,EACtB,GAAG,EACJ,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,MAAM,OAAO,CAAA;AAGtB,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AAGjC,MAAM,WAAW,mBAAmB;IAClC,gCAAgC;IAChC,OAAO,EAAE,EAAE,CAAA;IACX,8CAA8C;IAC9C,QAAQ,EAAE,EAAE,CAAA;IACZ,iDAAiD;IACjD,kBAAkB,EAAE,OAAO,CAAA;IAC3B,uFAAuF;IACvF,wBAAwB,EAAE,OAAO,CAAA;IACjC;;;OAGG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC5B,gFAAgF;IAChF,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,qBAAqB,EAAE,MAAM,CAAA;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAA;IACtC,wFAAwF;IACxF,gCAAgC,EAAE,MAAM,CAAA;IACxC,qFAAqF;IACrF,6BAA6B,EAAE,MAAM,CAAA;IACrC;;;OAGG;IACH,gCAAgC,EAAE,EAAE,CAAA;IACpC,mDAAmD;IACnD,oCAAoC,EAAE,EAAE,CAAA;IACxC,oFAAoF;IACpF,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACxB,qEAAqE;IACrE,wBAAwB,EAAE,EAAE,CAAA;IAC5B,kHAAkH;IAClH,WAAW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