ETH Price: $3,389.81 (+4.89%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim193948872024-03-09 3:34:11321 days ago1709955251IN
0xBef737D7...0FdAE71c6
0 ETH0.0042500541.4862513
Claim174969082023-06-17 3:39:35587 days ago1686973175IN
0xBef737D7...0FdAE71c6
0 ETH0.0015185919.09129708
Claim169218492023-03-27 23:01:11668 days ago1679958071IN
0xBef737D7...0FdAE71c6
0 ETH0.0019005923.89369246
Claim164536522023-01-21 7:22:23734 days ago1674285743IN
0xBef737D7...0FdAE71c6
0 ETH0.0036702716.58175172
Claim161425692022-12-08 21:06:47777 days ago1670533607IN
0xBef737D7...0FdAE71c6
0 ETH0.0014402214.90233763
Claim159771602022-11-15 18:16:11800 days ago1668536171IN
0xBef737D7...0FdAE71c6
0 ETH0.0017120621.52352237
Claim157734782022-10-18 7:23:47829 days ago1666077827IN
0xBef737D7...0FdAE71c6
0 ETH0.0014877213.86287707
Claim153745652022-08-20 0:52:48888 days ago1660956768IN
0xBef737D7...0FdAE71c6
0 ETH0.0012872113.31913987
Claim152540232022-08-01 2:51:09907 days ago1659322269IN
0xBef737D7...0FdAE71c6
0 ETH0.000987319.20000526
Claim152286232022-07-28 3:41:36911 days ago1658979696IN
0xBef737D7...0FdAE71c6
0 ETH0.0011784810.98133267
Claim152102502022-07-25 7:11:22914 days ago1658733082IN
0xBef737D7...0FdAE71c6
0 ETH0.000275595.99360691
Claim152102502022-07-25 7:11:22914 days ago1658733082IN
0xBef737D7...0FdAE71c6
0 ETH0.000476755.99360691
Claim151648782022-07-18 5:55:59921 days ago1658123759IN
0xBef737D7...0FdAE71c6
0 ETH0.0031115828.99437939
Claim150660942022-07-02 23:44:53936 days ago1656805493IN
0xBef737D7...0FdAE71c6
0 ETH0.0024700324.11086747
Claim150142082022-06-23 18:11:26945 days ago1656007886IN
0xBef737D7...0FdAE71c6
0 ETH0.01861907278.40775101
Claim150141952022-06-23 18:06:42945 days ago1656007602IN
0xBef737D7...0FdAE71c6
0 ETH0.02241608218.81096481
Claim149940162022-06-20 2:00:43949 days ago1655690443IN
0xBef737D7...0FdAE71c6
0 ETH0.0022233520.71768515
Claim149829872022-06-18 4:12:00951 days ago1655525520IN
0xBef737D7...0FdAE71c6
0 ETH0.0020163220.86337961
Claim149828872022-06-18 3:43:01951 days ago1655523781IN
0xBef737D7...0FdAE71c6
0 ETH0.0021638622.39004296
Claim149780822022-06-17 8:00:40951 days ago1655452840IN
0xBef737D7...0FdAE71c6
0 ETH0.002936630.38579752
Claim149773372022-06-17 4:59:45952 days ago1655441985IN
0xBef737D7...0FdAE71c6
0 ETH0.0019087619.7504276
Claim149773292022-06-17 4:57:38952 days ago1655441858IN
0xBef737D7...0FdAE71c6
0 ETH0.0021265422.00388991
Claim149257072022-06-08 8:25:13960 days ago1654676713IN
0xBef737D7...0FdAE71c6
0 ETH0.0029114736.60202585
Claim148954372022-06-03 5:54:40966 days ago1654235680IN
0xBef737D7...0FdAE71c6
0 ETH0.011366295.07891435
Claim148409682022-05-25 9:00:46974 days ago1653469246IN
0xBef737D7...0FdAE71c6
0 ETH0.0018517217.25471751
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
    ) external override onlyOwner {
        require(snapshot == 0, "possible to setting the snapshot before");
        saleToken = IERC20(_saleTokenAddress);
        getToken = IERC20(_getTokenAddress);
        getTokenOwner = _getTokenOwner;
        sTOS = ILockTOS(_sTOS);
    }
}

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
    ) 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;

    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"}],"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"},{"stateMutability":"payable","type":"receive"}]

