cryptonative-ch/aqua-smartcontracts

as tokensSold tracks invested tokenIn campare with minimumRaise may be wrong.

Closed this issue · 0 comments

minimumRaise is FPST here, need to be in tokenIn?

![Screenshot at 2021-06-23 12-56-19.png]
(https://images.zenhubusercontent.com/60b4b16674cd33c6c7c4952c/f389d05c-e63b-4c1b-9615-6d965415b3dd)

Look at this
tokensold = tokenInAmount #82

BUT minimumRaise is in tokenOut

Screenshot at 2021-06-23 12-48-20.png

minimumRaise/maxRaise should be in tokenIn. Limits in sales are always how much you are allowed to invest, not how much token you get. Imaging 3 private sale with different token prices and vesting. The maxRaise will be the same, but tokenamount change according to the price