Lenders can increase loan rate, forcing borrowers into bigger debts
The refinance function is designed to manage the refinancing of existing loans. It processes an array of refinancing requests and handles the complex logic of transferring debts, updating collateral, calculating interest, validating conditions, and updating the system state accordingly.
A lender can exploit the function by observing pending refinance()
transactions and reacting in a manner that is detrimental to the borrowers.
Before a user calls the refinance()
function, a lender can execute an updateInterestRate()
function. By strategically setting the interest rate as high as possible, the lender could force borrowers into bigger debts.
Borrowers can be forced to repay higher amounts than they expected when they were taking loans. If borrowers don't repay their increased debts, their collateral are seized by lenders.
Vscode
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.