ETH Price: $3,489.49 (+3.66%)
Gas: 2 Gwei

Contract

0x21A0B21C63e3DA17966915B4480Ce4bdbe139D1A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Mint Tokens146381562022-04-23 1:24:35800 days ago1650677075IN
0x21A0B21C...dbe139D1A
0.142 ETH0.0015616336.51752886
Mint Presale141801022022-02-10 19:07:47871 days ago1644520067IN
0x21A0B21C...dbe139D1A
0.284 ETH0.00834017205.8691294
Mint Presale141445422022-02-05 7:11:34876 days ago1644045094IN
0x21A0B21C...dbe139D1A
0.142 ETH0.003458650.95026498
Mint Presale141445422022-02-05 7:11:34876 days ago1644045094IN
0x21A0B21C...dbe139D1A
0.142 ETH0.003458650.95026498
Mint Presale141445422022-02-05 7:11:34876 days ago1644045094IN
0x21A0B21C...dbe139D1A
0.142 ETH0.003458650.95026498
Mint Presale141445422022-02-05 7:11:34876 days ago1644045094IN
0x21A0B21C...dbe139D1A
0.142 ETH0.003458650.95026498
Mint Presale141445412022-02-05 7:11:31876 days ago1644045091IN
0x21A0B21C...dbe139D1A
0.142 ETH0.0035168852.03956463
Mint Presale141445412022-02-05 7:11:31876 days ago1644045091IN
0x21A0B21C...dbe139D1A
0.142 ETH0.0032094852.03956463
Mint Presale141445412022-02-05 7:11:31876 days ago1644045091IN
0x21A0B21C...dbe139D1A
0.142 ETH0.0035168852.03956463
Mint Presale141445402022-02-05 7:11:23876 days ago1644045083IN
0x21A0B21C...dbe139D1A
0.142 ETH0.0038160356.67069062
Mint Presale141280952022-02-02 17:55:54879 days ago1643824554IN
0x21A0B21C...dbe139D1A
0.426 ETH0.00756517177.8241111
Mint Presale141216242022-02-01 18:05:36880 days ago1643738736IN
0x21A0B21C...dbe139D1A
0.284 ETH0.00747452184.39215715
Mint Tokens141094342022-01-30 20:52:45882 days ago1643575965IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00544883127.41648249
Mint Tokens140966162022-01-28 21:33:11884 days ago1643405591IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00813304190.18434201
Mint Tokens140961502022-01-28 19:49:35884 days ago1643399375IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00653763152.87703957
Mint Tokens140961502022-01-28 19:49:35884 days ago1643399375IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00653378152.78703957
Mint Presale140957062022-01-28 18:10:32884 days ago1643393432IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00773336190.834121
Mint Tokens140898752022-01-27 20:29:24885 days ago1643315364IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00645714150.99488426
Mint Tokens140895912022-01-27 19:27:59885 days ago1643311679IN
0x21A0B21C...dbe139D1A
0.142 ETH0.00798095186.62798551
Release140876532022-01-27 12:28:59885 days ago1643286539IN
0x21A0B21C...dbe139D1A
0 ETH0.0027205987.45095353
Release140876532022-01-27 12:28:59885 days ago1643286539IN
0x21A0B21C...dbe139D1A
0 ETH0.0054851887.45095353
Release140845972022-01-27 0:59:46886 days ago1643245186IN
0x21A0B21C...dbe139D1A
0 ETH0.00810111124.20636874
Release140840622022-01-26 22:58:26886 days ago1643237906IN
0x21A0B21C...dbe139D1A
0 ETH0.00718541114.55792656
Release140826082022-01-26 17:27:58886 days ago1643218078IN
0x21A0B21C...dbe139D1A
0 ETH0.01024818157.12539523
Release140823562022-01-26 16:30:05886 days ago1643214605IN
0x21A0B21C...dbe139D1A
0 ETH0.00837547117.05444662
View all transactions

Latest 12 internal transactions

Advanced mode:
Parent Transaction Hash Block From To Value
140876532022-01-27 12:28:59885 days ago1643286539
0x21A0B21C...dbe139D1A
14.63878 ETH
140845972022-01-27 0:59:46886 days ago1643245186
0x21A0B21C...dbe139D1A
146.3878 ETH
140840622022-01-26 22:58:26886 days ago1643237906
0x21A0B21C...dbe139D1A
37.1825012 ETH
140826082022-01-26 17:27:58886 days ago1643218078
0x21A0B21C...dbe139D1A
90.6140482 ETH
140823562022-01-26 16:30:05886 days ago1643214605
0x21A0B21C...dbe139D1A
5.123573 ETH
140821382022-01-26 15:41:45886 days ago1643211705
0x21A0B21C...dbe139D1A
7.31939 ETH
140821292022-01-26 15:40:08886 days ago1643211608
0x21A0B21C...dbe139D1A
7.31939 ETH
140786172022-01-26 2:33:56887 days ago1643164436
0x21A0B21C...dbe139D1A
468.44096 ETH
140782142022-01-26 1:06:20887 days ago1643159180
0x21A0B21C...dbe139D1A
190.30414 ETH
140781702022-01-26 0:57:46887 days ago1643158666
0x21A0B21C...dbe139D1A
9.515207 ETH
140773092022-01-25 21:55:15887 days ago1643147715
0x21A0B21C...dbe139D1A
415.4485764 ETH
140772302022-01-25 21:40:22887 days ago1643146822
0x21A0B21C...dbe139D1A
71.5836342 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HomiesStorefront

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 9 : Storefront.sol
// SPDX-License-Identifier: MIT
/// @title: Homies In Dreamland NFT Storefront
/// @author: DropHero LLC
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

interface IMintableToken {
    function mintTokens(uint16 numberOfTokens, address to) external;
    function totalSupply() external returns (uint256);
}

