ETH Price: $2,441.78 (+1.53%)

Contract

0x2FDAdd994b1eDEfD19744F00d1Afe85045A31561
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60e06040197172082024-04-23 9:29:47166 days ago1713864587IN
 Create: NounsAuctionHouseV2
0 ETH0.021352768.07760113

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NounsAuctionHouseV2

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 14 : NounsAuctionHouseV2.sol
// SPDX-License-Identifier: GPL-3.0

/// @title The Nouns DAO auction house

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

// LICENSE
// NounsAuctionHouse.sol is a modified version of Zora's AuctionHouse.sol:
// https://github.com/ourzora/auction-house/blob/54a12ec1a6cf562e49f0a4917990474b11350a2d/contracts/AuctionHouse.sol
//
// AuctionHouse.sol source code Copyright Zora licensed under the GPL-3.0 license.
// With modifications by Nounders DAO.

pragma solidity ^0.8.19;

import { PausableUpgradeable } from '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';
import { ReentrancyGuardUpgradeable } from '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';
import { OwnableUpgradeable } from '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import { INounsAuctionHouseV2 } from './interfaces/INounsAuctionHouseV2.sol';
import { INounsToken } from './interfaces/INounsToken.sol';
import { IWETH } from './interfaces/IWETH.sol';

/**
 * @dev The contract inherits from PausableUpgradeable & ReentrancyGuardUpgradeable most of all the keep the same
 * storage layout as the NounsAuctionHouse contract
 */
