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
DefaultLiquidationRatioRatio0x0000167b0d12d1140000000000000000
DefaultDebitExchangeRateExchangeRate0x00008a5d784563010000000000000000
DefaultLiquidationPenaltyRate0x0000087e93371c010000000000000000
MinimumDebitValueBalance0x0040e59c301200000000000000000000
GetStableCurrencyIdCurrencyId0x0081
MaxSwapSlippageCompareToOracleRatio0x00004f8c34e814020000000000000000
UnsignedPriorityTransactionPriority0xffffffffffffff7f
DefaultSwapParitalPathListVec<Vec<CurrencyId>>0x080400810800820081
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 status
MustBeSafe The CDP must be safe status
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
SwapDebitFailed Failed to swap debit by default path list