Create Loan Request

async createLoanRequest()

After successfully signing the loan request, you can proceed with creating the loan request.

const response = await this.newBorrowingService.createLoan({
    token: token,
    loanId: loanData.loanId,
    loanAmount: loanData.loanAmount,
    underlying: loanData.underlyingSymbol,
    loanTerm: loanData.loanTerm,
    loanInterest: loanData.loanRate,
    collateral: loanData.collateralSymbol,
    loanRequestValidity: loanData.loanRequestValidity,
    userRating: loanData.userRating,
    borrowerAddress: loanData.borrowerAddress,
    signature: loanData.signature,
    type: loanData.type,
    creditLineAddress: loanData.creditLineAddress,
    collateralAmount: loanData.collateralAmount
})

Last updated