The claim function in Staking.sol does not follow CEI pattern and not using Reentrancy Guards
The claim function in Staking.sol updating the state of the contract after transfering the tokens to the sender and it voilates the CEI pattern which should be followed.Users can drain the funds in the protocol by reentering the claim function multiple times as the contract state is not updated before transfering.
High risk as users can drain the protocol by calling claim functions multiple times
Its better to use openzeppelin's ReentrancyGuard and also follow CEI pattern while writing the code.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.