Increase Collateral for ERC20

async increaseLoanCollateral()

To increase the collateral for ERC20 loan so it will not get liquidated we should send:

The amount and loanContractAddress - you will get after a successful response from Single Loan

  • loanData:interface – is the already explained interface.

  • walletAddress:string - is the address of the user

const response = await this.newBorrowingService.increaseLoanCollateral(
    amount,
    loanContractAddress,
    loanData, 
    userAddress
)

Last updated