sora2-network icon indicating copy to clipboard operation
sora2-network copied to clipboard

[Tech debt]: Use AssetInfoProvider instead of pallet

Open wer1st opened this issue 1 year ago • 0 comments

Problem statement

We call functions directly from pallets. It is necessary to use traits in Config for these calls. One of such using is getting asset info from assets pallet.

Description

Replace all calls related to asset info with using AssetInfoProvider trait.

Note: Search // TODO: #395 use AssetInfoProvider instead of assets pallet comment in the code. It helps to find necessary places.

Definition of Done

  1. All components get asset info from AssetInfoProvider
  2. All components use DexInfoProvider instead of direct using AssetInfos and AssetOwners storages.
  3. All tests passed

Requirements

No response

wer1st avatar Apr 11 '23 11:04 wer1st