sora2-network
sora2-network copied to clipboard
[Tech debt]: Use AssetInfoProvider instead of pallet
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
- All components get asset info from
AssetInfoProvider
- All components use DexInfoProvider instead of direct using
AssetInfos
andAssetOwners
storages. - All tests passed
Requirements
No response