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

Improve precision on pricing model calculation #596

Open
estensen opened this issue Dec 19, 2024 · 0 comments
Open

Improve precision on pricing model calculation #596

estensen opened this issue Dec 19, 2024 · 0 comments
Labels
D-good-first-issue Difficulty: a great choice to get started!

Comments

@estensen
Copy link
Contributor

Testing the pricing model, the price of a preconf at 15M already preconfirmed gas differs slightly from the pricing model article (1.17 GWEI). Investigate if we can improve the precision in the math, maybe by using U256.

assert!(
(min_fee_wei as f64 - 1_189_738_950.0).abs() < 1_000.0,
"Expected ~1,189,738,950 Wei, got {} Wei",
min_fee_wei
);

https://research.lido.fi/t/a-pricing-model-for-inclusion-preconfirmations/9136

@estensen estensen added the D-good-first-issue Difficulty: a great choice to get started! label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-good-first-issue Difficulty: a great choice to get started!
Projects
None yet
Development

No branches or pull requests

1 participant