Transaction may revert when a borrower refinances a loan.
When a borrower refinances a loan, the borrower specifis new desired debt amount, protocol calculates the debtToPay and compares debtToPay with the new debt:
If debtToPay < debt, before sending back the excess loan tokens back to the borrower, protocol calculates the borrower fee:
Then sends fee to the fee receiver:
If debtToPay is very close to debt, fee will be 0, transaction will revert if the loanToken used in the contract is an unconventional token that reverts when attempting to transfer 0 tokens.
Refinance transaction reverts.
Manual Review
If the calculated fee amount is 0, skip transferring fee to the fee receiver.
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.