contract HomiesStorefront is Pausable, Ownable, PaymentSplitter {
    struct PresaleWave {
        uint8 mintLimit;
        bytes32 merkleRoot;
    }

    uint256 _mintPrice = 0.1420 ether;
    uint64 _saleStart;
    uint16 _maxPurchaseCount = 5;
    string _baseURIValue;
    PresaleWave[] _presaleWaves;

    mapping(address => uint8) _presalePurchases;

    IMintableToken token;

    constructor(
        uint64 saleStart_,
        address[] memory payees,
        uint256[] memory paymentShares,
        address tokenAddress,
        bytes32 wave0root,
        bytes32 wave1root,
        bytes32 wave2root
    ) PaymentSplitter(payees, paymentShares) {
        _saleStart = saleStart_;
        token = IMintableToken(tokenAddress);

        _presaleWaves.push(PresaleWave({
            merkleRoot: wave0root,
            mintLimit: 4
        }));
        _presaleWaves.push(PresaleWave({
            merkleRoot: wave1root,
            mintLimit: 3
        }));
        _presaleWaves.push(PresaleWave({
            merkleRoot: wave2root,
            mintLimit: 2
        }));
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function setSaleStart(uint64 timestamp) external onlyOwner {
        _saleStart = timestamp;
    }

    function saleStart() public view returns (uint64) {
        return _saleStart;
    }

    function presaleStart() public view returns (uint64) {
        return _saleStart - 6 * 60 * 60;
    }

    function saleHasStarted() public view returns (bool) {
        return _saleStart <= block.timestamp;
    }

    function presaleHasStarted() public view returns (bool) {
        return presaleStart() <= block.timestamp;
    }

    function currentPresaleWave() public view returns (uint8) {
        if (block.timestamp > _saleStart - 2 * 60 * 60) {
            return 2;
        }

        if (block.timestamp > _saleStart - 4 * 60 * 60) {
            return 1;
        }

        return 0;
    }

    function maxPresaleMints(uint8 waveIndex) public view returns (uint8) {
        uint8 currentWave = currentPresaleWave();
        uint8 total = 0;

        if (waveIndex > currentWave) {
            return total;
        }

        for(uint8 i = waveIndex; i <= currentWave; i++) {
            total += _presaleWaves[i].mintLimit;
        }

        return total;
    }

    function presalePurchases(address addr) external view returns(uint8) {
        return _presalePurchases[addr];
    }

    function maxPurchaseCount() public view returns (uint16) {
        return _maxPurchaseCount;
    }

    function setMaxPurchaseCount(uint16 count) external onlyOwner {
        _maxPurchaseCount = count;
    }

    function baseMintPrice() public view returns (uint256) {
        return _mintPrice;
    }

    function setBaseMintPrice(uint256 price) external onlyOwner {
        _mintPrice = price;
    }

    function mintPrice(uint256 numberOfTokens) public view returns (uint256) {
        return _mintPrice * numberOfTokens;
    }

    function presaleWaves() public view returns (PresaleWave[] memory) {
        return _presaleWaves;
    }

    function updatePresaleWave(uint256 waveIndex, uint8 mintLimit, bytes32 merkleRoot)
        external
        onlyOwner
    {
        _presaleWaves[waveIndex] = PresaleWave({
            mintLimit: mintLimit,
            merkleRoot: merkleRoot
        });
    }

    function mintTokens(uint16 numberOfTokens)
        external
        payable
        whenNotPaused
    {
        require(
            numberOfTokens <= _maxPurchaseCount,
            "MAX_PER_TX_EXCEEDED"
        );
        require(
            mintPrice(numberOfTokens) == msg.value,
            "VALUE_INCORRECT"
        );
        require(
            _msgSender() == tx.origin,
            "NOT_CALLED_FROM_EOA"
        );
        require(saleHasStarted(), "SALE_NOT_STARTED");

        token.mintTokens(numberOfTokens, _msgSender());
    }

    function mintPresale(uint8 numberOfTokens, bytes32[] calldata merkleProof, uint8 presaleWave)
        external
        payable
        whenNotPaused
    {
        require(presaleHasStarted(), "PRESALE_NOT_STARTED");
        require(currentPresaleWave() >= presaleWave, "PRESALE_WAVE_NOT_STARTED");

        require(
            _presalePurchases[_msgSender()] + numberOfTokens <= maxPresaleMints(presaleWave),
            "MAX_PRESALE_MINTS_EXCEEDED"
        );

        require(
            mintPrice(numberOfTokens) == msg.value,
            "VALUE_INCORRECT"
        );

        require(
            MerkleProof.verify(
                merkleProof,
                _presaleWaves[presaleWave].merkleRoot,
                keccak256(abi.encodePacked(_msgSender()))
            ),
            "INVALID_MERKLE_PROOF"
        );

        _presalePurchases[_msgSender()] += numberOfTokens;
        token.mintTokens(numberOfTokens, _msgSender());
    }
}

File 2 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

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

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

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

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

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

File 3 of 9 : 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 9 : 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 9 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 6 of 9 : 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 7 of 9 : 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 8 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 9 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint64","name":"saleStart_","type":"uint64"},{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"paymentShares","type":"uint256[]"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bytes32","name":"wave0root","type":"bytes32"},{"internalType":"bytes32","name":"wave1root","type":"bytes32"},{"internalType":"bytes32","name":"wave2root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"baseMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPresaleWave","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"waveIndex","type":"uint8"}],"name":"maxPresaleMints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPurchaseCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint8","name":"presaleWave","type":"uint8"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"numberOfTokens","type":"uint16"}],"name":"mintTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleHasStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"presalePurchases","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStart","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleWaves","outputs":[{"components":[{"internalType":"uint8","name":"mintLimit","type":"uint8"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"internalType":"struct HomiesStorefront.PresaleWave[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleHasStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setBaseMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"count","type":"uint16"}],"name":"setMaxPurchaseCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"timestamp","type":"uint64"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"waveIndex","type":"uint256"},{"internalType":"uint8","name":"mintLimit","type":"uint8"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"updatePresaleWave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526701f87c3f661b00006008556009805461ffff60401b1916680500000000000000001790553480156200003657600080fd5b50604051620027dd380380620027dd83398101604081905262000059916200062d565b6000805460ff1916905585856200007033620002e8565b8051825114620000e25760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001355760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000d9565b60005b8251811015620001a1576200018c8382815181106200015b576200015b62000744565b602002602001015183838151811062000178576200017862000744565b60200260200101516200034160201b60201c565b80620001988162000770565b91505062000138565b5050600980546001600160401b0319166001600160401b039990991698909817909755600d80546001600160a01b0319166001600160a01b039590951694909417909355604080518082018252600481526020808201948552600b805460018181018355600083815294517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db96002938402818101805460ff1990811660ff958616179091559a517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba918201558851808a018a52600381528088019a8b5286548086018855878a52905190860280840180548e16928616929092179091559951998101999099558751808901909852838852948701998a52835491820184559290945293519290930290810180549095169190921617909255915191015550620007a9915050565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6001600160a01b038216620003ae5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000d9565b60008111620004005760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000d9565b6001600160a01b038216600090815260036020526040902054156200047c5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000d9565b6005805460018082019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b038516908117909155600090815260036020526040902082905554620004e59082906200078e565b600155604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200056f576200056f6200052e565b604052919050565b60006001600160401b038211156200059357620005936200052e565b5060051b60200190565b80516001600160a01b0381168114620005b557600080fd5b919050565b600082601f830112620005cc57600080fd5b81516020620005e5620005df8362000577565b62000544565b82815260059290921b840181019181810190868411156200060557600080fd5b8286015b8481101562000622578051835291830191830162000609565b509695505050505050565b600080600080600080600060e0888a0312156200064957600080fd5b87516001600160401b0380821682146200066257600080fd5b60208a81015192995091818111156200067a57600080fd5b8a01601f81018c136200068c57600080fd5b80516200069d620005df8262000577565b81815260059190911b8201840190848101908e831115620006bd57600080fd5b928501925b82841015620006e657620006d6846200059d565b82529285019290850190620006c2565b60408e0151909b509450505050808211156200070157600080fd5b50620007108a828b01620005ba565b95505062000721606089016200059d565b93506080880151925060a0880151915060c0880151905092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200078757620007876200075a565b5060010190565b60008219821115620007a457620007a46200075a565b500190565b61202480620007b96000396000f3fe6080604052600436106101e75760003560e01c80639852595c11610102578063d79779b211610095578063ec3c2aae11610064578063ec3c2aae1461063e578063f2fde38b14610653578063f7d82ca514610673578063fcd8fdc91461069557600080fd5b8063d79779b2146105be578063de8801e5146105f4578063e33b7de314610609578063e6a72acf1461061e57600080fd5b8063c7029964116100d1578063c70299641461053c578063ce7c2ac214610560578063d393da4b14610596578063d5f52098146105a957600080fd5b80639852595c14610479578063a68574d3146104af578063ab0bcc41146104e8578063b3a891c91461051c57600080fd5b80635c975abb1161017a5780638559dff3116101495780638559dff3146103d75780638b83209b146103ec5780638da5cb5b1461042457806397b97bd71461044757600080fd5b80635c975abb14610369578063715018a61461038d57806382188324146103a25780638456cb59146103c257600080fd5b80633f4ba83a116101b65780633f4ba83a146102ce578063406072a9146102e3578063420401e91461032957806348b750441461034957600080fd5b80631916558714610235578063222cb901146102575780633a98ef39146102775780633cf924a01461029b57600080fd5b36610230577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561024157600080fd5b50610255610250366004611be3565b6106a8565b005b34801561026357600080fd5b50610255610272366004611c00565b61085e565b34801561028357600080fd5b506001545b6040519081526020015b60405180910390f35b3480156102a757600080fd5b5060095468010000000000000000900461ffff1660405161ffff9091168152602001610292565b3480156102da57600080fd5b506102556108d8565b3480156102ef57600080fd5b506102886102fe366004611c24565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b34801561033557600080fd5b50610255610344366004611c5d565b610930565b34801561035557600080fd5b50610255610364366004611c24565b610983565b34801561037557600080fd5b5060005460ff165b6040519015158152602001610292565b34801561039957600080fd5b50610255610bee565b3480156103ae57600080fd5b506102556103bd366004611c8c565b610c46565b3480156103ce57600080fd5b50610255610cf2565b3480156103e357600080fd5b50600854610288565b3480156103f857600080fd5b5061040c610407366004611c5d565b610d48565b6040516001600160a01b039091168152602001610292565b34801561043057600080fd5b5060005461010090046001600160a01b031661040c565b34801561045357600080fd5b50610467610462366004611cc1565b610d78565b60405160ff9091168152602001610292565b34801561048557600080fd5b50610288610494366004611be3565b6001600160a01b031660009081526004602052604090205490565b3480156104bb57600080fd5b506104676104ca366004611be3565b6001600160a01b03166000908152600c602052604090205460ff1690565b3480156104f457600080fd5b5060095467ffffffffffffffff165b60405167ffffffffffffffff9091168152602001610292565b34801561052857600080fd5b50610255610537366004611cdc565b610dfb565b34801561054857600080fd5b506009544267ffffffffffffffff909116111561037d565b34801561056c57600080fd5b5061028861057b366004611be3565b6001600160a01b031660009081526003602052604090205490565b6102556105a4366004611d06565b610e6d565b3480156105b557600080fd5b5061037d6111e2565b3480156105ca57600080fd5b506102886105d9366004611be3565b6001600160a01b031660009081526006602052604090205490565b34801561060057600080fd5b506105036111fe565b34801561061557600080fd5b50600254610288565b34801561062a57600080fd5b50610288610639366004611c5d565b611220565b34801561064a57600080fd5b50610467611236565b34801561065f57600080fd5b5061025561066e366004611be3565b6112a1565b34801561067f57600080fd5b50610688611360565b6040516102929190611d9d565b6102556106a3366004611c00565b6113cf565b6001600160a01b0381166000908152600360205260409020546107215760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b600061072c60025490565b6107369047611e05565b90506000610763838361075e866001600160a01b031660009081526004602052604090205490565b6115ed565b9050806107c65760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610718565b6001600160a01b038316600090815260046020526040812080548392906107ee908490611e05565b9250508190555080600260008282546108079190611e05565b9091555061081790508382611635565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000546001600160a01b036101009091041633146108ac5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b6009805461ffff909216680100000000000000000269ffff000000000000000019909216919091179055565b6000546001600160a01b036101009091041633146109265760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b61092e611753565b565b6000546001600160a01b0361010090910416331461097e5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b600855565b6001600160a01b0381166000908152600360205260409020546109f75760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610718565b6001600160a01b0382166000908152600660205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190611e1d565b610a919190611e05565b90506000610aca838361075e87876001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b905080610b2d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610718565b6001600160a01b03808516600090815260076020908152604080832093871683529290529081208054839290610b64908490611e05565b90915550506001600160a01b03841660009081526006602052604081208054839290610b91908490611e05565b90915550610ba290508484836117ef565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000546001600160a01b03610100909104163314610c3c5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b61092e6000611856565b6000546001600160a01b03610100909104163314610c945760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b60405180604001604052808360ff16815260200182815250600b8481548110610cbf57610cbf611e36565b6000918252602091829020835160029290920201805460ff191660ff909216919091178155910151600190910155505050565b6000546001600160a01b03610100909104163314610d405760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b61092e6118bc565b600060058281548110610d5d57610d5d611e36565b6000918252602090912001546001600160a01b031692915050565b600080610d83611236565b905060008160ff168460ff161115610d9c579392505050565b835b8260ff168160ff1611610df357600b8160ff1681548110610dc157610dc1611e36565b6000918252602090912060029091020154610ddf9060ff1683611e4c565b915080610deb81611e71565b915050610d9e565b509392505050565b6000546001600160a01b03610100909104163314610e495760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b6009805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b60005460ff1615610eb35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610718565b610ebb6111e2565b610f075760405162461bcd60e51b815260206004820152601360248201527f50524553414c455f4e4f545f53544152544544000000000000000000000000006044820152606401610718565b8060ff16610f13611236565b60ff161015610f645760405162461bcd60e51b815260206004820152601860248201527f50524553414c455f574156455f4e4f545f5354415254454400000000000000006044820152606401610718565b610f6d81610d78565b336000908152600c602052604090205460ff91821691610f8f91879116611e4c565b60ff161115610fe05760405162461bcd60e51b815260206004820152601a60248201527f4d41585f50524553414c455f4d494e54535f45584345454445440000000000006044820152606401610718565b34610fed8560ff16611220565b1461102c5760405162461bcd60e51b815260206004820152600f60248201526e159053155157d25390d3d4949150d5608a1b6044820152606401610718565b6110d783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b805490925060ff86169150811061107b5761107b611e36565b9060005260206000209060020201600101546110943390565b6040516020016110bc919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120611937565b6111235760405162461bcd60e51b815260206004820152601460248201527f494e56414c49445f4d45524b4c455f50524f4f460000000000000000000000006044820152606401610718565b336000908152600c60205260408120805486929061114590849060ff16611e4c565b825460ff9182166101009390930a928302919092021990911617905550600d546001600160a01b0316631bc099258561117b3390565b6040516001600160e01b031960e085901b16815260ff90921660048301526001600160a01b03166024820152604401600060405180830381600087803b1580156111c457600080fd5b505af11580156111d8573d6000803e3d6000fd5b5050505050505050565b6000426111ed6111fe565b67ffffffffffffffff161115905090565b60095460009061121b906154609067ffffffffffffffff16611e91565b905090565b6000816008546112309190611eba565b92915050565b60095460009061125390611c209067ffffffffffffffff16611e91565b67ffffffffffffffff1642111561126a5750600290565b600954611284906138409067ffffffffffffffff16611e91565b67ffffffffffffffff1642111561129b5750600190565b50600090565b6000546001600160a01b036101009091041633146112ef5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b6001600160a01b0381166113545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610718565b61135d81611856565b50565b6060600b805480602002602001604051908101604052809291908181526020016000905b828210156113c65760008481526020908190206040805180820190915260028502909101805460ff168252600190810154828401529083529092019101611384565b50505050905090565b60005460ff16156114155760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610718565b60095461ffff680100000000000000009091048116908216111561147b5760405162461bcd60e51b815260206004820152601360248201527f4d41585f5045525f54585f4558434545444544000000000000000000000000006044820152606401610718565b346114898261ffff16611220565b146114c85760405162461bcd60e51b815260206004820152600f60248201526e159053155157d25390d3d4949150d5608a1b6044820152606401610718565b3332146115175760405162461bcd60e51b815260206004820152601360248201527f4e4f545f43414c4c45445f46524f4d5f454f41000000000000000000000000006044820152606401610718565b6009544267ffffffffffffffff90911611156115755760405162461bcd60e51b815260206004820152601060248201527f53414c455f4e4f545f53544152544544000000000000000000000000000000006044820152606401610718565b600d546001600160a01b0316631bc0992582336040516001600160e01b031960e085901b16815261ffff90921660048301526001600160a01b03166024820152604401600060405180830381600087803b1580156115d257600080fd5b505af11580156115e6573d6000803e3d6000fd5b5050505050565b6001546001600160a01b038416600090815260036020526040812054909183916116179086611eba565b6116219190611ed9565b61162b9190611efb565b90505b9392505050565b804710156116855760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610718565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146116d2576040519150601f19603f3d011682016040523d82523d6000602084013e6116d7565b606091505b505090508061174e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610718565b505050565b60005460ff166117a55760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610718565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261174e90849061194d565b600080546001600160a01b0383811661010081810274ffffffffffffffffffffffffffffffffffffffff0019851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff16156119025760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610718565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117d23390565b6000826119448584611a1f565b14949350505050565b60006119a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ac39092919063ffffffff16565b80519091501561174e57808060200190518101906119c09190611f12565b61174e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610718565b600081815b8451811015610df3576000858281518110611a4157611a41611e36565b60200260200101519050808311611a83576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611ab0565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611abb81611f34565b915050611a24565b606061162b848460008585843b611b1c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610718565b600080866001600160a01b03168587604051611b389190611f7f565b60006040518083038185875af1925050503d8060008114611b75576040519150601f19603f3d011682016040523d82523d6000602084013e611b7a565b606091505b5091509150611b8a828286611b95565b979650505050505050565b60608315611ba457508161162e565b825115611bb45782518084602001fd5b8160405162461bcd60e51b81526004016107189190611f9b565b6001600160a01b038116811461135d57600080fd5b600060208284031215611bf557600080fd5b813561162e81611bce565b600060208284031215611c1257600080fd5b813561ffff8116811461162e57600080fd5b60008060408385031215611c3757600080fd5b8235611c4281611bce565b91506020830135611c5281611bce565b809150509250929050565b600060208284031215611c6f57600080fd5b5035919050565b803560ff81168114611c8757600080fd5b919050565b600080600060608486031215611ca157600080fd5b83359250611cb160208501611c76565b9150604084013590509250925092565b600060208284031215611cd357600080fd5b61162e82611c76565b600060208284031215611cee57600080fd5b813567ffffffffffffffff8116811461162e57600080fd5b60008060008060608587031215611d1c57600080fd5b611d2585611c76565b9350602085013567ffffffffffffffff80821115611d4257600080fd5b818701915087601f830112611d5657600080fd5b813581811115611d6557600080fd5b8860208260051b8501011115611d7a57600080fd5b602083019550809450505050611d9260408601611c76565b905092959194509250565b602080825282518282018190526000919060409081850190868401855b82811015611de2578151805160ff168552860151868501529284019290850190600101611dba565b5091979650505050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611e1857611e18611def565b500190565b600060208284031215611e2f57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff03821115611e6957611e69611def565b019392505050565b600060ff821660ff811415611e8857611e88611def565b60010192915050565b600067ffffffffffffffff83811690831681811015611eb257611eb2611def565b039392505050565b6000816000190483118215151615611ed457611ed4611def565b500290565b600082611ef657634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611f0d57611f0d611def565b500390565b600060208284031215611f2457600080fd5b8151801515811461162e57600080fd5b6000600019821415611f4857611f48611def565b5060010190565b60005b83811015611f6a578181015183820152602001611f52565b83811115611f79576000848401525b50505050565b60008251611f91818460208701611f4f565b9190910192915050565b6020815260008251806020840152611fba816040850160208701611f4f565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f78174c081ab81b4203fcd6b229af2cdc30346cf82af964d0406a8c4873e757664736f6c634300080900330000000000000000000000000000000000000000000000000000000061f0698000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000280000000000000000000000000f22da0424d1dfd70099d30941bbaf35e7f986f1d008cf00e089272ecedbcb36b9b494cebd27e405adb29399797c82622bba8ae142e6799823e4d2d7673f81237b97a4b49c9d7bf54a19931fae338e78ce9d8208b9fb7f467be7d69fe6b15e1e4f3c943772a21aecd8bba9b28f867541d7449b929000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000e4cd5b52b309fd29a30ad24a4ec55af76d1c92a10000000000000000000000005b1212fe9b20d32688f5f02973087f828b0a4824000000000000000000000000e22539d6accefe52e3ac924d3a33f8e1340d81c20000000000000000000000002614549112b30a5654e84e6df3ca8e4a8b1d57390000000000000000000000008a69b79bc7e73b2ef9b9f11ad3e17bd2891a34ae0000000000000000000000005598fdab48dd39566e5a63b82b230b6567ea67d7000000000000000000000000c5f59709974262c4afacc5386287820bdbc7eb3a000000000000000000000000d5fab5d372081b4f20fd4636bde96e9061aaa8a40000000000000000000000004c6c30d2f2ed99be59cf85f28f3609b6beb4911b000000000000000000000000f5b8cccc0a59f529161e5311f3fcc5e4a2695ae000000000000000000000000001497493ab2f6a94e1c88552becc779ea81309ac000000000000000000000000fa2c24912b8a8f0e1a469e49ea41a38b3e9341bc000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000005140000000000000000000000000000000000000000000000000000000000000b160000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000410000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000026b00000000000000000000000000000000000000000000000000000000000001e900000000000000000000000000000000000000000000000000000000000000fe

Deployed Bytecode

0x6080604052600436106101e75760003560e01c80639852595c11610102578063d79779b211610095578063ec3c2aae11610064578063ec3c2aae1461063e578063f2fde38b14610653578063f7d82ca514610673578063fcd8fdc91461069557600080fd5b8063d79779b2146105be578063de8801e5146105f4578063e33b7de314610609578063e6a72acf1461061e57600080fd5b8063c7029964116100d1578063c70299641461053c578063ce7c2ac214610560578063d393da4b14610596578063d5f52098146105a957600080fd5b80639852595c14610479578063a68574d3146104af578063ab0bcc41146104e8578063b3a891c91461051c57600080fd5b80635c975abb1161017a5780638559dff3116101495780638559dff3146103d75780638b83209b146103ec5780638da5cb5b1461042457806397b97bd71461044757600080fd5b80635c975abb14610369578063715018a61461038d57806382188324146103a25780638456cb59146103c257600080fd5b80633f4ba83a116101b65780633f4ba83a146102ce578063406072a9146102e3578063420401e91461032957806348b750441461034957600080fd5b80631916558714610235578063222cb901146102575780633a98ef39146102775780633cf924a01461029b57600080fd5b36610230577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561024157600080fd5b50610255610250366004611be3565b6106a8565b005b34801561026357600080fd5b50610255610272366004611c00565b61085e565b34801561028357600080fd5b506001545b6040519081526020015b60405180910390f35b3480156102a757600080fd5b5060095468010000000000000000900461ffff1660405161ffff9091168152602001610292565b3480156102da57600080fd5b506102556108d8565b3480156102ef57600080fd5b506102886102fe366004611c24565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b34801561033557600080fd5b50610255610344366004611c5d565b610930565b34801561035557600080fd5b50610255610364366004611c24565b610983565b34801561037557600080fd5b5060005460ff165b6040519015158152602001610292565b34801561039957600080fd5b50610255610bee565b3480156103ae57600080fd5b506102556103bd366004611c8c565b610c46565b3480156103ce57600080fd5b50610255610cf2565b3480156103e357600080fd5b50600854610288565b3480156103f857600080fd5b5061040c610407366004611c5d565b610d48565b6040516001600160a01b039091168152602001610292565b34801561043057600080fd5b5060005461010090046001600160a01b031661040c565b34801561045357600080fd5b50610467610462366004611cc1565b610d78565b60405160ff9091168152602001610292565b34801561048557600080fd5b50610288610494366004611be3565b6001600160a01b031660009081526004602052604090205490565b3480156104bb57600080fd5b506104676104ca366004611be3565b6001600160a01b03166000908152600c602052604090205460ff1690565b3480156104f457600080fd5b5060095467ffffffffffffffff165b60405167ffffffffffffffff9091168152602001610292565b34801561052857600080fd5b50610255610537366004611cdc565b610dfb565b34801561054857600080fd5b506009544267ffffffffffffffff909116111561037d565b34801561056c57600080fd5b5061028861057b366004611be3565b6001600160a01b031660009081526003602052604090205490565b6102556105a4366004611d06565b610e6d565b3480156105b557600080fd5b5061037d6111e2565b3480156105ca57600080fd5b506102886105d9366004611be3565b6001600160a01b031660009081526006602052604090205490565b34801561060057600080fd5b506105036111fe565b34801561061557600080fd5b50600254610288565b34801561062a57600080fd5b50610288610639366004611c5d565b611220565b34801561064a57600080fd5b50610467611236565b34801561065f57600080fd5b5061025561066e366004611be3565b6112a1565b34801561067f57600080fd5b50610688611360565b6040516102929190611d9d565b6102556106a3366004611c00565b6113cf565b6001600160a01b0381166000908152600360205260409020546107215760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b600061072c60025490565b6107369047611e05565b90506000610763838361075e866001600160a01b031660009081526004602052604090205490565b6115ed565b9050806107c65760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610718565b6001600160a01b038316600090815260046020526040812080548392906107ee908490611e05565b9250508190555080600260008282546108079190611e05565b9091555061081790508382611635565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6000546001600160a01b036101009091041633146108ac5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b6009805461ffff909216680100000000000000000269ffff000000000000000019909216919091179055565b6000546001600160a01b036101009091041633146109265760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b61092e611753565b565b6000546001600160a01b0361010090910416331461097e5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b600855565b6001600160a01b0381166000908152600360205260409020546109f75760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b6064820152608401610718565b6001600160a01b0382166000908152600660205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610a4f57600080fd5b505afa158015610a63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190611e1d565b610a919190611e05565b90506000610aca838361075e87876001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b905080610b2d5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b6064820152608401610718565b6001600160a01b03808516600090815260076020908152604080832093871683529290529081208054839290610b64908490611e05565b90915550506001600160a01b03841660009081526006602052604081208054839290610b91908490611e05565b90915550610ba290508484836117ef565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000546001600160a01b03610100909104163314610c3c5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b61092e6000611856565b6000546001600160a01b03610100909104163314610c945760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b60405180604001604052808360ff16815260200182815250600b8481548110610cbf57610cbf611e36565b6000918252602091829020835160029290920201805460ff191660ff909216919091178155910151600190910155505050565b6000546001600160a01b03610100909104163314610d405760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b61092e6118bc565b600060058281548110610d5d57610d5d611e36565b6000918252602090912001546001600160a01b031692915050565b600080610d83611236565b905060008160ff168460ff161115610d9c579392505050565b835b8260ff168160ff1611610df357600b8160ff1681548110610dc157610dc1611e36565b6000918252602090912060029091020154610ddf9060ff1683611e4c565b915080610deb81611e71565b915050610d9e565b509392505050565b6000546001600160a01b03610100909104163314610e495760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b6009805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b60005460ff1615610eb35760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610718565b610ebb6111e2565b610f075760405162461bcd60e51b815260206004820152601360248201527f50524553414c455f4e4f545f53544152544544000000000000000000000000006044820152606401610718565b8060ff16610f13611236565b60ff161015610f645760405162461bcd60e51b815260206004820152601860248201527f50524553414c455f574156455f4e4f545f5354415254454400000000000000006044820152606401610718565b610f6d81610d78565b336000908152600c602052604090205460ff91821691610f8f91879116611e4c565b60ff161115610fe05760405162461bcd60e51b815260206004820152601a60248201527f4d41585f50524553414c455f4d494e54535f45584345454445440000000000006044820152606401610718565b34610fed8560ff16611220565b1461102c5760405162461bcd60e51b815260206004820152600f60248201526e159053155157d25390d3d4949150d5608a1b6044820152606401610718565b6110d783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b805490925060ff86169150811061107b5761107b611e36565b9060005260206000209060020201600101546110943390565b6040516020016110bc919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120611937565b6111235760405162461bcd60e51b815260206004820152601460248201527f494e56414c49445f4d45524b4c455f50524f4f460000000000000000000000006044820152606401610718565b336000908152600c60205260408120805486929061114590849060ff16611e4c565b825460ff9182166101009390930a928302919092021990911617905550600d546001600160a01b0316631bc099258561117b3390565b6040516001600160e01b031960e085901b16815260ff90921660048301526001600160a01b03166024820152604401600060405180830381600087803b1580156111c457600080fd5b505af11580156111d8573d6000803e3d6000fd5b5050505050505050565b6000426111ed6111fe565b67ffffffffffffffff161115905090565b60095460009061121b906154609067ffffffffffffffff16611e91565b905090565b6000816008546112309190611eba565b92915050565b60095460009061125390611c209067ffffffffffffffff16611e91565b67ffffffffffffffff1642111561126a5750600290565b600954611284906138409067ffffffffffffffff16611e91565b67ffffffffffffffff1642111561129b5750600190565b50600090565b6000546001600160a01b036101009091041633146112ef5760405162461bcd60e51b81526020600482018190526024820152600080516020611fcf8339815191526044820152606401610718565b6001600160a01b0381166113545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610718565b61135d81611856565b50565b6060600b805480602002602001604051908101604052809291908181526020016000905b828210156113c65760008481526020908190206040805180820190915260028502909101805460ff168252600190810154828401529083529092019101611384565b50505050905090565b60005460ff16156114155760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610718565b60095461ffff680100000000000000009091048116908216111561147b5760405162461bcd60e51b815260206004820152601360248201527f4d41585f5045525f54585f4558434545444544000000000000000000000000006044820152606401610718565b346114898261ffff16611220565b146114c85760405162461bcd60e51b815260206004820152600f60248201526e159053155157d25390d3d4949150d5608a1b6044820152606401610718565b3332146115175760405162461bcd60e51b815260206004820152601360248201527f4e4f545f43414c4c45445f46524f4d5f454f41000000000000000000000000006044820152606401610718565b6009544267ffffffffffffffff90911611156115755760405162461bcd60e51b815260206004820152601060248201527f53414c455f4e4f545f53544152544544000000000000000000000000000000006044820152606401610718565b600d546001600160a01b0316631bc0992582336040516001600160e01b031960e085901b16815261ffff90921660048301526001600160a01b03166024820152604401600060405180830381600087803b1580156115d257600080fd5b505af11580156115e6573d6000803e3d6000fd5b5050505050565b6001546001600160a01b038416600090815260036020526040812054909183916116179086611eba565b6116219190611ed9565b61162b9190611efb565b90505b9392505050565b804710156116855760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610718565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146116d2576040519150601f19603f3d011682016040523d82523d6000602084013e6116d7565b606091505b505090508061174e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610718565b505050565b60005460ff166117a55760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610718565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b17905261174e90849061194d565b600080546001600160a01b0383811661010081810274ffffffffffffffffffffffffffffffffffffffff0019851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff16156119025760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610718565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117d23390565b6000826119448584611a1f565b14949350505050565b60006119a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ac39092919063ffffffff16565b80519091501561174e57808060200190518101906119c09190611f12565b61174e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610718565b600081815b8451811015610df3576000858281518110611a4157611a41611e36565b60200260200101519050808311611a83576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250611ab0565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080611abb81611f34565b915050611a24565b606061162b848460008585843b611b1c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610718565b600080866001600160a01b03168587604051611b389190611f7f565b60006040518083038185875af1925050503d8060008114611b75576040519150601f19603f3d011682016040523d82523d6000602084013e611b7a565b606091505b5091509150611b8a828286611b95565b979650505050505050565b60608315611ba457508161162e565b825115611bb45782518084602001fd5b8160405162461bcd60e51b81526004016107189190611f9b565b6001600160a01b038116811461135d57600080fd5b600060208284031215611bf557600080fd5b813561162e81611bce565b600060208284031215611c1257600080fd5b813561ffff8116811461162e57600080fd5b60008060408385031215611c3757600080fd5b8235611c4281611bce565b91506020830135611c5281611bce565b809150509250929050565b600060208284031215611c6f57600080fd5b5035919050565b803560ff81168114611c8757600080fd5b919050565b600080600060608486031215611ca157600080fd5b83359250611cb160208501611c76565b9150604084013590509250925092565b600060208284031215611cd357600080fd5b61162e82611c76565b600060208284031215611cee57600080fd5b813567ffffffffffffffff8116811461162e57600080fd5b60008060008060608587031215611d1c57600080fd5b611d2585611c76565b9350602085013567ffffffffffffffff80821115611d4257600080fd5b818701915087601f830112611d5657600080fd5b813581811115611d6557600080fd5b8860208260051b8501011115611d7a57600080fd5b602083019550809450505050611d9260408601611c76565b905092959194509250565b602080825282518282018190526000919060409081850190868401855b82811015611de2578151805160ff168552860151868501529284019290850190600101611dba565b5091979650505050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611e1857611e18611def565b500190565b600060208284031215611e2f57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff84168060ff03821115611e6957611e69611def565b019392505050565b600060ff821660ff811415611e8857611e88611def565b60010192915050565b600067ffffffffffffffff83811690831681811015611eb257611eb2611def565b039392505050565b6000816000190483118215151615611ed457611ed4611def565b500290565b600082611ef657634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611f0d57611f0d611def565b500390565b600060208284031215611f2457600080fd5b8151801515811461162e57600080fd5b6000600019821415611f4857611f48611def565b5060010190565b60005b83811015611f6a578181015183820152602001611f52565b83811115611f79576000848401525b50505050565b60008251611f91818460208701611f4f565b9190910192915050565b6020815260008251806020840152611fba816040850160208701611f4f565b601f01601f1916919091016040019291505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220f78174c081ab81b4203fcd6b229af2cdc30346cf82af964d0406a8c4873e757664736f6c63430008090033

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

