Repay ETH Loan

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 Request

  • walletAddress:string- is the address of the user

const response = await this.newBorrowingService.doETHRepayment(
 loan.outstandingBalance, loan.creditLine.contractAddress,
 loan, walletAddress
)

Last updated