Description: In the stake function there's no minimum stake time requirement., and also no how to track how long a user have staked which means a user can sandwich reward distribution by staking right before reward distribution and unstaking immediately reward have been distributed
Impact:
Users will earn reward unfairly , Assuming there are 4000 shares staked in the protocol, users can just watch the mempool for reward distribution stake 4000 shares and after the reward distribution unstake and get half of the reward distributed
Proof of Concept:
Recommended Mitigation:
Add a minimum stake time requirement.
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.