contract NounsAuctionHouseV2 is
    INounsAuctionHouseV2,
    PausableUpgradeable,
    ReentrancyGuardUpgradeable,
    OwnableUpgradeable
{
    /// @notice A hard-coded cap on time buffer to prevent accidental auction disabling if set with a very high value.
    uint56 public constant MAX_TIME_BUFFER = 1 days;

    /// @notice The Nouns ERC721 token contract
    INounsToken public immutable nouns;

    /// @notice The address of the WETH contract
    address public immutable weth;

    /// @notice The duration of a single auction
    uint256 public immutable duration;

    /// @notice The minimum price accepted in an auction
    uint192 public reservePrice;

    /// @notice The minimum amount of time left in an auction after a new bid is created
    uint56 public timeBuffer;

    /// @notice The minimum percentage difference between the last bid amount and the current bid
    uint8 public minBidIncrementPercentage;

    /// @notice The active auction
    INounsAuctionHouseV2.AuctionV2 public auctionStorage;

    /// @notice The Nouns price feed state
    mapping(uint256 => SettlementState) settlementHistory;

    constructor(INounsToken _nouns, address _weth, uint256 _duration) initializer {
        nouns = _nouns;
        weth = _weth;
        duration = _duration;
    }

    /**
     * @notice Initialize the auction house and base contracts,
     * populate configuration values, and pause the contract.
     * @dev This function can only be called once.
     */
    function initialize(
        uint192 _reservePrice,
        uint56 _timeBuffer,
        uint8 _minBidIncrementPercentage
    ) external initializer {
        __Pausable_init();
        __ReentrancyGuard_init();
        __Ownable_init();

        _pause();

        reservePrice = _reservePrice;
        timeBuffer = _timeBuffer;
        minBidIncrementPercentage = _minBidIncrementPercentage;
    }

    /**
     * @notice Settle the current auction, mint a new Noun, and put it up for auction.
     */
    function settleCurrentAndCreateNewAuction() external override whenNotPaused {
        _settleAuction();
        _createAuction();
    }

    /**
     * @notice Settle the current auction.
     * @dev This function can only be called when the contract is paused.
     */
    function settleAuction() external override whenPaused {
        _settleAuction();
    }

    /**
     * @notice Create a bid for a Noun, with a given amount.
     * @dev This contract only accepts payment in ETH.
     */
    function createBid(uint256 nounId) external payable override {
        createBid(nounId, 0);
    }

    /**
     * @notice Create a bid for a Noun, with a given amount.
     * @param nounId id of the Noun to bid on
     * @param clientId the client which facilitate this action
     * @dev This contract only accepts payment in ETH.
     */
    function createBid(uint256 nounId, uint32 clientId) public payable override {
        INounsAuctionHouseV2.AuctionV2 memory _auction = auctionStorage;

        (uint192 _reservePrice, uint56 _timeBuffer, uint8 _minBidIncrementPercentage) = (
            reservePrice,
            timeBuffer,
            minBidIncrementPercentage
        );

        require(_auction.nounId == nounId, 'Noun not up for auction');
        require(block.timestamp < _auction.endTime, 'Auction expired');
        require(msg.value >= _reservePrice, 'Must send at least reservePrice');
        require(
            msg.value >= _auction.amount + ((_auction.amount * _minBidIncrementPercentage) / 100),
            'Must send more than last bid by minBidIncrementPercentage amount'
        );

        auctionStorage.clientId = clientId;
        auctionStorage.amount = uint128(msg.value);
        auctionStorage.bidder = payable(msg.sender);

        // Extend the auction if the bid was received within `timeBuffer` of the auction end time
        bool extended = _auction.endTime - block.timestamp < _timeBuffer;

        emit AuctionBid(_auction.nounId, msg.sender, msg.value, extended);
        if (clientId > 0) emit AuctionBidWithClientId(_auction.nounId, msg.value, clientId);

        if (extended) {
            auctionStorage.endTime = _auction.endTime = uint40(block.timestamp + _timeBuffer);
            emit AuctionExtended(_auction.nounId, _auction.endTime);
        }

        address payable lastBidder = _auction.bidder;

        // Refund the last bidder, if applicable
        if (lastBidder != address(0)) {
            _safeTransferETHWithFallback(lastBidder, _auction.amount);
        }
    }

    /**
     * @notice Get the current auction.
     */
    function auction() external view returns (AuctionV2View memory) {
        return
            AuctionV2View({
                nounId: auctionStorage.nounId,
                amount: auctionStorage.amount,
                startTime: auctionStorage.startTime,
                endTime: auctionStorage.endTime,
                bidder: auctionStorage.bidder,
                settled: auctionStorage.settled
            });
    }

    /**
     * @notice Pause the Nouns auction house.
     * @dev This function can only be called by the owner when the
     * contract is unpaused. While no new auctions can be started when paused,
     * anyone can settle an ongoing auction.
     */
    function pause() external override onlyOwner {
        _pause();
    }

    /**
     * @notice Unpause the Nouns auction house.
     * @dev This function can only be called by the owner when the
     * contract is paused. If required, this function will start a new auction.
     */
    function unpause() external override onlyOwner {
        _unpause();

        if (auctionStorage.startTime == 0 || auctionStorage.settled) {
            _createAuction();
        }
    }

    /**
     * @notice Set the auction time buffer.
     * @dev Only callable by the owner.
     */
    function setTimeBuffer(uint56 _timeBuffer) external override onlyOwner {
        require(_timeBuffer <= MAX_TIME_BUFFER, 'timeBuffer too large');

        timeBuffer = _timeBuffer;

        emit AuctionTimeBufferUpdated(_timeBuffer);
    }

    /**
     * @notice Set the auction reserve price.
     * @dev Only callable by the owner.
     */
    function setReservePrice(uint192 _reservePrice) external override onlyOwner {
        reservePrice = _reservePrice;

        emit AuctionReservePriceUpdated(_reservePrice);
    }

    /**
     * @notice Set the auction minimum bid increment percentage.
     * @dev Only callable by the owner.
     */
    function setMinBidIncrementPercentage(uint8 _minBidIncrementPercentage) external override onlyOwner {
        require(_minBidIncrementPercentage > 0, 'must be greater than zero');

        minBidIncrementPercentage = _minBidIncrementPercentage;

        emit AuctionMinBidIncrementPercentageUpdated(_minBidIncrementPercentage);
    }

    /**
     * @notice Create an auction.
     * @dev Store the auction details in the `auction` state variable and emit an AuctionCreated event.
     * If the mint reverts, the minter was updated without pausing this contract first. To remedy this,
     * catch the revert and pause this contract.
     */
    function _createAuction() internal {
        try nouns.mint() returns (uint256 nounId) {
            uint40 startTime = uint40(block.timestamp);
            uint40 endTime = startTime + uint40(duration);

            auctionStorage = AuctionV2({
                nounId: uint96(nounId),
                clientId: 0,
                amount: 0,
                startTime: startTime,
                endTime: endTime,
                bidder: payable(0),
                settled: false
            });

            emit AuctionCreated(nounId, startTime, endTime);
        } catch Error(string memory) {
            _pause();
        }
    }

    /**
     * @notice Settle an auction, finalizing the bid and paying out to the owner.
     * @dev If there are no bids, the Noun is burned.
     */
    function _settleAuction() internal {
        INounsAuctionHouseV2.AuctionV2 memory _auction = auctionStorage;

        require(_auction.startTime != 0, "Auction hasn't begun");
        require(!_auction.settled, 'Auction has already been settled');
        require(block.timestamp >= _auction.endTime, "Auction hasn't completed");

        auctionStorage.settled = true;

        if (_auction.bidder == address(0)) {
            nouns.burn(_auction.nounId);
        } else {
            nouns.transferFrom(address(this), _auction.bidder, _auction.nounId);
        }

        if (_auction.amount > 0) {
            _safeTransferETHWithFallback(owner(), _auction.amount);
        }

        SettlementState storage settlementState = settlementHistory[_auction.nounId];
        settlementState.blockTimestamp = uint32(block.timestamp);
        settlementState.amount = ethPriceToUint64(_auction.amount);
        settlementState.winner = _auction.bidder;
        if (_auction.clientId > 0) settlementState.clientId = _auction.clientId;

        emit AuctionSettled(_auction.nounId, _auction.bidder, _auction.amount);
        if (_auction.clientId > 0) emit AuctionSettledWithClientId(_auction.nounId, _auction.clientId);
    }

    /**
     * @notice Transfer ETH. If the ETH transfer fails, wrap the ETH and try send it as WETH.
     */
    function _safeTransferETHWithFallback(address to, uint256 amount) internal {
        if (!_safeTransferETH(to, amount)) {
            IWETH(weth).deposit{ value: amount }();
            IERC20(weth).transfer(to, amount);
        }
    }

    /**
     * @notice Transfer ETH and return the success status.
     * @dev This function only forwards 30,000 gas to the callee.
     */
    function _safeTransferETH(address to, uint256 value) internal returns (bool) {
        bool success;
        assembly {
            success := call(30000, to, value, 0, 0, 0, 0)
        }
        return success;
    }

    /**
     * @notice Set historic prices; only callable by the owner, which in Nouns is the treasury (timelock) contract.
     * @dev This function lowers auction price accuracy from 18 decimals to 10 decimals, as part of the price history
     * bit packing, to save gas.
     * @param settlements The list of historic prices to set.
     */
    function setPrices(SettlementNoClientId[] memory settlements) external onlyOwner {
        for (uint256 i = 0; i < settlements.length; ++i) {
            SettlementState storage settlementState = settlementHistory[settlements[i].nounId];
            settlementState.blockTimestamp = settlements[i].blockTimestamp;
            settlementState.amount = ethPriceToUint64(settlements[i].amount);
            settlementState.winner = settlements[i].winner;
        }
    }

    /**
     * @notice Warm up the settlement state for a range of Noun IDs.
     * @dev Helps lower the gas cost of auction settlement when storing settlement data
     * thanks to the state slot being non-zero.
     * @dev Only writes to slots where blockTimestamp is zero, meaning it will not overwrite existing data.
     * @dev Skips Nounder reward nouns.
     * @param startId the first Noun ID to warm up.
     * @param endId end Noun ID (up to, but not including).
     */
    function warmUpSettlementState(uint256 startId, uint256 endId) external {
        for (uint256 i = startId; i < endId; ++i) {
            // Skipping Nounder rewards, no need to warm up those slots since they are never used.
            if (i <= 1820 && i % 10 == 0) continue;

            SettlementState storage settlementState = settlementHistory[i];
            if (settlementState.blockTimestamp == 0) {
                settlementState.blockTimestamp = 1;
                settlementState.slotWarmedUp = true;
            }
        }
    }

    /**
     * @notice Get past auction settlements.
     * @dev Returns up to `auctionCount` settlements in reverse order, meaning settlements[0] will be the most recent auction price.
     * Includes auctions with no bids (blockTimestamp will be > 1)
     * @param auctionCount The number of price observations to get.
     * @param skipEmptyValues if true, skips nounder reward ids and ids with missing data
     * @return settlements An array of type `Settlement`, where each Settlement includes a timestamp,
     * the Noun ID of that auction, the winning bid amount, and the winner's address.
     */
    function getSettlements(
        uint256 auctionCount,
        bool skipEmptyValues
    ) external view returns (Settlement[] memory settlements) {
        uint256 latestNounId = auctionStorage.nounId;
        if (!auctionStorage.settled && latestNounId > 0) {
            latestNounId -= 1;
        }

        settlements = new Settlement[](auctionCount);
        uint256 actualCount = 0;

        SettlementState memory settlementState;
        for (uint256 id = latestNounId; actualCount < auctionCount; --id) {
            settlementState = settlementHistory[id];

            if (skipEmptyValues && settlementState.blockTimestamp <= 1) {
                if (id == 0) break;
                continue;
            }

            settlements[actualCount] = Settlement({
                blockTimestamp: settlementState.blockTimestamp,
                amount: uint64PriceToUint256(settlementState.amount),
                winner: settlementState.winner,
                nounId: id,
                clientId: settlementState.clientId
            });
            ++actualCount;

            if (id == 0) break;
        }

        if (auctionCount > actualCount) {
            // this assembly trims the observations array, getting rid of unused cells
            assembly {
                mstore(settlements, actualCount)
            }
        }
    }

    /**
     * @notice Get past auction prices.
     * @dev Returns prices in reverse order, meaning prices[0] will be the most recent auction price.
     * Skips auctions where there was no winner, i.e. no bids.
     * Skips nounder rewards noun ids.
     * Reverts if getting a empty data for an auction that happened, e.g. historic data not filled
     * Reverts if there's not enough auction data, i.e. reached noun id 0
     * @param auctionCount The number of price observations to get.
     * @return prices An array of uint256 prices.
     */
    function getPrices(uint256 auctionCount) external view returns (uint256[] memory prices) {
        uint256 latestNounId = auctionStorage.nounId;
        if (!auctionStorage.settled && latestNounId > 0) {
            latestNounId -= 1;
        }

        prices = new uint256[](auctionCount);
        uint256 actualCount = 0;

        SettlementState memory settlementState;
        for (uint256 id = latestNounId; id > 0 && actualCount < auctionCount; --id) {
            if (id <= 1820 && id % 10 == 0) continue; // Skip Nounder reward nouns

            settlementState = settlementHistory[id];
            require(settlementState.blockTimestamp > 1, 'Missing data');
            if (settlementState.winner == address(0)) continue; // Skip auctions with no bids

            prices[actualCount] = uint64PriceToUint256(settlementState.amount);
            ++actualCount;
        }

        require(auctionCount == actualCount, 'Not enough history');
    }

    /**
     * @notice Get all past auction settlements starting at `startId` and settled before or at `endTimestamp`.
     * @param startId the first Noun ID to get prices for.
     * @param endTimestamp the latest timestamp for auctions
     * @param skipEmptyValues if true, skips nounder reward ids and ids with missing data
     * @return settlements An array of type `Settlement`, where each Settlement includes a timestamp,
     * the Noun ID of that auction, the winning bid amount, and the winner's address.
     */
    function getSettlementsFromIdtoTimestamp(
        uint256 startId,
        uint256 endTimestamp,
        bool skipEmptyValues
    ) public view returns (Settlement[] memory settlements) {
        uint256 maxId = auctionStorage.nounId;
        require(startId <= maxId, 'startId too large');
        settlements = new Settlement[](maxId - startId + 1);
        uint256 actualCount = 0;
        SettlementState memory settlementState;
        for (uint256 id = startId; id <= maxId; ++id) {
            settlementState = settlementHistory[id];

            if (skipEmptyValues && settlementState.blockTimestamp <= 1) continue;

            // don't include the currently auctioned noun if it hasn't settled
            if ((id == maxId) && (settlementState.blockTimestamp <= 1)) continue;

            if (settlementState.blockTimestamp > endTimestamp) break;

            settlements[actualCount] = Settlement({
                blockTimestamp: settlementState.blockTimestamp,
                amount: uint64PriceToUint256(settlementState.amount),
                winner: settlementState.winner,
                nounId: id,
                clientId: settlementState.clientId
            });
            ++actualCount;
        }

        if (settlements.length > actualCount) {
            // this assembly trims the settlements array, getting rid of unused cells
            assembly {
                mstore(settlements, actualCount)
            }
        }
    }

    /**
     * @notice Get a range of past auction settlements.
     * @dev Returns prices in chronological order, as opposed to `getSettlements(count)` which returns prices in reverse order.
     * Includes auctions with no bids (blockTimestamp will be > 1)
     * @param startId the first Noun ID to get prices for.
     * @param endId end Noun ID (up to, but not including).
     * @param skipEmptyValues if true, skips nounder reward ids and ids with missing data
     * @return settlements An array of type `Settlement`, where each Settlement includes a timestamp,
     * the Noun ID of that auction, the winning bid amount, and the winner's address.
     */
    function getSettlements(
        uint256 startId,
        uint256 endId,
        bool skipEmptyValues
    ) external view returns (Settlement[] memory settlements) {
        settlements = new Settlement[](endId - startId);
        uint256 actualCount = 0;

        SettlementState memory settlementState;
        for (uint256 id = startId; id < endId; ++id) {
            settlementState = settlementHistory[id];

            if (skipEmptyValues && settlementState.blockTimestamp <= 1) continue;

            settlements[actualCount] = Settlement({
                blockTimestamp: settlementState.blockTimestamp,
                amount: uint64PriceToUint256(settlementState.amount),
                winner: settlementState.winner,
                nounId: id,
                clientId: settlementState.clientId
            });
            ++actualCount;
        }

        if (settlements.length > actualCount) {
            // this assembly trims the settlements array, getting rid of unused cells
            assembly {
                mstore(settlements, actualCount)
            }
        }
    }

    /***
     * @notice Get the client ID that facilitated the winning bid for a Noun. Returns 0 if there is no settlement data
     * for the Noun in question, or if the winning bid was not facilitated by a registered client.
     */
    function biddingClient(uint256 nounId) external view returns (uint32) {
        return settlementHistory[nounId].clientId;
    }

    /**
     * @dev Convert an ETH price of 256 bits with 18 decimals, to 64 bits with 10 decimals.
     * Max supported value is 1844674407.3709551615 ETH.
     *
     */
    function ethPriceToUint64(uint256 ethPrice) internal pure returns (uint64) {
        return uint64(ethPrice / 1e8);
    }

    /**
     * @dev Convert a 64 bit 10 decimal price to a 256 bit 18 decimal price.
     */
    function uint64PriceToUint256(uint64 price) internal pure returns (uint256) {
        return uint256(price) * 1e8;
    }
}

