Vault
Inherits: IEvents
The vault serves as a liquidity vehicle for market creation using a shared bucket of liquidity. Dao-earned fees are repaid to this vault when the market is resolved, subtracting what's needed to earn more than the fees.
State Variables
ERC20
IERC20 immutable ERC20
FACTORY
address immutable FACTORY
OPERATOR
address immutable OPERATOR
outstandingDebt
uint256 public outstandingDebt
debt
mapping(address => uint256) debt
Functions
constructor
constructor(IERC20 _erc20, address _factory, address _operator) ;
borrow
function borrow(address _for, uint256 _amount) external;
repay
function repay(uint256 _feesEarned) external;
drain
function drain() external returns (uint256 amt);