ETH Price: $1,948.64 (-1.11%)

Contract

0x5D1498A4bEaD02819712261e8a606f6f88533c59
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Settle220459812025-03-14 15:22:35359 days ago1741965755IN
ENS Name nounscout.eth
0 ETH0.00020372.16628737
Settle219439782025-02-28 9:34:23373 days ago1740735263IN
ENS Name nounscout.eth
0 ETH0.00030053.19455705
Add219246382025-02-25 16:48:47376 days ago1740502127IN
ENS Name nounscout.eth
0.01 ETH0.000505085.74757429
Settle206284002024-08-28 16:52:47557 days ago1724863967IN
ENS Name nounscout.eth
0 ETH0.000517975.15981
Add204117692024-07-29 10:57:59587 days ago1722250679IN
ENS Name nounscout.eth
0.01 ETH0.000242092.75494167
Remove201868432024-06-28 1:16:59618 days ago1719537419IN
ENS Name nounscout.eth
0 ETH0.0007702110.45498408
Remove201868382024-06-28 1:15:59618 days ago1719537359IN
ENS Name nounscout.eth
0 ETH0.0007724410.48524838
Remove201868362024-06-28 1:15:23618 days ago1719537323IN
ENS Name nounscout.eth
0 ETH0.000736659.99939396
Remove201868352024-06-28 1:15:11618 days ago1719537311IN
ENS Name nounscout.eth
0 ETH0.0007371310.0058986
Settle200001452024-06-01 23:05:59644 days ago1717283159IN
ENS Name nounscout.eth
0 ETH0.000652255.32823044
Add199770642024-05-29 17:40:23648 days ago1717004423IN
ENS Name nounscout.eth
0.1 ETH0.0010547912.00298058
Add199770522024-05-29 17:37:59648 days ago1717004279IN
ENS Name nounscout.eth
0.15 ETH0.0011737711.18116736
Settle199358832024-05-23 23:32:47653 days ago1716507167IN
ENS Name nounscout.eth
0 ETH0.000849759.05029512
Add199214772024-05-21 23:10:47655 days ago1716333047IN
ENS Name nounscout.eth
0.01 ETH0.00067997.73794013
Remove199214102024-05-21 22:57:23655 days ago1716332243IN
ENS Name nounscout.eth
0 ETH0.00057467.81013612
Settle199118732024-05-20 14:56:23657 days ago1716216983IN
ENS Name nounscout.eth
0 ETH0.0012227312.99994199
Add199051862024-05-19 16:30:47658 days ago1716136247IN
ENS Name nounscout.eth
0.01 ETH0.000849339.66492019
Add199051832024-05-19 16:30:11658 days ago1716136211IN
ENS Name nounscout.eth
0.01 ETH0.000818099.31066008
Add199050942024-05-19 16:12:11658 days ago1716135131IN
ENS Name nounscout.eth
0.01 ETH0.000353684.02477241
Add199050002024-05-19 15:53:23658 days ago1716134003IN
ENS Name nounscout.eth
0.01 ETH0.000821629.35091925
Settle198566842024-05-12 21:40:47664 days ago1715550047IN
ENS Name nounscout.eth
0 ETH0.000196253.312677
Add198484082024-05-11 17:54:23666 days ago1715450063IN
ENS Name nounscout.eth
0.011 ETH0.000429274.08917381
Add198345622024-05-09 19:25:23668 days ago1715282723IN
ENS Name nounscout.eth
0.01 ETH0.0009176810.44271078
Settle192129742024-02-12 15:55:59755 days ago1707753359IN
ENS Name nounscout.eth
0 ETH0.0038083538.09996439
Settle191692542024-02-06 12:39:23761 days ago1707223163IN
ENS Name nounscout.eth
0 ETH0.0032440730.58053435
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer220459812025-03-14 15:22:35359 days ago1741965755
ENS Name nounscout.eth
0.004 ETH
Transfer220459812025-03-14 15:22:35359 days ago1741965755
ENS Name nounscout.eth
0.006 ETH
Transfer219439782025-02-28 9:34:23373 days ago1740735263
ENS Name nounscout.eth
0.004 ETH
Transfer219439782025-02-28 9:34:23373 days ago1740735263
ENS Name nounscout.eth
0.006 ETH
Transfer206284002024-08-28 16:52:47557 days ago1724863967
ENS Name nounscout.eth
0.004 ETH
Transfer206284002024-08-28 16:52:47557 days ago1724863967
ENS Name nounscout.eth
0.006 ETH
Transfer201868432024-06-28 1:16:59618 days ago1719537419
ENS Name nounscout.eth
0.01 ETH
Transfer201868382024-06-28 1:15:59618 days ago1719537359
ENS Name nounscout.eth
0.01 ETH
Transfer201868362024-06-28 1:15:23618 days ago1719537323
ENS Name nounscout.eth
0.01 ETH
Transfer201868352024-06-28 1:15:11618 days ago1719537311
ENS Name nounscout.eth
0.01 ETH
Transfer200001452024-06-01 23:05:59644 days ago1717283159
ENS Name nounscout.eth
0.00625 ETH
Transfer200001452024-06-01 23:05:59644 days ago1717283159
ENS Name nounscout.eth
0.0975 ETH
Transfer200001452024-06-01 23:05:59644 days ago1717283159
ENS Name nounscout.eth
0.14625 ETH
Transfer199358832024-05-23 23:32:47653 days ago1716507167
ENS Name nounscout.eth
0.004 ETH
Transfer199358832024-05-23 23:32:47653 days ago1716507167
ENS Name nounscout.eth
0.006 ETH
Transfer199214102024-05-21 22:57:23655 days ago1716332243
ENS Name nounscout.eth
0.01 ETH
Transfer199118732024-05-20 14:56:23657 days ago1716216983
ENS Name nounscout.eth
0.004 ETH
Transfer199118732024-05-20 14:56:23657 days ago1716216983
ENS Name nounscout.eth
0.006 ETH
Transfer198566842024-05-12 21:40:47664 days ago1715550047
ENS Name nounscout.eth
0.00399999 ETH
Transfer198566842024-05-12 21:40:47664 days ago1715550047
ENS Name nounscout.eth
0.007 ETH
Transfer192129742024-02-12 15:55:59755 days ago1707753359
ENS Name nounscout.eth
0.004 ETH
Transfer192129742024-02-12 15:55:59755 days ago1707753359
ENS Name nounscout.eth
0.006 ETH
Transfer191692542024-02-06 12:39:23761 days ago1707223163
ENS Name nounscout.eth
0.004 ETH
Transfer191692542024-02-06 12:39:23761 days ago1707223163
ENS Name nounscout.eth
0.006 ETH
Transfer191552192024-02-04 13:23:23763 days ago1707053003
ENS Name nounscout.eth
0.00399998 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NounScout

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 6 : NounScout.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

import "./Interfaces.sol";
import {Ownable2Step} from "openzeppelin-contracts/contracts/access/Ownable2Step.sol";
import {Pausable} from "openzeppelin-contracts/contracts/security/Pausable.sol";

