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

Incorrect Event Emmiting

Summary

The incorrect event may be emitted.

Vulnerability Details

The PoolBalanceUpdated event is emitted in both cases balance is updated and not.

Impact

This may lead to the incorrect assumption of the contract state changes when tracking off-chain.

Tools Used

Manual Review

Recommendations

Emit the PoolBalanceUpdated event only when the balance is updated.

Support

FAQs

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

Give us feedback!