Zeitgeist
subscan
Runtime Modules / NeoSwaps
Spec Version:
Call Functions
Name
Lookup
Parameters
buy3c005
sell3c015
join3c023
exit3c033
withdraw_fees3c041
deploy_pool3c054
Events
Name
Lookup
Attributes
BuyExecuted3c00["AccountId","MarketIdOf","AssetOf","BalanceOf","BalanceOf","BalanceOf","BalanceOf"]
SellExecuted3c01["AccountId","MarketIdOf","AssetOf","BalanceOf","BalanceOf","BalanceOf","BalanceOf"]
FeesWithdrawn3c02["AccountId","MarketIdOf","BalanceOf"]
JoinExecuted3c03["AccountId","MarketIdOf","BalanceOf","Vec<BalanceOf>","BalanceOf"]
ExitExecuted3c04["AccountId","MarketIdOf","BalanceOf","Vec<BalanceOf>","BalanceOf"]
PoolDeployed3c05["AccountId","MarketIdOf","AccountId","BTreeMap<AssetOf, BalanceOf>","AssetOf","BalanceOf","BalanceOf","BalanceOf"]
PoolDestroyed3c06["AccountId","MarketIdOf","Vec<BalanceOf>"]
Storage Functions
Name
Type
Pools{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"zrml_neo_swaps:types:pool:Pool","keys_id":6,"value_id":539}}
Constants
Name
Type
Value
MaxLiquidityTreeDepthU3209000000
MaxSwapFeeU12800ca9a3b000000000000000000000000
PalletId[U8; 8]7a67652f6e656f73
Error Types
Name
Docs
AssetCountAboveMaxThe number of assets in the pool is above the allowed maximum.
AmountInAboveMaxAmount paid is above the specified maximum.
AmountOutBelowMinAmount received is below the specified minimum.
AssetNotFoundSpecified asset was not found in this pool.
DuplicatePoolMarket already has an associated pool.
IncorrectAssetCountIncorrect asset count.
IncorrectVecLen
InsufficientPoolSharesUser doesn't own enough pool shares.
LiquidityTooLowThe liquidity in the pool is too low.
InvalidSpotPricesSum of spot prices is not `1`.
InvalidTradingMechanismMarket's trading mechanism is not LMSR.
MarketNotActivePool can only be traded on if the market is active.
MathErrorSome calculation failed. This shouldn't happen.
NotAllowedThe user is not allowed to execute this command.
NotImplementedThis feature is not yet implemented.
NumericalLimitsSome value in the operation is too large or small.
OutstandingFeesOutstanding fees prevent liquidity withdrawal.
PoolNotFoundSpecified market does not have a pool.
SpotPriceAboveMaxSpot price is above the allowed maximum.
SpotPriceBelowMinSpot price is below the allowed minimum.
SwapFeeAboveMaxPool's swap fee exceeds the allowed upper limit.
SwapFeeBelowMinPool's swap fee is below the allowed lower limit.
UnexpectedThis shouldn't happen.
ZeroAmountSpecified monetary amount is zero.
LiquidityTreeErrorAn error occurred when handling the liquidty tree.
MinRelativeLiquidityThresholdViolatedThe relative value of a new LP position is too low.
NarrowingConversionNarrowing type conversion occurred.