Name | Lookup | Parameters | |
|---|---|---|---|
| liquidate | 7c00 | 2 | |
| settle | 7c01 | 2 | |
| set_collateral_params | 7c02 | 6 | |
| register_liquidation_contract | 7c03 | 1 | |
| deregister_liquidation_contract | 7c04 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| LiquidateUnsafeCDP | 7c00 | ["CurrencyId","AccountId","Balance","Balance","Balance"] | |
| SettleCDPInDebit | 7c01 | ["CurrencyId","AccountId"] | |
| CloseCDPInDebitByDEX | 7c02 | ["CurrencyId","AccountId","Balance","Balance","Balance"] | |
| InterestRatePerSecUpdated | 7c03 | ["CurrencyId","Option<Rate>"] | |
| LiquidationRatioUpdated | 7c04 | ["CurrencyId","Option<Ratio>"] | |
| LiquidationPenaltyUpdated | 7c05 | ["CurrencyId","Option<Rate>"] | |
| RequiredCollateralRatioUpdated | 7c06 | ["CurrencyId","Option<Ratio>"] | |
| MaximumTotalDebitValueUpdated | 7c07 | ["CurrencyId","Balance"] | |
| LiquidationContractRegistered | 7c08 | ["EvmAddress"] | |
| LiquidationContractDeregistered | 7c09 | ["EvmAddress"] |
Name | Type | |
|---|---|---|
| DebitExchangeRate | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:currency:CurrencyId"],"value":"U128","keys_id":42,"value_id":52}} | |
| CollateralParams | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:currency:CurrencyId"],"value":"module_cdp_engine:RiskManagementParams","keys_id":42,"value_id":535}} | |
| LastAccumulationSecs | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
| LiquidationContracts | {"origin":"PlainType","plain_type":"Vec<H160>","PlainTypeValue":538} |
Name | Type | Value | |
|---|---|---|---|
| DefaultLiquidationRatio | U128 | 0000ee042cfc430f0000000000000000 | |
| DefaultDebitExchangeRate | U128 | 00008a5d784563010000000000000000 | |
| DefaultLiquidationPenalty | U128 | 0000c52ebca2b1000000000000000000 | |
| MinimumDebitValue | U128 | 0010a5d4e80000000000000000000000 | |
| GetStableCurrencyId | acala_primitives:currency:CurrencyId | 0001 | |
| MaxSwapSlippageCompareToOracle | U128 | 00008a5d784563010000000000000000 | |
| UnsignedPriority | U64 | 18ecab75a40d0000 | |
| MaxLiquidationContractSlippage | U128 | 00004f8c34e814020000000000000000 | |
| MaxLiquidationContracts | U32 | 0a000000 | |
| PalletId | [U8; 8] | 6163612f63647065 |
Name | Docs |
|---|---|
| ExceedDebitValueHardCap | The total debit value of specific collateral type already exceed thehard 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 |
| CollateralAmountBelowMinimum | Remain collateral value in CDP below the dust amount.Withdraw all collateral or leave more than the minimum. |
| 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 |
| CollateralNotEnough | Collateral in CDP is not enough |
| NotEnoughDebitDecrement | debit value decrement is not enough |
| ConvertDebitBalanceFailed | convert debit value to debit balance failed |
| LiquidationFailed | Collateral liquidation failed. |
| TooManyLiquidationContracts | Exceeds `T::MaxLiquidationContracts`. |
| CollateralContractNotFound | Collateral ERC20 contract not found. |
| InvalidRate | Invalid rate |