contract NounScout is Ownable2Step, Pausable {
    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * ERRORS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Thrown when an attempting to remove a Request within `AUCTION_END_LIMIT` (5 minutes) of auction end.
     */
    error AuctionEndingSoon();

    /**
     * @notice Thrown when an attempting to remove a Request that matches the current or previous Noun
     */
    error MatchFound(uint16 nounId);

    /**
     * @notice Thrown when an attempting to remove a Request that was previously matched (donation was sent)
     */
    error PledgeSent();

    /**
     * @notice Thrown when attempting to remove a Request that was previously removed.
     */
    error AlreadyRemoved();

    /**
     * @notice Thrown when attempting to settle the eligible Noun that has no matching Requests for the specified Trait Type and Trait ID
     */
    error NoMatch();

    /**
     * @notice Thrown when attempting to match an eligible Noun. Can only match a Noun previous to the current on auction
     */
    error IneligibleNounId();
    /**
     * @notice Thrown when an attempting to add a Request that pledges an amount to an inactive Recipient
     */
    error InactiveRecipient();

    /**
     * @notice Thrown when an attempting to add a Request with value below `minValue`
     */
    error ValueTooLow();

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * EVENTS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Emitted when a Request is added
     */
    event RequestAdded(
        uint256 requestId,
        address indexed requester,
        Traits trait,
        uint16 traitId,
        uint16 recipientId,
        uint16 indexed nounId,
        uint16 pledgeGroupId,
        bytes32 indexed traitsHash,
        uint256 amount,
        string message
    );

    /**
     * @notice Emitted when a Request is removed
     */
    event RequestRemoved(
        uint256 requestId,
        address indexed requester,
        Traits trait,
        uint16 traitId,
        uint16 indexed nounId,
        uint16 pledgeGroupId,
        uint16 recipientId,
        bytes32 indexed traitsHash,
        uint256 amount
    );

    /**
     * @notice Emitted when a Recipient is added
     */
    event RecipientAdded(
        uint256 recipientId,
        string name,
        address to,
        string description
    );

    /**
     * @notice Emitted when a Recipient status has changed
     */
    event RecipientActiveStatusChanged(uint256 recipientId, bool active);

    /**
     * @notice Emitted when an eligible Noun matches one or more Requests
     * @dev Used to update and/or invalidate Requests stored off-chain for these parameters
     * @param trait Trait Type that matched
     * @param traitId Trait ID that matched
     * @param nounId Noun Id that matched
     * @param traitsHash Hash of trait, traitId, nounId
     */
    event Matched(
        Traits indexed trait,
        uint16 traitId,
        uint16 indexed nounId,
        bytes32 indexed traitsHash
    );

    /**
     * @notice Emitted when an eligible Noun matches one or more Requests
     * @param donations The array of amounts indexed by Recipient ID sent to recipients
     */
    event Donated(uint256[] donations);

    /**
     * @notice Emitted when an eligible Noun matches one or more Requests
     * @param settler The addressed that performed the settling function
     * @param amount The reimbursement amount
     */
    event Reimbursed(address indexed settler, uint256 amount);

    /**
     * @notice Emitted when the minValue changes
     */
    event MinValueChanged(uint256 newMinValue);

    /**
     * @notice Emitted when the messageValue changes
     */
    event MessageValueChanged(uint256 newMessageValue);

    /**
     * @notice Emitted when the baseReimbursementBPS changes
     */
    event ReimbursementBPSChanged(uint256 newReimbursementBPS);

    /**
     * @notice Emitted when the minReimbursement changes
     */
    event MinReimbursementChanged(uint256 newMinReimbursement);

    /**
     * @notice Emitted when the maxReimbursement changes
     */
    event MaxReimbursementChanged(uint256 newMaxReimbursement);

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * CUSTOM TYPES
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Stores pledged value, requested traits, pledge target
     */
    struct Request {
        Traits trait;
        uint16 traitId;
        uint16 recipientId;
        uint16 nounId;
        uint16 pledgeGroupId;
        uint128 amount;
    }

    /**
     * @notice Request with additional `id` and `status` parameters; Returned by `requestsByAddress()`
     */
    struct RequestWithStatus {
        uint256 id;
        Traits trait;
        uint16 traitId;
        uint16 recipientId;
        uint16 nounId;
        uint128 amount;
        RequestStatus status;
    }

    /**
     * @notice Used to track cumlitive amounts for a recipient . `id` is incremented when pledged amounts are sent; See `pledgeGroups` variable and `_combineAmountsAndDelete` function
     */
    struct PledgeGroup {
        uint240 amount;
        uint16 id;
    }

    /**
     * @notice Name, address, and active status where funds can be donated
     */
    struct Recipient {
        string name;
        address to;
        bool active;
    }

    /**
     * @notice Noun traits in the order they appear on the NounSeeder.Seed struct
     */
    enum Traits {
        BACKGROUND,
        BODY,
        ACCESSORY,
        HEAD,
        GLASSES
    }

    /**
     * @notice Removal status types for a Request
     * @dev See { _getRequestStatusAndParams } for calculations
     * A Request can only be removed if `status == CAN_REMOVE`
     */
    enum RequestStatus {
        CAN_REMOVE,
        REMOVED,
        PLEDGE_SENT,
        AUCTION_ENDING_SOON,
        MATCH_FOUND
    }

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * CONSTANTS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Retreives historical mapping of Noun ID -> seed
     * @return nouns contract address
     */
    INounsTokenLike public immutable nouns;

    /**
     * @notice Retreives the current auction data
     * @return auctionHouse contract address
     */
    INounsAuctionHouseLike public immutable auctionHouse;

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

    /**
     * @notice Time limit before an auction ends; requests cannot be removed during this time
     * @return Set to 5 minutes
     */
    uint16 public constant AUCTION_END_LIMIT = 5 minutes;

    /**
     * @notice The value of "open auctioned Noun ID" which allows trait matches to be performed against any auctioned Noun ID
     * @return Set to zero (0)
     */
    uint16 public constant ANY_AUCTION_ID = 0;

    /**
     * @notice The value of "open non-auctioned Noun ID" which allows trait matches to be performed against any non-auctioned Noun ID
     * @return Set to one (1)
     */
    uint16 public constant ANY_NON_AUCTION_ID = 1;

    /**
     * @notice used as `null` value for Noun ID
     */
    uint16 private constant UINT16_MAX = type(uint16).max;

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * STORAGE VARIABLES
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice A portion of donated funds are sent to the address performing a match
     * @dev Owner can update
     * @return baseReimbursementBPS
     */
    uint16 public baseReimbursementBPS = 250;

    /**
     * @notice minimum reimbursement for settling
     * @dev The default attempts to cover 10 recipient matches each sent the default minimimum value (150_000 gas at 20 Gwei/gas)
     * Owner can update
     * @return minReimbursement
     */
    uint256 public minReimbursement = 0.003 ether;

    /**
     * @notice maximum reimbursement for settling; with default BPS value, this is reached at 4 ETH total pledges
     * @dev Owner can update
     * @return maxReimbursement
     */
    uint256 public maxReimbursement = 0.1 ether;

    /**
     * @notice The minimum pledged value
     * @dev Owner can update
     * @return minValue
     */
    uint256 public minValue = 0.01 ether;

    /**
     * @notice The cost to register a message
     * @dev Owner can update
     * @return messageValue
     */
    uint256 public messageValue = 10 ether;

    /**
     * @notice Array of Recipient details
     */
    Recipient[] internal _recipients;

    /**
     * @notice the total number of background traits
     * @dev Fetched and cached via `updateTraitCounts()`
     * @return backgroundCount
     */
    uint16 public backgroundCount;

    /**
     * @notice the total number of body traits
     * @dev Fetched and cached via `updateTraitCounts()`
     * @return bodyCount
     */
    uint16 public bodyCount;

    /**
     * @notice the total number of accessory traits
     * @dev Fetched and cached via `updateTraitCounts()`
     * @return accessoryCount
     */
    uint16 public accessoryCount;

    /**
     * @notice the total number of head traits,
     * @dev Ftched and cached via `updateTraitCounts()`
     * @return headCount
     */
    uint16 public headCount;

    /**
     * @notice the total number of glasses traits
     * @dev Fetched and cached via `updateTraitCounts()`
     * @return glassesCount
     */
    uint16 public glassesCount;

    /**
     * @notice Cumulative funds to be sent to a specific recipient scoped to trait type, Trait ID, and  Noun ID.
     * @dev The first mapping key is can be generated with the `traitsHash` function
     * and the second is recipientId.
     * `id` tracks which group of pledges have been sent. When a pledge is sent, the ID is incremented. See `_combineAmountsAndDelete()`
     */
    mapping(bytes32 => mapping(uint16 => PledgeGroup)) public pledgeGroups;

    /**
     * @notice Array of requests against the address that created the request
     */
    mapping(address => Request[]) internal _requests;

    constructor(
        INounsTokenLike _nouns,
        INounsAuctionHouseLike _auctionHouse,
        IWETH _weth
    ) {
        nouns = _nouns;
        auctionHouse = _auctionHouse;
        weth = _weth;
        updateTraitCounts();
    }

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * VIEW FUNCTIONS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    //----------------//
    //-----Getters----//
    //----------------//

    /**
     * @notice All recipients as Recipient structs
     */
    function recipients() public view returns (Recipient[] memory) {
        return _recipients;
    }

    /**
     * @notice Get requests, augemented with status, for non-removed Requests
     * @dev Removes Requests marked as REMOVED, and includes Requests that have been previously matched.
     * Do not rely on array index; use `request.id` to specify a Request when calling `remove()`
     * See { _getRequestStatusAndParams } for calculations
     * @param requester The address of the requester
     * @return requests An array of RequestWithStatus Structs
     */
    function requestsByAddress(
        address requester
    ) public view returns (RequestWithStatus[] memory requests) {
        unchecked {
            uint256 activeRequestCount;
            uint256 requestCount = _requests[requester].length;
            uint256[] memory activeRequestIds = new uint256[](requestCount);
            RequestStatus[] memory requestStatuses = new RequestStatus[](
                requestCount
            );

            for (uint256 i; i < requestCount; i++) {
                Request memory request = _requests[requester][i];
                (RequestStatus status, , ) = _getRequestStatusAndParams(
                    request
                );
                // Request has been deleted
                if (status == RequestStatus.REMOVED) {
                    continue;
                }

                activeRequestIds[activeRequestCount] = i;
                requestStatuses[activeRequestCount] = status;
                activeRequestCount++;
            }

            requests = new RequestWithStatus[](activeRequestCount);
            for (uint256 i; i < activeRequestCount; i++) {
                Request memory request = _requests[requester][
                    activeRequestIds[i]
                ];
                requests[i] = RequestWithStatus({
                    id: activeRequestIds[i],
                    trait: request.trait,
                    traitId: request.traitId,
                    recipientId: request.recipientId,
                    nounId: request.nounId,
                    amount: request.amount,
                    status: requestStatuses[i]
                });
            }
        }
    }

    /**
     * @notice The canonical key for requests that target the same `trait`, `traitId`, and `nounId`
     * @dev Used to group requests by their parameters in the `amounts` mapping
     * @param trait The trait enum
     * @param traitId The ID of the trait
     * @param nounId The Noun ID
     * @return hash The hashed value
     */
    function traitHash(
        Traits trait,
        uint16 traitId,
        uint16 nounId
    ) public pure returns (bytes32 hash) {
        hash = keccak256(abi.encode(trait, traitId, nounId));
    }

    //----------------//
    //----Utilities---//
    //----------------//

    /**
     * @notice Given a pledge total, derive the reimbursement fee and basis points used to calculate it
     * @param total A pledge amount
     * @return effectiveBPS The basis point used to cacluate the reimbursement fee
     * @return reimbursement The reimbursement amount
     */
    function effectiveBPSAndReimbursementForPledgeTotal(
        uint256 total
    ) public view returns (uint256 effectiveBPS, uint256 reimbursement) {
        (
            effectiveBPS,
            reimbursement
        ) = _effectiveHighPrecisionBPSForPledgeTotal(total);
        effectiveBPS = effectiveBPS / 100;
    }

    /**
     * @notice Evaluate if the provided Request matches the specified on-chain Noun
     * @param request The Request to compare
     * @param nounId Noun ID to fetch the seed and compare against the given request parameters
     * @return boolean True if the specified Noun has the specified trait and the request Noun ID matches the given Noun ID
     */
    function requestMatchesNoun(
        Request memory request,
        uint16 nounId
    ) public view returns (bool) {
        // open IDs can't be used as Noun Ids
        if (nounId == ANY_AUCTION_ID || nounId == ANY_NON_AUCTION_ID) {
            revert IneligibleNounId();
        }

        // If a specific Noun ID is part of the request, but is not the target Noun ID, can exit
        if (
            request.nounId != ANY_AUCTION_ID &&
            request.nounId != ANY_NON_AUCTION_ID &&
            request.nounId != nounId
        ) {
            return false;
        }

        // `ANY_AUCTION_ID` can only apply to auctioned Nouns
        if (request.nounId == ANY_AUCTION_ID && _isNonAuctionedNoun(nounId)) {
            return false;
        }

        // `ANY_NON_AUCTION_ID` can only apply to non-auctioned Nouns
        if (request.nounId == ANY_NON_AUCTION_ID && _isAuctionedNoun(nounId)) {
            return false;
        }

        return
            request.traitId == _fetchOnChainNounTraitId(request.trait, nounId);
    }

    /**
     * @notice For a given Noun ID, get cumulative pledge amounts for each Recipient scoped by Trait Type and Trait ID.
     * @dev The pledges array is a nested structure of 3 arrays of Trait Type, Trait ID, and Recipient ID.
     * The length of the first array is 5 (five) representing all Trait Types.
     * The length of the second is dependant on the number of traits for that trait type (e.g. 242 for Trait Type 3 aka heads).
     * The length of the third is dependant on the number of recipients added to this contract.
     * ##### For example:
     * 1) `pledges.length` == 5 representing the five unique Noun Trait Types
     * 2) `pledges[0].length` == 2 representing the two traits possible for a background `cool` (Trait ID 0) and `warm` (Trait ID 1)
     * 3) `pledges[0][0].length` == the size of the number of recipients that have been added to this contract. Each value is the amount that has been pledged to a specific recipient, indexed by its ID, if a Noun is minted with a cool background.
     * ##### Practical use-case
     * Calling `pledgesForNounId(101)` returns cumulative matching pledges for each Trait Type, Trait ID and Recipient ID such that:
     * 1) the value at `pledges[0][1][2]` is in the total amount that has been pledged to Recipient ID 0 if Noun 101 is minted with a warm background (Trait 0, traitId 1)
     * 2) the value at `pledges[0][1][2]` is in the total amount that has been pledged to Recipient ID 0 if Noun 101 is minted with a warm background (Trait 0, traitId 1)
     * 3) looping through `pledges[0][1]` and summing each item represents the total value pledged for a warm background (pledges[0][1][0] + pledges[0][1][1]  + pledges[0][1][2] + .... = n ETH)
     * @param nounId The ID of the Noun requests should match.
     * @param includeAnyId If `true`, sums pledges for the specified `nounId` with pledges for `ANY_AUCTION_ID` (or `ANY_NON_AUCTION_ID` depending on the nounId). If `false` returns only the pledges for the specified `nounId`
     * @param excludeSeeds Filters out pledges for any Trait in the array of Noun Seeds.
     * This is useful when fetching pledges that have not been matched by the previously auctioned Nouns (See `pledgesForUpcomingNoun()` for why that is needed).
     * A special case exists to accomediate `pledgesForUpcomingNoun()`: if `nounId` is not an open ID (ANY_AUCTION_ID, ANY_NON_AUCTION_ID) and `includeAnyId` is true, only open ID pledges will be filtered and specific ID pledges for `nounId` will be included.
     * @return pledges Cumulative amounts pledged for each Recipient, indexed by Trait Type, Trait ID and Recipient ID
     */
    function pledgesForNounId(
        uint16 nounId,
        bool includeAnyId,
        INounsSeederLike.Seed[] memory excludeSeeds
    ) public view returns (uint256[][][5] memory pledges) {
        uint256 excludeLength = excludeSeeds.length;
        uint16[] memory excludeTraitIds = new uint16[](excludeLength);

        for (uint256 trait; trait < 5; trait++) {
            uint256 traitCount;
            Traits traitEnum = Traits(trait);
            if (traitEnum == Traits.BACKGROUND) {
                traitCount = backgroundCount;
            } else if (traitEnum == Traits.BODY) {
                traitCount = bodyCount;
            } else if (traitEnum == Traits.ACCESSORY) {
                traitCount = accessoryCount;
            } else if (traitEnum == Traits.HEAD) {
                traitCount = headCount;
            } else if (traitEnum == Traits.GLASSES) {
                traitCount = glassesCount;
            }

            // Find the specific Trait IDs for the current Trait within the array of Seeds
            for (uint256 i; i < excludeLength; i++) {
                if (traitEnum == Traits.BACKGROUND) {
                    excludeTraitIds[i] = uint16(excludeSeeds[i].background);
                } else if (traitEnum == Traits.BODY) {
                    excludeTraitIds[i] = uint16(excludeSeeds[i].body);
                } else if (traitEnum == Traits.ACCESSORY) {
                    excludeTraitIds[i] = uint16(excludeSeeds[i].accessory);
                } else if (traitEnum == Traits.HEAD) {
                    excludeTraitIds[i] = uint16(excludeSeeds[i].head);
                } else if (traitEnum == Traits.GLASSES) {
                    excludeTraitIds[i] = uint16(excludeSeeds[i].glasses);
                }
            }

            pledges[trait] = new uint256[][](traitCount);
            pledges[trait] = pledgesForNounIdByTrait(
                traitEnum,
                nounId,
                includeAnyId,
                excludeTraitIds
            );
        }
    }

    /**
     * @notice Get cumulative pledge amounts scoped to Noun ID and Trait Type.
     * @dev Example: `pledgesForNounIdByTrait(3, 25)` accumulates all pledged pledges amounts for heads and Noun ID 25.
     * The returned value in `pledges[5][2]` is in the total amount that has been pledged to Recipient ID 2 if Noun ID 25 is minted with a head of Trait ID 5
     * @param trait The trait type to scope requests to (See `Traits` Enum)
     * @param nounId The Noun ID to scope requests to
     * @param includeAnyId If `true`, sums pledges for the specified `nounId` with pledges for `ANY_AUCTION_ID` (or `ANY_NON_AUCTION_ID` depending on the nounId). If `false` returns only the pledges for the specified `nounId`
     * @param excludeTraitIds The pledges for any Trait ID in the array will not be added to `pledgesByTraitId`.
     * A special case exists: if `nounId` is not an open ID (ANY_AUCTION_ID, ANY_NON_AUCTION_ID) and `includeAnyId` is true, only open ID pledges will be excluded, while the specific Id pledges for `nounId` will not.
     * Example: If there two pledges for HEAD 7, one with `nounId` set to `ANY_AUCTION_ID` and the other set to the specific Noun Id 99, when calling `pledgesForNounIdByTrait(3, 99, true, [7])` (get HEAD pledges for Noun 99 including open Id pledges), only the specific Noun ID pledge will be returned for HEAD 7  (the open ID pledge will be filtered out).
     * @return pledgesByTraitId Cumulative amounts pledged for each Recipient, indexed by Trait ID and Recipient ID
     */
    function pledgesForNounIdByTrait(
        Traits trait,
        uint16 nounId,
        bool includeAnyId,
        uint16[] memory excludeTraitIds
    ) public view returns (uint256[][] memory pledgesByTraitId) {
        unchecked {
            uint16 traitCount;
            if (trait == Traits.BACKGROUND) {
                traitCount = backgroundCount;
            } else if (trait == Traits.BODY) {
                traitCount = bodyCount;
            } else if (trait == Traits.ACCESSORY) {
                traitCount = accessoryCount;
            } else if (trait == Traits.HEAD) {
                traitCount = headCount;
            } else if (trait == Traits.GLASSES) {
                traitCount = glassesCount;
            }

            uint256 recipientsCount = _recipients.length;
            pledgesByTraitId = new uint256[][](traitCount);

            uint256 excludeLength = excludeTraitIds.length;

            for (uint16 traitId; traitId < traitCount; traitId++) {
                bool exclude;
                for (uint256 i; i < excludeLength; i++) {
                    if (traitId == excludeTraitIds[i]) exclude = true;
                }

                // If a Trait ID in the array matches the current Trait ID...
                if (exclude) {
                    bool isSpecificNounId = nounId != ANY_AUCTION_ID &&
                        nounId != ANY_NON_AUCTION_ID;

                    // If the `nounId` is a specific ID and it should be bundled with an open ID...
                    if (isSpecificNounId && includeAnyId) {
                        // Modify the request to only fetch pledges for the specific ID
                        pledgesByTraitId[traitId] = _pledgesForNounIdByTraitId(
                            trait,
                            traitId,
                            nounId,
                            false,
                            recipientsCount
                        );
                        // Otherwise include an empty set of pledges
                    } else {
                        pledgesByTraitId[traitId] = new uint256[](
                            recipientsCount
                        );
                    }
                    // Otherwise the pledges for this Trait ID should be included
                } else {
                    pledgesByTraitId[traitId] = _pledgesForNounIdByTraitId(
                        trait,
                        traitId,
                        nounId,
                        includeAnyId,
                        recipientsCount
                    );
                }
            }
        }
    }

    /**
     * @notice Get cumulative pledge amounts scoped to Noun ID, Trait Type, and Trait ID
     * @dev Example: `pledgesForNounIdByTraitId(0, 1, 25)` accumulates all pledged pledge amounts for background (Trait Type 0) with Trait ID 1 for Noun ID 25. The value in `pledges[2]` is in the total amount that has been pledged to Recipient ID 2
     * @param trait The trait type to scope requests to (See `Traits` Enum)
     * @param traitId The Trait ID  of the trait to scope requests
     * @param nounId The Noun ID to scope requests to
     * @param includeAnyId If `true`, sums pledges for the specified `nounId` with pledges for `ANY_AUCTION_ID` (or `ANY_NON_AUCTION_ID` depending on the nounId). If `false` returns only the pledges for the specified `nounId`
     * @return pledges Cumulative amounts pledged for each Recipient, indexed by Recipient ID
     */
    function pledgesForNounIdByTraitId(
        Traits trait,
        uint16 traitId,
        uint16 nounId,
        bool includeAnyId
    ) public view returns (uint256[] memory pledges) {
        return
            _pledgesForNounIdByTraitId(
                trait,
                traitId,
                nounId,
                includeAnyId,
                _recipients.length
            );
    }

    /**
     * @notice For an existing on-chain Noun, use its seed to find matching pledges
     * @dev Example: `noun.seeds(1)` returns a seed of [1,2,3,4,5] representing background, body, accessory, head, glasses Trait Types and respective Trait IDs.
     * Calling `pledgesForOnChainNoun(1)` returns cumulative matching pledges for each trait that matches the seed such that:
     * - `pledges[0]` returns the cumulative doantions amounts for all requests that are seeking background (Trait Type 0) with Trait ID 1 for Noun ID 1. The value in `pledges[0][2]` is in the total amount that has been pledged to Recipient ID 2
     * @param nounId Noun ID of an existing on-chain Noun
     * @param includeAnyId If `true`, sums pledges for the specified `nounId` with pledges for `ANY_AUCTION_ID` (or `ANY_NON_AUCTION_ID` depending on the nounId). If `false` returns only the pledges for the specified `nounId`
     * @return pledges Cumulative amounts pledged for each Recipient that matches the on-chain Noun seed indexed by Trait Type and Recipient ID
     */
    function pledgesForOnChainNoun(
        uint16 nounId,
        bool includeAnyId
    ) public view returns (uint256[][5] memory pledges) {
        return _pledgesForOnChainNoun(nounId, includeAnyId, _recipients.length);
    }

    /**
     * @notice Use the next auctioned Noun Id (and non-auctioned Noun Id that may be minted in the same block) to get cumulative pledge amounts for each Recipient scoped by possible Trait Type and Trait ID. Returned values are the sum of Open ID requests (`ANY_AUCTION_ID` / `ANY_NON_AUCTION_ID`) and specific ID requests.
     * @dev See { pledgesForNounId } for detailed documentation of the nested array structure
     * @return nextAuctionId The ID of the next Noun that will be auctioned
     * @return nextNonAuctionId If two Nouns are due to be minted, this will be the ID of the non-auctioned Noun, otherwise uint16.max (65,535)
     * @return nextAuctionPledges Total pledges for the next auctioned Noun as a nested arrays in the order Trait Type, Trait ID, and Recipient ID
     * @return nextNonAuctionPledges If two Nouns are due to be minted, this will contain the total pledges for the next non-auctioned Noun as a nested arrays in the order Trait Type, Trait ID, and Recipient ID
     */
    function pledgesForUpcomingNoun()
        public
        view
        returns (
            uint16 nextAuctionId,
            uint16 nextNonAuctionId,
            uint256[][][5] memory nextAuctionPledges,
            uint256[][][5] memory nextNonAuctionPledges
        )
    {
        unchecked {
            uint16 currentAuctionNounId = uint16(auctionHouse.auction().nounId);
            uint16 prevAuctionNounId = currentAuctionNounId - 1;
            nextAuctionId = currentAuctionNounId + 1;
            nextNonAuctionId = UINT16_MAX;

            if (_isNonAuctionedNoun(prevAuctionNounId)) {
                prevAuctionNounId = prevAuctionNounId - 1;
            }
            if (_isNonAuctionedNoun(nextAuctionId)) {
                nextNonAuctionId = nextAuctionId;
                nextAuctionId++;
            }

            // Exclude the Noun Seeds for the current Noun on auction and the previously auctioned Noun.
            // Pledges for these Noun traits have already been matched, and so will not be included in the reporting of open (unmatched) pledges for the upcoming Noun.
            // This does not apply to non-auctioned Noun pledges because non-auctioned Nouns are not consecutive and can only be matched with pledges that specify non-auctioned IDs.
            INounsSeederLike.Seed[]
                memory excludeSeeds = new INounsSeederLike.Seed[](2);
            excludeSeeds[0] = nouns.seeds(currentAuctionNounId);
            excludeSeeds[1] = nouns.seeds(prevAuctionNounId);

            nextAuctionPledges = pledgesForNounId(
                nextAuctionId,
                true,
                excludeSeeds
            );

            if (nextNonAuctionId < UINT16_MAX) {
                nextNonAuctionPledges = pledgesForNounId(
                    nextNonAuctionId,
                    true,
                    new INounsSeederLike.Seed[](0)
                );
            }
        }
    }

    /**
     * @notice For the Noun that is currently on auction (and the previous non-auctioned Noun if it was minted at the same time), get cumulative pledge amounts pledged for each Recipient using requests that match the Noun's seed.  Returned values are the sum of Open ID requests (`ANY_AUCTION_ID` / `ANY_NON_AUCTION_ID`) and specific ID requests.
     * @dev Example: The Noun on auction has an ID of 99 and a seed of [1,2,3,4,5] representing background, body, accessory, head, glasses Trait Types and respective Trait IDs.
     * Calling `pledgesForNounOnAuction()` returns cumulative matching pledges for each trait that matches the seed such that:
     * - `currentAuctionPledges[0]` returns the cumulative doantions amounts for all requests that are seeking background (Trait Type 0) with Trait ID 1 (i.e. the actual background value) for Noun ID 99. The value in `pledges[0][2]` is in the total amount that has been pledged to Recipient ID 2.
     * If the Noun on auction was ID 101, there would additionally be return values for Noun 100, the non-auctioned Noun minted at the same time and `prevNonAuctionPledges` would be populated
     * @return currentAuctionId The ID of the Noun that is currently being auctioned
     * @return prevNonAuctionId If two Nouns were minted, this will be the ID of the non-auctioned Noun, otherwise uint16.max (65,535)
     * @return currentAuctionPledges Total pledges for the current auctioned Noun as a nested arrays indexed by Trait Type and Recipient ID
     * @return prevNonAuctionPledges If two Nouns were minted, this will contain the total pledges for the previous non-auctioned Noun as a nested arrays indexed by Trait Type and Recipient ID
     */
    function pledgesForNounOnAuction()
        public
        view
        returns (
            uint16 currentAuctionId,
            uint16 prevNonAuctionId,
            uint256[][5] memory currentAuctionPledges,
            uint256[][5] memory prevNonAuctionPledges
        )
    {
        unchecked {
            currentAuctionId = uint16(auctionHouse.auction().nounId);
            prevNonAuctionId = UINT16_MAX;

            uint256 recipientsCount = _recipients.length;

            currentAuctionPledges = _pledgesForOnChainNoun({
                nounId: currentAuctionId,
                includeAnyId: true,
                recipientsCount: recipientsCount
            });

            if (_isNonAuctionedNoun(currentAuctionId - 1)) {
                prevNonAuctionId = currentAuctionId - 1;

                prevNonAuctionPledges = _pledgesForOnChainNoun({
                    nounId: prevNonAuctionId,
                    includeAnyId: true,
                    recipientsCount: recipientsCount
                });
            }
        }
    }

    /**
     * @notice For the Noun that is eligible to be settled (and the previous non-auctioned Noun if it was minted at the same time), get cumulative pledge amounts for each Recipient using requests that match the Noun's seed. Returned values are the sum of Open ID requests (`ANY_AUCTION_ID` / `ANY_NON_AUCTION_ID`) and specific ID requests.
     * @dev Example:
     - The Noun that is eligible to match has an ID of 99 and a seed of [1,2,3,4,5] representing background, body, accessory, head, glasses Trait Types and respective Trait IDs.
     * - Calling `pledgesForMatchableNoun()` returns cumulative matching pledges for each trait that matches the seed.
     * - `auctionedNounPledges[0]` returns the cumulative donations amounts for all requests that are seeking background (Trait Type 0) with Trait ID 1 (i.e. the actual background value) for Noun ID 99. The value in `pledges[0][2]` is in the total amount that has been pledged to Recipient ID 2.
     * - If the Noun on auction was ID 101, there would additionally be return values for Noun 100, the non-auctioned Noun minted at the same time and `nonAuctionedNounPledges` would be populated
     *
     * - Cases for eligible matched Nouns:
     *
     * - `Current Noun ID | Eligible Noun ID`
     * - `----------------|-------------------`
     * - `            101 | 99 (*skips 100)`
     * - `            102 | 101, 100 (*includes 100)`
     * - `            103 | 102`
     * @return auctionedNounId The ID of the Noun that is was auctioned
     * @return nonAuctionedNounId If two Nouns were minted, this will be the ID of the non-auctioned Noun, otherwise uint16.max (65,535)
     * @return auctionedNounPledges Total pledges for the eligible auctioned Noun as a nested arrays in the order Trait Type and Recipient ID
     * @return nonAuctionedNounPledges If two Nouns were minted, this will contain the total pledges for the previous non-auctioned Noun as a nested arrays in the order Trait Type and Recipient ID
     * @return auctionNounTotalReimbursement An array of settler's reimbursement that will be sent if a Trait Type is matched to the auctioned Noun, indexed by Trait Type
     * @return nonAuctionNounTotalReimbursement An array of settler's reimbursement that will be sent if a Trait Type is matched to the non-auctioned Noun, indexed by Trait Type
     */
    function pledgesForMatchableNoun()
        public
        view
        returns (
            uint16 auctionedNounId,
            uint16 nonAuctionedNounId,
            uint256[][5] memory auctionedNounPledges,
            uint256[][5] memory nonAuctionedNounPledges,
            uint256[5] memory auctionNounTotalReimbursement,
            uint256[5] memory nonAuctionNounTotalReimbursement
        )
    {
        // The Noun ID of the previous to the current Noun on auction
        auctionedNounId = uint16(auctionHouse.auction().nounId) - 1;
        // Setup a parameter to detect if a non-auctioned Noun should be matched
        nonAuctionedNounId = UINT16_MAX;

        // If the previous Noun is non-auctioned, set the ID to the the preceeding Noun
        // Example:
        //   Current Noun: 101
        //   Previous Noun: 100
        //   `auctionedNounId` should be 99
        if (_isNonAuctionedNoun(auctionedNounId)) {
            auctionedNounId = auctionedNounId - 1;
        }
        // If the previous Noun to the previous auctioned Noun is non-auctioned, set the non-auctioned Noun ID to the preceeding Noun
        // Example:
        //   Current Noun: 102
        //   Previous Noun: 101
        //   `nonAuctionedNounId` should be 100
        if (_isNonAuctionedNoun(auctionedNounId - 1)) {
            nonAuctionedNounId = auctionedNounId - 1;
        }

        uint256 recipientsCount = _recipients.length;

        auctionedNounPledges = _pledgesForOnChainNoun({
            nounId: auctionedNounId,
            includeAnyId: true,
            recipientsCount: recipientsCount
        });

        bool includeNonAuctionedNoun = nonAuctionedNounId < UINT16_MAX;

        if (includeNonAuctionedNoun) {
            nonAuctionedNounPledges = _pledgesForOnChainNoun({
                nounId: nonAuctionedNounId,
                includeAnyId: true,
                recipientsCount: recipientsCount
            });
        }
        uint256[5] memory auctionedNounPledgesTotal;
        uint256[5] memory nonAuctionedNounPledgesTotal;

        for (uint256 trait; trait < 5; trait++) {
            for (
                uint256 recipientId;
                recipientId < recipientsCount;
                recipientId++
            ) {
                auctionedNounPledgesTotal[trait] += auctionedNounPledges[trait][
                    recipientId
                ];
                if (includeNonAuctionedNoun) {
                    nonAuctionedNounPledgesTotal[
                        trait
                    ] += nonAuctionedNounPledges[trait][recipientId];
                }
            }
            (
                ,
                auctionNounTotalReimbursement[trait]
            ) = _effectiveHighPrecisionBPSForPledgeTotal(
                auctionedNounPledgesTotal[trait]
            );
            (
                ,
                nonAuctionNounTotalReimbursement[trait]
            ) = _effectiveHighPrecisionBPSForPledgeTotal(
                nonAuctionedNounPledgesTotal[trait]
            );
        }
    }

    /**
     * @notice Get all raw Requests (without status, includes deleted Requests)
     * @dev Exists for low-level queries. The function { requestsByAddress } is better in most use-cases
     * @param requester The address of the requester
     * @return requests An array of Request structs
     */
    function rawRequestsByAddress(
        address requester
    ) public view returns (Request[] memory requests) {
        requests = _requests[requester];
    }

    /**
     * @notice Get a specific raw Request (without status, includes deleted Requests)
     * @dev Exists for low-level queries. The function { requestsByAddress } is better in most use-cases
     * @param request The address of the requester
     * @param requestId The ID of the request
     * @return request The Request struct
     */
    function rawRequestById(
        address requester,
        uint256 requestId
    ) public view returns (Request memory request) {
        request = _requests[requester][requestId];
    }

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * WRITE FUNCTIONS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Create a request for the specific trait and specific or open Noun ID payable to the specified Recipient.
     * @dev `msg.value` is used as the pledged Request amount
     * @param trait Trait Type the request is for (see `Traits` Enum)
     * @param traitId ID of the specified Trait that the request is for
     * @param nounId the Noun ID the request is targeted for. Can be (1) any specific Noun ID, (2) the value of `ANY_AUCTION_ID` if the pledge can target any auctioned Noun, or (3) the value of `ANY_NON_AUCTION_ID` if the pledge can target any non-auctioned Noun
     * @param recipientId the ID of the Recipient that should receive the pledged amount if a Noun matching the parameters is minted
     * @return requestId The ID of this requests for msg.sender's address
     */
    function add(
        Traits trait,
        uint16 traitId,
        uint16 nounId,
        uint16 recipientId
    ) public payable whenNotPaused returns (uint256 requestId) {
        if (msg.value < minValue) {
            revert ValueTooLow();
        }

        requestId = _add(trait, traitId, nounId, recipientId, msg.value, "");
    }

    /**
     * @notice Create a request with a logged message for the specific trait and specific or open Noun ID payable to the specified Recipient. `messageValue` is sent immediately to the recipient and cannot be refunded.
     * @dev The message cost is subtracted from `msg.value` and transfered immediately to the specified Recipient.
     * The remaining value is stored as the pledged Request amount.
     * @param trait Trait Type the request is for (see `Traits` Enum)
     * @param traitId ID of the specified Trait that the request is for
     * @param nounId the Noun ID the request is targeted for. Can be (1) any specific Noun ID, (2) the value of `ANY_AUCTION_ID` if the pledge can target any auctioned Noun, or (3) the value of `ANY_NON_AUCTION_ID` if the pledge can target any non-auctioned Noun
     * @param recipientId the ID of the Recipient that should receive the pledge if a Noun matching the parameters is minted
     * @param message The message to log
     * @return requestId The ID of this requests for msg.sender's address
     */
    function addWithMessage(
        Traits trait,
        uint16 traitId,
        uint16 nounId,
        uint16 recipientId,
        string memory message
    ) public payable whenNotPaused returns (uint256 requestId) {
        if (msg.value < minValue + messageValue) {
            revert ValueTooLow();
        }

        requestId = _add(
            trait,
            traitId,
            nounId,
            recipientId,
            msg.value - messageValue, // Registered pledged amount that does not include `messageValue`
            message
        );

        // Immediately send `messageValue` to recipient
        _safeTransferETHWithFallback(_recipients[recipientId].to, messageValue);
    }

    /**
     * @notice Remove the specified request and return the associated amount.
     * @dev Must be called by the Requester's address.
     * If the Request has already been settled/donation was sent to the Recipient or the current auction is ending soon, this will revert (See { _getRequestStatusAndParams } for calculations)
     * If the Recipient of the Request is marked as inactive, the funds can be returned immediately
     * @param requestId Request Id
     * @param amount The amount sent to the requester
     */
    function remove(uint256 requestId) public returns (uint256 amount) {
        Request memory request = _requests[msg.sender][requestId];
        RequestStatus status;
        bytes32 hash;
        uint16 nounId;

        (status, hash, nounId) = _getRequestStatusAndParams(request);

        if (status == RequestStatus.CAN_REMOVE) {
            return _remove(request, requestId, hash);
        } else if (status == RequestStatus.PLEDGE_SENT) {
            revert PledgeSent();
        } else if (status == RequestStatus.REMOVED) {
            revert AlreadyRemoved();
        } else if (status == RequestStatus.AUCTION_ENDING_SOON) {
            revert AuctionEndingSoon();
        } else if (status == RequestStatus.MATCH_FOUND) {
            revert MatchFound(nounId);
        } else {
            revert();
        }
    }

    /**
     * @notice Sends pledged amounts to recipients by matching a requested trait to an eligible Noun. A portion of the pledged amount is sent to `msg.sender` to offset the gas costs of settling.
     * @dev
     * - Only eligible Noun Ids are accepted. An eligible Noun Id is for the immediately preceeding auctioned Noun, or non-auctioned Noun if it was minted at the same time.
     * - Specifying a Noun Id for an auctioned Noun will match requests for `ANY_AUCTION_ID` in addition to requests for `nounId`.
     * - Specifying a Noun Id for a non-auctioned Noun will match requests for `ANY_NON_AUCTION_ID` in addition to requests for `nounId`.
     *
     * - Cases for eligible matched Nouns:
     *
     * - `Current Noun ID | Eligible Noun ID`
     * - `----------------|-------------------`
     * - `            101 | 99 (*skips 100), ANY_AUCTION_ID`
     * - `            102 | 101, 100 (*includes 100),  ANY_AUCTION_ID, ANY_NON_AUCTION_ID`
     * - `            103 | 102, ANY_AUCTION_ID`
     * @param trait The Trait Type to fetch from an eligible Noun (see `Traits` Enum)
     * @param matchAuctionedNoun If `true` fetch the trait from the previous auctioned Noun. If `false` fetch the trait from the previous non-auctioned Noun.
     * @param recipientIds An array of recipient IDs that have been pledged an amount if a Noun matches the specified trait.
     * @return total Total donated funds before reimbursement
     * @return reimbursement Reimbursement amount
     */
    function settle(
        Traits trait,
        bool matchAuctionedNoun,
        uint16[] memory recipientIds
    ) public whenNotPaused returns (uint256 total, uint256 reimbursement) {
        // The Noun ID of the previous to the current Noun on auction
        uint16 nounId = uint16(auctionHouse.auction().nounId) - 1;

        if (matchAuctionedNoun) {
            // If the previous Noun is non-auctioned, set the ID to the the preceeding Noun
            // Example:
            //   Current Noun on Auction: 101
            //   `nounId`: 100
            //   `nounId` should be 99
            if (_isNonAuctionedNoun(nounId)) {
                nounId = nounId - 1;
            }
        } else {
            // If the previous Noun is non-auctioned, it's ineligible because it was minted at the same time as the current Noun
            // Example:
            //   Current Noun on Auction: 101
            //   `nounId`: 100
            if (_isNonAuctionedNoun(nounId)) {
                revert IneligibleNounId();
            }

            // Get the previous, previous Noun ID
            nounId = nounId - 1;

            // If this Noun is auctioned, then there is no non-auctioned Noun that can be matched.
            if (_isAuctionedNoun(nounId)) {
                revert IneligibleNounId();
            }
        }

        uint16 traitId = _fetchOnChainNounTraitId(trait, nounId);

        uint256[] memory donations;
        (donations, total) = _combineAmountsAndDelete(
            trait,
            traitId,
            nounId,
            recipientIds,
            matchAuctionedNoun
        );

        if (total < 1) {
            revert NoMatch();
        }

        (uint256 effectiveBPS, ) = _effectiveHighPrecisionBPSForPledgeTotal(
            total
        );

        for (uint256 i; i < _recipients.length; i++) {
            uint256 amount = donations[i];
            if (amount < 1) {
                continue;
            }
            uint256 donation = (amount * (1_000_000 - effectiveBPS)) /
                1_000_000;
            reimbursement += amount - donation;
            donations[i] = donation;
            _safeTransferETHWithFallback(_recipients[i].to, donation);
        }
        emit Donated(donations);

        _safeTransferETHWithFallback(msg.sender, reimbursement);
        emit Reimbursed({settler: msg.sender, amount: reimbursement});
    }

    /**
     * @notice Update local Trait counts based on Noun Descriptor totals
     */
    function updateTraitCounts() public {
        INounsDescriptorLike descriptor = INounsDescriptorLike(
            nouns.descriptor()
        );

        backgroundCount = uint16(descriptor.backgroundCount());
        bodyCount = uint16(descriptor.bodyCount());
        accessoryCount = uint16(descriptor.accessoryCount());
        headCount = uint16(descriptor.headCount());
        glassesCount = uint16(descriptor.glassesCount());
    }

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * OWNER FUNCTIONS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Add a Recipient by specifying the name and address funds should be sent to
     * @dev Adds a Recipient to the recipients set and activates the Recipient
     * @param name The Recipient's name that should be displayed to users/consumers
     * @param to Address that funds should be sent to in order to fund the Recipient
     */
    function addRecipient(
        string calldata name,
        address to,
        string calldata description
    ) external onlyOwner {
        uint16 recipientId = uint16(_recipients.length);
        _recipients.push(Recipient({name: name, to: to, active: true}));
        emit RecipientAdded({
            recipientId: recipientId,
            name: name,
            to: to,
            description: description
        });
    }

    /**
     * @notice Toggles a Recipient's active state by its index within the set, reverts if Recipient is not configured
     * @param recipientId Recipient id based on its index within the recipients set
     * @param active Active state
     * @dev If the Done is not configured, a revert will be triggered
     */
    function setRecipientActive(
        uint256 recipientId,
        bool active
    ) external onlyOwner {
        if (active == _recipients[recipientId].active) return;
        _recipients[recipientId].active = active;
        emit RecipientActiveStatusChanged({
            recipientId: recipientId,
            active: active
        });
    }

    /**
     * @notice Sets the minium value that can be pledged
     * @param newMinValue new minimum value
     */
    function setMinValue(uint256 newMinValue) external onlyOwner {
        // minimum Request value cannot be less than minimum reimbursement
        if (newMinValue < minReimbursement) revert();
        minValue = newMinValue;
        emit MinValueChanged(newMinValue);
    }

    /**
     * @notice Sets the cost of registering a message
     * @param newMessageValue new message cost
     */
    function setMessageValue(uint256 newMessageValue) external onlyOwner {
        messageValue = newMessageValue;
        emit MessageValueChanged(newMessageValue);
    }

    /**
     * @notice Sets the standard reimbursement basis points
     * @param newReimbursementBPS new basis point value
     */
    function setReimbursementBPS(
        uint16 newReimbursementBPS
    ) external onlyOwner {
        // BPS cannot be less than 0.1% or greater than 10%
        if (newReimbursementBPS < 10 || newReimbursementBPS > 1000) {
            revert();
        }
        baseReimbursementBPS = newReimbursementBPS;
        emit ReimbursementBPSChanged(newReimbursementBPS);
    }

    /**
     * @notice Sets the minium reimbursement amount when settling
     * @param newMinReimbursement new minimum value
     */
    function setMinReimbursement(
        uint256 newMinReimbursement
    ) external onlyOwner {
        // Reimbursement cannot be greater than minimum Request value
        if (newMinReimbursement > minValue) revert();
        // Prevent owner from setting reimbursement too high.
        if (newMinReimbursement > 0.05 ether) revert();
        minReimbursement = newMinReimbursement;
        emit MinReimbursementChanged(newMinReimbursement);
    }

    /**
     * @notice Sets the maximum reimbursement amount when settling
     * @param newMaxReimbursement new maximum value
     */
    function setMaxReimbursement(
        uint256 newMaxReimbursement
    ) external onlyOwner {
        // Prevent owner from setting reimbursement too high.
        if (newMaxReimbursement > 1 ether) revert();
        maxReimbursement = newMaxReimbursement;
        emit MaxReimbursementChanged(newMaxReimbursement);
    }

    /**
     * @notice Pauses the NounScout contract. Pausing can be reversed by unpausing.
     */
    function pause() external onlyOwner {
        _pause();
    }

    /**
     * @notice Unpauses (resumes) the NounScout contract. Unpausing can be reversed by pausing.
     */
    function unpause() external onlyOwner {
        _unpause();
    }

    /**
     * @notice Sets reverse ENS name
     */
    function setENSReverseName(
        address ensReverseResolver,
        string memory name
    ) external onlyOwner {
        ENSReverseResolver(ensReverseResolver).setName(name);
    }

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * INTERNAL WRITE FUNCTIONS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Creates a Request
     * @dev logs `RequestAdded`
     */
    function _add(
        Traits trait,
        uint16 traitId,
        uint16 nounId,
        uint16 recipientId,
        uint256 amount,
        string memory message
    ) internal returns (uint256 requestId) {
        if (!_recipients[recipientId].active) {
            revert InactiveRecipient();
        }

        bytes32 hash = traitHash(trait, traitId, nounId);

        PledgeGroup memory pledge = pledgeGroups[hash][recipientId];
        pledge.amount += uint240(amount);
        pledgeGroups[hash][recipientId] = pledge;

        requestId = _requests[msg.sender].length;

        _requests[msg.sender].push(
            Request({
                recipientId: recipientId,
                trait: trait,
                traitId: traitId,
                nounId: nounId,
                pledgeGroupId: pledge.id,
                amount: uint128(amount)
            })
        );

        emit RequestAdded({
            requestId: requestId,
            requester: msg.sender,
            trait: trait,
            traitId: traitId,
            recipientId: recipientId,
            nounId: nounId,
            pledgeGroupId: pledge.id,
            traitsHash: hash,
            amount: amount,
            message: message
        });
    }

    /**
     * @notice Deletes a Request
     * @dev Sends funds
     * Logs `RequestRemoved`
     */
    function _remove(
        Request memory request,
        uint256 requestId,
        bytes32 hash
    ) internal returns (uint256 amount) {
        amount = request.amount;

        delete _requests[msg.sender][requestId];

        emit RequestRemoved({
            requestId: requestId,
            requester: msg.sender,
            trait: request.trait,
            traitId: request.traitId,
            nounId: request.nounId,
            pledgeGroupId: request.pledgeGroupId,
            recipientId: request.recipientId,
            traitsHash: hash,
            amount: amount
        });

        pledgeGroups[hash][request.recipientId].amount -= uint240(amount);
        _safeTransferETHWithFallback(msg.sender, amount);

        return amount;
    }

    /**
     * @notice Retrieves requests with params `trait`, `traitId`, and `nounId` to calculate pledge and reimubersement amounts, sets a new PledgeGroup record with amount set to 0 and pledgeGroupId increased by 1.
     * @param trait The trait type requests should match (see `Traits` Enum)
     * @param traitId Specific Trait ID
     * @param nounId Specific Noun ID
     * @param recipientIds Specific set of recipients
     * @param matchAuctionedNoun If `true` matching Noun is auctioned. If `false` matching Noun is non-auctioned.
     * @return pledges Mutated pledges array
     * @return total total
     */
    function _combineAmountsAndDelete(
        Traits trait,
        uint16 traitId,
        uint16 nounId,
        uint16[] memory recipientIds,
        bool matchAuctionedNoun
    ) internal returns (uint256[] memory pledges, uint256 total) {
        // Lookup specific and Open ID requests
        uint16[2] memory nounIds = [
            nounId,
            matchAuctionedNoun ? ANY_AUCTION_ID : ANY_NON_AUCTION_ID
        ];
        pledges = new uint256[](_recipients.length);

        // Loop through `nounIds` (hashing the `nounId`, `trait`, and `traitId`) to then inner loop through `recipientIds` to lookup pledged amounts
        for (uint16 i; i < nounIds.length; i++) {
            bytes32 hash = traitHash(trait, traitId, nounIds[i]);
            uint256 traitTotal;

            for (uint16 j; j < recipientIds.length; j++) {
                // Inactive recipients cannot be sent funds
                if (!_recipients[recipientIds[j]].active) continue;

                PledgeGroup memory pledge = pledgeGroups[hash][recipientIds[j]];

                // Request was previously matched and funds were previously sent to this recipient OR no pledges for this recipient
                if (pledge.amount < 1) {
                    continue;
                }

                traitTotal += pledge.amount;
                total += pledge.amount;
                pledges[recipientIds[j]] += pledge.amount;

                pledgeGroups[hash][recipientIds[j]] = PledgeGroup({
                    id: pledge.id + 1,
                    amount: 0
                });
            }

            if (traitTotal < 1) {
                continue;
            }

            emit Matched({
                trait: trait,
                traitId: traitId,
                nounId: nounId,
                traitsHash: hash
            });
        }
    }

    /** @title
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     * INTERNAL READ FUNCTIONS
     * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
     */

    /**
     * @notice Get cumulative pledge amounts for each Recipient scoped by Noun Id, Trait Type, and Trait Id
     */
    function _pledgesForNounIdByTraitId(
        Traits trait,
        uint16 traitId,
        uint16 nounId,
        bool includeAnyId,
        uint256 recipientsCount
    ) internal view returns (uint256[] memory pledges) {
        unchecked {
            bool[] memory isActive = _mapRecipientActive(recipientsCount);

            bytes32 hash = traitHash(trait, traitId, nounId);
            bytes32 anyIdHash;
            bool processAnyId = includeAnyId &&
                nounId != ANY_AUCTION_ID &&
                nounId != ANY_NON_AUCTION_ID;
            if (processAnyId) {
                anyIdHash = traitHash(
                    trait,
                    traitId,
                    _isAuctionedNoun(nounId)
                        ? ANY_AUCTION_ID
                        : ANY_NON_AUCTION_ID
                );
            }
            pledges = new uint256[](recipientsCount);
            for (
                uint16 recipientId;
                recipientId < recipientsCount;
                recipientId++
            ) {
                if (!isActive[recipientId]) continue;
                uint256 anyIdAmount = processAnyId
                    ? pledgeGroups[anyIdHash][recipientId].amount
                    : 0;
                pledges[recipientId] =
                    pledgeGroups[hash][recipientId].amount +
                    anyIdAmount;
            }
        }
    }

    /**
     * @notice For an on-chain Noun, get cumulative pledge amounts that would match its seed
     */
    function _pledgesForOnChainNoun(
        uint16 nounId,
        bool includeAnyId,
        uint256 recipientsCount
    ) internal view returns (uint256[][5] memory pledges) {
        INounsSeederLike.Seed memory seed = nouns.seeds(nounId);
        for (uint256 trait; trait < 5; trait++) {
            Traits traitEnum = Traits(trait);
            uint16 traitId;
            if (traitEnum == Traits.BACKGROUND) {
                traitId = uint16(seed.background);
            } else if (traitEnum == Traits.BODY) {
                traitId = uint16(seed.body);
            } else if (traitEnum == Traits.ACCESSORY) {
                traitId = uint16(seed.accessory);
            } else if (traitEnum == Traits.HEAD) {
                traitId = uint16(seed.head);
            } else if (traitEnum == Traits.GLASSES) {
                traitId = uint16(seed.glasses);
            }

            pledges[trait] = _pledgesForNounIdByTraitId(
                traitEnum,
                traitId,
                nounId,
                includeAnyId,
                recipientsCount
            );
        }
    }

    /**
     * @notice Generates a RequestStatus based on state of the Request, match data, and auction data
     * @dev RequestStatus calculations:
     * - REMOVED: the request amount is 0
     * - PLEDGE_SENT: A Noun was minted with the Request parameters and has been matched
     * - AUCTION_ENDING_SOON: The auction end time falls within the AUCTION_END_LIMIT
     * - MATCH_FOUND: The current or previous Noun matches the Request parameters
     * - MATCH_FOUND Case 1) The current Noun on auction has the requested traits
     * - MATCH_FOUND Case 2) The previous Noun has the requested traits
     * - MATCH_FOUND Case 2b) If the previous Noun is non-auctioned, the previous previous has the requested traits
     * - MATCH_FOUND: Case 3) A Non-Auctioned Noun which matches the request.nounId is the previous previous Noun

     * ```
     * Case # | Example Noun ID | Ineligible Noun ID
     * -------|---------|-------------------
     *    1,3 |     101 | 101, 99 (*skips 100)
     *  1,2,2b|     102 | 102, 101, 100 (*includes 100)
     *    1,2 |     103 | 103, 102
     * ```
     *
     * - CAN_REMOVE: Recipient is inactive and Request has not been matched
     *   - OR Request has not been matched and auction is not ending
     *   - OR Request has not been matched, auction is not ending, and the current or prevous Noun does not match the Request parameters
    //

     * @param request Request to analyze
     * @return requestStatus RequestStatus Enum
     * @return hash generated trait hash to minimize gas ussage
     * @return nounId
     */
    function _getRequestStatusAndParams(
        Request memory request
    )
        internal
        view
        returns (RequestStatus requestStatus, bytes32 hash, uint16 nounId)
    {
        if (request.amount < 1) {
            return (RequestStatus.REMOVED, hash, nounId);
        }

        hash = traitHash(request.trait, request.traitId, request.nounId);

        if (paused()) {
            return (RequestStatus.CAN_REMOVE, hash, nounId);
        }

        uint16 recipientId = request.recipientId;

        // If current pledgeGroup's ID is different than the ID the request was part of, the pledge has been sent
        bool matched = pledgeGroups[hash][recipientId].id >
            request.pledgeGroupId;

        // Recipient is inactive (and/or was inactive at the time of match) and there are funds to return
        if (!_recipients[recipientId].active && !matched)
            return (RequestStatus.CAN_REMOVE, hash, nounId);

        // Recipient was active at time of match, no funds to return
        if (matched) return (RequestStatus.PLEDGE_SENT, hash, nounId);

        // Cannot executed within a time period from an auction's end
        if (
            block.timestamp + AUCTION_END_LIMIT >=
            auctionHouse.auction().endTime
        ) {
            return (RequestStatus.AUCTION_ENDING_SOON, hash, nounId);
        }

        nounId = uint16(auctionHouse.auction().nounId);

        // Case 1
        if (requestMatchesNoun(request, nounId)) {
            return (RequestStatus.MATCH_FOUND, hash, nounId);
        }

        uint16 prevNounId = nounId - 1;
        uint16 prevPrevNounId = nounId - 2;

        // Case 2
        if (_isAuctionedNoun(prevNounId)) {
            if (requestMatchesNoun(request, prevNounId))
                return (RequestStatus.MATCH_FOUND, hash, prevNounId);
            // Case 2b
            if (_isNonAuctionedNoun(prevPrevNounId)) {
                if (requestMatchesNoun(request, prevPrevNounId))
                    return (RequestStatus.MATCH_FOUND, hash, prevPrevNounId);
            }
        } else {
            // Case 3
            if (requestMatchesNoun(request, prevPrevNounId))
                return (RequestStatus.MATCH_FOUND, hash, prevPrevNounId);
        }
    }

    /**
     * @notice Is the specified Noun ID not eligible to be auctioned
     */
    function _isNonAuctionedNoun(uint256 nounId) internal pure returns (bool) {
        return nounId % 10 < 1 && nounId <= 1820;
    }

    /**
     * @notice Is the specified Noun ID eligible to be auctioned
     */
    function _isAuctionedNoun(uint16 nounId) internal pure returns (bool) {
        return nounId % 10 > 0 || nounId > 1820;
    }

    /**
     * @notice Get the specified on-chain Noun's seed and return the Trait ID for a Trait Type
     */
    function _fetchOnChainNounTraitId(
        Traits trait,
        uint16 nounId
    ) internal view returns (uint16 traitId) {
        if (trait == Traits.BACKGROUND) {
            traitId = uint16(nouns.seeds(nounId).background);
        } else if (trait == Traits.BODY) {
            traitId = uint16(nouns.seeds(nounId).body);
        } else if (trait == Traits.ACCESSORY) {
            traitId = uint16(nouns.seeds(nounId).accessory);
        } else if (trait == Traits.HEAD) {
            traitId = uint16(nouns.seeds(nounId).head);
        } else if (trait == Traits.GLASSES) {
            traitId = uint16(nouns.seeds(nounId).glasses);
        }
    }

    /**
     * @notice Calculate the reimbursement amount and the basis point value for a total, bound to the maximum and minimum reimbursement amount.
     * @dev Use the `baseReimbursementBPS` to calculate a reimbursement amount.
     * If the amount is above the maximum reimbursement allowed, or below the minimum reimbursement allowed,
     * set the the reimbursement amount to the max or min, and calculate the required basis point value to achieve the reimbursement
     * @param total The total amount reimbursement should be based on
     * @return effectiveBPS The basis point value used to calculate the reimbursement given the total
     * @return reimbursement The amount to reimburse based on the total and effectiveBPS
     */
    function _effectiveHighPrecisionBPSForPledgeTotal(
        uint256 total
    ) internal view returns (uint256 effectiveBPS, uint256 reimbursement) {
        if (total < 1) {
            return (effectiveBPS, reimbursement);
        }

        // Add 2 digits extra precision to better derive `effectiveBPS` from total
        // Extra precision basis point = 10_000 * 100 = 1_000_000
        effectiveBPS = baseReimbursementBPS * 100;
        reimbursement = (total * effectiveBPS) / 1_000_000;

        // When the default reimbursement is above the maximum reimbursement amount
        if (reimbursement > maxReimbursement) {
            // set the reimbursement to the maximum amount and derive the effective basis point value
            effectiveBPS = (maxReimbursement * 1_000_000) / total;
            reimbursement = maxReimbursement;
            // When the default reimbursement is below the minimum reimbursement amount
            // and the total is greater than the minimum reimbursement amount
        } else if (
            reimbursement < minReimbursement && total > minReimbursement
        ) {
            // set the reimbursement to the minimum amount and derive the effective basis point value
            effectiveBPS = (minReimbursement * 1_000_000) / total;
            reimbursement = minReimbursement;
        }
    }

    /**
     * @notice Maps array of Recipients to array of active status booleans
     * @param recipientsCount Cached length of _recipients array
     * @return isActive Array of active status booleans
     */
    function _mapRecipientActive(
        uint256 recipientsCount
    ) internal view returns (bool[] memory isActive) {
        unchecked {
            isActive = new bool[](recipientsCount);
            for (uint256 i; i < recipientsCount; i++) {
                isActive[i] = _recipients[i].active;
            }
        }
    }

    /**
     * @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)) {
            weth.deposit{value: amount}();
            weth.transfer(to, amount);
        }
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.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 Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Ownable.sol";

/**
 * @dev Contract module which provides 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} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() external {
        address sender = _msgSender();
        require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
        _transferOwnership(sender);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.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 Pausable is Context {
    /**
     * @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.
     */
    constructor() {
        _paused = false;
    }

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @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 Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;

interface INounsAuctionHouseLike {
    struct Auction {
        uint256 nounId;
        uint256 amount;
        uint256 startTime;
        uint256 endTime;
        address payable bidder;
        bool settled;
    }

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

    function settleCurrentAndCreateNewAuction() external;
}

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

interface INounsDescriptorLike {
    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);
}

