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

Rounding errors when hitting max cap #8

Closed
miohtama opened this issue Jun 16, 2017 · 1 comment
Closed

Rounding errors when hitting max cap #8

miohtama opened this issue Jun 16, 2017 · 1 comment

Comments

@miohtama
Copy link
Contributor

miohtama commented Jun 16, 2017

When doing bonus minting, make sure we never exceed the max cap due to rounding errors.

Otherwise supply of 100,000,000 might end up looking like 100,002,000

Also do not undercut the cap.

If you hit with 99,9% within the cap range then add the few remaining missing tokens, so that the total supply will look a nice round number.

@miohtama
Copy link
Contributor Author

Resolved using AllocatedCrowdsale.

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