Repay ETH Loan
SmartCredit.io Borrowing SDK - doETHRepayment() repays an active ETH-denominated loan using the outstanding balance from the loan record.
Last updated:
async doETHRepayment()
Repaying ETH loan you should use:
The outstandingBalance and contractAddress information you will get after getting a successful response from Single Loan.
loan:interface– is the loanData interface explained at Loan RequestwalletAddress:string- is the address of the user
const response = await this.newBorrowingService.doETHRepayment(
loan.outstandingBalance, loan.creditLine.contractAddress,
loan, walletAddress
)