Integer overflow when calculating rewards
The reward calculation scales the cumulative reward per token by 1e36, which can overflow when the total staked amount is very small. An attacker could stake a tiny amount and deposit a large reward to cause an overflow, bricking reward calculations and preventing users from withdrawing stakes or rewards.
Gamma - Locked Staking Contract
Medium