ETH Price: $2,406.30 (+1.36%)

Contract

0x5ee9e66387dfD26d1086c15edB79D85624d87C14
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release150573962022-07-01 15:29:01826 days ago1656689341IN
0x5ee9e663...624d87C14
0 ETH0.0065243189.78746296
Release149574922022-06-13 18:36:19844 days ago1655145379IN
0x5ee9e663...624d87C14
0 ETH0.0027021843.65890295
Release149574842022-06-13 18:34:21844 days ago1655145261IN
0x5ee9e663...624d87C14
0 ETH0.003466747.70871524
Disable Sale Rou...149453182022-06-11 16:41:16846 days ago1654965676IN
0x5ee9e663...624d87C14
0 ETH0.0009113638.27344947
Public Mint149423582022-06-11 4:36:15847 days ago1654922175IN
0x5ee9e663...624d87C14
0.035 ETH0.0034342722.75935112
Public Mint149406532022-06-10 21:39:02847 days ago1654897142IN
0x5ee9e663...624d87C14
0.035 ETH0.005231444.82970153
Public Mint149406012022-06-10 21:27:09847 days ago1654896429IN
0x5ee9e663...624d87C14
0.035 ETH0.0080215653.15989677
Public Mint149394972022-06-10 16:37:25847 days ago1654879045IN
0x5ee9e663...624d87C14
0.07 ETH0.01639814120.7912995
Public Mint149384772022-06-10 12:44:59847 days ago1654865099IN
0x5ee9e663...624d87C14
0.07 ETH0.0140428991.8700964
Public Mint149361472022-06-10 3:03:26848 days ago1654830206IN
0x5ee9e663...624d87C14
0.035 ETH0.0053733446.05077158
Public Mint149333202022-06-09 15:24:03848 days ago1654788243IN
0x5ee9e663...624d87C14
0.07 ETH0.013033885.26854046
Public Mint149326912022-06-09 12:53:39848 days ago1654779219IN
0x5ee9e663...624d87C14
0.035 ETH0.005980539.63352068
Public Mint149321662022-06-09 10:44:26848 days ago1654771466IN
0x5ee9e663...624d87C14
0.07 ETH0.0048254640.66765576
Public Mint149317692022-06-09 9:09:11848 days ago1654765751IN
0x5ee9e663...624d87C14
0.035 ETH0.0051880334.38175738
Public Mint149315832022-06-09 8:23:26848 days ago1654763006IN
0x5ee9e663...624d87C14
0.035 ETH0.0059304139.30157204
Public Mint149304152022-06-09 3:27:16849 days ago1654745236IN
0x5ee9e663...624d87C14
0.105 ETH0.0072708360.28038741
Public Mint149301902022-06-09 2:32:03849 days ago1654741923IN
0x5ee9e663...624d87C14
0.035 ETH0.014266594.55340929
Public Mint149299312022-06-09 1:29:18849 days ago1654738158IN
0x5ee9e663...624d87C14
0.07 ETH0.001881337.74084809
Public Mint149278992022-06-08 17:14:15849 days ago1654708455IN
0x5ee9e663...624d87C14
0.07 ETH0.0089935758.83689732
Public Mint149274542022-06-08 15:29:31849 days ago1654702171IN
0x5ee9e663...624d87C14
0.105 ETH0.0086878663.08494149
Public Mint149274342022-06-08 15:25:09849 days ago1654701909IN
0x5ee9e663...624d87C14
0.035 ETH0.0096058382.31577554
Public Mint149269332022-06-08 13:27:57849 days ago1654694877IN
0x5ee9e663...624d87C14
0.035 ETH0.0077118851.10765696
Public Mint149265642022-06-08 11:56:12849 days ago1654689372IN
0x5ee9e663...624d87C14
0.035 ETH0.0075721250.18144964
Public Mint149264582022-06-08 11:30:44849 days ago1654687844IN
0x5ee9e663...624d87C14
0.07 ETH0.0058814949.56762739
Public Mint149262962022-06-08 10:52:34849 days ago1654685554IN
0x5ee9e663...624d87C14
0.07 ETH0.0058411543.02685877
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
149423582022-06-11 4:36:15847 days ago1654922175
0x5ee9e663...624d87C14
0.035 ETH
149406532022-06-10 21:39:02847 days ago1654897142
0x5ee9e663...624d87C14
0.035 ETH
149406012022-06-10 21:27:09847 days ago1654896429
0x5ee9e663...624d87C14
0.035 ETH
149394972022-06-10 16:37:25847 days ago1654879045
0x5ee9e663...624d87C14
0.07 ETH
149384772022-06-10 12:44:59847 days ago1654865099
0x5ee9e663...624d87C14
0.07 ETH
149361472022-06-10 3:03:26848 days ago1654830206
0x5ee9e663...624d87C14
0.035 ETH
149333202022-06-09 15:24:03848 days ago1654788243
0x5ee9e663...624d87C14
0.07 ETH
149326912022-06-09 12:53:39848 days ago1654779219
0x5ee9e663...624d87C14
0.035 ETH
149321662022-06-09 10:44:26848 days ago1654771466
0x5ee9e663...624d87C14
0.07 ETH
149317692022-06-09 9:09:11848 days ago1654765751
0x5ee9e663...624d87C14
0.035 ETH
149315832022-06-09 8:23:26848 days ago1654763006
0x5ee9e663...624d87C14
0.035 ETH
149304152022-06-09 3:27:16849 days ago1654745236
0x5ee9e663...624d87C14
0.105 ETH
149301902022-06-09 2:32:03849 days ago1654741923
0x5ee9e663...624d87C14
0.035 ETH
149278992022-06-08 17:14:15849 days ago1654708455
0x5ee9e663...624d87C14
0.07 ETH
149274542022-06-08 15:29:31849 days ago1654702171
0x5ee9e663...624d87C14
0.105 ETH
149274342022-06-08 15:25:09849 days ago1654701909
0x5ee9e663...624d87C14
0.035 ETH
149269332022-06-08 13:27:57849 days ago1654694877
0x5ee9e663...624d87C14
0.035 ETH
149265642022-06-08 11:56:12849 days ago1654689372
0x5ee9e663...624d87C14
0.035 ETH
149264582022-06-08 11:30:44849 days ago1654687844
0x5ee9e663...624d87C14
0.07 ETH
149262962022-06-08 10:52:34849 days ago1654685554
0x5ee9e663...624d87C14
0.07 ETH
149255122022-06-08 7:37:09849 days ago1654673829
0x5ee9e663...624d87C14
0.035 ETH
149254132022-06-08 7:10:28849 days ago1654672228
0x5ee9e663...624d87C14
0.035 ETH
149253412022-06-08 6:55:26849 days ago1654671326
0x5ee9e663...624d87C14
0.07 ETH
149253042022-06-08 6:47:34849 days ago1654670854
0x5ee9e663...624d87C14
0.035 ETH
149252232022-06-08 6:28:27849 days ago1654669707
0x5ee9e663...624d87C14
0.035 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MintingRouter

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : MintingRouter.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;

/*
 * ██████╗ ██████╗ ███████╗██╗    ██╗██╗███████╗███████╗
 * ██╔══██╗██╔══██╗██╔════╝██║    ██║██║██╔════╝██╔════╝
 * ██████╔╝██████╔╝█████╗  ██║ █╗ ██║██║█████╗  ███████╗
 * ██╔══██╗██╔══██╗██╔══╝  ██║███╗██║██║██╔══╝  ╚════██║
 * ██████╔╝██║  ██║███████╗╚███╔███╔╝██║███████╗███████║
 * ╚═════╝ ╚═╝  ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝╚══════╝╚══════╝
 */

// Imports
import "./EIP712Whitelisting.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

/// NFT Interface
interface INFT {
    function mint(address recipient, uint256 quantity) external;

