Pay Off a Loan

This document describes user interactions with the Arcade Protocol throughout the loan lifecycle from the borrower and lender’s perspectives.

Repaying a Loan

40004000

📘

Loan repayment process is initialized from borrower (holder of Borrower Note).

  1. The borrower initiates loan repayment by calling repay or repayPart() function on RepaymentController with loanId.
repay(), repayPart()

📘

For borrowers without installment payments, single payment loans use the repay() function to pay back a loan.

  1. Loan data is retrieved from LoanCore and the specified repayment amount is collected from the borrower.

  2. RepaymentController then passes the repayment information to LoanCore to update the loan state on chain. When repaying a single payment loan, users must repay the loan in full (plus interest). Repayment controller then transfers specified ERC20 payable currency to LoanCore.

repayPart(), repayPartMiniumum() closeLoan()
safeTransferFrom()
  1. Upon repayment, LoanCore executes a call and burns the lender and borrower notes.
burnLoanNotes()
  1. On the Borrower side, if the outstanding collateral is a single NFT, the asset is re-distributed back to the owner of the burned BorrowerNote. If the outstanding collateral is in an AssetVault, the AssetVault's ERC721 token representing the bundle of assets is re-distributed back to owner of the burned BorrowerNote and they are able to withdraw the assets.
transferFrom()
  1. On the Lender side, the loan's principal and interest in the form of the payable ERC20 token stipulated in loan terms is re-distributed to the owner of the burned LenderNote.
transfer()