HydraDX-node icon indicating copy to clipboard operation
HydraDX-node copied to clipboard

Fee payment prices fetched on demand

Open mrq1911 opened this issue 1 year ago • 0 comments

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.

mrq1911 avatar Nov 27 '23 16:11 mrq1911