Segmenting loans of low-decimal tokens into smaller ones allows the borrower to not pay borrowerFee
to the protocol.
The fee calculation when borrowing looks like the following:
This presents an issue for the protocol when loans of low-decimal high-value tokens like WBTC are taken because they can segment their loan into smaller chunks, which are making the above formula round down to 0.
For this scenario to be economically profitable we need to assume that the fee savings in terms of fees not paid are higher than the additional gas needed to call borrow()
with multiple borrows instead of with one. This assumption is not true at this moment but can become easily if such tokens' prices rise and the borrowerFee
gets set to a lower number.
Eventually, users will be able to take loans without paying a borrower fee.
Manual Review
Consider adding a flat fee if fees
rounds down to 0.
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.