Name | Lookup | Parameters | |
---|---|---|---|
swap | 1a00 | 6 | |
swap_transfer | 1a01 | 7 | |
enable_liquidity_source | 1a02 | 1 | |
disable_liquidity_source | 1a03 | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
Exchange | 1a00 | ["AccountIdOf","DexIdOf","AssetIdOf","AssetIdOf","Balance","Balance","Balance","Vec<LiquiditySourceIdOf>"] | |
LiquiditySourceEnabled | 1a01 | ["LiquiditySourceType"] | |
LiquiditySourceDisabled | 1a02 | ["LiquiditySourceType"] |
Name | Docs |
---|---|
UnavailableExchangePath | No route exists in a given DEX for given parameters to carry out the swap |
MaxFeeExceeded | Max fee exceeded |
InvalidFeeValue | Fee value outside of the basis points range [0..10000] |
InsufficientLiquidity | None of the sources has enough reserves to execute a trade |
AggregationError | Path exists but it's not possible to perform exchange with currently available liquidity on pools. |
CalculationError | Specified parameters lead to arithmetic error |
SlippageNotTolerated | Slippage either exceeds minimum tolerated output or maximum tolerated input. |
ForbiddenFilter | Selected filtering request is not allowed. |
FailedToCalculatePriceWithoutImpact | Failure while calculating price ignoring non-linearity of liquidity source. |
UnableToSwapIndivisibleAssets | Unable to swap indivisible assets |
UnableToEnableLiquiditySource | Unable to enable liquidity source |
LiquiditySourceAlreadyEnabled | Liquidity source is already enabled |
UnableToDisableLiquiditySource | Unable to disable liquidity source |
LiquiditySourceAlreadyDisabled | Liquidity source is already disabled |