LineFactory.sol
Core functions and methods of Spigot.sol
Factory contract to automate the deployment and re-usage of Lines of Credit and related Spigot and Escrow features
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)
function deploySecuredLine():
Deploys a Secured Line including a Spigot and a collateral escrow with default settingsfunction deploySecuredLineWithConfig():
Deploys a Secured Line including a Spigot and a collateral escrow configured according to Borrower and Lender agreed termsfunction deploySecuredLineWithModules():
Deploys a new Secured Line and transfers ownership to that new Line of an existing Escrowed Token Collateral and Spigotfunction 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 settingsfunction deployEscrow():
Deploys a collateral escrow with default settingsLast modified 2mo ago