karura
subscan
Runtime Modules / CdpEngine
Spec Version:
Call Functions
Name
Lookup
Parameters
liquidate68002
settle68012
set_global_params68021
set_collateral_params68036
Storage Functions
Name
Type
DebitExchangeRate{"origin":"MapType","map_type":{"key":"CurrencyId","hasher":"Twox64Concat","value":"ExchangeRate","isLinked":false}}
GlobalInterestRatePerSec{"origin":"PlainType","plain_type":"Rate"}
CollateralParams{"origin":"MapType","map_type":{"key":"CurrencyId","hasher":"Twox64Concat","value":"RiskManagementParams","isLinked":false}}
LastAccumulationSecs{"origin":"PlainType","plain_type":"u64"}
Constants
Name
Type
Value
CollateralCurrencyIdsVec<CurrencyId>0x0800820083
DefaultLiquidationRatioRatio0x000002c01c870a120000000000000000
DefaultDebitExchangeRateExchangeRate0x00008a5d784563010000000000000000
DefaultLiquidationPenaltyRate0x0000087e93371c010000000000000000
MinimumDebitValueBalance0x0010a5d4e80000000000000000000000
GetStableCurrencyIdCurrencyId0x0081
MaxSlippageSwapWithDEXRatio0x00004f8c34e814020000000000000000
UnsignedPriorityTransactionPriority0xffffffffffffffff
Error Types
Name
Docs
ExceedDebitValueHardCap The total debit value of specific collateral type already exceed the hard cap
BelowRequiredCollateralRatio The collateral ratio below the required collateral ratio
BelowLiquidationRatio The collateral ratio below the liquidation ratio
MustBeUnsafe The CDP must be unsafe to be liquidated
IsUnsafe The CDP already is unsafe
InvalidCollateralType Invalid collateral type
RemainDebitValueTooSmall Remain debit value in CDP below the dust amount
InvalidFeedPrice Feed price is invalid
NoDebitValue No debit value in CDP so that it cannot be settled
AlreadyShutdown System has already been shutdown
MustAfterShutdown Must after system shutdown