Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node Interface cannot represent large token amounts #62

Open
SethDusek opened this issue Jan 9, 2024 · 0 comments
Open

Node Interface cannot represent large token amounts #62

SethDusek opened this issue Jan 9, 2024 · 0 comments

Comments

@SethDusek
Copy link

The node interface is unable to accurately represent large token amounts. The actual amount of these tokens is 9223372036854775807.

image

I believe the way to solve this is to use lossless-json to preserve precision when deserializing responses in axios. https://stackoverflow.com/questions/43787712/axios-how-to-deal-with-big-integers

I haven't tested whether you can send a large token amount using the node interface but I would imagine it suffers from a similar issue since javascript's number type can't represent numbers larger than ~53 bits.

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

No branches or pull requests

1 participant