Judge @GalloDaSballo has assessed item C4-002 in QA Report #198 as Medium risk. The relevant finding follows:
…
Impact - LOW
The add function does not have any upper or lower bounds. Values that are too large will lead to reversions in several critical functions. User funds will be locked forever.
Judge @GalloDaSballo has assessed item C4-002 in QA Report #198 as Medium risk. The relevant finding follows:
…
Impact - LOW
The add function does not have any upper or lower bounds. Values that are too large will lead to reversions in several critical functions. User funds will be locked forever.
Proof of Concept
https://github.com/code-423n4/2022-02-concur/blob/02d286253cd5570d4e595527618366f77627cdaf/contracts/MasterChef.sol#L97
Tools Used
None
Recommended Mitigation Steps
Consider to define upper bound on the add function. User can pay %100 fee when the deposit into the pool.