Repository navigation
fix(trade): remove 'total fee' row from swap form - #7805
Conversation
The 'Total fee' row only appeared in the price dropdown when both a partner fee and protocol fee were present, and nowhere else, making the swap form inconsistent. Drop the row and the now-unused showTotalRow/totalFee plumbing (TotalFeeRow component included). Individual protocol/partner fee rows are unchanged, and the order receipt's own 'Total fee' is untouched. Closes cowprotocol#6693
|
@tenderdeve is attempting to deploy a commit to the cow-dev Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (4)
WalkthroughThe trade fee UI no longer calculates or displays a total fee row. Related props, rendering logic, component exports, and caller wiring were removed while partner, protocol, and network fee details remain. ChangesTrade fee display removal
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary
Fixes #6693.
The Total fee row in the swap form's price dropdown only showed up when a partner fee and a protocol fee were both present — in every other case it was absent. That inconsistency is confusing, so this removes the row from the swap form.
Changes
showTotalRowfrom the swap-formTradeFeesAndCostsusage (the only place it was enabled).showTotalRow/totalFeeUsdplumbing fromTradeFeesAndCostsandTradeFees, and delete the orphanedTotalFeeRowcomponent.Individual protocol/partner fee rows are unchanged. The order-receipt modal's own "Total fee" line is separate and untouched.
Testing steps
Total feefield — only the individual fee/cost rows.Summary by CodeRabbit