Accept Commitment
Lenders can pre-commit capital for loans so that borrowers can initiate loans instantly with that capital without having to wait for the lender to review and accept the loan request.
Accept a Loan Commitment
Initiates a loan through the TellerV2 protocol as a borrower using the commitment specified by _commitmentId
. The principal for the loan in the amount of _principalAmount
will be transferred from the lender’s wallet through the TellerV2 contract and ultimately to the borrower’s wallet. If collateral is specified, then _collateralAmount
will be transferred from the borrower’s wallet to CollateralEscrow for the loan until the finalization of the loan.
Prerequisites
Lender must approve principal token to the TellerV2 contract
Borrower must approve collateral token to the LenderCommitmentForwarder contract
Lender must call approveMarketForwarder for the LenderCommitmentForwarder contract
Borrower must call approveMarketForwarder for the LenderCommitmentForwarder contract
The market owner for the corresponding marketId must call setTrustedMarketForwarder for the LenderCommitmentForwarder contract
If the prerequisite conditions have not been met, the commitment will not be able to be accepted by the borrower.
Last updated