ETH Price: $3,707.07 (+3.15%)

Contract

0x85BC2E8Aaad5dBc347db49Ea45D95486279eD918
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw163491792023-01-06 17:17:35694 days ago1673025455IN
0x85BC2E8A...6279eD918
0 ETH0.0025025932.22425006
Withdraw152922372022-08-07 1:26:24846 days ago1659835584IN
0x85BC2E8A...6279eD918
0 ETH0.0023366156.49172919
Withdraw152922372022-08-07 1:26:24846 days ago1659835584IN
0x85BC2E8A...6279eD918
0 ETH0.0023669557.2252556
Withdraw152922372022-08-07 1:26:24846 days ago1659835584IN
0x85BC2E8A...6279eD918
0 ETH0.0027298966
Withdraw152922372022-08-07 1:26:24846 days ago1659835584IN
0x85BC2E8A...6279eD918
0 ETH0.0061343579
Withdraw149966902022-06-20 12:59:36894 days ago1655729976IN
0x85BC2E8A...6279eD918
0 ETH0.0015482619.93590153
Withdraw149381842022-06-10 11:30:03904 days ago1654860603IN
0x85BC2E8A...6279eD918
0 ETH0.0038928950.14156079
Withdraw141848642022-02-11 12:52:121023 days ago1644583932IN
0x85BC2E8A...6279eD918
0 ETH0.0045106858.08995775
Renounce Role140484422022-01-21 10:36:311044 days ago1642761391IN
0x85BC2E8A...6279eD918
0 ETH0.0029537190.44937448
Renounce Role140484322022-01-21 10:34:381044 days ago1642761278IN
0x85BC2E8A...6279eD918
0 ETH0.002312270.80477438
Withdraw138689512021-12-24 16:22:431072 days ago1640362963IN
0x85BC2E8A...6279eD918
0 ETH0.0056821473.1763547
Withdraw137023062021-11-28 12:11:061098 days ago1638101466IN
0x85BC2E8A...6279eD918
0 ETH0.0063950282.35709636
Withdraw136402852021-11-18 16:05:021108 days ago1637251502IN
0x85BC2E8A...6279eD918
0 ETH0.01325486170.70017428
Withdraw136296032021-11-16 23:56:011109 days ago1637106961IN
0x85BC2E8A...6279eD918
0 ETH0.01311513138.40079337
Withdraw136147032021-11-14 15:13:221112 days ago1636902802IN
0x85BC2E8A...6279eD918
0 ETH0.0076732198.81799454
Withdraw135835472021-11-09 17:41:021117 days ago1636479662IN
0x85BC2E8A...6279eD918
0 ETH0.01232102203.44481081
Withdraw135182122021-10-30 11:30:421127 days ago1635593442IN
0x85BC2E8A...6279eD918
0 ETH0.00865033132.44226837
Withdraw135182072021-10-30 11:29:161127 days ago1635593356IN
0x85BC2E8A...6279eD918
0 ETH0.00948927145.39388688
Withdraw135181962021-10-30 11:25:381127 days ago1635593138IN
0x85BC2E8A...6279eD918
0 ETH0.00929513112.85163631
Withdraw134713422021-10-23 3:01:131134 days ago1634958073IN
0x85BC2E8A...6279eD918
0 ETH0.0058364561.60623398
Withdraw134312632021-10-16 20:47:311141 days ago1634417251IN
0x85BC2E8A...6279eD918
0 ETH0.0055682858.76821208
Withdraw133658012021-10-06 13:55:501151 days ago1633528550IN
0x85BC2E8A...6279eD918
0 ETH0.01070062112.93539651
Withdraw133479522021-10-03 18:52:381154 days ago1633287158IN
0x85BC2E8A...6279eD918
0 ETH0.0042121269.56445563
Withdraw133460162021-10-03 11:42:401154 days ago1633261360IN
0x85BC2E8A...6279eD918
0 ETH0.0036170746.58177363
Withdraw131779542021-09-07 9:51:301180 days ago1631008290IN
0x85BC2E8A...6279eD918
0 ETH0.0072307493.10536068
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Tube

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Tube.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";

import "./XMust.sol";
import "./PoolManager.sol";

/**
 * @dev Tube allow users to supply liquidity in exchange of shares of the Tube.
 * Each xMust represents a share of the Tube. Each xMust generate a reward each
 * day that can be used to on external pool to mint tokens.
 */
