A missing update to poolBoost in the delegateBoost() function will cause inconsistent state tracking as the boost delegation amounts are not properly reflected in pool totals.
In BoostController.sol, the delegateBoost() function fails to update the poolBoosts mapping while other related functions like updateUserBoost() and removeBoostDelegation() properly maintain this state.
The protocol suffers from incorrect pool boost accounting as the poolBoosts totals do not reflect actual delegated amounts. This creates inconsistency between user delegation records and pool-level tracking.
Update the delegateBoost() function to properly maintain the poolBoosts mapping:
Add poolBoosts[to].totalBoost += amount;
Add poolBoosts[to].workingSupply += amount;
Add poolBoosts[to].lastUpdateTime = block.timestamp;
This will align the behavior with other boost-related functions and maintain accurate state tracking.
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.