Skip to main content

IAuctionFactory

Interface for Auction factory contracts

Functions

createAuction

Creates a new auction

function createAuction(
address bidAsset,
address askAsset,
uint256 minPrice,
uint256 maxPrice,
uint256 tickWidth,
uint256 priceDenominator,
uint256 endDate
) external returns (IDualAuction);

Parameters

NameTypeDescription
bidAssetaddressThe asset that bids are made with
askAssetaddressThe asset that asks are made with
minPriceuint256The minimum allowed price in terms of bidAsset
maxPriceuint256The maximum allowed price in terms of bidAsset
tickWidthuint256The spacing between valid prices
priceDenominatoruint256
endDateuint256The timestamp at which the auction will end

Events

AuctionCreated

event AuctionCreated(
address indexed bidAsset,
address indexed askAsset,
uint256 endDate,
address indexed creator,
address newAuctionAddress
);

Errors

InvalidParams

Some parameters are invalid

error InvalidParams();