Skip to content

Latest commit

 

History

History
121 lines (77 loc) · 1.91 KB

interface.IILOPoolSale.md

File metadata and controls

121 lines (77 loc) · 1.91 KB

IILOPoolSale

Git Source

Inherits: IILOPoolBase, IILOWhitelist

Functions

initialize

function initialize(InitParams calldata params) external;

buy

this function is for investor buying ILO

function buy(uint256 raiseAmount, address recipient) external returns (uint256 tokenId);

claimRefund

function claimRefund(uint256 tokenId) external returns (uint256 refundAmount);

SALE_START

function SALE_START() external view returns (uint64);

SALE_END

function SALE_END() external view returns (uint64);

MIN_RAISE

function MIN_RAISE() external view returns (uint256);

MAX_RAISE

function MAX_RAISE() external view returns (uint256);

TOTAL_RAISED

function TOTAL_RAISED() external view returns (uint256);

tokenSoldAmount

function tokenSoldAmount() external view returns (uint256);

refundable

function refundable() external view returns (bool);

Events

ILOPoolSaleInitialized

event ILOPoolSaleInitialized(InitPoolBaseParams baseParams, SaleParams saleParams, LinearVest[] vestingSchedule);

PoolSaleCancelled

event PoolSaleCancelled();

PoolSaleLaunched

event PoolSaleLaunched(uint256 totalRaised, uint128 liquidity);

Structs

SaleParams

struct SaleParams {
    uint64 start;
    uint64 end;
    uint256 minRaise;
    uint256 maxRaise;
}

InitParams

struct InitParams {
    InitPoolBaseParams baseParams;
    SaleParams saleParams;
    LinearVest[] vestingSchedule;
}