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:
Forwards the call to
MintLoanToken
inLoanBlueprint.sol
Returns execution result
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:
Forwards the call to
AddBorrowToLoan
inLoanBlueprint.sol
Returns execution result
UpdateLoan
This function executes UpdateLoan
in LoanBlueprint.sol
function updateLoan(
bytes calldata loanInfo_,
address user_,
uint256 loanId_,
ILoan.UpdateField updateField
)
Process:
Forwards the call to
UpdateLoan
inLoanBlueprint.sol
Returns execution result
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:
Forwards the call to AddProtectionToLoan in
ProtectionBlueprint.sol
Returns execution result
Last updated