Skip to content

Commit

Permalink
update interval to a total of 120 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 18, 2023
1 parent a167f0e commit 151434b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/libraries/external/KickerActions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ library KickerActions {
uint256 latestBurnEpoch = reserveAuction_.latestBurnEventEpoch;

// check that at least five days have passed since the last reserve auction completed
if (block.timestamp < reserveAuction_.kicked + 5 days + 72 hours) {
if (block.timestamp < reserveAuction_.kicked + 120 hours) {
revert ReserveAuctionTooSoon();
}

Expand Down
12 changes: 4 additions & 8 deletions tests/forge/unit/ERC721Pool/ERC721PoolReserveAuction.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,15 @@ contract ERC721PoolReserveAuctionTest is ERC721HelperContract {
// pass time to allow auction to complete
skip(48 hours);

// check that you can't start a new auction immediately after the last one finished
_assertReserveAuctionTooSoon();

// check that you can't start a new auction five days after the last start...
skip(5 days - 72 hours);
// check that you can't start a new auction immediately after the last one finished...
_assertReserveAuctionTooSoon();

// ...or a day later...
skip(1 days);
skip(24 hours);
_assertReserveAuctionTooSoon();

// ...but you can start another auction five days after the last one completed
skip(72 hours - 1 days);
// ...but you can start another auction five days after the last one was kicked
skip(24 hours);
_kickReserveAuction({
from: _bidder,
remainingReserves: 420.358577242054894754 * 1e18,
Expand Down

0 comments on commit 151434b

Please sign in to comment.