Factory
Write Methods
deployVault
solidity
function deployVault() external returns(address);Factory function that accepts no parameters and creates a new Vault for the Lender. It returns the address of deployed Vault.
Returns
| Name | Type | Description |
|---|---|---|
vault | address | Address of the created vault |
deployLoan
solidity
function deployLoan(
DataTypes.LoanData calldata loanData
) external returns (address loan)Factory function that accepts loanData and creates a new Loan. It returns the address of the created loan.
Parameters
| Name | Type | Description |
|---|---|---|
loanData | LoanData | The data using which the loan is initialized |
Returns
| Name | Type | Description |
|---|---|---|
loan | address | Address of the created loan |

