During a loan transfer in the function buyLoan, the original lender is charged with paying the protocol interest, but doesnt get it back.
IERC20(loan.loanToken).transfer(feeReceiver, protocolInterest);
In the buyLoan function, new lenders shoulder the protocolInterest fee, an amount incorporated into the borrower's accumulated interest. This fee is then deducted from their balance.
New lenders might face unexpected deductions, leading to financial losses.
A thorough review of the code base was conducted to identify this issue.
The fee should not be substracted from his new balance :
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.