Name | Lookup | Parameters | |
---|---|---|---|
buy | 3c00 | 5 | |
sell | 3c01 | 5 | |
join | 3c02 | 3 | |
exit | 3c03 | 3 | |
withdraw_fees | 3c04 | 1 | |
deploy_pool | 3c05 | 4 |
Name | Lookup | Attributes | |
---|---|---|---|
BuyExecuted | 3c00 | ["AccountId","MarketIdOf","AssetOf","BalanceOf","BalanceOf","BalanceOf","BalanceOf"] | |
SellExecuted | 3c01 | ["AccountId","MarketIdOf","AssetOf","BalanceOf","BalanceOf","BalanceOf","BalanceOf"] | |
FeesWithdrawn | 3c02 | ["AccountId","MarketIdOf","BalanceOf"] | |
JoinExecuted | 3c03 | ["AccountId","MarketIdOf","BalanceOf","Vec<BalanceOf>","BalanceOf"] | |
ExitExecuted | 3c04 | ["AccountId","MarketIdOf","BalanceOf","Vec<BalanceOf>","BalanceOf"] | |
PoolDeployed | 3c05 | ["AccountId","MarketIdOf","AccountId","BTreeMap<AssetOf, BalanceOf>","AssetOf","BalanceOf","BalanceOf","BalanceOf"] | |
PoolDestroyed | 3c06 | ["AccountId","MarketIdOf","Vec<BalanceOf>"] |
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}} |
Name | Type | Value | |
---|---|---|---|
MaxLiquidityTreeDepth | U32 | 09000000 | |
MaxSwapFee | U128 | 00ca9a3b000000000000000000000000 | |
PalletId | [U8; 8] | 7a67652f6e656f73 |
Name | Docs |
---|---|
AssetCountAboveMax | The number of assets in the pool is above the allowed maximum. |
AmountInAboveMax | Amount paid is above the specified maximum. |
AmountOutBelowMin | Amount received is below the specified minimum. |
AssetNotFound | Specified asset was not found in this pool. |
DuplicatePool | Market already has an associated pool. |
IncorrectAssetCount | Incorrect asset count. |
IncorrectVecLen | |
InsufficientPoolShares | User doesn't own enough pool shares. |
LiquidityTooLow | The liquidity in the pool is too low. |
InvalidSpotPrices | Sum of spot prices is not `1`. |
InvalidTradingMechanism | Market's trading mechanism is not LMSR. |
MarketNotActive | Pool can only be traded on if the market is active. |
MathError | Some calculation failed. This shouldn't happen. |
NotAllowed | The user is not allowed to execute this command. |
NotImplemented | This feature is not yet implemented. |
NumericalLimits | Some value in the operation is too large or small. |
OutstandingFees | Outstanding fees prevent liquidity withdrawal. |
PoolNotFound | Specified market does not have a pool. |
SpotPriceAboveMax | Spot price is above the allowed maximum. |
SpotPriceBelowMin | Spot price is below the allowed minimum. |
SwapFeeAboveMax | Pool's swap fee exceeds the allowed upper limit. |
SwapFeeBelowMin | Pool's swap fee is below the allowed lower limit. |
Unexpected | This shouldn't happen. |
ZeroAmount | Specified monetary amount is zero. |
LiquidityTreeError | An error occurred when handling the liquidty tree. |
MinRelativeLiquidityThresholdViolated | The relative value of a new LP position is too low. |
NarrowingConversion | Narrowing type conversion occurred. |