Skip to content

Commit

Permalink
feat: allow cooldown == auction length
Browse files Browse the repository at this point in the history
  • Loading branch information
fp-crypto committed May 6, 2024
1 parent 377a4e5 commit 83ad151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
2 changes: 1 addition & 1 deletion src/Bases/Auctioneer/BaseAuctioneer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ abstract contract BaseAuctioneer is BaseHealthCheck, ReentrancyGuard {
require(auctionLength == 0, "initialized");
require(_auctionWant != address(0), "ZERO ADDRESS");
require(_auctionLength != 0, "length");
require(_auctionLength < _auctionCooldown, "cooldown");
require(_auctionLength <= _auctionCooldown, "cooldown");
require(_auctionStartingPrice != 0, "starting price");

// Cannot have more than 18 decimals.
Expand Down

0 comments on commit 83ad151

Please sign in to comment.