Skip to content

Compare USDC balances without precision loss - #9

Open
samsamtrum wants to merge 1 commit into
OneBalance-io:mainfrom
samsamtrum:fix-usdc-balance-comparison
Open

Compare USDC balances without precision loss#9
samsamtrum wants to merge 1 commit into
OneBalance-io:mainfrom
samsamtrum:fix-usdc-balance-comparison

Conversation

@samsamtrum

Copy link
Copy Markdown

Compare raw USDC balance strings with bigint arithmetic when selecting the largest balance.

This avoids routing examples through Number(...), which can round large integer balances before comparison.

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.

2 participants