The first check in _mintTokens (plotsMinted[uint256(plotSize)] < plotsAvailablePerSize[uint256(plotSize)]) is unnecessary and could be removed. The second check (plotsMinted[uint256(plotSize)] + numPlots <= plotsAvailablePerSize[uint256(plotSize)]) implies the first one, so there is no need to perform the first one (except for the different error message, but I do not think that this is worth the gas).
Alex the Entreprenerd (judge) commented:
Alex the Entreprenerd (judge) commented:
For this audit, 1 report was submitted detailing gas optimizations. The report highlighted below by Dravee received the top score from the judge.