0000000000000000000000000000000000000000000000000000000061f0698000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000280000000000000000000000000f22da0424d1dfd70099d30941bbaf35e7f986f1d008cf00e089272ecedbcb36b9b494cebd27e405adb29399797c82622bba8ae142e6799823e4d2d7673f81237b97a4b49c9d7bf54a19931fae338e78ce9d8208b9fb7f467be7d69fe6b15e1e4f3c943772a21aecd8bba9b28f867541d7449b929000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000e4cd5b52b309fd29a30ad24a4ec55af76d1c92a10000000000000000000000005b1212fe9b20d32688f5f02973087f828b0a4824000000000000000000000000e22539d6accefe52e3ac924d3a33f8e1340d81c20000000000000000000000002614549112b30a5654e84e6df3ca8e4a8b1d57390000000000000000000000008a69b79bc7e73b2ef9b9f11ad3e17bd2891a34ae0000000000000000000000005598fdab48dd39566e5a63b82b230b6567ea67d7000000000000000000000000c5f59709974262c4afacc5386287820bdbc7eb3a000000000000000000000000d5fab5d372081b4f20fd4636bde96e9061aaa8a40000000000000000000000004c6c30d2f2ed99be59cf85f28f3609b6beb4911b000000000000000000000000f5b8cccc0a59f529161e5311f3fcc5e4a2695ae000000000000000000000000001497493ab2f6a94e1c88552becc779ea81309ac000000000000000000000000fa2c24912b8a8f0e1a469e49ea41a38b3e9341bc000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000005140000000000000000000000000000000000000000000000000000000000000b160000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000410000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000026b00000000000000000000000000000000000000000000000000000000000001e900000000000000000000000000000000000000000000000000000000000000fe

