SORA
subscan
Runtime Modules / PriceTools
Spec Version:
Storage Functions
Name
Type
PriceInfos{"origin":"MapType","map_type":{"key":"AssetId","hasher":"Identity","value":"PriceInfo","isLinked":false}}
Error Types
Name
Docs
AveragePriceCalculationFailed Failed to calculate new average price.
UpdateAverageWithSpotPriceFailed Failed to add new spot price to average.
InsufficientSpotPriceData Either spot price records has been reset or not initialized yet. Wait till spot price quote is recovered and span is recalculated.
UnsupportedQuotePath Requested quote path is not supported.
FailedToQuoteAveragePrice Failed to perform quote to get average price.
AssetAlreadyRegistered AssetId has been already registered.
CantDuplicateLastPrice Spot price for asset has not changed but info for last spot price is unavailable.