subscan
Runtime Modules / CdpEngine
Spec Version:
Events
Name
Lookup
Attributes
LiquidateUnsafeCDP7c00["CurrencyId","AccountId","Balance","Balance","Balance"]
SettleCDPInDebit7c01["CurrencyId","AccountId"]
CloseCDPInDebitByDEX7c02["CurrencyId","AccountId","Balance","Balance","Balance"]
InterestRatePerSecUpdated7c03["CurrencyId","Option<Rate>"]
LiquidationRatioUpdated7c04["CurrencyId","Option<Ratio>"]
LiquidationPenaltyUpdated7c05["CurrencyId","Option<Rate>"]
RequiredCollateralRatioUpdated7c06["CurrencyId","Option<Ratio>"]
MaximumTotalDebitValueUpdated7c07["CurrencyId","Balance"]
LiquidationContractRegistered7c08["EvmAddress"]
LiquidationContractDeregistered7c09["EvmAddress"]
Storage Functions
Name
Type
DebitExchangeRate{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:currency:CurrencyId"],"value":"U128","keys_id":43,"value_id":53}}
CollateralParams{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:currency:CurrencyId"],"value":"module_cdp_engine:RiskManagementParams","keys_id":43,"value_id":601}}
LastAccumulationSecs{"origin":"PlainType","plain_type":"U64","PlainTypeValue":12}
LiquidationContracts{"origin":"PlainType","plain_type":"Vec<H160>","PlainTypeValue":604}
Constants
Name
Type
Value
DefaultLiquidationRatioU1280000ee042cfc430f0000000000000000
DefaultDebitExchangeRateU12800008a5d784563010000000000000000
DefaultLiquidationPenaltyU1280000c52ebca2b1000000000000000000
MinimumDebitValueU1280010a5d4e80000000000000000000000
GetStableCurrencyIdacala_primitives:currency:CurrencyId0001
MaxSwapSlippageCompareToOracleU12800008a5d784563010000000000000000
UnsignedPriorityU6418ecab75a40d0000
MaxLiquidationContractSlippageU12800004f8c34e814020000000000000000
MaxLiquidationContractsU320a000000
PalletId[U8; 8]6163612f63647065
Error Types
Name
Docs
ExceedDebitValueHardCapThe total debit value of specific collateral type already exceed thehard cap
BelowRequiredCollateralRatioThe collateral ratio below the required collateral ratio
BelowLiquidationRatioThe collateral ratio below the liquidation ratio
MustBeUnsafeThe CDP must be unsafe status
MustBeSafeThe CDP must be safe status
InvalidCollateralTypeInvalid collateral type
RemainDebitValueTooSmallRemain debit value in CDP below the dust amount
CollateralAmountBelowMinimumRemain collateral value in CDP below the dust amount.Withdraw all collateral or leave more than the minimum.
InvalidFeedPriceFeed price is invalid
NoDebitValueNo debit value in CDP so that it cannot be settled
AlreadyShutdownSystem has already been shutdown
MustAfterShutdownMust after system shutdown
CollateralNotEnoughCollateral in CDP is not enough
NotEnoughDebitDecrementdebit value decrement is not enough
ConvertDebitBalanceFailedconvert debit value to debit balance failed
LiquidationFailedCollateral liquidation failed.
TooManyLiquidationContractsExceeds `T::MaxLiquidationContracts`.
CollateralContractNotFoundCollateral ERC20 contract not found.
InvalidRateInvalid rate