Type Alias serai_dex_pallet::pallet::SpotPrices

source ·
pub type SpotPrices<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageSpotPrices<T>, Identity, ExternalCoin, Identity, [u8; 8], u16, OptionQuery>;
Expand description

Moving window of prices from each block.

The [u8; 8] key is the amount’s big endian bytes, and u16 is the amount of inclusions in this multi-set. Since the underlying map is lexicographically sorted, this map stores amounts from low to high.

Storage type is StorageDoubleMap with key1 type ExternalCoin, key2 type [u8; 8] and value type u16.

Aliased Type§

struct SpotPrices<T: Config>(/* private fields */);