The logic for accounting for deposits is broken for fee-on-transfer tokens, resulting in lenders getting credited for having a larger poolBalance then they actually do.
The addToPool function, which allows lenders to add more tokens to their pool is defined as follows:
The lender's pool balance is credited by amount, while the actual amount transferred in will be less than this, as it doesn't account for the fee taken on the transfer.
Lack of correct accounting of fee-on-transfer tokens results in lender's getting credited with an excess amount of poolBalance.
Manual review
When transferring in tokens from a lender, the difference between the balance before and after the transfer should be credited to the lender's pool.
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.