ETH Price: $2,424.93 (-2.56%)

Contract

0x0EBBC9c267EA1a18cF6f610Db6a91f6a48f77428
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim186090432023-11-19 23:11:35323 days ago1700435495IN
0x0EBBC9c2...a48f77428
0 ETH0.0018720827.3852268
Claim185880582023-11-17 0:35:35325 days ago1700181335IN
0x0EBBC9c2...a48f77428
0 ETH0.0021935425.66715618
Claim185736292023-11-15 0:10:11327 days ago1700007011IN
0x0EBBC9c2...a48f77428
0 ETH0.0031117630.34065185
Claim185406242023-11-10 9:22:59332 days ago1699608179IN
0x0EBBC9c2...a48f77428
0 ETH0.0024514928.6855018
Claim185362792023-11-09 18:48:35333 days ago1699555715IN
0x0EBBC9c2...a48f77428
0 ETH0.0049567358
Claim185362472023-11-09 18:41:59333 days ago1699555319IN
0x0EBBC9c2...a48f77428
0 ETH0.0035026751.23786789
Claim185332152023-11-09 8:32:47333 days ago1699518767IN
0x0EBBC9c2...a48f77428
0 ETH0.0023895627.96089596
Claim185292932023-11-08 19:21:59334 days ago1699471319IN
0x0EBBC9c2...a48f77428
0 ETH0.0031143545.55752843
Claim185288092023-11-08 17:44:35334 days ago1699465475IN
0x0EBBC9c2...a48f77428
0 ETH0.0041940749.07589387
Claim185273632023-11-08 12:53:35334 days ago1699448015IN
0x0EBBC9c2...a48f77428
0 ETH0.0020091229.38996043
Claim185267092023-11-08 10:41:47334 days ago1699440107IN
0x0EBBC9c2...a48f77428
0 ETH0.0016262519.02919576
Claim185261752023-11-08 8:54:23334 days ago1699433663IN
0x0EBBC9c2...a48f77428
0 ETH0.0020687124.20652167
Claim185249592023-11-08 4:48:59334 days ago1699418939IN
0x0EBBC9c2...a48f77428
0 ETH0.0019309118.82700301
Claim185249562023-11-08 4:48:23334 days ago1699418903IN
0x0EBBC9c2...a48f77428
0 ETH0.0020010619.51098441
Claim185249532023-11-08 4:47:47334 days ago1699418867IN
0x0EBBC9c2...a48f77428
0 ETH0.0020998620.47434535
Claim185249502023-11-08 4:47:11334 days ago1699418831IN
0x0EBBC9c2...a48f77428
0 ETH0.002183821.29274836
Claim185249462023-11-08 4:46:23334 days ago1699418783IN
0x0EBBC9c2...a48f77428
0 ETH0.0013855220.26780824
Claim185244512023-11-08 3:06:47334 days ago1699412807IN
0x0EBBC9c2...a48f77428
0 ETH0.0016107418.84771493
Claim185242762023-11-08 2:31:47334 days ago1699410707IN
0x0EBBC9c2...a48f77428
0 ETH0.0017917120.96528674
Claim185241102023-11-08 1:58:11334 days ago1699408691IN
0x0EBBC9c2...a48f77428
0 ETH0.0012115117.72233463
Claim185234782023-11-07 23:51:11335 days ago1699401071IN
0x0EBBC9c2...a48f77428
0 ETH0.0019076122.32143333
Claim185234682023-11-07 23:49:11335 days ago1699400951IN
0x0EBBC9c2...a48f77428
0 ETH0.0017602820.59754119
Claim185234652023-11-07 23:48:35335 days ago1699400915IN
0x0EBBC9c2...a48f77428
0 ETH0.0014700621.50441098
Claim185233072023-11-07 23:16:59335 days ago1699399019IN
0x0EBBC9c2...a48f77428
0 ETH0.0019499722.81718703
Claim185231742023-11-07 22:50:23335 days ago1699397423IN
0x0EBBC9c2...a48f77428
0 ETH0.0021743625.44274364
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
184726952023-10-31 21:09:35342 days ago1698786575
0x0EBBC9c2...a48f77428
40.7 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SimplePresale

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : SimplePresale.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.19;

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

