assethub-westend
subscan
AssetHub Westend
Runtime Modules / Psm
Spec Version:
Events
Name
Lookup
Attributes
Minted4100["AccountId","AssetId","BalanceOf","BalanceOf","BalanceOf"]
Redeemed4101["AccountId","AssetId","BalanceOf","BalanceOf","BalanceOf"]
MintingFeeUpdated4102["AssetId","Permill","Permill"]
RedemptionFeeUpdated4103["AssetId","Permill","Permill"]
MaxPsmDebtOfTotalUpdated4104["Permill","Permill"]
AssetCeilingWeightUpdated4105["AssetId","Permill","Permill"]
AssetStatusUpdated4106["AssetId","CircuitBreakerLevel"]
ExternalAssetAdded4107["AssetId"]
ExternalAssetRemoved4108["AssetId"]
Storage Functions
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}
Constants
Name
Type
Value
PalletId[U8; 8]70792f706567736d
MinSwapAmountU12840420f00000000000000000000000000
MaxExternalAssetsU3203000000
Error Types
Name
Docs
InsufficientReservePSM doesn't have enough external stablecoin for redemption.
ExceedsMaxPsmDebtSwap would exceed PSM debt ceiling.
BelowMinimumSwapSwap amount below minimum threshold.
MintingStoppedMinting operations are disabled (circuit breaker level >= 1).
AllSwapsStoppedAll swap operations are disabled (circuit breaker level = 2).
UnsupportedAssetAsset is not an approved external stablecoin.
ExceedsMaxIssuanceMint would exceed system-wide maximum pUSD issuance.
AssetAlreadyApprovedAsset is already in the approved list.
AssetNotApprovedCannot remove asset: not in approved list.
AssetHasDebtCannot remove asset: has non-zero PSM debt.
InsufficientPrivilegeOperation requires Full manager level (GeneralAdmin), not Emergency.
TooManyAssetsMaximum number of approved external assets reached.
DecimalsMismatchExternal asset decimals do not match the stable asset decimals.
UnexpectedAn unexpected invariant violation occurred. This should be reported.