Name | Lookup | Parameters | |
|---|---|---|---|
| mint | 4100 | 2 | |
| redeem | 4101 | 2 | |
| set_minting_fee | 4102 | 2 | |
| set_redemption_fee | 4103 | 2 | |
| set_max_psm_debt | 4104 | 1 | |
| set_asset_status | 4105 | 2 | |
| set_asset_ceiling_weight | 4106 | 2 | |
| add_external_asset | 4107 | 1 | |
| remove_external_asset | 4108 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Minted | 4100 | ["AccountId","AssetId","BalanceOf","BalanceOf","BalanceOf"] | |
| Redeemed | 4101 | ["AccountId","AssetId","BalanceOf","BalanceOf","BalanceOf"] | |
| MintingFeeUpdated | 4102 | ["AssetId","Permill","Permill"] | |
| RedemptionFeeUpdated | 4103 | ["AssetId","Permill","Permill"] | |
| MaxPsmDebtOfTotalUpdated | 4104 | ["Permill","Permill"] | |
| AssetCeilingWeightUpdated | 4105 | ["AssetId","Permill","Permill"] | |
| AssetStatusUpdated | 4106 | ["AssetId","CircuitBreakerLevel"] | |
| ExternalAssetAdded | 4107 | ["AssetId"] | |
| ExternalAssetRemoved | 4108 | ["AssetId"] |
Name | Type | |
|---|---|---|
| PsmDebt | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v5:location:Location"],"value":"U128","keys_id":62,"value_id":6}} | |
| MintingFee | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v5:location:Location"],"value":"U32","keys_id":62,"value_id":212}} | |
| RedemptionFee | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v5:location:Location"],"value":"U32","keys_id":62,"value_id":212}} | |
| MaxPsmDebtOfTotal | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":212} | |
| AssetCeilingWeight | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v5:location:Location"],"value":"U32","keys_id":62,"value_id":212}} | |
| ExternalAssets | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v5:location:Location"],"value":"pallet_psm:pallet:CircuitBreakerLevel","keys_id":62,"value_id":224}} | |
| CounterForExternalAssets | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| ExternalDecimals | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["staging_xcm:v5:location:Location"],"value":"U8","keys_id":62,"value_id":2}} | |
| InternalDecimals | {"origin":"PlainType","plain_type":"U8","PlainTypeValue":2} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 70792f706567736d | |
| MinSwapAmount | U128 | 40420f00000000000000000000000000 | |
| MaxExternalAssets | U32 | 03000000 |
Name | Docs |
|---|---|
| InsufficientReserve | PSM doesn't have enough external stablecoin for redemption. |
| ExceedsMaxPsmDebt | Swap would exceed PSM debt ceiling. |
| BelowMinimumSwap | Swap amount below minimum threshold. |
| MintingStopped | Minting operations are disabled (circuit breaker level >= 1). |
| AllSwapsStopped | All swap operations are disabled (circuit breaker level = 2). |
| UnsupportedAsset | Asset is not an approved external stablecoin. |
| ExceedsMaxIssuance | Mint would exceed system-wide maximum internal issuance. |
| AssetAlreadyApproved | Asset is already in the approved list. |
| AssetDoesNotExist | Asset does not exist. |
| AssetNotApproved | Cannot remove asset: not in approved list. |
| AssetHasDebt | Cannot remove asset: has non-zero PSM debt. |
| InsufficientPrivilege | Operation requires Full manager level (GeneralAdmin), not Emergency. |
| TooManyAssets | Maximum number of approved external assets reached. |
| DecimalsMismatch | Live decimals diverged from the snapshot taken at registration or genesis. |
| DecimalsRangeExceeded | The asset's decimal precision is outside the supported range. |
| ConversionOverflow | Decimal scaling produced an arithmetic overflow. |
| AmountTooSmallAfterConversion | Conversion to the counter-asset rounds to zero; swap would transfer nothing. |
| Unexpected | An unexpected invariant violation occurred. This should be reported. |