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

CtorArgs

Git Source

struct CtorArgs {
    bytes8[] outcomes;
    address oracle;
    uint64 timeStart;
    uint64 timeEnding;
    address feeRecipient;
    address shareImpl;
    bool shouldBufferTime;
    uint64 feeCreator;
    uint64 feeMinter;
    uint64 feeLp;
    uint64 feeReferrer;
}

Properties

NameTypeDescription
outcomesbytes8[]to use to use as betting outcomes in this contract.
oracleaddressto use as the resolver for this contract.
timeStartuint64to begin this contract by.
timeEndinguint64to end this contract by.
feeRecipientaddressto send fees earned from trading.
shareImpladdress
shouldBufferTimeboolto extend time by 3 hours for every purchase within a 3 hour window. If this is enabled, the contract will enforce purchases to exceed $10 if they are taking place within 3 hours of the contract's scheduled end time.
feeCreatoruint64to take as the default fee from every mint for the creator of this contract.
feeMinteruint64to take as the fee that we give to minters.
feeLpuint64to take as a fee for the market makers who used the add/remove features.
feeReferreruint64to take and distribute to a referrer for a allocation.