contract SimplePresale is Ownable, ReentrancyGuard {
    using Address for address payable;
    using SafeMath for uint;

    bool public isInit;
    bool public isRefund;
    bool public isFinish;
    address payable public dev;
    uint public ethRaised;

    struct Pool {
        uint startTime;
        uint endTime;
        uint hardCap;
        uint softCap;
        uint maxBuy;
        uint minBuy;
        uint tokenPrice;
        uint percentageOnTge;
        uint vestingPeriod;
    }

    Pool public pool;
    IERC20 public token;
    mapping(address => uint) public ethContribution;
    mapping(address => uint) public tokensReleased;

    modifier onlyActive {
        require(block.timestamp >= pool.startTime, "Presale must be active.");
        require(block.timestamp <= pool.endTime, "Presale must be active.");
        _;
    }

    modifier onlyInactive {
        require(
            block.timestamp < pool.startTime || 
            block.timestamp > pool.endTime || 
            ethRaised >= pool.hardCap, "Presale must be inactive."
        );
        _;
    }

    modifier onlyRefund {
        require(
            isRefund == true || 
            (block.timestamp > pool.endTime && ethRaised < pool.softCap), "Refund unavailable."
        );
        _;
    }

    constructor() {
        isInit = false;
        isFinish = false;
        isRefund = false;
        ethRaised = 0;

        dev = payable(_msgSender());
    }

    receive() external payable {
        if (block.timestamp >= pool.startTime && block.timestamp <= pool.endTime) {
            purchase();
        } else {
            revert("Presale is closed");
        }
    }

    function getUserInfo(address beneficiary) external view returns (uint ethAmount, uint tokenAmount, uint claimedAmount, uint vestedAmount) {
        ethAmount = ethContribution[beneficiary];
        tokenAmount = _getTokenAmount(beneficiary);
        claimedAmount = tokensReleased[beneficiary];
        vestedAmount = _getUserVested(beneficiary, tokenAmount);
    }

    function purchase() public payable onlyActive {
        require(!isRefund, "Presale has been cancelled.");

        uint weiAmount = msg.value;
        _checkSaleRequirements(msg.sender, weiAmount);
        ethRaised += weiAmount;
        ethContribution[msg.sender] += weiAmount;
        emit Bought(_msgSender(), weiAmount);
    }

    function refund() external onlyRefund {
        uint refundAmount = ethContribution[msg.sender];

        if (address(this).balance >= refundAmount) {
            if (refundAmount > 0) {
                ethContribution[msg.sender] = 0;
                address payable refunder = payable(msg.sender);
                Address.sendValue(refunder, refundAmount);
                emit Refunded(refunder, refundAmount);
            }
        }
    }

    function claim() external nonReentrant {
        require(isFinish, "Can only claim if presale is finished");
        require(!isRefund, "Can not claim if refund is active");
        require(ethContribution[_msgSender()] > 0, "Nothing to claim");

        uint vestedAmount = _getUserVested(_msgSender(), _getTokenAmount(_msgSender()));

        if (vestedAmount > 0) {
            tokensReleased[_msgSender()] += vestedAmount;
            token.transfer(_msgSender(), vestedAmount);
            emit Claimed(_msgSender(), vestedAmount);
        }
    }

    function _getTokenAmount(address beneficiary) internal view returns (uint) {
        return ethContribution[beneficiary] * 1e18 / pool.tokenPrice;
    }

    function _getUserVested(address beneficiary, uint tokenAmount) internal view returns (uint releasableAmount) {
        if (tokenAmount > 0) {
            uint tokensOnTge = tokenAmount * pool.percentageOnTge / 100;
            uint tokensToVest = tokenAmount - tokensOnTge;
            uint alreadyReleased = tokensReleased[beneficiary];
            if (tokensToVest > 0) {
                uint vestedAmount = _getVestedAmount(tokensToVest, block.timestamp);
                releasableAmount = tokensOnTge + vestedAmount - alreadyReleased;
            } else {
                if (alreadyReleased == 0) {
                    releasableAmount = tokensOnTge;
                } else {
                    releasableAmount = 0;
                }
            }
        } else {
            releasableAmount = 0;
        }
    }

    function _getVestedAmount(uint _totalAmount, uint _timestamp) internal view returns (uint) {
        if (_timestamp < pool.endTime) {
            return 0;
        } else if (_timestamp > pool.endTime + pool.vestingPeriod) {
            return _totalAmount;
        } else {
            return (_totalAmount * (_timestamp - pool.endTime)) / pool.vestingPeriod;
        }
    }

    function _checkSaleRequirements(address _beneficiary, uint _amount) internal view { 
        require(_beneficiary != address(0), "Transfer to 0 address.");
        require(_amount != 0, "Wei Amount is 0");
        require(_amount >= pool.minBuy, "Min buy is not met.");
        require(_amount % pool.minBuy == 0, "Please only buy in increments of the minimum buy");
        require(_amount + ethContribution[_beneficiary] <= pool.maxBuy, "Max buy limit exceeded.");
        require(ethRaised + _amount <= pool.hardCap, "HC Reached.");
        this;
    }

    function initSale(
        uint _startTime,
        uint _endTime,
        uint _hardCap,
        uint _softCap,
        uint _maxBuy,
        uint _minBuy,
        uint _tokenPrice,
        uint _percentageOnTge,
        uint _vestingPeriod
    ) external onlyOwner onlyInactive {        
        require(isInit == false, "Presale is not initialized");
        require(_startTime >= block.timestamp, "Invalid start time.");
        require(_endTime > block.timestamp, "Invalid end time.");
        require(_hardCap >= _softCap, "Hard cap must be greater than or equal to soft cap");
        require(_hardCap % _minBuy == 0, "Hard cap must be multiple of min buy.");
        require(_minBuy <= _maxBuy, "Min buy must not be greater than max buy.");
        require(_minBuy > 0, "Min buy must exceed 0.");
        require(_percentageOnTge <= 100, "Percentage on tge must be lower or equal to 100");

        Pool memory newPool = Pool(
            _startTime,
            _endTime, 
            _hardCap,
            _softCap, 
            _maxBuy, 
            _minBuy,
            _tokenPrice,
            _percentageOnTge,
            _vestingPeriod
        );

        pool = newPool;
        isInit = true;
    }

    function setToken(
        address _token
    ) external onlyOwner {
        require(address(token) == address(0), "Token must not be set");
        token = IERC20(_token);
    }

    function finishSale() external onlyOwner onlyInactive {
        require(ethRaised >= pool.softCap, "Soft Cap is not met.");
        require(block.timestamp > pool.startTime, "Can not finish before start");
        require(!isFinish, "Presale is already closed.");
        require(!isRefund, "Presale is in refund process.");
        require(address(token) != address(0), "Token must be set to finish sale");

        isFinish = true;
        pool.endTime = block.timestamp;
        Address.sendValue(dev, address(this).balance);
    }

    function cancelSale() external onlyOwner onlyActive {
        require(!isFinish, "Sale is finished.");
        pool.endTime = 0;
        isRefund = true;

        emit Cancelled(msg.sender, address(this));
    }

    event Cancelled(
        address indexed _inititator, 
        address indexed _presale
    );

    event Bought(
        address indexed _buyer, 
        uint _ethAmount
    );

    event Refunded(
        address indexed _refunder, 
        uint _ethAmount
    );
    
    event Claimed(
        address indexed _beneficiary,
        uint _tokenAmount
    );
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

File 5 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 6 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"_ethAmount","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_inititator","type":"address"},{"indexed":true,"internalType":"address","name":"_presale","type":"address"}],"name":"Cancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_refunder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_ethAmount","type":"uint256"}],"name":"Refunded","type":"event"},{"inputs":[],"name":"cancelSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dev","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ethContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finishSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getUserInfo","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"claimedAmount","type":"uint256"},{"internalType":"uint256","name":"vestedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_hardCap","type":"uint256"},{"internalType":"uint256","name":"_softCap","type":"uint256"},{"internalType":"uint256","name":"_maxBuy","type":"uint256"},{"internalType":"uint256","name":"_minBuy","type":"uint256"},{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"uint256","name":"_percentageOnTge","type":"uint256"},{"internalType":"uint256","name":"_vestingPeriod","type":"uint256"}],"name":"initSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isFinish","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isInit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"hardCap","type":"uint256"},{"internalType":"uint256","name":"softCap","type":"uint256"},{"internalType":"uint256","name":"maxBuy","type":"uint256"},{"internalType":"uint256","name":"minBuy","type":"uint256"},{"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"internalType":"uint256","name":"percentageOnTge","type":"uint256"},{"internalType":"uint256","name":"vestingPeriod","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b506200003262000026620000e760201b60201c565b620000ef60201b60201c565b600180819055506000600260006101000a81548160ff02191690831515021790555060006002806101000a81548160ff0219169083151502179055506000600260016101000a81548160ff0219169083151502179055506000600381905550620000a1620000e760201b60201c565b600260036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001b3565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61317a80620001c36000396000f3fe6080604052600436106101235760003560e01c80637966730a116100a0578063d921eb7811610064578063d921eb78146103e7578063e7e1049014610412578063f2fde38b14610429578063fc0c546a14610452578063fddf0fc01461047d57610191565b80637966730a146103265780638da5cb5b1461034f5780638f86f5ea1461037a57806391cca3db14610391578063b145a5b8146103bc57610191565b80634e71d92d116100e75780634e71d92d14610297578063590e1ae3146102ae5780636386c1c7146102c557806364edfbf014610305578063715018a61461030f57610191565b8063144fa6d71461019657806316f0115b146101bf57806327cea3a8146101f25780632c8ca0ea1461022f5780634034175e1461025a57610191565b3661019157600460000154421015801561014257506004600101544211155b156101545761014f6104a8565b61018f565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018690611c0e565b60405180910390fd5b005b600080fd5b3480156101a257600080fd5b506101bd60048036038101906101b89190611c91565b61065e565b005b3480156101cb57600080fd5b506101d461073b565b6040516101e999989796959493929190611cd7565b60405180910390f35b3480156101fe57600080fd5b5061021960048036038101906102149190611c91565b610777565b6040516102269190611d64565b60405180910390f35b34801561023b57600080fd5b5061024461078f565b6040516102519190611d9a565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190611c91565b6107a0565b60405161028e9190611d64565b60405180910390f35b3480156102a357600080fd5b506102ac6107b8565b005b3480156102ba57600080fd5b506102c3610a79565b005b3480156102d157600080fd5b506102ec60048036038101906102e79190611c91565b610bec565b6040516102fc9493929190611db5565b60405180910390f35b61030d6104a8565b005b34801561031b57600080fd5b50610324610c94565b005b34801561033257600080fd5b5061034d60048036038101906103489190611e26565b610ca8565b005b34801561035b57600080fd5b5061036461101a565b6040516103719190611eff565b60405180910390f35b34801561038657600080fd5b5061038f611043565b005b34801561039d57600080fd5b506103a66112c5565b6040516103b39190611f3b565b60405180910390f35b3480156103c857600080fd5b506103d16112eb565b6040516103de9190611d9a565b60405180910390f35b3480156103f357600080fd5b506103fc6112fe565b6040516104099190611d9a565b60405180910390f35b34801561041e57600080fd5b50610427611311565b005b34801561043557600080fd5b50610450600480360381019061044b9190611c91565b611479565b005b34801561045e57600080fd5b506104676114fc565b6040516104749190611fb5565b60405180910390f35b34801561048957600080fd5b50610492611522565b60405161049f9190611d64565b60405180910390f35b6004600001544210156104f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e79061201c565b60405180910390fd5b600460010154421115610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052f9061201c565b60405180910390fd5b600260019054906101000a900460ff1615610588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057f90612088565b60405180910390fd5b60003490506105973382611528565b80600360008282546105a991906120d7565b9250508190555080600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105ff91906120d7565b9250508190555061060e61175f565b73ffffffffffffffffffffffffffffffffffffffff167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d67826040516106539190611d64565b60405180910390a250565b610666611767565b600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ee90612157565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60048060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080154905089565b600f6020528060005260406000206000915090505481565b60028054906101000a900460ff1681565b600e6020528060005260406000206000915090505481565b6107c06117e5565b60028054906101000a900460ff1661080d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610804906121e9565b60405180910390fd5b600260019054906101000a900460ff161561085d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108549061227b565b60405180910390fd5b6000600e600061086b61175f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116108e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dd906122e7565b60405180910390fd5b60006109086108f361175f565b6109036108fe61175f565b611834565b6118a0565b90506000811115610a6e5780600f600061092061175f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461096991906120d7565b92505081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6109b661175f565b836040518363ffffffff1660e01b81526004016109d4929190612307565b6020604051808303816000875af11580156109f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a17919061235c565b50610a2061175f565b73ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82604051610a659190611d64565b60405180910390a25b50610a7761197e565b565b60011515600260019054906101000a900460ff1615151480610ab1575060046001015442118015610ab05750600460030154600354105b5b610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae7906123d5565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050804710610be9576000811115610be8576000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000339050610b988183611987565b8073ffffffffffffffffffffffffffffffffffffffff167fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d065183604051610bde9190611d64565b60405180910390a2505b5b50565b600080600080600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549350610c3d85611834565b9250600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549150610c8b85846118a0565b90509193509193565b610c9c611767565b610ca66000611a7b565b565b610cb0611767565b600460000154421080610cc7575060046001015442115b80610cd9575060046002015460035410155b610d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0f90612441565b60405180910390fd5b60001515600260009054906101000a900460ff16151514610d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d65906124ad565b60405180910390fd5b42891015610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da890612519565b60405180910390fd5b428811610df3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dea90612585565b60405180910390fd5b85871015610e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2d90612617565b60405180910390fd5b60008488610e449190612666565b14610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b90612709565b60405180910390fd5b84841115610ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebe9061279b565b60405180910390fd5b60008411610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0190612807565b60405180910390fd5b6064821115610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590612899565b60405180910390fd5b60006040518061012001604052808b81526020018a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152509050806004600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015561010082015181600801559050506001600260006101000a81548160ff02191690831515021790555050505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61104b611767565b600460000154421080611062575060046001015442115b80611074575060046002015460035410155b6110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110aa90612441565b60405180910390fd5b60046003015460035410156110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f490612905565b60405180910390fd5b6004600001544211611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90612971565b60405180910390fd5b60028054906101000a900460ff1615611192576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611189906129dd565b60405180910390fd5b600260019054906101000a900460ff16156111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990612a49565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126a90612ab5565b60405180910390fd5b60016002806101000a81548160ff021916908315150217905550426004600101819055506112c3600260039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647611987565b565b600260039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900460ff1681565b600260019054906101000a900460ff1681565b611319611767565b600460000154421015611361576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113589061201c565b60405180910390fd5b6004600101544211156113a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a09061201c565b60405180910390fd5b60028054906101000a900460ff16156113f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ee90612b21565b60405180910390fd5b60006004600101819055506001600260016101000a81548160ff0219169083151502179055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff91f011c087a627ca425b0ca8a8859a2ae764d033f94c53b18359b02b374726f60405160405180910390a3565b611481611767565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790612bb3565b60405180910390fd5b6114f981611a7b565b50565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158e90612c1f565b60405180910390fd5b600081036115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190612c8b565b60405180910390fd5b600460050154811015611622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161990612cf7565b60405180910390fd5b6000600460050154826116359190612666565b14611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c90612d89565b60405180910390fd5b6004800154600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826116c591906120d7565b1115611706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fd90612df5565b60405180910390fd5b6004600201548160035461171a91906120d7565b111561175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290612e61565b60405180910390fd5b5050565b600033905090565b61176f61175f565b73ffffffffffffffffffffffffffffffffffffffff1661178d61101a565b73ffffffffffffffffffffffffffffffffffffffff16146117e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117da90612ecd565b60405180910390fd5b565b60026001540361182a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182190612f39565b60405180910390fd5b6002600181905550565b6000600460060154670de0b6b3a7640000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461188f9190612f59565b6118999190612f9b565b9050919050565b6000808211156119735760006064600460070154846118bf9190612f59565b6118c99190612f9b565b9050600081846118d99190612fcc565b90506000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008211156119555760006119348342611b3f565b905081818561194391906120d7565b61194d9190612fcc565b94505061196b565b600081036119655782935061196a565b600093505b5b505050611978565b600090505b92915050565b60018081905550565b804710156119ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c19061304c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516119f09061309d565b60006040518083038185875af1925050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b606091505b5050905080611a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6d90613124565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600460010154821015611b575760009050611bab565b600460080154600460010154611b6d91906120d7565b821115611b7c57829050611bab565b60046008015460046001015483611b939190612fcc565b84611b9e9190612f59565b611ba89190612f9b565b90505b92915050565b600082825260208201905092915050565b7f50726573616c6520697320636c6f736564000000000000000000000000000000600082015250565b6000611bf8601183611bb1565b9150611c0382611bc2565b602082019050919050565b60006020820190508181036000830152611c2781611beb565b9050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c5e82611c33565b9050919050565b611c6e81611c53565b8114611c7957600080fd5b50565b600081359050611c8b81611c65565b92915050565b600060208284031215611ca757611ca6611c2e565b5b6000611cb584828501611c7c565b91505092915050565b6000819050919050565b611cd181611cbe565b82525050565b600061012082019050611ced600083018c611cc8565b611cfa602083018b611cc8565b611d07604083018a611cc8565b611d146060830189611cc8565b611d216080830188611cc8565b611d2e60a0830187611cc8565b611d3b60c0830186611cc8565b611d4860e0830185611cc8565b611d56610100830184611cc8565b9a9950505050505050505050565b6000602082019050611d796000830184611cc8565b92915050565b60008115159050919050565b611d9481611d7f565b82525050565b6000602082019050611daf6000830184611d8b565b92915050565b6000608082019050611dca6000830187611cc8565b611dd76020830186611cc8565b611de46040830185611cc8565b611df16060830184611cc8565b95945050505050565b611e0381611cbe565b8114611e0e57600080fd5b50565b600081359050611e2081611dfa565b92915050565b60008060008060008060008060006101208a8c031215611e4957611e48611c2e565b5b6000611e578c828d01611e11565b9950506020611e688c828d01611e11565b9850506040611e798c828d01611e11565b9750506060611e8a8c828d01611e11565b9650506080611e9b8c828d01611e11565b95505060a0611eac8c828d01611e11565b94505060c0611ebd8c828d01611e11565b93505060e0611ece8c828d01611e11565b925050610100611ee08c828d01611e11565b9150509295985092959850929598565b611ef981611c53565b82525050565b6000602082019050611f146000830184611ef0565b92915050565b6000611f2582611c33565b9050919050565b611f3581611f1a565b82525050565b6000602082019050611f506000830184611f2c565b92915050565b6000819050919050565b6000611f7b611f76611f7184611c33565b611f56565b611c33565b9050919050565b6000611f8d82611f60565b9050919050565b6000611f9f82611f82565b9050919050565b611faf81611f94565b82525050565b6000602082019050611fca6000830184611fa6565b92915050565b7f50726573616c65206d757374206265206163746976652e000000000000000000600082015250565b6000612006601783611bb1565b915061201182611fd0565b602082019050919050565b6000602082019050818103600083015261203581611ff9565b9050919050565b7f50726573616c6520686173206265656e2063616e63656c6c65642e0000000000600082015250565b6000612072601b83611bb1565b915061207d8261203c565b602082019050919050565b600060208201905081810360008301526120a181612065565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120e282611cbe565b91506120ed83611cbe565b9250828201905080821115612105576121046120a8565b5b92915050565b7f546f6b656e206d757374206e6f74206265207365740000000000000000000000600082015250565b6000612141601583611bb1565b915061214c8261210b565b602082019050919050565b6000602082019050818103600083015261217081612134565b9050919050565b7f43616e206f6e6c7920636c61696d2069662070726573616c652069732066696e60008201527f6973686564000000000000000000000000000000000000000000000000000000602082015250565b60006121d3602583611bb1565b91506121de82612177565b604082019050919050565b60006020820190508181036000830152612202816121c6565b9050919050565b7f43616e206e6f7420636c61696d20696620726566756e6420697320616374697660008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b6000612265602183611bb1565b915061227082612209565b604082019050919050565b6000602082019050818103600083015261229481612258565b9050919050565b7f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b60006122d1601083611bb1565b91506122dc8261229b565b602082019050919050565b60006020820190508181036000830152612300816122c4565b9050919050565b600060408201905061231c6000830185611ef0565b6123296020830184611cc8565b9392505050565b61233981611d7f565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611c2e565b5b600061238084828501612347565b91505092915050565b7f526566756e6420756e617661696c61626c652e00000000000000000000000000600082015250565b60006123bf601383611bb1565b91506123ca82612389565b602082019050919050565b600060208201905081810360008301526123ee816123b2565b9050919050565b7f50726573616c65206d75737420626520696e6163746976652e00000000000000600082015250565b600061242b601983611bb1565b9150612436826123f5565b602082019050919050565b6000602082019050818103600083015261245a8161241e565b9050919050565b7f50726573616c65206973206e6f7420696e697469616c697a6564000000000000600082015250565b6000612497601a83611bb1565b91506124a282612461565b602082019050919050565b600060208201905081810360008301526124c68161248a565b9050919050565b7f496e76616c69642073746172742074696d652e00000000000000000000000000600082015250565b6000612503601383611bb1565b915061250e826124cd565b602082019050919050565b60006020820190508181036000830152612532816124f6565b9050919050565b7f496e76616c696420656e642074696d652e000000000000000000000000000000600082015250565b600061256f601183611bb1565b915061257a82612539565b602082019050919050565b6000602082019050818103600083015261259e81612562565b9050919050565b7f4861726420636170206d7573742062652067726561746572207468616e206f7260008201527f20657175616c20746f20736f6674206361700000000000000000000000000000602082015250565b6000612601603283611bb1565b915061260c826125a5565b604082019050919050565b60006020820190508181036000830152612630816125f4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061267182611cbe565b915061267c83611cbe565b92508261268c5761268b612637565b5b828206905092915050565b7f4861726420636170206d757374206265206d756c7469706c65206f66206d696e60008201527f206275792e000000000000000000000000000000000000000000000000000000602082015250565b60006126f3602583611bb1565b91506126fe82612697565b604082019050919050565b60006020820190508181036000830152612722816126e6565b9050919050565b7f4d696e20627579206d757374206e6f742062652067726561746572207468616e60008201527f206d6178206275792e0000000000000000000000000000000000000000000000602082015250565b6000612785602983611bb1565b915061279082612729565b604082019050919050565b600060208201905081810360008301526127b481612778565b9050919050565b7f4d696e20627579206d7573742065786365656420302e00000000000000000000600082015250565b60006127f1601683611bb1565b91506127fc826127bb565b602082019050919050565b60006020820190508181036000830152612820816127e4565b9050919050565b7f50657263656e74616765206f6e20746765206d757374206265206c6f7765722060008201527f6f7220657175616c20746f203130300000000000000000000000000000000000602082015250565b6000612883602f83611bb1565b915061288e82612827565b604082019050919050565b600060208201905081810360008301526128b281612876565b9050919050565b7f536f667420436170206973206e6f74206d65742e000000000000000000000000600082015250565b60006128ef601483611bb1565b91506128fa826128b9565b602082019050919050565b6000602082019050818103600083015261291e816128e2565b9050919050565b7f43616e206e6f742066696e697368206265666f72652073746172740000000000600082015250565b600061295b601b83611bb1565b915061296682612925565b602082019050919050565b6000602082019050818103600083015261298a8161294e565b9050919050565b7f50726573616c6520697320616c726561647920636c6f7365642e000000000000600082015250565b60006129c7601a83611bb1565b91506129d282612991565b602082019050919050565b600060208201905081810360008301526129f6816129ba565b9050919050565b7f50726573616c6520697320696e20726566756e642070726f636573732e000000600082015250565b6000612a33601d83611bb1565b9150612a3e826129fd565b602082019050919050565b60006020820190508181036000830152612a6281612a26565b9050919050565b7f546f6b656e206d7573742062652073657420746f2066696e6973682073616c65600082015250565b6000612a9f602083611bb1565b9150612aaa82612a69565b602082019050919050565b60006020820190508181036000830152612ace81612a92565b9050919050565b7f53616c652069732066696e69736865642e000000000000000000000000000000600082015250565b6000612b0b601183611bb1565b9150612b1682612ad5565b602082019050919050565b60006020820190508181036000830152612b3a81612afe565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612b9d602683611bb1565b9150612ba882612b41565b604082019050919050565b60006020820190508181036000830152612bcc81612b90565b9050919050565b7f5472616e7366657220746f203020616464726573732e00000000000000000000600082015250565b6000612c09601683611bb1565b9150612c1482612bd3565b602082019050919050565b60006020820190508181036000830152612c3881612bfc565b9050919050565b7f57656920416d6f756e7420697320300000000000000000000000000000000000600082015250565b6000612c75600f83611bb1565b9150612c8082612c3f565b602082019050919050565b60006020820190508181036000830152612ca481612c68565b9050919050565b7f4d696e20627579206973206e6f74206d65742e00000000000000000000000000600082015250565b6000612ce1601383611bb1565b9150612cec82612cab565b602082019050919050565b60006020820190508181036000830152612d1081612cd4565b9050919050565b7f506c65617365206f6e6c792062757920696e20696e6372656d656e7473206f6660008201527f20746865206d696e696d756d2062757900000000000000000000000000000000602082015250565b6000612d73603083611bb1565b9150612d7e82612d17565b604082019050919050565b60006020820190508181036000830152612da281612d66565b9050919050565b7f4d617820627579206c696d69742065786365656465642e000000000000000000600082015250565b6000612ddf601783611bb1565b9150612dea82612da9565b602082019050919050565b60006020820190508181036000830152612e0e81612dd2565b9050919050565b7f484320526561636865642e000000000000000000000000000000000000000000600082015250565b6000612e4b600b83611bb1565b9150612e5682612e15565b602082019050919050565b60006020820190508181036000830152612e7a81612e3e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612eb7602083611bb1565b9150612ec282612e81565b602082019050919050565b60006020820190508181036000830152612ee681612eaa565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612f23601f83611bb1565b9150612f2e82612eed565b602082019050919050565b60006020820190508181036000830152612f5281612f16565b9050919050565b6000612f6482611cbe565b9150612f6f83611cbe565b9250828202612f7d81611cbe565b91508282048414831517612f9457612f936120a8565b5b5092915050565b6000612fa682611cbe565b9150612fb183611cbe565b925082612fc157612fc0612637565b5b828204905092915050565b6000612fd782611cbe565b9150612fe283611cbe565b9250828203905081811115612ffa57612ff96120a8565b5b92915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613036601d83611bb1565b915061304182613000565b602082019050919050565b6000602082019050818103600083015261306581613029565b9050919050565b600081905092915050565b50565b600061308760008361306c565b915061309282613077565b600082019050919050565b60006130a88261307a565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061310e603a83611bb1565b9150613119826130b2565b604082019050919050565b6000602082019050818103600083015261313d81613101565b905091905056fea2646970667358221220c920d6f14a0231ee8172837cc0ca52ab1e88fafea1f19906065b0af5fa0fe97064736f6c63430008130033

Deployed Bytecode

0x6080604052600436106101235760003560e01c80637966730a116100a0578063d921eb7811610064578063d921eb78146103e7578063e7e1049014610412578063f2fde38b14610429578063fc0c546a14610452578063fddf0fc01461047d57610191565b80637966730a146103265780638da5cb5b1461034f5780638f86f5ea1461037a57806391cca3db14610391578063b145a5b8146103bc57610191565b80634e71d92d116100e75780634e71d92d14610297578063590e1ae3146102ae5780636386c1c7146102c557806364edfbf014610305578063715018a61461030f57610191565b8063144fa6d71461019657806316f0115b146101bf57806327cea3a8146101f25780632c8ca0ea1461022f5780634034175e1461025a57610191565b3661019157600460000154421015801561014257506004600101544211155b156101545761014f6104a8565b61018f565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018690611c0e565b60405180910390fd5b005b600080fd5b3480156101a257600080fd5b506101bd60048036038101906101b89190611c91565b61065e565b005b3480156101cb57600080fd5b506101d461073b565b6040516101e999989796959493929190611cd7565b60405180910390f35b3480156101fe57600080fd5b5061021960048036038101906102149190611c91565b610777565b6040516102269190611d64565b60405180910390f35b34801561023b57600080fd5b5061024461078f565b6040516102519190611d9a565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190611c91565b6107a0565b60405161028e9190611d64565b60405180910390f35b3480156102a357600080fd5b506102ac6107b8565b005b3480156102ba57600080fd5b506102c3610a79565b005b3480156102d157600080fd5b506102ec60048036038101906102e79190611c91565b610bec565b6040516102fc9493929190611db5565b60405180910390f35b61030d6104a8565b005b34801561031b57600080fd5b50610324610c94565b005b34801561033257600080fd5b5061034d60048036038101906103489190611e26565b610ca8565b005b34801561035b57600080fd5b5061036461101a565b6040516103719190611eff565b60405180910390f35b34801561038657600080fd5b5061038f611043565b005b34801561039d57600080fd5b506103a66112c5565b6040516103b39190611f3b565b60405180910390f35b3480156103c857600080fd5b506103d16112eb565b6040516103de9190611d9a565b60405180910390f35b3480156103f357600080fd5b506103fc6112fe565b6040516104099190611d9a565b60405180910390f35b34801561041e57600080fd5b50610427611311565b005b34801561043557600080fd5b50610450600480360381019061044b9190611c91565b611479565b005b34801561045e57600080fd5b506104676114fc565b6040516104749190611fb5565b60405180910390f35b34801561048957600080fd5b50610492611522565b60405161049f9190611d64565b60405180910390f35b6004600001544210156104f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104e79061201c565b60405180910390fd5b600460010154421115610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052f9061201c565b60405180910390fd5b600260019054906101000a900460ff1615610588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057f90612088565b60405180910390fd5b60003490506105973382611528565b80600360008282546105a991906120d7565b9250508190555080600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105ff91906120d7565b9250508190555061060e61175f565b73ffffffffffffffffffffffffffffffffffffffff167fc55650ccda1011e1cdc769b1fbf546ebb8c97800b6072b49e06cd560305b1d67826040516106539190611d64565b60405180910390a250565b610666611767565b600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ee90612157565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60048060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080154905089565b600f6020528060005260406000206000915090505481565b60028054906101000a900460ff1681565b600e6020528060005260406000206000915090505481565b6107c06117e5565b60028054906101000a900460ff1661080d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610804906121e9565b60405180910390fd5b600260019054906101000a900460ff161561085d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108549061227b565b60405180910390fd5b6000600e600061086b61175f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116108e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dd906122e7565b60405180910390fd5b60006109086108f361175f565b6109036108fe61175f565b611834565b6118a0565b90506000811115610a6e5780600f600061092061175f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461096991906120d7565b92505081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6109b661175f565b836040518363ffffffff1660e01b81526004016109d4929190612307565b6020604051808303816000875af11580156109f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a17919061235c565b50610a2061175f565b73ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82604051610a659190611d64565b60405180910390a25b50610a7761197e565b565b60011515600260019054906101000a900460ff1615151480610ab1575060046001015442118015610ab05750600460030154600354105b5b610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae7906123d5565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050804710610be9576000811115610be8576000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000339050610b988183611987565b8073ffffffffffffffffffffffffffffffffffffffff167fd7dee2702d63ad89917b6a4da9981c90c4d24f8c2bdfd64c604ecae57d8d065183604051610bde9190611d64565b60405180910390a2505b5b50565b600080600080600e60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549350610c3d85611834565b9250600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549150610c8b85846118a0565b90509193509193565b610c9c611767565b610ca66000611a7b565b565b610cb0611767565b600460000154421080610cc7575060046001015442115b80610cd9575060046002015460035410155b610d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0f90612441565b60405180910390fd5b60001515600260009054906101000a900460ff16151514610d6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d65906124ad565b60405180910390fd5b42891015610db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da890612519565b60405180910390fd5b428811610df3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dea90612585565b60405180910390fd5b85871015610e36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2d90612617565b60405180910390fd5b60008488610e449190612666565b14610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b90612709565b60405180910390fd5b84841115610ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebe9061279b565b60405180910390fd5b60008411610f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0190612807565b60405180910390fd5b6064821115610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4590612899565b60405180910390fd5b60006040518061012001604052808b81526020018a8152602001898152602001888152602001878152602001868152602001858152602001848152602001838152509050806004600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e0820151816007015561010082015181600801559050506001600260006101000a81548160ff02191690831515021790555050505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61104b611767565b600460000154421080611062575060046001015442115b80611074575060046002015460035410155b6110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110aa90612441565b60405180910390fd5b60046003015460035410156110fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f490612905565b60405180910390fd5b6004600001544211611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b90612971565b60405180910390fd5b60028054906101000a900460ff1615611192576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611189906129dd565b60405180910390fd5b600260019054906101000a900460ff16156111e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d990612a49565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603611273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126a90612ab5565b60405180910390fd5b60016002806101000a81548160ff021916908315150217905550426004600101819055506112c3600260039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647611987565b565b600260039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900460ff1681565b600260019054906101000a900460ff1681565b611319611767565b600460000154421015611361576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113589061201c565b60405180910390fd5b6004600101544211156113a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a09061201c565b60405180910390fd5b60028054906101000a900460ff16156113f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ee90612b21565b60405180910390fd5b60006004600101819055506001600260016101000a81548160ff0219169083151502179055503073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff91f011c087a627ca425b0ca8a8859a2ae764d033f94c53b18359b02b374726f60405160405180910390a3565b611481611767565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e790612bb3565b60405180910390fd5b6114f981611a7b565b50565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158e90612c1f565b60405180910390fd5b600081036115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190612c8b565b60405180910390fd5b600460050154811015611622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161990612cf7565b60405180910390fd5b6000600460050154826116359190612666565b14611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c90612d89565b60405180910390fd5b6004800154600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826116c591906120d7565b1115611706576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116fd90612df5565b60405180910390fd5b6004600201548160035461171a91906120d7565b111561175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290612e61565b60405180910390fd5b5050565b600033905090565b61176f61175f565b73ffffffffffffffffffffffffffffffffffffffff1661178d61101a565b73ffffffffffffffffffffffffffffffffffffffff16146117e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117da90612ecd565b60405180910390fd5b565b60026001540361182a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182190612f39565b60405180910390fd5b6002600181905550565b6000600460060154670de0b6b3a7640000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461188f9190612f59565b6118999190612f9b565b9050919050565b6000808211156119735760006064600460070154846118bf9190612f59565b6118c99190612f9b565b9050600081846118d99190612fcc565b90506000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008211156119555760006119348342611b3f565b905081818561194391906120d7565b61194d9190612fcc565b94505061196b565b600081036119655782935061196a565b600093505b5b505050611978565b600090505b92915050565b60018081905550565b804710156119ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c19061304c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516119f09061309d565b60006040518083038185875af1925050503d8060008114611a2d576040519150601f19603f3d011682016040523d82523d6000602084013e611a32565b606091505b5050905080611a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6d90613124565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600460010154821015611b575760009050611bab565b600460080154600460010154611b6d91906120d7565b821115611b7c57829050611bab565b60046008015460046001015483611b939190612fcc565b84611b9e9190612f59565b611ba89190612f9b565b90505b92915050565b600082825260208201905092915050565b7f50726573616c6520697320636c6f736564000000000000000000000000000000600082015250565b6000611bf8601183611bb1565b9150611c0382611bc2565b602082019050919050565b60006020820190508181036000830152611c2781611beb565b9050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611c5e82611c33565b9050919050565b611c6e81611c53565b8114611c7957600080fd5b50565b600081359050611c8b81611c65565b92915050565b600060208284031215611ca757611ca6611c2e565b5b6000611cb584828501611c7c565b91505092915050565b6000819050919050565b611cd181611cbe565b82525050565b600061012082019050611ced600083018c611cc8565b611cfa602083018b611cc8565b611d07604083018a611cc8565b611d146060830189611cc8565b611d216080830188611cc8565b611d2e60a0830187611cc8565b611d3b60c0830186611cc8565b611d4860e0830185611cc8565b611d56610100830184611cc8565b9a9950505050505050505050565b6000602082019050611d796000830184611cc8565b92915050565b60008115159050919050565b611d9481611d7f565b82525050565b6000602082019050611daf6000830184611d8b565b92915050565b6000608082019050611dca6000830187611cc8565b611dd76020830186611cc8565b611de46040830185611cc8565b611df16060830184611cc8565b95945050505050565b611e0381611cbe565b8114611e0e57600080fd5b50565b600081359050611e2081611dfa565b92915050565b60008060008060008060008060006101208a8c031215611e4957611e48611c2e565b5b6000611e578c828d01611e11565b9950506020611e688c828d01611e11565b9850506040611e798c828d01611e11565b9750506060611e8a8c828d01611e11565b9650506080611e9b8c828d01611e11565b95505060a0611eac8c828d01611e11565b94505060c0611ebd8c828d01611e11565b93505060e0611ece8c828d01611e11565b925050610100611ee08c828d01611e11565b9150509295985092959850929598565b611ef981611c53565b82525050565b6000602082019050611f146000830184611ef0565b92915050565b6000611f2582611c33565b9050919050565b611f3581611f1a565b82525050565b6000602082019050611f506000830184611f2c565b92915050565b6000819050919050565b6000611f7b611f76611f7184611c33565b611f56565b611c33565b9050919050565b6000611f8d82611f60565b9050919050565b6000611f9f82611f82565b9050919050565b611faf81611f94565b82525050565b6000602082019050611fca6000830184611fa6565b92915050565b7f50726573616c65206d757374206265206163746976652e000000000000000000600082015250565b6000612006601783611bb1565b915061201182611fd0565b602082019050919050565b6000602082019050818103600083015261203581611ff9565b9050919050565b7f50726573616c6520686173206265656e2063616e63656c6c65642e0000000000600082015250565b6000612072601b83611bb1565b915061207d8261203c565b602082019050919050565b600060208201905081810360008301526120a181612065565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120e282611cbe565b91506120ed83611cbe565b9250828201905080821115612105576121046120a8565b5b92915050565b7f546f6b656e206d757374206e6f74206265207365740000000000000000000000600082015250565b6000612141601583611bb1565b915061214c8261210b565b602082019050919050565b6000602082019050818103600083015261217081612134565b9050919050565b7f43616e206f6e6c7920636c61696d2069662070726573616c652069732066696e60008201527f6973686564000000000000000000000000000000000000000000000000000000602082015250565b60006121d3602583611bb1565b91506121de82612177565b604082019050919050565b60006020820190508181036000830152612202816121c6565b9050919050565b7f43616e206e6f7420636c61696d20696620726566756e6420697320616374697660008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b6000612265602183611bb1565b915061227082612209565b604082019050919050565b6000602082019050818103600083015261229481612258565b9050919050565b7f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b60006122d1601083611bb1565b91506122dc8261229b565b602082019050919050565b60006020820190508181036000830152612300816122c4565b9050919050565b600060408201905061231c6000830185611ef0565b6123296020830184611cc8565b9392505050565b61233981611d7f565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611c2e565b5b600061238084828501612347565b91505092915050565b7f526566756e6420756e617661696c61626c652e00000000000000000000000000600082015250565b60006123bf601383611bb1565b91506123ca82612389565b602082019050919050565b600060208201905081810360008301526123ee816123b2565b9050919050565b7f50726573616c65206d75737420626520696e6163746976652e00000000000000600082015250565b600061242b601983611bb1565b9150612436826123f5565b602082019050919050565b6000602082019050818103600083015261245a8161241e565b9050919050565b7f50726573616c65206973206e6f7420696e697469616c697a6564000000000000600082015250565b6000612497601a83611bb1565b91506124a282612461565b602082019050919050565b600060208201905081810360008301526124c68161248a565b9050919050565b7f496e76616c69642073746172742074696d652e00000000000000000000000000600082015250565b6000612503601383611bb1565b915061250e826124cd565b602082019050919050565b60006020820190508181036000830152612532816124f6565b9050919050565b7f496e76616c696420656e642074696d652e000000000000000000000000000000600082015250565b600061256f601183611bb1565b915061257a82612539565b602082019050919050565b6000602082019050818103600083015261259e81612562565b9050919050565b7f4861726420636170206d7573742062652067726561746572207468616e206f7260008201527f20657175616c20746f20736f6674206361700000000000000000000000000000602082015250565b6000612601603283611bb1565b915061260c826125a5565b604082019050919050565b60006020820190508181036000830152612630816125f4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061267182611cbe565b915061267c83611cbe565b92508261268c5761268b612637565b5b828206905092915050565b7f4861726420636170206d757374206265206d756c7469706c65206f66206d696e60008201527f206275792e000000000000000000000000000000000000000000000000000000602082015250565b60006126f3602583611bb1565b91506126fe82612697565b604082019050919050565b60006020820190508181036000830152612722816126e6565b9050919050565b7f4d696e20627579206d757374206e6f742062652067726561746572207468616e60008201527f206d6178206275792e0000000000000000000000000000000000000000000000602082015250565b6000612785602983611bb1565b915061279082612729565b604082019050919050565b600060208201905081810360008301526127b481612778565b9050919050565b7f4d696e20627579206d7573742065786365656420302e00000000000000000000600082015250565b60006127f1601683611bb1565b91506127fc826127bb565b602082019050919050565b60006020820190508181036000830152612820816127e4565b9050919050565b7f50657263656e74616765206f6e20746765206d757374206265206c6f7765722060008201527f6f7220657175616c20746f203130300000000000000000000000000000000000602082015250565b6000612883602f83611bb1565b915061288e82612827565b604082019050919050565b600060208201905081810360008301526128b281612876565b9050919050565b7f536f667420436170206973206e6f74206d65742e000000000000000000000000600082015250565b60006128ef601483611bb1565b91506128fa826128b9565b602082019050919050565b6000602082019050818103600083015261291e816128e2565b9050919050565b7f43616e206e6f742066696e697368206265666f72652073746172740000000000600082015250565b600061295b601b83611bb1565b915061296682612925565b602082019050919050565b6000602082019050818103600083015261298a8161294e565b9050919050565b7f50726573616c6520697320616c726561647920636c6f7365642e000000000000600082015250565b60006129c7601a83611bb1565b91506129d282612991565b602082019050919050565b600060208201905081810360008301526129f6816129ba565b9050919050565b7f50726573616c6520697320696e20726566756e642070726f636573732e000000600082015250565b6000612a33601d83611bb1565b9150612a3e826129fd565b602082019050919050565b60006020820190508181036000830152612a6281612a26565b9050919050565b7f546f6b656e206d7573742062652073657420746f2066696e6973682073616c65600082015250565b6000612a9f602083611bb1565b9150612aaa82612a69565b602082019050919050565b60006020820190508181036000830152612ace81612a92565b9050919050565b7f53616c652069732066696e69736865642e000000000000000000000000000000600082015250565b6000612b0b601183611bb1565b9150612b1682612ad5565b602082019050919050565b60006020820190508181036000830152612b3a81612afe565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612b9d602683611bb1565b9150612ba882612b41565b604082019050919050565b60006020820190508181036000830152612bcc81612b90565b9050919050565b7f5472616e7366657220746f203020616464726573732e00000000000000000000600082015250565b6000612c09601683611bb1565b9150612c1482612bd3565b602082019050919050565b60006020820190508181036000830152612c3881612bfc565b9050919050565b7f57656920416d6f756e7420697320300000000000000000000000000000000000600082015250565b6000612c75600f83611bb1565b9150612c8082612c3f565b602082019050919050565b60006020820190508181036000830152612ca481612c68565b9050919050565b7f4d696e20627579206973206e6f74206d65742e00000000000000000000000000600082015250565b6000612ce1601383611bb1565b9150612cec82612cab565b602082019050919050565b60006020820190508181036000830152612d1081612cd4565b9050919050565b7f506c65617365206f6e6c792062757920696e20696e6372656d656e7473206f6660008201527f20746865206d696e696d756d2062757900000000000000000000000000000000602082015250565b6000612d73603083611bb1565b9150612d7e82612d17565b604082019050919050565b60006020820190508181036000830152612da281612d66565b9050919050565b7f4d617820627579206c696d69742065786365656465642e000000000000000000600082015250565b6000612ddf601783611bb1565b9150612dea82612da9565b602082019050919050565b60006020820190508181036000830152612e0e81612dd2565b9050919050565b7f484320526561636865642e000000000000000000000000000000000000000000600082015250565b6000612e4b600b83611bb1565b9150612e5682612e15565b602082019050919050565b60006020820190508181036000830152612e7a81612e3e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612eb7602083611bb1565b9150612ec282612e81565b602082019050919050565b60006020820190508181036000830152612ee681612eaa565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612f23601f83611bb1565b9150612f2e82612eed565b602082019050919050565b60006020820190508181036000830152612f5281612f16565b9050919050565b6000612f6482611cbe565b9150612f6f83611cbe565b9250828202612f7d81611cbe565b91508282048414831517612f9457612f936120a8565b5b5092915050565b6000612fa682611cbe565b9150612fb183611cbe565b925082612fc157612fc0612637565b5b828204905092915050565b6000612fd782611cbe565b9150612fe283611cbe565b9250828203905081811115612ffa57612ff96120a8565b5b92915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613036601d83611bb1565b915061304182613000565b602082019050919050565b6000602082019050818103600083015261306581613029565b9050919050565b600081905092915050565b50565b600061308760008361306c565b915061309282613077565b600082019050919050565b60006130a88261307a565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061310e603a83611bb1565b9150613119826130b2565b604082019050919050565b6000602082019050818103600083015261313d81613101565b905091905056fea2646970667358221220c920d6f14a0231ee8172837cc0ca52ab1e88fafea1f19906065b0af5fa0fe97064736f6c63430008130033

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  ]
[ 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.