Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fee payment prices fetched on demand #707

Open
mrq1911 opened this issue Nov 27, 2023 · 0 comments
Open

Fee payment prices fetched on demand #707

mrq1911 opened this issue Nov 27, 2023 · 0 comments

Comments

@mrq1911
Copy link
Member

mrq1911 commented Nov 27, 2023

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.

fn on_initialize(_n: T::BlockNumber) -> Weight {

Price should be populated only if requested by any transaction.

@mrq1911 mrq1911 changed the title Don' Fee payment prices should be fetched only on demand Nov 27, 2023
@mrq1911 mrq1911 changed the title Fee payment prices should be fetched only on demand Fee payment prices fetched on demand Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant