Mumbai Testnet

Contract

0x31Cf566A9dC51DbA2D95e7d36dB46c57DB942A8E

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Transfer222870112021-12-05 18:39:15844 days ago1638729555IN
0x31Cf566A...7DB942A8E
0 MATIC0.0002283.5
Unlock222869672021-12-05 18:37:43844 days ago1638729463IN
0x31Cf566A...7DB942A8E
0 MATIC0.000082673.5
Unlock222869472021-12-05 18:37:03844 days ago1638729423IN
0x31Cf566A...7DB942A8E
0 MATIC0.000135173.5
Unlock222868962021-12-05 18:35:17844 days ago1638729317IN
0x31Cf566A...7DB942A8E
0 MATIC0.000195023.5
0x60806040222866232021-12-05 18:25:55844 days ago1638728755IN
 Create: PepperGuildTreasure
0 MATIC0.004841273.5

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PepperGuildTreasure

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : PepperGuildTreasure.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./BaseTreasure.sol";

contract PepperGuildTreasure is BaseTreasure {
    constructor(address _myteContractAddress)
        BaseTreasure(_myteContractAddress)
    {
        nominalAmount = 9e8 ether; //~900,000,000
        // 40% is unlocked in the beginning
        lockedAmount = (nominalAmount * 60) / 100;

        // 20% can be unlocked every 6 months
        periodicUnlockAmount = (nominalAmount * 20) / 100;
    }

    function unlock() external override onlyRole(ADMIN_ROLE) {
        require(unlockTimes < 3, "PEPPER::ALL_MYTE_IS_UNLOCKED");
        require(
            _isUnlockTimeValid(unlockTimes + 1),
            "PEPPER::INVALID_UNLOCK_TIME"
        );
        lockedAmount -= periodicUnlockAmount;
        unlockTimes += 1;
    }

    function _isUnlockTimeValid(uint256 _times) internal view returns (bool) {
        return
            _getBlockTimestamp() >=
            initialTimestamp + (_times * 120) / 2;
    }
}

File 2 of 13 : BaseTreasure.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./AdminAcccessControl.sol";

abstract contract BaseTreasure is AdminAccessControl {
    using SafeERC20 for IERC20;
    IERC20 public myteContract;

    address public walletAddress;

    uint256 nominalAmount;
    uint256 lockedAmount;
    uint256 initialTimestamp;
    uint256 periodicUnlockAmount;
    uint256 unlockTimes;

    constructor(address _myteContractAddress) AdminAccessControl() {
        myteContract = IERC20(_myteContractAddress);
        unlockTimes = 0;
        initialTimestamp = _getBlockTimestamp();
        _setupRole(ADMIN_ROLE, msg.sender);
    }

    function getMyteBalance() public view returns (uint256) {
        return myteContract.balanceOf(address(this));
    }

    function getLockedAmount() external view returns (uint256) {
        return lockedAmount;
    }

    function getNominalAmount() external view returns (uint256) {
        return nominalAmount;
    }

    function getUnlockedAmount() external view returns (uint256) {
        return getMyteBalance() - lockedAmount;
    }

    function getPeriodicUnlockAmount() external view returns (uint256) {
        return periodicUnlockAmount;
    }

    function getStartBlock() external view returns (uint256) {
        return initialTimestamp;
    }

    function unlock() external virtual onlyRole(ADMIN_ROLE) {}

    function transfer(address recipient, uint256 amount)
        external
        onlyRole(ADMIN_ROLE)
    {
        require(
            _isAmountValid(getMyteBalance(), amount, lockedAmount),
            "PEPPER::INVALID_AMOUNT"
        );
        myteContract.transfer(recipient, amount);
    }

    function batchTransferToken(
        address[] memory recipients,
        uint256[] memory amounts
    ) external onlyRole(ADMIN_ROLE) {
        require(
            recipients.length == amounts.length,
            "PEPPER::INVALID_INPUT_LENGTH"
        );
        for (uint256 i = 0; i < recipients.length; i++) {
            require(
                _isAmountValid(getMyteBalance(), amounts[i], lockedAmount),
                "PEPPER::INVALID_AMOUNT"
            );
            myteContract.transfer(recipients[i], amounts[i]);
        }
    }

    function _isAmountValid(
        uint256 _totalSupply,
        uint256 _amount,
        uint256 _lockedAmount
    ) internal pure returns (bool) {
        return _totalSupply - _amount >= _lockedAmount;
    }

    function _getBlockTimestamp() internal view virtual returns (uint256) {
        return block.timestamp;
    }
}

File 3 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 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 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 6 of 13 : AdminAcccessControl.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

abstract contract AdminAccessControl is Ownable, AccessControl {
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant OWNER_ROLE = keccak256("OWNER_ROLE");

    constructor() Ownable() {
        // set up owner as super admin role
        _setupRole(OWNER_ROLE, msg.sender);
        _setRoleAdmin(ADMIN_ROLE, OWNER_ROLE);

        // set up owner as default admin role
        _setupRole(ADMIN_ROLE, msg.sender);
    }

    function addAdmin(address _newAdmin) external onlyOwner {
        require(
            !hasRole(ADMIN_ROLE, _newAdmin),
            "PEPPER::ASSIGNEE_IS_ALREADY_ADMIN"
        );
        _setupRole(ADMIN_ROLE, _newAdmin);
    }

    function removeAdmin(address _oldAdmin) external onlyOwner {
        require(
            hasRole(ADMIN_ROLE, _oldAdmin),
            "PEPPER::ASSIGNEE_IS_NOT_ADMIN"
        );
        require(_oldAdmin != owner(), "PEPPER::CANNOT_REMOVE_OWNER_ADMIN");

        // revoke admin role. Only OWNER_ROLE is able to remove admin
        revokeRole(ADMIN_ROLE, _oldAdmin);
    }

    function isAdmin() public view returns (bool) {
        return hasRole(ADMIN_ROLE, msg.sender);
    }
}

File 7 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 8 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 10 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_myteContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAdmin","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"batchTransferToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getLockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMyteBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNominalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPeriodicUnlockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStartBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnlockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"myteContract","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oldAdmin","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200174e3803806200174e833981016040819052620000349162000276565b80620000403362000141565b6200005b6000805160206200170e8339815191523362000191565b620000856000805160206200172e8339815191526000805160206200170e833981519152620001a1565b620000a06000805160206200172e8339815191523362000191565b600280546001600160a01b0319166001600160a01b0383161790556000600855620000c84290565b600655620000e66000805160206200172e8339815191523362000191565b506b02e87669c308736a0400000060048190556064906200010990603c620002a8565b620001159190620002d6565b6005556004546064906200012b906014620002a8565b620001379190620002d6565b60075550620002f9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200019d8282620001ee565b5050565b6000828152600160208190526040808320909101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff166200019d5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6000602082840312156200028957600080fd5b81516001600160a01b0381168114620002a157600080fd5b9392505050565b6000816000190483118215151615620002d157634e487b7160e01b600052601160045260246000fd5b500290565b600082620002f457634e487b7160e01b600052601260045260246000fd5b500490565b61140580620003096000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806375b238fc116100de578063a69df4b511610097578063ca89f6a211610071578063ca89f6a214610320578063d547741f14610328578063e58378bb1461033b578063f2fde38b1461036257600080fd5b8063a69df4b5146102fd578063a9059cbb14610305578063b6db75a01461031857600080fd5b806375b238fc146102ac57806388d93ba7146102c15780638da5cb5b146102c957806391d14854146102da578063a217fddf146102ed578063a5f18c01146102f557600080fd5b8063319249991161014b57806354b277301161012557806354b27730146102765780636ad5b3ea1461027e5780637048027514610291578063715018a6146102a457600080fd5b8063319249991461022557806336568abe1461025057806339e179581461026357600080fd5b806301ffc9a7146101935780631785f53c146101bb578063248a9ca3146101d057806324ea362614610202578063252bc8861461020a5780632f2ff15d14610212575b600080fd5b6101a66101a1366004610f37565b610375565b60405190151581526020015b60405180910390f35b6101ce6101c9366004610f7d565b6103ac565b005b6101f46101de366004610f98565b6000908152600160208190526040909120015490565b6040519081526020016101b2565b6101f46104c6565b6005546101f4565b6101ce610220366004610fb1565b6104e2565b600254610238906001600160a01b031681565b6040516001600160a01b0390911681526020016101b2565b6101ce61025e366004610fb1565b61050e565b6101ce6102713660046110b3565b61058c565b6007546101f4565b600354610238906001600160a01b031681565b6101ce61029f366004610f7d565b61075b565b6101ce61080c565b6101f46000805160206113b083398151915281565b6101f4610842565b6000546001600160a01b0316610238565b6101a66102e8366004610fb1565b6108be565b6101f4600081565b6006546101f4565b6101ce6108e9565b6101ce610313366004611173565b6109ed565b6101a6610ae5565b6004546101f4565b6101ce610336366004610fb1565b610aff565b6101f47fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b6101ce610370366004610f7d565b610b26565b60006001600160e01b03198216637965db0b60e01b14806103a657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146103df5760405162461bcd60e51b81526004016103d69061119d565b60405180910390fd5b6103f76000805160206113b0833981519152826108be565b6104435760405162461bcd60e51b815260206004820152601d60248201527f5045505045523a3a41535349474e45455f49535f4e4f545f41444d494e00000060448201526064016103d6565b6000546001600160a01b03828116911614156104ab5760405162461bcd60e51b815260206004820152602160248201527f5045505045523a3a43414e4e4f545f52454d4f56455f4f574e45525f41444d496044820152602760f91b60648201526084016103d6565b6104c36000805160206113b083398151915282610aff565b50565b60006005546104d3610842565b6104dd91906111e8565b905090565b600082815260016020819052604090912001546104ff8133610bbe565b6105098383610c22565b505050565b6001600160a01b038116331461057e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103d6565b6105888282610c8d565b5050565b6000805160206113b08339815191526105a58133610bbe565b81518351146105f65760405162461bcd60e51b815260206004820152601c60248201527f5045505045523a3a494e56414c49445f494e5055545f4c454e4754480000000060448201526064016103d6565b60005b83518110156107555761062f61060d610842565b84838151811061061f5761061f6111ff565b6020026020010151600554610cf4565b6106745760405162461bcd60e51b81526020600482015260166024820152751411541411548e8e9253959053125117d05353d5539560521b60448201526064016103d6565b60025484516001600160a01b039091169063a9059cbb9086908490811061069d5761069d6111ff565b60200260200101518584815181106106b7576106b76111ff565b60200260200101516040518363ffffffff1660e01b81526004016106f09291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b15801561070a57600080fd5b505af115801561071e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107429190611215565b508061074d81611237565b9150506105f9565b50505050565b6000546001600160a01b031633146107855760405162461bcd60e51b81526004016103d69061119d565b61079d6000805160206113b0833981519152826108be565b156107f45760405162461bcd60e51b815260206004820152602160248201527f5045505045523a3a41535349474e45455f49535f414c52454144595f41444d496044820152602760f91b60648201526084016103d6565b6104c36000805160206113b083398151915282610d0b565b6000546001600160a01b031633146108365760405162461bcd60e51b81526004016103d69061119d565b6108406000610d15565b565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561088657600080fd5b505afa15801561089a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd9190611252565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206113b08339815191526109028133610bbe565b6003600854106109545760405162461bcd60e51b815260206004820152601c60248201527f5045505045523a3a414c4c5f4d5954455f49535f554e4c4f434b45440000000060448201526064016103d6565b61096b6008546001610966919061126b565b610d65565b6109b75760405162461bcd60e51b815260206004820152601b60248201527f5045505045523a3a494e56414c49445f554e4c4f434b5f54494d45000000000060448201526064016103d6565b600754600560008282546109cb91906111e8565b925050819055506001600860008282546109e5919061126b565b909155505050565b6000805160206113b0833981519152610a068133610bbe565b610a1a610a11610842565b83600554610cf4565b610a5f5760405162461bcd60e51b81526020600482015260166024820152751411541411548e8e9253959053125117d05353d5539560521b60448201526064016103d6565b60025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b158015610aad57600080fd5b505af1158015610ac1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107559190611215565b60006104dd6000805160206113b0833981519152336108be565b60008281526001602081905260409091200154610b1c8133610bbe565b6105098383610c8d565b6000546001600160a01b03163314610b505760405162461bcd60e51b81526004016103d69061119d565b6001600160a01b038116610bb55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d6565b6104c381610d15565b610bc882826108be565b61058857610be0816001600160a01b03166014610d94565b610beb836020610d94565b604051602001610bfc9291906112af565b60408051601f198184030181529082905262461bcd60e51b82526103d691600401611324565b610c2c82826108be565b6105885760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b610c9782826108be565b156105885760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081610d0184866111e8565b1015949350505050565b6105888282610c22565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006002610d74836078611357565b610d7e9190611376565b600654610d8b919061126b565b42101592915050565b60606000610da3836002611357565b610dae90600261126b565b67ffffffffffffffff811115610dc657610dc6610fdd565b6040519080825280601f01601f191660200182016040528015610df0576020820181803683370190505b509050600360fc1b81600081518110610e0b57610e0b6111ff565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610e3a57610e3a6111ff565b60200101906001600160f81b031916908160001a9053506000610e5e846002611357565b610e6990600161126b565b90505b6001811115610ee1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610e9d57610e9d6111ff565b1a60f81b828281518110610eb357610eb36111ff565b60200101906001600160f81b031916908160001a90535060049490941c93610eda81611398565b9050610e6c565b508315610f305760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103d6565b9392505050565b600060208284031215610f4957600080fd5b81356001600160e01b031981168114610f3057600080fd5b80356001600160a01b0381168114610f7857600080fd5b919050565b600060208284031215610f8f57600080fd5b610f3082610f61565b600060208284031215610faa57600080fd5b5035919050565b60008060408385031215610fc457600080fd5b82359150610fd460208401610f61565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561101c5761101c610fdd565b604052919050565b600067ffffffffffffffff82111561103e5761103e610fdd565b5060051b60200190565b600082601f83011261105957600080fd5b8135602061106e61106983611024565b610ff3565b82815260059290921b8401810191818101908684111561108d57600080fd5b8286015b848110156110a85780358352918301918301611091565b509695505050505050565b600080604083850312156110c657600080fd5b823567ffffffffffffffff808211156110de57600080fd5b818501915085601f8301126110f257600080fd5b8135602061110261106983611024565b82815260059290921b8401810191818101908984111561112157600080fd5b948201945b838610156111465761113786610f61565b82529482019490820190611126565b9650508601359250508082111561115c57600080fd5b5061116985828601611048565b9150509250929050565b6000806040838503121561118657600080fd5b61118f83610f61565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156111fa576111fa6111d2565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561122757600080fd5b81518015158114610f3057600080fd5b600060001982141561124b5761124b6111d2565b5060010190565b60006020828403121561126457600080fd5b5051919050565b6000821982111561127e5761127e6111d2565b500190565b60005b8381101561129e578181015183820152602001611286565b838111156107555750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516112e7816017850160208801611283565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611318816028840160208801611283565b01602801949350505050565b6020815260008251806020840152611343816040850160208701611283565b601f01601f19169190910160400192915050565b6000816000190483118215151615611371576113716111d2565b500290565b60008261139357634e487b7160e01b600052601260045260246000fd5b500490565b6000816113a7576113a76111d2565b50600019019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122047b8d35575637aa23470812eeba11187f3b0cf2e6672f0187ec4de4c5aa7147c64736f6c63430008090033b19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214ea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217750000000000000000000000008baec2cc73236cb28fd349478faad5c843cb0456

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806375b238fc116100de578063a69df4b511610097578063ca89f6a211610071578063ca89f6a214610320578063d547741f14610328578063e58378bb1461033b578063f2fde38b1461036257600080fd5b8063a69df4b5146102fd578063a9059cbb14610305578063b6db75a01461031857600080fd5b806375b238fc146102ac57806388d93ba7146102c15780638da5cb5b146102c957806391d14854146102da578063a217fddf146102ed578063a5f18c01146102f557600080fd5b8063319249991161014b57806354b277301161012557806354b27730146102765780636ad5b3ea1461027e5780637048027514610291578063715018a6146102a457600080fd5b8063319249991461022557806336568abe1461025057806339e179581461026357600080fd5b806301ffc9a7146101935780631785f53c146101bb578063248a9ca3146101d057806324ea362614610202578063252bc8861461020a5780632f2ff15d14610212575b600080fd5b6101a66101a1366004610f37565b610375565b60405190151581526020015b60405180910390f35b6101ce6101c9366004610f7d565b6103ac565b005b6101f46101de366004610f98565b6000908152600160208190526040909120015490565b6040519081526020016101b2565b6101f46104c6565b6005546101f4565b6101ce610220366004610fb1565b6104e2565b600254610238906001600160a01b031681565b6040516001600160a01b0390911681526020016101b2565b6101ce61025e366004610fb1565b61050e565b6101ce6102713660046110b3565b61058c565b6007546101f4565b600354610238906001600160a01b031681565b6101ce61029f366004610f7d565b61075b565b6101ce61080c565b6101f46000805160206113b083398151915281565b6101f4610842565b6000546001600160a01b0316610238565b6101a66102e8366004610fb1565b6108be565b6101f4600081565b6006546101f4565b6101ce6108e9565b6101ce610313366004611173565b6109ed565b6101a6610ae5565b6004546101f4565b6101ce610336366004610fb1565b610aff565b6101f47fb19546dff01e856fb3f010c267a7b1c60363cf8a4664e21cc89c26224620214e81565b6101ce610370366004610f7d565b610b26565b60006001600160e01b03198216637965db0b60e01b14806103a657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146103df5760405162461bcd60e51b81526004016103d69061119d565b60405180910390fd5b6103f76000805160206113b0833981519152826108be565b6104435760405162461bcd60e51b815260206004820152601d60248201527f5045505045523a3a41535349474e45455f49535f4e4f545f41444d494e00000060448201526064016103d6565b6000546001600160a01b03828116911614156104ab5760405162461bcd60e51b815260206004820152602160248201527f5045505045523a3a43414e4e4f545f52454d4f56455f4f574e45525f41444d496044820152602760f91b60648201526084016103d6565b6104c36000805160206113b083398151915282610aff565b50565b60006005546104d3610842565b6104dd91906111e8565b905090565b600082815260016020819052604090912001546104ff8133610bbe565b6105098383610c22565b505050565b6001600160a01b038116331461057e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103d6565b6105888282610c8d565b5050565b6000805160206113b08339815191526105a58133610bbe565b81518351146105f65760405162461bcd60e51b815260206004820152601c60248201527f5045505045523a3a494e56414c49445f494e5055545f4c454e4754480000000060448201526064016103d6565b60005b83518110156107555761062f61060d610842565b84838151811061061f5761061f6111ff565b6020026020010151600554610cf4565b6106745760405162461bcd60e51b81526020600482015260166024820152751411541411548e8e9253959053125117d05353d5539560521b60448201526064016103d6565b60025484516001600160a01b039091169063a9059cbb9086908490811061069d5761069d6111ff565b60200260200101518584815181106106b7576106b76111ff565b60200260200101516040518363ffffffff1660e01b81526004016106f09291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b15801561070a57600080fd5b505af115801561071e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107429190611215565b508061074d81611237565b9150506105f9565b50505050565b6000546001600160a01b031633146107855760405162461bcd60e51b81526004016103d69061119d565b61079d6000805160206113b0833981519152826108be565b156107f45760405162461bcd60e51b815260206004820152602160248201527f5045505045523a3a41535349474e45455f49535f414c52454144595f41444d496044820152602760f91b60648201526084016103d6565b6104c36000805160206113b083398151915282610d0b565b6000546001600160a01b031633146108365760405162461bcd60e51b81526004016103d69061119d565b6108406000610d15565b565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561088657600080fd5b505afa15801561089a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104dd9190611252565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206113b08339815191526109028133610bbe565b6003600854106109545760405162461bcd60e51b815260206004820152601c60248201527f5045505045523a3a414c4c5f4d5954455f49535f554e4c4f434b45440000000060448201526064016103d6565b61096b6008546001610966919061126b565b610d65565b6109b75760405162461bcd60e51b815260206004820152601b60248201527f5045505045523a3a494e56414c49445f554e4c4f434b5f54494d45000000000060448201526064016103d6565b600754600560008282546109cb91906111e8565b925050819055506001600860008282546109e5919061126b565b909155505050565b6000805160206113b0833981519152610a068133610bbe565b610a1a610a11610842565b83600554610cf4565b610a5f5760405162461bcd60e51b81526020600482015260166024820152751411541411548e8e9253959053125117d05353d5539560521b60448201526064016103d6565b60025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b158015610aad57600080fd5b505af1158015610ac1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107559190611215565b60006104dd6000805160206113b0833981519152336108be565b60008281526001602081905260409091200154610b1c8133610bbe565b6105098383610c8d565b6000546001600160a01b03163314610b505760405162461bcd60e51b81526004016103d69061119d565b6001600160a01b038116610bb55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103d6565b6104c381610d15565b610bc882826108be565b61058857610be0816001600160a01b03166014610d94565b610beb836020610d94565b604051602001610bfc9291906112af565b60408051601f198184030181529082905262461bcd60e51b82526103d691600401611324565b610c2c82826108be565b6105885760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b610c9782826108be565b156105885760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081610d0184866111e8565b1015949350505050565b6105888282610c22565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006002610d74836078611357565b610d7e9190611376565b600654610d8b919061126b565b42101592915050565b60606000610da3836002611357565b610dae90600261126b565b67ffffffffffffffff811115610dc657610dc6610fdd565b6040519080825280601f01601f191660200182016040528015610df0576020820181803683370190505b509050600360fc1b81600081518110610e0b57610e0b6111ff565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610e3a57610e3a6111ff565b60200101906001600160f81b031916908160001a9053506000610e5e846002611357565b610e6990600161126b565b90505b6001811115610ee1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610e9d57610e9d6111ff565b1a60f81b828281518110610eb357610eb36111ff565b60200101906001600160f81b031916908160001a90535060049490941c93610eda81611398565b9050610e6c565b508315610f305760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103d6565b9392505050565b600060208284031215610f4957600080fd5b81356001600160e01b031981168114610f3057600080fd5b80356001600160a01b0381168114610f7857600080fd5b919050565b600060208284031215610f8f57600080fd5b610f3082610f61565b600060208284031215610faa57600080fd5b5035919050565b60008060408385031215610fc457600080fd5b82359150610fd460208401610f61565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561101c5761101c610fdd565b604052919050565b600067ffffffffffffffff82111561103e5761103e610fdd565b5060051b60200190565b600082601f83011261105957600080fd5b8135602061106e61106983611024565b610ff3565b82815260059290921b8401810191818101908684111561108d57600080fd5b8286015b848110156110a85780358352918301918301611091565b509695505050505050565b600080604083850312156110c657600080fd5b823567ffffffffffffffff808211156110de57600080fd5b818501915085601f8301126110f257600080fd5b8135602061110261106983611024565b82815260059290921b8401810191818101908984111561112157600080fd5b948201945b838610156111465761113786610f61565b82529482019490820190611126565b9650508601359250508082111561115c57600080fd5b5061116985828601611048565b9150509250929050565b6000806040838503121561118657600080fd5b61118f83610f61565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156111fa576111fa6111d2565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561122757600080fd5b81518015158114610f3057600080fd5b600060001982141561124b5761124b6111d2565b5060010190565b60006020828403121561126457600080fd5b5051919050565b6000821982111561127e5761127e6111d2565b500190565b60005b8381101561129e578181015183820152602001611286565b838111156107555750506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516112e7816017850160208801611283565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611318816028840160208801611283565b01602801949350505050565b6020815260008251806020840152611343816040850160208701611283565b601f01601f19169190910160400192915050565b6000816000190483118215151615611371576113716111d2565b500290565b60008261139357634e487b7160e01b600052601260045260246000fd5b500490565b6000816113a7576113a76111d2565b50600019019056fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a264697066735822122047b8d35575637aa23470812eeba11187f3b0cf2e6672f0187ec4de4c5aa7147c64736f6c63430008090033

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

0000000000000000000000008baec2cc73236cb28fd349478faad5c843cb0456

-----Decoded View---------------
Arg [0] : _myteContractAddress (address): 0x8baec2cC73236CB28FD349478faAD5c843cB0456

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008baec2cc73236cb28fd349478faad5c843cb0456


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.