Name | Lookup | Parameters | |
---|---|---|---|
create_cdp | 3a00 | 6 | |
close_cdp | 3a01 | 1 | |
deposit_collateral | 3a02 | 2 | |
borrow | 3a03 | 3 | |
repay_debt | 3a04 | 2 | |
liquidate | 3a05 | 1 | |
accrue | 3a06 | 1 | |
update_collateral_risk_parameters | 3a07 | 3 | |
update_borrow_tax | 3a08 | 1 | |
update_liquidation_penalty | 3a09 | 1 | |
withdraw_profit | 3a0a | 3 | |
donate | 3a0b | 2 | |
register_stablecoin | 3a0c | 1 | |
update_hard_cap | 3a0d | 3 | |
update_liquidation_ratio | 3a0e | 3 | |
update_max_liquidation_lot | 3a0f | 3 | |
update_stability_fee_rate | 3a10 | 3 | |
update_minimal_collateral_deposit | 3a11 | 3 | |
update_minimal_stability_fee_accrue | 3a12 | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
CDPCreated | 3a00 | ["CdpId","AccountIdOf","AssetIdOf","AssetIdOf","CdpType"] | |
CDPClosed | 3a01 | ["CdpId","AccountIdOf","AssetIdOf","Balance"] | |
CollateralDeposit | 3a02 | ["CdpId","AccountIdOf","AssetIdOf","Balance"] | |
DebtIncreased | 3a03 | ["CdpId","AccountIdOf","AssetIdOf","Balance"] | |
DebtPayment | 3a04 | ["CdpId","AccountIdOf","AssetIdOf","Balance"] | |
Liquidated | 3a05 | ["CdpId","AssetIdOf","Balance","AssetIdOf","Balance","Balance"] | |
CollateralRiskParametersUpdated | 3a06 | ["AssetIdOf","CollateralRiskParameters"] | |
BorrowTaxUpdated | 3a07 | ["BorrowTaxes","BorrowTaxes"] | |
LiquidationPenaltyUpdated | 3a08 | ["Percent","Percent"] | |
ProfitWithdrawn | 3a09 | ["AssetIdOf","Balance"] | |
Donation | 3a0a | ["AssetIdOf","Balance"] | |
StablecoinRegistered | 3a0b | ["AssetIdOf","StablecoinParameters<AssetIdOf>"] | |
HardCapUpdated | 3a0c | ["Balance","Balance"] | |
LiquidationRatioUpdated | 3a0d | ["Perbill","Perbill"] | |
MaxLiquidationLotUpdated | 3a0e | ["Balance","Balance"] | |
StabilityFeeRateUpdated | 3a0f | ["FixedU128","FixedU128"] | |
MinimalCollateralDepositUpdated | 3a10 | ["Balance","Balance"] | |
MinimalStabilityFeeAccrueUpdated | 3a11 | ["Balance","Balance"] |
Name | Type | |
---|---|---|
LiquidatedThisBlock | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":47} | |
StablecoinInfos | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["[U8; 32]"],"value":"kensetsu:StablecoinInfo","keys_id":67,"value_id":838}} | |
CollateralInfos | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["kensetsu:StablecoinCollateralIdentifier"],"value":"kensetsu:CollateralInfo","keys_id":839,"value_id":840}} | |
BorrowTax | {"origin":"PlainType","plain_type":"U8","PlainTypeValue":166} | |
KarmaBorrowTax | {"origin":"PlainType","plain_type":"U8","PlainTypeValue":166} | |
TbcdBorrowTax | {"origin":"PlainType","plain_type":"U8","PlainTypeValue":166} | |
LiquidationPenalty | {"origin":"PlainType","plain_type":"U8","PlainTypeValue":166} | |
NextCDPId | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
CDPDepository | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U128"],"value":"kensetsu:CollateralizedDebtPosition","keys_id":6,"value_id":841}} | |
CdpOwnerIndex | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["AccountId"],"value":"Vec<U128>","keys_id":0,"value_id":842}} |
Name | Type | Value | |
---|---|---|---|
KenIncentiveRemintPercent | U8 | 50 | |
KarmaIncentiveRemintPercent | U8 | 50 | |
MaxCdpsPerOwner | U32 | 10270000 | |
MinimalStabilityFeeAccrue | U128 | 000064a7b3b6e00d0000000000000000 | |
UnsignedPriority | U64 | 9999999999999919 | |
UnsignedLongevity | U64 | 0a00000000000000 |
Name | Docs |
---|---|
ArithmeticError | |
WrongAssetId | |
CDPNotFound | |
CollateralInfoNotFound | |
CollateralBelowMinimal | |
CDPSafe | |
CDPUnsafe | |
CDPLimitPerUser | Too many CDPs per user |
OperationNotPermitted | |
UncollectedStabilityFeeTooSmall | Uncollected stability fee is too small for accrue |
HardCapSupply | |
AccrueWrongTime | |
ZeroLiquidationLot | Liquidation lot set in risk parameters is zero, cannot liquidate |
LiquidationLimit | Liquidation limit reached |
WrongBorrowAmounts | Wrong borrow amounts |
SymbolNotEnabledByOracle | |
StablecoinInfoNotFound | |
CollateralNotRegisteredInPriceTools | Collateral must be registered in PriceTools. |