Show actual executed swap amounts after successful swap - #23
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
After a swap executes, display the actual input and output amounts from Jupiter's execute response instead of just "Swap successful!". Shows token logos, formatted amounts, and symbols for both sides of the swap, with the transaction link below. Closes #10 https://claude.ai/code/session_01M8UUYNBVgvkd9Wkjn7qJmY
mcintyre94
force-pushed
the
claude/issue-10-swap-results-L1JPG
branch
from
February 10, 2026 22:57
1448c9f to
c67a56c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
∙ After a successful swap, display the actual input and output token amounts (with icons and symbols) instead of just a generic “Swap successful!” message
∙ Passes inputToken and outputToken props to SwapButton so it can parse and display the executed amounts from the swap result
∙ Uses formatTokenAmount for consistent number formatting in the success output
Test plan:
∙ Perform a token swap and verify the success message shows the actual swapped amounts with token icons and symbols
∙ Verify the “View transaction” link still works correctly
∙ Verify the UI displays correctly for tokens with and without logos