The deposited amount should be increased just after the transfer has finished, making it a better, safer and bit more gas-efficient solution.
Static analysis
Change the order of the transferFrom function and userStakes increment in the Staking::deposit function
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.