galacticcouncil / galacticcouncil/hydration-node

Fee payment prices fetched on demand

Open
#707 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.