If the threshold is not reached, withdrawUnsoldFunds() returns not all token
Closed this issue · 0 comments
martinkrung commented
If the threshold is not reached, withdrawUnsoldFunds() returns not all token.
The amount is only tokensForSale-tokensSold, but should be tokensForSale.
I think for an extra function is needed with this conditions:
- isClosed == false
- tokensSold < minimumRaise
- block.timestamp > endDate
There is another bug in this function, see #73