Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HelperFactory

Git Source

HelperFactory that assists in deploying different amounts, it does not take any fees currently to reflect the new AMM model.

State Variables

FUSDC

IERC20Permit immutable FUSDC;

FACTORY

INineLivesFactory immutable FACTORY;

INFRA_MARKET

address public immutable INFRA_MARKET;

BEAUTY_CONTEST

address public immutable BEAUTY_CONTEST;

SARP_AI

address public immutable SARP_AI;

Functions

constructor

constructor(
    IERC20Permit _fusdc,
    INineLivesFactory _factory,
    address _infraMarket,
    address _beautyContest,
    address _sarpAi
);

create

Create a new campaign, ignoring the CreateArgs oracle argument.

function create(address _oracle, CreateArgs calldata _a) internal returns (address);

createWithBeautyContest

function createWithBeautyContest(CreateArgs calldata _a) public returns (address tradingAddr);

createWithAI

function createWithAI(CreateArgs calldata _a) public returns (address tradingAddr);

createWithCustom

It doesn't make sense to use this. It's better to do the setup work yourself with the factory, this is left for convinience reasons. It transfers some fUSDC to the contract for setup.

function createWithCustom(CreateArgs calldata _a) public returns (address tradingAddr);