No limit on number of Reward token #106
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
Lines of code
https://github.com/code-423n4/2022-05-vetoken/blob/main/contracts/VE3DRewardPool.sol#L102
https://github.com/code-423n4/2022-05-vetoken/blob/main/contracts/VE3DLocker.sol#L145
Vulnerability details
Impact
The current implementation of addReward seems to allow any number of reward token to be added. There should be a limit on the number of rewards allowed
Proof of Concept
Recommended Mitigation Steps
Add below check in addReward function:
The text was updated successfully, but these errors were encountered: