ETH Price: $2,413.28 (-0.33%)

Contract

0x3B75d3f628C29d357b484EA7d091faEd63419267
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim195615302024-04-01 14:19:35166 days ago1711981175IN
0x3B75d3f6...d63419267
0 ETH0.0032383929.79916438
Claim185426622023-11-10 16:12:59309 days ago1699632779IN
0x3B75d3f6...d63419267
0 ETH0.0060975158.74178955
Claim185411032023-11-10 10:59:23309 days ago1699613963IN
0x3B75d3f6...d63419267
0 ETH0.0035093232.29221071
Claim176252772023-07-05 4:22:47438 days ago1688530967IN
0x3B75d3f6...d63419267
0 ETH0.0037304246.11100479
Claim174969002023-06-17 3:37:59456 days ago1686973079IN
0x3B75d3f6...d63419267
0 ETH0.0020934521.3615365
Claim165622012023-02-05 11:10:59587 days ago1675595459IN
0x3B75d3f6...d63419267
0 ETH0.0019712518.13913748
Claim164245252023-01-17 5:48:23607 days ago1673934503IN
0x3B75d3f6...d63419267
0 ETH0.0016799520.7656037
Claim164245102023-01-17 5:45:23607 days ago1673934323IN
0x3B75d3f6...d63419267
0 ETH0.0015825616.14845919
Claim162747002022-12-27 7:50:11628 days ago1672127411IN
0x3B75d3f6...d63419267
0 ETH0.0015461112.78818176
Claim161155012022-12-05 2:05:11650 days ago1670205911IN
0x3B75d3f6...d63419267
0 ETH0.001276513.0254153
Claim159874612022-11-17 4:49:59668 days ago1668660599IN
0x3B75d3f6...d63419267
0 ETH0.0014248113.72626702
Claim159771622022-11-15 18:16:35669 days ago1668536195IN
0x3B75d3f6...d63419267
0 ETH0.0016627820.55332578
Claim157734752022-10-18 7:23:11698 days ago1666077791IN
0x3B75d3f6...d63419267
0 ETH0.0014264114.55509424
Claim154770532022-09-05 9:32:57741 days ago1662370377IN
0x3B75d3f6...d63419267
0 ETH0.000490566.06381056
Claim154525452022-09-01 11:11:44744 days ago1662030704IN
0x3B75d3f6...d63419267
0 ETH0.000772199.54496374
Claim154382712022-08-30 4:31:23747 days ago1661833883IN
0x3B75d3f6...d63419267
0 ETH0.0014165213.64636968
Claim153949752022-08-23 6:15:38754 days ago1661235338IN
0x3B75d3f6...d63419267
0 ETH0.000533986.60049198
Claim153535192022-08-16 16:55:28760 days ago1660668928IN
0x3B75d3f6...d63419267
0 ETH0.0030437725.17551663
Claim153526932022-08-16 13:44:41760 days ago1660657481IN
0x3B75d3f6...d63419267
0 ETH0.000877168.45038817
Claim152900162022-08-06 17:19:07770 days ago1659806347IN
0x3B75d3f6...d63419267
0 ETH0.0020271720.68523889
Claim152663052022-08-03 0:27:24774 days ago1659486444IN
0x3B75d3f6...d63419267
0 ETH0.0021875222.3214187
Claim152540272022-08-01 2:51:59776 days ago1659322319IN
0x3B75d3f6...d63419267
0 ETH0.000878238.08141182
Claim152275922022-07-27 23:51:56780 days ago1658965916IN
0x3B75d3f6...d63419267
0 ETH0.0022407317.81560291
Claim152260672022-07-27 18:17:54780 days ago1658945874IN
0x3B75d3f6...d63419267
0 ETH0.0058729972.59480118
Claim152260462022-07-27 18:12:42780 days ago1658945562IN
0x3B75d3f6...d63419267
0 ETH0.0071704973.16754673
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PublicSaleProxy

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 13 : PublicSaleProxy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.6;

import "../interfaces/IPublicSaleProxy.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";

import "../common/AccessibleCommon.sol";
import "./PublicSaleStorage.sol";
import "../stake/ProxyBase.sol";

contract PublicSaleProxy is 
    PublicSaleStorage,
    AccessibleCommon,
    ProxyBase,
    IPublicSaleProxy
{
    event Upgraded(address indexed implementation);

    /// @dev constructor of PublicSaleProxy
    /// @param _impl the logic address of PublicSaleProxy
    constructor(address _impl, address _admin) {
        assert(
            IMPLEMENTATION_SLOT ==
                bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)
        );

        require(_impl != address(0), "PublicSaleProxy: logic is zero");

        _setImplementation(_impl);

        _setRoleAdmin(ADMIN_ROLE, ADMIN_ROLE);
        _setupRole(ADMIN_ROLE, _admin);
    }

    /// @notice Set pause state
    /// @param _pause true:pause or false:resume
    function setProxyPause(bool _pause) external override onlyOwner {
        pauseProxy = _pause;
    }

    /// @notice Set implementation contract
    /// @param impl New implementation contract address
    function upgradeTo(address impl) external override onlyOwner {
        require(impl != address(0), "PublicSaleProxy: input is zero");
        require(_implementation() != impl, "PublicSaleProxy: same");
        _setImplementation(impl);
        emit Upgraded(impl);
    }

    /// @dev returns the implementation
    function implementation() public override view returns (address) {
        return _implementation();
    }

    /// @dev receive ether
    receive() external payable {
        revert("cannot receive Ether");
    }

    /// @dev fallback function , execute on undefined function call
    fallback() external payable {
        _fallback();
    }

    /// @dev fallback function , execute on undefined function call
    function _fallback() internal {
        address _impl = _implementation();
        require(
            _impl != address(0) && !pauseProxy,
            "PublicSaleProxy: impl OR proxy is false"
        );

        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), _impl, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
                // delegatecall returns 0 on error.
                case 0 {
                    revert(0, returndatasize())
                }
                default {
                    return(0, returndatasize())
                }
        }
    }

    /// @dev Initialize
    function initialize(
        address _saleTokenAddress, 
        address _getTokenAddress, 
        address _getTokenOwner,
        address _sTOS,
        address _wton
    ) external override onlyOwner {
        require(snapshot == 0, "possible to setting the snapshot before");
        saleToken = IERC20(_saleTokenAddress);
        getToken = IERC20(_getTokenAddress);
        getTokenOwner = _getTokenOwner;
        sTOS = ILockTOS(_sTOS);
        wton = _wton;
    }
}

File 2 of 13 : IPublicSaleProxy.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.6;

interface IPublicSaleProxy {
    /// @dev Set pause state
    /// @param _pause true:pause or false:resume
    function setProxyPause(bool _pause) external;

    /// @dev Set implementation contract
    /// @param _impl New implementation contract address
    function upgradeTo(address _impl) external;

    /// @dev view implementation address
    /// @return the logic address
    function implementation() external view returns (address);

    /// @dev initialize
    function initialize(
        address _saleTokenAddress, 
        address _getTokenAddress, 
        address _getTokenOwner,
        address _sTOS,
        address _wton
    ) external;
}

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

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 4 of 13 : AccessibleCommon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./AccessRoleCommon.sol";

contract AccessibleCommon is AccessRoleCommon, AccessControl {
    modifier onlyOwner() {
        require(isAdmin(msg.sender), "Accessible: Caller is not an admin");
        _;
    }

    /// @dev add admin
    /// @param account  address to add
    function addAdmin(address account) public virtual onlyOwner {
        grantRole(ADMIN_ROLE, account);
    }

    /// @dev remove admin
    /// @param account  address to remove
    function removeAdmin(address account) public virtual onlyOwner {
        renounceRole(ADMIN_ROLE, account);
    }

    /// @dev transfer admin
    /// @param newAdmin new admin address
    function transferAdmin(address newAdmin) external virtual onlyOwner {
        require(newAdmin != address(0), "Accessible: zero address");
        require(msg.sender != newAdmin, "Accessible: same admin");

        grantRole(ADMIN_ROLE, newAdmin);
        renounceRole(ADMIN_ROLE, msg.sender);
    }

    /// @dev whether admin
    /// @param account  address to check
    function isAdmin(address account) public view virtual returns (bool) {
        return hasRole(ADMIN_ROLE, account);
    }
}

File 5 of 13 : PublicSaleStorage.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.7.6;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../interfaces/ILockTOS.sol";

contract PublicSaleStorage  {
    /// @dev flag for pause proxy
    bool public pauseProxy;

    struct UserInfoEx {
        bool join;
        uint tier;
        uint256 payAmount;
        uint256 saleAmount;
    }

    struct UserInfoOpen {
        bool join;
        uint256 depositAmount;
        uint256 payAmount;
        uint256 saleAmount;
    }

    struct UserClaim {
        bool exec;
        uint256 claimAmount;
        uint256 refundAmount;
    }

    uint256 public snapshot = 0;

    uint256 public startAddWhiteTime = 0;
    uint256 public endAddWhiteTime = 0;
    uint256 public startExclusiveTime = 0;
    uint256 public endExclusiveTime = 0;

    uint256 public startDepositTime = 0;        //청약 시작시간
    uint256 public endDepositTime = 0;          //청약 끝시간

    uint256 public startClaimTime = 0;

    uint256 public totalUsers = 0;              //전체 세일 참여자 (라운드1,라운드2 포함, 유니크)
    uint256 public totalRound1Users = 0;         //라운드 1 참여자
    uint256 public totalRound2Users = 0;         //라운드 2 참여자
    uint256 public totalRound2UsersClaim = 0;    //라운드 2 참여자중 claim한사람

    uint256 public totalWhitelists = 0;         //총 화이트리스트 수 (exclusive)

    uint256 public totalExSaleAmount = 0;       //총 exclu 실제 판매토큰 양 (exclusive)
    uint256 public totalExPurchasedAmount = 0;  //총 지불토큰 받은 양 (exclusive)

    uint256 public totalDepositAmount;          //총 청약 한 양 (openSale)

    uint256 public totalExpectSaleAmount;       //예정된 판매토큰 양 (exclusive)
    uint256 public totalExpectOpenSaleAmount;   //예정된 판매 토큰량 (opensale)

    uint256 public saleTokenPrice;  //판매하는 토큰(DOC)
    uint256 public payTokenPrice;   //받는 토큰(TON)

    uint256 public claimInterval; //클레임 간격 (epochtime)
    uint256 public claimPeriod;   //클레임 횟수
    uint256 public claimFirst;    //초기 클레임 percents

    address public getTokenOwner;
    address public wton;

    IERC20 public saleToken;
    IERC20 public getToken;
    ILockTOS public sTOS;

    address[] public depositors;
    address[] public whitelists;

    bool public adminWithdraw; //withdraw 실행여부

    mapping (address => UserInfoEx) public usersEx;
    mapping (address => UserInfoOpen) public usersOpen;
    mapping (address => UserClaim) public usersClaim;

    mapping (uint => uint256) public tiers;         //티어별 가격 설정
    mapping (uint => uint256) public tiersAccount;  //티어별 화이트리스트 참여자 숫자 기록
    mapping (uint => uint256) public tiersExAccount;  //티어별 exclusiveSale 참여자 숫자 기록
    mapping (uint => uint256) public tiersPercents;  //티어별 퍼센트 기록
}

