As arbitrary ERC20 tokens can be passed, the amount here should be calculated every time to take into consideration a possible fee-on-transfer or deflation.
For instance in borrow() function, the following will lead to accounting errors
If a pool is using fee on transfer tokens for loans or collateral, then when using the borrow() function , less tokens will be sent to protocol causing accounting errors.
Manual review
Check the balance before and after the transfer to take into account the Fees-On-Transfer.
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.