Skip to content

Sherlock

Exactly Protocol Update - Staking Contract

Every publicly disclosed report for Exactly Protocol Update - Staking Contract and what kind of bugs they were.

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

Disclosed reports

Newest first. Only what Exactly Protocol Update - Staking Contract chose to make public.

DoS

Anyone will DoS setting a new rewards duration which harms the protocol/users as they will receive too much or too little rewards

The setRewardsDuration function reverts if the current reward period has not finished, and because automated harvesting keeps notifying new rewards, the finish time is constantly reset, making it impossible to change the duration. This denial of service prevents the protocol from adjusting reward rates, potentially causing users to receive too many or too few rewards.

Exactly Protocol Update - Staking Contract

Medium
Business logic

Attackers will reset `avgStart` of any user making rewards stuck for longer and get lost to savings

The StakedExa contract resets a user's average start time when a deposit is made after a reference time, allowing an attacker to deposit 1 wei to a victim and reset their avgStart, which delays or reduces their rewards. The victim cannot claim rewards until minTime passes and may lose rewards to savings upon withdrawal.

Exactly Protocol Update - Staking Contract

Medium
Business logic

Rewards Can Be Harvested Even When Distribution Is Marked As Finished

The finishDistribution function in StakedEXA.sol sets the finish time to the current block timestamp but does not prevent further reward harvesting. A user can still call harvest, which withdraws assets from the market and calls notifyRewardAmount, resetting the finish time and allowing rewards to be claimed after distribution was supposedly finished.

Exactly Protocol Update - Staking Contract

Medium
Business logic

Depositing to another receiver othan than `msg.sender` will lead to stuck funds by increasing `avgStart` without claiming

The staking contract's update function claims rewards for the caller (msg.sender) but when a deposit is made to a different address, the receiver's average start time is increased without first claiming their pending rewards. This can delay or reduce the receiver's rewards, and if they withdraw soon after, they may lose accrued rewards.

Exactly Protocol Update - Staking Contract

Medium
Audit finding

Precision Loss in `notifyRewardAmount` Function Causes Unclaimable RewardToken

The notifyRewardAmount function in StakedEXA calculates the reward rate by integer division, causing precision loss so that the distributed reward amount is less than the notified amount. As a result, a small portion of reward tokens remains locked in the contract and cannot be claimed.

Exactly Protocol Update - Staking Contract

Medium
Business logic

Having no deposits in `StakedEXA` will lead to stuck rewards when harvesting

The StakedEXA contract's reward index does not increase when total supply is zero, so rewards distributed during periods with no deposits become stuck. An attacker could cause this by harvesting rewards or withdrawing all deposits while rewards are ongoing, leading to permanent loss of those rewards.

Exactly Protocol Update - Staking Contract

Medium