The k=2 time-weighted bonus formula (_bonusShare) is designed to reward early stakers over late stakers by squaring the time difference (T - entryTime)². However, this constraint collapses when a pool has only a single staker. A solo staker receives 100% of the bonus pool regardless of entry time, including when entering moments before expiry, The staker can actively monitor,or make deposit in Prerisk contracts to activate expiryLocked, withdraws deposit immediately, then monitor when there is no totalEligibleStake, but has an active totalBonus, waits until pool approaches Expiry, restakes then claims all.
Attack path;
Likelihood:
When there are no stakers in the pool as deadline approaches e.g totalEligibleStake== 0 , and Whitehats are uninterested to attack a stakeless contract, so chances of getting
a CORRUPTED agreement is slim.
When the totalBonus > 0, which cant be removed once deposited.
Impact:
Time Incentive mismatch; Sponsors may expect
they are rewarding people who have been providing coverage, Instead
someone who was absent during almost the entire pool lifetime can collect everything.
Discourages early staking; Suppose everyone knows this behavior,
Instead of staking early, rational users might wait until the last possible moment during UNDER_ATTACK. If everyone waits, coverage disappears, and totalEligibleStake== 0 will push whitehats to avoid the contract UNDER_ATTACK, because they dont believe it is incentivised enough to attack, This is a protocol economics concern.
Misleading Confidence Signal; On-chain observers see totalEligibleStake > 0 and totalBonus > 0 but cannot see the duration of commitment. A 2-day sniper (Solostaker) appears identical to a full-term believer, inflating perceived confidence in the in-scope contracts.
copy and paste the following in the ConfidencePool.fuzz.t.sol
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.
The contest is complete and the rewards are being distributed.