Skip to content

Sherlock

Gamma - Locked Staking Contract

Every publicly disclosed report for Gamma - Locked Staking Contract and what kind of bugs they were.

disclosed reports
2
most reported class
Business logic
bug classes found
2
first disclosure
2024
Find Gamma - Locked Staking Contract on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Gamma - Locked Staking Contract chose to make public.

DoS

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
Business logic

`earlyExitById()` and `exitLateById()` calls near the end of `lockPeriod` are vulnerable to attacks

The staking contract's exit functions calculate unlock time and penalty using a modulo-based formula that can change drastically if a transaction is mined just after the lock period ends. An attacker could block-stuff to delay a victim's exit transaction, causing funds to be locked for another full period or a much higher penalty to be applied.

Gamma - Locked Staking Contract

Medium