Loan Brokerage

Loan Brokerage Module

LoanBrokerageModule.sol is used for both uncovered and covered loans to gather borrower information from a lender, update loan details, and provide protection for an uncovered loan.

Transactional Functions

MintLoanToken

This function executes MintLoanToken in LoanBlueprint.sol

  function mintLoanToken(address to_, uint256 uniqueId_, bytes memory loanInfo)

Process:


setBorrowData

This function executes AddBorrowToLoan in LoanBlueprint.sol

function addBorrowToLoan(
    bytes calldata borrowData_,
    address user_,
    uint256 loanId_,
    bytes calldata loanInfo_,
    uint256 portfolioId_,
    ILoan.UpdateField updateField
)

Process:


UpdateLoan

This function executes UpdateLoan in LoanBlueprint.sol

function updateLoan(
    bytes calldata loanInfo_,
    address user_,
    uint256 loanId_,
    ILoan.UpdateField updateField
)

Process:


AddProtectionToLoan

This function executes AddProtectionToLoan in ProtectionBlueprint.sol

function addProtectionToLoan(
    bytes calldata protectionInfo_,
    bytes calldata protectionUpdateData,
    address user_,
    uint256 loanId_,
    uint256 openingFee_,
    address token_,
    string memory pointer_
)

Process:

Last updated