The delegateBoost
function does not prevent users from delegating boosts to themselves. This unintended behavior undermines the purpose of delegation and could lead to user confusion or abuse of boost tracking mechanisms.
No check ensures to != msg.sender
.
Users can delegate boosts to themselves, making the delegation process redundant.
May lead to misinterpretation of boosts or unnecessary state changes.
Redundant on-chain storage usage.
Possible confusion for users and front-end applications.
Potential for gaming certain calculations or reward mechanisms relying on boost delegation.
Manual code review.
Add a check to prevent self-delegation:
This ensures boost delegation remains meaningful and prevents unnecessary edge cases.
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.