Name | Lookup | Parameters | |
|---|---|---|---|
| add_collateral_asset | 5200 | 7 | |
| remove_collateral_asset | 5201 | 1 | |
| update_collateral_asset | 5202 | 6 | |
| sell | 5203 | 4 | |
| buy | 5204 | 4 | |
| execute_arbitrage | 5205 | 2 | |
| set_flash_minter | 5206 | 1 |
Name | Lookup | Attributes | |
|---|---|---|---|
| CollateralAdded | 5200 | ["AssetId","AssetId","Permill","CoefficientRatio","Permill","Perbill"] | |
| CollateralRemoved | 5201 | ["AssetId"] | |
| CollateralUpdated | 5202 | ["AssetId","Option<Permill>","Option<CoefficientRatio>","Option<Permill>","Option<Perbill>"] | |
| ArbitrageExecuted | 5203 | ["u8","AssetId","Balance","Balance"] | |
| FlashMinterSet | 5204 | ["EvmAddress"] |
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} |
Name | Type | Value | |
|---|---|---|---|
| HollarId | U32 | de000000 | |
| PalletId | [U8; 8] | 70792f68736d6f64 | |
| GasLimit | U64 | 801a060000000000 |
Name | Docs |
|---|---|
| AssetNotApproved | Asset is not approved as collateralThe operation attempted to use an asset that is not registered as an approved collateral. |
| AssetAlreadyApproved | Asset is already approved as collateralAttempted to add an asset that is already registered as a collateral. |
| PoolAlreadyHasCollateral | Another asset from the same pool is already approvedOnly one asset from each StableSwap pool can be used as collateral. |
| InvalidAssetPair | Invalid 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. |
| MaxBuyPriceExceeded | Max buy price exceededThe calculated buy price exceeds the maximum allowed buy price for the collateral. |
| MaxBuyBackExceeded | Max 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. |
| MaxHoldingExceeded | Max holding amount for collateral exceededThe operation would cause the HSM to hold more of the collateral than the configured maximum. |
| SlippageLimitExceeded | Slippage limit exceededThe calculated amount is worse than the provided slippage limit. |
| InvalidEVMInteraction | Invalid EVM contract interactionThe call to the EVM contract (GHO Hollar token) failed. |
| DecimalRetrievalFailed | Decimal retrieval failedFailed to retrieve the decimal information for an asset. |
| NoArbitrageOpportunity | No arbitrage opportunityThere is no profitable arbitrage opportunity for the specified collateral. |
| OffchainLockError | Offchain lock errorFailed to acquire the lock for offchain workers, likely because another operation is in progress. |
| AssetNotFound | Asset not in the poolThe specified asset was not found in the pool. |
| InvalidPoolState | Provided pool state is invalidThe retrieved pool state has inconsistent or invalid data. |
| CollateralNotEmpty | Collateral is not emptyCannot remove a collateral asset that still has a non-zero balance in the HSM account. |
| AssetNotInPool | Asset not in the poolThe collateral asset is not present in the specified pool. |
| HollarNotInPool | Hollar is not in the poolThe Hollar asset is not present in the specified pool. |
| InsufficientCollateralBalance | Insufficient collateral balanceThe HSM does not have enough of the collateral asset to complete the operation. |
| HollarContractAddressNotFound | GHO Contract address not foundThe EVM address for the GHO (Hollar) token contract was not found. |
| MaxNumberOfCollateralsReached | HSM contains maximum number of allowed collateral assets. |
| FlashMinterNotSet | Flash minter address not set |
| InvalidArbitrageData | Provided arbitrage data is invalid |