Name | Lookup | Parameters | |
---|---|---|---|
initialize_pool | 1600 | 1 | |
set_reference_asset | 1601 | 1 | |
set_optional_reward_multiplier | 1602 | 2 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolInitialized | 1600 | ||
ReferenceAssetChanged | 1601 | ||
OptionalRewardMultiplierUpdated | 1602 |
Name | Type | |
---|---|---|
ReservesAcc | {"origin":"PlainType","plain_type":"TechAccountId"} | |
FreeReservesAccountId | {"origin":"PlainType","plain_type":"AccountId"} | |
PendingFreeReserves | {"origin":"PlainType","plain_type":"Vec<(AssetId, Balance)>"} | |
InitialPrice | {"origin":"PlainType","plain_type":"Fixed"} | |
PriceChangeStep | {"origin":"PlainType","plain_type":"Fixed"} | |
PriceChangeRate | {"origin":"PlainType","plain_type":"Fixed"} | |
SellPriceCoefficient | {"origin":"PlainType","plain_type":"Fixed"} | |
AlwaysDistributeCoefficient | {"origin":"PlainType","plain_type":"Fixed"} | |
BaseFee | {"origin":"PlainType","plain_type":"Fixed"} | |
DistributionAccountsEntry | {"origin":"PlainType","plain_type":"DistributionAccounts<DistributionAccountData<DistributionAccount< AccountId, TechAccountId>>,>"} | |
EnabledTargets | {"origin":"PlainType","plain_type":"BTreeSet<AssetId>"} | |
ReferenceAssetId | {"origin":"PlainType","plain_type":"AssetId"} | |
Rewards | {"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"(Balance, Balance)","isLinked":false}} | |
TotalRewards | {"origin":"PlainType","plain_type":"Balance"} | |
IncentivisedCurrenciesNum | {"origin":"PlainType","plain_type":"u32"} | |
IncentivesAccountId | {"origin":"PlainType","plain_type":"AccountId"} | |
AssetsWithOptionalRewardMultiplier | {"origin":"MapType","map_type":{"key":"AssetId","hasher":"Twox64Concat","value":"Fixed","isLinked":false}} | |
InitialPswapRewardsSupply | {"origin":"PlainType","plain_type":"Balance"} | |
CollateralReserves | {"origin":"MapType","map_type":{"key":"AssetId","hasher":"Twox64Concat","value":"Balance","isLinked":false}} |
Name | Docs |
---|---|
PriceCalculationFailed | An error occurred while calculating the price. |
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. |