Name | Lookup | Parameters | |
---|---|---|---|
swap_with_exact_supply | 6f00 | 3 | |
swap_with_exact_target | 6f01 | 3 | |
add_liquidity | 6f02 | 6 | |
add_provision | 6f03 | 4 | |
claim_dex_share | 6f04 | 3 | |
remove_liquidity | 6f05 | 6 | |
list_provisioning | 6f06 | 7 | |
update_provisioning_parameters | 6f07 | 7 | |
end_provisioning | 6f08 | 2 | |
enable_trading_pair | 6f09 | 2 | |
disable_trading_pair | 6f0a | 2 | |
refund_provision | 6f0b | 3 | |
abort_provisioning | 6f0c | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
AddProvision | 6f00 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance"] | |
AddLiquidity | 6f01 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance","Balance"] | |
RemoveLiquidity | 6f02 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance","Balance"] | |
Swap | 6f03 | ["AccountId","Vec<CurrencyId>","Vec<Balance>"] | |
EnableTradingPair | 6f04 | ["TradingPair"] | |
ListProvisioning | 6f05 | ["TradingPair"] | |
DisableTradingPair | 6f06 | ["TradingPair"] | |
ProvisioningToEnabled | 6f07 | ["TradingPair","Balance","Balance","Balance"] | |
RefundProvision | 6f08 | ["AccountId","CurrencyId","Balance","CurrencyId","Balance"] | |
ProvisioningAborted | 6f09 | ["TradingPair","Balance","Balance"] |
Name | Type | |
---|---|---|
LiquidityPool | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":128,"value_id":560}} | |
TradingPairStatuses | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"module_dex:TradingPairStatus","keys_id":128,"value_id":580}} | |
ProvisioningPool | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["acala_primitives:TradingPair","AccountId"],"value":"Tuple:U128U128","keys_id":582,"value_id":560}} | |
InitialShareExchangeRates | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["acala_primitives:TradingPair"],"value":"Tuple:U128U128","keys_id":128,"value_id":583}} |
Name | Type | Value | |
---|---|---|---|
GetExchangeFee | Tuple:U32U32 | 01000000e8030000 | |
TradingPathLimit | U32 | 04000000 | |
PalletId | [U8; 8] | 6163612f6465786d | |
ExtendedProvisioningBlocks | U32 | 40380000 |
Name | Docs |
---|---|
AlreadyEnabled | Trading pair is already Enabled |
MustBeEnabled | Trading pair must be in Enabled status |
MustBeProvisioning | Trading pair must be in Provisioning status |
MustBeDisabled | Trading pair must be in Disabled status |
NotAllowedList | This trading pair is not allowed to be listed |
InvalidContributionIncrement | The increment of provision is invalid |
InvalidLiquidityIncrement | The increment of liquidity is invalid |
InvalidCurrencyId | Invalid currency id |
InvalidTradingPathLength | Invalid trading path length |
InsufficientTargetAmount | Target amount is less to min_target_amount |
ExcessiveSupplyAmount | Supply amount is more than max_supply_amount |
InsufficientLiquidity | Liquidity is not enough |
ZeroSupplyAmount | The supply amount is zero |
ZeroTargetAmount | The target amount is zero |
UnacceptableShareIncrement | The share increment is unacceptable |
UnacceptableLiquidityWithdrawn | The liquidity withdrawn is unacceptable |
InvariantCheckFailed | The swap dosen't meet the invariant check |
UnqualifiedProvision | The Provision is unqualified to be converted to `Enabled` |
StillProvisioning | Trading pair is still provisioning |
AssetUnregistered | The Asset unregistered. |
InvalidTradingPath | The trading path is invalid |
NotAllowedRefund | Not allowed to refund provision |
CannotSwap | Cannot swap |