File 6 of 13 : ProxyBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;

import {Address} from "@openzeppelin/contracts/utils/Address.sol";

abstract contract ProxyBase {
    // bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1))
    bytes32 internal constant IMPLEMENTATION_SLOT =
        0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /// @dev Sets the implementation address of the proxy.
    /// @param newImplementation Address of the new implementation.
    function _setImplementation(address newImplementation) internal {
        require(
            Address.isContract(newImplementation),
            "ProxyBase: Cannot set a proxy implementation to a non-contract address"
        );

        bytes32 slot = IMPLEMENTATION_SLOT;

        assembly {
            sstore(slot, newImplementation)
        }
    }

    function _implementation() internal view returns (address impl) {
        bytes32 slot = IMPLEMENTATION_SLOT;
        assembly {
            impl := sload(slot)
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

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

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

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

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

File 8 of 13 : AccessRoleCommon.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;

contract AccessRoleCommon {
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER");
    bytes32 public constant BURNER_ROLE = keccak256("BURNER");
}

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

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 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

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 12 of 13 : ILockTOS.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.6;
pragma abicoder v2;

import "../libraries/LibLockTOS.sol";


interface ILockTOS {
    
    /// @dev Returns addresses of all holders of LockTOS
    function allHolders() external returns (address[] memory);

    /// @dev Returns addresses of active holders of LockTOS
    function activeHolders() external returns (address[] memory);

    /// @dev Returns all withdrawable locks
    function withdrawableLocksOf(address user) external view returns (uint256[] memory);

    /// @dev Returns all locks of `_addr`
    function locksOf(address _addr) external view returns (uint256[] memory);

    /// @dev Returns all locks of `_addr`
    function activeLocksOf(address _addr) external view returns (uint256[] memory);

    /// @dev Total locked amount of `_addr`
    function totalLockedAmountOf(address _addr) external view returns (uint256);

    /// @dev     jhswuqhdiuwjhdoiehdoijijf   bhabcgfzvg tqafstqfzys amount of `_addr`
    function withdrawableAmountOf(address _addr) external view returns (uint256);

    /// @dev Returns all locks of `_addr`
    function locksInfo(uint256 _lockId)
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        );

    /// @dev Returns all history of `_addr`
    function pointHistoryOf(uint256 _lockId)
        external
        view
        returns (LibLockTOS.Point[] memory);

    /// @dev Total vote weight
    function totalSupply() external view returns (uint256);

    /// @dev Total vote weight at `_timestamp`
    function totalSupplyAt(uint256 _timestamp) external view returns (uint256);

    /// @dev Vote weight of lock at `_timestamp`
    function balanceOfLockAt(uint256 _lockId, uint256 _timestamp)
        external
        view
        returns (uint256);

    /// @dev Vote weight of lock
    function balanceOfLock(uint256 _lockId) external view returns (uint256);

    /// @dev Vote weight of a user at `_timestamp`
    function balanceOfAt(address _addr, uint256 _timestamp)
        external
        view
        returns (uint256 balance);

    /// @dev Vote weight of a iser
    function balanceOf(address _addr) external view returns (uint256 balance);

    /// @dev Increase amount
    function increaseAmount(uint256 _lockId, uint256 _value) external;

    /// @dev Deposits value for '_addr'
    function depositFor(
        address _addr,
        uint256 _lockId,
        uint256 _value
    ) external;

    /// @dev Create lock using permit
    function createLockWithPermit(
        uint256 _value,
        uint256 _unlockTime,
        uint256 _deadline,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) external returns (uint256 lockId);

    /// @dev Create lock
    function createLock(uint256 _value, uint256 _unlockTime)
        external
        returns (uint256 lockId);

    /// @dev Increase
    function increaseUnlockTime(uint256 _lockId, uint256 unlockTime) external;

    /// @dev Withdraw all TOS
    function withdrawAll() external;

    /// @dev Withdraw TOS
    function withdraw(uint256 _lockId) external;
    
    /// @dev needCheckpoint
    function needCheckpoint() external view returns (bool need);

    /// @dev Global checkpoint
    function globalCheckpoint() external;

    /// @dev set MaxTime
    function setMaxTime(uint256 _maxTime) external;
}

File 13 of 13 : LibLockTOS.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.6;

library LibLockTOS {
    struct Point {
        int256 bias;
        int256 slope;
        uint256 timestamp;
    }

    struct LockedBalance {
        uint256 start;
        uint256 end;
        uint256 amount;
        bool withdrawn;
    }

    struct SlopeChange {
        int256 bias;
        int256 slope;
        uint256 changeTime;
    }

    struct LockedBalanceInfo {
        uint256 id;
        uint256 start;
        uint256 end;
        uint256 amount;
        uint256 balance;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_impl","type":"address"},{"internalType":"address","name":"_admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adminWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFirst","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"depositors","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endAddWhiteTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endDepositTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endExclusiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_saleTokenAddress","type":"address"},{"internalType":"address","name":"_getTokenAddress","type":"address"},{"internalType":"address","name":"_getTokenOwner","type":"address"},{"internalType":"address","name":"_sTOS","type":"address"},{"internalType":"address","name":"_wton","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"payTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sTOS","outputs":[{"internalType":"contract ILockTOS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setProxyPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startAddWhiteTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startDepositTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startExclusiveTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiersAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiersExAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tiersPercents","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDepositAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExPurchasedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExSaleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExpectOpenSaleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalExpectSaleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRound1Users","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRound2Users","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRound2UsersClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWhitelists","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"impl","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersClaim","outputs":[{"internalType":"bool","name":"exec","type":"bool"},{"internalType":"uint256","name":"claimAmount","type":"uint256"},{"internalType":"uint256","name":"refundAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersEx","outputs":[{"internalType":"bool","name":"join","type":"bool"},{"internalType":"uint256","name":"tier","type":"uint256"},{"internalType":"uint256","name":"payAmount","type":"uint256"},{"internalType":"uint256","name":"saleAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"usersOpen","outputs":[{"internalType":"bool","name":"join","type":"bool"},{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"payAmount","type":"uint256"},{"internalType":"uint256","name":"saleAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"whitelists","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wton","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000600155600060025560006003556000600455600060055560006006556000600755600060085560006009556000600a556000600b556000600c556000600d556000600e556000600f553480156200005c57600080fd5b5060405162001daf38038062001daf833981810160405260408110156200008257600080fd5b5080516020909101516001600160a01b038216620000e7576040805162461bcd60e51b815260206004820152601e60248201527f5075626c696353616c6550726f78793a206c6f676963206973207a65726f0000604482015290519081900360640190fd5b620000f28262000130565b6200010d60008051602062001d4983398151915280620001a7565b6200012860008051602062001d4983398151915282620001f9565b505062000315565b62000146816200020960201b620015391760201c565b620001835760405162461bcd60e51b815260040180806020018281038252604681526020018062001d696046913960600191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b600082815260276020526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526027602052604090912060020155565b6200020582826200020f565b5050565b3b151590565b6000828152602760209081526040909120620002369183906200153f6200028a821b17901c565b15620002055762000246620002aa565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002a1836001600160a01b038416620002ae565b90505b92915050565b3390565b6000620002bc8383620002fd565b620002f457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002a4565b506000620002a4565b60009081526001919091016020526040902054151590565b611a2480620003256000396000f3fe6080604052600436106103855760003560e01c80638d62d949116101d1578063bff1f9e111610102578063e016bac4116100a0578063eb8445f81161006f578063eb8445f814610b20578063f18d20be14610b35578063fe4d5add14610b4a578063ff6dac7614610b74576103d7565b8063e016bac414610ab7578063e4b2fb7914610acc578063e985e36714610af6578063eaff056d14610b0b576103d7565b8063ca15c873116100dc578063ca15c87314610a0c578063cae9ce1b14610a36578063d539139314610a69578063d547741f14610a7e576103d7565b8063bff1f9e1146109cd578063c3e57635146109e2578063c5408d50146109f7576103d7565b8063a055e6251161016f578063a55abb1711610149578063a55abb1714610979578063b7182b951461098e578063b960ca04146109a3578063bfc630b1146109b8576103d7565b8063a055e6251461093a578063a1b89b701461094f578063a217fddf14610964576103d7565b806391d14854116101ab57806391d14854146108c257806394f641d5146108fb57806395252692146109105780639711715a14610925576103d7565b80638d62d949146108535780638f68711a146108685780639010d07c14610892576103d7565b80633ef541b5116102b657806367b399a51161025457806375b238fc1161022357806375b238fc146107e85780637cb00d25146107fd5780637dc2cd981461082957806381a9f6d71461083e576103d7565b806367b399a51461072e5780636904800514610758578063704802751461078257806375829def146107b5576103d7565b80635c60da1b116102905780635c60da1b146106da57806361a33427146106ef57806363a8fd891461070457806366ce727114610719576103d7565b80633ef541b51461065557806341c0cb771461066a57806351d28a7e146106c5576103d7565b8063248a9ca3116103235780632f2ff15d116102fd5780632f2ff15d1461059b57806336568abe146105d45780633659cfe61461060d57806337bf071914610640576103d7565b8063248a9ca31461051557806324d7806c1461053f578063282c51f314610586576103d7565b80631785f53c1161035f5780631785f53c146104875780631bfc751e146104ba57806321df0da7146104cf578063226bf1a414610500576103d7565b8063039af9eb146103e15780630b433a121461041d5780631459457a14610432576103d7565b366103d7576040805162461bcd60e51b815260206004820152601460248201527f63616e6e6f742072656365697665204574686572000000000000000000000000604482015290519081900360640190fd5b6103df610bc7565b005b3480156103ed57600080fd5b5061040b6004803603602081101561040457600080fd5b5035610c4d565b60408051918252519081900360200190f35b34801561042957600080fd5b5061040b610c5f565b34801561043e57600080fd5b506103df600480360360a081101561045557600080fd5b506001600160a01b03813581169160208101358216916040820135811691606081013582169160809091013516610c65565b34801561049357600080fd5b506103df600480360360208110156104aa57600080fd5b50356001600160a01b0316610d5f565b3480156104c657600080fd5b5061040b610dd0565b3480156104db57600080fd5b506104e4610dd6565b604080516001600160a01b039092168252519081900360200190f35b34801561050c57600080fd5b5061040b610de5565b34801561052157600080fd5b5061040b6004803603602081101561053857600080fd5b5035610deb565b34801561054b57600080fd5b506105726004803603602081101561056257600080fd5b50356001600160a01b0316610e00565b604080519115158252519081900360200190f35b34801561059257600080fd5b5061040b610e32565b3480156105a757600080fd5b506103df600480360360408110156105be57600080fd5b50803590602001356001600160a01b0316610e56565b3480156105e057600080fd5b506103df600480360360408110156105f757600080fd5b50803590602001356001600160a01b0316610ec2565b34801561061957600080fd5b506103df6004803603602081101561063057600080fd5b50356001600160a01b0316610f23565b34801561064c57600080fd5b506104e4611070565b34801561066157600080fd5b5061040b61107f565b34801561067657600080fd5b5061069d6004803603602081101561068d57600080fd5b50356001600160a01b0316611085565b6040805194151585526020850193909352838301919091526060830152519081900360800190f35b3480156106d157600080fd5b5061040b6110b0565b3480156106e657600080fd5b506104e46110b6565b3480156106fb57600080fd5b5061040b6110c5565b34801561071057600080fd5b506105726110cb565b34801561072557600080fd5b5061040b6110d4565b34801561073a57600080fd5b5061040b6004803603602081101561075157600080fd5b50356110da565b34801561076457600080fd5b5061040b6004803603602081101561077b57600080fd5b50356110ec565b34801561078e57600080fd5b506103df600480360360208110156107a557600080fd5b50356001600160a01b03166110fe565b3480156107c157600080fd5b506103df600480360360208110156107d857600080fd5b50356001600160a01b031661116c565b3480156107f457600080fd5b5061040b6112bd565b34801561080957600080fd5b506103df6004803603602081101561082057600080fd5b503515156112e1565b34801561083557600080fd5b5061040b611338565b34801561084a57600080fd5b5061040b61133e565b34801561085f57600080fd5b506104e4611344565b34801561087457600080fd5b5061040b6004803603602081101561088b57600080fd5b5035611353565b34801561089e57600080fd5b506104e4600480360360408110156108b557600080fd5b5080359060200135611365565b3480156108ce57600080fd5b50610572600480360360408110156108e557600080fd5b50803590602001356001600160a01b0316611384565b34801561090757600080fd5b5061040b61139c565b34801561091c57600080fd5b5061040b6113a2565b34801561093157600080fd5b5061040b6113a8565b34801561094657600080fd5b5061040b6113ae565b34801561095b57600080fd5b5061040b6113b4565b34801561097057600080fd5b5061040b6113ba565b34801561098557600080fd5b5061040b6113bf565b34801561099a57600080fd5b506104e46113c5565b3480156109af57600080fd5b5061040b6113d4565b3480156109c457600080fd5b5061040b6113da565b3480156109d957600080fd5b5061040b6113e0565b3480156109ee57600080fd5b5061040b6113e6565b348015610a0357600080fd5b5061040b6113ec565b348015610a1857600080fd5b5061040b60048036036020811015610a2f57600080fd5b50356113f2565b348015610a4257600080fd5b5061069d60048036036020811015610a5957600080fd5b50356001600160a01b0316611409565b348015610a7557600080fd5b5061040b611433565b348015610a8a57600080fd5b506103df60048036036040811015610aa157600080fd5b50803590602001356001600160a01b0316611457565b348015610ac357600080fd5b5061040b6114b0565b348015610ad857600080fd5b506104e460048036036020811015610aef57600080fd5b50356114b6565b348015610b0257600080fd5b506104e46114e0565b348015610b1757600080fd5b5061040b6114ef565b348015610b2c57600080fd5b5061040b6114f5565b348015610b4157600080fd5b506105726114fb565b348015610b5657600080fd5b506104e460048036036020811015610b6d57600080fd5b5035611504565b348015610b8057600080fd5b50610ba760048036036020811015610b9757600080fd5b50356001600160a01b0316611514565b604080519315158452602084019290925282820152519081900360600190f35b6000610bd1611554565b90506001600160a01b03811615801590610bee575060005460ff16155b610c295760405162461bcd60e51b81526004018080602001828103825260278152602001806119996027913960400191505060405180910390fd5b3660008037600080366000845af43d6000803e808015610c48573d6000f35b3d6000fd5b60236020526000908152604090205481565b60155481565b610c6e33610e00565b610ca95760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b60015415610ce85760405162461bcd60e51b81526004018080602001828103825260278152602001806118fc6027913960400191505060405180910390fd5b601a80547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b0397881617909155601b805482169587169590951790945560188054851693861693909317909255601c80548416918516919091179055601980549092169216919091179055565b610d6833610e00565b610da35760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b610dcd7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610ec2565b50565b60085481565b601b546001600160a01b031681565b60145481565b60009081526027602052604090206002015490565b6000610e2c7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4283611384565b92915050565b7f9667e80708b6eeeb0053fa0cca44e028ff548e2a9f029edfeac87c118b08b7c881565b600082815260276020526040902060020154610e7990610e74611579565b611384565b610eb45760405162461bcd60e51b815260040180806020018281038252602f8152602001806118ab602f913960400191505060405180910390fd5b610ebe828261157d565b5050565b610eca611579565b6001600160a01b0316816001600160a01b031614610f195760405162461bcd60e51b815260040180806020018281038252602f8152602001806119c0602f913960400191505060405180910390fd5b610ebe82826115e6565b610f2c33610e00565b610f675760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b6001600160a01b038116610fc2576040805162461bcd60e51b815260206004820152601e60248201527f5075626c696353616c6550726f78793a20696e707574206973207a65726f0000604482015290519081900360640190fd5b806001600160a01b0316610fd4611554565b6001600160a01b03161415611030576040805162461bcd60e51b815260206004820152601560248201527f5075626c696353616c6550726f78793a2073616d650000000000000000000000604482015290519081900360640190fd5b6110398161164f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b601c546001600160a01b031681565b60075481565b602160205260009081526040902080546001820154600283015460039093015460ff90921692909184565b60135481565b60006110c0611554565b905090565b600c5481565b60005460ff1681565b60055481565b60246020526000908152604090205481565b60266020526000908152604090205481565b61110733610e00565b6111425760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b610dcd7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610e56565b61117533610e00565b6111b05760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b6001600160a01b03811661120b576040805162461bcd60e51b815260206004820152601860248201527f41636365737369626c653a207a65726f20616464726573730000000000000000604482015290519081900360640190fd5b336001600160a01b0382161415611269576040805162461bcd60e51b815260206004820152601660248201527f41636365737369626c653a2073616d652061646d696e00000000000000000000604482015290519081900360640190fd5b6112937fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610e56565b610dcd7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610ec2565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6112ea33610e00565b6113255760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b6000805460ff1916911515919091179055565b60165481565b60065481565b6019546001600160a01b031681565b60256020526000908152604090205481565b600082815260276020526040812061137d90836116b7565b9392505050565b600082815260276020526040812061137d90836116c3565b600b5481565b60025481565b60015481565b600a5481565b600d5481565b600081565b600f5481565b6018546001600160a01b031681565b60115481565b60125481565b60095481565b60035481565b60105481565b6000818152602760205260408120610e2c906116d8565b6020805260009081526040902080546001820154600283015460039093015460ff90921692909184565b7ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc981565b60008281526027602052604090206002015461147590610e74611579565b610f195760405162461bcd60e51b81526004018080602001828103825260308152602001806119236030913960400191505060405180910390fd5b60045481565b601d81815481106114c657600080fd5b6000918252602090912001546001600160a01b0316905081565b601a546001600160a01b031681565b60175481565b600e5481565b601f5460ff1681565b601e81815481106114c657600080fd5b60226020526000908152604090208054600182015460029092015460ff909116919083565b3b151590565b600061137d836001600160a01b0384166116e3565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3390565b6000828152602760205260409020611595908261153f565b15610ebe576115a2611579565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526027602052604090206115fe908261172d565b15610ebe5761160b611579565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b61165881611539565b6116935760405162461bcd60e51b81526004018080602001828103825260468152602001806119536046913960600191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b600061137d8383611742565b600061137d836001600160a01b0384166117a6565b6000610e2c826117be565b60006116ef83836117a6565b61172557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e2c565b506000610e2c565b600061137d836001600160a01b0384166117c2565b815460009082106117845760405162461bcd60e51b81526004018080602001828103825260228152602001806118896022913960400191505060405180910390fd5b82600001828154811061179357fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000818152600183016020526040812054801561187e57835460001980830191908101906000908790839081106117f557fe5b906000526020600020015490508087600001848154811061181257fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061184257fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610e2c565b6000915050610e2c56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7441636365737369626c653a2043616c6c6572206973206e6f7420616e2061646d696e706f737369626c6520746f2073657474696e672074686520736e617073686f74206265666f7265416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6550726f7879426173653a2043616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e747261637420616464726573735075626c696353616c6550726f78793a20696d706c204f522070726f78792069732066616c7365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220ad7d18f05d06cec7fb66c23dd1fb14a598dc49495dda45bf9820fff6f539520864736f6c63430007060033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4250726f7879426173653a2043616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000000000000000000f4b6ab8280f1c53e2059dc9e5b62482c86128ac9000000000000000000000000f0b595d10a92a5a9bc3ffea7e79f5d266b6035ea

Deployed Bytecode

0x6080604052600436106103855760003560e01c80638d62d949116101d1578063bff1f9e111610102578063e016bac4116100a0578063eb8445f81161006f578063eb8445f814610b20578063f18d20be14610b35578063fe4d5add14610b4a578063ff6dac7614610b74576103d7565b8063e016bac414610ab7578063e4b2fb7914610acc578063e985e36714610af6578063eaff056d14610b0b576103d7565b8063ca15c873116100dc578063ca15c87314610a0c578063cae9ce1b14610a36578063d539139314610a69578063d547741f14610a7e576103d7565b8063bff1f9e1146109cd578063c3e57635146109e2578063c5408d50146109f7576103d7565b8063a055e6251161016f578063a55abb1711610149578063a55abb1714610979578063b7182b951461098e578063b960ca04146109a3578063bfc630b1146109b8576103d7565b8063a055e6251461093a578063a1b89b701461094f578063a217fddf14610964576103d7565b806391d14854116101ab57806391d14854146108c257806394f641d5146108fb57806395252692146109105780639711715a14610925576103d7565b80638d62d949146108535780638f68711a146108685780639010d07c14610892576103d7565b80633ef541b5116102b657806367b399a51161025457806375b238fc1161022357806375b238fc146107e85780637cb00d25146107fd5780637dc2cd981461082957806381a9f6d71461083e576103d7565b806367b399a51461072e5780636904800514610758578063704802751461078257806375829def146107b5576103d7565b80635c60da1b116102905780635c60da1b146106da57806361a33427146106ef57806363a8fd891461070457806366ce727114610719576103d7565b80633ef541b51461065557806341c0cb771461066a57806351d28a7e146106c5576103d7565b8063248a9ca3116103235780632f2ff15d116102fd5780632f2ff15d1461059b57806336568abe146105d45780633659cfe61461060d57806337bf071914610640576103d7565b8063248a9ca31461051557806324d7806c1461053f578063282c51f314610586576103d7565b80631785f53c1161035f5780631785f53c146104875780631bfc751e146104ba57806321df0da7146104cf578063226bf1a414610500576103d7565b8063039af9eb146103e15780630b433a121461041d5780631459457a14610432576103d7565b366103d7576040805162461bcd60e51b815260206004820152601460248201527f63616e6e6f742072656365697665204574686572000000000000000000000000604482015290519081900360640190fd5b6103df610bc7565b005b3480156103ed57600080fd5b5061040b6004803603602081101561040457600080fd5b5035610c4d565b60408051918252519081900360200190f35b34801561042957600080fd5b5061040b610c5f565b34801561043e57600080fd5b506103df600480360360a081101561045557600080fd5b506001600160a01b03813581169160208101358216916040820135811691606081013582169160809091013516610c65565b34801561049357600080fd5b506103df600480360360208110156104aa57600080fd5b50356001600160a01b0316610d5f565b3480156104c657600080fd5b5061040b610dd0565b3480156104db57600080fd5b506104e4610dd6565b604080516001600160a01b039092168252519081900360200190f35b34801561050c57600080fd5b5061040b610de5565b34801561052157600080fd5b5061040b6004803603602081101561053857600080fd5b5035610deb565b34801561054b57600080fd5b506105726004803603602081101561056257600080fd5b50356001600160a01b0316610e00565b604080519115158252519081900360200190f35b34801561059257600080fd5b5061040b610e32565b3480156105a757600080fd5b506103df600480360360408110156105be57600080fd5b50803590602001356001600160a01b0316610e56565b3480156105e057600080fd5b506103df600480360360408110156105f757600080fd5b50803590602001356001600160a01b0316610ec2565b34801561061957600080fd5b506103df6004803603602081101561063057600080fd5b50356001600160a01b0316610f23565b34801561064c57600080fd5b506104e4611070565b34801561066157600080fd5b5061040b61107f565b34801561067657600080fd5b5061069d6004803603602081101561068d57600080fd5b50356001600160a01b0316611085565b6040805194151585526020850193909352838301919091526060830152519081900360800190f35b3480156106d157600080fd5b5061040b6110b0565b3480156106e657600080fd5b506104e46110b6565b3480156106fb57600080fd5b5061040b6110c5565b34801561071057600080fd5b506105726110cb565b34801561072557600080fd5b5061040b6110d4565b34801561073a57600080fd5b5061040b6004803603602081101561075157600080fd5b50356110da565b34801561076457600080fd5b5061040b6004803603602081101561077b57600080fd5b50356110ec565b34801561078e57600080fd5b506103df600480360360208110156107a557600080fd5b50356001600160a01b03166110fe565b3480156107c157600080fd5b506103df600480360360208110156107d857600080fd5b50356001600160a01b031661116c565b3480156107f457600080fd5b5061040b6112bd565b34801561080957600080fd5b506103df6004803603602081101561082057600080fd5b503515156112e1565b34801561083557600080fd5b5061040b611338565b34801561084a57600080fd5b5061040b61133e565b34801561085f57600080fd5b506104e4611344565b34801561087457600080fd5b5061040b6004803603602081101561088b57600080fd5b5035611353565b34801561089e57600080fd5b506104e4600480360360408110156108b557600080fd5b5080359060200135611365565b3480156108ce57600080fd5b50610572600480360360408110156108e557600080fd5b50803590602001356001600160a01b0316611384565b34801561090757600080fd5b5061040b61139c565b34801561091c57600080fd5b5061040b6113a2565b34801561093157600080fd5b5061040b6113a8565b34801561094657600080fd5b5061040b6113ae565b34801561095b57600080fd5b5061040b6113b4565b34801561097057600080fd5b5061040b6113ba565b34801561098557600080fd5b5061040b6113bf565b34801561099a57600080fd5b506104e46113c5565b3480156109af57600080fd5b5061040b6113d4565b3480156109c457600080fd5b5061040b6113da565b3480156109d957600080fd5b5061040b6113e0565b3480156109ee57600080fd5b5061040b6113e6565b348015610a0357600080fd5b5061040b6113ec565b348015610a1857600080fd5b5061040b60048036036020811015610a2f57600080fd5b50356113f2565b348015610a4257600080fd5b5061069d60048036036020811015610a5957600080fd5b50356001600160a01b0316611409565b348015610a7557600080fd5b5061040b611433565b348015610a8a57600080fd5b506103df60048036036040811015610aa157600080fd5b50803590602001356001600160a01b0316611457565b348015610ac357600080fd5b5061040b6114b0565b348015610ad857600080fd5b506104e460048036036020811015610aef57600080fd5b50356114b6565b348015610b0257600080fd5b506104e46114e0565b348015610b1757600080fd5b5061040b6114ef565b348015610b2c57600080fd5b5061040b6114f5565b348015610b4157600080fd5b506105726114fb565b348015610b5657600080fd5b506104e460048036036020811015610b6d57600080fd5b5035611504565b348015610b8057600080fd5b50610ba760048036036020811015610b9757600080fd5b50356001600160a01b0316611514565b604080519315158452602084019290925282820152519081900360600190f35b6000610bd1611554565b90506001600160a01b03811615801590610bee575060005460ff16155b610c295760405162461bcd60e51b81526004018080602001828103825260278152602001806119996027913960400191505060405180910390fd5b3660008037600080366000845af43d6000803e808015610c48573d6000f35b3d6000fd5b60236020526000908152604090205481565b60155481565b610c6e33610e00565b610ca95760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b60015415610ce85760405162461bcd60e51b81526004018080602001828103825260278152602001806118fc6027913960400191505060405180910390fd5b601a80547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b0397881617909155601b805482169587169590951790945560188054851693861693909317909255601c80548416918516919091179055601980549092169216919091179055565b610d6833610e00565b610da35760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b610dcd7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610ec2565b50565b60085481565b601b546001600160a01b031681565b60145481565b60009081526027602052604090206002015490565b6000610e2c7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4283611384565b92915050565b7f9667e80708b6eeeb0053fa0cca44e028ff548e2a9f029edfeac87c118b08b7c881565b600082815260276020526040902060020154610e7990610e74611579565b611384565b610eb45760405162461bcd60e51b815260040180806020018281038252602f8152602001806118ab602f913960400191505060405180910390fd5b610ebe828261157d565b5050565b610eca611579565b6001600160a01b0316816001600160a01b031614610f195760405162461bcd60e51b815260040180806020018281038252602f8152602001806119c0602f913960400191505060405180910390fd5b610ebe82826115e6565b610f2c33610e00565b610f675760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b6001600160a01b038116610fc2576040805162461bcd60e51b815260206004820152601e60248201527f5075626c696353616c6550726f78793a20696e707574206973207a65726f0000604482015290519081900360640190fd5b806001600160a01b0316610fd4611554565b6001600160a01b03161415611030576040805162461bcd60e51b815260206004820152601560248201527f5075626c696353616c6550726f78793a2073616d650000000000000000000000604482015290519081900360640190fd5b6110398161164f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b601c546001600160a01b031681565b60075481565b602160205260009081526040902080546001820154600283015460039093015460ff90921692909184565b60135481565b60006110c0611554565b905090565b600c5481565b60005460ff1681565b60055481565b60246020526000908152604090205481565b60266020526000908152604090205481565b61110733610e00565b6111425760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b610dcd7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610e56565b61117533610e00565b6111b05760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b6001600160a01b03811661120b576040805162461bcd60e51b815260206004820152601860248201527f41636365737369626c653a207a65726f20616464726573730000000000000000604482015290519081900360640190fd5b336001600160a01b0382161415611269576040805162461bcd60e51b815260206004820152601660248201527f41636365737369626c653a2073616d652061646d696e00000000000000000000604482015290519081900360640190fd5b6112937fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610e56565b610dcd7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610ec2565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6112ea33610e00565b6113255760405162461bcd60e51b81526004018080602001828103825260228152602001806118da6022913960400191505060405180910390fd5b6000805460ff1916911515919091179055565b60165481565b60065481565b6019546001600160a01b031681565b60256020526000908152604090205481565b600082815260276020526040812061137d90836116b7565b9392505050565b600082815260276020526040812061137d90836116c3565b600b5481565b60025481565b60015481565b600a5481565b600d5481565b600081565b600f5481565b6018546001600160a01b031681565b60115481565b60125481565b60095481565b60035481565b60105481565b6000818152602760205260408120610e2c906116d8565b6020805260009081526040902080546001820154600283015460039093015460ff90921692909184565b7ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc981565b60008281526027602052604090206002015461147590610e74611579565b610f195760405162461bcd60e51b81526004018080602001828103825260308152602001806119236030913960400191505060405180910390fd5b60045481565b601d81815481106114c657600080fd5b6000918252602090912001546001600160a01b0316905081565b601a546001600160a01b031681565b60175481565b600e5481565b601f5460ff1681565b601e81815481106114c657600080fd5b60226020526000908152604090208054600182015460029092015460ff909116919083565b3b151590565b600061137d836001600160a01b0384166116e3565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3390565b6000828152602760205260409020611595908261153f565b15610ebe576115a2611579565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526027602052604090206115fe908261172d565b15610ebe5761160b611579565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b61165881611539565b6116935760405162461bcd60e51b81526004018080602001828103825260468152602001806119536046913960600191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b600061137d8383611742565b600061137d836001600160a01b0384166117a6565b6000610e2c826117be565b60006116ef83836117a6565b61172557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610e2c565b506000610e2c565b600061137d836001600160a01b0384166117c2565b815460009082106117845760405162461bcd60e51b81526004018080602001828103825260228152602001806118896022913960400191505060405180910390fd5b82600001828154811061179357fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000818152600183016020526040812054801561187e57835460001980830191908101906000908790839081106117f557fe5b906000526020600020015490508087600001848154811061181257fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061184257fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610e2c565b6000915050610e2c56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7441636365737369626c653a2043616c6c6572206973206e6f7420616e2061646d696e706f737369626c6520746f2073657474696e672074686520736e617073686f74206265666f7265416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6550726f7879426173653a2043616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e747261637420616464726573735075626c696353616c6550726f78793a20696d706c204f522070726f78792069732066616c7365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220ad7d18f05d06cec7fb66c23dd1fb14a598dc49495dda45bf9820fff6f539520864736f6c63430007060033

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

000000000000000000000000f4b6ab8280f1c53e2059dc9e5b62482c86128ac9000000000000000000000000f0b595d10a92a5a9bc3ffea7e79f5d266b6035ea

-----Decoded View---------------
Arg [0] : _impl (address): 0xF4B6ab8280f1c53e2059Dc9E5b62482c86128AC9
Arg [1] : _admin (address): 0xf0B595d10a92A5a9BC3fFeA7e79f5d266b6035Ea

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4b6ab8280f1c53e2059dc9e5b62482c86128ac9
Arg [1] : 000000000000000000000000f0b595d10a92a5a9bc3ffea7e79f5d266b6035ea


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.