Skip to content

Commit

Permalink
dont check noun age if gov param not set
Browse files Browse the repository at this point in the history
  • Loading branch information
eladmallel committed Oct 11, 2023
1 parent dd11029 commit a042c33
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ library NounsDAOV3Fork {
}

function checkNounIdIsAllowedToFork(NounsDAOStorageV3.StorageV3 storage ds, uint256 tokenId) internal view {
if (ds.nounAgeRequiredToFork == 0) return;

uint256 auctionedNounId = INounsAuctionHouseV2(ds.nouns.minter()).auction().nounId;
if (tokenId < auctionedNounId - ds.nounAgeRequiredToFork) revert NounIdNotOldEnough();
}
Expand Down

0 comments on commit a042c33

Please sign in to comment.