BuyHelper2
State Variables
FACTORY
INineLivesFactory immutable FACTORY;
LONGTAIL
ILongtail immutable LONGTAIL;
FUSDC
IERC20 immutable FUSDC;
WETH
IWETH10 immutable WETH;
CAMELOT_SWAP_ROUTER
ICamelotSwapRouter immutable CAMELOT_SWAP_ROUTER;
Functions
constructor
constructor(
INineLivesFactory _factory,
ILongtail _longtail,
address _fusdc,
IWETH10 _weth,
ICamelotSwapRouter _camelotSwapRouter
);
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,
address _referrer,
uint256 _rebate,
uint256 _deadline,
address _recipient
) external payable returns (uint256);
burn
function burn(
address _tradingAddr,
bytes8 _outcome,
uint256 _minFusdc,
uint256 _maxShareOut,
uint256 _minShareOut,
address _referrer
) external returns (uint256, uint256);