SORA
subscan
Runtime Modules / XSTPool
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
PoolInitialized2b00
ReferenceAssetChanged2b01
Storage Functions
Name
Type
PermissionedTechAccount{"origin":"PlainType","plain_type":"TechAccountId"}
BaseFee{"origin":"PlainType","plain_type":"Fixed"}
EnabledSynthetics{"origin":"PlainType","plain_type":"BTreeSet<AssetId>"}
ReferenceAssetId{"origin":"PlainType","plain_type":"AssetId"}
CollateralReserves{"origin":"MapType","map_type":{"key":"AssetId","hasher":"Twox64Concat","value":"Balance","isLinked":false}}
Error Types
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.
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.
UnsupportedCollateralAssetId Indicated collateral asset is not enabled for pool.
FeeCalculationFailed Could not calculate fee.
CantExchange Liquidity source can't exchange assets with the given IDs on the given DEXId.
IncRefError Increment account reference error.