60806040526000600155600060025560006003556000600455600060055560006006556000600755600060085560006009556000600a556000600b556000600c556000600d556000600e556000600f553480156200005c57600080fd5b5060405162001d6738038062001d67833981810160405260408110156200008257600080fd5b5080516020909101516001600160a01b038216620000e7576040805162461bcd60e51b815260206004820152601e60248201527f5075626c696353616c6550726f78793a206c6f676963206973207a65726f0000604482015290519081900360640190fd5b620000f28262000130565b6200010d60008051602062001d0183398151915280620001a7565b6200012860008051602062001d0183398151915282620001f9565b505062000315565b62000146816200020960201b620014f11760201c565b620001835760405162461bcd60e51b815260040180806020018281038252604681526020018062001d216046913960600191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b600082815260266020526040808220600201549051839285917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a460009182526026602052604090912060020155565b6200020582826200020f565b5050565b3b151590565b600082815260266020908152604090912062000236918390620014f76200028a821b17901c565b15620002055762000246620002aa565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620002a1836001600160a01b038416620002ae565b90505b92915050565b3390565b6000620002bc8383620002fd565b620002f457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620002a4565b506000620002a4565b60009081526001919091016020526040902054151590565b6119dc80620003256000396000f3fe60806040526004361061037a5760003560e01c80638f68711a116101d1578063c3e5763511610102578063e4b2fb79116100a0578063f18d20be1161006f578063f18d20be14610ac0578063f8c8765e14610ad5578063fe4d5add14610b20578063ff6dac7614610b4a576103cc565b8063e4b2fb7914610a57578063e985e36714610a81578063eaff056d14610a96578063eb8445f814610aab576103cc565b8063cae9ce1b116100dc578063cae9ce1b146109c1578063d5391393146109f4578063d547741f14610a09578063e016bac414610a42576103cc565b8063c3e576351461096d578063c5408d5014610982578063ca15c87314610997576103cc565b8063a1b89b701161016f578063b7182b9511610149578063b7182b9514610919578063b960ca041461092e578063bfc630b114610943578063bff1f9e114610958576103cc565b8063a1b89b70146108da578063a217fddf146108ef578063a55abb1714610904576103cc565b806394f641d5116101ab57806394f641d514610886578063952526921461089b5780639711715a146108b0578063a055e625146108c5576103cc565b80638f68711a146107f35780639010d07c1461081d57806391d148541461084d576103cc565b806341c0cb77116102ab578063690480051161024957806375b238fc1161022357806375b238fc146107885780637cb00d251461079d5780637dc2cd98146107c957806381a9f6d7146107de576103cc565b806369048005146106f8578063704802751461072257806375829def14610755576103cc565b806361a334271161028557806361a334271461068f57806363a8fd89146106a457806366ce7271146106b957806367b399a5146106ce576103cc565b806341c0cb771461060a57806351d28a7e146106655780635c60da1b1461067a576103cc565b806324d7806c1161031857806336568abe116102f257806336568abe146105745780633659cfe6146105ad57806337bf0719146105e05780633ef541b5146105f5576103cc565b806324d7806c146104df578063282c51f3146105265780632f2ff15d1461053b576103cc565b80631bfc751e116103545780631bfc751e1461045a57806321df0da71461046f578063226bf1a4146104a0578063248a9ca3146104b5576103cc565b8063039af9eb146103d65780630b433a12146104125780631785f53c14610427576103cc565b366103cc576040805162461bcd60e51b815260206004820152601460248201527f63616e6e6f742072656365697665204574686572000000000000000000000000604482015290519081900360640190fd5b6103d4610b9d565b005b3480156103e257600080fd5b50610400600480360360208110156103f957600080fd5b5035610c23565b60408051918252519081900360200190f35b34801561041e57600080fd5b50610400610c35565b34801561043357600080fd5b506103d46004803603602081101561044a57600080fd5b50356001600160a01b0316610c3b565b34801561046657600080fd5b50610400610cac565b34801561047b57600080fd5b50610484610cb2565b604080516001600160a01b039092168252519081900360200190f35b3480156104ac57600080fd5b50610400610cc1565b3480156104c157600080fd5b50610400600480360360208110156104d857600080fd5b5035610cc7565b3480156104eb57600080fd5b506105126004803603602081101561050257600080fd5b50356001600160a01b0316610cdc565b604080519115158252519081900360200190f35b34801561053257600080fd5b50610400610d0e565b34801561054757600080fd5b506103d46004803603604081101561055e57600080fd5b50803590602001356001600160a01b0316610d32565b34801561058057600080fd5b506103d46004803603604081101561059757600080fd5b50803590602001356001600160a01b0316610d9e565b3480156105b957600080fd5b506103d4600480360360208110156105d057600080fd5b50356001600160a01b0316610dff565b3480156105ec57600080fd5b50610484610f4c565b34801561060157600080fd5b50610400610f5b565b34801561061657600080fd5b5061063d6004803603602081101561062d57600080fd5b50356001600160a01b0316610f61565b6040805194151585526020850193909352838301919091526060830152519081900360800190f35b34801561067157600080fd5b50610400610f8b565b34801561068657600080fd5b50610484610f91565b34801561069b57600080fd5b50610400610fa0565b3480156106b057600080fd5b50610512610fa6565b3480156106c557600080fd5b50610400610faf565b3480156106da57600080fd5b50610400600480360360208110156106f157600080fd5b5035610fb5565b34801561070457600080fd5b506104006004803603602081101561071b57600080fd5b5035610fc7565b34801561072e57600080fd5b506103d46004803603602081101561074557600080fd5b50356001600160a01b0316610fd9565b34801561076157600080fd5b506103d46004803603602081101561077857600080fd5b50356001600160a01b0316611047565b34801561079457600080fd5b50610400611198565b3480156107a957600080fd5b506103d4600480360360208110156107c057600080fd5b503515156111bc565b3480156107d557600080fd5b50610400611213565b3480156107ea57600080fd5b50610400611219565b3480156107ff57600080fd5b506104006004803603602081101561081657600080fd5b503561121f565b34801561082957600080fd5b506104846004803603604081101561084057600080fd5b5080359060200135611231565b34801561085957600080fd5b506105126004803603604081101561087057600080fd5b50803590602001356001600160a01b0316611250565b34801561089257600080fd5b50610400611268565b3480156108a757600080fd5b5061040061126e565b3480156108bc57600080fd5b50610400611274565b3480156108d157600080fd5b5061040061127a565b3480156108e657600080fd5b50610400611280565b3480156108fb57600080fd5b50610400611286565b34801561091057600080fd5b5061040061128b565b34801561092557600080fd5b50610484611291565b34801561093a57600080fd5b506104006112a0565b34801561094f57600080fd5b506104006112a6565b34801561096457600080fd5b506104006112ac565b34801561097957600080fd5b506104006112b2565b34801561098e57600080fd5b506104006112b8565b3480156109a357600080fd5b50610400600480360360208110156109ba57600080fd5b50356112be565b3480156109cd57600080fd5b5061063d600480360360208110156109e457600080fd5b50356001600160a01b03166112d5565b348015610a0057600080fd5b50610400611300565b348015610a1557600080fd5b506103d460048036036040811015610a2c57600080fd5b50803590602001356001600160a01b0316611324565b348015610a4e57600080fd5b5061040061137d565b348015610a6357600080fd5b5061048460048036036020811015610a7a57600080fd5b5035611383565b348015610a8d57600080fd5b506104846113ad565b348015610aa257600080fd5b506104006113bc565b348015610ab757600080fd5b506104006113c2565b348015610acc57600080fd5b506105126113c8565b348015610ae157600080fd5b506103d460048036036080811015610af857600080fd5b506001600160a01b0381358116916020810135821691604082013581169160600135166113d1565b348015610b2c57600080fd5b5061048460048036036020811015610b4357600080fd5b50356114bc565b348015610b5657600080fd5b50610b7d60048036036020811015610b6d57600080fd5b50356001600160a01b03166114cc565b604080519315158452602084019290925282820152519081900360600190f35b6000610ba761150c565b90506001600160a01b03811615801590610bc4575060005460ff16155b610bff5760405162461bcd60e51b81526004018080602001828103825260278152602001806119516027913960400191505060405180910390fd5b3660008037600080366000845af43d6000803e808015610c1e573d6000f35b3d6000fd5b60226020526000908152604090205481565b60155481565b610c4433610cdc565b610c7f5760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b610ca97fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610d9e565b50565b60085481565b601a546001600160a01b031681565b60145481565b60009081526026602052604090206002015490565b6000610d087fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4283611250565b92915050565b7f9667e80708b6eeeb0053fa0cca44e028ff548e2a9f029edfeac87c118b08b7c881565b600082815260266020526040902060020154610d5590610d50611531565b611250565b610d905760405162461bcd60e51b815260040180806020018281038252602f815260200180611863602f913960400191505060405180910390fd5b610d9a8282611535565b5050565b610da6611531565b6001600160a01b0316816001600160a01b031614610df55760405162461bcd60e51b815260040180806020018281038252602f815260200180611978602f913960400191505060405180910390fd5b610d9a828261159e565b610e0833610cdc565b610e435760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b6001600160a01b038116610e9e576040805162461bcd60e51b815260206004820152601e60248201527f5075626c696353616c6550726f78793a20696e707574206973207a65726f0000604482015290519081900360640190fd5b806001600160a01b0316610eb061150c565b6001600160a01b03161415610f0c576040805162461bcd60e51b815260206004820152601560248201527f5075626c696353616c6550726f78793a2073616d650000000000000000000000604482015290519081900360640190fd5b610f1581611607565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b601b546001600160a01b031681565b60075481565b6020805260009081526040902080546001820154600283015460039093015460ff90921692909184565b60135481565b6000610f9b61150c565b905090565b600c5481565b60005460ff1681565b60055481565b60236020526000908152604090205481565b60256020526000908152604090205481565b610fe233610cdc565b61101d5760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b610ca97fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610d32565b61105033610cdc565b61108b5760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b6001600160a01b0381166110e6576040805162461bcd60e51b815260206004820152601860248201527f41636365737369626c653a207a65726f20616464726573730000000000000000604482015290519081900360640190fd5b336001600160a01b0382161415611144576040805162461bcd60e51b815260206004820152601660248201527f41636365737369626c653a2073616d652061646d696e00000000000000000000604482015290519081900360640190fd5b61116e7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610d32565b610ca97fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610d9e565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6111c533610cdc565b6112005760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b6000805460ff1916911515919091179055565b60165481565b60065481565b60246020526000908152604090205481565b6000828152602660205260408120611249908361166f565b9392505050565b6000828152602660205260408120611249908361167b565b600b5481565b60025481565b60015481565b600a5481565b600d5481565b600081565b600f5481565b6018546001600160a01b031681565b60115481565b60125481565b60095481565b60035481565b60105481565b6000818152602660205260408120610d0890611690565b601f60205260009081526040902080546001820154600283015460039093015460ff90921692909184565b7ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc981565b60008281526026602052604090206002015461134290610d50611531565b610df55760405162461bcd60e51b81526004018080602001828103825260308152602001806118db6030913960400191505060405180910390fd5b60045481565b601c818154811061139357600080fd5b6000918252602090912001546001600160a01b0316905081565b6019546001600160a01b031681565b60175481565b600e5481565b601e5460ff1681565b6113da33610cdc565b6114155760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b600154156114545760405162461bcd60e51b81526004018080602001828103825260278152602001806118b46027913960400191505060405180910390fd5b601980546001600160a01b039586167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155601a8054948616948216949094179093556018805492851692841692909217909155601b8054919093169116179055565b601d818154811061139357600080fd5b60216020526000908152604090208054600182015460029092015460ff909116919083565b3b151590565b6000611249836001600160a01b03841661169b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3390565b600082815260266020526040902061154d90826114f7565b15610d9a5761155a611531565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526026602052604090206115b690826116e5565b15610d9a576115c3611531565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611610816114f1565b61164b5760405162461bcd60e51b815260040180806020018281038252604681526020018061190b6046913960600191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b600061124983836116fa565b6000611249836001600160a01b03841661175e565b6000610d0882611776565b60006116a7838361175e565b6116dd57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d08565b506000610d08565b6000611249836001600160a01b03841661177a565b8154600090821061173c5760405162461bcd60e51b81526004018080602001828103825260228152602001806118416022913960400191505060405180910390fd5b82600001828154811061174b57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000818152600183016020526040812054801561183657835460001980830191908101906000908790839081106117ad57fe5b90600052602060002001549050808760000184815481106117ca57fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806117fa57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d08565b6000915050610d0856fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7441636365737369626c653a2043616c6c6572206973206e6f7420616e2061646d696e706f737369626c6520746f2073657474696e672074686520736e617073686f74206265666f7265416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6550726f7879426173653a2043616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e747261637420616464726573735075626c696353616c6550726f78793a20696d706c204f522070726f78792069732066616c7365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212203a0d98dc38413d49e59db00635b00dd76bd346f199a7df7e16b14cb7cbb69b8e64736f6c63430007060033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4250726f7879426173653a2043616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373000000000000000000000000a2c90a682dc0849e9ed8b781e06a73441b5ca1e6000000000000000000000000f0b595d10a92a5a9bc3ffea7e79f5d266b6035ea

