This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
ZdravkoHr. - Users able to deposit over maxAllocation because of wrong implementation of TokenSale.calculateMaxAllocation()
#167
Labels
Non-Reward
This issue will not receive a payout
ZdravkoHr.
high
Users able to deposit over maxAllocation because of wrong implementation of
TokenSale.calculateMaxAllocation()
Summary
Instead of using the
maxAllocation
as a ceiling for deposits, its used as a floor.Vulnerability Detail
TokenSale.calculateMaxAllocation()
will returnImpact
Breaks a core invariant of the protocol and leads to unfair distribution.
Code Snippet
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: