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":["U32"],"value":"U128","keys_id":4,"value_id":6}} | |
| MintingFee | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":209}} | |
| RedemptionFee | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":209}} | |
| MaxPsmDebtOfTotal | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":209} | |
| AssetCeilingWeight | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U32","keys_id":4,"value_id":209}} | |
| ExternalAssets | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_psm:pallet:CircuitBreakerLevel","keys_id":4,"value_id":220}} | |
| CounterForExternalAssets | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} |
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 pUSD issuance. |
| AssetAlreadyApproved | Asset is already in the approved list. |
| 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 | External asset decimals do not match the stable asset decimals. |
| Unexpected | An unexpected invariant violation occurred. This should be reported. |