Closed shingonu closed 6 years ago
rate
is token rate that is equal to 1 / token_price
, not related with coeff
calculateToFund
function of StagedCrowdsale
If the base_rate
is 200, the coeff
value is 1000, and is_static
is true, can I purchase 20 token at a price of 100 wei?
1 ether = 200 token = 200e18 unit token 1 wei = 200 unit token
token price = 1 ether / 200 token = 0.005
I have two questions.
rate
value is 260. I thinktokenAmount
is should be divided by.div(coeff)
, not just multiplication(260). https://github.com/Onther-Tech/tokyo/blob/4c8ad10f59b1612e1c4dc1900e58460161e88f92/packages/tokyo-reusable-crowdsale/audit/full-features/test/FullFeatures.js#L184investAmount
(wei) can be used beyond stage'smax_purchase_limit
value. https://github.com/Onther-Tech/tokyo/blob/4c8ad10f59b1612e1c4dc1900e58460161e88f92/packages/tokyo-reusable-crowdsale/audit/full-features/test/FullFeatures.js#L189