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.
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.
StakedEXA's harvest function attempts to withdraw from a market even when that market is paused or frozen, causing the withdrawal to revert. Since harvest is called during deposits, all new deposits fail, preventing users from earning yield.
The liquidation calculation in the Exactly protocol ignores floating assets that accrue from unassigned earnings when a maturity is repaid. As a result, a liquidator may seize less collateral than entitled, leaving funds with the borrower or preventing bad debt clearance.
The clearBadDebt function checks if the earnings accumulator is sufficient to cover bad debt before adding unassigned earnings, so it may fail to clear debt even when the accumulator would be sufficient after the addition. This causes bad debt to accrue, reducing the protocol's solvency.
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.
A rounding error in the liquidation logic of a lending protocol causes the actual repaid amount to be less than the maximum allowed, leaving dust collateral that cannot be cleared. This prevents the bad debt from ever being fully cleared, risking protocol insolvency.
When a maturity is repaid via clearBadDebt, unassigned earnings are only moved to the earnings accumulator if that maturity is the last one with borrowed funds. An attacker can deposit a tiny amount to capture all unassigned earnings from multiple maturities.
The StakedEXA contract only approves the market's asset in the constructor, so when a new market is set via setMarket(), the contract does not approve the new market's asset. This causes deposits to revert because harvest() tries to deposit into the new market without approval.
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.
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.
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.
The StakedEXA contract's harvest function attempts to withdraw assets from a lending market without checking if sufficient liquidity exists, causing a revert when the market's utilization ratio is near 100%. This blocks deposits, denying future depositors yield while benefiting current ones.
EP
Exactly Protocol Update - Staking Contract
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.