interface INounsTokenLike {
    function descriptor() external view returns (address);

    function seeds(
        uint256 nounId
    ) external view returns (INounsSeederLike.Seed memory);
}

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256 wad) external;

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

interface ENSReverseResolver {
    function setName(string memory) external returns (bytes32);
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract INounsTokenLike","name":"_nouns","type":"address"},{"internalType":"contract INounsAuctionHouseLike","name":"_auctionHouse","type":"address"},{"internalType":"contract IWETH","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyRemoved","type":"error"},{"inputs":[],"name":"AuctionEndingSoon","type":"error"},{"inputs":[],"name":"InactiveRecipient","type":"error"},{"inputs":[],"name":"IneligibleNounId","type":"error"},{"inputs":[{"internalType":"uint16","name":"nounId","type":"uint16"}],"name":"MatchFound","type":"error"},{"inputs":[],"name":"NoMatch","type":"error"},{"inputs":[],"name":"PledgeSent","type":"error"},{"inputs":[],"name":"ValueTooLow","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"donations","type":"uint256[]"}],"name":"Donated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"indexed":false,"internalType":"uint16","name":"traitId","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"nounId","type":"uint16"},{"indexed":true,"internalType":"bytes32","name":"traitsHash","type":"bytes32"}],"name":"Matched","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxReimbursement","type":"uint256"}],"name":"MaxReimbursementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMessageValue","type":"uint256"}],"name":"MessageValueChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinReimbursement","type":"uint256"}],"name":"MinReimbursementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinValue","type":"uint256"}],"name":"MinValueChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":"uint256","name":"recipientId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"RecipientActiveStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"recipientId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"RecipientAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"settler","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Reimbursed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newReimbursementBPS","type":"uint256"}],"name":"ReimbursementBPSChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"indexed":false,"internalType":"uint16","name":"traitId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"recipientId","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"nounId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"pledgeGroupId","type":"uint16"},{"indexed":true,"internalType":"bytes32","name":"traitsHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"RequestAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"indexed":false,"internalType":"uint16","name":"traitId","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"nounId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"pledgeGroupId","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"recipientId","type":"uint16"},{"indexed":true,"internalType":"bytes32","name":"traitsHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RequestRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ANY_AUCTION_ID","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ANY_NON_AUCTION_ID","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_END_LIMIT","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"accessoryCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"uint16","name":"recipientId","type":"uint16"}],"name":"add","outputs":[{"internalType":"uint256","name":"requestId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"description","type":"string"}],"name":"addRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"uint16","name":"recipientId","type":"uint16"},{"internalType":"string","name":"message","type":"string"}],"name":"addWithMessage","outputs":[{"internalType":"uint256","name":"requestId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"auctionHouse","outputs":[{"internalType":"contract INounsAuctionHouseLike","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"backgroundCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseReimbursementBPS","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bodyCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"name":"effectiveBPSAndReimbursementForPledgeTotal","outputs":[{"internalType":"uint256","name":"effectiveBPS","type":"uint256"},{"internalType":"uint256","name":"reimbursement","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"glassesCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"headCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReimbursement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"messageValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minReimbursement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nouns","outputs":[{"internalType":"contract INounsTokenLike","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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"uint16","name":"","type":"uint16"}],"name":"pledgeGroups","outputs":[{"internalType":"uint240","name":"amount","type":"uint240"},{"internalType":"uint16","name":"id","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pledgesForMatchableNoun","outputs":[{"internalType":"uint16","name":"auctionedNounId","type":"uint16"},{"internalType":"uint16","name":"nonAuctionedNounId","type":"uint16"},{"internalType":"uint256[][5]","name":"auctionedNounPledges","type":"uint256[][5]"},{"internalType":"uint256[][5]","name":"nonAuctionedNounPledges","type":"uint256[][5]"},{"internalType":"uint256[5]","name":"auctionNounTotalReimbursement","type":"uint256[5]"},{"internalType":"uint256[5]","name":"nonAuctionNounTotalReimbursement","type":"uint256[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"bool","name":"includeAnyId","type":"bool"},{"components":[{"internalType":"uint48","name":"background","type":"uint48"},{"internalType":"uint48","name":"body","type":"uint48"},{"internalType":"uint48","name":"accessory","type":"uint48"},{"internalType":"uint48","name":"head","type":"uint48"},{"internalType":"uint48","name":"glasses","type":"uint48"}],"internalType":"struct INounsSeederLike.Seed[]","name":"excludeSeeds","type":"tuple[]"}],"name":"pledgesForNounId","outputs":[{"internalType":"uint256[][][5]","name":"pledges","type":"uint256[][][5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"bool","name":"includeAnyId","type":"bool"},{"internalType":"uint16[]","name":"excludeTraitIds","type":"uint16[]"}],"name":"pledgesForNounIdByTrait","outputs":[{"internalType":"uint256[][]","name":"pledgesByTraitId","type":"uint256[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"bool","name":"includeAnyId","type":"bool"}],"name":"pledgesForNounIdByTraitId","outputs":[{"internalType":"uint256[]","name":"pledges","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pledgesForNounOnAuction","outputs":[{"internalType":"uint16","name":"currentAuctionId","type":"uint16"},{"internalType":"uint16","name":"prevNonAuctionId","type":"uint16"},{"internalType":"uint256[][5]","name":"currentAuctionPledges","type":"uint256[][5]"},{"internalType":"uint256[][5]","name":"prevNonAuctionPledges","type":"uint256[][5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"bool","name":"includeAnyId","type":"bool"}],"name":"pledgesForOnChainNoun","outputs":[{"internalType":"uint256[][5]","name":"pledges","type":"uint256[][5]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pledgesForUpcomingNoun","outputs":[{"internalType":"uint16","name":"nextAuctionId","type":"uint16"},{"internalType":"uint16","name":"nextNonAuctionId","type":"uint16"},{"internalType":"uint256[][][5]","name":"nextAuctionPledges","type":"uint256[][][5]"},{"internalType":"uint256[][][5]","name":"nextNonAuctionPledges","type":"uint256[][][5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"requester","type":"address"},{"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"rawRequestById","outputs":[{"components":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"recipientId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"uint16","name":"pledgeGroupId","type":"uint16"},{"internalType":"uint128","name":"amount","type":"uint128"}],"internalType":"struct NounScout.Request","name":"request","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"requester","type":"address"}],"name":"rawRequestsByAddress","outputs":[{"components":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"recipientId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"uint16","name":"pledgeGroupId","type":"uint16"},{"internalType":"uint128","name":"amount","type":"uint128"}],"internalType":"struct NounScout.Request[]","name":"requests","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recipients","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct NounScout.Recipient[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"remove","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"recipientId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"uint16","name":"pledgeGroupId","type":"uint16"},{"internalType":"uint128","name":"amount","type":"uint128"}],"internalType":"struct NounScout.Request","name":"request","type":"tuple"},{"internalType":"uint16","name":"nounId","type":"uint16"}],"name":"requestMatchesNoun","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"requester","type":"address"}],"name":"requestsByAddress","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"recipientId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"enum NounScout.RequestStatus","name":"status","type":"uint8"}],"internalType":"struct NounScout.RequestWithStatus[]","name":"requests","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ensReverseResolver","type":"address"},{"internalType":"string","name":"name","type":"string"}],"name":"setENSReverseName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxReimbursement","type":"uint256"}],"name":"setMaxReimbursement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMessageValue","type":"uint256"}],"name":"setMessageValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinReimbursement","type":"uint256"}],"name":"setMinReimbursement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinValue","type":"uint256"}],"name":"setMinValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"recipientId","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"name":"setRecipientActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newReimbursementBPS","type":"uint16"}],"name":"setReimbursementBPS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"bool","name":"matchAuctionedNoun","type":"bool"},{"internalType":"uint16[]","name":"recipientIds","type":"uint16[]"}],"name":"settle","outputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"reimbursement","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum NounScout.Traits","name":"trait","type":"uint8"},{"internalType":"uint16","name":"traitId","type":"uint16"},{"internalType":"uint16","name":"nounId","type":"uint16"}],"name":"traitHash","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"stateMutability":"pure","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":[],"name":"updateTraitCounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e06040526001805461ffff60a81b1916607d60a91b179055660aa87bee53800060025567016345785d8a0000600355662386f26fc10000600455678ac7230489e800006005553480156200005357600080fd5b50604051620064cb380380620064cb83398101604081905262000076916200043d565b6200008133620000ba565b6001805460ff60a01b191690556001600160a01b0380841660805282811660a052811660c052620000b1620000e4565b505050620004d2565b600180546001600160a01b0319169055620000e181620003d7602090811b6200310617901c565b50565b60006080516001600160a01b031663303e74df6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000127573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014d919062000491565b9050806001600160a01b0316634531c0a86040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200018e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b49190620004b8565b600760006101000a81548161ffff021916908361ffff160217905550806001600160a01b031663eba818066040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200020f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002359190620004b8565b600760026101000a81548161ffff021916908361ffff160217905550806001600160a01b0316634daebac26040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000290573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002b69190620004b8565b600760046101000a81548161ffff021916908361ffff160217905550806001600160a01b031663cc2aa0916040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000311573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003379190620004b8565b600760066101000a81548161ffff021916908361ffff160217905550806001600160a01b0316634479cef26040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000392573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003b89190620004b8565b600760086101000a81548161ffff021916908361ffff16021790555050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000e157600080fd5b6000806000606084860312156200045357600080fd5b8351620004608162000427565b6020850151909350620004738162000427565b6040850151909250620004868162000427565b809150509250925092565b600060208284031215620004a457600080fd5b8151620004b18162000427565b9392505050565b600060208284031215620004cb57600080fd5b5051919050565b60805160a05160c051615f52620005796000396000818161048801528181613af30152613ba1015260008181610a6201528181611a5101528181611d9901528181611e98015281816123010152818161338001526134220152600081816103c30152818161118e01528181611b9b01528181611c5e01528181613c8001528181613fd70152818161409d015281816141660152818161422f01526142f80152615f526000f3fe60806040526004361061033f5760003560e01c80638da5cb5b116101b0578063c1bbb6a8116100ec578063e577d5af11610095578063ed9152c81161006f578063ed9152c814610a50578063f28fc4f514610a84578063f2fde38b14610ab1578063f716fb8f14610ad157600080fd5b8063e577d5af146109ed578063e916f23c14610a02578063eba8180614610a2f57600080fd5b8063d8d8bcbf116100c6578063d8d8bcbf1461099a578063db91774c146109af578063e30c3978146109cf57600080fd5b8063c1bbb6a814610914578063c50d003d14610948578063cc2aa0911461097557600080fd5b8063a5574d5211610159578063aa103d2111610133578063aa103d211461089a578063b7bef20a146108ad578063b9582e16146108d4578063baa12a19146108f457600080fd5b8063a5574d5214610844578063a79a5c0314610864578063a9761fe81461087a57600080fd5b80639710dee11161018a5780639710dee1146107c257806397f77703146107f7578063a53ab9a41461081757600080fd5b80638da5cb5b14610769578063963e63c71461078757806396f5104e1461079d57600080fd5b80634daebac21161027f578063758005611161022857806379ba50971161020257806379ba5097146106ed5780637b185e2c146107025780637ca587f61461072f5780638456cb591461075457600080fd5b8063758005611461068a5780637858ef4a146106b7578063794e05c7146106d757600080fd5b806361bed3601161025957806361bed360146105a757806363b3d833146105bc578063715018a61461067557600080fd5b80634daebac214610532578063551a3c11146105555780635c975abb1461056b57600080fd5b80633692ac1e116102ec5780634479cef2116102c65780634479cef2146104aa5780634531c0a8146104e45780634cc82215146104ff5780634d10f0cd1461051f57600080fd5b80633692ac1e146104415780633f4ba83a146104615780633fc8cef31461047657600080fd5b80632de45f181161031d5780632de45f18146103b15780632f924d58146103fd578063340e62f41461041d57600080fd5b806301dfc5b01461034457806307a56ad4146103665780630e57d4ce14610386575b600080fd5b34801561035057600080fd5b5061036461035f366004614b11565b610afe565b005b34801561037257600080fd5b50610364610381366004614cae565b610bc8565b34801561039257600080fd5b5061039b610c5d565b6040516103a89190614d62565b60405180910390f35b3480156103bd57600080fd5b506103e57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016103a8565b34801561040957600080fd5b50610364610418366004614e0c565b610d8c565b34801561042957600080fd5b5061043360025481565b6040519081526020016103a8565b34801561044d57600080fd5b5061036461045c366004614e3c565b610dd0565b34801561046d57600080fd5b50610364610e76565b34801561048257600080fd5b506103e57f000000000000000000000000000000000000000000000000000000000000000081565b3480156104b657600080fd5b506007546104d19068010000000000000000900461ffff1681565b60405161ffff90911681526020016103a8565b3480156104f057600080fd5b506007546104d19061ffff1681565b34801561050b57600080fd5b5061043361051a366004614e0c565b610e88565b61043361052d366004614e66565b6110cf565b34801561053e57600080fd5b506007546104d190640100000000900461ffff1681565b34801561056157600080fd5b5061043360035481565b34801561057757600080fd5b5060015474010000000000000000000000000000000000000000900460ff165b60405190151581526020016103a8565b3480156105b357600080fd5b5061036461118a565b3480156105c857600080fd5b5061063c6105d7366004614ee6565b60086020908152600092835260408084209091529082529020547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116907e01000000000000000000000000000000000000000000000000000000000000900461ffff1682565b604080517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909316835261ffff9091166020830152016103a8565b34801561068157600080fd5b50610364611489565b34801561069657600080fd5b506106aa6106a5366004614f12565b61149b565b6040516103a89190614fb3565b3480156106c357600080fd5b506104336106d2366004614fc6565b6114bc565b3480156106e357600080fd5b506104d161012c81565b3480156106f957600080fd5b506103646114f2565b34801561070e57600080fd5b5061072261071d366004615009565b61159a565b6040516103a89190615099565b34801561073b57600080fd5b50610744611a3a565b6040516103a894939291906151cf565b34801561076057600080fd5b50610364611d74565b34801561077557600080fd5b506000546001600160a01b03166103e5565b34801561079357600080fd5b5061043360045481565b3480156107a957600080fd5b506107b2611d84565b6040516103a89493929190615213565b3480156107ce57600080fd5b506107e26107dd366004614e0c565b611e64565b604080519283526020830191909152016103a8565b34801561080357600080fd5b506107e26108123660046152e2565b611e87565b34801561082357600080fd5b50610837610832366004615342565b6121b1565b6040516103a89190615398565b34801561085057600080fd5b5061036461085f366004614e0c565b6121c5565b34801561087057600080fd5b5061043360055481565b34801561088657600080fd5b50610364610895366004614e0c565b612217565b6104336108a83660046153ab565b612277565b3480156108b957600080fd5b506108c26122da565b6040516103a896959493929190615428565b3480156108e057600080fd5b506103646108ef3660046154cb565b61257c565b34801561090057600080fd5b5061059761090f366004615550565b6126b7565b34801561092057600080fd5b506001546104d1907501000000000000000000000000000000000000000000900461ffff1681565b34801561095457600080fd5b50610968610963366004615614565b6127c0565b6040516103a89190615738565b34801561098157600080fd5b506007546104d1906601000000000000900461ffff1681565b3480156109a657600080fd5b506104d1600081565b3480156109bb57600080fd5b506103646109ca366004614e0c565b612b7a565b3480156109db57600080fd5b506001546001600160a01b03166103e5565b3480156109f957600080fd5b506104d1600181565b348015610a0e57600080fd5b50610a22610a1d36600461574b565b612bc6565b6040516103a891906157bc565b348015610a3b57600080fd5b506007546104d19062010000900461ffff1681565b348015610a5c57600080fd5b506103e57f000000000000000000000000000000000000000000000000000000000000000081565b348015610a9057600080fd5b50610aa4610a9f366004615009565b612e69565b6040516103a89190615834565b348015610abd57600080fd5b50610364610acc366004615009565b612f76565b348015610add57600080fd5b50610af1610aec366004615882565b612fff565b6040516103a891906158ae565b610b0661316e565b60068281548110610b1957610b196158bc565b906000526020600020906002020160010160149054906101000a900460ff1615158115150315610bc4578060068381548110610b5757610b576158bc565b906000526020600020906002020160010160146101000a81548160ff0219169083151502179055507fddac97a185665b25d4ba097f8be6684ec8182b4ad58afd62bd856ba1e00c9db28282604051610bbb9291909182521515602082015260400190565b60405180910390a15b5050565b610bd061316e565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b0383169063c47f002790610c159084906004016158eb565b6020604051808303816000875af1158015610c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5891906158fe565b505050565b60606006805480602002602001604051908101604052809291908181526020016000905b82821015610d835783829060005260206000209060020201604051806060016040529081600082018054610cb490615917565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce090615917565b8015610d2d5780601f10610d0257610100808354040283529160200191610d2d565b820191906000526020600020905b815481529060010190602001808311610d1057829003601f168201915b50505091835250506001918201546001600160a01b0381166020808401919091527401000000000000000000000000000000000000000090910460ff161515604090920191909152918352929092019101610c81565b50505050905090565b610d9461316e565b60058190556040518181527fd8198275da288dc07843675a27007f055219c9ce38c74667c5a5fbdd0007b2c5906020015b60405180910390a150565b610dd861316e565b600a8161ffff161080610df057506103e88161ffff16115b15610dfa57600080fd5b600180547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff16750100000000000000000000000000000000000000000061ffff8416908102919091179091556040519081527fcbfd05e51cf929ea5cf03d4eabaaacac967676d5dbf6835e27f6b6878466576e90602001610dc5565b610e7e61316e565b610e866131e2565b565b336000908152600960205260408120805482919084908110610eac57610eac6158bc565b600091825260209091206040805160c0810190915291018054829060ff166004811115610edb57610edb615026565b6004811115610eec57610eec615026565b8152905461ffff61010082048116602084015263010000008204811660408401526501000000000082048116606084015267010000000000000082041660808301526fffffffffffffffffffffffffffffffff69010000000000000000009091041660a090910152905060008080610f6384613252565b919450925090506000836004811115610f7e57610f7e615026565b03610f9857610f8e848784613568565b9695505050505050565b6002836004811115610fac57610fac615026565b03610fe3576040517fc737eb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001836004811115610ff757610ff7615026565b0361102e576040517fab5bea8e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600383600481111561104257611042615026565b03611079576040517f0f70cbab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600483600481111561108d5761108d615026565b0361033f576040517fed35d8bc00000000000000000000000000000000000000000000000000000000815261ffff821660048201526024015b60405180910390fd5b60006110d96136e2565b6005546004546110e99190615993565b341015611122576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61113d868686866005543461113791906159a6565b87613767565b905061118160068461ffff1681548110611159576111596158bc565b60009182526020909120600160029092020101546005546001600160a01b0390911690613ae3565b95945050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663303e74df6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120e91906159b9565b9050806001600160a01b0316634531c0a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561124e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127291906158fe565b600760006101000a81548161ffff021916908361ffff160217905550806001600160a01b031663eba818066040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f091906158fe565b600760026101000a81548161ffff021916908361ffff160217905550806001600160a01b0316634daebac26040518163ffffffff1660e01b8152600401602060405180830381865afa15801561134a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136e91906158fe565b600760046101000a81548161ffff021916908361ffff160217905550806001600160a01b031663cc2aa0916040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ec91906158fe565b600760066101000a81548161ffff021916908361ffff160217905550806001600160a01b0316634479cef26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611446573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146a91906158fe565b600760086101000a81548161ffff021916908361ffff16021790555050565b61149161316e565b610e866000613c12565b6114a3614abe565b6114b38383600680549050613c43565b90505b92915050565b60008383836040516020016114d3939291906159d6565b6040516020818303038152906040528051906020012090509392505050565b60015433906001600160a01b0316811461158e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016110c6565b61159781613c12565b50565b6001600160a01b03811660009081526009602052604081205460609190818167ffffffffffffffff8111156115d1576115d1614b56565b6040519080825280602002602001820160405280156115fa578160200160208202803683370190505b50905060008267ffffffffffffffff81111561161857611618614b56565b604051908082528060200260200182016040528015611641578160200160208202803683370190505b50905060005b838110156117c6576001600160a01b0387166000908152600960205260408120805483908110611679576116796158bc565b600091825260209091206040805160c0810190915291018054829060ff1660048111156116a8576116a8615026565b60048111156116b9576116b9615026565b8152905461ffff61010082048116602084015263010000008204811660408401526501000000000082048116606084015267010000000000000082041660808301526fffffffffffffffffffffffffffffffff69010000000000000000009091041660a0909101529050600061172e82613252565b509091506001905081600481111561174857611748615026565b036117545750506117be565b82858881518110611767576117676158bc565b60200260200101818152505080848881518110611786576117866158bc565b6020026020010190600481111561179f5761179f615026565b908160048111156117b2576117b2615026565b90525050600190950194505b600101611647565b508367ffffffffffffffff8111156117e0576117e0614b56565b60405190808252806020026020018201604052801561184757816020015b6040805160e08101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c082015282526000199092019101816117fe5790505b50945060005b84811015611a30576001600160a01b03871660009081526009602052604081208451859084908110611881576118816158bc565b602002602001015181548110611899576118996158bc565b600091825260209091206040805160c0810190915291018054829060ff1660048111156118c8576118c8615026565b60048111156118d9576118d9615026565b81529054610100810461ffff9081166020840152630100000082048116604080850191909152650100000000008304821660608501526701000000000000008304909116608084015269010000000000000000009091046fffffffffffffffffffffffffffffffff1660a090920191909152805160e08101909152855191925090819086908590811061196e5761196e6158bc565b602002602001015181526020018260000151600481111561199157611991615026565b8152602001826020015161ffff168152602001826040015161ffff168152602001826060015161ffff1681526020018260a001516fffffffffffffffffffffffffffffffff1681526020018484815181106119ee576119ee6158bc565b60200260200101516004811115611a0757611a07615026565b815250878381518110611a1c57611a1c6158bc565b60209081029190910101525060010161184d565b5050505050919050565b600080611a45614abe565b611a4d614abe565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa158015611aad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad191906159fc565b5160018101955061ffff945090506000198101611aef858216613e07565b15611af957600019015b611b068661ffff16613e07565b15611b1357600186019594505b60408051600280825260608201909252600091816020015b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611b2b579050506040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff851660048201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e9190615a85565b81600081518110611c2157611c216158bc565b60209081029190910101526040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa158015611cad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd19190615a85565b81600181518110611ce457611ce46158bc565b6020026020010181905250611cfb876001836127c0565b945061ffff8681161015611d6b5760408051600080825260208201909252611d68918891600191611d62565b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611d275790505b506127c0565b93505b50505090919293565b611d7c61316e565b610e86613e27565b600080611d8f614abe565b611d97614abe565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa158015611df5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1991906159fc565b5160065490945061ffff9350611e3185600183613c43565b9250611e436001860361ffff16613e07565b15611e5d57600185039350611e5a84600183613c43565b91505b5090919293565b600080611e7083613e96565b9092509050611e80606483615b4c565b9150915091565b600080611e926136e2565b600060017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa158015611ef4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1891906159fc565b51611f239190615b60565b90508415611f5057611f388161ffff16613e07565b15611f4b57611f48600182615b60565b90505b611fe1565b611f5d8161ffff16613e07565b15611f94576040517f757e0f7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f9f600182615b60565b9050611faa81613f64565b15611fe1576040517f757e0f7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611fed8783613f8b565b90506060611ffe888385898b614376565b95509050600185101561203d576040517f2d011ca700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061204886613e96565b50905060005b60065481101561212e57600083828151811061206c5761206c6158bc565b602002602001015190506001811015612085575061211c565b6000620f424061209585826159a6565b61209f9084615b82565b6120a99190615b4c565b90506120b581836159a6565b6120bf9089615993565b9750808584815181106120d4576120d46158bc565b602002602001018181525050612119600684815481106120f6576120f66158bc565b60009182526020909120600160029092020101546001600160a01b031682613ae3565b50505b8061212681615b99565b91505061204e565b507f0e72bccee71ffea49962c8ff3ebe6927136c3d79e3d3e0a9b237dc7c8d3107558260405161215e9190615398565b60405180910390a16121703386613ae3565b60405185815233907ff760aec175743ca0c53529dffdac9f6837eac527b397e14a128eaff3f9105bec9060200160405180910390a250505050935093915050565b606061118185858585600680549050614773565b6121cd61316e565b670de0b6b3a76400008111156121e257600080fd5b60038190556040518181527fe32a81814e2a5f7383c89af4d9b28109f9085d8dd4ff3c5187bdbac732bc0a0e90602001610dc5565b61221f61316e565b60045481111561222e57600080fd5b66b1a2bc2ec5000081111561224257600080fd5b60028190556040518181527f7708ce2bf09ce11f61dd89ded3911d4a034c4613a997dac62650c955844afab790602001610dc5565b60006122816136e2565b6004543410156122bd576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611181858585853460405180602001604052806000815250613767565b6000806122e5614abe565b6122ed614abe565b6122f5614ae5565b6122fd614ae5565b60017f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa15801561235d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238191906159fc565b5161238c9190615b60565b955061ffff94506123a08661ffff16613e07565b156123b3576123b0600187615b60565b95505b6123ca6123c1600188615b60565b61ffff16613e07565b156123dd576123da600187615b60565b94505b6006546123ec87600183613c43565b945061ffff86811610801561240a5761240787600184613c43565b94505b612412614ae5565b61241a614ae5565b60005b600581101561256f5760005b858110156124f657898260058110612443576124436158bc565b60200201518181518110612459576124596158bc565b6020026020010151848360058110612473576124736158bc565b602002018181516124849190615993565b90525084156124e45788826005811061249f5761249f6158bc565b602002015181815181106124b5576124b56158bc565b60200260200101518383600581106124cf576124cf6158bc565b602002018181516124e09190615993565b9052505b806124ee81615b99565b915050612429565b5061251683826005811061250c5761250c6158bc565b6020020151613e96565b905087826005811061252a5761252a6158bc565b602002015261254482826005811061250c5761250c6158bc565b9050868260058110612558576125586158bc565b60200201528061256781615b99565b91505061241d565b5050505050909192939495565b61258461316e565b600680546040805160806020601f8a0181900402820181019092526060810188815292939290918291908a908a908190850183828082843760009201829052509385525050506001600160a01b038816602080840191909152600160409093018390528454928301855593815292909220815191926002020190819061260a9082615c01565b50602082015160019091018054604093840151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff0000000000000000000000000000000000000000009091166001600160a01b0390931692909217919091179055517fe9f47d8649ca1fd11d02eee6cf2e53a05e0c7b9236ad78d31b773994b632e0f9906126a790839089908990899089908990615d28565b60405180910390a1505050505050565b600061ffff821615806126ce575061ffff82166001145b15612705576040517f757e0f7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606083015161ffff16158015906127255750606083015161ffff16600114155b801561273d57508161ffff16836060015161ffff1614155b1561274a575060006114b6565b606083015161ffff1615801561276857506127688261ffff16613e07565b15612775575060006114b6565b606083015161ffff166001148015612791575061279182613f64565b1561279e575060006114b6565b82516127aa9083613f8b565b61ffff16836020015161ffff1614905092915050565b6127c8614abe565b815160008167ffffffffffffffff8111156127e5576127e5614b56565b60405190808252806020026020018201604052801561280e578160200160208202803683370190505b50905060005b6005811015612b705760008082600481111561283257612832615026565b9050600081600481111561284857612848615026565b0361285b5760075461ffff169150612917565b600181600481111561286f5761286f615026565b036128885760075462010000900461ffff169150612917565b600281600481111561289c5761289c615026565b036128b757600754640100000000900461ffff169150612917565b60038160048111156128cb576128cb615026565b036128e8576007546601000000000000900461ffff169150612917565b60048160048111156128fc576128fc615026565b036129175760075468010000000000000000900461ffff1691505b60005b85811015612ad357600082600481111561293657612936615026565b036129865787818151811061294d5761294d6158bc565b60200260200101516000015185828151811061296b5761296b6158bc565b602002602001019061ffff16908161ffff1681525050612ac1565b600182600481111561299a5761299a615026565b036129cf578781815181106129b1576129b16158bc565b60200260200101516020015185828151811061296b5761296b6158bc565b60028260048111156129e3576129e3615026565b03612a18578781815181106129fa576129fa6158bc565b60200260200101516040015185828151811061296b5761296b6158bc565b6003826004811115612a2c57612a2c615026565b03612a6157878181518110612a4357612a436158bc565b60200260200101516060015185828151811061296b5761296b6158bc565b6004826004811115612a7557612a75615026565b03612ac157878181518110612a8c57612a8c6158bc565b602002602001015160800151858281518110612aaa57612aaa6158bc565b602002602001019061ffff16908161ffff16815250505b80612acb81615b99565b91505061291a565b508167ffffffffffffffff811115612aed57612aed614b56565b604051908082528060200260200182016040528015612b2057816020015b6060815260200190600190039081612b0b5790505b50868460058110612b3357612b336158bc565b6020020152612b44818a8a87612bc6565b868460058110612b5657612b566158bc565b602002015250819050612b6881615b99565b915050612814565b5050509392505050565b612b8261316e565b600254811015612b9157600080fd5b60048190556040518181527f602c0b6dec543ffc3ad2ea97c0617262660f6a61286ec63f00a4dcc057f6f42890602001610dc5565b6060600080866004811115612bdd57612bdd615026565b03612bef575060075461ffff16612ca7565b6001866004811115612c0357612c03615026565b03612c1b575060075462010000900461ffff16612ca7565b6002866004811115612c2f57612c2f615026565b03612c495750600754640100000000900461ffff16612ca7565b6003866004811115612c5d57612c5d615026565b03612c7957506007546601000000000000900461ffff16612ca7565b6004866004811115612c8d57612c8d615026565b03612ca7575060075468010000000000000000900461ffff165b60065461ffff821667ffffffffffffffff811115612cc757612cc7614b56565b604051908082528060200260200182016040528015612cfa57816020015b6060815260200190600190039081612ce55790505b50845190935060005b8361ffff168161ffff161015612e5d576000805b83811015612d5457878181518110612d3157612d316158bc565b602002602001015161ffff168361ffff1603612d4c57600191505b600101612d17565b508015612e2557600061ffff8a1615801590612d75575061ffff8a16600114155b9050808015612d815750885b15612dba57612d948b848c600089614773565b878461ffff1681518110612daa57612daa6158bc565b6020026020010181905250612e1f565b8467ffffffffffffffff811115612dd357612dd3614b56565b604051908082528060200260200182016040528015612dfc578160200160208202803683370190505b50878461ffff1681518110612e1357612e136158bc565b60200260200101819052505b50612e54565b612e328a838b8b88614773565b868361ffff1681518110612e4857612e486158bc565b60200260200101819052505b50600101612d03565b50505050949350505050565b6001600160a01b0381166000908152600960209081526040808320805482518185028101850190935280835260609492939192909184015b82821015612f6b576000848152602090206040805160c081019091529083018054829060ff166004811115612ed857612ed8615026565b6004811115612ee957612ee9615026565b81529054610100810461ffff9081166020808501919091526301000000830482166040850152650100000000008304821660608501526701000000000000008304909116608084015269010000000000000000009091046fffffffffffffffffffffffffffffffff1660a0909201919091529082526001929092019101612ea1565b505050509050919050565b612f7e61316e565b600180546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fc76000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a083018290526001600160a01b03861682526009905291909120805483908110613057576130576158bc565b600091825260209091206040805160c0810190915291018054829060ff16600481111561308657613086615026565b600481111561309757613097615026565b8152905461ffff61010082048116602084015263010000008204811660408401526501000000000082048116606084015267010000000000000082041660808301526fffffffffffffffffffffffffffffffff69010000000000000000009091041660a0909101529392505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314610e86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110c6565b6131ea614923565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080600060018460a001516fffffffffffffffffffffffffffffffff16101561327f5760019250613561565b6132968460000151856020015186606001516114bc565b60015490925074010000000000000000000000000000000000000000900460ff16156132c55760009250613561565b604080850151608086015160008581526008602090815284822061ffff8086168085529190925294909120546006805494959383167e0100000000000000000000000000000000000000000000000000000000000090920490921611929091908110613333576133336158bc565b906000526020600020906002020160010160149054906101000a900460ff1615801561335d575080155b1561336d57600094505050613561565b801561337e57600294505050613561565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa1580156133dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061340091906159fc565b6060015161341061012c42615993565b1061342057600394505050613561565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa15801561347e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134a291906159fc565b5192506134af86846126b7565b156134bf57600494505050613561565b60006134cc600185615b60565b905060006134db600286615b60565b90506134e682613f64565b1561353e576134f588836126b7565b156135095750600495509250613561915050565b6135168161ffff16613e07565b156135395761352588826126b7565b156135395760049650935061356192505050565b61355c565b61354888826126b7565b1561355c5760049650935061356192505050565b505050505b9193909250565b60a083015133600090815260096020526040902080546fffffffffffffffffffffffffffffffff90921691849081106135a3576135a36158bc565b60009182526020918290200180547fffffffffffffff00000000000000000000000000000000000000000000000000169055606085015185519186015160808701516040808901519051879561ffff9095169433947f0c51eb173c08cfdc6776f6f6fbd78b9a2e0ffc0f37331b4fa541a734827aa77394613627948c948b90615d75565b60405180910390a460008281526008602090815260408083208782015161ffff1684529091528120805483929061367f9084907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16615db0565b92506101000a8154817dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506136db3382613ae3565b9392505050565b60015474010000000000000000000000000000000000000000900460ff1615610e86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016110c6565b600060068461ffff1681548110613780576137806158bc565b906000526020600020906002020160010160149054906101000a900460ff166137d5576040517f8070022200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006137e28888886114bc565b600081815260086020908152604080832061ffff808b168552908352928190208151808301909252547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81168083527e01000000000000000000000000000000000000000000000000000000000000909104909316918101919091529192508590829061386e908390615de7565b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908116909152600084815260086020908152604080832061ffff808d1685529083528184208751848901519092167e01000000000000000000000000000000000000000000000000000000000000029190951617909355338252600990528190208054825160c0810190935295509150808b600481111561391057613910615026565b815261ffff808c166020808401919091528a821660408401528b821660608401528581015190911660808301526fffffffffffffffffffffffffffffffff891660a09092019190915282546001818101855560009485529190932082519301805492939092909183917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016908360048111156139ae576139ae615026565b021790555060208201518160000160016101000a81548161ffff021916908361ffff16021790555060408201518160000160036101000a81548161ffff021916908361ffff16021790555060608201518160000160056101000a81548161ffff021916908361ffff16021790555060808201518160000160076101000a81548161ffff021916908361ffff16021790555060a08201518160000160096101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505050818761ffff16336001600160a01b03167f6214a8f2b375f6f1f1b67d86a634789cf4d04fba6f2b2558962cfab6947bb424868d8d8c88602001518d8d604051613acf9796959493929190615e1e565b60405180910390a450509695505050505050565b613aed82826149a7565b610bc4577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015613b4c57600080fd5b505af1158015613b60573d6000803e3d6000fd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af1158015613bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190615e68565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561159781613106565b613c4b614abe565b6040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff851660048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa158015613ccf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cf39190615a85565b905060005b6005811015613dfe576000816004811115613d1557613d15615026565b9050600080826004811115613d2c57613d2c615026565b03613d3957508251613dc5565b6001826004811115613d4d57613d4d615026565b03613d5d57506020830151613dc5565b6002826004811115613d7157613d71615026565b03613d8157506040830151613dc5565b6003826004811115613d9557613d95615026565b03613da557506060830151613dc5565b6004826004811115613db957613db9615026565b03613dc5575060808301515b613dd282828a8a8a614773565b858460058110613de457613de46158bc565b602002015250819050613df681615b99565b915050613cf8565b50509392505050565b60006001613e16600a84615e85565b1080156114b657505061071c101590565b613e2f6136e2565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132353390565b6000806001831015613ea757915091565b600154613ed2907501000000000000000000000000000000000000000000900461ffff166064615e99565b61ffff169150620f4240613ee68385615b82565b613ef09190615b4c565b9050600354811115613f245782600354620f4240613f0e9190615b82565b613f189190615b4c565b91506003549050915091565b60025481108015613f36575060025483115b15613f5f5782600254620f4240613f4d9190615b82565b613f579190615b4c565b915060025490505b915091565b600080613f72600a84615ebf565b61ffff1611806114b657505061071c61ffff9091161190565b600080836004811115613fa057613fa0615026565b03614052576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa158015614026573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061404a9190615a85565b5190506114b6565b600183600481111561406657614066615026565b0361411b576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa1580156140ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141109190615a85565b6020015190506114b6565b600283600481111561412f5761412f615026565b036141e4576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa1580156141b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d99190615a85565b6040015190506114b6565b60038360048111156141f8576141f8615026565b036142ad576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa15801561427e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142a29190615a85565b6060015190506114b6565b60048360048111156142c1576142c1615026565b036114b6576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f0503e809060240160a060405180830381865afa158015614347573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061436b9190615a85565b608001519392505050565b606060008060405180604001604052808761ffff1661ffff168152602001856143a05760016143a3565b60005b61ffff16905260065490915067ffffffffffffffff8111156143c7576143c7614b56565b6040519080825280602002602001820160405280156143f0578160200160208202803683370190505b50925060005b60028161ffff16101561476757600061442a8a8a858561ffff1660028110614420576144206158bc565b60200201516114bc565b90506000805b88518161ffff1610156146f2576006898261ffff1681518110614455576144556158bc565b602002602001015161ffff1681548110614471576144716158bc565b906000526020600020906002020160010160149054906101000a900460ff16156146e05760008381526008602052604081208a5182908c9061ffff86169081106144bd576144bd6158bc565b60209081029190910181015161ffff90811683528282019390935260409182016000208251808401909352547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81168084527e010000000000000000000000000000000000000000000000000000000000009091049093169082015291506001111561454757506146e0565b8051614573907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1684615993565b81519093506145a2907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1688615993565b965080600001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16888b8461ffff16815181106145e0576145e06158bc565b602002602001015161ffff16815181106145fc576145fc6158bc565b602002602001018181516146109190615993565b905250604080518082019091526000815260208281015190820190614636906001615ee0565b61ffff168152506008600086815260200190815260200160002060008c8561ffff1681518110614668576146686158bc565b60209081029190910181015161ffff9081168352828201939093526040909101600020835193909101519091167e01000000000000000000000000000000000000000000000000000000000000027dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055505b806146ea81615efb565b915050614430565b506001811015614703575050614755565b818961ffff168c600481111561471b5761471b615026565b60405161ffff8e1681527fb690ef6532bec37fea16dd1db06d467b28fbb2929396a7b8ae0c80edf36744639060200160405180910390a450505b8061475f81615efb565b9150506143f6565b50509550959350505050565b6060600061478083614a0a565b9050600061478f8888886114bc565b90506000808680156147a4575061ffff881615155b80156147b5575061ffff8816600114155b905080156147e0576147dd8a8a6147cb8b613f64565b6147d65760016114bc565b60006114bc565b91505b8567ffffffffffffffff8111156147f9576147f9614b56565b604051908082528060200260200182016040528015614822578160200160208202803683370190505b50945060005b868161ffff16101561491557848161ffff168151811061484a5761484a6158bc565b60200260200101511561490d576000826148655760006148a4565b600084815260086020908152604080832061ffff861684529091529020547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff165b600086815260086020908152604080832061ffff871680855292529091205489517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9384169450921683019189919081106148ff576148ff6158bc565b602002602001018181525050505b600101614828565b505050505095945050505050565b60015474010000000000000000000000000000000000000000900460ff16610e86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016110c6565b600080836001600160a01b03168361271090604051600060405180830381858888f193505050503d80600081146149fa576040519150601f19603f3d011682016040523d82523d6000602084013e6149ff565b606091505b509095945050505050565b60608167ffffffffffffffff811115614a2557614a25614b56565b604051908082528060200260200182016040528015614a4e578160200160208202803683370190505b50905060005b82811015614ab85760068181548110614a6f57614a6f6158bc565b906000526020600020906002020160010160149054906101000a900460ff16828281518110614aa057614aa06158bc565b91151560209283029190910190910152600101614a54565b50919050565b6040518060a001604052806005905b6060815260200190600190039081614acd5790505090565b6040518060a001604052806005906020820280368337509192915050565b801515811461159757600080fd5b60008060408385031215614b2457600080fd5b823591506020830135614b3681614b03565b809150509250929050565b6001600160a01b038116811461159757600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160c0810167ffffffffffffffff81118282101715614ba857614ba8614b56565b60405290565b60405160a0810167ffffffffffffffff81118282101715614ba857614ba8614b56565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614c1857614c18614b56565b604052919050565b600082601f830112614c3157600080fd5b813567ffffffffffffffff811115614c4b57614c4b614b56565b614c7c60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601614bd1565b818152846020838601011115614c9157600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215614cc157600080fd5b8235614ccc81614b41565b9150602083013567ffffffffffffffff811115614ce857600080fd5b614cf485828601614c20565b9150509250929050565b6000815180845260005b81811015614d2457602081850181015186830182015201614d08565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015614dfe577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0898403018552815160608151818652614dcd82870182614cfe565b838b01516001600160a01b0316878c0152928901511515958901959095525094870194925090860190600101614d89565b509098975050505050505050565b600060208284031215614e1e57600080fd5b5035919050565b803561ffff81168114614e3757600080fd5b919050565b600060208284031215614e4e57600080fd5b6114b382614e25565b803560058110614e3757600080fd5b600080600080600060a08688031215614e7e57600080fd5b614e8786614e57565b9450614e9560208701614e25565b9350614ea360408701614e25565b9250614eb160608701614e25565b9150608086013567ffffffffffffffff811115614ecd57600080fd5b614ed988828901614c20565b9150509295509295909350565b60008060408385031215614ef957600080fd5b82359150614f0960208401614e25565b90509250929050565b60008060408385031215614f2557600080fd5b614f2e83614e25565b91506020830135614b3681614b03565b600081518084526020808501945080840160005b83811015614f6e57815187529582019590820190600101614f52565b509495945050505050565b60008260a081018360005b60058110156149ff578383038752614f9d838351614f3e565b6020978801979093509190910190600101614f84565b6020815260006114b36020830184614f79565b600080600060608486031215614fdb57600080fd5b614fe484614e57565b9250614ff260208501614e25565b915061500060408501614e25565b90509250925092565b60006020828403121561501b57600080fd5b81356136db81614b41565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110611597577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b61509581615055565b9052565b602080825282518282018190526000919060409081850190868401855b8281101561514057815180518552868101516150d181615055565b858801528086015161ffff908116878701526060808301518216908701526080808301519091169086015260a0808201516fffffffffffffffffffffffffffffffff169086015260c0908101519061512b8187018361508c565b505060e09390930192908501906001016150b6565b5091979650505050505050565b600081518084526020808501808196508360051b8101915082860160005b85811015615140578284038952615183848351614f3e565b9885019893509084019060010161516b565b60008260a081018360005b60058110156149ff5783830387526151b983835161514d565b60209788019790935091909101906001016151a0565b600061ffff8087168352808616602084015250608060408301526151f66080830185615195565b82810360608401526152088185615195565b979650505050505050565b600061ffff80871683528086166020840152506080604083015261523a6080830185614f79565b82810360608401526152088185614f79565b600067ffffffffffffffff82111561526657615266614b56565b5060051b60200190565b600082601f83011261528157600080fd5b813560206152966152918361524c565b614bd1565b82815260059290921b840181019181810190868411156152b557600080fd5b8286015b848110156152d7576152ca81614e25565b83529183019183016152b9565b509695505050505050565b6000806000606084860312156152f757600080fd5b61530084614e57565b9250602084013561531081614b03565b9150604084013567ffffffffffffffff81111561532c57600080fd5b61533886828701615270565b9150509250925092565b6000806000806080858703121561535857600080fd5b61536185614e57565b935061536f60208601614e25565b925061537d60408601614e25565b9150606085013561538d81614b03565b939692955090935050565b6020815260006114b36020830184614f3e565b600080600080608085870312156153c157600080fd5b6153ca85614e57565b93506153d860208601614e25565b92506153e660408601614e25565b91506153f460608601614e25565b905092959194509250565b8060005b6005811015615422578151845260209384019390910190600101615403565b50505050565b60006101c061ffff808a16845280891660208501525080604084015261545081840188614f79565b905082810360608401526154648187614f79565b91505061547460808301856153ff565b6152086101208301846153ff565b60008083601f84011261549457600080fd5b50813567ffffffffffffffff8111156154ac57600080fd5b6020830191508360208285010111156154c457600080fd5b9250929050565b6000806000806000606086880312156154e357600080fd5b853567ffffffffffffffff808211156154fb57600080fd5b61550789838a01615482565b90975095506020880135915061551c82614b41565b9093506040870135908082111561553257600080fd5b5061553f88828901615482565b969995985093965092949392505050565b60008082840360e081121561556457600080fd5b60c081121561557257600080fd5b5061557b614b85565b61558484614e57565b815261559260208501614e25565b60208201526155a360408501614e25565b60408201526155b460608501614e25565b60608201526155c560808501614e25565b608082015260a08401356fffffffffffffffffffffffffffffffff811681146155ed57600080fd5b60a08201529150614f0960c08401614e25565b65ffffffffffff8116811461159757600080fd5b6000806000606080858703121561562a57600080fd5b61563385614e25565b935060208086013561564481614b03565b935060408681013567ffffffffffffffff81111561566157600080fd5b8701601f8101891361567257600080fd5b80356156806152918261524c565b81815260a0918202830185019185820191908c84111561569f57600080fd5b938601935b838510156157265780858e0312156156bc5760008081fd5b6156c4614bae565b85356156cf81615600565b8152858801356156de81615600565b81890152858701356156ef81615600565b818801528589013561570081615600565b818a015260808681013561571381615600565b90820152835293840193918601916156a4565b50809750505050505050509250925092565b6020815260006114b36020830184615195565b6000806000806080858703121561576157600080fd5b61576a85614e57565b935061577860208601614e25565b9250604085013561578881614b03565b9150606085013567ffffffffffffffff8111156157a457600080fd5b6157b087828801615270565b91505092959194509250565b6020815260006114b3602083018461514d565b80516157da81615055565b80835250602081015161ffff808216602085015280604084015116604085015280606084015116606085015280608084015116608085015250506fffffffffffffffffffffffffffffffff60a08201511660a08301525050565b6020808252825182820181905260009190848201906040850190845b81811015615876576158638385516157cf565b9284019260c09290920191600101615850565b50909695505050505050565b6000806040838503121561589557600080fd5b82356158a081614b41565b946020939093013593505050565b60c081016114b682846157cf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020815260006114b36020830184614cfe565b60006020828403121561591057600080fd5b5051919050565b600181811c9082168061592b57607f821691505b602082108103614ab8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156114b6576114b6615964565b818103818111156114b6576114b6615964565b6000602082840312156159cb57600080fd5b81516136db81614b41565b606081016159e385615055565b93815261ffff9283166020820152911660409091015290565b600060c08284031215615a0e57600080fd5b60405160c0810181811067ffffffffffffffff82111715615a3157615a31614b56565b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151615a6681614b41565b608082015260a0830151615a7981614b03565b60a08201529392505050565b600060a08284031215615a9757600080fd5b60405160a0810181811067ffffffffffffffff82111715615aba57615aba614b56565b6040528251615ac881615600565b81526020830151615ad881615600565b60208201526040830151615aeb81615600565b60408201526060830151615afe81615600565b60608201526080830151615b1181615600565b60808201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615b5b57615b5b615b1d565b500490565b61ffff828116828216039080821115615b7b57615b7b615964565b5092915050565b80820281158282048414176114b6576114b6615964565b60006000198203615bac57615bac615964565b5060010190565b601f821115610c5857600081815260208120601f850160051c81016020861015615bda5750805b601f850160051c820191505b81811015615bf957828155600101615be6565b505050505050565b815167ffffffffffffffff811115615c1b57615c1b614b56565b615c2f81615c298454615917565b84615bb3565b602080601f831160018114615c645760008415615c4c5750858301515b600019600386901b1c1916600185901b178555615bf9565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015615cb157888601518255948401946001909101908401615c92565b5085821015615ccf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b61ffff87168152608060208201526000615d46608083018789615cdf565b6001600160a01b03861660408401528281036060840152615d68818587615cdf565b9998505050505050505050565b86815260c08101615d8587615055565b602082019690965261ffff948516604082015292841660608401529216608082015260a00152919050565b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff828116828216039080821115615b7b57615b7b615964565b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff818116838216019080821115615b7b57615b7b615964565b878152615e2a87615055565b866020820152600061ffff808816604084015280871660608401528086166080840152508360a083015260e060c0830152615d6860e0830184614cfe565b600060208284031215615e7a57600080fd5b81516136db81614b03565b600082615e9457615e94615b1d565b500690565b61ffff818116838216028082169190828114615eb757615eb7615964565b505092915050565b600061ffff80841680615ed457615ed4615b1d565b92169190910692915050565b61ffff818116838216019080821115615b7b57615b7b615964565b600061ffff808316818103615f1257615f12615964565b600101939250505056fea2646970667358221220295c2e14b7489ba2ca7ab0652deba56b6f9a3ab27351da806aff830f5b24841964736f6c634300081100330000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc03000000000000000000000000830bd73e4184cef73443c15111a1df14e495c706000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x60806040526004361061033f5760003560e01c80638da5cb5b116101b0578063c1bbb6a8116100ec578063e577d5af11610095578063ed9152c81161006f578063ed9152c814610a50578063f28fc4f514610a84578063f2fde38b14610ab1578063f716fb8f14610ad157600080fd5b8063e577d5af146109ed578063e916f23c14610a02578063eba8180614610a2f57600080fd5b8063d8d8bcbf116100c6578063d8d8bcbf1461099a578063db91774c146109af578063e30c3978146109cf57600080fd5b8063c1bbb6a814610914578063c50d003d14610948578063cc2aa0911461097557600080fd5b8063a5574d5211610159578063aa103d2111610133578063aa103d211461089a578063b7bef20a146108ad578063b9582e16146108d4578063baa12a19146108f457600080fd5b8063a5574d5214610844578063a79a5c0314610864578063a9761fe81461087a57600080fd5b80639710dee11161018a5780639710dee1146107c257806397f77703146107f7578063a53ab9a41461081757600080fd5b80638da5cb5b14610769578063963e63c71461078757806396f5104e1461079d57600080fd5b80634daebac21161027f578063758005611161022857806379ba50971161020257806379ba5097146106ed5780637b185e2c146107025780637ca587f61461072f5780638456cb591461075457600080fd5b8063758005611461068a5780637858ef4a146106b7578063794e05c7146106d757600080fd5b806361bed3601161025957806361bed360146105a757806363b3d833146105bc578063715018a61461067557600080fd5b80634daebac214610532578063551a3c11146105555780635c975abb1461056b57600080fd5b80633692ac1e116102ec5780634479cef2116102c65780634479cef2146104aa5780634531c0a8146104e45780634cc82215146104ff5780634d10f0cd1461051f57600080fd5b80633692ac1e146104415780633f4ba83a146104615780633fc8cef31461047657600080fd5b80632de45f181161031d5780632de45f18146103b15780632f924d58146103fd578063340e62f41461041d57600080fd5b806301dfc5b01461034457806307a56ad4146103665780630e57d4ce14610386575b600080fd5b34801561035057600080fd5b5061036461035f366004614b11565b610afe565b005b34801561037257600080fd5b50610364610381366004614cae565b610bc8565b34801561039257600080fd5b5061039b610c5d565b6040516103a89190614d62565b60405180910390f35b3480156103bd57600080fd5b506103e57f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc0381565b6040516001600160a01b0390911681526020016103a8565b34801561040957600080fd5b50610364610418366004614e0c565b610d8c565b34801561042957600080fd5b5061043360025481565b6040519081526020016103a8565b34801561044d57600080fd5b5061036461045c366004614e3c565b610dd0565b34801561046d57600080fd5b50610364610e76565b34801561048257600080fd5b506103e57f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b3480156104b657600080fd5b506007546104d19068010000000000000000900461ffff1681565b60405161ffff90911681526020016103a8565b3480156104f057600080fd5b506007546104d19061ffff1681565b34801561050b57600080fd5b5061043361051a366004614e0c565b610e88565b61043361052d366004614e66565b6110cf565b34801561053e57600080fd5b506007546104d190640100000000900461ffff1681565b34801561056157600080fd5b5061043360035481565b34801561057757600080fd5b5060015474010000000000000000000000000000000000000000900460ff165b60405190151581526020016103a8565b3480156105b357600080fd5b5061036461118a565b3480156105c857600080fd5b5061063c6105d7366004614ee6565b60086020908152600092835260408084209091529082529020547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116907e01000000000000000000000000000000000000000000000000000000000000900461ffff1682565b604080517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909316835261ffff9091166020830152016103a8565b34801561068157600080fd5b50610364611489565b34801561069657600080fd5b506106aa6106a5366004614f12565b61149b565b6040516103a89190614fb3565b3480156106c357600080fd5b506104336106d2366004614fc6565b6114bc565b3480156106e357600080fd5b506104d161012c81565b3480156106f957600080fd5b506103646114f2565b34801561070e57600080fd5b5061072261071d366004615009565b61159a565b6040516103a89190615099565b34801561073b57600080fd5b50610744611a3a565b6040516103a894939291906151cf565b34801561076057600080fd5b50610364611d74565b34801561077557600080fd5b506000546001600160a01b03166103e5565b34801561079357600080fd5b5061043360045481565b3480156107a957600080fd5b506107b2611d84565b6040516103a89493929190615213565b3480156107ce57600080fd5b506107e26107dd366004614e0c565b611e64565b604080519283526020830191909152016103a8565b34801561080357600080fd5b506107e26108123660046152e2565b611e87565b34801561082357600080fd5b50610837610832366004615342565b6121b1565b6040516103a89190615398565b34801561085057600080fd5b5061036461085f366004614e0c565b6121c5565b34801561087057600080fd5b5061043360055481565b34801561088657600080fd5b50610364610895366004614e0c565b612217565b6104336108a83660046153ab565b612277565b3480156108b957600080fd5b506108c26122da565b6040516103a896959493929190615428565b3480156108e057600080fd5b506103646108ef3660046154cb565b61257c565b34801561090057600080fd5b5061059761090f366004615550565b6126b7565b34801561092057600080fd5b506001546104d1907501000000000000000000000000000000000000000000900461ffff1681565b34801561095457600080fd5b50610968610963366004615614565b6127c0565b6040516103a89190615738565b34801561098157600080fd5b506007546104d1906601000000000000900461ffff1681565b3480156109a657600080fd5b506104d1600081565b3480156109bb57600080fd5b506103646109ca366004614e0c565b612b7a565b3480156109db57600080fd5b506001546001600160a01b03166103e5565b3480156109f957600080fd5b506104d1600181565b348015610a0e57600080fd5b50610a22610a1d36600461574b565b612bc6565b6040516103a891906157bc565b348015610a3b57600080fd5b506007546104d19062010000900461ffff1681565b348015610a5c57600080fd5b506103e57f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c70681565b348015610a9057600080fd5b50610aa4610a9f366004615009565b612e69565b6040516103a89190615834565b348015610abd57600080fd5b50610364610acc366004615009565b612f76565b348015610add57600080fd5b50610af1610aec366004615882565b612fff565b6040516103a891906158ae565b610b0661316e565b60068281548110610b1957610b196158bc565b906000526020600020906002020160010160149054906101000a900460ff1615158115150315610bc4578060068381548110610b5757610b576158bc565b906000526020600020906002020160010160146101000a81548160ff0219169083151502179055507fddac97a185665b25d4ba097f8be6684ec8182b4ad58afd62bd856ba1e00c9db28282604051610bbb9291909182521515602082015260400190565b60405180910390a15b5050565b610bd061316e565b6040517fc47f00270000000000000000000000000000000000000000000000000000000081526001600160a01b0383169063c47f002790610c159084906004016158eb565b6020604051808303816000875af1158015610c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5891906158fe565b505050565b60606006805480602002602001604051908101604052809291908181526020016000905b82821015610d835783829060005260206000209060020201604051806060016040529081600082018054610cb490615917565b80601f0160208091040260200160405190810160405280929190818152602001828054610ce090615917565b8015610d2d5780601f10610d0257610100808354040283529160200191610d2d565b820191906000526020600020905b815481529060010190602001808311610d1057829003601f168201915b50505091835250506001918201546001600160a01b0381166020808401919091527401000000000000000000000000000000000000000090910460ff161515604090920191909152918352929092019101610c81565b50505050905090565b610d9461316e565b60058190556040518181527fd8198275da288dc07843675a27007f055219c9ce38c74667c5a5fbdd0007b2c5906020015b60405180910390a150565b610dd861316e565b600a8161ffff161080610df057506103e88161ffff16115b15610dfa57600080fd5b600180547fffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffffff16750100000000000000000000000000000000000000000061ffff8416908102919091179091556040519081527fcbfd05e51cf929ea5cf03d4eabaaacac967676d5dbf6835e27f6b6878466576e90602001610dc5565b610e7e61316e565b610e866131e2565b565b336000908152600960205260408120805482919084908110610eac57610eac6158bc565b600091825260209091206040805160c0810190915291018054829060ff166004811115610edb57610edb615026565b6004811115610eec57610eec615026565b8152905461ffff61010082048116602084015263010000008204811660408401526501000000000082048116606084015267010000000000000082041660808301526fffffffffffffffffffffffffffffffff69010000000000000000009091041660a090910152905060008080610f6384613252565b919450925090506000836004811115610f7e57610f7e615026565b03610f9857610f8e848784613568565b9695505050505050565b6002836004811115610fac57610fac615026565b03610fe3576040517fc737eb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001836004811115610ff757610ff7615026565b0361102e576040517fab5bea8e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600383600481111561104257611042615026565b03611079576040517f0f70cbab00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600483600481111561108d5761108d615026565b0361033f576040517fed35d8bc00000000000000000000000000000000000000000000000000000000815261ffff821660048201526024015b60405180910390fd5b60006110d96136e2565b6005546004546110e99190615993565b341015611122576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61113d868686866005543461113791906159a6565b87613767565b905061118160068461ffff1681548110611159576111596158bc565b60009182526020909120600160029092020101546005546001600160a01b0390911690613ae3565b95945050505050565b60007f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b031663303e74df6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120e91906159b9565b9050806001600160a01b0316634531c0a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561124e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127291906158fe565b600760006101000a81548161ffff021916908361ffff160217905550806001600160a01b031663eba818066040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f091906158fe565b600760026101000a81548161ffff021916908361ffff160217905550806001600160a01b0316634daebac26040518163ffffffff1660e01b8152600401602060405180830381865afa15801561134a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136e91906158fe565b600760046101000a81548161ffff021916908361ffff160217905550806001600160a01b031663cc2aa0916040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ec91906158fe565b600760066101000a81548161ffff021916908361ffff160217905550806001600160a01b0316634479cef26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611446573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146a91906158fe565b600760086101000a81548161ffff021916908361ffff16021790555050565b61149161316e565b610e866000613c12565b6114a3614abe565b6114b38383600680549050613c43565b90505b92915050565b60008383836040516020016114d3939291906159d6565b6040516020818303038152906040528051906020012090509392505050565b60015433906001600160a01b0316811461158e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084016110c6565b61159781613c12565b50565b6001600160a01b03811660009081526009602052604081205460609190818167ffffffffffffffff8111156115d1576115d1614b56565b6040519080825280602002602001820160405280156115fa578160200160208202803683370190505b50905060008267ffffffffffffffff81111561161857611618614b56565b604051908082528060200260200182016040528015611641578160200160208202803683370190505b50905060005b838110156117c6576001600160a01b0387166000908152600960205260408120805483908110611679576116796158bc565b600091825260209091206040805160c0810190915291018054829060ff1660048111156116a8576116a8615026565b60048111156116b9576116b9615026565b8152905461ffff61010082048116602084015263010000008204811660408401526501000000000082048116606084015267010000000000000082041660808301526fffffffffffffffffffffffffffffffff69010000000000000000009091041660a0909101529050600061172e82613252565b509091506001905081600481111561174857611748615026565b036117545750506117be565b82858881518110611767576117676158bc565b60200260200101818152505080848881518110611786576117866158bc565b6020026020010190600481111561179f5761179f615026565b908160048111156117b2576117b2615026565b90525050600190950194505b600101611647565b508367ffffffffffffffff8111156117e0576117e0614b56565b60405190808252806020026020018201604052801561184757816020015b6040805160e08101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c082015282526000199092019101816117fe5790505b50945060005b84811015611a30576001600160a01b03871660009081526009602052604081208451859084908110611881576118816158bc565b602002602001015181548110611899576118996158bc565b600091825260209091206040805160c0810190915291018054829060ff1660048111156118c8576118c8615026565b60048111156118d9576118d9615026565b81529054610100810461ffff9081166020840152630100000082048116604080850191909152650100000000008304821660608501526701000000000000008304909116608084015269010000000000000000009091046fffffffffffffffffffffffffffffffff1660a090920191909152805160e08101909152855191925090819086908590811061196e5761196e6158bc565b602002602001015181526020018260000151600481111561199157611991615026565b8152602001826020015161ffff168152602001826040015161ffff168152602001826060015161ffff1681526020018260a001516fffffffffffffffffffffffffffffffff1681526020018484815181106119ee576119ee6158bc565b60200260200101516004811115611a0757611a07615026565b815250878381518110611a1c57611a1c6158bc565b60209081029190910101525060010161184d565b5050505050919050565b600080611a45614abe565b611a4d614abe565b60007f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c7066001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa158015611aad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad191906159fc565b5160018101955061ffff945090506000198101611aef858216613e07565b15611af957600019015b611b068661ffff16613e07565b15611b1357600186019594505b60408051600280825260608201909252600091816020015b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611b2b579050506040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff851660048201529091507f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e9190615a85565b81600081518110611c2157611c216158bc565b60209081029190910101526040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa158015611cad573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd19190615a85565b81600181518110611ce457611ce46158bc565b6020026020010181905250611cfb876001836127c0565b945061ffff8681161015611d6b5760408051600080825260208201909252611d68918891600191611d62565b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611d275790505b506127c0565b93505b50505090919293565b611d7c61316e565b610e86613e27565b600080611d8f614abe565b611d97614abe565b7f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c7066001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa158015611df5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1991906159fc565b5160065490945061ffff9350611e3185600183613c43565b9250611e436001860361ffff16613e07565b15611e5d57600185039350611e5a84600183613c43565b91505b5090919293565b600080611e7083613e96565b9092509050611e80606483615b4c565b9150915091565b600080611e926136e2565b600060017f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c7066001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa158015611ef4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1891906159fc565b51611f239190615b60565b90508415611f5057611f388161ffff16613e07565b15611f4b57611f48600182615b60565b90505b611fe1565b611f5d8161ffff16613e07565b15611f94576040517f757e0f7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f9f600182615b60565b9050611faa81613f64565b15611fe1576040517f757e0f7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611fed8783613f8b565b90506060611ffe888385898b614376565b95509050600185101561203d576040517f2d011ca700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061204886613e96565b50905060005b60065481101561212e57600083828151811061206c5761206c6158bc565b602002602001015190506001811015612085575061211c565b6000620f424061209585826159a6565b61209f9084615b82565b6120a99190615b4c565b90506120b581836159a6565b6120bf9089615993565b9750808584815181106120d4576120d46158bc565b602002602001018181525050612119600684815481106120f6576120f66158bc565b60009182526020909120600160029092020101546001600160a01b031682613ae3565b50505b8061212681615b99565b91505061204e565b507f0e72bccee71ffea49962c8ff3ebe6927136c3d79e3d3e0a9b237dc7c8d3107558260405161215e9190615398565b60405180910390a16121703386613ae3565b60405185815233907ff760aec175743ca0c53529dffdac9f6837eac527b397e14a128eaff3f9105bec9060200160405180910390a250505050935093915050565b606061118185858585600680549050614773565b6121cd61316e565b670de0b6b3a76400008111156121e257600080fd5b60038190556040518181527fe32a81814e2a5f7383c89af4d9b28109f9085d8dd4ff3c5187bdbac732bc0a0e90602001610dc5565b61221f61316e565b60045481111561222e57600080fd5b66b1a2bc2ec5000081111561224257600080fd5b60028190556040518181527f7708ce2bf09ce11f61dd89ded3911d4a034c4613a997dac62650c955844afab790602001610dc5565b60006122816136e2565b6004543410156122bd576040517f5321e1df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611181858585853460405180602001604052806000815250613767565b6000806122e5614abe565b6122ed614abe565b6122f5614ae5565b6122fd614ae5565b60017f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c7066001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa15801561235d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238191906159fc565b5161238c9190615b60565b955061ffff94506123a08661ffff16613e07565b156123b3576123b0600187615b60565b95505b6123ca6123c1600188615b60565b61ffff16613e07565b156123dd576123da600187615b60565b94505b6006546123ec87600183613c43565b945061ffff86811610801561240a5761240787600184613c43565b94505b612412614ae5565b61241a614ae5565b60005b600581101561256f5760005b858110156124f657898260058110612443576124436158bc565b60200201518181518110612459576124596158bc565b6020026020010151848360058110612473576124736158bc565b602002018181516124849190615993565b90525084156124e45788826005811061249f5761249f6158bc565b602002015181815181106124b5576124b56158bc565b60200260200101518383600581106124cf576124cf6158bc565b602002018181516124e09190615993565b9052505b806124ee81615b99565b915050612429565b5061251683826005811061250c5761250c6158bc565b6020020151613e96565b905087826005811061252a5761252a6158bc565b602002015261254482826005811061250c5761250c6158bc565b9050868260058110612558576125586158bc565b60200201528061256781615b99565b91505061241d565b5050505050909192939495565b61258461316e565b600680546040805160806020601f8a0181900402820181019092526060810188815292939290918291908a908a908190850183828082843760009201829052509385525050506001600160a01b038816602080840191909152600160409093018390528454928301855593815292909220815191926002020190819061260a9082615c01565b50602082015160019091018054604093840151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff0000000000000000000000000000000000000000009091166001600160a01b0390931692909217919091179055517fe9f47d8649ca1fd11d02eee6cf2e53a05e0c7b9236ad78d31b773994b632e0f9906126a790839089908990899089908990615d28565b60405180910390a1505050505050565b600061ffff821615806126ce575061ffff82166001145b15612705576040517f757e0f7b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606083015161ffff16158015906127255750606083015161ffff16600114155b801561273d57508161ffff16836060015161ffff1614155b1561274a575060006114b6565b606083015161ffff1615801561276857506127688261ffff16613e07565b15612775575060006114b6565b606083015161ffff166001148015612791575061279182613f64565b1561279e575060006114b6565b82516127aa9083613f8b565b61ffff16836020015161ffff1614905092915050565b6127c8614abe565b815160008167ffffffffffffffff8111156127e5576127e5614b56565b60405190808252806020026020018201604052801561280e578160200160208202803683370190505b50905060005b6005811015612b705760008082600481111561283257612832615026565b9050600081600481111561284857612848615026565b0361285b5760075461ffff169150612917565b600181600481111561286f5761286f615026565b036128885760075462010000900461ffff169150612917565b600281600481111561289c5761289c615026565b036128b757600754640100000000900461ffff169150612917565b60038160048111156128cb576128cb615026565b036128e8576007546601000000000000900461ffff169150612917565b60048160048111156128fc576128fc615026565b036129175760075468010000000000000000900461ffff1691505b60005b85811015612ad357600082600481111561293657612936615026565b036129865787818151811061294d5761294d6158bc565b60200260200101516000015185828151811061296b5761296b6158bc565b602002602001019061ffff16908161ffff1681525050612ac1565b600182600481111561299a5761299a615026565b036129cf578781815181106129b1576129b16158bc565b60200260200101516020015185828151811061296b5761296b6158bc565b60028260048111156129e3576129e3615026565b03612a18578781815181106129fa576129fa6158bc565b60200260200101516040015185828151811061296b5761296b6158bc565b6003826004811115612a2c57612a2c615026565b03612a6157878181518110612a4357612a436158bc565b60200260200101516060015185828151811061296b5761296b6158bc565b6004826004811115612a7557612a75615026565b03612ac157878181518110612a8c57612a8c6158bc565b602002602001015160800151858281518110612aaa57612aaa6158bc565b602002602001019061ffff16908161ffff16815250505b80612acb81615b99565b91505061291a565b508167ffffffffffffffff811115612aed57612aed614b56565b604051908082528060200260200182016040528015612b2057816020015b6060815260200190600190039081612b0b5790505b50868460058110612b3357612b336158bc565b6020020152612b44818a8a87612bc6565b868460058110612b5657612b566158bc565b602002015250819050612b6881615b99565b915050612814565b5050509392505050565b612b8261316e565b600254811015612b9157600080fd5b60048190556040518181527f602c0b6dec543ffc3ad2ea97c0617262660f6a61286ec63f00a4dcc057f6f42890602001610dc5565b6060600080866004811115612bdd57612bdd615026565b03612bef575060075461ffff16612ca7565b6001866004811115612c0357612c03615026565b03612c1b575060075462010000900461ffff16612ca7565b6002866004811115612c2f57612c2f615026565b03612c495750600754640100000000900461ffff16612ca7565b6003866004811115612c5d57612c5d615026565b03612c7957506007546601000000000000900461ffff16612ca7565b6004866004811115612c8d57612c8d615026565b03612ca7575060075468010000000000000000900461ffff165b60065461ffff821667ffffffffffffffff811115612cc757612cc7614b56565b604051908082528060200260200182016040528015612cfa57816020015b6060815260200190600190039081612ce55790505b50845190935060005b8361ffff168161ffff161015612e5d576000805b83811015612d5457878181518110612d3157612d316158bc565b602002602001015161ffff168361ffff1603612d4c57600191505b600101612d17565b508015612e2557600061ffff8a1615801590612d75575061ffff8a16600114155b9050808015612d815750885b15612dba57612d948b848c600089614773565b878461ffff1681518110612daa57612daa6158bc565b6020026020010181905250612e1f565b8467ffffffffffffffff811115612dd357612dd3614b56565b604051908082528060200260200182016040528015612dfc578160200160208202803683370190505b50878461ffff1681518110612e1357612e136158bc565b60200260200101819052505b50612e54565b612e328a838b8b88614773565b868361ffff1681518110612e4857612e486158bc565b60200260200101819052505b50600101612d03565b50505050949350505050565b6001600160a01b0381166000908152600960209081526040808320805482518185028101850190935280835260609492939192909184015b82821015612f6b576000848152602090206040805160c081019091529083018054829060ff166004811115612ed857612ed8615026565b6004811115612ee957612ee9615026565b81529054610100810461ffff9081166020808501919091526301000000830482166040850152650100000000008304821660608501526701000000000000008304909116608084015269010000000000000000009091046fffffffffffffffffffffffffffffffff1660a0909201919091529082526001929092019101612ea1565b505050509050919050565b612f7e61316e565b600180546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155612fc76000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a083018290526001600160a01b03861682526009905291909120805483908110613057576130576158bc565b600091825260209091206040805160c0810190915291018054829060ff16600481111561308657613086615026565b600481111561309757613097615026565b8152905461ffff61010082048116602084015263010000008204811660408401526501000000000082048116606084015267010000000000000082041660808301526fffffffffffffffffffffffffffffffff69010000000000000000009091041660a0909101529392505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314610e86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016110c6565b6131ea614923565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080600060018460a001516fffffffffffffffffffffffffffffffff16101561327f5760019250613561565b6132968460000151856020015186606001516114bc565b60015490925074010000000000000000000000000000000000000000900460ff16156132c55760009250613561565b604080850151608086015160008581526008602090815284822061ffff8086168085529190925294909120546006805494959383167e0100000000000000000000000000000000000000000000000000000000000090920490921611929091908110613333576133336158bc565b906000526020600020906002020160010160149054906101000a900460ff1615801561335d575080155b1561336d57600094505050613561565b801561337e57600294505050613561565b7f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c7066001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa1580156133dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061340091906159fc565b6060015161341061012c42615993565b1061342057600394505050613561565b7f000000000000000000000000830bd73e4184cef73443c15111a1df14e495c7066001600160a01b0316637d9f6db56040518163ffffffff1660e01b815260040160c060405180830381865afa15801561347e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134a291906159fc565b5192506134af86846126b7565b156134bf57600494505050613561565b60006134cc600185615b60565b905060006134db600286615b60565b90506134e682613f64565b1561353e576134f588836126b7565b156135095750600495509250613561915050565b6135168161ffff16613e07565b156135395761352588826126b7565b156135395760049650935061356192505050565b61355c565b61354888826126b7565b1561355c5760049650935061356192505050565b505050505b9193909250565b60a083015133600090815260096020526040902080546fffffffffffffffffffffffffffffffff90921691849081106135a3576135a36158bc565b60009182526020918290200180547fffffffffffffff00000000000000000000000000000000000000000000000000169055606085015185519186015160808701516040808901519051879561ffff9095169433947f0c51eb173c08cfdc6776f6f6fbd78b9a2e0ffc0f37331b4fa541a734827aa77394613627948c948b90615d75565b60405180910390a460008281526008602090815260408083208782015161ffff1684529091528120805483929061367f9084907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16615db0565b92506101000a8154817dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1602179055506136db3382613ae3565b9392505050565b60015474010000000000000000000000000000000000000000900460ff1615610e86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016110c6565b600060068461ffff1681548110613780576137806158bc565b906000526020600020906002020160010160149054906101000a900460ff166137d5576040517f8070022200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006137e28888886114bc565b600081815260086020908152604080832061ffff808b168552908352928190208151808301909252547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81168083527e01000000000000000000000000000000000000000000000000000000000000909104909316918101919091529192508590829061386e908390615de7565b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff908116909152600084815260086020908152604080832061ffff808d1685529083528184208751848901519092167e01000000000000000000000000000000000000000000000000000000000000029190951617909355338252600990528190208054825160c0810190935295509150808b600481111561391057613910615026565b815261ffff808c166020808401919091528a821660408401528b821660608401528581015190911660808301526fffffffffffffffffffffffffffffffff891660a09092019190915282546001818101855560009485529190932082519301805492939092909183917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016908360048111156139ae576139ae615026565b021790555060208201518160000160016101000a81548161ffff021916908361ffff16021790555060408201518160000160036101000a81548161ffff021916908361ffff16021790555060608201518160000160056101000a81548161ffff021916908361ffff16021790555060808201518160000160076101000a81548161ffff021916908361ffff16021790555060a08201518160000160096101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055505050818761ffff16336001600160a01b03167f6214a8f2b375f6f1f1b67d86a634789cf4d04fba6f2b2558962cfab6947bb424868d8d8c88602001518d8d604051613acf9796959493929190615e1e565b60405180910390a450509695505050505050565b613aed82826149a7565b610bc4577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015613b4c57600080fd5b505af1158015613b60573d6000803e3d6000fd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216935063a9059cbb925060440190506020604051808303816000875af1158015613bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190615e68565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905561159781613106565b613c4b614abe565b6040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff851660048201526000907f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa158015613ccf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cf39190615a85565b905060005b6005811015613dfe576000816004811115613d1557613d15615026565b9050600080826004811115613d2c57613d2c615026565b03613d3957508251613dc5565b6001826004811115613d4d57613d4d615026565b03613d5d57506020830151613dc5565b6002826004811115613d7157613d71615026565b03613d8157506040830151613dc5565b6003826004811115613d9557613d95615026565b03613da557506060830151613dc5565b6004826004811115613db957613db9615026565b03613dc5575060808301515b613dd282828a8a8a614773565b858460058110613de457613de46158bc565b602002015250819050613df681615b99565b915050613cf8565b50509392505050565b60006001613e16600a84615e85565b1080156114b657505061071c101590565b613e2f6136e2565b600180547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132353390565b6000806001831015613ea757915091565b600154613ed2907501000000000000000000000000000000000000000000900461ffff166064615e99565b61ffff169150620f4240613ee68385615b82565b613ef09190615b4c565b9050600354811115613f245782600354620f4240613f0e9190615b82565b613f189190615b4c565b91506003549050915091565b60025481108015613f36575060025483115b15613f5f5782600254620f4240613f4d9190615b82565b613f579190615b4c565b915060025490505b915091565b600080613f72600a84615ebf565b61ffff1611806114b657505061071c61ffff9091161190565b600080836004811115613fa057613fa0615026565b03614052576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa158015614026573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061404a9190615a85565b5190506114b6565b600183600481111561406657614066615026565b0361411b576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa1580156140ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141109190615a85565b6020015190506114b6565b600283600481111561412f5761412f615026565b036141e4576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa1580156141b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141d99190615a85565b6040015190506114b6565b60038360048111156141f8576141f8615026565b036142ad576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa15801561427e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142a29190615a85565b6060015190506114b6565b60048360048111156142c1576142c1615026565b036114b6576040517ff0503e8000000000000000000000000000000000000000000000000000000000815261ffff831660048201527f0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc036001600160a01b03169063f0503e809060240160a060405180830381865afa158015614347573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061436b9190615a85565b608001519392505050565b606060008060405180604001604052808761ffff1661ffff168152602001856143a05760016143a3565b60005b61ffff16905260065490915067ffffffffffffffff8111156143c7576143c7614b56565b6040519080825280602002602001820160405280156143f0578160200160208202803683370190505b50925060005b60028161ffff16101561476757600061442a8a8a858561ffff1660028110614420576144206158bc565b60200201516114bc565b90506000805b88518161ffff1610156146f2576006898261ffff1681518110614455576144556158bc565b602002602001015161ffff1681548110614471576144716158bc565b906000526020600020906002020160010160149054906101000a900460ff16156146e05760008381526008602052604081208a5182908c9061ffff86169081106144bd576144bd6158bc565b60209081029190910181015161ffff90811683528282019390935260409182016000208251808401909352547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81168084527e010000000000000000000000000000000000000000000000000000000000009091049093169082015291506001111561454757506146e0565b8051614573907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1684615993565b81519093506145a2907dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1688615993565b965080600001517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff16888b8461ffff16815181106145e0576145e06158bc565b602002602001015161ffff16815181106145fc576145fc6158bc565b602002602001018181516146109190615993565b905250604080518082019091526000815260208281015190820190614636906001615ee0565b61ffff168152506008600086815260200190815260200160002060008c8561ffff1681518110614668576146686158bc565b60209081029190910181015161ffff9081168352828201939093526040909101600020835193909101519091167e01000000000000000000000000000000000000000000000000000000000000027dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909216919091179055505b806146ea81615efb565b915050614430565b506001811015614703575050614755565b818961ffff168c600481111561471b5761471b615026565b60405161ffff8e1681527fb690ef6532bec37fea16dd1db06d467b28fbb2929396a7b8ae0c80edf36744639060200160405180910390a450505b8061475f81615efb565b9150506143f6565b50509550959350505050565b6060600061478083614a0a565b9050600061478f8888886114bc565b90506000808680156147a4575061ffff881615155b80156147b5575061ffff8816600114155b905080156147e0576147dd8a8a6147cb8b613f64565b6147d65760016114bc565b60006114bc565b91505b8567ffffffffffffffff8111156147f9576147f9614b56565b604051908082528060200260200182016040528015614822578160200160208202803683370190505b50945060005b868161ffff16101561491557848161ffff168151811061484a5761484a6158bc565b60200260200101511561490d576000826148655760006148a4565b600084815260086020908152604080832061ffff861684529091529020547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff165b600086815260086020908152604080832061ffff871680855292529091205489517dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9384169450921683019189919081106148ff576148ff6158bc565b602002602001018181525050505b600101614828565b505050505095945050505050565b60015474010000000000000000000000000000000000000000900460ff16610e86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016110c6565b600080836001600160a01b03168361271090604051600060405180830381858888f193505050503d80600081146149fa576040519150601f19603f3d011682016040523d82523d6000602084013e6149ff565b606091505b509095945050505050565b60608167ffffffffffffffff811115614a2557614a25614b56565b604051908082528060200260200182016040528015614a4e578160200160208202803683370190505b50905060005b82811015614ab85760068181548110614a6f57614a6f6158bc565b906000526020600020906002020160010160149054906101000a900460ff16828281518110614aa057614aa06158bc565b91151560209283029190910190910152600101614a54565b50919050565b6040518060a001604052806005905b6060815260200190600190039081614acd5790505090565b6040518060a001604052806005906020820280368337509192915050565b801515811461159757600080fd5b60008060408385031215614b2457600080fd5b823591506020830135614b3681614b03565b809150509250929050565b6001600160a01b038116811461159757600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160c0810167ffffffffffffffff81118282101715614ba857614ba8614b56565b60405290565b60405160a0810167ffffffffffffffff81118282101715614ba857614ba8614b56565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614c1857614c18614b56565b604052919050565b600082601f830112614c3157600080fd5b813567ffffffffffffffff811115614c4b57614c4b614b56565b614c7c60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601614bd1565b818152846020838601011115614c9157600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215614cc157600080fd5b8235614ccc81614b41565b9150602083013567ffffffffffffffff811115614ce857600080fd5b614cf485828601614c20565b9150509250929050565b6000815180845260005b81811015614d2457602081850181015186830182015201614d08565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b83811015614dfe577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0898403018552815160608151818652614dcd82870182614cfe565b838b01516001600160a01b0316878c0152928901511515958901959095525094870194925090860190600101614d89565b509098975050505050505050565b600060208284031215614e1e57600080fd5b5035919050565b803561ffff81168114614e3757600080fd5b919050565b600060208284031215614e4e57600080fd5b6114b382614e25565b803560058110614e3757600080fd5b600080600080600060a08688031215614e7e57600080fd5b614e8786614e57565b9450614e9560208701614e25565b9350614ea360408701614e25565b9250614eb160608701614e25565b9150608086013567ffffffffffffffff811115614ecd57600080fd5b614ed988828901614c20565b9150509295509295909350565b60008060408385031215614ef957600080fd5b82359150614f0960208401614e25565b90509250929050565b60008060408385031215614f2557600080fd5b614f2e83614e25565b91506020830135614b3681614b03565b600081518084526020808501945080840160005b83811015614f6e57815187529582019590820190600101614f52565b509495945050505050565b60008260a081018360005b60058110156149ff578383038752614f9d838351614f3e565b6020978801979093509190910190600101614f84565b6020815260006114b36020830184614f79565b600080600060608486031215614fdb57600080fd5b614fe484614e57565b9250614ff260208501614e25565b915061500060408501614e25565b90509250925092565b60006020828403121561501b57600080fd5b81356136db81614b41565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60058110611597577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b61509581615055565b9052565b602080825282518282018190526000919060409081850190868401855b8281101561514057815180518552868101516150d181615055565b858801528086015161ffff908116878701526060808301518216908701526080808301519091169086015260a0808201516fffffffffffffffffffffffffffffffff169086015260c0908101519061512b8187018361508c565b505060e09390930192908501906001016150b6565b5091979650505050505050565b600081518084526020808501808196508360051b8101915082860160005b85811015615140578284038952615183848351614f3e565b9885019893509084019060010161516b565b60008260a081018360005b60058110156149ff5783830387526151b983835161514d565b60209788019790935091909101906001016151a0565b600061ffff8087168352808616602084015250608060408301526151f66080830185615195565b82810360608401526152088185615195565b979650505050505050565b600061ffff80871683528086166020840152506080604083015261523a6080830185614f79565b82810360608401526152088185614f79565b600067ffffffffffffffff82111561526657615266614b56565b5060051b60200190565b600082601f83011261528157600080fd5b813560206152966152918361524c565b614bd1565b82815260059290921b840181019181810190868411156152b557600080fd5b8286015b848110156152d7576152ca81614e25565b83529183019183016152b9565b509695505050505050565b6000806000606084860312156152f757600080fd5b61530084614e57565b9250602084013561531081614b03565b9150604084013567ffffffffffffffff81111561532c57600080fd5b61533886828701615270565b9150509250925092565b6000806000806080858703121561535857600080fd5b61536185614e57565b935061536f60208601614e25565b925061537d60408601614e25565b9150606085013561538d81614b03565b939692955090935050565b6020815260006114b36020830184614f3e565b600080600080608085870312156153c157600080fd5b6153ca85614e57565b93506153d860208601614e25565b92506153e660408601614e25565b91506153f460608601614e25565b905092959194509250565b8060005b6005811015615422578151845260209384019390910190600101615403565b50505050565b60006101c061ffff808a16845280891660208501525080604084015261545081840188614f79565b905082810360608401526154648187614f79565b91505061547460808301856153ff565b6152086101208301846153ff565b60008083601f84011261549457600080fd5b50813567ffffffffffffffff8111156154ac57600080fd5b6020830191508360208285010111156154c457600080fd5b9250929050565b6000806000806000606086880312156154e357600080fd5b853567ffffffffffffffff808211156154fb57600080fd5b61550789838a01615482565b90975095506020880135915061551c82614b41565b9093506040870135908082111561553257600080fd5b5061553f88828901615482565b969995985093965092949392505050565b60008082840360e081121561556457600080fd5b60c081121561557257600080fd5b5061557b614b85565b61558484614e57565b815261559260208501614e25565b60208201526155a360408501614e25565b60408201526155b460608501614e25565b60608201526155c560808501614e25565b608082015260a08401356fffffffffffffffffffffffffffffffff811681146155ed57600080fd5b60a08201529150614f0960c08401614e25565b65ffffffffffff8116811461159757600080fd5b6000806000606080858703121561562a57600080fd5b61563385614e25565b935060208086013561564481614b03565b935060408681013567ffffffffffffffff81111561566157600080fd5b8701601f8101891361567257600080fd5b80356156806152918261524c565b81815260a0918202830185019185820191908c84111561569f57600080fd5b938601935b838510156157265780858e0312156156bc5760008081fd5b6156c4614bae565b85356156cf81615600565b8152858801356156de81615600565b81890152858701356156ef81615600565b818801528589013561570081615600565b818a015260808681013561571381615600565b90820152835293840193918601916156a4565b50809750505050505050509250925092565b6020815260006114b36020830184615195565b6000806000806080858703121561576157600080fd5b61576a85614e57565b935061577860208601614e25565b9250604085013561578881614b03565b9150606085013567ffffffffffffffff8111156157a457600080fd5b6157b087828801615270565b91505092959194509250565b6020815260006114b3602083018461514d565b80516157da81615055565b80835250602081015161ffff808216602085015280604084015116604085015280606084015116606085015280608084015116608085015250506fffffffffffffffffffffffffffffffff60a08201511660a08301525050565b6020808252825182820181905260009190848201906040850190845b81811015615876576158638385516157cf565b9284019260c09290920191600101615850565b50909695505050505050565b6000806040838503121561589557600080fd5b82356158a081614b41565b946020939093013593505050565b60c081016114b682846157cf565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020815260006114b36020830184614cfe565b60006020828403121561591057600080fd5b5051919050565b600181811c9082168061592b57607f821691505b602082108103614ab8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156114b6576114b6615964565b818103818111156114b6576114b6615964565b6000602082840312156159cb57600080fd5b81516136db81614b41565b606081016159e385615055565b93815261ffff9283166020820152911660409091015290565b600060c08284031215615a0e57600080fd5b60405160c0810181811067ffffffffffffffff82111715615a3157615a31614b56565b8060405250825181526020830151602082015260408301516040820152606083015160608201526080830151615a6681614b41565b608082015260a0830151615a7981614b03565b60a08201529392505050565b600060a08284031215615a9757600080fd5b60405160a0810181811067ffffffffffffffff82111715615aba57615aba614b56565b6040528251615ac881615600565b81526020830151615ad881615600565b60208201526040830151615aeb81615600565b60408201526060830151615afe81615600565b60608201526080830151615b1181615600565b60808201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615b5b57615b5b615b1d565b500490565b61ffff828116828216039080821115615b7b57615b7b615964565b5092915050565b80820281158282048414176114b6576114b6615964565b60006000198203615bac57615bac615964565b5060010190565b601f821115610c5857600081815260208120601f850160051c81016020861015615bda5750805b601f850160051c820191505b81811015615bf957828155600101615be6565b505050505050565b815167ffffffffffffffff811115615c1b57615c1b614b56565b615c2f81615c298454615917565b84615bb3565b602080601f831160018114615c645760008415615c4c5750858301515b600019600386901b1c1916600185901b178555615bf9565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015615cb157888601518255948401946001909101908401615c92565b5085821015615ccf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b61ffff87168152608060208201526000615d46608083018789615cdf565b6001600160a01b03861660408401528281036060840152615d68818587615cdf565b9998505050505050505050565b86815260c08101615d8587615055565b602082019690965261ffff948516604082015292841660608401529216608082015260a00152919050565b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff828116828216039080821115615b7b57615b7b615964565b7dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff818116838216019080821115615b7b57615b7b615964565b878152615e2a87615055565b866020820152600061ffff808816604084015280871660608401528086166080840152508360a083015260e060c0830152615d6860e0830184614cfe565b600060208284031215615e7a57600080fd5b81516136db81614b03565b600082615e9457615e94615b1d565b500690565b61ffff818116838216028082169190828114615eb757615eb7615964565b505092915050565b600061ffff80841680615ed457615ed4615b1d565b92169190910692915050565b61ffff818116838216019080821115615b7b57615b7b615964565b600061ffff808316818103615f1257615f12615964565b600101939250505056fea2646970667358221220295c2e14b7489ba2ca7ab0652deba56b6f9a3ab27351da806aff830f5b24841964736f6c63430008110033

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

0000000000000000000000009c8ff314c9bc7f6e59a9d9225fb22946427edc03000000000000000000000000830bd73e4184cef73443c15111a1df14e495c706000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _nouns (address): 0x9C8fF314C9Bc7F6e59A9d9225Fb22946427eDC03
Arg [1] : _auctionHouse (address): 0x830BD73E4184ceF73443C15111a1DF14e495C706
Arg [2] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

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


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.