-----Decoded View---------------
Arg [0] : saleStart_ (uint64): 1643145600
Arg [1] : payees (address[]): 0xE4cD5B52B309fD29a30aD24a4Ec55af76d1c92a1,0x5B1212FE9b20D32688F5f02973087f828b0a4824,0xe22539d6AcCEFE52E3Ac924D3a33F8e1340d81C2,0x2614549112b30A5654E84E6dF3cA8e4A8b1d5739,0x8a69B79BC7E73B2Ef9B9F11Ad3e17Bd2891a34ae,0x5598fDaB48dD39566E5a63B82B230b6567EA67D7,0xc5F59709974262c4AFacc5386287820bDBC7eB3A,0xD5fab5D372081B4F20FD4636BDe96e9061aaA8a4,0x4c6C30d2F2ED99BE59cf85f28F3609b6BEb4911b,0xF5B8CCCc0A59F529161E5311f3FCC5E4a2695aE0,0x01497493AB2F6a94E1C88552BecC779Ea81309ac,0xfa2c24912b8A8f0E1a469E49ea41A38B3E9341bc
Arg [2] : paymentShares (uint256[]): 1300,2838,3200,1000,65,35,50,50,100,619,489,254
Arg [3] : tokenAddress (address): 0xF22DA0424d1dfd70099D30941BbAf35E7F986f1d
Arg [4] : wave0root (bytes32): 0x008cf00e089272ecedbcb36b9b494cebd27e405adb29399797c82622bba8ae14
Arg [5] : wave1root (bytes32): 0x2e6799823e4d2d7673f81237b97a4b49c9d7bf54a19931fae338e78ce9d8208b
Arg [6] : wave2root (bytes32): 0x9fb7f467be7d69fe6b15e1e4f3c943772a21aecd8bba9b28f867541d7449b929

