Malicious lender can grief users' transactions changing the minLoanSize/maxLoanRation/poolBalance values.
Malicious lenders can create a pool with a very beneficial loan ratio. As users request a loan by calling the borrow function, the lender can frontrun it and:
Change the maxLoanRation for a smaller value than the calculated loanRatio
Change the minLoanSize by calling the setPool function for a bigger value than the user would like to borrow
Decrease the pool balance.
In these situations, the user's transaction will revert.
User's gas griefing and potential loss of trust in the protocol, as users may experience transaction failures and doubt the reliability of the protocol.
Manual review
Consider implementing a delay for changing those values.
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.