Repository navigation
fix(ui): use full balance on MAX for non-native tokens - #1141
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ted-palmer's task in 24s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 52s —— View job Code Review — No issues found. Reviewed 3 files, ~46 lines changed. The refactor extracts the buffer math into Verified:
Matches the PR's stated intent. Nice, focused change. |
|
| feeBufferAmount: bigint = 0n | ||
| ): bigint => { | ||
| if (balance <= 0n) return 0n | ||
| if (!isFromNative) return balance |
There was a problem hiding this comment.
MAX change lacks regression coverage
The new full-balance branch has no regression test. Without a test for the Base USDC sale and one confirming that native-token MAX keeps gas headroom, a later change could restore the original ERC-20 bug or break the native behavior without being caught. Greptile automatically discovered a related ticket stating that the Base USDC case should have a regression test, which informed this comment.
Source Used: Linear — MAX leaves gas reserve for ERC-20 sales
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Claude finished @ted-palmer's task in 1m 15s —— View job Code Review — No issues found. Reviewed 4 files, ~46 lines changed. Checked for correctness, security, error handling, and repo guidelines compliance. The refactor extracts the buffer math into Verified:
On the Greptile findings
Focused, clean change that matches its stated intent. |
|
Claude finished @ted-palmer's task in 45s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
No description provided.