galacticcouncil / galacticcouncil/hydration-node
Fee payment prices fetched on demand
Open
- Dominant language
- Rust
- Stars
- 208
- Forks
- 109
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 3
Description
Currently we fetch all payment assets prices on initialize regardless if they are used or not. This is not very efficient, especially with a growing number of assets.
https://github.com/galacticcouncil/HydraDX-node/blob/f617f3c63f24b37586bf79aecee03455e2a90cab/pallets/transaction-multi-payment/src/lib.rs#L81
Price should be populated only if requested by any transaction.
Contributor guide
Assessment
This issue has not been assessed yet.