subdarkdex / subdex-parachain

Apache License 2.0
0 stars 1 forks source link

Dex_pallet milestone 1: first iteration #4

Closed iorveth closed 3 years ago

iorveth commented 3 years ago
  1. Direct token pools implemented.

    • For asset -> asset pool runtime representation i chose double_map, identified by both asset ids. Don't sure if it's a good approach, as then we need to constantly apply some rule to ensure correct order. Thought about hashing or some arithmetic operations performed for both identificators, though couldn`t figure out appropriate algorithm.
  2. generic-assets dependency replaced in favor of Currency trait on dex_parachain side, which makes implementation much more flexible. (dex_xcmp reworking still work in progress)
  3. AssetBalances runtime storage introduced for the purpose of tracking other parachain assets. ( which are not supported on dex parachain natively)
  4. Introduced treasury account for further fee charge.
  5. Overflow risks are partially resolved. (Still need to rework exchange related methods).

Closes: https://github.com/subdarkdex/subdex-chain/issues/2 Partially implements https://github.com/subdarkdex/subdex-chain/issues/9