SORA
subscan
Runtime Modules / LiquidityProxy
Spec Version:
Events
Name
Lookup
Attributes
Exchange1a00["AccountIdOf","DexIdOf","AssetIdOf","AssetIdOf","Balance","Balance","OutcomeFee<AssetIdOf, Balance>","Vec<LiquiditySourceIdOf>"]
LiquiditySourceEnabled1a01["LiquiditySourceType"]
LiquiditySourceDisabled1a02["LiquiditySourceType"]
BatchSwapExecuted1a03["Balance","Balance","Option<BoundedVec<u8, MaxAdditionalDataLengthSwapTransferBatch>>"]
XorlessTransfer1a04["AssetIdOf","AccountIdOf","AccountIdOf","Balance","Option<BoundedVec<u8, MaxAdditionalDataLengthXorlessTransfer>>"]
ADARFeeWithdrawn1a05["AssetIdOf","Balance"]
Constants
Name
Type
Value
InternalSlippageToleranceU32e8030000
Error Types
Name
Docs
UnavailableExchangePathNo route exists in a given DEX for given parameters to carry out the swap
MaxFeeExceededMax fee exceeded
InvalidFeeValueFee value outside of the basis points range [0..10000]
InsufficientLiquidityNone of the sources has enough reserves to execute a trade
AggregationErrorUnable to aggregate the liquidity from sources.
CalculationErrorSpecified parameters lead to arithmetic error
SlippageNotToleratedSlippage either exceeds minimum tolerated output or maximum tolerated input.
ForbiddenFilterSelected filtering request is not allowed.
FailedToCalculatePriceWithoutImpactFailure while calculating price ignoring non-linearity of liquidity source.
UnableToSwapIndivisibleAssetsUnable to swap indivisible assets
UnableToEnableLiquiditySourceUnable to enable liquidity source
LiquiditySourceAlreadyEnabledLiquidity source is already enabled
UnableToDisableLiquiditySourceUnable to disable liquidity source
LiquiditySourceAlreadyDisabledLiquidity source is already disabled
InvalidReceiversInfoInformation about swap batch receivers is invalid
FailedToTransferAdarCommissionFailure while transferring commission to ADAR account
InvalidADARCommissionRatioADAR commission ratio exceeds 1
InsufficientBalanceSender don't have enough asset balance
TheSameSenderAndReceiverSender and receiver should not be the same
BadLiquidityInternal error. Liquidity source returned wrong liquidity.