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

Test: Add gas costs to /gas-prices endpoint #1349

Closed
wants to merge 14 commits into from
Closed

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Jan 3, 2025

This PR is not designed to be merged. I only want to print out the current gas fee computation components on the production API to compare against those with #1339

Signed-off-by: nicholaspai [email protected]

Copy link

vercel bot commented Jan 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 5:51pm
sepolia-frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 5:51pm

Number(chainId)
);
return relayerFeeCalculatorQueries.getGasCosts(
buildDepositForSimulation(depositArgs),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should parallel how the /iimits endpoint computes the gasFeePercent today:

  • Passes the gasPrice computed using getMaxFeePerGas and the gasUnits passed from a getGasCosts() call with omitMarkup = true into getRelayerFeeDetails which ultimately calls the SDK's getGasCosts function

Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proactively throwing a "request change" to ensure this doesn't get merged

…gas prices

Gas prices will be more accurate for OP stack chains and also for Zora which was mistakenly removed from the OPStack family prior to this SDK bump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants