Module pool_xyk::pallet

source ·
Expand description

The module that hosts all the FRAME types needed to add this pallet to a runtime.

Structs

Enums

Traits

  • Configuration trait of this pallet.

Type Definitions

  • Set of pools in which accounts have some share. Liquidity provider account => Target Asset of pair (assuming base asset is XOR)
  • ModuleDeprecated
    Type alias to Pallet, to be used by construct_runtime.
  • Liquidity providers of particular pool. Pool account => Liquidity provider account => Pool token balance
  • Properties of particular pool. Base Asset => Target Asset => (Reserves Account Id, Fees Account Id)
  • 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.
  • Total issuance of particular pool. Pool account => Total issuance