    function areReservesMinted() external view returns (bool);

    function maxSupply() external view returns (uint256);

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

/**
 * @title The Minting Router contract.
 */
contract MintingRouter is Ownable, EIP712Whitelisting, ReentrancyGuard {
    // The available sale types.
    enum SaleRoundType {
        WHITELIST,
        PUBLIC
    }

    // The sale round details.
    struct SaleRound {
        // The type of the sale.
        SaleRoundType saleType;
        // The price of a token during the sale round.
        uint256 price;
        // The total number of tokens available for minting during the sale round.
        uint256 totalAmount;
        // The total number of tokens available for minting by a single wallet during the sale round.
        uint256 limitAmountPerWallet;
        // The maximum number of tokens available for minting per single transaction.
        uint256 maxAmountPerMint;
        // The flag that indicates if the sale round is enabled.
        bool enabled;
    }
    /// @notice Indicates that tokens are unlimited.
    uint256 public constant UNLIMITED_AMOUNT = 0;
    /// @notice The current sale round details.
    SaleRound public currentSaleRound;
    /// @notice The current sale round index.
    uint256 public currentSaleIndex;
    /// @notice The Brewies NFT contract.
    INFT private _nftContract;
    /// @notice The contract that allows to split funds between multiple accounts.
    PaymentSplitter public splitter;
    /// @notice The number of NFTs minted during a sale round.
    mapping(uint256 => uint256) private _mintedAmountPerRound;
    /// @notice The number of NFTs minted during a sale round per wallet.
    mapping(uint256 => mapping(address => uint256))
        private _mintedAmountPerAddress;

    /**
     * @notice The smart contract constructor that initializes the minting router.
     * @dev The sizes of payees and shares should be equal.
     * @param nftContract The NFT contract.
     * @param tokenName The name of the NFT token.
     * @param version The version of the project.
     * @param payees The addresses of the accounts between which the funds are split.
     * @param shares The percentages of funds received by addresses.
     */
    constructor(
        INFT nftContract,
        string memory tokenName,
        string memory version,
        address[] memory payees,
        uint256[] memory shares
    ) EIP712Whitelisting(tokenName, version) {
        // Initialize the variables.
        _nftContract = nftContract;
        splitter = new PaymentSplitter(payees, shares);
        // Set the initial dummy value for the current sale index.
        currentSaleIndex = type(uint256).max;
    }

    /**
     * @notice Validates sale rounds parameters.
     * @param totalAmount The total amount of NFTs available for the current sale round.
     * @param limitAmountPerWallet The total number of NFTs that can be minted by a single wallet during the sale round.
     * @param maxAmountPerMint The maximum number of tokens available for minting per single transaction.
     */
    modifier validateSaleRoundParams(
        bool isNewRound,
        uint256 totalAmount,
        uint256 limitAmountPerWallet,
        uint256 maxAmountPerMint
    ) {
        require(
            _totalTokensLeft() > 0 &&
            totalAmount <= _totalTokensLeft(),
            "INVALID_TOTAL_AMOUNT"
        );

        if (!isNewRound) {
            require(totalAmount >= _mintedAmountPerRound[currentSaleIndex], "INVALID_TOTAL_AMOUNT");
        }

        if (totalAmount != UNLIMITED_AMOUNT) {
            require(limitAmountPerWallet <= totalAmount,"INVALID_LIMIT_PER_WALLET");
            require(maxAmountPerMint <= totalAmount, "INVALID_MAX_PER_MINT");
        }

        if (limitAmountPerWallet != UNLIMITED_AMOUNT) {
            require(maxAmountPerMint <= limitAmountPerWallet, "INVALID_MAX_PER_MINT");
        }

        _;
    }

    /**
     * @notice Changes the addresses that receive payment shares.
     * @param payees The addresses of the accounts between which the funds are split.
     * @param shares The percentages of funds received by addresses.
     */
    function changePayees(address[] memory payees, uint256[] memory shares)
        external
        onlyOwner
    {
        splitter = new PaymentSplitter(payees, shares);
    }

    /**
     * @notice Changes the current sale details.
     * @param price The price of an NFT for the current sale round.
     * @param totalAmount The total amount of NFTs available for the current sale round.
     * @param limitAmountPerWallet The total number of NFTs that can be minted by a single wallet during the sale round.
     * @param maxAmountPerMint The maximum number of tokens available for minting per single transaction.
     */
    function changeSaleRoundParams(
        uint256 price,
        uint256 totalAmount,
        uint256 limitAmountPerWallet,
        uint256 maxAmountPerMint
    ) external onlyOwner validateSaleRoundParams(
        false,
        totalAmount,
        limitAmountPerWallet,
        maxAmountPerMint
    ) {
        currentSaleRound.price = price;
        currentSaleRound.totalAmount = totalAmount;
        currentSaleRound.limitAmountPerWallet = limitAmountPerWallet;
        currentSaleRound.maxAmountPerMint = maxAmountPerMint;
    }

    /**
     * @notice Creates a new sale round.
     * @dev Requires sales to be disabled and reserves to be minted.
     * @param saleType The type of the sale round (WHITELIST - 0, PUBLIC SALE - 1).
     * @param price The price of an NFT for the current sale round.
     * @param totalAmount The total amount of NFTs available for the current sale round.
     * @param limitAmountPerWallet The total number of NFTs that can be minted by a single wallet during the sale round.
     * @param maxAmountPerMint The maximum number of tokens available for minting per single transaction.
     */
    function createSaleRound(
        SaleRoundType saleType,
        uint256 price,
        uint256 totalAmount,
        uint256 limitAmountPerWallet,
        uint256 maxAmountPerMint
    ) external onlyOwner validateSaleRoundParams(
        true,
        totalAmount,
        limitAmountPerWallet,
        maxAmountPerMint
    ) {
         // Check if the sales are closed.
        require(
            currentSaleRound.enabled == false,
            "SALE_ROUND_IS_ENABLED"
        );

        // Check if the reserves are minted.
        bool reservesMinted = _nftContract.areReservesMinted();
        require(
            reservesMinted == true,
            "ALL_RESERVED_TOKENS_NOT_MINTED"
        );

        // Set new sale parameters.
        currentSaleRound.price = price;
        currentSaleRound.totalAmount = totalAmount;
        currentSaleRound.limitAmountPerWallet = limitAmountPerWallet;
        currentSaleRound.maxAmountPerMint = maxAmountPerMint;
        currentSaleRound.saleType = saleType;
        // Increment the sale round index.
        if (currentSaleIndex == type(uint256).max) {
            currentSaleIndex = 0;
        } else {
            currentSaleIndex += 1;
        }
    }

    /**
     * @notice Starts the sale round.
     */
    function enableSaleRound() external onlyOwner {
        require(currentSaleIndex != type(uint256).max, "NO_SALE_ROUND_CREATED");
        require(currentSaleRound.enabled == false, "SALE_ROUND_ENABLED_ALREADY");
        currentSaleRound.enabled = true;
    }

    /**
     * @notice Closes the sale round.
     */
    function disableSaleRound() external onlyOwner {
        require(currentSaleRound.enabled == true, "SALE_ROUND_DISABLED_ALREADY");
        currentSaleRound.enabled = false;
    }

    /**
     * @notice Mints NFTs during whitelist sale rounds.
     * @dev Requires the current sale round to be a WHITELIST round.
     * @param recipient The address that will receive the minted NFT.
     * @param quantity The number of NFTs to mint.
     * @param signature The signature of a whitelisted minter.
     */
    function whitelistMint(
        address recipient,
        uint256 quantity,
        bytes calldata signature
    ) external payable requiresWhitelist(signature) nonReentrant {
        require(
            currentSaleRound.saleType == SaleRoundType.WHITELIST && currentSaleRound.enabled,
            "WHITELIST_ROUND_NOT_ENABLED"
        );
        _mint(recipient, quantity);
    }

    /**
     * @notice Mints NFTs during public sale rounds.
     * @dev Requires the current sale round to be a PUBLIC round.
     * @param recipient The address that will receive the minted NFT.
     * @param quantity The number of NFTs to mint.
     */
    function publicMint(address recipient, uint256 quantity)
        external
        payable
        nonReentrant
    {
        require(
            currentSaleRound.saleType == SaleRoundType.PUBLIC && currentSaleRound.enabled,
            "PUBLIC_ROUND_NOT_ENABLED"
        );
        _mint(recipient, quantity);
    }

    /**
     * @notice Sets the address that is used during whitelist generation.
     * @param signer The address used during whitelist generation.
     */
    function setWhitelistSigningAddress(address signer) public onlyOwner {
        _setWhitelistSigningAddress(signer);
    }

    /**
     * @notice Releases the share to the specified account.
     * @dev The share of the address should be greater than 0.
     * @param account The address of the share receiver.
     */
    function release(address payable account) public onlyOwner {
        splitter.release(account);
    }

    /**
     * @notice Calculates the number of tokens a minter is allowed to mint.
     * @param minter The minter address.
     * @return The number of tokens that a minter can mint.
     */
    function allowedTokenCount(address minter) public view returns (uint256) {
        if (currentSaleRound.enabled == false) {
            return 0;
        }

        // Calculate the allowed number of tokens to mint by a wallet.
        uint256 allowedWalletCount = _totalTokensLeft();
        if (currentSaleRound.limitAmountPerWallet != UNLIMITED_AMOUNT) {
            allowedWalletCount = currentSaleRound.limitAmountPerWallet - _mintedAmountPerAddress[currentSaleIndex][minter];
        }

        // Calculate the limit of the number of tokens per single mint.
        uint256 allowedAmountPerMint = _totalTokensLeft();
        if (currentSaleRound.maxAmountPerMint != UNLIMITED_AMOUNT) {
            allowedAmountPerMint = currentSaleRound.maxAmountPerMint;
        }

        return _min(
            allowedAmountPerMint,
            _min(allowedWalletCount, tokensLeft())
        );
    }

    /**
     * @notice Returns the number of tokens left for the running sale round.
     */
    function tokensLeft() public view returns (uint256) {
        if (currentSaleRound.enabled == false) {
            return 0;
        }

        if (currentSaleRound.totalAmount == UNLIMITED_AMOUNT) {
            return _totalTokensLeft();
        }

        return currentSaleRound.totalAmount - _mintedAmountPerRound[currentSaleIndex];
    }

    /**
     * @notice Mints NFTs.
     * @param recipient The address that will receive the minted NFT.
     * @param quantity The number of NFTs to mint.
     */
    function _mint(
        address recipient,
        uint256 quantity
    ) private {
        require(quantity > 0, "ZERO_QUANTITY_NOT_ALLOWED");
        require(allowedTokenCount(recipient) >= quantity, "MAX_MINTS_EXCEEDED");
        require(msg.value >= currentSaleRound.price * quantity, "INSUFFICIENT_FUNDS");
        // Update the number of total tokens minted by the minter.
        _mintedAmountPerAddress[currentSaleIndex][recipient] += quantity;
        _mintedAmountPerRound[currentSaleIndex] += quantity;
        // Mint NFTs.
        _nftContract.mint(recipient, quantity);
        (bool sent, ) = payable(splitter).call{value: msg.value}("");
        require(sent, "FAIL_FUNDS_TRANSFER");
    }

    /**
     * @notice Returns the number of available tokens to mint left in the supply.
     * @return The number of available tokens to mint left in the supply.
     */
    function _totalTokensLeft() private view returns(uint256) {
        return _nftContract.maxSupply() - _nftContract.totalSupply();
    }

    /**
     * @notice Calculates a minimum of two values provided.
     * @return The minimum of two values.
     */
    function _min(uint256 a, uint256 b) private pure returns(uint256) {
        if (a < b) {
            return a;
        }

        return b;
    }
}

File 2 of 11 : EIP712Whitelisting.sol
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.13;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract EIP712Whitelisting {
  using ECDSA for bytes32;

  // The key used to sign whitelist signatures.
  // We will check to ensure that the key that signed the signature
  // is this one that we expect.
  address whitelistSigningKey = address(0);

  // Domain Separator is the EIP-712 defined structure that defines what contract
  // and chain these signatures can be used for.  This ensures people can't take
  // a signature used to mint on one contract and use it for another, or a signature
  // from testnet to replay on mainnet.
  // It has to be created in the constructor so we can dynamically grab the chainId.
  // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator
  bytes32 public DOMAIN_SEPARATOR;

  // The typehash for the data type specified in the structured data
  // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash
  // This should match whats in the client side whitelist signing code
  // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L22
  bytes32 public constant MINTER_TYPEHASH = keccak256("Minter(address wallet)");

  constructor(string memory tokenName, string memory version) {
    // This should match whats in the client side whitelist signing code
    // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L12
    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
        // This should match the domain you set in your client side signing.
        keccak256(bytes(tokenName)),
        keccak256(bytes(version)),
        block.chainid,
        address(this)
      )
    );
  }

  function _setWhitelistSigningAddress(address newSigningKey) internal {
    whitelistSigningKey = newSigningKey;
  }

  modifier requiresWhitelist(bytes calldata signature) {
    require(whitelistSigningKey != address(0), "Whitelist not enabled; please set the private key.");
    // Verify EIP-712 signature by recreating the data structure
    // that we signed on the client side, and then using that to recover
    // the address that signed the signature for this data.
    bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(MINTER_TYPEHASH, msg.sender))));
    // Use the recover method to see what address was used to create
    // the signature on this data.
    // Note that if the digest doesn't exactly match what was signed we'll
    // get a random recovered address.
    address recoveredAddress = digest.recover(signature);
    require(recoveredAddress == whitelistSigningKey, "Invalid signature");
    _;
  }
}

