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

Use whole numbers rather than floating points while calling estimateGas #56

Closed
decent-dev opened this issue Oct 22, 2018 · 0 comments
Closed
Assignees

Comments

@decent-dev
Copy link
Member

let v1Balance = helper.formatDbets(this.state.balances.oldToken.amount)

We don't need to format v1/v2 balances to floating point here since It ends up sending floating point numbers to estimateGas() which throws an error.

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

2 participants