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

go-kosu: update scaling methods to be consistent #243

Merged
merged 7 commits into from Aug 29, 2019

go-kosu: re-add gosec lint skip

  • Loading branch information
hrharder committed Aug 28, 2019
commit 8a916aa76076a1537e7fdf9359dfec0fd45ca3f9
@@ -107,6 +107,8 @@ func scaleBalance(balance *big.Int) int64 {
scaled.Set(balance)

// scale balance by 10**18 (base units for KOSU)
// linter disabled for outdated gosec rule
// nolint:gosec
ether.Exp(big.NewInt(10), big.NewInt(18), big.NewInt(0))
scaled.Div(balance, ether)

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.