Skip to content

Commit

Permalink
shortened CRA interval to 5 days
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 17, 2023
1 parent 8d452da commit effe7f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/libraries/external/KickerActions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ library KickerActions {
// retrieve timestamp of latest burn event and last burn timestamp
uint256 latestBurnEpoch = reserveAuction_.latestBurnEventEpoch;

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

Expand Down
6 changes: 3 additions & 3 deletions tests/forge/unit/ERC721Pool/ERC721PoolReserveAuction.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ contract ERC721PoolReserveAuctionTest is ERC721HelperContract {
// 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 two weeks after the last start...
skip(2 weeks - 72 hours);
// check that you can't start a new auction five days after the last start...
skip(5 days - 72 hours);
_assertReserveAuctionTooSoon();

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

// ...but you can start another auction 2 weeks after the last one completed
// ...but you can start another auction five days after the last one completed
skip(72 hours - 1 days);
_kickReserveAuction({
from: _bidder,
Expand Down

0 comments on commit effe7f9

Please sign in to comment.