Name | Lookup | Parameters | |
---|---|---|---|
initialize_pool | 2b00 | 1 | |
set_reference_asset | 2b01 | 1 | |
enable_synthetic_asset | 2b02 | 1 | |
set_synthetic_base_asset_floor_price | 2b03 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolInitialized | 2b00 | ["DexIdOf","AssetIdOf"] | |
ReferenceAssetChanged | 2b01 | ["AssetIdOf"] | |
SyntheticAssetEnabled | 2b02 | ["AssetIdOf"] | |
SyntheticBaseAssetFloorPriceChanged | 2b03 | ["Balance"] |
Name | Type | |
---|---|---|
PermissionedTechAccount | {"origin":"PlainType","plain_type":"common:primitives:TechAccountId","PlainTypeValue":75} | |
BaseFee | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":71} | |
EnabledSynthetics | {"origin":"PlainType","plain_type":"Vec<[U8; 32]>","PlainTypeValue":534} | |
ReferenceAssetId | {"origin":"PlainType","plain_type":"[U8; 32]","PlainTypeValue":63} | |
CollateralReserves | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U128","keys_id":63,"value_id":6}} | |
SyntheticBaseAssetFloorPrice | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} |
Name | Docs |
---|---|
PriceCalculationFailed | An error occurred while calculating the price. |
FailedToCalculatePriceWithoutImpact | Failure while calculating price ignoring non-linearity of liquidity source. |
CannotExchangeWithSelf | The pool can't perform exchange on itself. |
PoolAlreadyInitializedForPair | Attempt to initialize pool for pair that already exists. |
PoolNotInitialized | Attempt to get info for uninitialized pool. |
SlippageLimitExceeded | Indicated limits for slippage has not been met during transaction execution. |
UnsupportedCollateralAssetId | Indicated collateral asset is not enabled for pool. |
FeeCalculationFailed | Could not calculate fee. |
CantExchange | Liquidity source can't exchange assets with the given IDs on the given DEXId. |
IncRefError | Increment account reference error. |