This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
theFirstElder - User can purchase above maximuim allocation #19
Labels
Non-Reward
This issue will not receive a payout
theFirstElder
medium
User can purchase above maximuim allocation
Summary
Users can purchase more than the maximum allocation allowed by the contract.
Vulnerability Detail
Due to incorrect contract implementation, users can exceed the maximum allocation limit.
Impact
Allowing users to purchase beyond the maximum allocation violates the contract's maximum deposit invariant.
Code Snippet
https://github.com/sherlock-audit/2024-03-zap-protocol/blob/main/zap-contracts-labs/contracts/TokenSale.sol#L262
Tool used
Manual Review
Recommendation
The text was updated successfully, but these errors were encountered: