ETH Price: $2,422.40 (+1.77%)

Contract

0xFd645356E531288Ba14D65Fa8cc66Df0ec052131
 

Overview

ETH Balance

0.041 ETH

Eth Value

$99.32 (@ $2,422.40/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint165396522023-02-02 7:32:59617 days ago1675323179IN
0xFd645356...0ec052131
0.07 ETH0.0020646416.2963514
Mint165394272023-02-02 6:47:47617 days ago1675320467IN
0xFd645356...0ec052131
0.14 ETH0.0026334218.0694883
Mint165349762023-02-01 15:51:47617 days ago1675266707IN
0xFd645356...0ec052131
0.07 ETH0.0029508923.75803798
Mint165313872023-02-01 3:48:47618 days ago1675223327IN
0xFd645356...0ec052131
0.07 ETH0.0018883515.20344925
Mint165313862023-02-01 3:48:35618 days ago1675223315IN
0xFd645356...0ec052131
0.07 ETH0.0004580715.63703243
Mint165286952023-01-31 18:47:47618 days ago1675190867IN
0xFd645356...0ec052131
0.07 ETH0.0028627723.04859423
Mint164245482023-01-17 5:52:59633 days ago1673934779IN
0xFd645356...0ec052131
0.07 ETH0.0024062219.37286094
Mint164245372023-01-17 5:50:47633 days ago1673934647IN
0xFd645356...0ec052131
0.07 ETH0.0026301121.1754153
Mint163737802023-01-10 3:41:11640 days ago1673322071IN
0xFd645356...0ec052131
0.07 ETH0.002167417.45008561
Mint163168782023-01-02 5:03:47648 days ago1672635827IN
0xFd645356...0ec052131
0.14 ETH0.0020863416.54007354
Mint163092762023-01-01 3:38:11649 days ago1672544291IN
0xFd645356...0ec052131
0.07 ETH0.0018825615.15679361
Mint163080272022-12-31 23:27:35649 days ago1672529255IN
0xFd645356...0ec052131
0.21 ETH0.0019136914.94374372
Mint160809362022-11-30 6:12:23681 days ago1669788743IN
0xFd645356...0ec052131
0.07 ETH0.001547510.823355
Mint160803592022-11-30 4:16:23681 days ago1669781783IN
0xFd645356...0ec052131
0.14 ETH0.0014173211.3104273
Mint160592912022-11-27 5:40:35684 days ago1669527635IN
0xFd645356...0ec052131
0.07 ETH0.001230579.97502524
Mint160370092022-11-24 2:59:11687 days ago1669258751IN
0xFd645356...0ec052131
0.07 ETH0.0017175412.01167261
Mint160325742022-11-23 12:03:59688 days ago1669205039IN
0xFd645356...0ec052131
0.12 ETH0.0052159130.5710855
Set Signer159694242022-11-14 16:19:23696 days ago1668442763IN
0xFd645356...0ec052131
0 ETH0.0011258824.26118353
0x60806040159693372022-11-14 16:01:59696 days ago1668441719IN
 Create: PromosMint
0 ETH0.0381068918.77315364

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
165396522023-02-02 7:32:59617 days ago1675323179
0xFd645356...0ec052131
0.06125 ETH
165396522023-02-02 7:32:59617 days ago1675323179
0xFd645356...0ec052131
0.007 ETH
165394272023-02-02 6:47:47617 days ago1675320467
0xFd645356...0ec052131
0.1225 ETH
165394272023-02-02 6:47:47617 days ago1675320467
0xFd645356...0ec052131
0.014 ETH
165349762023-02-01 15:51:47617 days ago1675266707
0xFd645356...0ec052131
0.06125 ETH
165349762023-02-01 15:51:47617 days ago1675266707
0xFd645356...0ec052131
0.007 ETH
165313872023-02-01 3:48:47618 days ago1675223327
0xFd645356...0ec052131
0.06125 ETH
165313872023-02-01 3:48:47618 days ago1675223327
0xFd645356...0ec052131
0.007 ETH
165286952023-01-31 18:47:47618 days ago1675190867
0xFd645356...0ec052131
0.06125 ETH
165286952023-01-31 18:47:47618 days ago1675190867
0xFd645356...0ec052131
0.007 ETH
164245482023-01-17 5:52:59633 days ago1673934779
0xFd645356...0ec052131
0.06125 ETH
164245482023-01-17 5:52:59633 days ago1673934779
0xFd645356...0ec052131
0.007 ETH
164245372023-01-17 5:50:47633 days ago1673934647
0xFd645356...0ec052131
0.06125 ETH
164245372023-01-17 5:50:47633 days ago1673934647
0xFd645356...0ec052131
0.007 ETH
163737802023-01-10 3:41:11640 days ago1673322071
0xFd645356...0ec052131
0.06125 ETH
163737802023-01-10 3:41:11640 days ago1673322071
0xFd645356...0ec052131
0.007 ETH
163168782023-01-02 5:03:47648 days ago1672635827
0xFd645356...0ec052131
0.1225 ETH
163168782023-01-02 5:03:47648 days ago1672635827
0xFd645356...0ec052131
0.014 ETH
163092762023-01-01 3:38:11649 days ago1672544291
0xFd645356...0ec052131
0.06125 ETH
163092762023-01-01 3:38:11649 days ago1672544291
0xFd645356...0ec052131
0.007 ETH
163080272022-12-31 23:27:35649 days ago1672529255
0xFd645356...0ec052131
0.18375 ETH
163080272022-12-31 23:27:35649 days ago1672529255
0xFd645356...0ec052131
0.021 ETH
160809362022-11-30 6:12:23681 days ago1669788743
0xFd645356...0ec052131
0.06125 ETH
160809362022-11-30 6:12:23681 days ago1669788743
0xFd645356...0ec052131
0.007 ETH
160803592022-11-30 4:16:23681 days ago1669781783
0xFd645356...0ec052131
0.1225 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PromosMint

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : PromosMint.sol
// SPDX-License-Identifier: MIT
// Creator: promos.wtf

pragma solidity ^0.8.0;

import "@promos/contracts/IPromos.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

contract PromosMint is Ownable {
    using ECDSA for bytes32;
    using SafeMath for uint256;

    event Mint(
        address indexed collection,
        address indexed owner,
        address indexed referrer,
        uint256 amount,
        string campaign,
        uint256 gained,
        uint256 spent,
        uint256 reward
    );

    struct MintRequest {
        uint256 nonce;
        uint256 price;
        uint256 amount;
        address referralAddress;
        address collectionAddress;
        address tokensOwnerAddress;
        uint256 systemRewardPercent;
        uint256 referralRewardPercent;
        string campaign;
        bool isTransferToCollection;
    }

    address public signer;
    uint256 public interval = 5 minutes;
    uint256 private minPrice = 0.001 ether;

    function setInterval(uint256 _interval) external onlyOwner {
        interval = _interval;
    }

    function setSigner(address signerAddress) external onlyOwner {
        signer = signerAddress;
    }

    function verify(MintRequest memory mintRequest, bytes memory signature)
        public
        view
        returns (bool)
    {
        return
            keccak256(
                abi.encodePacked(
                    mintRequest.nonce,
                    mintRequest.price,
                    mintRequest.amount,
                    mintRequest.referralAddress,
                    mintRequest.collectionAddress,
                    mintRequest.tokensOwnerAddress,
                    mintRequest.systemRewardPercent,
                    mintRequest.referralRewardPercent,
                    mintRequest.campaign,
                    mintRequest.isTransferToCollection
                )
            ).toEthSignedMessageHash().recover(signature) == signer;
    }

    function mint(MintRequest calldata mintRequest, bytes calldata signature)
        external
        payable
    {
        uint256 totalPrice = mintRequest.price.mul(mintRequest.amount);
        require(
            block.timestamp.sub(mintRequest.nonce) <= interval,
            "Signature is stale"
        );
        require(totalPrice != 0, "Total price cannot be zero");
        require(msg.value >= totalPrice, "Not enough ETH");
        require(msg.value >= minPrice, "Not enough Ether sent");
        require(verify(mintRequest, signature), "Invalid request");

        IPromos(mintRequest.collectionAddress).mintPromos(
            msg.sender,
            mintRequest.amount
        );

        uint256 percent = msg.value.div(10000);
        uint256 systemReward = percent.mul(mintRequest.systemRewardPercent);
        uint256 referralReward = percent.mul(mintRequest.referralRewardPercent);
        uint256 spent = systemReward.add(referralReward);
        uint256 ownerReward = msg.value.sub(spent);

        if (referralReward != 0) {
            (bool referralPaymentSuccess, ) = mintRequest.referralAddress.call{
                value: referralReward
            }("");
            require(referralPaymentSuccess, "Failed to send Ether to referral");
        }

        if (ownerReward != 0) {
            if (mintRequest.isTransferToCollection) {
                (bool _sucess, ) = mintRequest.collectionAddress.call{
                    value: ownerReward
                }("");
                require(_sucess, "Failed to send Ether to collection contract");
            } else {
                (bool _sucess, ) = mintRequest.tokensOwnerAddress.call{
                    value: ownerReward
                }("");
                require(_sucess, "Failed to send Ether to owner");
            }
        }

        emit Mint(
            mintRequest.collectionAddress,
            mintRequest.tokensOwnerAddress,
            mintRequest.referralAddress,
            mintRequest.amount,
            mintRequest.campaign,
            ownerReward,
            spent,
            referralReward
        );
    }

    function withdraw(address _to, uint256 _amount) external onlyOwner {
        payable(_to).transfer(_amount);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 8 : 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 4 of 8 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 5 of 8 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 6 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 8 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 8 of 8 : IPromos.sol
// SPDX-License-Identifier: MIT
// Promos v1.0.0
// Creator: promos.wtf

pragma solidity ^0.8.0;

interface IPromos {
    function mintPromos(address _to, uint256 _amount) external payable;


    /**
     * @dev 
     * After deployment use this function to set `promosProxyContract`. 
     * Mainnet - 0xA7296e3239Db13ACa886Fb130aE5Fe8f5A315721 
     * Goerli  - 0x90766204108309bf97b998E262D05aa1b00Bc35c
     */
    function setPromosProxyContract(address _promosProxyContract) external;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"campaign","type":"string"},{"indexed":false,"internalType":"uint256","name":"gained","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"spent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Mint","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"},{"inputs":[],"name":"interval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"referralAddress","type":"address"},{"internalType":"address","name":"collectionAddress","type":"address"},{"internalType":"address","name":"tokensOwnerAddress","type":"address"},{"internalType":"uint256","name":"systemRewardPercent","type":"uint256"},{"internalType":"uint256","name":"referralRewardPercent","type":"uint256"},{"internalType":"string","name":"campaign","type":"string"},{"internalType":"bool","name":"isTransferToCollection","type":"bool"}],"internalType":"struct PromosMint.MintRequest","name":"mintRequest","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interval","type":"uint256"}],"name":"setInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"referralAddress","type":"address"},{"internalType":"address","name":"collectionAddress","type":"address"},{"internalType":"address","name":"tokensOwnerAddress","type":"address"},{"internalType":"uint256","name":"systemRewardPercent","type":"uint256"},{"internalType":"uint256","name":"referralRewardPercent","type":"uint256"},{"internalType":"string","name":"campaign","type":"string"},{"internalType":"bool","name":"isTransferToCollection","type":"bool"}],"internalType":"struct PromosMint.MintRequest","name":"mintRequest","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261012c60025566038d7ea4c6800060035534801561002157600080fd5b5061003e61003361004360201b60201c565b61004b60201b60201c565b61010f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122a6806200011f6000396000f3fe6080604052600436106100915760003560e01c8063715018a611610059578063715018a61461016c5780638da5cb5b14610183578063947a36fb146101ae578063f2fde38b146101d9578063f3fef3a31461020257610091565b806301c11cef1461009657806322a90082146100d3578063238ac933146100fc5780635eca77c0146101275780636c19e78314610143575b600080fd5b3480156100a257600080fd5b506100bd60048036038101906100b8919061140d565b61022b565b6040516100ca91906118e3565b60405180910390f35b3480156100df57600080fd5b506100fa60048036038101906100f59190611479565b610302565b005b34801561010857600080fd5b50610111610314565b60405161011e919061189f565b60405180910390f35b610141600480360381019061013c919061139d565b61033a565b005b34801561014f57600080fd5b5061016a6004803603810190610165919061130f565b61095e565b005b34801561017857600080fd5b506101816109aa565b005b34801561018f57600080fd5b506101986109be565b6040516101a5919061189f565b60405180910390f35b3480156101ba57600080fd5b506101c36109e7565b6040516101d09190611ae3565b60405180910390f35b3480156101e557600080fd5b5061020060048036038101906101fb919061130f565b6109ed565b005b34801561020e57600080fd5b5061022960048036038101906102249190611338565b610a71565b005b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166102e3836102d586600001518760200151886040015189606001518a608001518b60a001518c60c001518d60e001518e61010001518f61012001516040516020016102ba9a999897969594939291906117ef565b60405160208183030381529060405280519060200120610ac4565b610af490919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b61030a610b1b565b8060028190555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061035784604001358560200135610b9990919063ffffffff16565b9050600254610373856000013542610baf90919063ffffffff16565b11156103b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ab90611a43565b60405180910390fd5b60008114156103f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ef90611a63565b60405180910390fd5b8034101561043b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043290611a83565b60405180910390fd5b600354341015610480576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610477906119a3565b60405180910390fd5b6104d78461048d90611dde565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061022b565b610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d90611963565b60405180910390fd5b836080016020810190610529919061130f565b73ffffffffffffffffffffffffffffffffffffffff16633927318b3386604001356040518363ffffffff1660e01b81526004016105679291906118ba565b600060405180830381600087803b15801561058157600080fd5b505af1158015610595573d6000803e3d6000fd5b5050505060006105b061271034610bc590919063ffffffff16565b905060006105cb8660c0013583610b9990919063ffffffff16565b905060006105e68760e0013584610b9990919063ffffffff16565b905060006105fd8284610bdb90919063ffffffff16565b905060006106148234610baf90919063ffffffff16565b9050600083146106de576000896060016020810190610633919061130f565b73ffffffffffffffffffffffffffffffffffffffff1684604051610656906117da565b60006040518083038185875af1925050503d8060008114610693576040519150601f19603f3d011682016040523d82523d6000602084013e610698565b606091505b50509050806106dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d3906119e3565b60405180910390fd5b505b6000811461088457886101200160208101906106fa9190611374565b156107c3576000896080016020810190610714919061130f565b73ffffffffffffffffffffffffffffffffffffffff1682604051610737906117da565b60006040518083038185875af1925050503d8060008114610774576040519150601f19603f3d011682016040523d82523d6000602084013e610779565b606091505b50509050806107bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b490611a23565b60405180910390fd5b50610883565b60008960a00160208101906107d8919061130f565b73ffffffffffffffffffffffffffffffffffffffff16826040516107fb906117da565b60006040518083038185875af1925050503d8060008114610838576040519150601f19603f3d011682016040523d82523d6000602084013e61083d565b606091505b5050905080610881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087890611ac3565b60405180910390fd5b505b5b886060016020810190610897919061130f565b73ffffffffffffffffffffffffffffffffffffffff168960a00160208101906108c0919061130f565b73ffffffffffffffffffffffffffffffffffffffff168a60800160208101906108e9919061130f565b73ffffffffffffffffffffffffffffffffffffffff167f8d95f2a7e1ada050132774254e9c27014a7f65de7c732551297650c42b91ae0d8c604001358d8061010001906109369190611b5a565b87898b60405161094b96959493929190611afe565b60405180910390a4505050505050505050565b610966610b1b565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109b2610b1b565b6109bc6000610bf1565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60025481565b6109f5610b1b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5c906119c3565b60405180910390fd5b610a6e81610bf1565b50565b610a79610b1b565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610abf573d6000803e3d6000fd5b505050565b600081604051602001610ad791906117b4565b604051602081830303815290604052805190602001209050919050565b6000806000610b038585610cb5565b91509150610b1081610d07565b819250505092915050565b610b23610fa5565b73ffffffffffffffffffffffffffffffffffffffff16610b416109be565b73ffffffffffffffffffffffffffffffffffffffff1614610b97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8e90611aa3565b60405180910390fd5b565b60008183610ba79190611cf1565b905092915050565b60008183610bbd9190611d4b565b905092915050565b60008183610bd39190611cc0565b905092915050565b60008183610be99190611c6a565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080604183511415610cf75760008060006020860151925060408601519150606086015160001a9050610ceb87828585610fad565b94509450505050610d00565b60006002915091505b9250929050565b60006004811115610d41577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610d7a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610d8557610fa2565b60016004811115610dbf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610df8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090611943565b60405180910390fd5b60026004811115610e73577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610eac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490611983565b60405180910390fd5b60036004811115610f27577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610f60577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610fa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9890611a03565b60405180910390fd5b5b50565b600033905090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610fe8576000600391509150611087565b60006001878787876040516000815260200160405260405161100d94939291906118fe565b6020604051602081039080840390855afa15801561102f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561107e57600060019250925050611087565b80600092509250505b94509492505050565b60006110a361109e84611bd6565b611bb1565b9050828152602081018484840111156110bb57600080fd5b6110c6848285611df1565b509392505050565b60006110e16110dc84611c07565b611bb1565b9050828152602081018484840111156110f957600080fd5b611104848285611df1565b509392505050565b60008135905061111b8161222b565b92915050565b60008135905061113081612242565b92915050565b60008083601f84011261114857600080fd5b8235905067ffffffffffffffff81111561116157600080fd5b60208301915083600182028301111561117957600080fd5b9250929050565b600082601f83011261119157600080fd5b81356111a1848260208601611090565b91505092915050565b600082601f8301126111bb57600080fd5b81356111cb8482602086016110ce565b91505092915050565b600061014082840312156111e757600080fd5b81905092915050565b6000610140828403121561120357600080fd5b61120e610140611bb1565b9050600061121e848285016112fa565b6000830152506020611232848285016112fa565b6020830152506040611246848285016112fa565b604083015250606061125a8482850161110c565b606083015250608061126e8482850161110c565b60808301525060a06112828482850161110c565b60a08301525060c0611296848285016112fa565b60c08301525060e06112aa848285016112fa565b60e08301525061010082013567ffffffffffffffff8111156112cb57600080fd5b6112d7848285016111aa565b610100830152506101206112ed84828501611121565b6101208301525092915050565b60008135905061130981612259565b92915050565b60006020828403121561132157600080fd5b600061132f8482850161110c565b91505092915050565b6000806040838503121561134b57600080fd5b60006113598582860161110c565b925050602061136a858286016112fa565b9150509250929050565b60006020828403121561138657600080fd5b600061139484828501611121565b91505092915050565b6000806000604084860312156113b257600080fd5b600084013567ffffffffffffffff8111156113cc57600080fd5b6113d8868287016111d4565b935050602084013567ffffffffffffffff8111156113f557600080fd5b61140186828701611136565b92509250509250925092565b6000806040838503121561142057600080fd5b600083013567ffffffffffffffff81111561143a57600080fd5b611446858286016111f0565b925050602083013567ffffffffffffffff81111561146357600080fd5b61146f85828601611180565b9150509250929050565b60006020828403121561148b57600080fd5b6000611499848285016112fa565b91505092915050565b6114ab81611d7f565b82525050565b6114c26114bd82611d7f565b611e64565b82525050565b6114d181611d91565b82525050565b6114e86114e382611d91565b611e76565b82525050565b6114f781611d9d565b82525050565b61150e61150982611d9d565b611e88565b82525050565b60006115208385611c4e565b935061152d838584611df1565b61153683611f4d565b840190509392505050565b600061154c82611c38565b6115568185611c5f565b9350611566818560208601611e00565b80840191505092915050565b600061157f601883611c4e565b915061158a82611f78565b602082019050919050565b60006115a2600f83611c4e565b91506115ad82611fa1565b602082019050919050565b60006115c5601f83611c4e565b91506115d082611fca565b602082019050919050565b60006115e8601c83611c5f565b91506115f382611ff3565b601c82019050919050565b600061160b601583611c4e565b91506116168261201c565b602082019050919050565b600061162e602683611c4e565b915061163982612045565b604082019050919050565b6000611651602083611c4e565b915061165c82612094565b602082019050919050565b6000611674602283611c4e565b915061167f826120bd565b604082019050919050565b6000611697602b83611c4e565b91506116a28261210c565b604082019050919050565b60006116ba601283611c4e565b91506116c58261215b565b602082019050919050565b60006116dd601a83611c4e565b91506116e882612184565b602082019050919050565b6000611700600e83611c4e565b915061170b826121ad565b602082019050919050565b6000611723602083611c4e565b915061172e826121d6565b602082019050919050565b6000611746601d83611c4e565b9150611751826121ff565b602082019050919050565b6000611769600083611c43565b915061177482612228565b600082019050919050565b61178881611dc7565b82525050565b61179f61179a82611dc7565b611ea4565b82525050565b6117ae81611dd1565b82525050565b60006117bf826115db565b91506117cb82846114fd565b60208201915081905092915050565b60006117e58261175c565b9150819050919050565b60006117fb828d61178e565b60208201915061180b828c61178e565b60208201915061181b828b61178e565b60208201915061182b828a6114b1565b60148201915061183b82896114b1565b60148201915061184b82886114b1565b60148201915061185b828761178e565b60208201915061186b828661178e565b60208201915061187b8285611541565b915061188782846114d7565b6001820191508190509b9a5050505050505050505050565b60006020820190506118b460008301846114a2565b92915050565b60006040820190506118cf60008301856114a2565b6118dc602083018461177f565b9392505050565b60006020820190506118f860008301846114c8565b92915050565b600060808201905061191360008301876114ee565b61192060208301866117a5565b61192d60408301856114ee565b61193a60608301846114ee565b95945050505050565b6000602082019050818103600083015261195c81611572565b9050919050565b6000602082019050818103600083015261197c81611595565b9050919050565b6000602082019050818103600083015261199c816115b8565b9050919050565b600060208201905081810360008301526119bc816115fe565b9050919050565b600060208201905081810360008301526119dc81611621565b9050919050565b600060208201905081810360008301526119fc81611644565b9050919050565b60006020820190508181036000830152611a1c81611667565b9050919050565b60006020820190508181036000830152611a3c8161168a565b9050919050565b60006020820190508181036000830152611a5c816116ad565b9050919050565b60006020820190508181036000830152611a7c816116d0565b9050919050565b60006020820190508181036000830152611a9c816116f3565b9050919050565b60006020820190508181036000830152611abc81611716565b9050919050565b60006020820190508181036000830152611adc81611739565b9050919050565b6000602082019050611af8600083018461177f565b92915050565b600060a082019050611b13600083018961177f565b8181036020830152611b26818789611514565b9050611b35604083018661177f565b611b42606083018561177f565b611b4f608083018461177f565b979650505050505050565b60008083356001602003843603038112611b7357600080fd5b80840192508235915067ffffffffffffffff821115611b9157600080fd5b602083019250600182023603831315611ba957600080fd5b509250929050565b6000611bbb611bcc565b9050611bc78282611e33565b919050565b6000604051905090565b600067ffffffffffffffff821115611bf157611bf0611f1e565b5b611bfa82611f4d565b9050602081019050919050565b600067ffffffffffffffff821115611c2257611c21611f1e565b5b611c2b82611f4d565b9050602081019050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000611c7582611dc7565b9150611c8083611dc7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611cb557611cb4611ec0565b5b828201905092915050565b6000611ccb82611dc7565b9150611cd683611dc7565b925082611ce657611ce5611eef565b5b828204905092915050565b6000611cfc82611dc7565b9150611d0783611dc7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d4057611d3f611ec0565b5b828202905092915050565b6000611d5682611dc7565b9150611d6183611dc7565b925082821015611d7457611d73611ec0565b5b828203905092915050565b6000611d8a82611da7565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611dea36836111f0565b9050919050565b82818337600083830152505050565b60005b83811015611e1e578082015181840152602081019050611e03565b83811115611e2d576000848401525b50505050565b611e3c82611f4d565b810181811067ffffffffffffffff82111715611e5b57611e5a611f1e565b5b80604052505050565b6000611e6f82611e92565b9050919050565b6000611e8182611eae565b9050919050565b6000819050919050565b6000611e9d82611f6b565b9050919050565b6000819050919050565b6000611eb982611f5e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160f81b9050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f496e76616c696420726571756573740000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4e6f7420656e6f7567682045746865722073656e740000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e6420457468657220746f20726566657272616c600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e6420457468657220746f20636f6c6c6563746960008201527f6f6e20636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f5369676e6174757265206973207374616c650000000000000000000000000000600082015250565b7f546f74616c2070726963652063616e6e6f74206265207a65726f000000000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4661696c656420746f2073656e6420457468657220746f206f776e6572000000600082015250565b50565b61223481611d7f565b811461223f57600080fd5b50565b61224b81611d91565b811461225657600080fd5b50565b61226281611dc7565b811461226d57600080fd5b5056fea2646970667358221220b02c432c44a05d10bb11c3cb4b379deb5ed9ebe23f58000a98fc0da509260b3d64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106100915760003560e01c8063715018a611610059578063715018a61461016c5780638da5cb5b14610183578063947a36fb146101ae578063f2fde38b146101d9578063f3fef3a31461020257610091565b806301c11cef1461009657806322a90082146100d3578063238ac933146100fc5780635eca77c0146101275780636c19e78314610143575b600080fd5b3480156100a257600080fd5b506100bd60048036038101906100b8919061140d565b61022b565b6040516100ca91906118e3565b60405180910390f35b3480156100df57600080fd5b506100fa60048036038101906100f59190611479565b610302565b005b34801561010857600080fd5b50610111610314565b60405161011e919061189f565b60405180910390f35b610141600480360381019061013c919061139d565b61033a565b005b34801561014f57600080fd5b5061016a6004803603810190610165919061130f565b61095e565b005b34801561017857600080fd5b506101816109aa565b005b34801561018f57600080fd5b506101986109be565b6040516101a5919061189f565b60405180910390f35b3480156101ba57600080fd5b506101c36109e7565b6040516101d09190611ae3565b60405180910390f35b3480156101e557600080fd5b5061020060048036038101906101fb919061130f565b6109ed565b005b34801561020e57600080fd5b5061022960048036038101906102249190611338565b610a71565b005b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166102e3836102d586600001518760200151886040015189606001518a608001518b60a001518c60c001518d60e001518e61010001518f61012001516040516020016102ba9a999897969594939291906117ef565b60405160208183030381529060405280519060200120610ac4565b610af490919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b61030a610b1b565b8060028190555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061035784604001358560200135610b9990919063ffffffff16565b9050600254610373856000013542610baf90919063ffffffff16565b11156103b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ab90611a43565b60405180910390fd5b60008114156103f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ef90611a63565b60405180910390fd5b8034101561043b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043290611a83565b60405180910390fd5b600354341015610480576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610477906119a3565b60405180910390fd5b6104d78461048d90611dde565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061022b565b610516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050d90611963565b60405180910390fd5b836080016020810190610529919061130f565b73ffffffffffffffffffffffffffffffffffffffff16633927318b3386604001356040518363ffffffff1660e01b81526004016105679291906118ba565b600060405180830381600087803b15801561058157600080fd5b505af1158015610595573d6000803e3d6000fd5b5050505060006105b061271034610bc590919063ffffffff16565b905060006105cb8660c0013583610b9990919063ffffffff16565b905060006105e68760e0013584610b9990919063ffffffff16565b905060006105fd8284610bdb90919063ffffffff16565b905060006106148234610baf90919063ffffffff16565b9050600083146106de576000896060016020810190610633919061130f565b73ffffffffffffffffffffffffffffffffffffffff1684604051610656906117da565b60006040518083038185875af1925050503d8060008114610693576040519150601f19603f3d011682016040523d82523d6000602084013e610698565b606091505b50509050806106dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d3906119e3565b60405180910390fd5b505b6000811461088457886101200160208101906106fa9190611374565b156107c3576000896080016020810190610714919061130f565b73ffffffffffffffffffffffffffffffffffffffff1682604051610737906117da565b60006040518083038185875af1925050503d8060008114610774576040519150601f19603f3d011682016040523d82523d6000602084013e610779565b606091505b50509050806107bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b490611a23565b60405180910390fd5b50610883565b60008960a00160208101906107d8919061130f565b73ffffffffffffffffffffffffffffffffffffffff16826040516107fb906117da565b60006040518083038185875af1925050503d8060008114610838576040519150601f19603f3d011682016040523d82523d6000602084013e61083d565b606091505b5050905080610881576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087890611ac3565b60405180910390fd5b505b5b886060016020810190610897919061130f565b73ffffffffffffffffffffffffffffffffffffffff168960a00160208101906108c0919061130f565b73ffffffffffffffffffffffffffffffffffffffff168a60800160208101906108e9919061130f565b73ffffffffffffffffffffffffffffffffffffffff167f8d95f2a7e1ada050132774254e9c27014a7f65de7c732551297650c42b91ae0d8c604001358d8061010001906109369190611b5a565b87898b60405161094b96959493929190611afe565b60405180910390a4505050505050505050565b610966610b1b565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109b2610b1b565b6109bc6000610bf1565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60025481565b6109f5610b1b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5c906119c3565b60405180910390fd5b610a6e81610bf1565b50565b610a79610b1b565b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610abf573d6000803e3d6000fd5b505050565b600081604051602001610ad791906117b4565b604051602081830303815290604052805190602001209050919050565b6000806000610b038585610cb5565b91509150610b1081610d07565b819250505092915050565b610b23610fa5565b73ffffffffffffffffffffffffffffffffffffffff16610b416109be565b73ffffffffffffffffffffffffffffffffffffffff1614610b97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8e90611aa3565b60405180910390fd5b565b60008183610ba79190611cf1565b905092915050565b60008183610bbd9190611d4b565b905092915050565b60008183610bd39190611cc0565b905092915050565b60008183610be99190611c6a565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080604183511415610cf75760008060006020860151925060408601519150606086015160001a9050610ceb87828585610fad565b94509450505050610d00565b60006002915091505b9250929050565b60006004811115610d41577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610d7a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610d8557610fa2565b60016004811115610dbf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610df8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610e39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3090611943565b60405180910390fd5b60026004811115610e73577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610eac577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490611983565b60405180910390fd5b60036004811115610f27577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115610f60577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415610fa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f9890611a03565b60405180910390fd5b5b50565b600033905090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610fe8576000600391509150611087565b60006001878787876040516000815260200160405260405161100d94939291906118fe565b6020604051602081039080840390855afa15801561102f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561107e57600060019250925050611087565b80600092509250505b94509492505050565b60006110a361109e84611bd6565b611bb1565b9050828152602081018484840111156110bb57600080fd5b6110c6848285611df1565b509392505050565b60006110e16110dc84611c07565b611bb1565b9050828152602081018484840111156110f957600080fd5b611104848285611df1565b509392505050565b60008135905061111b8161222b565b92915050565b60008135905061113081612242565b92915050565b60008083601f84011261114857600080fd5b8235905067ffffffffffffffff81111561116157600080fd5b60208301915083600182028301111561117957600080fd5b9250929050565b600082601f83011261119157600080fd5b81356111a1848260208601611090565b91505092915050565b600082601f8301126111bb57600080fd5b81356111cb8482602086016110ce565b91505092915050565b600061014082840312156111e757600080fd5b81905092915050565b6000610140828403121561120357600080fd5b61120e610140611bb1565b9050600061121e848285016112fa565b6000830152506020611232848285016112fa565b6020830152506040611246848285016112fa565b604083015250606061125a8482850161110c565b606083015250608061126e8482850161110c565b60808301525060a06112828482850161110c565b60a08301525060c0611296848285016112fa565b60c08301525060e06112aa848285016112fa565b60e08301525061010082013567ffffffffffffffff8111156112cb57600080fd5b6112d7848285016111aa565b610100830152506101206112ed84828501611121565b6101208301525092915050565b60008135905061130981612259565b92915050565b60006020828403121561132157600080fd5b600061132f8482850161110c565b91505092915050565b6000806040838503121561134b57600080fd5b60006113598582860161110c565b925050602061136a858286016112fa565b9150509250929050565b60006020828403121561138657600080fd5b600061139484828501611121565b91505092915050565b6000806000604084860312156113b257600080fd5b600084013567ffffffffffffffff8111156113cc57600080fd5b6113d8868287016111d4565b935050602084013567ffffffffffffffff8111156113f557600080fd5b61140186828701611136565b92509250509250925092565b6000806040838503121561142057600080fd5b600083013567ffffffffffffffff81111561143a57600080fd5b611446858286016111f0565b925050602083013567ffffffffffffffff81111561146357600080fd5b61146f85828601611180565b9150509250929050565b60006020828403121561148b57600080fd5b6000611499848285016112fa565b91505092915050565b6114ab81611d7f565b82525050565b6114c26114bd82611d7f565b611e64565b82525050565b6114d181611d91565b82525050565b6114e86114e382611d91565b611e76565b82525050565b6114f781611d9d565b82525050565b61150e61150982611d9d565b611e88565b82525050565b60006115208385611c4e565b935061152d838584611df1565b61153683611f4d565b840190509392505050565b600061154c82611c38565b6115568185611c5f565b9350611566818560208601611e00565b80840191505092915050565b600061157f601883611c4e565b915061158a82611f78565b602082019050919050565b60006115a2600f83611c4e565b91506115ad82611fa1565b602082019050919050565b60006115c5601f83611c4e565b91506115d082611fca565b602082019050919050565b60006115e8601c83611c5f565b91506115f382611ff3565b601c82019050919050565b600061160b601583611c4e565b91506116168261201c565b602082019050919050565b600061162e602683611c4e565b915061163982612045565b604082019050919050565b6000611651602083611c4e565b915061165c82612094565b602082019050919050565b6000611674602283611c4e565b915061167f826120bd565b604082019050919050565b6000611697602b83611c4e565b91506116a28261210c565b604082019050919050565b60006116ba601283611c4e565b91506116c58261215b565b602082019050919050565b60006116dd601a83611c4e565b91506116e882612184565b602082019050919050565b6000611700600e83611c4e565b915061170b826121ad565b602082019050919050565b6000611723602083611c4e565b915061172e826121d6565b602082019050919050565b6000611746601d83611c4e565b9150611751826121ff565b602082019050919050565b6000611769600083611c43565b915061177482612228565b600082019050919050565b61178881611dc7565b82525050565b61179f61179a82611dc7565b611ea4565b82525050565b6117ae81611dd1565b82525050565b60006117bf826115db565b91506117cb82846114fd565b60208201915081905092915050565b60006117e58261175c565b9150819050919050565b60006117fb828d61178e565b60208201915061180b828c61178e565b60208201915061181b828b61178e565b60208201915061182b828a6114b1565b60148201915061183b82896114b1565b60148201915061184b82886114b1565b60148201915061185b828761178e565b60208201915061186b828661178e565b60208201915061187b8285611541565b915061188782846114d7565b6001820191508190509b9a5050505050505050505050565b60006020820190506118b460008301846114a2565b92915050565b60006040820190506118cf60008301856114a2565b6118dc602083018461177f565b9392505050565b60006020820190506118f860008301846114c8565b92915050565b600060808201905061191360008301876114ee565b61192060208301866117a5565b61192d60408301856114ee565b61193a60608301846114ee565b95945050505050565b6000602082019050818103600083015261195c81611572565b9050919050565b6000602082019050818103600083015261197c81611595565b9050919050565b6000602082019050818103600083015261199c816115b8565b9050919050565b600060208201905081810360008301526119bc816115fe565b9050919050565b600060208201905081810360008301526119dc81611621565b9050919050565b600060208201905081810360008301526119fc81611644565b9050919050565b60006020820190508181036000830152611a1c81611667565b9050919050565b60006020820190508181036000830152611a3c8161168a565b9050919050565b60006020820190508181036000830152611a5c816116ad565b9050919050565b60006020820190508181036000830152611a7c816116d0565b9050919050565b60006020820190508181036000830152611a9c816116f3565b9050919050565b60006020820190508181036000830152611abc81611716565b9050919050565b60006020820190508181036000830152611adc81611739565b9050919050565b6000602082019050611af8600083018461177f565b92915050565b600060a082019050611b13600083018961177f565b8181036020830152611b26818789611514565b9050611b35604083018661177f565b611b42606083018561177f565b611b4f608083018461177f565b979650505050505050565b60008083356001602003843603038112611b7357600080fd5b80840192508235915067ffffffffffffffff821115611b9157600080fd5b602083019250600182023603831315611ba957600080fd5b509250929050565b6000611bbb611bcc565b9050611bc78282611e33565b919050565b6000604051905090565b600067ffffffffffffffff821115611bf157611bf0611f1e565b5b611bfa82611f4d565b9050602081019050919050565b600067ffffffffffffffff821115611c2257611c21611f1e565b5b611c2b82611f4d565b9050602081019050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000611c7582611dc7565b9150611c8083611dc7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611cb557611cb4611ec0565b5b828201905092915050565b6000611ccb82611dc7565b9150611cd683611dc7565b925082611ce657611ce5611eef565b5b828204905092915050565b6000611cfc82611dc7565b9150611d0783611dc7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d4057611d3f611ec0565b5b828202905092915050565b6000611d5682611dc7565b9150611d6183611dc7565b925082821015611d7457611d73611ec0565b5b828203905092915050565b6000611d8a82611da7565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611dea36836111f0565b9050919050565b82818337600083830152505050565b60005b83811015611e1e578082015181840152602081019050611e03565b83811115611e2d576000848401525b50505050565b611e3c82611f4d565b810181811067ffffffffffffffff82111715611e5b57611e5a611f1e565b5b80604052505050565b6000611e6f82611e92565b9050919050565b6000611e8182611eae565b9050919050565b6000819050919050565b6000611e9d82611f6b565b9050919050565b6000819050919050565b6000611eb982611f5e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160f81b9050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f496e76616c696420726571756573740000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f4e6f7420656e6f7567682045746865722073656e740000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e6420457468657220746f20726566657272616c600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4661696c656420746f2073656e6420457468657220746f20636f6c6c6563746960008201527f6f6e20636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f5369676e6174757265206973207374616c650000000000000000000000000000600082015250565b7f546f74616c2070726963652063616e6e6f74206265207a65726f000000000000600082015250565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4661696c656420746f2073656e6420457468657220746f206f776e6572000000600082015250565b50565b61223481611d7f565b811461223f57600080fd5b50565b61224b81611d91565b811461225657600080fd5b50565b61226281611dc7565b811461226d57600080fd5b5056fea2646970667358221220b02c432c44a05d10bb11c3cb4b379deb5ed9ebe23f58000a98fc0da509260b3d64736f6c63430008040033

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.