Auction
Type
struct Depositor {
uint256 deposit;
bool isWhitelisted;
bool hasWithdrawn;
}
Event
event LiquidityPercentageUpdate(uint256 newValue);
event WhitelistedAddress(address indexed account);
event Deposit(address indexed account, uint256 amount);
event Withdrawal(address indexed account, uint256 amount);
Error
error AlreadyWithdrawn();
error AlreadyWhitelisted();
error Ended();
error InvalidInput();
error InvalidPercentage();
error InvalidWhitelisting();
error NotEnded();
error NotStarted();
error NotWhitelisted();
error Started();
error Unauthorized();
Function
function version() external pure returns (string memory version);
function admin() external view returns (address admin);
function feeReceiver() external view returns (address feeReceiver);
function primaryToken() external view returns (address primaryToken);
function treasury() external view returns (address treasury);
function endAt() external view returns (uint256 endAt);
function liquidityPercentage() external view returns (uint256 liquidityPercentage);
function totalDeposit() external view returns (uint256 totalDeposit);
function totalLiquidity() external view returns (uint256 totalLiquidity);
function totalToken() external view returns (uint256 totalToken);
function useWhitelist() external view returns (bool useWhitelist);
function getDepositor(address account) external view returns (Depositor memory);
function withdrawableTokenAmountOf(address account) external view returns (uint256 amount);
function setTotalToken(uint256 totalToken) external;
function deposit(uint256 amount) external;
function withdraw() external;
Last updated