BuyHelper2

Git Source

State Variables

FACTORY

INineLivesFactory immutable FACTORY;

LONGTAIL

ILongtail immutable LONGTAIL;

FUSDC

IERC20 immutable FUSDC;

WETH

IWETH10 immutable WETH;

Functions

constructor

constructor(INineLivesFactory _factory, ILongtail _longtail, address _fusdc, IWETH10 _weth);

mint

Mint some shares at the trading id and outcome given, using Longtail to make a swap to fUSDC from the asset given.

function mint(address _tradingAddr, address _asset, bytes8 _outcome, uint256 _minShareOut, uint256 _amount)
    external
    payable
    returns (uint256);

burn

function burn(address _tradingAddr, bytes8 _outcome, uint256 _maxShareOut, uint256 _minShareOut, uint256 _fusdcAmt)
    external
    returns (uint256);