Name | Lookup | Parameters | |
|---|---|---|---|
| liquidate | 6800 | 2 | |
| settle | 6801 | 2 | |
| set_global_params | 6802 | 1 | |
| set_collateral_params | 6803 | 6 |
Name | Lookup | Attributes | |
|---|---|---|---|
| LiquidateUnsafeCDP | 6800 | ["CurrencyId","AccountId","Balance","Balance","Balance"] | |
| SettleCDPInDebit | 6801 | ["CurrencyId","AccountId"] | |
| CloseCDPInDebitByDEX | 6802 | ["CurrencyId","AccountId","Balance","Balance","Balance"] | |
| InterestRatePerSecUpdated | 6803 | ["CurrencyId","Option<Rate>"] | |
| LiquidationRatioUpdated | 6804 | ["CurrencyId","Option<Ratio>"] | |
| LiquidationPenaltyUpdated | 6805 | ["CurrencyId","Option<Rate>"] | |
| RequiredCollateralRatioUpdated | 6806 | ["CurrencyId","Option<Ratio>"] | |
| MaximumTotalDebitValueUpdated | 6807 | ["CurrencyId","Balance"] | |
| GlobalInterestRatePerSecUpdated | 6808 | ["Rate"] |
Name | Type | |
|---|---|---|
| DebitExchangeRate | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:currency:CurrencyId"],"value":"U128","keys_id":44,"value_id":56}} | |
| GlobalInterestRatePerSec | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":56} | |
| CollateralParams | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:currency:CurrencyId"],"value":"module_cdp_engine:RiskManagementParams","keys_id":44,"value_id":519}} | |
| LastAccumulationSecs | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":8} |
Name | Type | Value | |
|---|---|---|---|
| CollateralCurrencyIds | Vec<acala_primitives:currency:CurrencyId> | 1000000002040d0000000003 | |
| DefaultLiquidationRatio | U128 | 0000167b0d12d1140000000000000000 | |
| DefaultDebitExchangeRate | U128 | 00008a5d784563010000000000000000 | |
| DefaultLiquidationPenalty | U128 | 0000087e93371c010000000000000000 | |
| MinimumDebitValue | U128 | 00203d88792d00000000000000000000 | |
| GetStableCurrencyId | acala_primitives:currency:CurrencyId | 0001 | |
| MaxSwapSlippageCompareToOracle | U128 | 00004f8c34e814020000000000000000 | |
| UnsignedPriority | U64 | 18ecab75a40d0000 | |
| AlternativeSwapPathJointList | Vec<Vec<acala_primitives:currency:CurrencyId>> | 0c04040d000000040002040003 |
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 |
| 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 |
| CannotSwap | Cannot swap |
| CollateralNotEnough | Collateral in CDP is not enough |
| NotEnoughDebitDecrement | debit value decrement is not enough |
| ConvertDebitBalanceFailed | convert debit value to debit balance failed |