Skip to content

feat: show estimated gas fee before confirming transactions - #663

Merged
ritaifeoluwa merged 2 commits into
SmartDropLabs:mainfrom
wandooadzer-cmyk:feat/gas-fee-estimate-before-confirm
Oct 18, 2026
Merged

ritaifeoluwa merged 2 commits into
SmartDropLabs:mainfrom
wandooadzer-cmyk:feat/gas-fee-estimate-before-confirm

Conversation

@wandooadzer-cmyk

Copy link
Copy Markdown

Every transaction confirmation now shows an estimated network fee before the Freighter signing prompt, so users aren't surprised by costs.

  • TransactionConfirmModal takes a fee prop and renders an "Estimated network fee" row in XLM (simulated resource fee plus base inclusion fee). It shows a loading state, an "Unavailable" fallback when simulation fails, and a "sponsored" label for fee-bumped transactions. Confirm stays disabled while the estimate loads.
  • Add simulateSetBoost plus a debounced useSetBoostFeePreview hook, so Boost changes get a fee estimate too.
  • Lock (pool detail page) and Boost now show fee estimates. Deposit and Unlock move from raw stroops to the shared XLM formatting.
  • Add src/lib/fees.ts helpers with unit tests, and modal tests for the fee row states.

Closes #654
Closes #653
Closes #651
Closes #650

Every transaction confirmation now shows an estimated network fee
before the Freighter signing prompt, so users aren't surprised by
costs.

- TransactionConfirmModal takes a `fee` prop and renders an
  "Estimated network fee" row in XLM (simulated resource fee plus base
  inclusion fee). It shows a loading state, an "Unavailable" fallback
  when simulation fails, and a "sponsored" label for fee-bumped
  transactions. Confirm stays disabled while the estimate loads.
- Add simulateSetBoost plus a debounced useSetBoostFeePreview hook, so
  Boost changes get a fee estimate too.
- Lock (pool detail page) and Boost now show fee estimates. Deposit
  and Unlock move from raw stroops to the shared XLM formatting.
- Add src/lib/fees.ts helpers with unit tests, and modal tests for the
  fee row states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for smart-drop failed.

Name Link
🔨 Latest commit 832b874
🔍 Latest deploy log https://app.netlify.com/projects/smart-drop/deploys/6ad505c256248052be7383e7

@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@wandooadzer-cmyk Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for spiffy-melomakarona-eb1e8a failed.

Name Link
🔨 Latest commit 832b874
🔍 Latest deploy log https://app.netlify.com/projects/spiffy-melomakarona-eb1e8a/deploys/6ad505c2759345b1bdfce3ec

@ritaifeoluwa
ritaifeoluwa merged commit 04253cf into SmartDropLabs:main Oct 18, 2026
0 of 8 checks passed
Dove1010 pushed a commit to Dove1010/smartdrop-frontend that referenced this pull request Oct 21, 2026
Enchanterme pushed a commit to Enchanterme/smartdrop-frontend that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants