hydration
subscan
Runtime Modules / HSM
Spec Version:
Events
Name
Lookup
Attributes
CollateralAdded5200["AssetId","AssetId","Permill","CoefficientRatio","Permill","Perbill"]
CollateralRemoved5201["AssetId"]
CollateralUpdated5202["AssetId","Option<Permill>","Option<CoefficientRatio>","Option<Permill>","Option<Perbill>"]
ArbitrageExecuted5203["u8","AssetId","Balance","Balance"]
FlashMinterSet5204["EvmAddress"]
Storage Functions
Name
Type
Collaterals{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"pallet_hsm:types:CollateralInfo","keys_id":4,"value_id":685}}
HollarAmountReceived{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U32"],"value":"U128","keys_id":4,"value_id":6}}
FlashMinter{"origin":"PlainType","plain_type":"H160","PlainTypeValue":80}
Constants
Name
Type
Value
HollarIdU32de000000
PalletId[U8; 8]70792f68736d6f64
GasLimitU64801a060000000000
Error Types
Name
Docs
AssetNotApprovedAsset is not approved as collateralThe operation attempted to use an asset that is not registered as an approved collateral.
AssetAlreadyApprovedAsset is already approved as collateralAttempted to add an asset that is already registered as a collateral.
PoolAlreadyHasCollateralAnother asset from the same pool is already approvedOnly one asset from each StableSwap pool can be used as collateral.
InvalidAssetPairInvalid asset pair, must be Hollar and approved collateralThe asset pair for buy/sell operations must include Hollar as one side and an approved collateral as the other.
MaxBuyPriceExceededMax buy price exceededThe calculated buy price exceeds the maximum allowed buy price for the collateral.
MaxBuyBackExceededMax buy back amount in single block exceededThe amount of Hollar being sold to HSM exceeds the maximum allowed in a single block for this collateral.
MaxHoldingExceededMax holding amount for collateral exceededThe operation would cause the HSM to hold more of the collateral than the configured maximum.
SlippageLimitExceededSlippage limit exceededThe calculated amount is worse than the provided slippage limit.
InvalidEVMInteractionInvalid EVM contract interactionThe call to the EVM contract (GHO Hollar token) failed.
DecimalRetrievalFailedDecimal retrieval failedFailed to retrieve the decimal information for an asset.
NoArbitrageOpportunityNo arbitrage opportunityThere is no profitable arbitrage opportunity for the specified collateral.
OffchainLockErrorOffchain lock errorFailed to acquire the lock for offchain workers, likely because another operation is in progress.
AssetNotFoundAsset not in the poolThe specified asset was not found in the pool.
InvalidPoolStateProvided pool state is invalidThe retrieved pool state has inconsistent or invalid data.
CollateralNotEmptyCollateral is not emptyCannot remove a collateral asset that still has a non-zero balance in the HSM account.
AssetNotInPoolAsset not in the poolThe collateral asset is not present in the specified pool.
HollarNotInPoolHollar is not in the poolThe Hollar asset is not present in the specified pool.
InsufficientCollateralBalanceInsufficient collateral balanceThe HSM does not have enough of the collateral asset to complete the operation.
HollarContractAddressNotFoundGHO Contract address not foundThe EVM address for the GHO (Hollar) token contract was not found.
MaxNumberOfCollateralsReachedHSM contains maximum number of allowed collateral assets.
FlashMinterNotSetFlash minter address not set
InvalidArbitrageDataProvided arbitrage data is invalid