Deployed Bytecode

0x60806040526004361061037a5760003560e01c80638f68711a116101d1578063c3e5763511610102578063e4b2fb79116100a0578063f18d20be1161006f578063f18d20be14610ac0578063f8c8765e14610ad5578063fe4d5add14610b20578063ff6dac7614610b4a576103cc565b8063e4b2fb7914610a57578063e985e36714610a81578063eaff056d14610a96578063eb8445f814610aab576103cc565b8063cae9ce1b116100dc578063cae9ce1b146109c1578063d5391393146109f4578063d547741f14610a09578063e016bac414610a42576103cc565b8063c3e576351461096d578063c5408d5014610982578063ca15c87314610997576103cc565b8063a1b89b701161016f578063b7182b9511610149578063b7182b9514610919578063b960ca041461092e578063bfc630b114610943578063bff1f9e114610958576103cc565b8063a1b89b70146108da578063a217fddf146108ef578063a55abb1714610904576103cc565b806394f641d5116101ab57806394f641d514610886578063952526921461089b5780639711715a146108b0578063a055e625146108c5576103cc565b80638f68711a146107f35780639010d07c1461081d57806391d148541461084d576103cc565b806341c0cb77116102ab578063690480051161024957806375b238fc1161022357806375b238fc146107885780637cb00d251461079d5780637dc2cd98146107c957806381a9f6d7146107de576103cc565b806369048005146106f8578063704802751461072257806375829def14610755576103cc565b806361a334271161028557806361a334271461068f57806363a8fd89146106a457806366ce7271146106b957806367b399a5146106ce576103cc565b806341c0cb771461060a57806351d28a7e146106655780635c60da1b1461067a576103cc565b806324d7806c1161031857806336568abe116102f257806336568abe146105745780633659cfe6146105ad57806337bf0719146105e05780633ef541b5146105f5576103cc565b806324d7806c146104df578063282c51f3146105265780632f2ff15d1461053b576103cc565b80631bfc751e116103545780631bfc751e1461045a57806321df0da71461046f578063226bf1a4146104a0578063248a9ca3146104b5576103cc565b8063039af9eb146103d65780630b433a12146104125780631785f53c14610427576103cc565b366103cc576040805162461bcd60e51b815260206004820152601460248201527f63616e6e6f742072656365697665204574686572000000000000000000000000604482015290519081900360640190fd5b6103d4610b9d565b005b3480156103e257600080fd5b50610400600480360360208110156103f957600080fd5b5035610c23565b60408051918252519081900360200190f35b34801561041e57600080fd5b50610400610c35565b34801561043357600080fd5b506103d46004803603602081101561044a57600080fd5b50356001600160a01b0316610c3b565b34801561046657600080fd5b50610400610cac565b34801561047b57600080fd5b50610484610cb2565b604080516001600160a01b039092168252519081900360200190f35b3480156104ac57600080fd5b50610400610cc1565b3480156104c157600080fd5b50610400600480360360208110156104d857600080fd5b5035610cc7565b3480156104eb57600080fd5b506105126004803603602081101561050257600080fd5b50356001600160a01b0316610cdc565b604080519115158252519081900360200190f35b34801561053257600080fd5b50610400610d0e565b34801561054757600080fd5b506103d46004803603604081101561055e57600080fd5b50803590602001356001600160a01b0316610d32565b34801561058057600080fd5b506103d46004803603604081101561059757600080fd5b50803590602001356001600160a01b0316610d9e565b3480156105b957600080fd5b506103d4600480360360208110156105d057600080fd5b50356001600160a01b0316610dff565b3480156105ec57600080fd5b50610484610f4c565b34801561060157600080fd5b50610400610f5b565b34801561061657600080fd5b5061063d6004803603602081101561062d57600080fd5b50356001600160a01b0316610f61565b6040805194151585526020850193909352838301919091526060830152519081900360800190f35b34801561067157600080fd5b50610400610f8b565b34801561068657600080fd5b50610484610f91565b34801561069b57600080fd5b50610400610fa0565b3480156106b057600080fd5b50610512610fa6565b3480156106c557600080fd5b50610400610faf565b3480156106da57600080fd5b50610400600480360360208110156106f157600080fd5b5035610fb5565b34801561070457600080fd5b506104006004803603602081101561071b57600080fd5b5035610fc7565b34801561072e57600080fd5b506103d46004803603602081101561074557600080fd5b50356001600160a01b0316610fd9565b34801561076157600080fd5b506103d46004803603602081101561077857600080fd5b50356001600160a01b0316611047565b34801561079457600080fd5b50610400611198565b3480156107a957600080fd5b506103d4600480360360208110156107c057600080fd5b503515156111bc565b3480156107d557600080fd5b50610400611213565b3480156107ea57600080fd5b50610400611219565b3480156107ff57600080fd5b506104006004803603602081101561081657600080fd5b503561121f565b34801561082957600080fd5b506104846004803603604081101561084057600080fd5b5080359060200135611231565b34801561085957600080fd5b506105126004803603604081101561087057600080fd5b50803590602001356001600160a01b0316611250565b34801561089257600080fd5b50610400611268565b3480156108a757600080fd5b5061040061126e565b3480156108bc57600080fd5b50610400611274565b3480156108d157600080fd5b5061040061127a565b3480156108e657600080fd5b50610400611280565b3480156108fb57600080fd5b50610400611286565b34801561091057600080fd5b5061040061128b565b34801561092557600080fd5b50610484611291565b34801561093a57600080fd5b506104006112a0565b34801561094f57600080fd5b506104006112a6565b34801561096457600080fd5b506104006112ac565b34801561097957600080fd5b506104006112b2565b34801561098e57600080fd5b506104006112b8565b3480156109a357600080fd5b50610400600480360360208110156109ba57600080fd5b50356112be565b3480156109cd57600080fd5b5061063d600480360360208110156109e457600080fd5b50356001600160a01b03166112d5565b348015610a0057600080fd5b50610400611300565b348015610a1557600080fd5b506103d460048036036040811015610a2c57600080fd5b50803590602001356001600160a01b0316611324565b348015610a4e57600080fd5b5061040061137d565b348015610a6357600080fd5b5061048460048036036020811015610a7a57600080fd5b5035611383565b348015610a8d57600080fd5b506104846113ad565b348015610aa257600080fd5b506104006113bc565b348015610ab757600080fd5b506104006113c2565b348015610acc57600080fd5b506105126113c8565b348015610ae157600080fd5b506103d460048036036080811015610af857600080fd5b506001600160a01b0381358116916020810135821691604082013581169160600135166113d1565b348015610b2c57600080fd5b5061048460048036036020811015610b4357600080fd5b50356114bc565b348015610b5657600080fd5b50610b7d60048036036020811015610b6d57600080fd5b50356001600160a01b03166114cc565b604080519315158452602084019290925282820152519081900360600190f35b6000610ba761150c565b90506001600160a01b03811615801590610bc4575060005460ff16155b610bff5760405162461bcd60e51b81526004018080602001828103825260278152602001806119516027913960400191505060405180910390fd5b3660008037600080366000845af43d6000803e808015610c1e573d6000f35b3d6000fd5b60226020526000908152604090205481565b60155481565b610c4433610cdc565b610c7f5760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b610ca97fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610d9e565b50565b60085481565b601a546001600160a01b031681565b60145481565b60009081526026602052604090206002015490565b6000610d087fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4283611250565b92915050565b7f9667e80708b6eeeb0053fa0cca44e028ff548e2a9f029edfeac87c118b08b7c881565b600082815260266020526040902060020154610d5590610d50611531565b611250565b610d905760405162461bcd60e51b815260040180806020018281038252602f815260200180611863602f913960400191505060405180910390fd5b610d9a8282611535565b5050565b610da6611531565b6001600160a01b0316816001600160a01b031614610df55760405162461bcd60e51b815260040180806020018281038252602f815260200180611978602f913960400191505060405180910390fd5b610d9a828261159e565b610e0833610cdc565b610e435760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b6001600160a01b038116610e9e576040805162461bcd60e51b815260206004820152601e60248201527f5075626c696353616c6550726f78793a20696e707574206973207a65726f0000604482015290519081900360640190fd5b806001600160a01b0316610eb061150c565b6001600160a01b03161415610f0c576040805162461bcd60e51b815260206004820152601560248201527f5075626c696353616c6550726f78793a2073616d650000000000000000000000604482015290519081900360640190fd5b610f1581611607565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b601b546001600160a01b031681565b60075481565b6020805260009081526040902080546001820154600283015460039093015460ff90921692909184565b60135481565b6000610f9b61150c565b905090565b600c5481565b60005460ff1681565b60055481565b60236020526000908152604090205481565b60256020526000908152604090205481565b610fe233610cdc565b61101d5760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b610ca97fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610d32565b61105033610cdc565b61108b5760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b6001600160a01b0381166110e6576040805162461bcd60e51b815260206004820152601860248201527f41636365737369626c653a207a65726f20616464726573730000000000000000604482015290519081900360640190fd5b336001600160a01b0382161415611144576040805162461bcd60e51b815260206004820152601660248201527f41636365737369626c653a2073616d652061646d696e00000000000000000000604482015290519081900360640190fd5b61116e7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282610d32565b610ca97fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4233610d9e565b7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b6111c533610cdc565b6112005760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b6000805460ff1916911515919091179055565b60165481565b60065481565b60246020526000908152604090205481565b6000828152602660205260408120611249908361166f565b9392505050565b6000828152602660205260408120611249908361167b565b600b5481565b60025481565b60015481565b600a5481565b600d5481565b600081565b600f5481565b6018546001600160a01b031681565b60115481565b60125481565b60095481565b60035481565b60105481565b6000818152602660205260408120610d0890611690565b601f60205260009081526040902080546001820154600283015460039093015460ff90921692909184565b7ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc981565b60008281526026602052604090206002015461134290610d50611531565b610df55760405162461bcd60e51b81526004018080602001828103825260308152602001806118db6030913960400191505060405180910390fd5b60045481565b601c818154811061139357600080fd5b6000918252602090912001546001600160a01b0316905081565b6019546001600160a01b031681565b60175481565b600e5481565b601e5460ff1681565b6113da33610cdc565b6114155760405162461bcd60e51b81526004018080602001828103825260228152602001806118926022913960400191505060405180910390fd5b600154156114545760405162461bcd60e51b81526004018080602001828103825260278152602001806118b46027913960400191505060405180910390fd5b601980546001600160a01b039586167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155601a8054948616948216949094179093556018805492851692841692909217909155601b8054919093169116179055565b601d818154811061139357600080fd5b60216020526000908152604090208054600182015460029092015460ff909116919083565b3b151590565b6000611249836001600160a01b03841661169b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3390565b600082815260266020526040902061154d90826114f7565b15610d9a5761155a611531565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526026602052604090206115b690826116e5565b15610d9a576115c3611531565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b611610816114f1565b61164b5760405162461bcd60e51b815260040180806020018281038252604681526020018061190b6046913960600191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b600061124983836116fa565b6000611249836001600160a01b03841661175e565b6000610d0882611776565b60006116a7838361175e565b6116dd57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d08565b506000610d08565b6000611249836001600160a01b03841661177a565b8154600090821061173c5760405162461bcd60e51b81526004018080602001828103825260228152602001806118416022913960400191505060405180910390fd5b82600001828154811061174b57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000818152600183016020526040812054801561183657835460001980830191908101906000908790839081106117ad57fe5b90600052602060002001549050808760000184815481106117ca57fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806117fa57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610d08565b6000915050610d0856fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7441636365737369626c653a2043616c6c6572206973206e6f7420616e2061646d696e706f737369626c6520746f2073657474696e672074686520736e617073686f74206265666f7265416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b6550726f7879426173653a2043616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e747261637420616464726573735075626c696353616c6550726f78793a20696d706c204f522070726f78792069732066616c7365416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212203a0d98dc38413d49e59db00635b00dd76bd346f199a7df7e16b14cb7cbb69b8e64736f6c63430007060033

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

000000000000000000000000a2c90a682dc0849e9ed8b781e06a73441b5ca1e6000000000000000000000000f0b595d10a92a5a9bc3ffea7e79f5d266b6035ea

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

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a2c90a682dc0849e9ed8b781e06a73441b5ca1e6
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.