ETH Price: $2,638.08 (+1.41%)

Contract

0xeA9E305435C8f3f74e01ABC48d1388C97463a69e
 

Overview

ETH Balance

0.003 ETH

Eth Value

$7.91 (@ $2,638.08/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Token127676102021-07-05 12:57:031198 days ago1625489823IN
0xeA9E3054...97463a69e
0 ETH0.000502329
Public Placement127590942021-07-04 5:07:121200 days ago1625375232IN
0xeA9E3054...97463a69e
0 ETH0.0020470916.72000023
Public Placement127590882021-07-04 5:05:451200 days ago1625375145IN
0xeA9E3054...97463a69e
0 ETH0.000979478
Public Placement127590672021-07-04 5:00:061200 days ago1625374806IN
0xeA9E3054...97463a69e
0 ETH0.000857737.005
Public Placement127590342021-07-04 4:51:511200 days ago1625374311IN
0xeA9E3054...97463a69e
0 ETH0.000612235.00000145
Public Placement127589862021-07-04 4:42:001200 days ago1625373720IN
0xeA9E3054...97463a69e
0 ETH0.000465343.8
Public Placement127589742021-07-04 4:39:531200 days ago1625373593IN
0xeA9E3054...97463a69e
0 ETH0.000537235.00000145
Public Placement127589122021-07-04 4:25:111200 days ago1625372711IN
0xeA9E3054...97463a69e
0 ETH0.0020472916.72000023
Public Placement127589052021-07-04 4:22:441200 days ago1625372564IN
0xeA9E3054...97463a69e
0 ETH0.000489784.00000145
Public Placement127588402021-07-04 4:07:391200 days ago1625371659IN
0xeA9E3054...97463a69e
0 ETH0.000537175.00000145
Public Placement127587072021-07-04 3:37:201200 days ago1625369840IN
0xeA9E3054...97463a69e
0 ETH0.000590774.82428278
Public Placement127587062021-07-04 3:37:121200 days ago1625369832IN
0xeA9E3054...97463a69e
0 ETH0.000612175.00000145
Public Placement127585882021-07-04 3:12:501200 days ago1625368370IN
0xeA9E3054...97463a69e
0 ETH0.000612175
Public Placement127585232021-07-04 2:56:431200 days ago1625367403IN
0xeA9E3054...97463a69e
0 ETH0.000520444.25
Public Placement127584652021-07-04 2:43:531200 days ago1625366633IN
0xeA9E3054...97463a69e
0 ETH0.000612235.00000145
Public Placement127584582021-07-04 2:42:521200 days ago1625366572IN
0xeA9E3054...97463a69e
0 ETH0.000612295.00000145
Public Placement127584302021-07-04 2:36:071200 days ago1625366167IN
0xeA9E3054...97463a69e
0 ETH0.000682565.575
Public Placement127584092021-07-04 2:31:481200 days ago1625365908IN
0xeA9E3054...97463a69e
0 ETH0.0020470916.72000023
Public Placement127583122021-07-04 2:13:111200 days ago1625364791IN
0xeA9E3054...97463a69e
0 ETH0.000979568.00000145
Public Placement127582812021-07-04 2:04:231200 days ago1625364263IN
0xeA9E3054...97463a69e
0 ETH0.001181911.00000145
Public Placement127582302021-07-04 1:53:281200 days ago1625363608IN
0xeA9E3054...97463a69e
0 ETH0.000857127.00000145
Public Placement127582222021-07-04 1:51:341200 days ago1625363494IN
0xeA9E3054...97463a69e
0 ETH0.0010743410.00000145
Public Placement127581912021-07-04 1:45:161200 days ago1625363116IN
0xeA9E3054...97463a69e
0 ETH0.0012534410.23672439
Public Placement127577712021-07-04 0:12:221200 days ago1625357542IN
0xeA9E3054...97463a69e
0 ETH0.000550954.5
Public Placement127576162021-07-03 23:38:261200 days ago1625355506IN
0xeA9E3054...97463a69e
0 ETH0.000979668.00000145
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
158265672022-10-25 17:24:23721 days ago1666718663
0xeA9E3054...97463a69e
0 ETH
158265672022-10-25 17:24:23721 days ago1666718663
0xeA9E3054...97463a69e
0 ETH
158265672022-10-25 17:24:23721 days ago1666718663
0xeA9E3054...97463a69e
0 ETH
158265672022-10-25 17:24:23721 days ago1666718663
0xeA9E3054...97463a69e
0 ETH
156865032022-10-06 3:53:23741 days ago1665028403
0xeA9E3054...97463a69e
0 ETH
156865032022-10-06 3:53:23741 days ago1665028403
0xeA9E3054...97463a69e
0 ETH
156865032022-10-06 3:53:23741 days ago1665028403
0xeA9E3054...97463a69e
0 ETH
156865032022-10-06 3:53:23741 days ago1665028403
0xeA9E3054...97463a69e
0 ETH
156769702022-10-04 19:51:11742 days ago1664913071
0xeA9E3054...97463a69e
0 ETH
156769702022-10-04 19:51:11742 days ago1664913071
0xeA9E3054...97463a69e
0 ETH
156769702022-10-04 19:51:11742 days ago1664913071
0xeA9E3054...97463a69e
0 ETH
156769702022-10-04 19:51:11742 days ago1664913071
0xeA9E3054...97463a69e
0 ETH
156602052022-10-02 11:37:11745 days ago1664710631
0xeA9E3054...97463a69e
0 ETH
156602052022-10-02 11:37:11745 days ago1664710631
0xeA9E3054...97463a69e
0 ETH
156602052022-10-02 11:37:11745 days ago1664710631
0xeA9E3054...97463a69e
0 ETH
156602052022-10-02 11:37:11745 days ago1664710631
0xeA9E3054...97463a69e
0 ETH
156601332022-10-02 11:22:35745 days ago1664709755
0xeA9E3054...97463a69e
0 ETH
156601332022-10-02 11:22:35745 days ago1664709755
0xeA9E3054...97463a69e
0 ETH
156601332022-10-02 11:22:35745 days ago1664709755
0xeA9E3054...97463a69e
0 ETH
156601332022-10-02 11:22:35745 days ago1664709755
0xeA9E3054...97463a69e
0 ETH
155515202022-09-17 6:28:23760 days ago1663396103
0xeA9E3054...97463a69e
0 ETH
155515202022-09-17 6:28:23760 days ago1663396103
0xeA9E3054...97463a69e
0 ETH
155515202022-09-17 6:28:23760 days ago1663396103
0xeA9E3054...97463a69e
0 ETH
155515202022-09-17 6:28:23760 days ago1663396103
0xeA9E3054...97463a69e
0 ETH
155442082022-09-16 5:47:23761 days ago1663307243
0xeA9E3054...97463a69e
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SummaMode

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-17
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.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: @openzeppelin/contracts/utils/Address.sol



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity >=0.6.0 <0.8.0;




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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/EnumerableSet.sol



pragma solidity >=0.6.0 <0.8.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.3.0, sets of type `bytes32` (`Bytes32Set`), `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];
    }

    // Bytes32Set

    struct Bytes32Set {
        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(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, 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(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

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

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set 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(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, 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: @openzeppelin/contracts/GSN/Context.sol



pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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: @openzeppelin/contracts/access/AccessControl.sol



pragma solidity >=0.6.0 <0.8.0;




/**
 * @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: @openzeppelin/contracts/access/Ownable.sol



pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () 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: contracts/SummaMode.sol

pragma solidity ^0.6.0;




interface IDecimals{
    function decimals() external view returns (uint8);
}
abstract contract SummaPriContract is AccessControl {

    function node_count() external virtual returns (uint256);

    function node_switch() external virtual returns (bool);

    function nodeReceiveAddress() external virtual returns (address);

    function node_time() external virtual returns (uint256);

    function getRelation(address addr) external virtual returns (address);

    function getInvitor(address addr) external virtual returns (uint256);

    function addNode(address addr) external virtual returns (bool);
}

contract SummaMode is Ownable {

    using Address for address;

    using SafeMath for uint256;

    struct PlaceType {
        address token;
        // how much token for summa (10000 -> 1)
        uint256 price;
        // seconds
        uint256 duration;
        uint256 minTurnOver;
        uint256 placeFeeRate;
    }

    bytes32 public constant ANGEL_ROLE = keccak256("ANGEL_ROLE");

    bytes32 public constant INITIAL_ROLE = keccak256("INITIAL_ROLE");

    bytes32 public constant INVITE_ROLE = keccak256("INVITE_ROLE");

    bytes32 public constant NODE_ROLE = keccak256("NODE_ROLE");

    bytes32 public constant PUBLIC_ROLE = keccak256("PUBLIC_ROLE");

    address public summaPri;

    address public summa;

    mapping(address => uint256) public _priBalances;

    mapping(address => uint256) public _pubBalances;

    PlaceType public priPlaceType = PlaceType({
    token : address(0),
    price : 0.5 * 10000,
    duration : 60 * 24 * 225,
    minTurnOver : 10000,
    placeFeeRate : 0.2 * 1000
    });

    uint256 public pub_count = 3000;
    // 16M summa
    uint256 public pub_total_summa = 16000000;

    PlaceType public pubPlaceType = PlaceType({
    token : address(0),
    price : 0.75 * 10000,
    duration : 90 * 24 * 225,
    minTurnOver : 4000,
    placeFeeRate : 0.2 * 1000
    });

    bool public pub_switch = false;

    uint256 public pub_time = 0;

    // received pubToken amount
    uint256 public pubTokenAmount = 0;

    uint256 public minBackAmount = 50;

    uint256 public pubSum = 0;


    mapping(address => bool) private hasPri;

    constructor(address addrSP, address addrS) public payable {
        summaPri = addrSP;
        summa = addrS;
    }

    function priBalanceOf(address account) public view returns (uint256) {
        return _priBalances[account];
    }

    function pubBalanceOf(address account) public view returns (uint256) {
        if ((!pub_switch || block.number > pub_time.add(pubPlaceType.duration) || pub_count <= 0) && pubTokenAmount > 0) {
            uint256 realPrice = pubTokenAmount.div(pub_total_summa).mul(10000).div(10 ** uint256(IDecimals(pubPlaceType.token).decimals()));
            if (realPrice > pubPlaceType.price) {
                return _pubBalances[account].mul(10 ** uint256(IDecimals(summa).decimals())).div(pubTokenAmount.div(pub_total_summa));
            }
            return _pubBalances[account].mul(10 ** uint256(IDecimals(summa).decimals())).div(pubPlaceType.price.mul(10 ** uint256(IDecimals(pubPlaceType.token).decimals())).div(10000));
        }
        return 0;
    }

    function realPrice() public view returns (uint256){
        if ((!pub_switch || block.number > pub_time.add(pubPlaceType.duration) || pub_count <= 0) && pubTokenAmount > 0) {
            return pubTokenAmount.div(pub_total_summa).mul(10000).div(10 ** uint256(IDecimals(pubPlaceType.token).decimals()));
        }
        return 0;
    }

    function updateSumma(address addr) public onlyOwner {
        summa = addr;
    }

    function updateSummaPri(address addr) public onlyOwner {
        summaPri = addr;
    }

    function updatePriToken(address addr) public onlyOwner {
        require(addr.isContract(), "must be contract addr");
        priPlaceType.token = addr;
    }

    function updatePubToken(address addr) public onlyOwner {
        require(addr.isContract(), "must be contract addr");
        pubPlaceType.token = addr;
    }

    function updatePriType(address addr, uint256 price, uint256 duration, uint256 minTurnOver, uint256 placeFeeRate) public onlyOwner {
        require(addr.isContract(), "must be contract addr");
        priPlaceType.token = addr;
        priPlaceType.duration = duration;
        priPlaceType.minTurnOver = minTurnOver;
        priPlaceType.price = price;
        priPlaceType.placeFeeRate = placeFeeRate;
    }

    function updatePubType(address addr, uint256 price, uint256 duration, uint256 minTurnOver, uint256 placeFeeRate) public onlyOwner {
        require(addr.isContract(), "must be contract addr");
        pubPlaceType.token = addr;
        pubPlaceType.duration = duration;
        pubPlaceType.minTurnOver = minTurnOver;
        pubPlaceType.price = price;
        pubPlaceType.placeFeeRate = placeFeeRate;
    }

    /*to approve token before use this func*/
    function privatePlacement(uint256 amount) public {
        require(amount > 0, "amount must be gt 0");
        require(IERC20(priPlaceType.token).allowance(_msgSender(), address(this)) > 0, "allowance not enough");
        //        require(IERC20(priPlaceType.token).balanceOf(_msgSender()) >= IERC20(priPlaceType.token).allowance(_msgSender(), address(this)), "balance not enough");
        bool fullNode = SummaPriContract(summaPri).getRoleMemberCount(NODE_ROLE) >= SummaPriContract(summaPri).node_count() ? true : false;
        uint256 actualTurnOver = priPlaceType.minTurnOver * 10 ** uint256(IDecimals(priPlaceType.token).decimals());
        if (!hasPri[_msgSender()] && !(Address.isContract(_msgSender())) && !fullNode && SummaPriContract(summaPri).node_switch() && block.number <= SummaPriContract(summaPri).node_time().add(priPlaceType.duration) && actualTurnOver <= amount) {
            if (SummaPriContract(summaPri).addNode(_msgSender())) {
                _priBalances[_msgSender()] = priPlaceType.minTurnOver.mul(10000).div(priPlaceType.price).mul(10 ** uint256(IDecimals(summa).decimals()));
                hasPri[_msgSender()] = true;
                if (SummaPriContract(summaPri).getRoleMemberCount(NODE_ROLE) >= SummaPriContract(summaPri).node_count()) {
                    pub_switch = true;
                    pub_time = block.number;
                }
            }
            SafeERC20.safeTransferFrom(IERC20(priPlaceType.token),_msgSender(), SummaPriContract(summaPri).nodeReceiveAddress(), amount);
        } else {
            if (amount >= (minBackAmount * 10 ** uint256(IDecimals(priPlaceType.token).decimals()))) {
                SafeERC20.safeTransferFrom(IERC20(priPlaceType.token),_msgSender(), SummaPriContract(summaPri).nodeReceiveAddress(), amount.mul(priPlaceType.placeFeeRate).div(1000));
            } else {
                SafeERC20.safeTransferFrom(IERC20(priPlaceType.token),_msgSender(), SummaPriContract(summaPri).nodeReceiveAddress(), amount);
            }
        }
    }


    /*to approve token before use this func*/
    function publicPlacement(uint256 amount) public {
        require(amount > 0, "amount must be gt 0");
        require(IERC20(pubPlaceType.token).allowance(_msgSender(), address(this)) > 0, "allowance not enough");
        require(IERC20(pubPlaceType.token).allowance(_msgSender(), address(this)) >= amount, "please approve allowance for this contract");
        require(SummaPriContract(summaPri).node_time() > 0, "not start");
        //        require(IERC20(pubPlaceType.token).balanceOf(_msgSender()) >= IERC20(pubPlaceType.token).allowance(_msgSender(), address(this)), "balance not enough");
        bool closeNode = (block.number >= SummaPriContract(summaPri).node_time().add(priPlaceType.duration) || SummaPriContract(summaPri).getRoleMemberCount(NODE_ROLE) >= SummaPriContract(summaPri).node_count()) ? true : false;
        if (closeNode && !pub_switch) {
            pub_switch = true;
            pub_time = block.number;
        }
        uint256 actualTurnOver = pubPlaceType.minTurnOver * 10 ** uint256(IDecimals(pubPlaceType.token).decimals());
        if (!(Address.isContract(_msgSender())) && closeNode && block.number <= pub_time.add(pubPlaceType.duration) && pub_switch && pub_count > 0 && actualTurnOver <= amount) {
            if (SummaPriContract(summaPri).hasRole(PUBLIC_ROLE, _msgSender())) {
                if (_pubBalances[_msgSender()] <= 0) {
                    pub_count = pub_count.sub(1);
                    pubSum = pubSum.add(1);
                    if (pub_count <= 0) {
                        pub_switch = false;
                    }
                }
                pubTokenAmount = pubTokenAmount.add(amount);
                _pubBalances[_msgSender()] = _pubBalances[_msgSender()].add(amount);
            }
            SafeERC20.safeTransferFrom(IERC20(pubPlaceType.token),_msgSender(), address(this), amount);
        } else {
            if (amount < (minBackAmount * 10 ** uint256(IDecimals(priPlaceType.token).decimals()))) {
                SafeERC20.safeTransferFrom(IERC20(priPlaceType.token),_msgSender(), address(this), amount);
            } else {
                SafeERC20.safeTransferFrom(IERC20(pubPlaceType.token),_msgSender(), address(this), amount.mul(pubPlaceType.placeFeeRate).div(1000));
            }
        }
    }


    function withdrawETH() public onlyOwner {
        msg.sender.transfer(address(this).balance);
    }

    function withdrawToken(address addr) public onlyOwner {
        SafeERC20.safeTransfer(IERC20(addr),_msgSender(), IERC20(addr).balanceOf(address(this)));
    }

    receive() external payable {
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"addrSP","type":"address"},{"internalType":"address","name":"addrS","type":"address"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ANGEL_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INVITE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NODE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_priBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_pubBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBackAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"priBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priPlaceType","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"minTurnOver","type":"uint256"},{"internalType":"uint256","name":"placeFeeRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"privatePlacement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"pubBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubPlaceType","outputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"minTurnOver","type":"uint256"},{"internalType":"uint256","name":"placeFeeRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubSum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pubTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pub_count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pub_switch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pub_time","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pub_total_summa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"publicPlacement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"realPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"summa","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"summaPri","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updatePriToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"minTurnOver","type":"uint256"},{"internalType":"uint256","name":"placeFeeRate","type":"uint256"}],"name":"updatePriType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updatePubToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"minTurnOver","type":"uint256"},{"internalType":"uint256","name":"placeFeeRate","type":"uint256"}],"name":"updatePubType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updateSumma","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"updateSummaPri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6000608081905261138860a08190526204f1a060c081905261271060e081905260c8610100819052600580546001600160a01b03199081169091556006949094556007929092556008556009819055610bb8600a5562f42400600b556101c06040819052610120849052611d4c61014081905262076a70610160819052610fa06101808190526101a0859052600c8054909616909555600d91909155600e55600f929092556010556011805460ff19169055601282905560138290556032601455601591909155612b6138819003908190833981810160405260408110156100e657600080fd5b50805160209091015160006100f9610174565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055610178565b3390565b6129da806101876000396000f3fe6080604052600436106101fd5760003560e01c80638617cb741161010d578063b7c408d1116100a0578063e1bd11fb1161006f578063e1bd11fb1461062d578063e347f87c14610660578063f2fde38b14610693578063f4ef5b2d146106c6578063fb895733146106f957610204565b8063b7c408d1146105bb578063bc5c4610146105d0578063be59eec9146105e5578063e086e5ec1461061857610204565b80639b58cf18116100dc5780639b58cf1814610531578063a226995014610546578063ad7098f01461055b578063b47510c01461057057610204565b80638617cb741461047057806389476069146104a35780638d9b9857146104d65780638da5cb5b1461050057610204565b8063592c9bdc116101905780636d35c8e11161015f5780636d35c8e1146103bc578063715018a61461040757806371cd0ba71461041c57806376749fca146104315780638139e61d1461044657610204565b8063592c9bdc1461032c57806366a5d0ce1461035f5780636ae7d418146103925780636be582b7146103a757610204565b80632919e405116101cc5780632919e405146102b85780632a00c1f9146102cd578063385ff0ba146103025780633ca7c02a1461031757610204565b806312879135146102095780631d46f9b7146102305780631e5495b3146102595780631f4ce1ff146102a357610204565b3661020457005b600080fd5b34801561021557600080fd5b5061021e61070e565b60408051918252519081900360200190f35b34801561023c57600080fd5b50610245610714565b604080519115158252519081900360200190f35b34801561026557600080fd5b5061026e61071d565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b3480156102af57600080fd5b5061026e61073b565b3480156102c457600080fd5b5061021e610759565b3480156102d957600080fd5b50610300600480360360208110156102f057600080fd5b50356001600160a01b031661075f565b005b34801561030e57600080fd5b5061021e610834565b34801561032357600080fd5b5061021e61083a565b34801561033857600080fd5b5061021e6004803603602081101561034f57600080fd5b50356001600160a01b031661085e565b34801561036b57600080fd5b506103006004803603602081101561038257600080fd5b50356001600160a01b0316610870565b34801561039e57600080fd5b5061021e610945565b3480156103b357600080fd5b5061021e610969565b3480156103c857600080fd5b50610300600480360360a08110156103df57600080fd5b506001600160a01b03813516906020810135906040810135906060810135906080013561098d565b34801561041357600080fd5b50610300610a72565b34801561042857600080fd5b5061021e610b14565b34801561043d57600080fd5b5061021e610c00565b34801561045257600080fd5b506103006004803603602081101561046957600080fd5b5035610c24565b34801561047c57600080fd5b5061021e6004803603602081101561049357600080fd5b50356001600160a01b03166114e4565b3480156104af57600080fd5b50610300600480360360208110156104c657600080fd5b50356001600160a01b0316611503565b3480156104e257600080fd5b50610300600480360360208110156104f957600080fd5b50356115e1565b34801561050c57600080fd5b50610515611d76565b604080516001600160a01b039092168252519081900360200190f35b34801561053d57600080fd5b50610515611d85565b34801561055257600080fd5b5061021e611d94565b34801561056757600080fd5b5061021e611d9a565b34801561057c57600080fd5b50610300600480360360a081101561059357600080fd5b506001600160a01b038135169060208101359060408101359060608101359060800135611da0565b3480156105c757600080fd5b50610515611e85565b3480156105dc57600080fd5b5061021e611e94565b3480156105f157600080fd5b506103006004803603602081101561060857600080fd5b50356001600160a01b0316611e9a565b34801561062457600080fd5b50610300611f14565b34801561063957600080fd5b5061021e6004803603602081101561065057600080fd5b50356001600160a01b0316611f98565b34801561066c57600080fd5b5061021e6004803603602081101561068357600080fd5b50356001600160a01b0316612189565b34801561069f57600080fd5b50610300600480360360208110156106b657600080fd5b50356001600160a01b031661219b565b3480156106d257600080fd5b50610300600480360360208110156106e957600080fd5b50356001600160a01b0316612293565b34801561070557600080fd5b5061021e61230d565b600b5481565b60115460ff1681565b600c54600d54600e54600f546010546001600160a01b039094169385565b6005546006546007546008546009546001600160a01b039094169385565b60155481565b61076761231f565b6000546001600160a01b039081169116146107b7576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6107c9816001600160a01b0316612323565b610812576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600a5481565b7fee244ef9da0b2f89a74b208ea9fe1a639ebdf634027d9e1f092b58c39954fa3781565b60046020526000908152604090205481565b61087861231f565b6000546001600160a01b039081169116146108c8576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6108da816001600160a01b0316612323565b610923576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b7fcd10c6c77931323978ae9a87f7a888cf93959f1e6e67facfe58ded0d663d71f081565b7f9c46b4965636b67d33f26e1ec2280b49002b4009804fe727c1ea22a87d72eef781565b61099561231f565b6000546001600160a01b039081169116146109e5576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6109f7856001600160a01b0316612323565b610a40576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b039690961695909517909455600791909155600855600655600955565b610a7a61231f565b6000546001600160a01b03908116911614610aca576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60115460009060ff161580610b365750600e54601254610b3391612329565b43115b80610b415750600a54155b8015610b4f57506000601354115b15610bf957600c546040805163313ce56760e01b81529051610bf2926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015610b9a57600080fd5b505afa158015610bae573d6000803e3d6000fd5b505050506040513d6020811015610bc457600080fd5b5051600b5460135460ff909216600a0a91610bec9161271091610be69161238c565b906123ce565b9061238c565b9050610bfd565b5060005b90565b7fbd37403ed4a36bc12d26d8bc276b4a04464b17dcd35ca7f1bdc62974068380f181565b60008111610c6f576040805162461bcd60e51b81526020600482015260136024820152720616d6f756e74206d757374206265206774203606c1b604482015290519081900360640190fd5b6005546000906001600160a01b031663dd62ed3e610c8b61231f565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015610cd957600080fd5b505afa158015610ced573d6000803e3d6000fd5b505050506040513d6020811015610d0357600080fd5b505111610d4e576040805162461bcd60e51b81526020600482015260146024820152730c2d8d8deeec2dcc6ca40dcdee840cadcdeeaced60631b604482015290519081900360640190fd5b6001546040805163027b864f60e51b815290516000926001600160a01b031691634f70c9e091600480830192602092919082900301818787803b158015610d9457600080fd5b505af1158015610da8573d6000803e3d6000fd5b505050506040513d6020811015610dbe57600080fd5b50516001546040805163ca15c87360e01b815260008051602061295b833981519152600482015290516001600160a01b039092169163ca15c87391602480820192602092909190829003018186803b158015610e1957600080fd5b505afa158015610e2d573d6000803e3d6000fd5b505050506040513d6020811015610e4357600080fd5b50511015610e52576000610e55565b60015b90506000600560000160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610eaa57600080fd5b505afa158015610ebe573d6000803e3d6000fd5b505050506040513d6020811015610ed457600080fd5b505160085460ff909116600a0a02905060166000610ef061231f565b6001600160a01b0316815260208101919091526040016000205460ff16158015610f275750610f25610f2061231f565b612323565b155b8015610f31575081155b8015610fb55750600160009054906101000a90046001600160a01b03166001600160a01b031663689b6d956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610f8857600080fd5b505af1158015610f9c573d6000803e3d6000fd5b505050506040513d6020811015610fb257600080fd5b50515b801561103d57506007546001546040805162c1281f60e51b8152905161103993926001600160a01b03169163182503e09160048083019260209291908290030181600087803b15801561100757600080fd5b505af115801561101b573d6000803e3d6000fd5b505050506040513d602081101561103157600080fd5b505190612329565b4311155b80156110495750828111155b15611395576001546001600160a01b0316639d95f1cc61106761231f565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156110a657600080fd5b505af11580156110ba573d6000803e3d6000fd5b505050506040513d60208110156110d057600080fd5b5051156112f6576002546040805163313ce56760e01b81529051611169926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561111d57600080fd5b505afa158015611131573d6000803e3d6000fd5b505050506040513d602081101561114757600080fd5b505160065460085460ff909216600a0a91610be69190610bec906127106123ce565b6003600061117561231f565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506001601660006111a761231f565b6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a90046001600160a01b03166001600160a01b0316634f70c9e06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561122e57600080fd5b505af1158015611242573d6000803e3d6000fd5b505050506040513d602081101561125857600080fd5b50516001546040805163ca15c87360e01b815260008051602061295b833981519152600482015290516001600160a01b039092169163ca15c87391602480820192602092909190829003018186803b1580156112b357600080fd5b505afa1580156112c7573d6000803e3d6000fd5b505050506040513d60208110156112dd57600080fd5b5051106112f6576011805460ff19166001179055436012555b600554611390906001600160a01b031661130e61231f565b600160009054906101000a90046001600160a01b03166001600160a01b0316631b9957a16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561135e57600080fd5b505af1158015611372573d6000803e3d6000fd5b505050506040513d602081101561138857600080fd5b505186612427565b6114df565b6005546040805163313ce56760e01b815290516001600160a01b039092169163313ce56791600480820192602092909190829003018186803b1580156113da57600080fd5b505afa1580156113ee573d6000803e3d6000fd5b505050506040513d602081101561140457600080fd5b505160145460ff909116600a0a0283106114c757600554611390906001600160a01b031661143061231f565b600160009054906101000a90046001600160a01b03166001600160a01b0316631b9957a16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561148057600080fd5b505af1158015611494573d6000803e3d6000fd5b505050506040513d60208110156114aa57600080fd5b50516009546114c2906103e890610bec908a906123ce565b612427565b6005546114df906001600160a01b031661130e61231f565b505050565b6001600160a01b0381166000908152600360205260409020545b919050565b61150b61231f565b6000546001600160a01b0390811691161461155b576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6115de8161156761231f565b604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b1580156115ad57600080fd5b505afa1580156115c1573d6000803e3d6000fd5b505050506040513d60208110156115d757600080fd5b5051612487565b50565b6000811161162c576040805162461bcd60e51b81526020600482015260136024820152720616d6f756e74206d757374206265206774203606c1b604482015290519081900360640190fd5b600c546000906001600160a01b031663dd62ed3e61164861231f565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561169657600080fd5b505afa1580156116aa573d6000803e3d6000fd5b505050506040513d60208110156116c057600080fd5b50511161170b576040805162461bcd60e51b81526020600482015260146024820152730c2d8d8deeec2dcc6ca40dcdee840cadcdeeaced60631b604482015290519081900360640190fd5b600c5481906001600160a01b031663dd62ed3e61172661231f565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561177457600080fd5b505afa158015611788573d6000803e3d6000fd5b505050506040513d602081101561179e57600080fd5b505110156117dd5760405162461bcd60e51b815260040180806020018281038252602a8152602001806128a4602a913960400191505060405180910390fd5b6001546040805162c1281f60e51b815290516000926001600160a01b03169163182503e091600480830192602092919082900301818787803b15801561182257600080fd5b505af1158015611836573d6000803e3d6000fd5b505050506040513d602081101561184c57600080fd5b50511161188c576040805162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b604482015290519081900360640190fd5b60006118e7600560020154600160009054906101000a90046001600160a01b03166001600160a01b031663182503e06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561100757600080fd5b431015806119f45750600160009054906101000a90046001600160a01b03166001600160a01b0316634f70c9e06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561194057600080fd5b505af1158015611954573d6000803e3d6000fd5b505050506040513d602081101561196a57600080fd5b50516001546040805163ca15c87360e01b815260008051602061295b833981519152600482015290516001600160a01b039092169163ca15c87391602480820192602092909190829003018186803b1580156119c557600080fd5b505afa1580156119d9573d6000803e3d6000fd5b505050506040513d60208110156119ef57600080fd5b505110155b6119ff576000611a02565b60015b9050808015611a14575060115460ff16155b15611a2b576011805460ff19166001179055436012555b600c546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015611a7057600080fd5b505afa158015611a84573d6000803e3d6000fd5b505050506040513d6020811015611a9a57600080fd5b5051600f5460ff909116600a0a029050611ab5610f2061231f565b158015611abf5750815b8015611ad95750600e54601254611ad591612329565b4311155b8015611ae7575060115460ff165b8015611af557506000600a54115b8015611b015750828111155b15611ca3576001546001600160a01b03166391d148547fee244ef9da0b2f89a74b208ea9fe1a639ebdf634027d9e1f092b58c39954fa37611b4061231f565b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b158015611b8457600080fd5b505afa158015611b98573d6000803e3d6000fd5b505050506040513d6020811015611bae57600080fd5b505115611c8457600060046000611bc361231f565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611c1d57600a54611bf79060016124d9565b600a55601554611c08906001612329565b601555600a54611c1d576011805460ff191690555b601354611c2a9084612329565b601355611c5d8360046000611c3d61231f565b6001600160a01b0316815260208101919091526040016000205490612329565b60046000611c6961231f565b6001600160a01b031681526020810191909152604001600020555b600c54611390906001600160a01b0316611c9c61231f565b3086612427565b6005546040805163313ce56760e01b815290516001600160a01b039092169163313ce56791600480820192602092909190829003018186803b158015611ce857600080fd5b505afa158015611cfc573d6000803e3d6000fd5b505050506040513d6020811015611d1257600080fd5b505160145460ff909116600a0a02831015611d3f57600554611390906001600160a01b0316611c9c61231f565b600c546114df906001600160a01b0316611d5761231f565b306114c26103e8610bec600c600401548a6123ce90919063ffffffff16565b6000546001600160a01b031690565b6001546001600160a01b031681565b60135481565b60145481565b611da861231f565b6000546001600160a01b03908116911614611df8576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b611e0a856001600160a01b0316612323565b611e53576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b039690961695909517909455600e91909155600f55600d55601055565b6002546001600160a01b031681565b60125481565b611ea261231f565b6000546001600160a01b03908116911614611ef2576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b611f1c61231f565b6000546001600160a01b03908116911614611f6c576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b60405133904780156108fc02916000818181858888f193505050501580156115de573d6000803e3d6000fd5b60115460009060ff161580611fba5750600e54601254611fb791612329565b43115b80611fc55750600a54155b8015611fd357506000601354115b1561218157600061202e600c60000160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610b9a57600080fd5b600d549091508111156120f4576120ec612055600b5460135461238c90919063ffffffff16565b6002546040805163313ce56760e01b81529051610bec926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561209b57600080fd5b505afa1580156120af573d6000803e3d6000fd5b505050506040513d60208110156120c557600080fd5b50516001600160a01b0387166000908152600460205260409020549060ff16600a0a6123ce565b9150506114fe565b600c546040805163313ce56760e01b815290516120ec926120559261271092610bec926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561214657600080fd5b505afa15801561215a573d6000803e3d6000fd5b505050506040513d602081101561217057600080fd5b5051600d549060ff16600a0a6123ce565b506000919050565b60036020526000908152604090205481565b6121a361231f565b6000546001600160a01b039081169116146121f3576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6001600160a01b0381166122385760405162461bcd60e51b81526004018080602001828103825260268152602001806128ce6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61229b61231f565b6000546001600160a01b039081169116146122eb576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008051602061295b83398151915281565b3390565b3b151590565b600082820183811015612383576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061238383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061251b565b6000826123dd57506000612386565b828202828482816123ea57fe5b04146123835760405162461bcd60e51b815260040180806020018281038252602181526020018061291a6021913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526124819085906125bf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114df9084906125bf565b600061238383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612670565b600081836125a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561256c578181015183820152602001612554565b50505050905090810190601f1680156125995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816125b357fe5b049150505b9392505050565b6060612614826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126ca9092919063ffffffff16565b8051909150156114df5780806020019051602081101561263357600080fd5b50516114df5760405162461bcd60e51b815260040180806020018281038252602a81526020018061297b602a913960400191505060405180910390fd5b600081848411156126c25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561256c578181015183820152602001612554565b505050900390565b60606126d984846000856126e1565b949350505050565b6060824710156127225760405162461bcd60e51b81526004018080602001828103825260268152602001806128f46026913960400191505060405180910390fd5b61272b85612323565b61277c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127bb5780518252601f19909201916020918201910161279c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461281d576040519150601f19603f3d011682016040523d82523d6000602084013e612822565b606091505b509150915061283282828661283d565b979650505050505050565b6060831561284c5750816125b8565b82511561285c5782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561256c57818101518382015260200161255456fe706c6561736520617070726f766520616c6c6f77616e636520666f72207468697320636f6e74726163744f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657257c872046f094b8a493ec5eb6ea374eafbc3c05951e40de3c4302a41f3f127ba5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202a160c56210b56c4076091f9720f5a6163f4c183ee8769fd8a69c31e54cef79164736f6c634300060c00330000000000000000000000006631dc49eb860eafd61777b92e42fe2bef84596b000000000000000000000000043c308bb8a5ae96d0093444be7f56459f1340b1

Deployed Bytecode

0x6080604052600436106101fd5760003560e01c80638617cb741161010d578063b7c408d1116100a0578063e1bd11fb1161006f578063e1bd11fb1461062d578063e347f87c14610660578063f2fde38b14610693578063f4ef5b2d146106c6578063fb895733146106f957610204565b8063b7c408d1146105bb578063bc5c4610146105d0578063be59eec9146105e5578063e086e5ec1461061857610204565b80639b58cf18116100dc5780639b58cf1814610531578063a226995014610546578063ad7098f01461055b578063b47510c01461057057610204565b80638617cb741461047057806389476069146104a35780638d9b9857146104d65780638da5cb5b1461050057610204565b8063592c9bdc116101905780636d35c8e11161015f5780636d35c8e1146103bc578063715018a61461040757806371cd0ba71461041c57806376749fca146104315780638139e61d1461044657610204565b8063592c9bdc1461032c57806366a5d0ce1461035f5780636ae7d418146103925780636be582b7146103a757610204565b80632919e405116101cc5780632919e405146102b85780632a00c1f9146102cd578063385ff0ba146103025780633ca7c02a1461031757610204565b806312879135146102095780631d46f9b7146102305780631e5495b3146102595780631f4ce1ff146102a357610204565b3661020457005b600080fd5b34801561021557600080fd5b5061021e61070e565b60408051918252519081900360200190f35b34801561023c57600080fd5b50610245610714565b604080519115158252519081900360200190f35b34801561026557600080fd5b5061026e61071d565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b3480156102af57600080fd5b5061026e61073b565b3480156102c457600080fd5b5061021e610759565b3480156102d957600080fd5b50610300600480360360208110156102f057600080fd5b50356001600160a01b031661075f565b005b34801561030e57600080fd5b5061021e610834565b34801561032357600080fd5b5061021e61083a565b34801561033857600080fd5b5061021e6004803603602081101561034f57600080fd5b50356001600160a01b031661085e565b34801561036b57600080fd5b506103006004803603602081101561038257600080fd5b50356001600160a01b0316610870565b34801561039e57600080fd5b5061021e610945565b3480156103b357600080fd5b5061021e610969565b3480156103c857600080fd5b50610300600480360360a08110156103df57600080fd5b506001600160a01b03813516906020810135906040810135906060810135906080013561098d565b34801561041357600080fd5b50610300610a72565b34801561042857600080fd5b5061021e610b14565b34801561043d57600080fd5b5061021e610c00565b34801561045257600080fd5b506103006004803603602081101561046957600080fd5b5035610c24565b34801561047c57600080fd5b5061021e6004803603602081101561049357600080fd5b50356001600160a01b03166114e4565b3480156104af57600080fd5b50610300600480360360208110156104c657600080fd5b50356001600160a01b0316611503565b3480156104e257600080fd5b50610300600480360360208110156104f957600080fd5b50356115e1565b34801561050c57600080fd5b50610515611d76565b604080516001600160a01b039092168252519081900360200190f35b34801561053d57600080fd5b50610515611d85565b34801561055257600080fd5b5061021e611d94565b34801561056757600080fd5b5061021e611d9a565b34801561057c57600080fd5b50610300600480360360a081101561059357600080fd5b506001600160a01b038135169060208101359060408101359060608101359060800135611da0565b3480156105c757600080fd5b50610515611e85565b3480156105dc57600080fd5b5061021e611e94565b3480156105f157600080fd5b506103006004803603602081101561060857600080fd5b50356001600160a01b0316611e9a565b34801561062457600080fd5b50610300611f14565b34801561063957600080fd5b5061021e6004803603602081101561065057600080fd5b50356001600160a01b0316611f98565b34801561066c57600080fd5b5061021e6004803603602081101561068357600080fd5b50356001600160a01b0316612189565b34801561069f57600080fd5b50610300600480360360208110156106b657600080fd5b50356001600160a01b031661219b565b3480156106d257600080fd5b50610300600480360360208110156106e957600080fd5b50356001600160a01b0316612293565b34801561070557600080fd5b5061021e61230d565b600b5481565b60115460ff1681565b600c54600d54600e54600f546010546001600160a01b039094169385565b6005546006546007546008546009546001600160a01b039094169385565b60155481565b61076761231f565b6000546001600160a01b039081169116146107b7576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6107c9816001600160a01b0316612323565b610812576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600a5481565b7fee244ef9da0b2f89a74b208ea9fe1a639ebdf634027d9e1f092b58c39954fa3781565b60046020526000908152604090205481565b61087861231f565b6000546001600160a01b039081169116146108c8576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6108da816001600160a01b0316612323565b610923576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b7fcd10c6c77931323978ae9a87f7a888cf93959f1e6e67facfe58ded0d663d71f081565b7f9c46b4965636b67d33f26e1ec2280b49002b4009804fe727c1ea22a87d72eef781565b61099561231f565b6000546001600160a01b039081169116146109e5576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6109f7856001600160a01b0316612323565b610a40576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b039690961695909517909455600791909155600855600655600955565b610a7a61231f565b6000546001600160a01b03908116911614610aca576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60115460009060ff161580610b365750600e54601254610b3391612329565b43115b80610b415750600a54155b8015610b4f57506000601354115b15610bf957600c546040805163313ce56760e01b81529051610bf2926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015610b9a57600080fd5b505afa158015610bae573d6000803e3d6000fd5b505050506040513d6020811015610bc457600080fd5b5051600b5460135460ff909216600a0a91610bec9161271091610be69161238c565b906123ce565b9061238c565b9050610bfd565b5060005b90565b7fbd37403ed4a36bc12d26d8bc276b4a04464b17dcd35ca7f1bdc62974068380f181565b60008111610c6f576040805162461bcd60e51b81526020600482015260136024820152720616d6f756e74206d757374206265206774203606c1b604482015290519081900360640190fd5b6005546000906001600160a01b031663dd62ed3e610c8b61231f565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b158015610cd957600080fd5b505afa158015610ced573d6000803e3d6000fd5b505050506040513d6020811015610d0357600080fd5b505111610d4e576040805162461bcd60e51b81526020600482015260146024820152730c2d8d8deeec2dcc6ca40dcdee840cadcdeeaced60631b604482015290519081900360640190fd5b6001546040805163027b864f60e51b815290516000926001600160a01b031691634f70c9e091600480830192602092919082900301818787803b158015610d9457600080fd5b505af1158015610da8573d6000803e3d6000fd5b505050506040513d6020811015610dbe57600080fd5b50516001546040805163ca15c87360e01b815260008051602061295b833981519152600482015290516001600160a01b039092169163ca15c87391602480820192602092909190829003018186803b158015610e1957600080fd5b505afa158015610e2d573d6000803e3d6000fd5b505050506040513d6020811015610e4357600080fd5b50511015610e52576000610e55565b60015b90506000600560000160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610eaa57600080fd5b505afa158015610ebe573d6000803e3d6000fd5b505050506040513d6020811015610ed457600080fd5b505160085460ff909116600a0a02905060166000610ef061231f565b6001600160a01b0316815260208101919091526040016000205460ff16158015610f275750610f25610f2061231f565b612323565b155b8015610f31575081155b8015610fb55750600160009054906101000a90046001600160a01b03166001600160a01b031663689b6d956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610f8857600080fd5b505af1158015610f9c573d6000803e3d6000fd5b505050506040513d6020811015610fb257600080fd5b50515b801561103d57506007546001546040805162c1281f60e51b8152905161103993926001600160a01b03169163182503e09160048083019260209291908290030181600087803b15801561100757600080fd5b505af115801561101b573d6000803e3d6000fd5b505050506040513d602081101561103157600080fd5b505190612329565b4311155b80156110495750828111155b15611395576001546001600160a01b0316639d95f1cc61106761231f565b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156110a657600080fd5b505af11580156110ba573d6000803e3d6000fd5b505050506040513d60208110156110d057600080fd5b5051156112f6576002546040805163313ce56760e01b81529051611169926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561111d57600080fd5b505afa158015611131573d6000803e3d6000fd5b505050506040513d602081101561114757600080fd5b505160065460085460ff909216600a0a91610be69190610bec906127106123ce565b6003600061117561231f565b6001600160a01b03166001600160a01b03168152602001908152602001600020819055506001601660006111a761231f565b6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a90046001600160a01b03166001600160a01b0316634f70c9e06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561122e57600080fd5b505af1158015611242573d6000803e3d6000fd5b505050506040513d602081101561125857600080fd5b50516001546040805163ca15c87360e01b815260008051602061295b833981519152600482015290516001600160a01b039092169163ca15c87391602480820192602092909190829003018186803b1580156112b357600080fd5b505afa1580156112c7573d6000803e3d6000fd5b505050506040513d60208110156112dd57600080fd5b5051106112f6576011805460ff19166001179055436012555b600554611390906001600160a01b031661130e61231f565b600160009054906101000a90046001600160a01b03166001600160a01b0316631b9957a16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561135e57600080fd5b505af1158015611372573d6000803e3d6000fd5b505050506040513d602081101561138857600080fd5b505186612427565b6114df565b6005546040805163313ce56760e01b815290516001600160a01b039092169163313ce56791600480820192602092909190829003018186803b1580156113da57600080fd5b505afa1580156113ee573d6000803e3d6000fd5b505050506040513d602081101561140457600080fd5b505160145460ff909116600a0a0283106114c757600554611390906001600160a01b031661143061231f565b600160009054906101000a90046001600160a01b03166001600160a01b0316631b9957a16040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561148057600080fd5b505af1158015611494573d6000803e3d6000fd5b505050506040513d60208110156114aa57600080fd5b50516009546114c2906103e890610bec908a906123ce565b612427565b6005546114df906001600160a01b031661130e61231f565b505050565b6001600160a01b0381166000908152600360205260409020545b919050565b61150b61231f565b6000546001600160a01b0390811691161461155b576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6115de8161156761231f565b604080516370a0823160e01b815230600482015290516001600160a01b038616916370a08231916024808301926020929190829003018186803b1580156115ad57600080fd5b505afa1580156115c1573d6000803e3d6000fd5b505050506040513d60208110156115d757600080fd5b5051612487565b50565b6000811161162c576040805162461bcd60e51b81526020600482015260136024820152720616d6f756e74206d757374206265206774203606c1b604482015290519081900360640190fd5b600c546000906001600160a01b031663dd62ed3e61164861231f565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561169657600080fd5b505afa1580156116aa573d6000803e3d6000fd5b505050506040513d60208110156116c057600080fd5b50511161170b576040805162461bcd60e51b81526020600482015260146024820152730c2d8d8deeec2dcc6ca40dcdee840cadcdeeaced60631b604482015290519081900360640190fd5b600c5481906001600160a01b031663dd62ed3e61172661231f565b306040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561177457600080fd5b505afa158015611788573d6000803e3d6000fd5b505050506040513d602081101561179e57600080fd5b505110156117dd5760405162461bcd60e51b815260040180806020018281038252602a8152602001806128a4602a913960400191505060405180910390fd5b6001546040805162c1281f60e51b815290516000926001600160a01b03169163182503e091600480830192602092919082900301818787803b15801561182257600080fd5b505af1158015611836573d6000803e3d6000fd5b505050506040513d602081101561184c57600080fd5b50511161188c576040805162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b604482015290519081900360640190fd5b60006118e7600560020154600160009054906101000a90046001600160a01b03166001600160a01b031663182503e06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561100757600080fd5b431015806119f45750600160009054906101000a90046001600160a01b03166001600160a01b0316634f70c9e06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561194057600080fd5b505af1158015611954573d6000803e3d6000fd5b505050506040513d602081101561196a57600080fd5b50516001546040805163ca15c87360e01b815260008051602061295b833981519152600482015290516001600160a01b039092169163ca15c87391602480820192602092909190829003018186803b1580156119c557600080fd5b505afa1580156119d9573d6000803e3d6000fd5b505050506040513d60208110156119ef57600080fd5b505110155b6119ff576000611a02565b60015b9050808015611a14575060115460ff16155b15611a2b576011805460ff19166001179055436012555b600c546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b158015611a7057600080fd5b505afa158015611a84573d6000803e3d6000fd5b505050506040513d6020811015611a9a57600080fd5b5051600f5460ff909116600a0a029050611ab5610f2061231f565b158015611abf5750815b8015611ad95750600e54601254611ad591612329565b4311155b8015611ae7575060115460ff165b8015611af557506000600a54115b8015611b015750828111155b15611ca3576001546001600160a01b03166391d148547fee244ef9da0b2f89a74b208ea9fe1a639ebdf634027d9e1f092b58c39954fa37611b4061231f565b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060206040518083038186803b158015611b8457600080fd5b505afa158015611b98573d6000803e3d6000fd5b505050506040513d6020811015611bae57600080fd5b505115611c8457600060046000611bc361231f565b6001600160a01b03166001600160a01b031681526020019081526020016000205411611c1d57600a54611bf79060016124d9565b600a55601554611c08906001612329565b601555600a54611c1d576011805460ff191690555b601354611c2a9084612329565b601355611c5d8360046000611c3d61231f565b6001600160a01b0316815260208101919091526040016000205490612329565b60046000611c6961231f565b6001600160a01b031681526020810191909152604001600020555b600c54611390906001600160a01b0316611c9c61231f565b3086612427565b6005546040805163313ce56760e01b815290516001600160a01b039092169163313ce56791600480820192602092909190829003018186803b158015611ce857600080fd5b505afa158015611cfc573d6000803e3d6000fd5b505050506040513d6020811015611d1257600080fd5b505160145460ff909116600a0a02831015611d3f57600554611390906001600160a01b0316611c9c61231f565b600c546114df906001600160a01b0316611d5761231f565b306114c26103e8610bec600c600401548a6123ce90919063ffffffff16565b6000546001600160a01b031690565b6001546001600160a01b031681565b60135481565b60145481565b611da861231f565b6000546001600160a01b03908116911614611df8576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b611e0a856001600160a01b0316612323565b611e53576040805162461bcd60e51b815260206004820152601560248201527436bab9ba1031329031b7b73a3930b1ba1030b2323960591b604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b039690961695909517909455600e91909155600f55600d55601055565b6002546001600160a01b031681565b60125481565b611ea261231f565b6000546001600160a01b03908116911614611ef2576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b611f1c61231f565b6000546001600160a01b03908116911614611f6c576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b60405133904780156108fc02916000818181858888f193505050501580156115de573d6000803e3d6000fd5b60115460009060ff161580611fba5750600e54601254611fb791612329565b43115b80611fc55750600a54155b8015611fd357506000601354115b1561218157600061202e600c60000160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610b9a57600080fd5b600d549091508111156120f4576120ec612055600b5460135461238c90919063ffffffff16565b6002546040805163313ce56760e01b81529051610bec926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561209b57600080fd5b505afa1580156120af573d6000803e3d6000fd5b505050506040513d60208110156120c557600080fd5b50516001600160a01b0387166000908152600460205260409020549060ff16600a0a6123ce565b9150506114fe565b600c546040805163313ce56760e01b815290516120ec926120559261271092610bec926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561214657600080fd5b505afa15801561215a573d6000803e3d6000fd5b505050506040513d602081101561217057600080fd5b5051600d549060ff16600a0a6123ce565b506000919050565b60036020526000908152604090205481565b6121a361231f565b6000546001600160a01b039081169116146121f3576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b6001600160a01b0381166122385760405162461bcd60e51b81526004018080602001828103825260268152602001806128ce6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61229b61231f565b6000546001600160a01b039081169116146122eb576040805162461bcd60e51b8152602060048201819052602482015260008051602061293b833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008051602061295b83398151915281565b3390565b3b151590565b600082820183811015612383576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061238383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061251b565b6000826123dd57506000612386565b828202828482816123ea57fe5b04146123835760405162461bcd60e51b815260040180806020018281038252602181526020018061291a6021913960400191505060405180910390fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526124819085906125bf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114df9084906125bf565b600061238383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612670565b600081836125a75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561256c578181015183820152602001612554565b50505050905090810190601f1680156125995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816125b357fe5b049150505b9392505050565b6060612614826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126ca9092919063ffffffff16565b8051909150156114df5780806020019051602081101561263357600080fd5b50516114df5760405162461bcd60e51b815260040180806020018281038252602a81526020018061297b602a913960400191505060405180910390fd5b600081848411156126c25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561256c578181015183820152602001612554565b505050900390565b60606126d984846000856126e1565b949350505050565b6060824710156127225760405162461bcd60e51b81526004018080602001828103825260268152602001806128f46026913960400191505060405180910390fd5b61272b85612323565b61277c576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106127bb5780518252601f19909201916020918201910161279c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461281d576040519150601f19603f3d011682016040523d82523d6000602084013e612822565b606091505b509150915061283282828661283d565b979650505050505050565b6060831561284c5750816125b8565b82511561285c5782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561256c57818101518382015260200161255456fe706c6561736520617070726f766520616c6c6f77616e636520666f72207468697320636f6e74726163744f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657257c872046f094b8a493ec5eb6ea374eafbc3c05951e40de3c4302a41f3f127ba5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212202a160c56210b56c4076091f9720f5a6163f4c183ee8769fd8a69c31e54cef79164736f6c634300060c0033

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

0000000000000000000000006631dc49eb860eafd61777b92e42fe2bef84596b000000000000000000000000043c308bb8a5ae96d0093444be7f56459f1340b1

-----Decoded View---------------
Arg [0] : addrSP (address): 0x6631DC49EB860eaFd61777b92e42fe2bEf84596B
Arg [1] : addrS (address): 0x043C308BB8a5aE96D0093444be7f56459F1340b1

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006631dc49eb860eafd61777b92e42fe2bef84596b
Arg [1] : 000000000000000000000000043c308bb8a5ae96d0093444be7f56459f1340b1


Deployed Bytecode Sourcemap

40205:9193:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41331:41;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;41580:30;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;41381:190;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;41381:190:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41076;;;;;;;;;;;;;:::i;41772:25::-;;;;;;;;;;;;;:::i;43582:161::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43582:161:0;-1:-1:-1;;;;;43582:161:0;;:::i;:::-;;41275:31;;;;;;;;;;;;;:::i;40832:62::-;;;;;;;;;;;;;:::i;41020:47::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41020:47:0;-1:-1:-1;;;;;41020:47:0;;:::i;43413:161::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43413:161:0;-1:-1:-1;;;;;43413:161:0;;:::i;40621:64::-;;;;;;;;;;;;;:::i;40694:62::-;;;;;;;;;;;;;:::i;43751:416::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43751:416:0;;;;;;;;;;;;;;;;;;;;;;;:::i;38950:148::-;;;;;;;;;;;;;:::i;42876:341::-;;;;;;;;;;;;;:::i;40552:60::-;;;;;;;;;;;;;:::i;44646:2050::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44646:2050:0;;:::i;41982:116::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41982:116:0;-1:-1:-1;;;;;41982:116:0;;:::i;49189:161::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49189:161:0;-1:-1:-1;;;;;49189:161:0;;:::i;46753:2317::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46753:2317:0;;:::i;38308:79::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;38308:79:0;;;;;;;;;;;;;;40903:23;;;;;;;;;;;;;:::i;41688:33::-;;;;;;;;;;;;;:::i;41730:::-;;;;;;;;;;;;;:::i;44175:416::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;44175:416:0;;;;;;;;;;;;;;;;;;;;;;;:::i;40935:20::-;;;;;;;;;;;;;:::i;41619:27::-;;;;;;;;;;;;;:::i;43316:89::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43316:89:0;-1:-1:-1;;;;;43316:89:0;;:::i;49080:101::-;;;;;;;;;;;;;:::i;42106:762::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42106:762:0;-1:-1:-1;;;;;42106:762:0;;:::i;40964:47::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40964:47:0;-1:-1:-1;;;;;40964:47:0;;:::i;39253:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39253:244:0;-1:-1:-1;;;;;39253:244:0;;:::i;43225:83::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43225:83:0;-1:-1:-1;;;;;43225:83:0;;:::i;40765:58::-;;;;;;;;;;;;;:::i;41331:41::-;;;;:::o;41580:30::-;;;;;;:::o;41381:190::-;;;;;;;;;;;-1:-1:-1;;;;;41381:190:0;;;;;:::o;41076:::-;;;;;;;;;;;-1:-1:-1;;;;;41076:190:0;;;;;:::o;41772:25::-;;;;:::o;43582:161::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;43656:17:::1;:4;-1:-1:-1::0;;;;;43656:15:0::1;;:17::i;:::-;43648:51;;;::::0;;-1:-1:-1;;;43648:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43648:51:0;;;;;;;;;;;;;::::1;;43710:12;:25:::0;;-1:-1:-1;;;;;;43710:25:0::1;-1:-1:-1::0;;;;;43710:25:0;;;::::1;::::0;;;::::1;::::0;;43582:161::o;41275:31::-;;;;:::o;40832:62::-;40870:24;40832:62;:::o;41020:47::-;;;;;;;;;;;;;:::o;43413:161::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;43487:17:::1;:4;-1:-1:-1::0;;;;;43487:15:0::1;;:17::i;:::-;43479:51;;;::::0;;-1:-1:-1;;;43479:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43479:51:0;;;;;;;;;;;;;::::1;;43541:12;:25:::0;;-1:-1:-1;;;;;;43541:25:0::1;-1:-1:-1::0;;;;;43541:25:0;;;::::1;::::0;;;::::1;::::0;;43413:161::o;40621:64::-;40660:25;40621:64;:::o;40694:62::-;40732:24;40694:62;:::o;43751:416::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;43900:17:::1;:4;-1:-1:-1::0;;;;;43900:15:0::1;;:17::i;:::-;43892:51;;;::::0;;-1:-1:-1;;;43892:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43892:51:0;;;;;;;;;;;;;::::1;;43954:12;:25:::0;;-1:-1:-1;;;;;;43954:25:0::1;-1:-1:-1::0;;;;;43954:25:0;;;::::1;::::0;;;::::1;::::0;;;43990:21;:32;;;;44033:24;:38;44082:18;:26;44119:25;:40;43751:416::o;38950:148::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;39057:1:::1;39041:6:::0;;39020:40:::1;::::0;-1:-1:-1;;;;;39041:6:0;;::::1;::::0;39020:40:::1;::::0;39057:1;;39020:40:::1;39088:1;39071:19:::0;;-1:-1:-1;;;;;;39071:19:0::1;::::0;;38950:148::o;42876:341::-;42943:10;;42918:7;;42943:10;;42942:11;;:65;;-1:-1:-1;42985:21:0;;42972:8;;:35;;:12;:35::i;:::-;42957:12;:50;42942:65;:83;;;-1:-1:-1;43011:9:0;;:14;42942:83;42941:107;;;;;43047:1;43030:14;;:18;42941:107;42937:254;;;43147:12;:18;43137:40;;;-1:-1:-1;;;43137:40:0;;;;43072:107;;-1:-1:-1;;;;;43147:18:0;;43137:38;;:40;;;;;;;;;;;;;;43147:18;43137:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43137:40:0;43091:15;;43072:14;;43129:49;;;;43123:2;:55;;43072:46;;43112:5;;43072:35;;:18;:35::i;:::-;:39;;:46::i;:::-;:50;;:107::i;:::-;43065:114;;;;42937:254;-1:-1:-1;43208:1:0;42876:341;;:::o;40552:60::-;40589:23;40552:60;:::o;44646:2050::-;44723:1;44714:6;:10;44706:42;;;;;-1:-1:-1;;;44706:42:0;;;;;;;;;;;;-1:-1:-1;;;44706:42:0;;;;;;;;;;;;;;;44774:12;:18;44835:1;;-1:-1:-1;;;;;44774:18:0;44767:36;44804:12;:10;:12::i;:::-;44826:4;44767:65;;;;;;;;;;;;;-1:-1:-1;;;;;44767:65:0;;;;;;-1:-1:-1;;;;;44767:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44767:65:0;:69;44759:102;;;;;-1:-1:-1;;;44759:102:0;;;;;;;;;;;;-1:-1:-1;;;44759:102:0;;;;;;;;;;;;;;;45136:8;;45119:39;;;-1:-1:-1;;;45119:39:0;;;;45043:13;;-1:-1:-1;;;;;45136:8:0;;45119:37;;:39;;;;;;;;;;;;;;45043:13;45136:8;45119:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45119:39:0;45076:8;;45059:56;;;-1:-1:-1;;;45059:56:0;;-1:-1:-1;;;;;;;;;;;45059:56:0;;;;;;-1:-1:-1;;;;;45076:8:0;;;;45059:45;;:56;;;;;45119:39;;45059:56;;;;;;;;45076:8;45059:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45059:56:0;:99;;:114;;45168:5;45059:114;;;45161:4;45059:114;45043:130;;45184:22;45260:12;:18;;;;;;;;;;-1:-1:-1;;;;;45260:18:0;-1:-1:-1;;;;;45250:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45250:40:0;45209:24;;45242:49;;;;45236:2;:55;45209:82;;-1:-1:-1;45307:6:0;:20;45314:12;:10;:12::i;:::-;-1:-1:-1;;;;;45307:20:0;;;;;;;;;;;;-1:-1:-1;45307:20:0;;;;45306:21;:60;;;;;45333:32;45352:12;:10;:12::i;:::-;45333:18;:32::i;:::-;45331:35;45306:60;:73;;;;;45371:8;45370:9;45306:73;:117;;;;;45400:8;;;;;;;;;-1:-1:-1;;;;;45400:8:0;-1:-1:-1;;;;;45383:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45383:40:0;45306:117;:202;;;;-1:-1:-1;45486:21:0;;45460:8;;45443:38;;;-1:-1:-1;;;45443:38:0;;;;:65;;45486:21;-1:-1:-1;;;;;45460:8:0;;45443:36;;:38;;;;;;;;;;;;;;45460:8;;45443:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45443:38:0;;:42;:65::i;:::-;45427:12;:81;;45306:202;:230;;;;;45530:6;45512:14;:24;;45306:230;45302:1387;;;45574:8;;-1:-1:-1;;;;;45574:8:0;45557:34;45592:12;:10;:12::i;:::-;45557:48;;;;;;;;;;;;;-1:-1:-1;;;;;45557:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45557:48:0;45553:500;;;45743:5;;45733:27;;;-1:-1:-1;;;45733:27:0;;;;45655:107;;-1:-1:-1;;;;;45743:5:0;;45733:25;;:27;;;;;;;;;;;;;;45743:5;45733:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45733:27:0;45695:18;;45655:24;;45725:36;;;;45719:2;:42;;45655:59;;45695:18;45655:35;;45684:5;45655:28;:35::i;:107::-;45626:12;:26;45639:12;:10;:12::i;:::-;-1:-1:-1;;;;;45626:26:0;-1:-1:-1;;;;;45626:26:0;;;;;;;;;;;;:136;;;;45804:4;45781:6;:20;45788:12;:10;:12::i;:::-;-1:-1:-1;;;;;45781:20:0;-1:-1:-1;;;;;45781:20:0;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;45908:8;;;;;;;;;-1:-1:-1;;;;;45908:8:0;-1:-1:-1;;;;;45891:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45891:39:0;45848:8;;45831:56;;;-1:-1:-1;;;45831:56:0;;-1:-1:-1;;;;;;;;;;;45831:56:0;;;;;;-1:-1:-1;;;;;45848:8:0;;;;45831:45;;:56;;;;;45891:39;;45831:56;;;;;;;;45848:8;45831:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45831:56:0;:99;45827:211;;45955:10;:17;;-1:-1:-1;;45955:17:0;45968:4;45955:17;;;46006:12;45995:8;:23;45827:211;46101:12;:18;46067:124;;-1:-1:-1;;;;;46101:18:0;46121:12;:10;:12::i;:::-;46152:8;;;;;;;;;-1:-1:-1;;;;;46152:8:0;-1:-1:-1;;;;;46135:45:0;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46135:47:0;46184:6;46067:26;:124::i;:::-;45302:1387;;;46279:12;:18;46269:40;;;-1:-1:-1;;;46269:40:0;;;;-1:-1:-1;;;;;46279:18:0;;;;46269:38;;:40;;;;;;;;;;;;;;;46279:18;46269:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46269:40:0;46239:13;;46261:49;;;;46255:2;:55;46239:71;46228:83;;46224:454;;46366:12;:18;46332:165;;-1:-1:-1;;;;;46366:18:0;46386:12;:10;:12::i;:::-;46417:8;;;;;;;;;-1:-1:-1;;;;;46417:8:0;-1:-1:-1;;;;;46400:45:0;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46400:47:0;46460:25;;46449:47;;46491:4;;46449:37;;:6;;:10;:37::i;:47::-;46332:26;:165::i;46224:454::-;46572:12;:18;46538:124;;-1:-1:-1;;;;;46572:18:0;46592:12;:10;:12::i;46538:124::-;44646:2050;;;:::o;41982:116::-;-1:-1:-1;;;;;42069:21:0;;42042:7;42069:21;;;:12;:21;;;;;;41982:116;;;;:::o;49189:161::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;49254:88:::1;49284:4;49290:12;:10;:12::i;:::-;49304:37;::::0;;-1:-1:-1;;;49304:37:0;;49335:4:::1;49304:37;::::0;::::1;::::0;;;-1:-1:-1;;;;;49304:22:0;::::1;::::0;::::1;::::0;:37;;;;;::::1;::::0;;;;;;;;:22;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;49304:37:0;49254:22:::1;:88::i;:::-;49189:161:::0;:::o;46753:2317::-;46829:1;46820:6;:10;46812:42;;;;;-1:-1:-1;;;46812:42:0;;;;;;;;;;;;-1:-1:-1;;;46812:42:0;;;;;;;;;;;;;;;46880:12;:18;46941:1;;-1:-1:-1;;;;;46880:18:0;46873:36;46910:12;:10;:12::i;:::-;46932:4;46873:65;;;;;;;;;;;;;-1:-1:-1;;;;;46873:65:0;;;;;;-1:-1:-1;;;;;46873:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46873:65:0;:69;46865:102;;;;;-1:-1:-1;;;46865:102:0;;;;;;;;;;;;-1:-1:-1;;;46865:102:0;;;;;;;;;;;;;;;46993:12;:18;47055:6;;-1:-1:-1;;;;;46993:18:0;46986:36;47023:12;:10;:12::i;:::-;47045:4;46986:65;;;;;;;;;;;;;-1:-1:-1;;;;;46986:65:0;;;;;;-1:-1:-1;;;;;46986:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46986:65:0;:75;;46978:130;;;;-1:-1:-1;;;46978:130:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47144:8;;47127:38;;;-1:-1:-1;;;47127:38:0;;;;47168:1;;-1:-1:-1;;;;;47144:8:0;;47127:36;;:38;;;;;;;;;;;;;;47168:1;47144:8;47127:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47127:38:0;:42;47119:64;;;;;-1:-1:-1;;;47119:64:0;;;;;;;;;;;;-1:-1:-1;;;47119:64:0;;;;;;;;;;;;;;;47365:14;47399:65;47442:12;:21;;;47416:8;;;;;;;;;-1:-1:-1;;;;;47416:8:0;-1:-1:-1;;;;;47399:36:0;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:65;47383:12;:81;;:184;;;;47545:8;;;;;;;;;-1:-1:-1;;;;;47545:8:0;-1:-1:-1;;;;;47528:37:0;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47528:39:0;47485:8;;47468:56;;;-1:-1:-1;;;47468:56:0;;-1:-1:-1;;;;;;;;;;;47468:56:0;;;;;;-1:-1:-1;;;;;47485:8:0;;;;47468:45;;:56;;;;;47528:39;;47468:56;;;;;;;;47485:8;47468:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47468:56:0;:99;;47383:184;47382:201;;47578:5;47382:201;;;47571:4;47382:201;47365:218;;47598:9;:24;;;;-1:-1:-1;47612:10:0;;;;47611:11;47598:24;47594:112;;;47639:10;:17;;-1:-1:-1;;47639:17:0;47652:4;47639:17;;;47682:12;47671:8;:23;47594:112;47792:12;:18;47782:40;;;-1:-1:-1;;;47782:40:0;;;;47716:22;;-1:-1:-1;;;;;47792:18:0;;47782:38;;:40;;;;;;;;;;;;;;47792:18;47782:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47782:40:0;47741:24;;47774:49;;;;47768:2;:55;47741:82;;-1:-1:-1;47840:32:0;47859:12;:10;:12::i;47840:32::-;47838:35;:48;;;;;47877:9;47838:48;:103;;;;-1:-1:-1;47919:21:0;;47906:8;;:35;;:12;:35::i;:::-;47890:12;:51;;47838:103;:117;;;;-1:-1:-1;47945:10:0;;;;47838:117;:134;;;;;47971:1;47959:9;;:13;47838:134;:162;;;;;47994:6;47976:14;:24;;47838:162;47834:1229;;;48038:8;;-1:-1:-1;;;;;48038:8:0;48021:34;40870:24;48069:12;:10;:12::i;:::-;48021:61;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48021:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48021:61:0;48017:513;;;48137:1;48107:12;:26;48120:12;:10;:12::i;:::-;-1:-1:-1;;;;;48107:26:0;-1:-1:-1;;;;;48107:26:0;;;;;;;;;;;;;:31;48103:264;;48175:9;;:16;;48189:1;48175:13;:16::i;:::-;48163:9;:28;48223:6;;:13;;48234:1;48223:10;:13::i;:::-;48214:6;:22;48263:9;;48259:89;;48306:10;:18;;-1:-1:-1;;48306:18:0;;;48259:89;48402:14;;:26;;48421:6;48402:18;:26::i;:::-;48385:14;:43;48476:38;48507:6;48476:12;:26;48489:12;:10;:12::i;:::-;-1:-1:-1;;;;;48476:26:0;;;;;;;;;;;;-1:-1:-1;48476:26:0;;;:30;:38::i;:::-;48447:12;:26;48460:12;:10;:12::i;:::-;-1:-1:-1;;;;;48447:26:0;;;;;;;;;;;;-1:-1:-1;48447:26:0;:67;48017:513;48578:12;:18;48544:90;;-1:-1:-1;;;;;48578:18:0;48598:12;:10;:12::i;:::-;48620:4;48627:6;48544:26;:90::i;47834:1229::-;48721:12;:18;48711:40;;;-1:-1:-1;;;48711:40:0;;;;-1:-1:-1;;;;;48721:18:0;;;;48711:38;;:40;;;;;;;;;;;;;;;48721:18;48711:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48711:40:0;48681:13;;48703:49;;;;48697:2;:55;48681:71;48671:82;;48667:385;;;48808:12;:18;48774:90;;-1:-1:-1;;;;;48808:18:0;48828:12;:10;:12::i;48667:385::-;48939:12;:18;48905:131;;-1:-1:-1;;;;;48939:18:0;48959:12;:10;:12::i;:::-;48981:4;48988:47;49030:4;48988:37;48999:12;:25;;;48988:6;:10;;:37;;;;:::i;38308:79::-;38346:7;38373:6;-1:-1:-1;;;;;38373:6:0;38308:79;:::o;40903:23::-;;;-1:-1:-1;;;;;40903:23:0;;:::o;41688:33::-;;;;:::o;41730:::-;;;;:::o;44175:416::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;44324:17:::1;:4;-1:-1:-1::0;;;;;44324:15:0::1;;:17::i;:::-;44316:51;;;::::0;;-1:-1:-1;;;44316:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;44316:51:0;;;;;;;;;;;;;::::1;;44378:12;:25:::0;;-1:-1:-1;;;;;;44378:25:0::1;-1:-1:-1::0;;;;;44378:25:0;;;::::1;::::0;;;::::1;::::0;;;44414:21;:32;;;;44457:24;:38;44506:18;:26;44543:25;:40;44175:416::o;40935:20::-;;;-1:-1:-1;;;;;40935:20:0;;:::o;41619:27::-;;;;:::o;43316:89::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;43382:8:::1;:15:::0;;-1:-1:-1;;;;;;43382:15:0::1;-1:-1:-1::0;;;;;43382:15:0;;;::::1;::::0;;;::::1;::::0;;43316:89::o;49080:101::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;49131:42:::1;::::0;:10:::1;::::0;49151:21:::1;49131:42:::0;::::1;;;::::0;::::1;::::0;;;49151:21;49131:10;:42;::::1;;;;;;;;;;;;;::::0;::::1;;;;42106:762:::0;42192:10;;42166:7;;42192:10;;42191:11;;:65;;-1:-1:-1;42234:21:0;;42221:8;;:35;;:12;:35::i;:::-;42206:12;:50;42191:65;:83;;;-1:-1:-1;42260:9:0;;:14;42191:83;42190:107;;;;;42296:1;42279:14;;:18;42190:107;42186:656;;;42314:17;42334:107;42409:12;:18;;;;;;;;;;-1:-1:-1;;;;;42409:18:0;-1:-1:-1;;;;;42399:38:0;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42334:107;42472:18;;42314:127;;-1:-1:-1;42460:30:0;;42456:188;;;42518:110;42592:35;42611:15;;42592:14;;:18;;:35;;;;:::i;:::-;42568:5;;42558:27;;;-1:-1:-1;;;42558:27:0;;;;42518:69;;-1:-1:-1;;;;;42568:5:0;;42558:25;;:27;;;;;;;;;;;;;;42568:5;42558:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42558:27:0;-1:-1:-1;;;;;42518:21:0;;;;;;:12;42558:27;42518:21;;;;;;42550:36;;42544:2;:42;42518:25;:69::i;:110::-;42511:117;;;;;42456:188;42786:12;:18;42776:40;;;-1:-1:-1;;;42776:40:0;;;;42665:165;;42739:90;;42823:5;;42739:79;;-1:-1:-1;;;;;42786:18:0;;42776:38;;:40;;;;;;;;;;;;;;42786:18;42776:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42776:40:0;42739:18;;;42768:49;;42762:2;:55;42739:22;:79::i;42186:656::-;-1:-1:-1;42859:1:0;42106:762;;;:::o;40964:47::-;;;;;;;;;;;;;:::o;39253:244::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;39342:22:0;::::1;39334:73;;;;-1:-1:-1::0;;;39334:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39444:6;::::0;;39423:38:::1;::::0;-1:-1:-1;;;;;39423:38:0;;::::1;::::0;39444:6;::::1;::::0;39423:38:::1;::::0;::::1;39472:6;:17:::0;;-1:-1:-1;;;;;;39472:17:0::1;-1:-1:-1::0;;;;;39472:17:0;;;::::1;::::0;;;::::1;::::0;;39253:244::o;43225:83::-;38530:12;:10;:12::i;:::-;38520:6;;-1:-1:-1;;;;;38520:6:0;;;:22;;;38512:67;;;;;-1:-1:-1;;;38512:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38512:67:0;;;;;;;;;;;;;;;43288:5:::1;:12:::0;;-1:-1:-1;;;;;;43288:12:0::1;-1:-1:-1::0;;;;;43288:12:0;;;::::1;::::0;;;::::1;::::0;;43225:83::o;40765:58::-;-1:-1:-1;;;;;;;;;;;40765:58:0;:::o;29286:106::-;29374:10;29286:106;:::o;8978:422::-;9345:20;9384:8;;;8978:422::o;3744:181::-;3802:7;3834:5;;;3858:6;;;;3850:46;;;;;-1:-1:-1;;;3850:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3916:1;-1:-1:-1;3744:181:0;;;;;:::o;6045:132::-;6103:7;6130:39;6134:1;6137;6130:39;;;;;;;;;;;;;;;;;:3;:39::i;5098:471::-;5156:7;5401:6;5397:47;;-1:-1:-1;5431:1:0;5424:8;;5397:47;5468:5;;;5472:1;5468;:5;:1;5492:5;;;;;:10;5484:56;;;;-1:-1:-1;;;5484:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16084:205;16212:68;;;-1:-1:-1;;;;;16212:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16212:68:0;-1:-1:-1;;;16212:68:0;;;16185:96;;16205:5;;16185:19;:96::i;:::-;16084:205;;;;:::o;15899:177::-;16009:58;;;-1:-1:-1;;;;;16009:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16009:58:0;-1:-1:-1;;;16009:58:0;;;15982:86;;16002:5;;15982:19;:86::i;4208:136::-;4266:7;4293:43;4297:1;4300;4293:43;;;;;;;;;;;;;;;;;:3;:43::i;6673:278::-;6759:7;6794:12;6787:5;6779:28;;;;-1:-1:-1;;;6779:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6818:9;6834:1;6830;:5;;;;;;;-1:-1:-1;;6673:278:0;;;;;;:::o;18204:761::-;18628:23;18654:69;18682:4;18654:69;;;;;;;;;;;;;;;;;18662:5;-1:-1:-1;;;;;18654:27:0;;;:69;;;;;:::i;:::-;18738:17;;18628:95;;-1:-1:-1;18738:21:0;18734:224;;18880:10;18869:30;;;;;;;;;;;;;;;-1:-1:-1;18869:30:0;18861:85;;;;-1:-1:-1;;;18861:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4647:192;4733:7;4769:12;4761:6;;;;4753:29;;;;-1:-1:-1;;;4753:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4805:5:0;;;4647:192::o;11896:195::-;11999:12;12031:52;12053:6;12061:4;12067:1;12070:12;12031:21;:52::i;:::-;12024:59;11896:195;-1:-1:-1;;;;11896:195:0:o;12948:530::-;13075:12;13133:5;13108:21;:30;;13100:81;;;;-1:-1:-1;;;13100:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13200:18;13211:6;13200:10;:18::i;:::-;13192:60;;;;;-1:-1:-1;;;13192:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13326:12;13340:23;13367:6;-1:-1:-1;;;;;13367:11:0;13387:5;13395:4;13367:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13367:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13325:75;;;;13418:52;13436:7;13445:10;13457:12;13418:17;:52::i;:::-;13411:59;12948:530;-1:-1:-1;;;;;;;12948:530:0:o;14484:742::-;14599:12;14628:7;14624:595;;;-1:-1:-1;14659:10:0;14652:17;;14624:595;14773:17;;:21;14769:439;;15036:10;15030:17;15097:15;15084:10;15080:2;15076:19;15069:44;14984:148;15172:20;;-1:-1:-1;;;15172:20:0;;;;;;;;;;;;;;;;;15179:12;;15172:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://2a160c56210b56c4076091f9720f5a6163f4c183ee8769fd8a69c31e54cef791

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.