Type Definition pool_xyk::pallet::Reserves

source ·
pub type Reserves<T: Config> = StorageDoubleMap<_GeneratedPrefixForStorageReserves<T>, Blake2_128Concat, T::AssetId, Blake2_128Concat, T::AssetId, (Balance, Balance), ValueQuery>;
Expand description

Updated after last liquidity change operation. [Base Asset Id (XOR) -> Target Asset Id => (Base Balance, Target Balance)]. This storage records is not used as source of information, but used as quick cache for information that comes from balances for assets from technical accounts. For example, communication with technical accounts and their storage is not needed, and this pair to balance cache can be used quickly.