Implement dynamic descent token exchange rate algorithm
yuanfeiz opened this issue · 0 comments
yuanfeiz commented
Algorithm:
bodhiToken = ether * tokenExchangeRate()
tokenExchangeRate = initialExchangeRate - (block.number - fundingStartBlock) / 1000 * 0.1
Note: use safeMath
.
Tests:
- before
fundingStartBlock
- at
fundingStartBlock
- after
fundingStartBlock
, beforefundingEndBlock
- at
fundingEndBlock
- after
fundingEndBlock
- at the cliff