Skip to content

Disable exact out for max balance payments#20

Merged
GabrielePicco merged 1 commit into
mainfrom
fix/max-balance-exact-out
May 27, 2026
Merged

Disable exact out for max balance payments#20
GabrielePicco merged 1 commit into
mainfrom
fix/max-balance-exact-out

Conversation

@GabrielePicco
Copy link
Copy Markdown
Contributor

Summary

  • Track the sender wallet balance in raw base units while preserving the existing formatted display.
  • Detect when the entered payment amount equals the selected sender balance.
  • Force exactOut to false and disable the Exact out switch for full-balance sends so token fees are not added on top of the sender's holdings.

Validation

  • ./node_modules/.bin/tsc --noEmit
  • yarn build

Note: npm run lint currently fails before linting because eslint . reports no files matching . in this checkout.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pay Ready Ready Preview, Comment May 27, 2026 7:48pm

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 27, 2026

Warning

Review limit reached

@GabrielePicco, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 47 minutes and 15 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: cb7b0125-4813-4da0-a7d0-bc2e4c826aaf

📥 Commits

Reviewing files that changed from the base of the PR and between ab6e111 and ac0372c.

📒 Files selected for processing (1)
  • components/one/payment-card.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/max-balance-exact-out

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@GabrielePicco GabrielePicco marked this pull request as ready for review May 27, 2026 19:49
@GabrielePicco GabrielePicco merged commit 2bc83bd into main May 27, 2026
4 checks passed
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.

1 participant