Skip to content

fix: resolve BigInt conversion error in ICP withdrawal#230

Open
PeeEmKay wants to merge 1 commit intomasterfrom
fix-bigint-withdrawal-error
Open

fix: resolve BigInt conversion error in ICP withdrawal#230
PeeEmKay wants to merge 1 commit intomasterfrom
fix-bigint-withdrawal-error

Conversation

@PeeEmKay
Copy link

@PeeEmKay PeeEmKay commented Jul 9, 2025

Fixed floating-point precision issue when converting ICP amounts to e8s units. Added Math.round() to ensure integer values before BigInt conversion.

Resolves error: "the number 1550999.999998 cannot be converted to a Bigint because it is not an integer" when withdrawing decimal ICP amounts.

🤖 Generated with Claude Code

Fixed floating-point precision issue when converting ICP amounts to e8s units.
Added Math.round() to ensure integer values before BigInt conversion.

Resolves error: "the number 1550999.999998 cannot be converted to a Bigint
because it is not an integer" when withdrawing decimal ICP amounts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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