Skip to content

Commit

Permalink
feat: BaseAuctioneer (#45)
Browse files Browse the repository at this point in the history
* feat: auctioneer swapper
* fix: receiver check
* chore: remove receiver
* chore: constructor
* chore: rename
* chore: storage layout
* chore: interface
* chore: prettier
* chore: test BaseAuctioneer
* chore: oops
* chore: prettier
* fix: comment
* feat: prefix BaseAuctioneer members with auction
* feat: allow cooldown == auction length
  • Loading branch information
fp-crypto authored May 6, 2024
1 parent aa40486 commit 6ce8d29
Show file tree
Hide file tree
Showing 6 changed files with 1,271 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Auctions/Auction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ contract Auction is Governance, ReentrancyGuard {
require(auctionLength == 0, "initialized");
require(_want != address(0), "ZERO ADDRESS");
require(_auctionLength != 0, "length");
require(_auctionLength < _auctionCooldown, "cooldown");
require(_auctionLength <= _auctionCooldown, "cooldown");
require(_startingPrice != 0, "starting price");

// Cannot have more than 18 decimals.
Expand Down
Loading

0 comments on commit 6ce8d29

Please sign in to comment.