SORA
subscan
Runtime Modules / MulticollateralBondingCurvePool
Spec Version:
Events
Name
Lookup
Attributes
PoolInitialized1700["DexIdOf","AssetIdOf"]
ReferenceAssetChanged1701["AssetIdOf"]
OptionalRewardMultiplierUpdated1702["AssetIdOf","Option<Fixed>"]
PriceBiasChanged1703["Balance"]
PriceChangeConfigChanged1704["Balance","Balance"]
Storage Functions
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}}
Error Types
Name
Docs
PriceCalculationFailedAn error occurred while calculating the price.
FailedToCalculatePriceWithoutImpactFailure while calculating price ignoring non-linearity of liquidity source.
CannotExchangeWithSelfThe pool can't perform exchange on itself.
NotEnoughReservesIt's not enough reserves in the pool to perform the operation.
PoolAlreadyInitializedForPairAttempt to initialize pool for pair that already exists.
PoolNotInitializedAttempt to get info for uninitialized pool.
SlippageLimitExceededIndicated limits for slippage has not been met during transaction execution.
NothingToClaimEither user has no pending rewards or current limit is exceeded at the moment.
RewardsSupplyShortageUser has pending reward, but rewards supply is insufficient at the moment.
UnsupportedCollateralAssetIdIndicated collateral asset is not enabled for pool.
FeeCalculationFailedCould not calculate fee including sell penalty.
CantExchangeLiquidity source can't exchange assets with the given IDs on the given DEXId.
IncRefErrorIncrement account reference error.
ArithmeticErrorAn error occured during balance type conversion.
FreeReservesAccountNotSetFree reserves account is not set