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

Changing the balance twice

Summary

A bool balance is being deducted debt twice instead of once

Vulnerability Details

The line from the first link replicates the functionality of the line from the second link by doing explicit deduction of the pool balance.

Impact

Calculations can go very wrong leading to people losing money

Tools Used

Manual review

Recommendations

Remove the line from the first link as it replicates something that was already done by a function a few lines above

Support

FAQs

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