contract Tube is AccessControl, Pausable, XMust, PoolManager {
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE");

    constructor(IERC20 _must) public XMust(_must) {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());

        _setupRole(MANAGER_ROLE, _msgSender());
        _setupRole(PAUSER_ROLE, _msgSender());
    }

    /**
     * @dev Enter the msg sender in the Tube. An amount of must will be locked
     * on the Tube and an a quantity of shares (xMust) will be minted.
     *
     * @param amount Amount of must to transfer.
     *
     * Requirements:
     * - the Tube must be allowed on Must contract for the caller.
     */
    function enter(uint256 amount) external {
        _enter(msg.sender, amount);
    }

    /**
     * @dev Enter for a holder in the Tube by an operator. An amount of must
     * will be locked on the Tube and an a quantity of shares (xMust) will be
     * minted.
     *
     * @param holder Must holder.
     * @param amount Amount of must to transfer.
     *
     * Requirements:
     * - the caller must be allowed on Must contract for the holder.
     * - the Tube must be allowed on Must contract for the holder.
     */
    function enterFor(address holder, uint256 amount) external {
        _enter(holder, amount);
    }

    /**
     * @dev Withdraw the quantity of must associated to an amount shares.
     *
     * @param amount xMust amount.
     */
    function withdraw(uint256 amount) external {
        _withdraw(msg.sender, amount);
    }

    /**
     * @dev Add pool for reward.
     *
     * @param pool Pool address.
     */
    function addPool(address pool) external {
        require(
            hasRole(MANAGER_ROLE, _msgSender()),
            "Tube: must have manager role to change pool"
        );
        _addPool(pool);
    }

    /**
     * @dev Remove pool.
     *
     * @param pool Pool address.
     */
    function removePool(address pool) external {
        require(
            hasRole(MANAGER_ROLE, _msgSender()),
            "Tube: must have manager role to change pool"
        );
        _removePool(pool);
    }

    function pause() external {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "Tube: must have pauser role to pause"
        );
        _pause();
    }

    function unpause() external {
        require(
            hasRole(PAUSER_ROLE, _msgSender()),
            "Tube: must have pauser role to unpause"
        );
        _unpause();
    }

    /**
     * @dev Quantity of must of an holder. This quantity is equal to the holder
     * shares multiplied by the total must amount and divided by the
     * total shares.
     *
     * @param holder xMust holder.
     */
    function mustOf(address holder) external view returns (uint256) {
        return _mustForShares(balanceOf(holder));
    }

    // _enter locks msg.sender `amount` must and creates shares of the Tube
    // for the given `amount` to `holder`.
    function _enter(address holder, uint256 amount) private {
        _beforeAction();
        _updateRewards(holder);
        uint256 mustSupply = must.balanceOf(address(this));
        uint256 xMustSupply = totalSupply();

        // by default we give 1 share per must
        uint256 shares = amount;
        if (mustSupply > 0 && xMustSupply > 0) {
            // in case there is already a supply compute the number of shares
            // for the given amount using a cross product. This can happen
            // because must can be transfered to the Tube without creating
            // shares. Similarly, users can withdraw their must.
            shares = amount.mul(xMustSupply).div(mustSupply);
        }

        _mint(holder, shares);
        must.transferFrom(msg.sender, address(this), amount);
    }

    // withdraw burns `holder`'s `shares`of the Tube and withdraw those `shares`
    // in must to `holder`. It requires that `holder` owns at least `shares`
    // of the Tube and `amount` is greater than 0.
    function _withdraw(address holder, uint256 shares) private {
        _beforeAction();
        _updateRewards(holder);
        uint256 _must = _mustForShares(shares);

        _burn(holder, shares);
        must.transfer(holder, _must);
    }

    function _mustForShares(uint256 shares) private view returns (uint256) {
        uint256 xMustSupply = totalSupply();
        if (xMustSupply == 0) {
            return 0;
        }

        uint256 mustSupply = must.balanceOf(address(this));
        return shares.mul(mustSupply).div(xMustSupply);
    }

    function _beforeAction() internal override {
        super._beforeAction();

        require(!paused(), "Tube: action blocked while paused");
    }
}

File 2 of 13 : PoolManager.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;

import "@openzeppelin/contracts/utils/EnumerableSet.sol";

