Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
uint saleTime = period * 1 days;
if(now < start + saleTime.div(4)) {
bonusTokens = tokens.div(4);
} else if(now >= start + saleTime.div(4) && now < start + saleTime.div(2)) {
bonusTokens = tokens.div(10);
} else if(now >= start + saleTime.div(2) && now > saleTime.div(4).mul(3)) {
bonusTokens = tokens.div(20);
}
@denispeplin

This comment has been minimized.

Copy link
Owner Author

denispeplin commented Dec 2, 2017

Небольшое изменение алгоритма бонусов к этой статье: http://inaword.ru/blokchejn/pishem-smart-kontrakt-ethereum-eto-prosto-chast-9-ico-dobavlyaem-bonusy-investoram/#comment-1417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.