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
Name | Type | Description |
---|---|---|
bidAsset | address | The asset that bids are made with |
askAsset | address | The asset that asks are made with |
minPrice | uint256 | The minimum allowed price in terms of bidAsset |
maxPrice | uint256 | The maximum allowed price in terms of bidAsset |
tickWidth | uint256 | The spacing between valid prices |
priceDenominator | uint256 | |
endDate | uint256 | The 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();