File 2 of 14 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal initializer {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal initializer {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

File 3 of 14 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    function __ReentrancyGuard_init() internal initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
    uint256[49] private __gap;
}

File 4 of 14 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
    uint256[49] private __gap;
}

File 5 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 6 of 14 : INounsAuctionHouseV2.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for Noun Auction Houses V2

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.19;

interface INounsAuctionHouseV2 {
    struct AuctionV2 {
        // ID for the Noun (ERC721 token ID)
        uint96 nounId;
        // ID of the client that facilitated the latest bid, used for client rewards
        uint32 clientId;
        // The current highest bid amount
        uint128 amount;
        // The time that the auction started
        uint40 startTime;
        // The time that the auction is scheduled to end
        uint40 endTime;
        // The address of the current highest bid
        address payable bidder;
        // Whether or not the auction has been settled
        bool settled;
    }

    /// @dev We use this struct as the return value of the `auction` function, to maintain backwards compatibility.
    struct AuctionV2View {
        // ID for the Noun (ERC721 token ID)
        uint96 nounId;
        // The current highest bid amount
        uint128 amount;
        // The time that the auction started
        uint40 startTime;
        // The time that the auction is scheduled to end
        uint40 endTime;
        // The address of the current highest bid
        address payable bidder;
        // Whether or not the auction has been settled
        bool settled;
    }

    struct SettlementState {
        // The block.timestamp when the auction was settled.
        uint32 blockTimestamp;
        // The winning bid amount, with 10 decimal places (reducing accuracy to save bits).
        uint64 amount;
        // The address of the auction winner.
        address winner;
        // ID of the client that facilitated the winning bid, used for client rewards.
        uint32 clientId;
        // Used only to warm up the storage slot for clientId without setting the clientId value.
        bool slotWarmedUp;
    }

    struct Settlement {
        // The block.timestamp when the auction was settled.
        uint32 blockTimestamp;
        // The winning bid amount, converted from 10 decimal places to 18, for better client UX.
        uint256 amount;
        // The address of the auction winner.
        address winner;
        // ID for the Noun (ERC721 token ID).
        uint256 nounId;
        // ID of the client that facilitated the winning bid, used for client rewards
        uint32 clientId;
    }

    /// @dev Using this struct when setting historic prices, and excluding clientId to save gas.
    struct SettlementNoClientId {
        // The block.timestamp when the auction was settled.
        uint32 blockTimestamp;
        // The winning bid amount, converted from 10 decimal places to 18, for better client UX.
        uint256 amount;
        // The address of the auction winner.
        address winner;
        // ID for the Noun (ERC721 token ID).
        uint256 nounId;
    }

    event AuctionCreated(uint256 indexed nounId, uint256 startTime, uint256 endTime);

    event AuctionBid(uint256 indexed nounId, address sender, uint256 value, bool extended);

    event AuctionBidWithClientId(uint256 indexed nounId, uint256 value, uint32 indexed clientId);

    event AuctionExtended(uint256 indexed nounId, uint256 endTime);

    event AuctionSettled(uint256 indexed nounId, address winner, uint256 amount);

    event AuctionSettledWithClientId(uint256 indexed nounId, uint32 indexed clientId);

    event AuctionTimeBufferUpdated(uint256 timeBuffer);

    event AuctionReservePriceUpdated(uint256 reservePrice);

    event AuctionMinBidIncrementPercentageUpdated(uint256 minBidIncrementPercentage);

    function settleAuction() external;

    function settleCurrentAndCreateNewAuction() external;

    function createBid(uint256 nounId) external payable;

    function createBid(uint256 nounId, uint32 clientId) external payable;

    function pause() external;

    function unpause() external;

    function setTimeBuffer(uint56 timeBuffer) external;

    function setReservePrice(uint192 reservePrice) external;

    function setMinBidIncrementPercentage(uint8 minBidIncrementPercentage) external;

    function auction() external view returns (AuctionV2View memory);

    function getSettlements(
        uint256 auctionCount,
        bool skipEmptyValues
    ) external view returns (Settlement[] memory settlements);

    function getPrices(uint256 auctionCount) external view returns (uint256[] memory prices);

    function getSettlements(
        uint256 startId,
        uint256 endId,
        bool skipEmptyValues
    ) external view returns (Settlement[] memory settlements);

    function getSettlementsFromIdtoTimestamp(
        uint256 startId,
        uint256 endTimestamp,
        bool skipEmptyValues
    ) external view returns (Settlement[] memory settlements);

    function warmUpSettlementState(uint256 startId, uint256 endId) external;

    function duration() external view returns (uint256);

    function biddingClient(uint256 nounId) external view returns (uint32 clientId);
}

File 7 of 14 : INounsToken.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsToken

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.6;

import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import { INounsDescriptorMinimal } from './INounsDescriptorMinimal.sol';
import { INounsSeeder } from './INounsSeeder.sol';

interface INounsToken is IERC721 {
    event NounCreated(uint256 indexed tokenId, INounsSeeder.Seed seed);

    event NounBurned(uint256 indexed tokenId);

    event NoundersDAOUpdated(address noundersDAO);

    event MinterUpdated(address minter);

    event MinterLocked();

    event DescriptorUpdated(INounsDescriptorMinimal descriptor);

    event DescriptorLocked();

    event SeederUpdated(INounsSeeder seeder);

    event SeederLocked();

    function mint() external returns (uint256);

    function burn(uint256 tokenId) external;

    function dataURI(uint256 tokenId) external returns (string memory);

    function setMinter(address minter) external;

    function lockMinter() external;

    function setDescriptor(INounsDescriptorMinimal descriptor) external;

    function lockDescriptor() external;

    function setSeeder(INounsSeeder seeder) external;

    function lockSeeder() external;
}

File 8 of 14 : IWETH.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.6;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256 wad) external;

    function transfer(address to, uint256 value) external returns (bool);
}

File 9 of 14 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

File 10 of 14 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 11 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 12 of 14 : INounsDescriptorMinimal.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Common interface for NounsDescriptor versions, as used by NounsToken and NounsSeeder.

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.6;

import { INounsSeeder } from './INounsSeeder.sol';

interface INounsDescriptorMinimal {
    ///
    /// USED BY TOKEN
    ///

    function tokenURI(uint256 tokenId, INounsSeeder.Seed memory seed) external view returns (string memory);

    function dataURI(uint256 tokenId, INounsSeeder.Seed memory seed) external view returns (string memory);

    ///
    /// USED BY SEEDER
    ///

    function backgroundCount() external view returns (uint256);

    function bodyCount() external view returns (uint256);

    function accessoryCount() external view returns (uint256);

    function headCount() external view returns (uint256);

    function glassesCount() external view returns (uint256);
}

File 13 of 14 : INounsSeeder.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for NounsSeeder

/*********************************
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░██░░░████░░██░░░████░░░ *
 * ░░██████░░░████████░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░██░░██░░░████░░██░░░████░░░ *
 * ░░░░░░█████████░░█████████░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ *
 *********************************/

pragma solidity ^0.8.6;

import { INounsDescriptorMinimal } from './INounsDescriptorMinimal.sol';

interface INounsSeeder {
    struct Seed {
        uint48 background;
        uint48 body;
        uint48 accessory;
        uint48 head;
        uint48 glasses;
    }

    function generateSeed(uint256 nounId, INounsDescriptorMinimal descriptor) external view returns (Seed memory);
}

