Skip to main content

IEasyAuction

Git Source

Functions

initiateAuction

Initiates an auction through Gnosis Auctions

function initiateAuction(
ERC20 tokenToSell,
ERC20 biddingToken,
uint256 lastCancellation,
uint256 auctionEnd,
uint96 auctionAmount,
uint96 minimumTotalPurchased,
uint256 minimumPurchaseAmount,
uint256 minFundingThreshold,
bool isAtomicClosureAllowed,
address accessManager,
bytes calldata accessManagerData
) external returns (uint256);

Parameters

NameTypeDescription
tokenToSellERC20The token being sold
biddingTokenERC20The token used to bid on the sale token and set its price
lastCancellationuint256The last timestamp a user can cancel their bid at
auctionEnduint256The timestamp the auction ends at
auctionAmountuint96The number of sale tokens to sell
minimumTotalPurchaseduint96The minimum number of sale tokens that need to be sold for the auction to finalize
minimumPurchaseAmountuint256The minimum purchase size in bidding tokens
minFundingThresholduint256The minimal funding thresholding for finalizing settlement
isAtomicClosureAllowedboolCan users call settleAuctionAtomically when end date has been reached
accessManageraddressThe contract to manage an allowlist
accessManagerDatabytesThe data for managing an allowlist

settleAuction

Settles the auction and determines the clearing orders

function settleAuction(uint256 auctionId) external returns (bytes32);

Parameters

NameTypeDescription
auctionIduint256The auction to settle