LineFactory.sol

Core functions and methods of LineFactory.sol

Factory contract to automate the deployment and re-usage of Lines of Credit and related Spigot and Escrow features

External functions
function deploySecuredLine(address borrower, uint256 ttl) external returns (address line)
function deploySecuredLineWithConfig(CoreLineParams calldata coreParams) external returns (address line
function deploySecuredLineWithModules(CoreLineParams calldata coreParams, address mSpigot, address mEscrow) external returns (address line)
function rolloverSecuredLine(address payable oldLine, address borrower, uint256 ttl) external returns (address line)
function deploySpigot(address owner, address operator) external returns (address)
function deployEscrow(uint32 minCRatio, address owner, address borrower) external returns (address)
Methods

function deploySecuredLine(): Deploys a Secured Line including a Spigot and a collateral escrow with default settings

function deploySecuredLineWithConfig(): Deploys a Secured Line including a Spigot and a collateral escrow configured according to Borrower and Lender agreed terms

function deploySecuredLineWithModules(): Deploys a new Secured Line and transfers ownership to that new Line of an existing Escrowed Token Collateral and Spigot

function rolloverSecuredLine(): Allows a Borrower to set up a new Line based upon the terms of a currently active or repaid Line (or any other status)

function deploySpigot(): Deploys a Spigot with default settings

function deployEscrow(): Deploys a collateral escrow with default settings

Last updated

Was this helpful?