We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the faucet function you are mixing up ETH and USD in the status report message
sendMessage(session, `FYI you've recieved ${count} eth from the me so far 😎`)
count contains a USD amount, not an ETH amount.
Also using a float for money or cryptocurrency is not a great idea, you get rounding errors quickly.
Best to convert to the smallest unit available (cents or wei) and use integer arithmetics.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the faucet function you are mixing up ETH and USD in the status report message
count contains a USD amount, not an ETH amount.
Also using a float for money or cryptocurrency is not a great idea, you get rounding errors quickly.
Best to convert to the smallest unit available (cents or wei) and use integer arithmetics.
The text was updated successfully, but these errors were encountered: