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

Bug: Cannot transfer more than 18.4 TAO with EVM #981

Open
gztensor opened this issue Nov 14, 2024 · 0 comments · Fixed by #984
Open

Bug: Cannot transfer more than 18.4 TAO with EVM #981

gztensor opened this issue Nov 14, 2024 · 0 comments · Fixed by #984
Assignees

Comments

@gztensor
Copy link
Contributor

gztensor commented Nov 14, 2024

The issue is that transfer precompile has a hard limit of u64::MAX for the transfer amount, but it is not applied in the right place. It should be applied after conversion to 9 decimals, but it caps 18-decimal Eth values instead. As a result, the max value we can transfer is approx. 18.4.

@gztensor gztensor linked a pull request Nov 15, 2024 that will close this issue
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 a pull request may close this issue.

2 participants