Skip to content

Commit

Permalink
chore: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Oct 25, 2024
1 parent eee8a82 commit 157bd6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Auctions/DumperAuction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ contract DumperAuction is Governance2Step, ReentrancyGuard {
* @return . Whether the auction is active.
*/
function isActive(address _from) public view virtual returns (bool) {
return auctions[_from].kicked + auctionLength > block.timestamp;
return auctions[_from].kicked + auctionLength >= block.timestamp;
}

/**
Expand Down Expand Up @@ -579,6 +579,7 @@ contract DumperAuction is Governance2Step, ReentrancyGuard {
require(_hash == order.hash(COW_DOMAIN_SEPARATOR), "bad order");
require(paymentAmount > 0, "zero amount");
require(order.feeAmount == 0, "fee");
require(order.partialFillAllowed, "partial fill");
require(order.validTo < auction.kicked + auctionLength, "expired");
require(order.appData == bytes32(0), "app data");
require(order.buyAmount >= paymentAmount, "bad price");
Expand Down

0 comments on commit 157bd6f

Please sign in to comment.