-----Encoded View---------------
33 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000061f06980
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [3] : 000000000000000000000000f22da0424d1dfd70099d30941bbaf35e7f986f1d
Arg [4] : 008cf00e089272ecedbcb36b9b494cebd27e405adb29399797c82622bba8ae14
Arg [5] : 2e6799823e4d2d7673f81237b97a4b49c9d7bf54a19931fae338e78ce9d8208b
Arg [6] : 9fb7f467be7d69fe6b15e1e4f3c943772a21aecd8bba9b28f867541d7449b929
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [8] : 000000000000000000000000e4cd5b52b309fd29a30ad24a4ec55af76d1c92a1
Arg [9] : 0000000000000000000000005b1212fe9b20d32688f5f02973087f828b0a4824
Arg [10] : 000000000000000000000000e22539d6accefe52e3ac924d3a33f8e1340d81c2
Arg [11] : 0000000000000000000000002614549112b30a5654e84e6df3ca8e4a8b1d5739
Arg [12] : 0000000000000000000000008a69b79bc7e73b2ef9b9f11ad3e17bd2891a34ae
Arg [13] : 0000000000000000000000005598fdab48dd39566e5a63b82b230b6567ea67d7
Arg [14] : 000000000000000000000000c5f59709974262c4afacc5386287820bdbc7eb3a
Arg [15] : 000000000000000000000000d5fab5d372081b4f20fd4636bde96e9061aaa8a4
Arg [16] : 0000000000000000000000004c6c30d2f2ed99be59cf85f28f3609b6beb4911b
Arg [17] : 000000000000000000000000f5b8cccc0a59f529161e5311f3fcc5e4a2695ae0
Arg [18] : 00000000000000000000000001497493ab2f6a94e1c88552becc779ea81309ac
Arg [19] : 000000000000000000000000fa2c24912b8a8f0e1a469e49ea41a38b3e9341bc
Arg [20] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000514
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000b16
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000c80
Arg [24] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [29] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [30] : 000000000000000000000000000000000000000000000000000000000000026b
Arg [31] : 00000000000000000000000000000000000000000000000000000000000001e9
Arg [32] : 00000000000000000000000000000000000000000000000000000000000000fe


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.