Last updated 2 years ago
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
loanData:interface – is the already explained .
loanData:interface
walletAddress:string - is the address of the user
walletAddress:string
const response = await this.newBorrowingService.increaseLoanCollateral( amount, loanContractAddress, loanData, userAddress )