Name | Lookup | Parameters | |
---|---|---|---|
initialize_pool | 1700 | 1 | |
set_reference_asset | 1701 | 1 | |
set_optional_reward_multiplier | 1702 | 2 | |
set_price_bias | 1703 | 1 | |
set_price_change_config | 1704 | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolInitialized | 1700 | ["DexIdOf","AssetIdOf"] | |
ReferenceAssetChanged | 1701 | ["AssetIdOf"] | |
OptionalRewardMultiplierUpdated | 1702 | ["AssetIdOf","Option<Fixed>"] | |
PriceBiasChanged | 1703 | ["Balance"] | |
PriceChangeConfigChanged | 1704 | ["Balance","Balance"] |
Name | Type | |
---|---|---|
ReservesAcc | {"origin":"PlainType","plain_type":"common:primitives:TechAccountId","PlainTypeValue":83} | |
FreeReservesAccountId | {"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0} | |
PendingFreeReserves | {"origin":"PlainType","plain_type":"Vec<Tuple:[U8; 32]U128>","PlainTypeValue":90} | |
InitialPrice | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":79} | |
PriceChangeStep | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":79} | |
PriceChangeRate | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":79} | |
SellPriceCoefficient | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":79} | |
AlwaysDistributeCoefficient | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":79} | |
BaseFee | {"origin":"PlainType","plain_type":"I128","PlainTypeValue":79} | |
DistributionAccountsEntry | {"origin":"PlainType","plain_type":"multicollateral_bonding_curve_pool:DistributionAccounts","PlainTypeValue":636} | |
EnabledTargets | {"origin":"PlainType","plain_type":"Vec<[U8; 32]>","PlainTypeValue":639} | |
ReferenceAssetId | {"origin":"PlainType","plain_type":"[U8; 32]","PlainTypeValue":67} | |
Rewards | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"Tuple:U128U128","keys_id":0,"value_id":640}} | |
TotalRewards | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
IncentivisedCurrenciesNum | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
IncentivesAccountId | {"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0} | |
AssetsWithOptionalRewardMultiplier | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"I128","keys_id":67,"value_id":79}} | |
InitialPswapRewardsSupply | {"origin":"PlainType","plain_type":"U128","PlainTypeValue":6} | |
CollateralReserves | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"U128","keys_id":67,"value_id":6}} |
Name | Docs |
---|---|
PriceCalculationFailed | An error occurred while calculating the price. |
FailedToCalculatePriceWithoutImpact | Failure while calculating price ignoring non-linearity of liquidity source. |
CannotExchangeWithSelf | The pool can't perform exchange on itself. |
NotEnoughReserves | It's not enough reserves in the pool to perform the operation. |
PoolAlreadyInitializedForPair | Attempt to initialize pool for pair that already exists. |
PoolNotInitialized | Attempt to get info for uninitialized pool. |
SlippageLimitExceeded | Indicated limits for slippage has not been met during transaction execution. |
NothingToClaim | Either user has no pending rewards or current limit is exceeded at the moment. |
RewardsSupplyShortage | User has pending reward, but rewards supply is insufficient at the moment. |
UnsupportedCollateralAssetId | Indicated collateral asset is not enabled for pool. |
FeeCalculationFailed | Could not calculate fee including sell penalty. |
CantExchange | Liquidity source can't exchange assets with the given IDs on the given DEXId. |
IncRefError | Increment account reference error. |
ArithmeticError | An error occured during balance type conversion. |
FreeReservesAccountNotSet | Free reserves account is not set |