File 3 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 4 of 11 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 5 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 7 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 8 of 11 : Context.sol
// 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;
    }
}

File 9 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 10 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract INFT","name":"nftContract","type":"address"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNLIMITED_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"allowedTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"name":"changePayees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"limitAmountPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxAmountPerMint","type":"uint256"}],"name":"changeSaleRoundParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum MintingRouter.SaleRoundType","name":"saleType","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"limitAmountPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxAmountPerMint","type":"uint256"}],"name":"createSaleRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentSaleIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSaleRound","outputs":[{"internalType":"enum MintingRouter.SaleRoundType","name":"saleType","type":"uint8"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"limitAmountPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxAmountPerMint","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableSaleRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableSaleRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setWhitelistSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splitter","outputs":[{"internalType":"contract PaymentSplitter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600180546001600160a01b03191690553480156200002157600080fd5b506040516200454a3803806200454a833981016040819052620000449162000340565b8383620000513362000152565b8151602080840191909120825183830120604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9481019490945283019190915260608201524660808201523060a082015260c00160408051808303601f190181529082905280516020909101206002556001600355600b80546001600160a01b0319166001600160a01b038a16179055849250839150620000f590620001a2565b6200010292919062000478565b604051809103906000f0801580156200011f573d6000803e3d6000fd5b50600c80546001600160a01b0319166001600160a01b03929092169190911790555050600019600a555062000500915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61116080620033ea83390190565b6001600160a01b0381168114620001c657600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200020a576200020a620001c9565b604052919050565b600082601f8301126200022457600080fd5b81516001600160401b03811115620002405762000240620001c9565b602062000256601f8301601f19168201620001df565b82815285828487010111156200026b57600080fd5b60005b838110156200028b5785810183015182820184015282016200026e565b838111156200029d5760008385840101525b5095945050505050565b60006001600160401b03821115620002c357620002c3620001c9565b5060051b60200190565b600082601f830112620002df57600080fd5b81516020620002f8620002f283620002a7565b620001df565b82815260059290921b840181019181810190868411156200031857600080fd5b8286015b848110156200033557805183529183019183016200031c565b509695505050505050565b600080600080600060a086880312156200035957600080fd5b85516200036681620001b0565b602087810151919650906001600160401b03808211156200038657600080fd5b620003948a838b0162000212565b96506040890151915080821115620003ab57600080fd5b620003b98a838b0162000212565b95506060890151915080821115620003d057600080fd5b818901915089601f830112620003e557600080fd5b8151620003f6620002f282620002a7565b81815260059190911b8301840190848101908c8311156200041657600080fd5b938501935b82851015620004415784516200043181620001b0565b825293850193908501906200041b565b60808c015190975094505050808311156200045b57600080fd5b50506200046b88828901620002cd565b9150509295509295909350565b604080825283519082018190526000906020906060840190828701845b82811015620004bc5781516001600160a01b03168452928401929084019060010162000495565b5050508381038285015284518082528583019183019060005b81811015620004f357835183529284019291840191600101620004d5565b5090979650505050505050565b612eda80620005106000396000f3fe608060405260043610620001375760003560e01c80638da5cb5b11620000ad578063cd770833116200006c578063cd7708331462000345578063ce6df2b9146200036a578063d933ad171462000381578063f2fde38b14620003a6578063fa4d280c14620003cb57600080fd5b80638da5cb5b14620002b8578063acd7af0114620002d8578063b31f8f9314620002fd578063bd14c3d01462000315578063c1d69168146200032d57600080fd5b80633644e51511620000fa5780633644e51514620002115780633cd8045e14620002295780634d4a6be814620002645780635ed222e31462000289578063715018a614620002a057600080fd5b8063092c0791146200013c5780631263a46014620001665780631916558714620001805780631e5a589814620001a55780633383294214620001ec575b600080fd5b3480156200014957600080fd5b5062000153600081565b6040519081526020015b60405180910390f35b3480156200017357600080fd5b506200017e62000401565b005b3480156200018d57600080fd5b506200017e6200019f36600462001805565b620004e8565b348015620001b257600080fd5b50600454600554600654600754600854600954620001d89560ff90811695949392911686565b6040516200015d9695949392919062001842565b348015620001f957600080fd5b506200017e6200020b36600462001890565b62000579565b3480156200021e57600080fd5b506200015360025481565b3480156200023657600080fd5b50600c546200024b906001600160a01b031681565b6040516001600160a01b0390911681526020016200015d565b3480156200027157600080fd5b50620001536200028336600462001805565b62000854565b6200017e6200029a366004620018da565b620008fd565b348015620002ad57600080fd5b506200017e62000b92565b348015620002c557600080fd5b506000546001600160a01b03166200024b565b348015620002e557600080fd5b506200017e620002f736600462001a4e565b62000bcd565b3480156200030a57600080fd5b506200015362000c59565b3480156200032257600080fd5b5062000153600a5481565b3480156200033a57600080fd5b506200017e62000ca9565b3480156200035257600080fd5b506200017e6200036436600462001805565b62000d3b565b6200017e6200037b36600462001b1e565b62000d89565b3480156200038e57600080fd5b506200017e620003a036600462001b4d565b62000e71565b348015620003b357600080fd5b506200017e620003c536600462001805565b62000fd8565b348015620003d857600080fd5b50620001537f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b6000546001600160a01b03163314620004375760405162461bcd60e51b81526004016200042e9062001b80565b60405180910390fd5b600019600a5403620004845760405162461bcd60e51b81526020600482015260156024820152741393d7d4d0531157d493d5539117d0d49150551151605a1b60448201526064016200042e565b60095460ff1615620004d95760405162461bcd60e51b815260206004820152601a60248201527f53414c455f524f554e445f454e41424c45445f414c524541445900000000000060448201526064016200042e565b6009805460ff19166001179055565b6000546001600160a01b03163314620005155760405162461bcd60e51b81526004016200042e9062001b80565b600c54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b1580156200055d57600080fd5b505af115801562000572573d6000803e3d6000fd5b5050505050565b6000546001600160a01b03163314620005a65760405162461bcd60e51b81526004016200042e9062001b80565b60018383836000620005b762001077565b118015620005ce5750620005ca62001077565b8311155b620005ed5760405162461bcd60e51b81526004016200042e9062001bb5565b836200062757600a546000908152600d6020526040902054831015620006275760405162461bcd60e51b81526004016200042e9062001bb5565b82156200069e57828211156200067b5760405162461bcd60e51b81526020600482015260186024820152771253959053125117d31253525517d4115497d5d05313115560421b60448201526064016200042e565b828111156200069e5760405162461bcd60e51b81526004016200042e9062001be3565b8115620006c85781811115620006c85760405162461bcd60e51b81526004016200042e9062001be3565b60095460ff1615620007155760405162461bcd60e51b815260206004820152601560248201527414d0531157d493d5539117d254d7d1539050931151605a1b60448201526064016200042e565b600b5460408051633d0b77b560e11b815290516000926001600160a01b031691637a16ef6a9160048083019260209291908290030181865afa15801562000760573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000786919062001c11565b9050600181151514620007dc5760405162461bcd60e51b815260206004820152601e60248201527f414c4c5f52455345525645445f544f4b454e535f4e4f545f4d494e544544000060448201526064016200042e565b6005899055600688905560078790556008869055600480548b919060ff1916600183818111156200081157620008116200182c565b0217905550600019600a54036200082d576000600a5562000848565b6001600a600082825462000842919062001c4b565b90915550505b50505050505050505050565b60095460009060ff16151581036200086e57506000919050565b60006200087a62001077565b60075490915015620008be57600a546000908152600e602090815260408083206001600160a01b0387168452909152902054600754620008bb919062001c66565b90505b6000620008ca62001077565b60085490915015620008db57506008545b620008f581620008ef84620008ef62000c59565b6200116e565b949350505050565b600154829082906001600160a01b0316620009765760405162461bcd60e51b815260206004820152603260248201527f57686974656c697374206e6f7420656e61626c65643b20706c656173652073656044820152713a103a343290383934bb30ba329035b2bc9760711b60648201526084016200042e565b600254604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9602082015233918101919091526000919060600160405160208183030381529060405280519060200120604051602001620009f092919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600062000a4e84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506200118a9050565b6001549091506001600160a01b0380831691161462000aa45760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016200042e565b60026003540362000af85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200042e565b6002600355600060045460ff16600181111562000b195762000b196200182c565b14801562000b29575060095460ff165b62000b775760405162461bcd60e51b815260206004820152601b60248201527f57484954454c4953545f524f554e445f4e4f545f454e41424c4544000000000060448201526064016200042e565b62000b838888620011b2565b50506001600355505050505050565b6000546001600160a01b0316331462000bbf5760405162461bcd60e51b81526004016200042e9062001b80565b62000bcb60006200141b565b565b6000546001600160a01b0316331462000bfa5760405162461bcd60e51b81526004016200042e9062001b80565b818160405162000c0a90620017e1565b62000c1792919062001c80565b604051809103906000f08015801562000c34573d6000803e3d6000fd5b50600c80546001600160a01b0319166001600160a01b03929092169190911790555050565b60095460009060ff161515810362000c715750600090565b60065462000c885762000c8362001077565b905090565b600a546000908152600d602052604090205460065462000c83919062001c66565b6000546001600160a01b0316331462000cd65760405162461bcd60e51b81526004016200042e9062001b80565b60095460ff16151560011462000d2f5760405162461bcd60e51b815260206004820152601b60248201527f53414c455f524f554e445f44495341424c45445f414c5245414459000000000060448201526064016200042e565b6009805460ff19169055565b6000546001600160a01b0316331462000d685760405162461bcd60e51b81526004016200042e9062001b80565b600180546001600160a01b0319166001600160a01b03831617905550565b50565b60026003540362000ddd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200042e565b6002600355600160045460ff16600181111562000dfe5762000dfe6200182c565b14801562000e0e575060095460ff165b62000e5c5760405162461bcd60e51b815260206004820152601860248201527f5055424c49435f524f554e445f4e4f545f454e41424c4544000000000000000060448201526064016200042e565b62000e688282620011b2565b50506001600355565b6000546001600160a01b0316331462000e9e5760405162461bcd60e51b81526004016200042e9062001b80565b6000838383600062000eaf62001077565b11801562000ec6575062000ec262001077565b8311155b62000ee55760405162461bcd60e51b81526004016200042e9062001bb5565b8362000f1f57600a546000908152600d602052604090205483101562000f1f5760405162461bcd60e51b81526004016200042e9062001bb5565b821562000f96578282111562000f735760405162461bcd60e51b81526020600482015260186024820152771253959053125117d31253525517d4115497d5d05313115560421b60448201526064016200042e565b8281111562000f965760405162461bcd60e51b81526004016200042e9062001be3565b811562000fc0578181111562000fc05760405162461bcd60e51b81526004016200042e9062001be3565b50505060059490945560069290925560075560085550565b6000546001600160a01b03163314620010055760405162461bcd60e51b81526004016200042e9062001b80565b6001600160a01b0381166200106c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200042e565b62000d86816200141b565b600b54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015620010c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620010e8919062001d08565b600b60009054906101000a90046001600160a01b03166001600160a01b031663d5abeb016040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200113c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001162919062001d08565b62000c83919062001c66565b6000818310156200118157508162001184565b50805b92915050565b60008060006200119b85856200146b565b91509150620011aa81620014e1565b509392505050565b60008111620012045760405162461bcd60e51b815260206004820152601960248201527f5a45524f5f5155414e544954595f4e4f545f414c4c4f5745440000000000000060448201526064016200042e565b80620012108362000854565b1015620012555760405162461bcd60e51b815260206004820152601260248201527113505617d352539514d7d15610d15151115160721b60448201526064016200042e565b6005546200126590829062001d22565b341015620012ab5760405162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e545f46554e445360701b60448201526064016200042e565b600a546000908152600e602090815260408083206001600160a01b038616845290915281208054839290620012e290849062001c4b565b9091555050600a546000908152600d6020526040812080548392906200130a90849062001c4b565b9091555050600b546040516340c10f1960e01b81526001600160a01b03848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b1580156200135e57600080fd5b505af115801562001373573d6000803e3d6000fd5b5050600c54604051600093506001600160a01b03909116915034908381818185875af1925050503d8060008114620013c8576040519150601f19603f3d011682016040523d82523d6000602084013e620013cd565b606091505b5050905080620014165760405162461bcd60e51b81526020600482015260136024820152722320a4a62fa32aa72229afaa2920a729a322a960691b60448201526064016200042e565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808251604103620014a55760208301516040840151606085015160001a6200149887828585620016af565b94509450505050620014da565b8251604003620014d25760208301516040840151620014c6868383620017a4565b935093505050620014da565b506000905060025b9250929050565b6000816004811115620014f857620014f86200182c565b03620015015750565b60018160048111156200151857620015186200182c565b03620015675760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016200042e565b60028160048111156200157e576200157e6200182c565b03620015cd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016200042e565b6003816004811115620015e457620015e46200182c565b036200163e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016200042e565b60048160048111156200165557620016556200182c565b0362000d865760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016200042e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115620016e857506000905060036200179b565b8460ff16601b141580156200170157508460ff16601c14155b156200171457506000905060046200179b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801562001769573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811662001794576000600192509250506200179b565b9150600090505b94509492505050565b6000806001600160ff1b03831681620017c360ff86901c601b62001c4b565b9050620017d387828885620016af565b935093505050935093915050565b6111608062001d4583390190565b6001600160a01b038116811462000d8657600080fd5b6000602082840312156200181857600080fd5b81356200182581620017ef565b9392505050565b634e487b7160e01b600052602160045260246000fd5b60c08101600288106200186557634e487b7160e01b600052602160045260246000fd5b9681526020810195909552604085019390935260608401919091526080830152151560a09091015290565b600080600080600060a08688031215620018a957600080fd5b853560028110620018b957600080fd5b97602087013597506040870135966060810135965060800135945092505050565b60008060008060608587031215620018f157600080fd5b8435620018fe81620017ef565b935060208501359250604085013567ffffffffffffffff808211156200192357600080fd5b818701915087601f8301126200193857600080fd5b8135818111156200194857600080fd5b8860208285010111156200195b57600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715620019ac57620019ac6200196a565b604052919050565b600067ffffffffffffffff821115620019d157620019d16200196a565b5060051b60200190565b600082601f830112620019ed57600080fd5b8135602062001a0662001a0083620019b4565b62001980565b82815260059290921b8401810191818101908684111562001a2657600080fd5b8286015b8481101562001a43578035835291830191830162001a2a565b509695505050505050565b6000806040838503121562001a6257600080fd5b823567ffffffffffffffff8082111562001a7b57600080fd5b818501915085601f83011262001a9057600080fd5b8135602062001aa362001a0083620019b4565b82815260059290921b8401810191818101908984111562001ac357600080fd5b948201945b8386101562001aee57853562001ade81620017ef565b8252948201949082019062001ac8565b9650508601359250508082111562001b0557600080fd5b5062001b1485828601620019db565b9150509250929050565b6000806040838503121562001b3257600080fd5b823562001b3f81620017ef565b946020939093013593505050565b6000806000806080858703121562001b6457600080fd5b5050823594602084013594506040840135936060013592509050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152731253959053125117d513d5105317d05353d5539560621b604082015260600190565b6020808252601490820152731253959053125117d3505617d4115497d352539560621b604082015260600190565b60006020828403121562001c2457600080fd5b815180151581146200182557600080fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111562001c615762001c6162001c35565b500190565b60008282101562001c7b5762001c7b62001c35565b500390565b604080825283519082018190526000906020906060840190828701845b8281101562001cc45781516001600160a01b03168452928401929084019060010162001c9d565b5050508381038285015284518082528583019183019060005b8181101562001cfb5783518352928401929184019160010162001cdd565b5090979650505050505050565b60006020828403121562001d1b57600080fd5b5051919050565b600081600019048311821515161562001d3f5762001d3f62001c35565b50029056fe6080604052604051620011603803806200116083398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b5050506200056f565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000554565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200054d576200054d62000522565b5060010190565b600082198211156200056a576200056a62000522565b500190565b610be1806200057f6000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f3366004610955565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610972565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610972565b6103ad565b34801561019057600080fd5b506101a461019f3660046109ab565b610589565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d7366004610955565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d366004610955565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b610243366004610955565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109c4565b60405180910390fd5b60006102bc60015490565b6102c69047610a20565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105b9565b9050806000036103155760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b0383166000908152600360205260408120805483929061033d908490610a20565b9250508190555080600160008282546103569190610a20565b90915550610366905083826105fe565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103e25760405162461bcd60e51b81526004016102a8906109c4565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190610a83565b61046d9190610a20565b905060006104a683836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806000036104c85760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b038085166000908152600660209081526040808320938716835292905290812080548392906104ff908490610a20565b90915550506001600160a01b0384166000908152600560205260408120805483929061052c908490610a20565b9091555061053d905084848361071c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006004828154811061059e5761059e610a9c565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105e09086610ab2565b6105ea9190610ad1565b6105f49190610af3565b90505b9392505050565b8047101561064e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b50509050806107175760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610717928692916000916107ac918516908490610829565b80519091501561071757808060200190518101906107ca9190610b0a565b6107175760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105f48484600085856001600160a01b0385163b61088b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b031685876040516108a79190610b5c565b60006040518083038185875af1925050503d80600081146108e4576040519150601f19603f3d011682016040523d82523d6000602084013e6108e9565b606091505b50915091506108f9828286610904565b979650505050505050565b606083156109135750816105f7565b8251156109235782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b78565b6001600160a01b038116811461095257600080fd5b50565b60006020828403121561096757600080fd5b81356105f78161093d565b6000806040838503121561098557600080fd5b82356109908161093d565b915060208301356109a08161093d565b809150509250929050565b6000602082840312156109bd57600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a3357610a33610a0a565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a9557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610acc57610acc610a0a565b500290565b600082610aee57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610b0557610b05610a0a565b500390565b600060208284031215610b1c57600080fd5b815180151581146105f757600080fd5b60005b83811015610b47578181015183820152602001610b2f565b83811115610b56576000848401525b50505050565b60008251610b6e818460208701610b2c565b9190910192915050565b6020815260008251806020840152610b97816040850160208701610b2c565b601f01601f1916919091016040019291505056fea264697066735822122041b7492bf22540a77f025c18a97fe6ab82d8ecff39f420e5dce77ef83a80495664736f6c634300080d0033a2646970667358221220d766f09f0258ed72881f181fdbfc25a345de848e567f17c1d4912d462d76200c64736f6c634300080d00336080604052604051620011603803806200116083398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b5050506200056f565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000554565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200054d576200054d62000522565b5060010190565b600082198211156200056a576200056a62000522565b500190565b610be1806200057f6000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f3366004610955565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610972565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610972565b6103ad565b34801561019057600080fd5b506101a461019f3660046109ab565b610589565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d7366004610955565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d366004610955565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b610243366004610955565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109c4565b60405180910390fd5b60006102bc60015490565b6102c69047610a20565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105b9565b9050806000036103155760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b0383166000908152600360205260408120805483929061033d908490610a20565b9250508190555080600160008282546103569190610a20565b90915550610366905083826105fe565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103e25760405162461bcd60e51b81526004016102a8906109c4565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190610a83565b61046d9190610a20565b905060006104a683836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806000036104c85760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b038085166000908152600660209081526040808320938716835292905290812080548392906104ff908490610a20565b90915550506001600160a01b0384166000908152600560205260408120805483929061052c908490610a20565b9091555061053d905084848361071c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006004828154811061059e5761059e610a9c565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105e09086610ab2565b6105ea9190610ad1565b6105f49190610af3565b90505b9392505050565b8047101561064e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b50509050806107175760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610717928692916000916107ac918516908490610829565b80519091501561071757808060200190518101906107ca9190610b0a565b6107175760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105f48484600085856001600160a01b0385163b61088b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b031685876040516108a79190610b5c565b60006040518083038185875af1925050503d80600081146108e4576040519150601f19603f3d011682016040523d82523d6000602084013e6108e9565b606091505b50915091506108f9828286610904565b979650505050505050565b606083156109135750816105f7565b8251156109235782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b78565b6001600160a01b038116811461095257600080fd5b50565b60006020828403121561096757600080fd5b81356105f78161093d565b6000806040838503121561098557600080fd5b82356109908161093d565b915060208301356109a08161093d565b809150509250929050565b6000602082840312156109bd57600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a3357610a33610a0a565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a9557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610acc57610acc610a0a565b500290565b600082610aee57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610b0557610b05610a0a565b500390565b600060208284031215610b1c57600080fd5b815180151581146105f757600080fd5b60005b83811015610b47578181015183820152602001610b2f565b83811115610b56576000848401525b50505050565b60008251610b6e818460208701610b2c565b9190910192915050565b6020815260008251806020840152610b97816040850160208701610b2c565b601f01601f1916919091016040019291505056fea264697066735822122041b7492bf22540a77f025c18a97fe6ab82d8ecff39f420e5dce77ef83a80495664736f6c634300080d0033000000000000000000000000052d3a950eb81c06857e5e57b2d86246689768cf00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000b42726577696573204e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005312e302e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000037e0c3211b4d3e8328e78bbd6fafbee7f93615f7000000000000000000000000538adace178a23062ec0482685aa9c76a349ab9200000000000000000000000013f1b8b104d90e09898c01e1ccde297d52a29d900000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000046

Deployed Bytecode

0x608060405260043610620001375760003560e01c80638da5cb5b11620000ad578063cd770833116200006c578063cd7708331462000345578063ce6df2b9146200036a578063d933ad171462000381578063f2fde38b14620003a6578063fa4d280c14620003cb57600080fd5b80638da5cb5b14620002b8578063acd7af0114620002d8578063b31f8f9314620002fd578063bd14c3d01462000315578063c1d69168146200032d57600080fd5b80633644e51511620000fa5780633644e51514620002115780633cd8045e14620002295780634d4a6be814620002645780635ed222e31462000289578063715018a614620002a057600080fd5b8063092c0791146200013c5780631263a46014620001665780631916558714620001805780631e5a589814620001a55780633383294214620001ec575b600080fd5b3480156200014957600080fd5b5062000153600081565b6040519081526020015b60405180910390f35b3480156200017357600080fd5b506200017e62000401565b005b3480156200018d57600080fd5b506200017e6200019f36600462001805565b620004e8565b348015620001b257600080fd5b50600454600554600654600754600854600954620001d89560ff90811695949392911686565b6040516200015d9695949392919062001842565b348015620001f957600080fd5b506200017e6200020b36600462001890565b62000579565b3480156200021e57600080fd5b506200015360025481565b3480156200023657600080fd5b50600c546200024b906001600160a01b031681565b6040516001600160a01b0390911681526020016200015d565b3480156200027157600080fd5b50620001536200028336600462001805565b62000854565b6200017e6200029a366004620018da565b620008fd565b348015620002ad57600080fd5b506200017e62000b92565b348015620002c557600080fd5b506000546001600160a01b03166200024b565b348015620002e557600080fd5b506200017e620002f736600462001a4e565b62000bcd565b3480156200030a57600080fd5b506200015362000c59565b3480156200032257600080fd5b5062000153600a5481565b3480156200033a57600080fd5b506200017e62000ca9565b3480156200035257600080fd5b506200017e6200036436600462001805565b62000d3b565b6200017e6200037b36600462001b1e565b62000d89565b3480156200038e57600080fd5b506200017e620003a036600462001b4d565b62000e71565b348015620003b357600080fd5b506200017e620003c536600462001805565b62000fd8565b348015620003d857600080fd5b50620001537f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b6000546001600160a01b03163314620004375760405162461bcd60e51b81526004016200042e9062001b80565b60405180910390fd5b600019600a5403620004845760405162461bcd60e51b81526020600482015260156024820152741393d7d4d0531157d493d5539117d0d49150551151605a1b60448201526064016200042e565b60095460ff1615620004d95760405162461bcd60e51b815260206004820152601a60248201527f53414c455f524f554e445f454e41424c45445f414c524541445900000000000060448201526064016200042e565b6009805460ff19166001179055565b6000546001600160a01b03163314620005155760405162461bcd60e51b81526004016200042e9062001b80565b600c54604051631916558760e01b81526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b1580156200055d57600080fd5b505af115801562000572573d6000803e3d6000fd5b5050505050565b6000546001600160a01b03163314620005a65760405162461bcd60e51b81526004016200042e9062001b80565b60018383836000620005b762001077565b118015620005ce5750620005ca62001077565b8311155b620005ed5760405162461bcd60e51b81526004016200042e9062001bb5565b836200062757600a546000908152600d6020526040902054831015620006275760405162461bcd60e51b81526004016200042e9062001bb5565b82156200069e57828211156200067b5760405162461bcd60e51b81526020600482015260186024820152771253959053125117d31253525517d4115497d5d05313115560421b60448201526064016200042e565b828111156200069e5760405162461bcd60e51b81526004016200042e9062001be3565b8115620006c85781811115620006c85760405162461bcd60e51b81526004016200042e9062001be3565b60095460ff1615620007155760405162461bcd60e51b815260206004820152601560248201527414d0531157d493d5539117d254d7d1539050931151605a1b60448201526064016200042e565b600b5460408051633d0b77b560e11b815290516000926001600160a01b031691637a16ef6a9160048083019260209291908290030181865afa15801562000760573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000786919062001c11565b9050600181151514620007dc5760405162461bcd60e51b815260206004820152601e60248201527f414c4c5f52455345525645445f544f4b454e535f4e4f545f4d494e544544000060448201526064016200042e565b6005899055600688905560078790556008869055600480548b919060ff1916600183818111156200081157620008116200182c565b0217905550600019600a54036200082d576000600a5562000848565b6001600a600082825462000842919062001c4b565b90915550505b50505050505050505050565b60095460009060ff16151581036200086e57506000919050565b60006200087a62001077565b60075490915015620008be57600a546000908152600e602090815260408083206001600160a01b0387168452909152902054600754620008bb919062001c66565b90505b6000620008ca62001077565b60085490915015620008db57506008545b620008f581620008ef84620008ef62000c59565b6200116e565b949350505050565b600154829082906001600160a01b0316620009765760405162461bcd60e51b815260206004820152603260248201527f57686974656c697374206e6f7420656e61626c65643b20706c656173652073656044820152713a103a343290383934bb30ba329035b2bc9760711b60648201526084016200042e565b600254604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9602082015233918101919091526000919060600160405160208183030381529060405280519060200120604051602001620009f092919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600062000a4e84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506200118a9050565b6001549091506001600160a01b0380831691161462000aa45760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016200042e565b60026003540362000af85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200042e565b6002600355600060045460ff16600181111562000b195762000b196200182c565b14801562000b29575060095460ff165b62000b775760405162461bcd60e51b815260206004820152601b60248201527f57484954454c4953545f524f554e445f4e4f545f454e41424c4544000000000060448201526064016200042e565b62000b838888620011b2565b50506001600355505050505050565b6000546001600160a01b0316331462000bbf5760405162461bcd60e51b81526004016200042e9062001b80565b62000bcb60006200141b565b565b6000546001600160a01b0316331462000bfa5760405162461bcd60e51b81526004016200042e9062001b80565b818160405162000c0a90620017e1565b62000c1792919062001c80565b604051809103906000f08015801562000c34573d6000803e3d6000fd5b50600c80546001600160a01b0319166001600160a01b03929092169190911790555050565b60095460009060ff161515810362000c715750600090565b60065462000c885762000c8362001077565b905090565b600a546000908152600d602052604090205460065462000c83919062001c66565b6000546001600160a01b0316331462000cd65760405162461bcd60e51b81526004016200042e9062001b80565b60095460ff16151560011462000d2f5760405162461bcd60e51b815260206004820152601b60248201527f53414c455f524f554e445f44495341424c45445f414c5245414459000000000060448201526064016200042e565b6009805460ff19169055565b6000546001600160a01b0316331462000d685760405162461bcd60e51b81526004016200042e9062001b80565b600180546001600160a01b0319166001600160a01b03831617905550565b50565b60026003540362000ddd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200042e565b6002600355600160045460ff16600181111562000dfe5762000dfe6200182c565b14801562000e0e575060095460ff165b62000e5c5760405162461bcd60e51b815260206004820152601860248201527f5055424c49435f524f554e445f4e4f545f454e41424c4544000000000000000060448201526064016200042e565b62000e688282620011b2565b50506001600355565b6000546001600160a01b0316331462000e9e5760405162461bcd60e51b81526004016200042e9062001b80565b6000838383600062000eaf62001077565b11801562000ec6575062000ec262001077565b8311155b62000ee55760405162461bcd60e51b81526004016200042e9062001bb5565b8362000f1f57600a546000908152600d602052604090205483101562000f1f5760405162461bcd60e51b81526004016200042e9062001bb5565b821562000f96578282111562000f735760405162461bcd60e51b81526020600482015260186024820152771253959053125117d31253525517d4115497d5d05313115560421b60448201526064016200042e565b8281111562000f965760405162461bcd60e51b81526004016200042e9062001be3565b811562000fc0578181111562000fc05760405162461bcd60e51b81526004016200042e9062001be3565b50505060059490945560069290925560075560085550565b6000546001600160a01b03163314620010055760405162461bcd60e51b81526004016200042e9062001b80565b6001600160a01b0381166200106c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200042e565b62000d86816200141b565b600b54604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015620010c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620010e8919062001d08565b600b60009054906101000a90046001600160a01b03166001600160a01b031663d5abeb016040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200113c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001162919062001d08565b62000c83919062001c66565b6000818310156200118157508162001184565b50805b92915050565b60008060006200119b85856200146b565b91509150620011aa81620014e1565b509392505050565b60008111620012045760405162461bcd60e51b815260206004820152601960248201527f5a45524f5f5155414e544954595f4e4f545f414c4c4f5745440000000000000060448201526064016200042e565b80620012108362000854565b1015620012555760405162461bcd60e51b815260206004820152601260248201527113505617d352539514d7d15610d15151115160721b60448201526064016200042e565b6005546200126590829062001d22565b341015620012ab5760405162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e545f46554e445360701b60448201526064016200042e565b600a546000908152600e602090815260408083206001600160a01b038616845290915281208054839290620012e290849062001c4b565b9091555050600a546000908152600d6020526040812080548392906200130a90849062001c4b565b9091555050600b546040516340c10f1960e01b81526001600160a01b03848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b1580156200135e57600080fd5b505af115801562001373573d6000803e3d6000fd5b5050600c54604051600093506001600160a01b03909116915034908381818185875af1925050503d8060008114620013c8576040519150601f19603f3d011682016040523d82523d6000602084013e620013cd565b606091505b5050905080620014165760405162461bcd60e51b81526020600482015260136024820152722320a4a62fa32aa72229afaa2920a729a322a960691b60448201526064016200042e565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808251604103620014a55760208301516040840151606085015160001a6200149887828585620016af565b94509450505050620014da565b8251604003620014d25760208301516040840151620014c6868383620017a4565b935093505050620014da565b506000905060025b9250929050565b6000816004811115620014f857620014f86200182c565b03620015015750565b60018160048111156200151857620015186200182c565b03620015675760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016200042e565b60028160048111156200157e576200157e6200182c565b03620015cd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016200042e565b6003816004811115620015e457620015e46200182c565b036200163e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016200042e565b60048160048111156200165557620016556200182c565b0362000d865760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016200042e565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115620016e857506000905060036200179b565b8460ff16601b141580156200170157508460ff16601c14155b156200171457506000905060046200179b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801562001769573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811662001794576000600192509250506200179b565b9150600090505b94509492505050565b6000806001600160ff1b03831681620017c360ff86901c601b62001c4b565b9050620017d387828885620016af565b935093505050935093915050565b6111608062001d4583390190565b6001600160a01b038116811462000d8657600080fd5b6000602082840312156200181857600080fd5b81356200182581620017ef565b9392505050565b634e487b7160e01b600052602160045260246000fd5b60c08101600288106200186557634e487b7160e01b600052602160045260246000fd5b9681526020810195909552604085019390935260608401919091526080830152151560a09091015290565b600080600080600060a08688031215620018a957600080fd5b853560028110620018b957600080fd5b97602087013597506040870135966060810135965060800135945092505050565b60008060008060608587031215620018f157600080fd5b8435620018fe81620017ef565b935060208501359250604085013567ffffffffffffffff808211156200192357600080fd5b818701915087601f8301126200193857600080fd5b8135818111156200194857600080fd5b8860208285010111156200195b57600080fd5b95989497505060200194505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715620019ac57620019ac6200196a565b604052919050565b600067ffffffffffffffff821115620019d157620019d16200196a565b5060051b60200190565b600082601f830112620019ed57600080fd5b8135602062001a0662001a0083620019b4565b62001980565b82815260059290921b8401810191818101908684111562001a2657600080fd5b8286015b8481101562001a43578035835291830191830162001a2a565b509695505050505050565b6000806040838503121562001a6257600080fd5b823567ffffffffffffffff8082111562001a7b57600080fd5b818501915085601f83011262001a9057600080fd5b8135602062001aa362001a0083620019b4565b82815260059290921b8401810191818101908984111562001ac357600080fd5b948201945b8386101562001aee57853562001ade81620017ef565b8252948201949082019062001ac8565b9650508601359250508082111562001b0557600080fd5b5062001b1485828601620019db565b9150509250929050565b6000806040838503121562001b3257600080fd5b823562001b3f81620017ef565b946020939093013593505050565b6000806000806080858703121562001b6457600080fd5b5050823594602084013594506040840135936060013592509050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601490820152731253959053125117d513d5105317d05353d5539560621b604082015260600190565b6020808252601490820152731253959053125117d3505617d4115497d352539560621b604082015260600190565b60006020828403121562001c2457600080fd5b815180151581146200182557600080fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111562001c615762001c6162001c35565b500190565b60008282101562001c7b5762001c7b62001c35565b500390565b604080825283519082018190526000906020906060840190828701845b8281101562001cc45781516001600160a01b03168452928401929084019060010162001c9d565b5050508381038285015284518082528583019183019060005b8181101562001cfb5783518352928401929184019160010162001cdd565b5090979650505050505050565b60006020828403121562001d1b57600080fd5b5051919050565b600081600019048311821515161562001d3f5762001d3f62001c35565b50029056fe6080604052604051620011603803806200116083398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b5050506200056f565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000554565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200054d576200054d62000522565b5060010190565b600082198211156200056a576200056a62000522565b500190565b610be1806200057f6000396000f3fe60806040526004361061008a5760003560e01c80638b83209b116100595780638b83209b146101845780639852595c146101bc578063ce7c2ac2146101f2578063d79779b214610228578063e33b7de31461025e57600080fd5b806319165587146100d85780633a98ef39146100fa578063406072a91461011e57806348b750441461016457600080fd5b366100d3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100e457600080fd5b506100f86100f3366004610955565b610273565b005b34801561010657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561012a57600080fd5b5061010b610139366004610972565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561017057600080fd5b506100f861017f366004610972565b6103ad565b34801561019057600080fd5b506101a461019f3660046109ab565b610589565b6040516001600160a01b039091168152602001610115565b3480156101c857600080fd5b5061010b6101d7366004610955565b6001600160a01b031660009081526003602052604090205490565b3480156101fe57600080fd5b5061010b61020d366004610955565b6001600160a01b031660009081526002602052604090205490565b34801561023457600080fd5b5061010b610243366004610955565b6001600160a01b031660009081526005602052604090205490565b34801561026a57600080fd5b5060015461010b565b6001600160a01b0381166000908152600260205260409020546102b15760405162461bcd60e51b81526004016102a8906109c4565b60405180910390fd5b60006102bc60015490565b6102c69047610a20565b905060006102f383836102ee866001600160a01b031660009081526003602052604090205490565b6105b9565b9050806000036103155760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b0383166000908152600360205260408120805483929061033d908490610a20565b9250508190555080600160008282546103569190610a20565b90915550610366905083826105fe565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546103e25760405162461bcd60e51b81526004016102a8906109c4565b6001600160a01b0382166000908152600560205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa15801561043f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104639190610a83565b61046d9190610a20565b905060006104a683836102ee87876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806000036104c85760405162461bcd60e51b81526004016102a890610a38565b6001600160a01b038085166000908152600660209081526040808320938716835292905290812080548392906104ff908490610a20565b90915550506001600160a01b0384166000908152600560205260408120805483929061052c908490610a20565b9091555061053d905084848361071c565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006004828154811061059e5761059e610a9c565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b0385168252600260205260408220548391906105e09086610ab2565b6105ea9190610ad1565b6105f49190610af3565b90505b9392505050565b8047101561064e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461069b576040519150601f19603f3d011682016040523d82523d6000602084013e6106a0565b606091505b50509050806107175760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102a8565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663a9059cbb60e01b17905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490840152610717928692916000916107ac918516908490610829565b80519091501561071757808060200190518101906107ca9190610b0a565b6107175760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a8565b60606105f48484600085856001600160a01b0385163b61088b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a8565b600080866001600160a01b031685876040516108a79190610b5c565b60006040518083038185875af1925050503d80600081146108e4576040519150601f19603f3d011682016040523d82523d6000602084013e6108e9565b606091505b50915091506108f9828286610904565b979650505050505050565b606083156109135750816105f7565b8251156109235782518084602001fd5b8160405162461bcd60e51b81526004016102a89190610b78565b6001600160a01b038116811461095257600080fd5b50565b60006020828403121561096757600080fd5b81356105f78161093d565b6000806040838503121561098557600080fd5b82356109908161093d565b915060208301356109a08161093d565b809150509250929050565b6000602082840312156109bd57600080fd5b5035919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a3357610a33610a0a565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b600060208284031215610a9557600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610acc57610acc610a0a565b500290565b600082610aee57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610b0557610b05610a0a565b500390565b600060208284031215610b1c57600080fd5b815180151581146105f757600080fd5b60005b83811015610b47578181015183820152602001610b2f565b83811115610b56576000848401525b50505050565b60008251610b6e818460208701610b2c565b9190910192915050565b6020815260008251806020840152610b97816040850160208701610b2c565b601f01601f1916919091016040019291505056fea264697066735822122041b7492bf22540a77f025c18a97fe6ab82d8ecff39f420e5dce77ef83a80495664736f6c634300080d0033a2646970667358221220d766f09f0258ed72881f181fdbfc25a345de848e567f17c1d4912d462d76200c64736f6c634300080d0033

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

000000000000000000000000052d3a950eb81c06857e5e57b2d86246689768cf00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000b42726577696573204e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005312e302e30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000037e0c3211b4d3e8328e78bbd6fafbee7f93615f7000000000000000000000000538adace178a23062ec0482685aa9c76a349ab9200000000000000000000000013f1b8b104d90e09898c01e1ccde297d52a29d900000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000046

-----Decoded View---------------
Arg [0] : nftContract (address): 0x052D3A950eb81C06857E5e57b2d86246689768CF
Arg [1] : tokenName (string): Brewies NFT
Arg [2] : version (string): 1.0.0
Arg [3] : payees (address[]): 0x37E0c3211B4d3e8328E78Bbd6faFBee7F93615F7,0x538ADace178a23062ec0482685AA9c76A349AB92,0x13f1b8b104d90e09898c01E1ccde297D52a29D90
Arg [4] : shares (uint256[]): 15,15,70

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 000000000000000000000000052d3a950eb81c06857e5e57b2d86246689768cf
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 42726577696573204e4654000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 312e302e30000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 00000000000000000000000037e0c3211b4d3e8328e78bbd6fafbee7f93615f7
Arg [11] : 000000000000000000000000538adace178a23062ec0482685aa9c76a349ab92
Arg [12] : 00000000000000000000000013f1b8b104d90e09898c01e1ccde297d52a29d90
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [14] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [15] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000046


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.