The delegateBoost
function does not prevent users from delegating their boost to themselves (to == msg.sender
). This may not be the intended behavior and could lead to unintended consequences, such as users artificially inflating their own boost.
The function does not check if the to
address is the same as the msg.sender
.
This allows users to delegate their boost to themselves, which may not be the intended behavior.
Self-delegation could be used to artificially inflate a user's boost, undermining the fairness of the governance process.
Unintended Behavior: Users can delegate boost to themselves, potentially exploiting the system.
Reduced Trust: Users may lose trust in the governance system if self-delegation is allowed.
A user calls delegateBoost
with to = msg.sender
.
The function allows the delegation, even though it may not be the intended behavior.
The user's boost is artificially inflated, potentially affecting governance outcomes.
Manual Review
Add a check to prevent users from delegating their boost to themselves:
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.