SORA
subscan
Runtime Modules / PriceTools
Spec Version:
Storage Functions
Name
Type
PriceInfos{"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["[U8; 32]"],"value":"price_tools:AggregatedPriceInfo","keys_id":67,"value_id":725}}
Error Types
Name
Docs
AveragePriceCalculationFailedFailed to calculate new average price.
UpdateAverageWithSpotPriceFailedFailed to add new spot price to average.
InsufficientSpotPriceDataEither spot price records has been reset or not initialized yet. Wait till spot pricequote is recovered and span is recalculated.
UnsupportedQuotePathRequested quote path is not supported.
FailedToQuoteAveragePriceFailed to perform quote to get average price.
AssetAlreadyRegisteredAssetId has been already registered.
CantDuplicateLastPriceSpot price for asset has not changed but info for last spot price is unavailable.