cryptonative-ch/aqua-smartcontracts

If the threshold is not reached, withdrawUnsoldFunds() returns not all token

Closed this issue · 0 comments

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

Screenshot at 2021-06-21 12-35-11.png