import "./XMust.sol";
import "./Rewarder.sol";

/**
 * @dev PoolManager handle different pool and expose `burnRewards` method to
 * managed pool.
 */
abstract contract PoolManager is Rewarder {
    using EnumerableSet for EnumerableSet.AddressSet;

    EnumerableSet.AddressSet private _pools;

    constructor() public { }

    modifier isManagedPool() {
        require(_pools.contains(msg.sender), "PoolManager: caller is not a managed pool");
        _;
    }

    function _addPool(address pool) internal {
        require(!_pools.contains(pool), "PoolManager: already existing pool");
        _pools.add(pool);
    }

    function _removePool(address pool) internal {
        require(_pools.contains(pool), "PoolManager: unknow pool");
        _pools.remove(pool);
    }

    function burnRewards(address holder, uint256 value) external isManagedPool {
        _beforeAction();
        _burnRewards(holder, value);
    }

    function pools() external view returns(address[] memory) {
        address[] memory result = new address[](_pools.length());
        for (uint i = 0; i <  _pools.length(); i++) {
            result[i] = _pools.at(i) ;
        }
        return result;
    }

    function _beforeAction() internal virtual { }
}

File 3 of 13 : Rewarder.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";

import "./XMust.sol";

/**
 * @dev Rewarder deals with the rewards of an holder.
 */
abstract contract Rewarder is XMust {
    using SafeMath for uint256;

    mapping(address => uint256) internal _rewards;
    mapping(address => uint256) internal _lastUpdate;

    constructor() public { }

    /**
     * @dev Reward earned of an holder since last update. The ratio is one
     * reward for one xMust by day.
     *
     * @param holder Holder of xMust.
     */
    function rewardsOf(address holder) public view returns (uint256) {
        uint256 timeDifference = block.timestamp.sub(_lastUpdate[holder]);
        uint256 balance = balanceOf(holder);
        uint256 decimals = 10**uint256(decimals());
        uint256 x = balance / decimals;
        uint256 ratePerSec = decimals.mul(5).mul(x).div((uint256(20)).mul(x).add(10000)).div(60);
        return _rewards[holder].add(ratePerSec.mul(timeDifference));
    }

    function _updateRewards(address holder) internal {
        _rewards[holder] = rewardsOf(holder);
        _lastUpdate[holder] = block.timestamp;
    }

    function _burnRewards(address holder, uint256 value) internal {
        _updateRewards(holder);
        require(_rewards[holder] >= value, "Rewarder: not enough reward");
        _rewards[holder] = _rewards[holder].sub(value);
    }
}

File 4 of 13 : XMust.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";

/**
 * @dev XMust contract is a wrapper around the Must token. It is a ERC20 token
 * that does not allow trading. The balance of xMust represents the share of
 * the Tube an address own. Minting xMust means creating shares of the Tube.
 * Burning xMust means removing shares of the Tube.
 */
contract XMust {
    using SafeMath for uint256;

    IERC20 public must;

    mapping(address => uint256) private _shares;
    uint256 private _totalSupply;

    constructor(IERC20 _must) public {
        must = _must;
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _shares[account];
    }

    function decimals() public pure returns (uint8) {
        return 18;
    }

    // mint creates `amount` shares for `holder`
    function _mint(address holder, uint256 amount) internal {
        require(holder != address(0), "xMust: mint to the zero address");
        _shares[holder] = _shares[holder].add(amount);
        _totalSupply = _totalSupply.add(amount);
    }

    // burn removes `amount` shares from `holder`.
    // It requires that `holder` owns at least `amount` xMust.
    function _burn(address holder, uint256 amount) internal {
        require(amount > 0, "xMust: cannot burn zero");
        require(holder != address(0), "xMust: burn from the zero address");
        require(
            _shares[holder] >= amount,
            "xMust: burn amount exceeds balance"
        );

        _shares[holder] = _shares[holder].sub(amount);
        _totalSupply = _totalSupply.sub(amount);
    }
}

File 5 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../GSN/Context.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * 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 {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @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 {_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) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @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 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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _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 {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _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 granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        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}.
     * ====
     */
    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 {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../GSN/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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 8 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @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 sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 9 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../../GSN/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

File 10 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 11 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @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 in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 13 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 13 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../GSN/Context.sol";

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

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

    bool private _paused;

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_must","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"enterFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","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":"must","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"mustOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pools","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"}],"name":"removePool","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":"address","name":"holder","type":"address"}],"name":"rewardsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200299e3803806200299e833981810160405260208110156200003757600080fd5b8101908080519060200190929190505050806000600160006101000a81548160ff021916908315150217905550806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620000c96000801b620000bd6200015260201b60201c565b6200015a60201b60201c565b6200010a7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08620000fe6200015260201b60201c565b6200015a60201b60201c565b6200014b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6200013f6200015260201b60201c565b6200015a60201b60201c565b50620002e8565b600033905090565b6200016c82826200017060201b60201c565b5050565b6200019e816000808581526020019081526020016000206000016200021360201b6200102e1790919060201c565b156200020f57620001b46200015260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600062000243836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200024b60201b60201c565b905092915050565b60006200025f8383620002c560201b60201c565b620002ba578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620002bf565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6126a680620002f86000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80639010d07c116100de578063c5c51dca11610097578063d914cd4b11610071578063d914cd4b146106e1578063e63ab1e914610725578063ec87621c14610743578063f3b95cd7146107615761018e565b8063c5c51dca146105f2578063ca15c87314610651578063d547741f146106935761018e565b80639010d07c1461045e57806391d14854146104c05780639acfe6ef14610524578063a217fddf14610558578063a47f07c014610576578063a59f3e0c146105c45761018e565b80633b7d09461161014b5780635c975abb116101255780635c975abb1461038457806370a08231146103a4578063777c0717146103fc5780638456cb59146104545761018e565b80633b7d0946146102de5780633f4ba83a14610322578063479ba7ae1461032c5761018e565b806318160ddd14610193578063248a9ca3146101b15780632e1a7d4d146101f35780632f2ff15d14610221578063313ce5671461026f57806336568abe14610290575b600080fd5b61019b6107af565b6040518082815260200191505060405180910390f35b6101dd600480360360208110156101c757600080fd5b81019080803590602001909291905050506107b9565b6040518082815260200191505060405180910390f35b61021f6004803603602081101561020957600080fd5b81019080803590602001909291905050506107d8565b005b61026d6004803603604081101561023757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107e5565b005b61027761086e565b604051808260ff16815260200191505060405180910390f35b6102dc600480360360408110156102a657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610877565b005b610320600480360360208110156102f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610910565b005b61032a6109a2565b005b61036e6004803603602081101561034257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a32565b6040518082815260200191505060405180910390f35b61038c610b9c565b60405180821515815260200191505060405180910390f35b6103e6600480360360208110156103ba57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bb3565b6040518082815260200191505060405180910390f35b61043e6004803603602081101561041257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bfc565b6040518082815260200191505060405180910390f35b61045c610c16565b005b6104946004803603604081101561047457600080fd5b810190808035906020019092919080359060200190929190505050610ca6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61050c600480360360408110156104d657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cd7565b60405180821515815260200191505060405180910390f35b61052c610d08565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610560610d2c565b6040518082815260200191505060405180910390f35b6105c26004803603604081101561058c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d33565b005b6105f0600480360360208110156105da57600080fd5b8101908080359060200190929190505050610d41565b005b6105fa610d4e565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561063d578082015181840152602081019050610622565b505050509050019250505060405180910390f35b61067d6004803603602081101561066757600080fd5b8101908080359060200190929190505050610e26565b6040518082815260200191505060405180910390f35b6106df600480360360408110156106a957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e4c565b005b610723600480360360208110156106f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed5565b005b61072d610f67565b6040518082815260200191505060405180910390f35b61074b610f8b565b6040518082815260200191505060405180910390f35b6107ad6004803603604081101561077757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610faf565b005b6000600354905090565b6000806000838152602001908152602001600020600201549050919050565b6107e2338261105e565b50565b61080b60008084815260200190815260200160002060020154610806611158565b610cd7565b610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806124c4602f913960400191505060405180910390fd5b61086a8282611160565b5050565b60006012905090565b61087f611158565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610902576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612621602f913960400191505060405180910390fd5b61090c82826111f3565b5050565b6109417f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861093c611158565b610cd7565b610996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806125f6602b913960400191505060405180910390fd5b61099f81611286565b50565b6109d37f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109ce611158565b610cd7565b610a28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061247c6026913960400191505060405180910390fd5b610a30611324565b565b600080610a87600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544261141790919063ffffffff16565b90506000610a9484610bb3565b90506000610aa061086e565b60ff16600a0a90506000818381610ab357fe5b0490506000610b2a603c610b1c610ae8612710610ada87601461146190919063ffffffff16565b6114e790919063ffffffff16565b610b0e86610b0060058a61146190919063ffffffff16565b61146190919063ffffffff16565b61156f90919063ffffffff16565b61156f90919063ffffffff16565b9050610b90610b42868361146190919063ffffffff16565b600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114e790919063ffffffff16565b95505050505050919050565b6000600160009054906101000a900460ff16905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610c0f610c0a83610bb3565b6115b9565b9050919050565b610c477f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610c42611158565b610cd7565b610c9c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806125156024913960400191505060405180910390fd5b610ca46116ce565b565b6000610ccf826000808681526020019081526020016000206000016117c190919063ffffffff16565b905092915050565b6000610d00826000808681526020019081526020016000206000016117db90919063ffffffff16565b905092915050565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b81565b610d3d828261180b565b5050565b610d4b338261180b565b50565b606080610d5b6006611a2c565b67ffffffffffffffff81118015610d7157600080fd5b50604051908082528060200260200182016040528015610da05781602001602082028036833780820191505090505b50905060005b610db06006611a2c565b811015610e1e57610dcb8160066117c190919063ffffffff16565b828281518110610dd757fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080600101915050610da6565b508091505090565b6000610e45600080848152602001908152602001600020600001611a2c565b9050919050565b610e7260008084815260200190815260200160002060020154610e6d611158565b610cd7565b610ec7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806125396030913960400191505060405180910390fd5b610ed182826111f3565b5050565b610f067f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f01611158565b610cd7565b610f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806125f6602b913960400191505060405180910390fd5b610f6481611a41565b50565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b610fc33360066117db90919063ffffffff16565b611018576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806125cd6029913960400191505060405180910390fd5b611020611ac3565b61102a8282611b2b565b5050565b6000611056836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611c82565b905092915050565b611066611ac3565b61106f82611cf2565b600061107a826115b9565b90506110868383611d85565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561111757600080fd5b505af115801561112b573d6000803e3d6000fd5b505050506040513d602081101561114157600080fd5b810190808051906020019092919050505050505050565b600033905090565b6111878160008085815260200190815260200160002060000161102e90919063ffffffff16565b156111ef57611194611158565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61121a81600080858152602001908152602001600020600001611fcd90919063ffffffff16565b1561128257611227611158565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61129a8160066117db90919063ffffffff16565b61130c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f506f6f6c4d616e616765723a20756e6b6e6f7720706f6f6c000000000000000081525060200191505060405180910390fd5b611320816006611fcd90919063ffffffff16565b5050565b600160009054906101000a900460ff166113a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113ea611158565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b600061145983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ffd565b905092915050565b60008083141561147457600090506114e1565b600082840290508284828161148557fe5b04146114dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806125ac6021913960400191505060405180910390fd5b809150505b92915050565b600080828401905083811015611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60006115b183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506120bd565b905092915050565b6000806115c46107af565b905060008114156115d95760009150506116c9565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561166257600080fd5b505afa158015611676573d6000803e3d6000fd5b505050506040513d602081101561168c57600080fd5b810190808051906020019092919050505090506116c4826116b6838761146190919063ffffffff16565b61156f90919063ffffffff16565b925050505b919050565b600160009054906101000a900460ff1615611751576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611794611158565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b60006117d08360000183612183565b60001c905092915050565b6000611803836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612206565b905092915050565b611813611ac3565b61181c82611cf2565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156118a557600080fd5b505afa1580156118b9573d6000803e3d6000fd5b505050506040513d60208110156118cf57600080fd5b8101908080519060200190929190505050905060006118ec6107af565b905060008390506000831180156119035750600082115b156119305761192d8361191f848761146190919063ffffffff16565b61156f90919063ffffffff16565b90505b61193a8582612229565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156119e957600080fd5b505af11580156119fd573d6000803e3d6000fd5b505050506040513d6020811015611a1357600080fd5b8101908080519060200190929190505050505050505050565b6000611a3a82600001612380565b9050919050565b611a558160066117db90919063ffffffff16565b15611aab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806125696022913960400191505060405180910390fd5b611abf81600661102e90919063ffffffff16565b5050565b611acb612391565b611ad3610b9c565b15611b29576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806126506021913960400191505060405180910390fd5b565b611b3482611cf2565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611be9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f52657761726465723a206e6f7420656e6f75676820726577617264000000000081525060200191505060405180910390fd5b611c3b81600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461141790919063ffffffff16565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000611c8e8383612206565b611ce7578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611cec565b600090505b92915050565b611cfb81610a32565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555042600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60008111611dfb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f784d7573743a2063616e6e6f74206275726e207a65726f00000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061258b6021913960400191505060405180910390fd5b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611f19576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806124f36022913960400191505060405180910390fd5b611f6b81600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461141790919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611fc38160035461141790919063ffffffff16565b6003819055505050565b6000611ff5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612393565b905092915050565b60008383111582906120aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561206f578082015181840152602081019050612054565b50505050905090810190601f16801561209c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290612169576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561212e578082015181840152602081019050612113565b50505050905090810190601f16801561215b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161217557fe5b049050809150509392505050565b6000818360000180549050116121e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806124a26022913960400191505060405180910390fd5b8260000182815481106121f357fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f784d7573743a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61231e81600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114e790919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612376816003546114e790919063ffffffff16565b6003819055505050565b600081600001805490509050919050565b565b6000808360010160008481526020019081526020016000205490506000811461246f57600060018203905060006001866000018054905003905060008660000182815481106123de57fe5b90600052602060002001549050808760000184815481106123fb57fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061243357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612475565b60009150505b9291505056fe547562653a206d75737420686176652070617573657220726f6c6520746f20756e7061757365456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74784d7573743a206275726e20616d6f756e7420657863656564732062616c616e6365547562653a206d75737420686176652070617573657220726f6c6520746f207061757365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65506f6f6c4d616e616765723a20616c7265616479206578697374696e6720706f6f6c784d7573743a206275726e2066726f6d20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77506f6f6c4d616e616765723a2063616c6c6572206973206e6f742061206d616e6167656420706f6f6c547562653a206d7573742068617665206d616e6167657220726f6c6520746f206368616e676520706f6f6c416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66547562653a20616374696f6e20626c6f636b6564207768696c6520706175736564a2646970667358221220cc6e0523af36c1be8d8f1070de141a3171718c146aa25f85a3934bb898217bfc64736f6c634300060c00330000000000000000000000009c78ee466d6cb57a4d01fd887d2b5dfb2d46288f

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80639010d07c116100de578063c5c51dca11610097578063d914cd4b11610071578063d914cd4b146106e1578063e63ab1e914610725578063ec87621c14610743578063f3b95cd7146107615761018e565b8063c5c51dca146105f2578063ca15c87314610651578063d547741f146106935761018e565b80639010d07c1461045e57806391d14854146104c05780639acfe6ef14610524578063a217fddf14610558578063a47f07c014610576578063a59f3e0c146105c45761018e565b80633b7d09461161014b5780635c975abb116101255780635c975abb1461038457806370a08231146103a4578063777c0717146103fc5780638456cb59146104545761018e565b80633b7d0946146102de5780633f4ba83a14610322578063479ba7ae1461032c5761018e565b806318160ddd14610193578063248a9ca3146101b15780632e1a7d4d146101f35780632f2ff15d14610221578063313ce5671461026f57806336568abe14610290575b600080fd5b61019b6107af565b6040518082815260200191505060405180910390f35b6101dd600480360360208110156101c757600080fd5b81019080803590602001909291905050506107b9565b6040518082815260200191505060405180910390f35b61021f6004803603602081101561020957600080fd5b81019080803590602001909291905050506107d8565b005b61026d6004803603604081101561023757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107e5565b005b61027761086e565b604051808260ff16815260200191505060405180910390f35b6102dc600480360360408110156102a657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610877565b005b610320600480360360208110156102f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610910565b005b61032a6109a2565b005b61036e6004803603602081101561034257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a32565b6040518082815260200191505060405180910390f35b61038c610b9c565b60405180821515815260200191505060405180910390f35b6103e6600480360360208110156103ba57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bb3565b6040518082815260200191505060405180910390f35b61043e6004803603602081101561041257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bfc565b6040518082815260200191505060405180910390f35b61045c610c16565b005b6104946004803603604081101561047457600080fd5b810190808035906020019092919080359060200190929190505050610ca6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61050c600480360360408110156104d657600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cd7565b60405180821515815260200191505060405180910390f35b61052c610d08565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610560610d2c565b6040518082815260200191505060405180910390f35b6105c26004803603604081101561058c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d33565b005b6105f0600480360360208110156105da57600080fd5b8101908080359060200190929190505050610d41565b005b6105fa610d4e565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561063d578082015181840152602081019050610622565b505050509050019250505060405180910390f35b61067d6004803603602081101561066757600080fd5b8101908080359060200190929190505050610e26565b6040518082815260200191505060405180910390f35b6106df600480360360408110156106a957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e4c565b005b610723600480360360208110156106f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed5565b005b61072d610f67565b6040518082815260200191505060405180910390f35b61074b610f8b565b6040518082815260200191505060405180910390f35b6107ad6004803603604081101561077757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610faf565b005b6000600354905090565b6000806000838152602001908152602001600020600201549050919050565b6107e2338261105e565b50565b61080b60008084815260200190815260200160002060020154610806611158565b610cd7565b610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806124c4602f913960400191505060405180910390fd5b61086a8282611160565b5050565b60006012905090565b61087f611158565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610902576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180612621602f913960400191505060405180910390fd5b61090c82826111f3565b5050565b6109417f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0861093c611158565b610cd7565b610996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806125f6602b913960400191505060405180910390fd5b61099f81611286565b50565b6109d37f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6109ce611158565b610cd7565b610a28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061247c6026913960400191505060405180910390fd5b610a30611324565b565b600080610a87600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544261141790919063ffffffff16565b90506000610a9484610bb3565b90506000610aa061086e565b60ff16600a0a90506000818381610ab357fe5b0490506000610b2a603c610b1c610ae8612710610ada87601461146190919063ffffffff16565b6114e790919063ffffffff16565b610b0e86610b0060058a61146190919063ffffffff16565b61146190919063ffffffff16565b61156f90919063ffffffff16565b61156f90919063ffffffff16565b9050610b90610b42868361146190919063ffffffff16565b600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114e790919063ffffffff16565b95505050505050919050565b6000600160009054906101000a900460ff16905090565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000610c0f610c0a83610bb3565b6115b9565b9050919050565b610c477f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610c42611158565b610cd7565b610c9c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806125156024913960400191505060405180910390fd5b610ca46116ce565b565b6000610ccf826000808681526020019081526020016000206000016117c190919063ffffffff16565b905092915050565b6000610d00826000808681526020019081526020016000206000016117db90919063ffffffff16565b905092915050565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000801b81565b610d3d828261180b565b5050565b610d4b338261180b565b50565b606080610d5b6006611a2c565b67ffffffffffffffff81118015610d7157600080fd5b50604051908082528060200260200182016040528015610da05781602001602082028036833780820191505090505b50905060005b610db06006611a2c565b811015610e1e57610dcb8160066117c190919063ffffffff16565b828281518110610dd757fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080600101915050610da6565b508091505090565b6000610e45600080848152602001908152602001600020600001611a2c565b9050919050565b610e7260008084815260200190815260200160002060020154610e6d611158565b610cd7565b610ec7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806125396030913960400191505060405180910390fd5b610ed182826111f3565b5050565b610f067f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610f01611158565b610cd7565b610f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806125f6602b913960400191505060405180910390fd5b610f6481611a41565b50565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b610fc33360066117db90919063ffffffff16565b611018576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806125cd6029913960400191505060405180910390fd5b611020611ac3565b61102a8282611b2b565b5050565b6000611056836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611c82565b905092915050565b611066611ac3565b61106f82611cf2565b600061107a826115b9565b90506110868383611d85565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561111757600080fd5b505af115801561112b573d6000803e3d6000fd5b505050506040513d602081101561114157600080fd5b810190808051906020019092919050505050505050565b600033905090565b6111878160008085815260200190815260200160002060000161102e90919063ffffffff16565b156111ef57611194611158565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61121a81600080858152602001908152602001600020600001611fcd90919063ffffffff16565b1561128257611227611158565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b61129a8160066117db90919063ffffffff16565b61130c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f506f6f6c4d616e616765723a20756e6b6e6f7720706f6f6c000000000000000081525060200191505060405180910390fd5b611320816006611fcd90919063ffffffff16565b5050565b600160009054906101000a900460ff166113a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113ea611158565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b600061145983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611ffd565b905092915050565b60008083141561147457600090506114e1565b600082840290508284828161148557fe5b04146114dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806125ac6021913960400191505060405180910390fd5b809150505b92915050565b600080828401905083811015611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60006115b183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506120bd565b905092915050565b6000806115c46107af565b905060008114156115d95760009150506116c9565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561166257600080fd5b505afa158015611676573d6000803e3d6000fd5b505050506040513d602081101561168c57600080fd5b810190808051906020019092919050505090506116c4826116b6838761146190919063ffffffff16565b61156f90919063ffffffff16565b925050505b919050565b600160009054906101000a900460ff1615611751576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611794611158565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b60006117d08360000183612183565b60001c905092915050565b6000611803836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612206565b905092915050565b611813611ac3565b61181c82611cf2565b600060018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156118a557600080fd5b505afa1580156118b9573d6000803e3d6000fd5b505050506040513d60208110156118cf57600080fd5b8101908080519060200190929190505050905060006118ec6107af565b905060008390506000831180156119035750600082115b156119305761192d8361191f848761146190919063ffffffff16565b61156f90919063ffffffff16565b90505b61193a8582612229565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156119e957600080fd5b505af11580156119fd573d6000803e3d6000fd5b505050506040513d6020811015611a1357600080fd5b8101908080519060200190929190505050505050505050565b6000611a3a82600001612380565b9050919050565b611a558160066117db90919063ffffffff16565b15611aab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806125696022913960400191505060405180910390fd5b611abf81600661102e90919063ffffffff16565b5050565b611acb612391565b611ad3610b9c565b15611b29576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806126506021913960400191505060405180910390fd5b565b611b3482611cf2565b80600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611be9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f52657761726465723a206e6f7420656e6f75676820726577617264000000000081525060200191505060405180910390fd5b611c3b81600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461141790919063ffffffff16565b600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000611c8e8383612206565b611ce7578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611cec565b600090505b92915050565b611cfb81610a32565b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555042600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60008111611dfb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f784d7573743a2063616e6e6f74206275726e207a65726f00000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061258b6021913960400191505060405180910390fd5b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611f19576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806124f36022913960400191505060405180910390fd5b611f6b81600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461141790919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611fc38160035461141790919063ffffffff16565b6003819055505050565b6000611ff5836000018373ffffffffffffffffffffffffffffffffffffffff1660001b612393565b905092915050565b60008383111582906120aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561206f578082015181840152602081019050612054565b50505050905090810190601f16801561209c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60008083118290612169576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561212e578082015181840152602081019050612113565b50505050905090810190601f16801561215b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161217557fe5b049050809150509392505050565b6000818360000180549050116121e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806124a26022913960400191505060405180910390fd5b8260000182815481106121f357fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f784d7573743a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61231e81600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114e790919063ffffffff16565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612376816003546114e790919063ffffffff16565b6003819055505050565b600081600001805490509050919050565b565b6000808360010160008481526020019081526020016000205490506000811461246f57600060018203905060006001866000018054905003905060008660000182815481106123de57fe5b90600052602060002001549050808760000184815481106123fb57fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061243357fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050612475565b60009150505b9291505056fe547562653a206d75737420686176652070617573657220726f6c6520746f20756e7061757365456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74784d7573743a206275726e20616d6f756e7420657863656564732062616c616e6365547562653a206d75737420686176652070617573657220726f6c6520746f207061757365416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65506f6f6c4d616e616765723a20616c7265616479206578697374696e6720706f6f6c784d7573743a206275726e2066726f6d20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77506f6f6c4d616e616765723a2063616c6c6572206973206e6f742061206d616e6167656420706f6f6c547562653a206d7573742068617665206d616e6167657220726f6c6520746f206368616e676520706f6f6c416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66547562653a20616374696f6e20626c6f636b6564207768696c6520706175736564a2646970667358221220cc6e0523af36c1be8d8f1070de141a3171718c146aa25f85a3934bb898217bfc64736f6c634300060c0033

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

0000000000000000000000009c78ee466d6cb57a4d01fd887d2b5dfb2d46288f

-----Decoded View---------------
Arg [0] : _must (address): 0x9C78EE466D6Cb57A4d01Fd887D2b5dFb2D46288f

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009c78ee466d6cb57a4d01fd887d2b5dfb2d46288f


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  ]

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.