20,000 USDC
View results
Submission Details
Severity: gas
Valid

PoolBalanceUpdated is emitted even if there has no update occured

Summary

The PoolBalanceUpdated is emitted every time when setPool is called.

Vulnerability Details

Everytime setPool is called the PoolBalanceUpdated event is emitted, no matter if an actual Update of the balacne has occured or not.

Impact

Wrong event is emitted.

Tools Used

Manual Review

Recommendations

Emit the event only if an actual BalanceUpdate occured.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.