File 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@ensdomains/=../../node_modules/@ensdomains/",
    "@openzeppelin/=../../node_modules/@openzeppelin/",
    "base64-sol/=../../node_modules/base64-sol/",
    "eth-gas-reporter/=../../node_modules/eth-gas-reporter/",
    "hardhat/=../../node_modules/hardhat/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract INounsToken","name":"_nouns","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nounId","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bool","name":"extended","type":"bool"}],"name":"AuctionBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nounId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"uint32","name":"clientId","type":"uint32"}],"name":"AuctionBidWithClientId","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nounId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"AuctionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nounId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"AuctionExtended","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minBidIncrementPercentage","type":"uint256"}],"name":"AuctionMinBidIncrementPercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reservePrice","type":"uint256"}],"name":"AuctionReservePriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nounId","type":"uint256"},{"indexed":false,"internalType":"address","name":"winner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AuctionSettled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nounId","type":"uint256"},{"indexed":true,"internalType":"uint32","name":"clientId","type":"uint32"}],"name":"AuctionSettledWithClientId","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timeBuffer","type":"uint256"}],"name":"AuctionTimeBufferUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_TIME_BUFFER","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auction","outputs":[{"components":[{"internalType":"uint96","name":"nounId","type":"uint96"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint40","name":"startTime","type":"uint40"},{"internalType":"uint40","name":"endTime","type":"uint40"},{"internalType":"address payable","name":"bidder","type":"address"},{"internalType":"bool","name":"settled","type":"bool"}],"internalType":"struct INounsAuctionHouseV2.AuctionV2View","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"auctionStorage","outputs":[{"internalType":"uint96","name":"nounId","type":"uint96"},{"internalType":"uint32","name":"clientId","type":"uint32"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint40","name":"startTime","type":"uint40"},{"internalType":"uint40","name":"endTime","type":"uint40"},{"internalType":"address payable","name":"bidder","type":"address"},{"internalType":"bool","name":"settled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nounId","type":"uint256"}],"name":"biddingClient","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nounId","type":"uint256"}],"name":"createBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nounId","type":"uint256"},{"internalType":"uint32","name":"clientId","type":"uint32"}],"name":"createBid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionCount","type":"uint256"}],"name":"getPrices","outputs":[{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionCount","type":"uint256"},{"internalType":"bool","name":"skipEmptyValues","type":"bool"}],"name":"getSettlements","outputs":[{"components":[{"internalType":"uint32","name":"blockTimestamp","type":"uint32"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint256","name":"nounId","type":"uint256"},{"internalType":"uint32","name":"clientId","type":"uint32"}],"internalType":"struct INounsAuctionHouseV2.Settlement[]","name":"settlements","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endId","type":"uint256"},{"internalType":"bool","name":"skipEmptyValues","type":"bool"}],"name":"getSettlements","outputs":[{"components":[{"internalType":"uint32","name":"blockTimestamp","type":"uint32"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint256","name":"nounId","type":"uint256"},{"internalType":"uint32","name":"clientId","type":"uint32"}],"internalType":"struct INounsAuctionHouseV2.Settlement[]","name":"settlements","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endTimestamp","type":"uint256"},{"internalType":"bool","name":"skipEmptyValues","type":"bool"}],"name":"getSettlementsFromIdtoTimestamp","outputs":[{"components":[{"internalType":"uint32","name":"blockTimestamp","type":"uint32"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint256","name":"nounId","type":"uint256"},{"internalType":"uint32","name":"clientId","type":"uint32"}],"internalType":"struct INounsAuctionHouseV2.Settlement[]","name":"settlements","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint192","name":"_reservePrice","type":"uint192"},{"internalType":"uint56","name":"_timeBuffer","type":"uint56"},{"internalType":"uint8","name":"_minBidIncrementPercentage","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minBidIncrementPercentage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nouns","outputs":[{"internalType":"contract INounsToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservePrice","outputs":[{"internalType":"uint192","name":"","type":"uint192"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_minBidIncrementPercentage","type":"uint8"}],"name":"setMinBidIncrementPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint32","name":"blockTimestamp","type":"uint32"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"winner","type":"address"},{"internalType":"uint256","name":"nounId","type":"uint256"}],"internalType":"struct INounsAuctionHouseV2.SettlementNoClientId[]","name":"settlements","type":"tuple[]"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint192","name":"_reservePrice","type":"uint192"}],"name":"setReservePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint56","name":"_timeBuffer","type":"uint56"}],"name":"setTimeBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settleAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settleCurrentAndCreateNewAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timeBuffer","outputs":[{"internalType":"uint56","name":"","type":"uint56"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"endId","type":"uint256"}],"name":"warmUpSettlementState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040523480156200001157600080fd5b506040516200302438038062003024833981016040819052620000349162000127565b600054610100900460ff16806200004e575060005460ff16155b620000b65760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015620000d9576000805461ffff19166101011790555b6001600160a01b03808516608052831660a05260c0829052801562000104576000805461ff00191690555b505050506200016f565b6001600160a01b03811681146200012457600080fd5b50565b6000806000606084860312156200013d57600080fd5b83516200014a816200010e565b60208501519093506200015d816200010e565b80925050604084015190509250925092565b60805160a05160c051612e5b620001c96000396000818161023c0152611ca40152600081816102ff0152818161243e01526124d301526000818161027e01528181611be30152818161217201526122170152612e5b6000f3fe6080604052600436106101cd5760003560e01c80638da5cb5b116100f7578063af64dd3011610095578063db2e1eed11610064578063db2e1eed14610768578063ec91f2a4146107a0578063f25efffc146107c7578063f2fde38b146107dc57600080fd5b8063af64dd30146106d5578063b1296a94146106f5578063b296024d14610715578063c0555d981461074857600080fd5b80639903cce6116100d15780639903cce61461066d578063a4d0a17e1461068d578063a94dd8a0146106a2578063abbfb786146106c257600080fd5b80638da5cb5b1461054b5780639149295614610569578063945c37cb1461059657600080fd5b80635112fabf1161016f578063715018a61161013e578063715018a6146103c25780637d9f6db5146103d75780638456cb591461050757806385317a291461051c57600080fd5b80635112fabf146103215780635c975abb14610341578063659dd2b4146103645780636dd83b5d1461037757600080fd5b80632de45f18116101ab5780632de45f181461026c57806336ebdb38146102b85780633f4ba83a146102d85780633fc8cef3146102ed57600080fd5b806309b85709146101d25780630ba4e9ea146102085780630fb5a6b41461022a575b600080fd5b3480156101de57600080fd5b506101f26101ed366004612746565b6107fc565b6040516101ff919061277f565b60405180910390f35b34801561021457600080fd5b5061022861022336600461281b565b610a4f565b005b34801561023657600080fd5b5061025e7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016101ff565b34801561027857600080fd5b506102a07f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101ff565b3480156102c457600080fd5b506102286102d336600461284e565b610b2d565b3480156102e457600080fd5b50610228610bfa565b3480156102f957600080fd5b506102a07f000000000000000000000000000000000000000000000000000000000000000081565b34801561032d57600080fd5b5061022861033c366004612869565b610c5a565b34801561034d57600080fd5b5060335460ff1660405190151581526020016101ff565b61022861037236600461288b565b610cd6565b34801561038357600080fd5b506103ad61039236600461288b565b600090815260cc602052604090206001015463ffffffff1690565b60405163ffffffff90911681526020016101ff565b3480156103ce57600080fd5b50610228610ce4565b3480156103e357600080fd5b506104946040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c08101825260ca546001600160601b0381168252600160801b90046001600160801b0316602082015260cb5464ffffffffff80821693830193909352600160281b81049092166060820152600160501b82046001600160a01b03166080820152600160f01b90910460ff16151560a082015290565b6040516101ff919081516001600160601b031681526020808301516001600160801b03169082015260408083015164ffffffffff90811691830191909152606080840151909116908201526080808301516001600160a01b03169082015260a09182015115159181019190915260c00190565b34801561051357600080fd5b50610228610d18565b34801561052857600080fd5b506105336201518081565b60405166ffffffffffffff90911681526020016101ff565b34801561055757600080fd5b506097546001600160a01b03166102a0565b34801561057557600080fd5b5061058961058436600461288b565b610d4a565b6040516101ff91906128a4565b3480156105a257600080fd5b5060ca5460cb5461060a916001600160601b03811691600160601b820463ffffffff1691600160801b90046001600160801b03169064ffffffffff80821691600160281b810490911690600160501b81046001600160a01b031690600160f01b900460ff1687565b604080516001600160601b03909816885263ffffffff90961660208801526001600160801b039094169486019490945264ffffffffff91821660608601521660808401526001600160a01b0390911660a0830152151560c082015260e0016101ff565b34801561067957600080fd5b506102286106883660046128ff565b610f61565b34801561069957600080fd5b50610228611032565b3480156106ae57600080fd5b506102286106bd3660046129d4565b611083565b6102286106d0366004612ac8565b6111c0565b3480156106e157600080fd5b506101f26106f0366004612af4565b611602565b34801561070157600080fd5b506101f2610710366004612746565b61180b565b34801561072157600080fd5b5060c95461073690600160f81b900460ff1681565b60405160ff90911681526020016101ff565b34801561075457600080fd5b50610228610763366004612b24565b6119c9565b34801561077457600080fd5b5060c954610788906001600160c01b031681565b6040516001600160c01b0390911681526020016101ff565b3480156107ac57600080fd5b5060c95461053390600160c01b900466ffffffffffffff1681565b3480156107d357600080fd5b50610228611a41565b3480156107e857600080fd5b506102286107f7366004612b3f565b611a97565b60ca546060906001600160601b0316808511156108545760405162461bcd60e51b81526020600482015260116024820152707374617274496420746f6f206c6172676560781b60448201526064015b60405180910390fd5b61085e8582612b70565b610869906001612b83565b6001600160401b0381111561088057610880612942565b6040519080825280602002602001820160405280156108d957816020015b6040805160a08101825260008082526020808301829052928201819052606082018190526080820152825260001990920191018161089e5790505b50915060006108e661270a565b865b838111610a3757600081815260cc6020908152604091829020825160a081018452815463ffffffff8082168352600160201b8083046001600160401b031695840195909552600160601b9091046001600160a01b0316948201949094526001909101549283166060820152910460ff1615156080820152915085801561097957506001826000015163ffffffff1611155b610a2757838114801561099757506001826000015163ffffffff1611155b610a2757815163ffffffff168710610a37576040518060a00160405280836000015163ffffffff1681526020016109d18460200151611b2f565b815260200183604001516001600160a01b03168152602001828152602001836060015163ffffffff16815250858481518110610a0f57610a0f612b96565b602002602001018190525082610a2490612bac565b92505b610a3081612bac565b90506108e8565b508184511115610a45578184525b5050509392505050565b6097546001600160a01b03163314610a795760405162461bcd60e51b815260040161084b90612bc5565b6201518066ffffffffffffff82161115610acc5760405162461bcd60e51b815260206004820152601460248201527374696d6542756666657220746f6f206c6172676560601b604482015260640161084b565b60c9805466ffffffffffffff60c01b1916600160c01b66ffffffffffffff8416908102919091179091556040519081527f1b55d9f7002bda4490f467e326f22a4a847629c0f2d1ed421607d318d25b410d906020015b60405180910390a150565b6097546001600160a01b03163314610b575760405162461bcd60e51b815260040161084b90612bc5565b60008160ff1611610baa5760405162461bcd60e51b815260206004820152601960248201527f6d7573742062652067726561746572207468616e207a65726f00000000000000604482015260640161084b565b60c980546001600160f81b0316600160f81b60ff8416908102919091179091556040519081527fec5ccd96cc77b6219e9d44143df916af68fc169339ea7de5008ff15eae13450d90602001610b22565b6097546001600160a01b03163314610c245760405162461bcd60e51b815260040161084b90612bc5565b610c2c611b4e565b60cb5464ffffffffff161580610c4b575060cb54600160f01b900460ff165b15610c5857610c58611be1565b565b815b81811015610cd15761071c8111158015610c7e5750610c7c600a82612c10565b155b610cc957600081815260cc602052604081208054909163ffffffff9091169003610cc757805463ffffffff1916600190811782558101805464ff000000001916600160201b1790555b505b600101610c5c565b505050565b610ce18160006111c0565b50565b6097546001600160a01b03163314610d0e5760405162461bcd60e51b815260040161084b90612bc5565b610c586000611da0565b6097546001600160a01b03163314610d425760405162461bcd60e51b815260040161084b90612bc5565b610c58611df2565b60ca5460cb546060916001600160601b031690600160f01b900460ff16158015610d745750600081115b15610d8757610d84600182612b70565b90505b826001600160401b03811115610d9f57610d9f612942565b604051908082528060200260200182016040528015610dc8578160200160208202803683370190505b5091506000610dd561270a565b825b600081118015610de657508583105b15610f145761071c8111158015610e055750610e03600a82612c10565b155b610f0457600081815260cc6020908152604091829020825160a081018452815463ffffffff808216808452600160201b8084046001600160401b031696850196909652600160601b9092046001600160a01b03169583019590955260019283015494851660608301529290930460ff161515608084015291935011610ebb5760405162461bcd60e51b815260206004820152600c60248201526b4d697373696e67206461746160a01b604482015260640161084b565b60408201516001600160a01b031615610f0457610edb8260200151611b2f565b858481518110610eed57610eed612b96565b6020908102919091010152610f0183612bac565b92505b610f0d81612c24565b9050610dd7565b50818514610f595760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820686973746f727960701b604482015260640161084b565b505050919050565b600054610100900460ff1680610f7a575060005460ff16155b610f965760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015610fb8576000805461ffff19166101011790555b610fc0611e6d565b610fc8611ee8565b610fd0611f47565b610fd8611df2565b60c980546001600160c01b0386166001600160f81b031990911617600160c01b66ffffffffffffff861602176001600160f81b0316600160f81b60ff851602179055801561102c576000805461ff00191690555b50505050565b60335460ff1661107b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084b565b610c58611fae565b6097546001600160a01b031633146110ad5760405162461bcd60e51b815260040161084b90612bc5565b60005b81518110156111bc57600060cc60008484815181106110d1576110d1612b96565b602002602001015160600151815260200190815260200160002090508282815181106110ff576110ff612b96565b602090810291909101015151815463ffffffff191663ffffffff90911617815582516111489084908490811061113757611137612b96565b60200260200101516020015161241e565b81546001600160401b0391909116600160201b026bffffffffffffffff0000000019909116178155825183908390811061118457611184612b96565b60209081029190910101516040015181546001600160a01b03909116600160601b026001600160601b039091161790556001016110b0565b5050565b6040805160e08101825260ca546001600160601b038116808352600160601b820463ffffffff166020840152600160801b9091046001600160801b03169282019290925260cb5464ffffffffff8082166060840152600160281b8204166080830152600160501b81046001600160a01b031660a0830152600160f01b900460ff908116151560c083015260c95491926001600160c01b03831692600160c01b810466ffffffffffffff1692600160f81b909104169086146112c35760405162461bcd60e51b815260206004820152601760248201527f4e6f756e206e6f7420757020666f722061756374696f6e000000000000000000604482015260640161084b565b836080015164ffffffffff16421061130f5760405162461bcd60e51b815260206004820152600f60248201526e105d58dd1a5bdb88195e1c1a5c9959608a1b604482015260640161084b565b826001600160c01b03163410156113685760405162461bcd60e51b815260206004820152601f60248201527f4d7573742073656e64206174206c656173742072657365727665507269636500604482015260640161084b565b60648160ff16856040015161137d9190612c89565b6113879190612cb4565b84604001516113969190612cda565b6001600160801b0316341015611416576040805162461bcd60e51b81526020600482015260248101919091527f4d7573742073656e64206d6f7265207468616e206c617374206269642062792060448201527f6d696e426964496e6372656d656e7450657263656e7461676520616d6f756e74606482015260840161084b565b60ca80546001600160601b0316600160601b63ffffffff8816026001600160801b0390811691909117600160801b349092169190910217905560cb80547fffff0000000000000000000000000000000000000000ffffffffffffffffffff1633600160501b02179055608084015160009066ffffffffffffff8416906114a490429064ffffffffff16612b70565b865160408051338152346020820152939092109183018290529092506001600160601b0316907f1159164c56f277e6fc99c11731bd380e0347deb969b75523398734c252706ea39060600160405180910390a263ffffffff86161561154b57845160405134815263ffffffff8816916001600160601b0316907f38e150a71033b4c9a3eeb9ebe568476f075a558e47171f3b5d715aa0cf6cd1b59060200160405180910390a35b80156115cd5761156466ffffffffffffff841642612b83565b64ffffffffff166080860181905260cb805469ffffffffff00000000001916600160281b830217905585516040519182526001600160601b0316907f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e9060200160405180910390a25b60a08501516001600160a01b038116156115f8576115f88187604001516001600160801b031661242e565b5050505050505050565b60ca5460cb546060916001600160601b031690600160f01b900460ff1615801561162c5750600081115b1561163f5761163c600182612b70565b90505b836001600160401b0381111561165757611657612942565b6040519080825280602002602001820160405280156116b057816020015b6040805160a0810182526000808252602080830182905292820181905260608201819052608082015282526000199092019101816116755790505b50915060006116bd61270a565b825b868310156117f557600081815260cc6020908152604091829020825160a081018452815463ffffffff8082168352600160201b8083046001600160401b031695840195909552600160601b9091046001600160a01b0316948201949094526001909101549283166060820152910460ff1615156080820152915085801561175157506001826000015163ffffffff1611155b156117615780156117f5576117e5565b6040518060a00160405280836000015163ffffffff1681526020016117898460200151611b2f565b815260200183604001516001600160a01b03168152602001828152602001836060015163ffffffff168152508584815181106117c7576117c7612b96565b6020026020010181905250826117dc90612bac565b925080156117f5575b6117ee81612c24565b90506116bf565b5081861115611802578184525b50505092915050565b60606118178484612b70565b6001600160401b0381111561182e5761182e612942565b60405190808252806020026020018201604052801561188757816020015b6040805160a08101825260008082526020808301829052928201819052606082018190526080820152825260001990920191018161184c5790505b509050600061189461270a565b855b858110156119b257600081815260cc6020908152604091829020825160a081018452815463ffffffff8082168352600160201b8083046001600160401b031695840195909552600160601b9091046001600160a01b0316948201949094526001909101549283166060820152910460ff1615156080820152915084801561192857506001826000015163ffffffff1611155b6119aa576040518060a00160405280836000015163ffffffff1681526020016119548460200151611b2f565b815260200183604001516001600160a01b03168152602001828152602001836060015163ffffffff1681525084848151811061199257611992612b96565b6020026020010181905250826119a790612bac565b92505b600101611896565b5081835111156119c0578183525b50509392505050565b6097546001600160a01b031633146119f35760405162461bcd60e51b815260040161084b90612bc5565b60c980546001600160c01b0319166001600160c01b0383169081179091556040519081527f6ab2e127d7fdf53b8f304e59d3aab5bfe97979f52a85479691a6fab27a28a6b290602001610b22565b60335460ff1615611a875760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084b565b611a8f611fae565b610c58611be1565b6097546001600160a01b03163314611ac15760405162461bcd60e51b815260040161084b90612bc5565b6001600160a01b038116611b265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084b565b610ce181611da0565b6000611b486001600160401b0383166305f5e100612d01565b92915050565b60335460ff16611b975760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084b565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631249c58b6040518163ffffffff1660e01b81526004016020604051808303816000875af1925050508015611c5d575060408051601f3d908101601f19168201909252611c5a91810190612d18565b60015b611c9c57611c69612d31565b806308c379a003611c905750611c7d612d4d565b80611c885750611c92565b610ce1611df2565b505b3d6000803e3d6000fd5b426000611cc97f000000000000000000000000000000000000000000000000000000000000000083612dd6565b6040805160e0810182526001600160601b0386168082526000602080840182905283850182905264ffffffffff888116606086018190529087166080860181905260a0860184905260c09095019290925260ca9290925560cb805469ffffffffffffffffffff19168217600160281b8502177fff000000000000000000000000000000000000000000ffffffffffffffffffff16905583519081529081019190915291925084917fd6eddd1118d71820909c1197aa966dbc15ed6f508554252169cc3d5ccac756ca910160405180910390a2505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60335460ff1615611e385760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084b565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bc43390565b600054610100900460ff1680611e86575060005460ff16155b611ea25760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611ec4576000805461ffff19166101011790555b611ecc612544565b611ed46125ae565b8015610ce1576000805461ff001916905550565b600054610100900460ff1680611f01575060005460ff16155b611f1d5760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611f3f576000805461ffff19166101011790555b611ed4612623565b600054610100900460ff1680611f60575060005460ff16155b611f7c5760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611f9e576000805461ffff19166101011790555b611fa6612544565b611ed4612693565b6040805160e08101825260ca546001600160601b0381168252600160601b810463ffffffff166020830152600160801b90046001600160801b03169181019190915260cb5464ffffffffff80821660608401819052600160281b83049091166080840152600160501b82046001600160a01b031660a0840152600160f01b90910460ff16151560c083015260000361207f5760405162461bcd60e51b815260206004820152601460248201527320bab1ba34b7b7103430b9b713ba103132b3bab760611b604482015260640161084b565b8060c00151156120d15760405162461bcd60e51b815260206004820181905260248201527f41756374696f6e2068617320616c7265616479206265656e20736574746c6564604482015260640161084b565b806080015164ffffffffff1642101561212c5760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e206861736e277420636f6d706c657465640000000000000000604482015260640161084b565b60cb805460ff60f01b1916600160f01b17905560a08101516001600160a01b03166121db578051604051630852cd8d60e31b81526001600160601b0390911660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c6890602401600060405180830381600087803b1580156121be57600080fd5b505af11580156121d2573d6000803e3d6000fd5b50505050612276565b60a081015181516040516323b872dd60e01b81523060048201526001600160a01b0392831660248201526001600160601b0390911660448201527f0000000000000000000000000000000000000000000000000000000000000000909116906323b872dd90606401600060405180830381600087803b15801561225d57600080fd5b505af1158015612271573d6000803e3d6000fd5b505050505b60408101516001600160801b0316156122b1576122b161229e6097546001600160a01b031690565b82604001516001600160801b031661242e565b80516001600160601b0316600090815260cc602052604090819020805463ffffffff19164263ffffffff16178155908201516122f5906001600160801b031661241e565b815460a08401516001600160a01b0316600160601b026001600160601b036001600160401b0393909316600160201b029290921663ffffffff918216179190911782556020830151161561236457602082015160018201805463ffffffff191663ffffffff9092169190911790555b815160a083015160408085015181516001600160a01b0390931683526001600160801b031660208301526001600160601b03909216917fc9f72b276a388619c6d185d146697036241880c36654b1a3ffdad07c24038d99910160405180910390a2602082015163ffffffff16156111bc57816020015163ffffffff1682600001516001600160601b03167ff445afb110f5e782fc78bf23e7066d3c5a95f7b57bd25fb718a29ad0287db2b960405160405180910390a35050565b6000611b486305f5e10083612df4565b61243882826126f3565b6111bc577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561249757600080fd5b505af11580156124ab573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af1158015612520573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd19190612e08565b600054610100900460ff168061255d575060005460ff16155b6125795760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611ed4576000805461ffff19166101011790558015610ce1576000805461ff001916905550565b600054610100900460ff16806125c7575060005460ff16155b6125e35760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015612605576000805461ffff19166101011790555b6033805460ff191690558015610ce1576000805461ff001916905550565b600054610100900460ff168061263c575060005460ff16155b6126585760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff1615801561267a576000805461ffff19166101011790555b60016065558015610ce1576000805461ff001916905550565b600054610100900460ff16806126ac575060005460ff16155b6126c85760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff161580156126ea576000805461ffff19166101011790555b611ed433611da0565b6000806000806000808688617530f1949350505050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b8015158114610ce157600080fd5b60008060006060848603121561275b57600080fd5b8335925060208401359150604084013561277481612738565b809150509250925092565b602080825282518282018190526000919060409081850190868401855b828110156127f2578151805163ffffffff90811686528782015188870152868201516001600160a01b03168787015260608083015190870152608091820151169085015260a0909301929085019060010161279c565b5091979650505050505050565b803566ffffffffffffff8116811461281657600080fd5b919050565b60006020828403121561282d57600080fd5b612836826127ff565b9392505050565b803560ff8116811461281657600080fd5b60006020828403121561286057600080fd5b6128368261283d565b6000806040838503121561287c57600080fd5b50508035926020909101359150565b60006020828403121561289d57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156128dc578351835292840192918401916001016128c0565b50909695505050505050565b80356001600160c01b038116811461281657600080fd5b60008060006060848603121561291457600080fd5b61291d846128e8565b925061292b602085016127ff565b91506129396040850161283d565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b608081018181106001600160401b038211171561297757612977612942565b60405250565b601f8201601f191681016001600160401b03811182821017156129a2576129a2612942565b6040525050565b803563ffffffff8116811461281657600080fd5b80356001600160a01b038116811461281657600080fd5b600060208083850312156129e757600080fd5b82356001600160401b03808211156129fe57600080fd5b818501915085601f830112612a1257600080fd5b813581811115612a2457612a24612942565b60409150604051612a3a858360051b018261297d565b81815260079190911b830184019084810188831115612a5857600080fd5b938501935b82851015612abc576080858a031215612a765760008081fd5b8351612a8181612958565b612a8a866129a9565b81528686013587820152612a9f8587016129bd565b818601526060868101359082015281526080909401938501612a5d565b50979650505050505050565b60008060408385031215612adb57600080fd5b82359150612aeb602084016129a9565b90509250929050565b60008060408385031215612b0757600080fd5b823591506020830135612b1981612738565b809150509250929050565b600060208284031215612b3657600080fd5b612836826128e8565b600060208284031215612b5157600080fd5b612836826129bd565b634e487b7160e01b600052601160045260246000fd5b81810381811115611b4857611b48612b5a565b80820180821115611b4857611b48612b5a565b634e487b7160e01b600052603260045260246000fd5b600060018201612bbe57612bbe612b5a565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601260045260246000fd5b600082612c1f57612c1f612bfa565b500690565b600081612c3357612c33612b5a565b506000190190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160801b03818116838216028082169190828114612cac57612cac612b5a565b505092915050565b60006001600160801b0380841680612cce57612cce612bfa565b92169190910492915050565b6001600160801b03818116838216019080821115612cfa57612cfa612b5a565b5092915050565b8082028115828204841417611b4857611b48612b5a565b600060208284031215612d2a57600080fd5b5051919050565b600060033d1115612d4a5760046000803e5060005160e01c5b90565b600060443d1015612d5b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612d8a57505050505090565b8285019150815181811115612da25750505050505090565b843d8701016020828501011115612dbc5750505050505090565b612dcb6020828601018761297d565b509095945050505050565b64ffffffffff818116838216019080821115612cfa57612cfa612b5a565b600082612e0357612e03612bfa565b500490565b600060208284031215612e1a57600080fd5b81516128368161273856fea26469706673582212204eed286559142f12f42055a0eba0e732348e19053404b823817c2b809c389e7864736f6c634300081700330000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc03000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000015180

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c80638da5cb5b116100f7578063af64dd3011610095578063db2e1eed11610064578063db2e1eed14610768578063ec91f2a4146107a0578063f25efffc146107c7578063f2fde38b146107dc57600080fd5b8063af64dd30146106d5578063b1296a94146106f5578063b296024d14610715578063c0555d981461074857600080fd5b80639903cce6116100d15780639903cce61461066d578063a4d0a17e1461068d578063a94dd8a0146106a2578063abbfb786146106c257600080fd5b80638da5cb5b1461054b5780639149295614610569578063945c37cb1461059657600080fd5b80635112fabf1161016f578063715018a61161013e578063715018a6146103c25780637d9f6db5146103d75780638456cb591461050757806385317a291461051c57600080fd5b80635112fabf146103215780635c975abb14610341578063659dd2b4146103645780636dd83b5d1461037757600080fd5b80632de45f18116101ab5780632de45f181461026c57806336ebdb38146102b85780633f4ba83a146102d85780633fc8cef3146102ed57600080fd5b806309b85709146101d25780630ba4e9ea146102085780630fb5a6b41461022a575b600080fd5b3480156101de57600080fd5b506101f26101ed366004612746565b6107fc565b6040516101ff919061277f565b60405180910390f35b34801561021457600080fd5b5061022861022336600461281b565b610a4f565b005b34801561023657600080fd5b5061025e7f000000000000000000000000000000000000000000000000000000000001518081565b6040519081526020016101ff565b34801561027857600080fd5b506102a07f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc0381565b6040516001600160a01b0390911681526020016101ff565b3480156102c457600080fd5b506102286102d336600461284e565b610b2d565b3480156102e457600080fd5b50610228610bfa565b3480156102f957600080fd5b506102a07f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b34801561032d57600080fd5b5061022861033c366004612869565b610c5a565b34801561034d57600080fd5b5060335460ff1660405190151581526020016101ff565b61022861037236600461288b565b610cd6565b34801561038357600080fd5b506103ad61039236600461288b565b600090815260cc602052604090206001015463ffffffff1690565b60405163ffffffff90911681526020016101ff565b3480156103ce57600080fd5b50610228610ce4565b3480156103e357600080fd5b506104946040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152506040805160c08101825260ca546001600160601b0381168252600160801b90046001600160801b0316602082015260cb5464ffffffffff80821693830193909352600160281b81049092166060820152600160501b82046001600160a01b03166080820152600160f01b90910460ff16151560a082015290565b6040516101ff919081516001600160601b031681526020808301516001600160801b03169082015260408083015164ffffffffff90811691830191909152606080840151909116908201526080808301516001600160a01b03169082015260a09182015115159181019190915260c00190565b34801561051357600080fd5b50610228610d18565b34801561052857600080fd5b506105336201518081565b60405166ffffffffffffff90911681526020016101ff565b34801561055757600080fd5b506097546001600160a01b03166102a0565b34801561057557600080fd5b5061058961058436600461288b565b610d4a565b6040516101ff91906128a4565b3480156105a257600080fd5b5060ca5460cb5461060a916001600160601b03811691600160601b820463ffffffff1691600160801b90046001600160801b03169064ffffffffff80821691600160281b810490911690600160501b81046001600160a01b031690600160f01b900460ff1687565b604080516001600160601b03909816885263ffffffff90961660208801526001600160801b039094169486019490945264ffffffffff91821660608601521660808401526001600160a01b0390911660a0830152151560c082015260e0016101ff565b34801561067957600080fd5b506102286106883660046128ff565b610f61565b34801561069957600080fd5b50610228611032565b3480156106ae57600080fd5b506102286106bd3660046129d4565b611083565b6102286106d0366004612ac8565b6111c0565b3480156106e157600080fd5b506101f26106f0366004612af4565b611602565b34801561070157600080fd5b506101f2610710366004612746565b61180b565b34801561072157600080fd5b5060c95461073690600160f81b900460ff1681565b60405160ff90911681526020016101ff565b34801561075457600080fd5b50610228610763366004612b24565b6119c9565b34801561077457600080fd5b5060c954610788906001600160c01b031681565b6040516001600160c01b0390911681526020016101ff565b3480156107ac57600080fd5b5060c95461053390600160c01b900466ffffffffffffff1681565b3480156107d357600080fd5b50610228611a41565b3480156107e857600080fd5b506102286107f7366004612b3f565b611a97565b60ca546060906001600160601b0316808511156108545760405162461bcd60e51b81526020600482015260116024820152707374617274496420746f6f206c6172676560781b60448201526064015b60405180910390fd5b61085e8582612b70565b610869906001612b83565b6001600160401b0381111561088057610880612942565b6040519080825280602002602001820160405280156108d957816020015b6040805160a08101825260008082526020808301829052928201819052606082018190526080820152825260001990920191018161089e5790505b50915060006108e661270a565b865b838111610a3757600081815260cc6020908152604091829020825160a081018452815463ffffffff8082168352600160201b8083046001600160401b031695840195909552600160601b9091046001600160a01b0316948201949094526001909101549283166060820152910460ff1615156080820152915085801561097957506001826000015163ffffffff1611155b610a2757838114801561099757506001826000015163ffffffff1611155b610a2757815163ffffffff168710610a37576040518060a00160405280836000015163ffffffff1681526020016109d18460200151611b2f565b815260200183604001516001600160a01b03168152602001828152602001836060015163ffffffff16815250858481518110610a0f57610a0f612b96565b602002602001018190525082610a2490612bac565b92505b610a3081612bac565b90506108e8565b508184511115610a45578184525b5050509392505050565b6097546001600160a01b03163314610a795760405162461bcd60e51b815260040161084b90612bc5565b6201518066ffffffffffffff82161115610acc5760405162461bcd60e51b815260206004820152601460248201527374696d6542756666657220746f6f206c6172676560601b604482015260640161084b565b60c9805466ffffffffffffff60c01b1916600160c01b66ffffffffffffff8416908102919091179091556040519081527f1b55d9f7002bda4490f467e326f22a4a847629c0f2d1ed421607d318d25b410d906020015b60405180910390a150565b6097546001600160a01b03163314610b575760405162461bcd60e51b815260040161084b90612bc5565b60008160ff1611610baa5760405162461bcd60e51b815260206004820152601960248201527f6d7573742062652067726561746572207468616e207a65726f00000000000000604482015260640161084b565b60c980546001600160f81b0316600160f81b60ff8416908102919091179091556040519081527fec5ccd96cc77b6219e9d44143df916af68fc169339ea7de5008ff15eae13450d90602001610b22565b6097546001600160a01b03163314610c245760405162461bcd60e51b815260040161084b90612bc5565b610c2c611b4e565b60cb5464ffffffffff161580610c4b575060cb54600160f01b900460ff165b15610c5857610c58611be1565b565b815b81811015610cd15761071c8111158015610c7e5750610c7c600a82612c10565b155b610cc957600081815260cc602052604081208054909163ffffffff9091169003610cc757805463ffffffff1916600190811782558101805464ff000000001916600160201b1790555b505b600101610c5c565b505050565b610ce18160006111c0565b50565b6097546001600160a01b03163314610d0e5760405162461bcd60e51b815260040161084b90612bc5565b610c586000611da0565b6097546001600160a01b03163314610d425760405162461bcd60e51b815260040161084b90612bc5565b610c58611df2565b60ca5460cb546060916001600160601b031690600160f01b900460ff16158015610d745750600081115b15610d8757610d84600182612b70565b90505b826001600160401b03811115610d9f57610d9f612942565b604051908082528060200260200182016040528015610dc8578160200160208202803683370190505b5091506000610dd561270a565b825b600081118015610de657508583105b15610f145761071c8111158015610e055750610e03600a82612c10565b155b610f0457600081815260cc6020908152604091829020825160a081018452815463ffffffff808216808452600160201b8084046001600160401b031696850196909652600160601b9092046001600160a01b03169583019590955260019283015494851660608301529290930460ff161515608084015291935011610ebb5760405162461bcd60e51b815260206004820152600c60248201526b4d697373696e67206461746160a01b604482015260640161084b565b60408201516001600160a01b031615610f0457610edb8260200151611b2f565b858481518110610eed57610eed612b96565b6020908102919091010152610f0183612bac565b92505b610f0d81612c24565b9050610dd7565b50818514610f595760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f75676820686973746f727960701b604482015260640161084b565b505050919050565b600054610100900460ff1680610f7a575060005460ff16155b610f965760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015610fb8576000805461ffff19166101011790555b610fc0611e6d565b610fc8611ee8565b610fd0611f47565b610fd8611df2565b60c980546001600160c01b0386166001600160f81b031990911617600160c01b66ffffffffffffff861602176001600160f81b0316600160f81b60ff851602179055801561102c576000805461ff00191690555b50505050565b60335460ff1661107b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084b565b610c58611fae565b6097546001600160a01b031633146110ad5760405162461bcd60e51b815260040161084b90612bc5565b60005b81518110156111bc57600060cc60008484815181106110d1576110d1612b96565b602002602001015160600151815260200190815260200160002090508282815181106110ff576110ff612b96565b602090810291909101015151815463ffffffff191663ffffffff90911617815582516111489084908490811061113757611137612b96565b60200260200101516020015161241e565b81546001600160401b0391909116600160201b026bffffffffffffffff0000000019909116178155825183908390811061118457611184612b96565b60209081029190910101516040015181546001600160a01b03909116600160601b026001600160601b039091161790556001016110b0565b5050565b6040805160e08101825260ca546001600160601b038116808352600160601b820463ffffffff166020840152600160801b9091046001600160801b03169282019290925260cb5464ffffffffff8082166060840152600160281b8204166080830152600160501b81046001600160a01b031660a0830152600160f01b900460ff908116151560c083015260c95491926001600160c01b03831692600160c01b810466ffffffffffffff1692600160f81b909104169086146112c35760405162461bcd60e51b815260206004820152601760248201527f4e6f756e206e6f7420757020666f722061756374696f6e000000000000000000604482015260640161084b565b836080015164ffffffffff16421061130f5760405162461bcd60e51b815260206004820152600f60248201526e105d58dd1a5bdb88195e1c1a5c9959608a1b604482015260640161084b565b826001600160c01b03163410156113685760405162461bcd60e51b815260206004820152601f60248201527f4d7573742073656e64206174206c656173742072657365727665507269636500604482015260640161084b565b60648160ff16856040015161137d9190612c89565b6113879190612cb4565b84604001516113969190612cda565b6001600160801b0316341015611416576040805162461bcd60e51b81526020600482015260248101919091527f4d7573742073656e64206d6f7265207468616e206c617374206269642062792060448201527f6d696e426964496e6372656d656e7450657263656e7461676520616d6f756e74606482015260840161084b565b60ca80546001600160601b0316600160601b63ffffffff8816026001600160801b0390811691909117600160801b349092169190910217905560cb80547fffff0000000000000000000000000000000000000000ffffffffffffffffffff1633600160501b02179055608084015160009066ffffffffffffff8416906114a490429064ffffffffff16612b70565b865160408051338152346020820152939092109183018290529092506001600160601b0316907f1159164c56f277e6fc99c11731bd380e0347deb969b75523398734c252706ea39060600160405180910390a263ffffffff86161561154b57845160405134815263ffffffff8816916001600160601b0316907f38e150a71033b4c9a3eeb9ebe568476f075a558e47171f3b5d715aa0cf6cd1b59060200160405180910390a35b80156115cd5761156466ffffffffffffff841642612b83565b64ffffffffff166080860181905260cb805469ffffffffff00000000001916600160281b830217905585516040519182526001600160601b0316907f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e9060200160405180910390a25b60a08501516001600160a01b038116156115f8576115f88187604001516001600160801b031661242e565b5050505050505050565b60ca5460cb546060916001600160601b031690600160f01b900460ff1615801561162c5750600081115b1561163f5761163c600182612b70565b90505b836001600160401b0381111561165757611657612942565b6040519080825280602002602001820160405280156116b057816020015b6040805160a0810182526000808252602080830182905292820181905260608201819052608082015282526000199092019101816116755790505b50915060006116bd61270a565b825b868310156117f557600081815260cc6020908152604091829020825160a081018452815463ffffffff8082168352600160201b8083046001600160401b031695840195909552600160601b9091046001600160a01b0316948201949094526001909101549283166060820152910460ff1615156080820152915085801561175157506001826000015163ffffffff1611155b156117615780156117f5576117e5565b6040518060a00160405280836000015163ffffffff1681526020016117898460200151611b2f565b815260200183604001516001600160a01b03168152602001828152602001836060015163ffffffff168152508584815181106117c7576117c7612b96565b6020026020010181905250826117dc90612bac565b925080156117f5575b6117ee81612c24565b90506116bf565b5081861115611802578184525b50505092915050565b60606118178484612b70565b6001600160401b0381111561182e5761182e612942565b60405190808252806020026020018201604052801561188757816020015b6040805160a08101825260008082526020808301829052928201819052606082018190526080820152825260001990920191018161184c5790505b509050600061189461270a565b855b858110156119b257600081815260cc6020908152604091829020825160a081018452815463ffffffff8082168352600160201b8083046001600160401b031695840195909552600160601b9091046001600160a01b0316948201949094526001909101549283166060820152910460ff1615156080820152915084801561192857506001826000015163ffffffff1611155b6119aa576040518060a00160405280836000015163ffffffff1681526020016119548460200151611b2f565b815260200183604001516001600160a01b03168152602001828152602001836060015163ffffffff1681525084848151811061199257611992612b96565b6020026020010181905250826119a790612bac565b92505b600101611896565b5081835111156119c0578183525b50509392505050565b6097546001600160a01b031633146119f35760405162461bcd60e51b815260040161084b90612bc5565b60c980546001600160c01b0319166001600160c01b0383169081179091556040519081527f6ab2e127d7fdf53b8f304e59d3aab5bfe97979f52a85479691a6fab27a28a6b290602001610b22565b60335460ff1615611a875760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084b565b611a8f611fae565b610c58611be1565b6097546001600160a01b03163314611ac15760405162461bcd60e51b815260040161084b90612bc5565b6001600160a01b038116611b265760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084b565b610ce181611da0565b6000611b486001600160401b0383166305f5e100612d01565b92915050565b60335460ff16611b975760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161084b565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b7f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b0316631249c58b6040518163ffffffff1660e01b81526004016020604051808303816000875af1925050508015611c5d575060408051601f3d908101601f19168201909252611c5a91810190612d18565b60015b611c9c57611c69612d31565b806308c379a003611c905750611c7d612d4d565b80611c885750611c92565b610ce1611df2565b505b3d6000803e3d6000fd5b426000611cc97f000000000000000000000000000000000000000000000000000000000001518083612dd6565b6040805160e0810182526001600160601b0386168082526000602080840182905283850182905264ffffffffff888116606086018190529087166080860181905260a0860184905260c09095019290925260ca9290925560cb805469ffffffffffffffffffff19168217600160281b8502177fff000000000000000000000000000000000000000000ffffffffffffffffffff16905583519081529081019190915291925084917fd6eddd1118d71820909c1197aa966dbc15ed6f508554252169cc3d5ccac756ca910160405180910390a2505050565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60335460ff1615611e385760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161084b565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611bc43390565b600054610100900460ff1680611e86575060005460ff16155b611ea25760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611ec4576000805461ffff19166101011790555b611ecc612544565b611ed46125ae565b8015610ce1576000805461ff001916905550565b600054610100900460ff1680611f01575060005460ff16155b611f1d5760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611f3f576000805461ffff19166101011790555b611ed4612623565b600054610100900460ff1680611f60575060005460ff16155b611f7c5760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611f9e576000805461ffff19166101011790555b611fa6612544565b611ed4612693565b6040805160e08101825260ca546001600160601b0381168252600160601b810463ffffffff166020830152600160801b90046001600160801b03169181019190915260cb5464ffffffffff80821660608401819052600160281b83049091166080840152600160501b82046001600160a01b031660a0840152600160f01b90910460ff16151560c083015260000361207f5760405162461bcd60e51b815260206004820152601460248201527320bab1ba34b7b7103430b9b713ba103132b3bab760611b604482015260640161084b565b8060c00151156120d15760405162461bcd60e51b815260206004820181905260248201527f41756374696f6e2068617320616c7265616479206265656e20736574746c6564604482015260640161084b565b806080015164ffffffffff1642101561212c5760405162461bcd60e51b815260206004820152601860248201527f41756374696f6e206861736e277420636f6d706c657465640000000000000000604482015260640161084b565b60cb805460ff60f01b1916600160f01b17905560a08101516001600160a01b03166121db578051604051630852cd8d60e31b81526001600160601b0390911660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b0316906342966c6890602401600060405180830381600087803b1580156121be57600080fd5b505af11580156121d2573d6000803e3d6000fd5b50505050612276565b60a081015181516040516323b872dd60e01b81523060048201526001600160a01b0392831660248201526001600160601b0390911660448201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc03909116906323b872dd90606401600060405180830381600087803b15801561225d57600080fd5b505af1158015612271573d6000803e3d6000fd5b505050505b60408101516001600160801b0316156122b1576122b161229e6097546001600160a01b031690565b82604001516001600160801b031661242e565b80516001600160601b0316600090815260cc602052604090819020805463ffffffff19164263ffffffff16178155908201516122f5906001600160801b031661241e565b815460a08401516001600160a01b0316600160601b026001600160601b036001600160401b0393909316600160201b029290921663ffffffff918216179190911782556020830151161561236457602082015160018201805463ffffffff191663ffffffff9092169190911790555b815160a083015160408085015181516001600160a01b0390931683526001600160801b031660208301526001600160601b03909216917fc9f72b276a388619c6d185d146697036241880c36654b1a3ffdad07c24038d99910160405180910390a2602082015163ffffffff16156111bc57816020015163ffffffff1682600001516001600160601b03167ff445afb110f5e782fc78bf23e7066d3c5a95f7b57bd25fb718a29ad0287db2b960405160405180910390a35050565b6000611b486305f5e10083612df4565b61243882826126f3565b6111bc577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561249757600080fd5b505af11580156124ab573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216935063a9059cbb925060440190506020604051808303816000875af1158015612520573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd19190612e08565b600054610100900460ff168061255d575060005460ff16155b6125795760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015611ed4576000805461ffff19166101011790558015610ce1576000805461ff001916905550565b600054610100900460ff16806125c7575060005460ff16155b6125e35760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff16158015612605576000805461ffff19166101011790555b6033805460ff191690558015610ce1576000805461ff001916905550565b600054610100900460ff168061263c575060005460ff16155b6126585760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff1615801561267a576000805461ffff19166101011790555b60016065558015610ce1576000805461ff001916905550565b600054610100900460ff16806126ac575060005460ff16155b6126c85760405162461bcd60e51b815260040161084b90612c3b565b600054610100900460ff161580156126ea576000805461ffff19166101011790555b611ed433611da0565b6000806000806000808688617530f1949350505050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b8015158114610ce157600080fd5b60008060006060848603121561275b57600080fd5b8335925060208401359150604084013561277481612738565b809150509250925092565b602080825282518282018190526000919060409081850190868401855b828110156127f2578151805163ffffffff90811686528782015188870152868201516001600160a01b03168787015260608083015190870152608091820151169085015260a0909301929085019060010161279c565b5091979650505050505050565b803566ffffffffffffff8116811461281657600080fd5b919050565b60006020828403121561282d57600080fd5b612836826127ff565b9392505050565b803560ff8116811461281657600080fd5b60006020828403121561286057600080fd5b6128368261283d565b6000806040838503121561287c57600080fd5b50508035926020909101359150565b60006020828403121561289d57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156128dc578351835292840192918401916001016128c0565b50909695505050505050565b80356001600160c01b038116811461281657600080fd5b60008060006060848603121561291457600080fd5b61291d846128e8565b925061292b602085016127ff565b91506129396040850161283d565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b608081018181106001600160401b038211171561297757612977612942565b60405250565b601f8201601f191681016001600160401b03811182821017156129a2576129a2612942565b6040525050565b803563ffffffff8116811461281657600080fd5b80356001600160a01b038116811461281657600080fd5b600060208083850312156129e757600080fd5b82356001600160401b03808211156129fe57600080fd5b818501915085601f830112612a1257600080fd5b813581811115612a2457612a24612942565b60409150604051612a3a858360051b018261297d565b81815260079190911b830184019084810188831115612a5857600080fd5b938501935b82851015612abc576080858a031215612a765760008081fd5b8351612a8181612958565b612a8a866129a9565b81528686013587820152612a9f8587016129bd565b818601526060868101359082015281526080909401938501612a5d565b50979650505050505050565b60008060408385031215612adb57600080fd5b82359150612aeb602084016129a9565b90509250929050565b60008060408385031215612b0757600080fd5b823591506020830135612b1981612738565b809150509250929050565b600060208284031215612b3657600080fd5b612836826128e8565b600060208284031215612b5157600080fd5b612836826129bd565b634e487b7160e01b600052601160045260246000fd5b81810381811115611b4857611b48612b5a565b80820180821115611b4857611b48612b5a565b634e487b7160e01b600052603260045260246000fd5b600060018201612bbe57612bbe612b5a565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601260045260246000fd5b600082612c1f57612c1f612bfa565b500690565b600081612c3357612c33612b5a565b506000190190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6001600160801b03818116838216028082169190828114612cac57612cac612b5a565b505092915050565b60006001600160801b0380841680612cce57612cce612bfa565b92169190910492915050565b6001600160801b03818116838216019080821115612cfa57612cfa612b5a565b5092915050565b8082028115828204841417611b4857611b48612b5a565b600060208284031215612d2a57600080fd5b5051919050565b600060033d1115612d4a5760046000803e5060005160e01c5b90565b600060443d1015612d5b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715612d8a57505050505090565b8285019150815181811115612da25750505050505090565b843d8701016020828501011115612dbc5750505050505090565b612dcb6020828601018761297d565b509095945050505050565b64ffffffffff818116838216019080821115612cfa57612cfa612b5a565b600082612e0357612e03612bfa565b500490565b600060208284031215612e1a57600080fd5b81516128368161273856fea26469706673582212204eed286559142f12f42055a0eba0e732348e19053404b823817c2b809c389e7864736f6c63430008170033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc03000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000015180

-----Decoded View---------------
Arg [0] : _nouns (address): 0x9C8fF314C9Bc7F6e59A9d9225Fb22946427eDC03
Arg [1] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _duration (uint256): 86400

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc03
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 0000000000000000000000000000000000000000000000000000000000015180


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.