Skip to content

[#395] Display slippage-adjusted cost in TradingWidget#397

Merged
realproject7 merged 1 commit intomainfrom
task/395-trading-display-fix
Mar 20, 2026
Merged

[#395] Display slippage-adjusted cost in TradingWidget#397
realproject7 merged 1 commit intomainfrom
task/395-trading-display-fix

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

Show "Max cost (incl. 3% slippage)" for buys and "Min return (incl. 3% slippage)" for sells instead of raw estimate. The displayed value now matches what the balance check uses, so "Insufficient balance" makes sense to users.

3-line change in src/components/TradingWidget.tsx.

Fixes #395

Test plan

  • npm run typecheck — passes
  • npm run lint — passes

🤖 Generated with Claude Code

Show "Max cost (incl. 3% slippage)" for buys and "Min return
(incl. 3% slippage)" for sells instead of raw estimate. The
displayed value now matches what the balance check uses, so
"Insufficient balance" makes sense to users.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

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

Verdict: APPROVE

Summary

The change matches issue #395 exactly: the TradingWidget now shows the slippage-adjusted number the balance check actually enforces.

Findings

  • None.

Decision

Approved. The displayed buy/sell estimate now aligns with the 3% slippage-adjusted balance check, and the latest lint-and-typecheck run is green.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

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

LGTM. Correct fix — displayed value now matches the actual slippage-adjusted amount. CI green.

@realproject7 realproject7 merged commit 6c5914d into main Mar 20, 2026
1 check passed
@realproject7 realproject7 deleted the task/395-trading-display-fix branch March 20, 2026 20:48
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

Successfully merging this pull request may close these issues.

[Bug] TradingWidget shows raw estimate but checks slippage-adjusted cost — confusing insufficient balance

2 participants