BuyHelper
State Variables
FACTORY
INineLivesFactory immutable FACTORY;
LONGTAIL
ILongtail immutable LONGTAIL;
FUSDC
IERC20 immutable FUSDC;
WETH
IWETH10 immutable WETH;
HELPER
HelperFactory immutable HELPER;
Functions
constructor
constructor(INineLivesFactory _factory, ILongtail _longtail, address _fusdc, IWETH10 _weth, HelperFactory _helper);
_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(bytes32 _id, uint256 _fusdc, bytes8 _outcome, uint256 _minShareOut) internal returns (uint256);
_swapInAsset
function _swapInAsset(address _asset, uint256 _amount) internal returns (uint256);
mint
function mint(bytes32 _id, address _asset, bytes8 _outcome, uint256 _minShareOut, uint256 _amount)
external
payable
returns (uint256);
mintSetupAI
function mintSetupAI(
AiCreationDetails calldata d,
IERC20 _asset,
bytes8 _outcome,
uint256 _minShareOut,
uint256 _amount
) external payable returns (uint256);