Loan
Loan Actions
Transactional Functions
AddBorrowToLoan Contract
AddBorrowToLoan.sol
contract is used to add borrow information(Add Link to info) to a specific loan.
function cloneContract(bytes memory loanInfo, address user, uint256 uniqueId)
Process:
Validate loan info, user address, and unique ID.
Decodes loan info and creates a new LoanDetails instance.
Stores the loan details in the concrete storage.
MintLoanToken Contract
MintLoanToken.sol
contract is used to mint a new loan token to a user's portfolio.
function mintLoanToken(address to, uint256 uniqueId)
Process:
Validates the recipient's address and unique ID.
Mints a new loan token and updates related data in the concrete storage.
SetFinancialTerms Contract
SetFinancialTerms.sol
contract is used to set the financial terms of a user's loan.
function mintLoanToken(uint256 loanId, bytes memory loanInfo)
Process:
Validate loan info and loan ID.
Decodes loan info and creates a new LoanFinancialTerms instance.
Stores the financial terms in concrete storage.
SetLoanToken Contract
SetLoanToken.sol
contract is designed to initialize and define the primary details of a loan token at the time of its creation.
function initialLoanInfo(uint256 loanId, bytes memory loanInfo)
Process:
Validate loan info and loan ID.
Decodes loan info and creates a new LoanInitialData instance.
Stores the loan data in concrete storage.
UpdateLoanInfo Contract
UpdateLoanInfo.sol
contract is used to update existing loan information.
function updateLoanInfo(bytes memory loanInfo,address user, uint256 uniqueId)
Process:
Validate loan info, user address, and unique ID.
Decodes loan info and creates a new LoanUpdate instance.
Stores the updated loan info in concrete storage.
Last updated