Name | Lookup | Parameters | |
---|---|---|---|
swap | 1a00 | 6 | |
swap_transfer | 1a01 | 7 | |
swap_transfer_batch | 1a02 | 6 | |
enable_liquidity_source | 1a03 | 1 | |
disable_liquidity_source | 1a04 | 1 | |
set_adar_commission_ratio | 1a05 | 1 | |
xorless_transfer | 1a06 | 9 |
Name | Lookup | Attributes | |
---|---|---|---|
Exchange | 1a00 | ["AccountIdOf","DexIdOf","AssetIdOf","AssetIdOf","Balance","Balance","OutcomeFee<AssetIdOf, Balance>","Vec<LiquiditySourceIdOf>"] | |
LiquiditySourceEnabled | 1a01 | ["LiquiditySourceType"] | |
LiquiditySourceDisabled | 1a02 | ["LiquiditySourceType"] | |
BatchSwapExecuted | 1a03 | ["Balance","Balance","Option<BoundedVec<u8, MaxAdditionalDataLengthSwapTransferBatch>>"] | |
XorlessTransfer | 1a04 | ["AssetIdOf","AccountIdOf","AccountIdOf","Balance","Option<BoundedVec<u8, MaxAdditionalDataLengthXorlessTransfer>>"] | |
ADARFeeWithdrawn | 1a05 | ["AssetIdOf","Balance"] |
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 |
InvalidReceiversInfo | |
FailedToTransferAdarCommission | |
InvalidADARCommissionRatio | |
InsufficientBalance | |
TheSameSenderAndReceiver |