ETH Price: $2,005.60 (+3.05%)

Contract

0x8201fc2aCBCD3AeE7Df8aD1CD19cc17fCc24945c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Harvest175354852023-06-22 13:34:35990 days ago1687440875IN
0x8201fc2a...fCc24945c
0 ETH0.001023724.38093517
Harvest171443882023-04-28 11:40:591046 days ago1682682059IN
0x8201fc2a...fCc24945c
0 ETH0.0032853338.83931041
Harvest169501312023-03-31 22:24:231073 days ago1680301463IN
0x8201fc2a...fCc24945c
0 ETH0.0019683929.16666607
Harvest163394652023-01-05 8:41:471159 days ago1672908107IN
0x8201fc2a...fCc24945c
0 ETH0.0007200314.28990009
Harvest162845012022-12-28 16:39:111166 days ago1672245551IN
0x8201fc2a...fCc24945c
0 ETH0.0007341617.48505862
Harvest160754752022-11-29 11:53:111196 days ago1669722791IN
0x8201fc2a...fCc24945c
0 ETH0.0005078312.09486095
Harvest158472122022-10-28 14:39:111227 days ago1666967951IN
0x8201fc2a...fCc24945c
0 ETH0.0007770618.50677597
Harvest156324872022-09-28 14:39:111257 days ago1664375951IN
0x8201fc2a...fCc24945c
0 ETH0.0008145219.39905908
Harvest155262092022-09-13 9:44:421273 days ago1663062282IN
0x8201fc2a...fCc24945c
0 ETH0.0009732311.50560051
Harvest155262012022-09-13 9:43:281273 days ago1663062208IN
0x8201fc2a...fCc24945c
0 ETH0.0005583913.29888319
Harvest154283662022-08-28 14:39:041288 days ago1661697544IN
0x8201fc2a...fCc24945c
0 ETH0.0006498215.47637016
Harvest152706392022-08-03 16:55:361313 days ago1659545736IN
0x8201fc2a...fCc24945c
0 ETH0.0005473313.03562167
Harvest152532822022-07-31 23:53:061316 days ago1659311586IN
0x8201fc2a...fCc24945c
0 ETH0.000367948.7631093
Harvest150547132022-07-01 5:23:541347 days ago1656653034IN
0x8201fc2a...fCc24945c
0 ETH0.0008144819.39800245
Harvest150401522022-06-28 14:38:531349 days ago1656427133IN
0x8201fc2a...fCc24945c
0 ETH0.0015691937.3725802
Harvest150367182022-06-27 22:56:271350 days ago1656370587IN
0x8201fc2a...fCc24945c
0 ETH0.0028281756.12787789
Harvest149728652022-06-16 10:43:341362 days ago1655376214IN
0x8201fc2a...fCc24945c
0 ETH0.0017202140.96917497
Harvest149653232022-06-15 3:18:361363 days ago1655263116IN
0x8201fc2a...fCc24945c
0 ETH0.0011160526.58026289
Harvest148608422022-05-28 14:39:011380 days ago1653748741IN
0x8201fc2a...fCc24945c
0 ETH0.0007828518.64480582
Harvest148545242022-05-27 13:55:221381 days ago1653659722IN
0x8201fc2a...fCc24945c
0 ETH0.0044692266.22255801
Harvest148409132022-05-25 8:46:071384 days ago1653468367IN
0x8201fc2a...fCc24945c
0 ETH0.0007221117.19819608
Harvest147197712022-05-05 22:10:481403 days ago1651788648IN
0x8201fc2a...fCc24945c
0 ETH0.0035005551.86922596
Harvest146980552022-05-02 11:37:381407 days ago1651491458IN
0x8201fc2a...fCc24945c
0 ETH0.0033833167.1453064
Harvest146734222022-04-28 14:38:401410 days ago1651156720IN
0x8201fc2a...fCc24945c
0 ETH0.0026867563.98856368
Harvest146723512022-04-28 10:33:591411 days ago1651142039IN
0x8201fc2a...fCc24945c
0 ETH0.0015199830.16567948
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PrivateVesting

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "./TriallToken.sol";

contract PrivateVesting is Ownable {
    using Math for uint256;
    using SafeERC20 for TriallToken;

    event Harvest(address indexed sender, uint256 amount);
    event SetWhitelist(address[] users, uint256[] allocation);
    event SetTGE(uint256 time);

    uint256 public constant MAX_INITIAL_PERCENTAGE = 1e20;
    bool public isBurned;
    uint256 public startDate;
    mapping(address => uint256) public rewardsPaid;
    mapping(address => uint256) public deposited;

    TriallToken private immutable _rewardToken;
    uint256 private immutable _initialPercentage;
    uint256 private immutable _countPeriodOfVesting;

    string private _name;
    uint256 private _tokenPrice;
    uint256 private _totalSupply;
    uint256 private _totalDeposited;

    constructor(
        string memory name_,
        address rewardToken_,
        uint256 initialUnlockPercentage_,
        uint256 vestingNumberMonth_
    ) {
        require(rewardToken_ != address(0), "Incorrect token address");
        require(vestingNumberMonth_ > 0, "Incorrect amount");
        require(
            initialUnlockPercentage_ <= MAX_INITIAL_PERCENTAGE,
            "Incorrect initial percentage"
        );

        _name = name_;
        _initialPercentage = initialUnlockPercentage_;
        _countPeriodOfVesting = vestingNumberMonth_;

        _rewardToken = TriallToken(rewardToken_);
    }

    function getInfo()
        external
        view
        returns (
            string memory name,
            address rewardTokem,
            uint256 totalSupply,
            uint256 totalDeposited,
            uint256 tokenPrice,
            uint256 initialUnlockPercentage,
            uint256 countPeriodOfVesting
        )
    {
        return (
            _name,
            address(_rewardToken),
            _totalSupply,
            _totalDeposited,
            _tokenPrice,
            _initialPercentage,
            _countPeriodOfVesting
        );
    }

    function getBalanceInfo(address _addr)
        external
        view
        returns (uint256 lockedBalance, uint256 unlockedBalance)
    {
        if (!_isVestingStarted()) {
            return (deposited[_addr], 0);
        }

        uint256 unlock = _calculateUnlock(_addr);
        return (deposited[_addr] - unlock - rewardsPaid[_addr], unlock);
    }

    function setWhitelist(
        address[] calldata _addr,
        uint256[] calldata _tokenAmount
    ) external onlyOwner {
        require(!_isVestingStarted(), "Vesting can be started");
        require(_addr.length == _tokenAmount.length, "Incorrect array length");

        for (uint256 index = 0; index < _addr.length; index++) {
            if (deposited[_addr[index]] > 0) {
                _totalDeposited -= deposited[_addr[index]];
            }

            _totalDeposited += _tokenAmount[index];

            require(
                _totalDeposited <= _totalSupply,
                "Can't be more then totalSupply"
            );

            deposited[_addr[index]] = _tokenAmount[index];
        }
        emit SetWhitelist(_addr, _tokenAmount);
    }

    function initializeToken(uint256 tokenPrice_, uint256 totalSypply_)
        external
        onlyOwner
    {
        require(_tokenPrice == 0, "Is was initialized before");
        require(totalSypply_ > 0 && tokenPrice_ > 0, "Incorrect amount");

        _tokenPrice = tokenPrice_;
        _totalSupply = totalSypply_;

        _rewardToken.safeTransferFrom(msg.sender, address(this), totalSypply_);
    }

    function setTGE(uint256 _tge) external onlyOwner {
        require(startDate == 0 && _tge != 0, "TGE is set or zero");
        startDate = _tge;
        emit SetTGE(_tge);
    }

    function burnUnsoldToken() external onlyOwner {
        require(startDate != 0, "Vesting can't be started");
        require(!isBurned, "Burned was called before");
        isBurned = true;
        _rewardToken.burn(_totalSupply - _totalDeposited);
    }

    function harvest() external {
        require(_isVestingStarted(), "Vesting can't be started");

        uint256 amountToTransfer = _calculateUnlock(msg.sender);

        rewardsPaid[msg.sender] += amountToTransfer;

        _rewardToken.safeTransfer(msg.sender, amountToTransfer);

        emit Harvest(msg.sender, amountToTransfer);
    }

    function _calculateUnlock(address _addr) internal view returns (uint256) {
        uint256 tokenAmount = deposited[_addr];

        uint256 initialUnlockAmount = (tokenAmount * _initialPercentage) /
            MAX_INITIAL_PERCENTAGE;

        uint256 passeMonth = Math.min(
            (block.timestamp - startDate) / 30 days,
            _countPeriodOfVesting
        );
        return
            (((tokenAmount - initialUnlockAmount) * passeMonth) /
                _countPeriodOfVesting) +
            initialUnlockAmount -
            rewardsPaid[_addr];
    }

    function _isVestingStarted() internal view returns (bool) {
        return block.timestamp > startDate && startDate != 0;
    }
}

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract TriallToken is ERC20Burnable, Ownable {
    uint256 constant TOTAL_SUPPLY = 175_000_000 * 1e18;

    constructor(address tokenReceiver) ERC20("Triall", "TRL") {
        _mint(tokenReceiver, TOTAL_SUPPLY);
    }

    function mint(address _addr, uint256 _amount) external onlyOwner {
        _mint(_addr, _amount);
    }
}

// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// SPDX-License-Identifier: MIT

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute.
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"address","name":"rewardToken_","type":"address"},{"internalType":"uint256","name":"initialUnlockPercentage_","type":"uint256"},{"internalType":"uint256","name":"vestingNumberMonth_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","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":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"SetTGE","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"users","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"allocation","type":"uint256[]"}],"name":"SetWhitelist","type":"event"},{"inputs":[],"name":"MAX_INITIAL_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnUnsoldToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getBalanceInfo","outputs":[{"internalType":"uint256","name":"lockedBalance","type":"uint256"},{"internalType":"uint256","name":"unlockedBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInfo","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"rewardTokem","type":"address"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"totalDeposited","type":"uint256"},{"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercentage","type":"uint256"},{"internalType":"uint256","name":"countPeriodOfVesting","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice_","type":"uint256"},{"internalType":"uint256","name":"totalSypply_","type":"uint256"}],"name":"initializeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isBurned","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardsPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tge","type":"uint256"}],"name":"setTGE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addr","type":"address[]"},{"internalType":"uint256[]","name":"_tokenAmount","type":"uint256[]"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b506040516200186f3803806200186f833981016040819052620000349162000284565b6200003f3362000171565b6001600160a01b0383166200009b5760405162461bcd60e51b815260206004820152601760248201527f496e636f727265637420746f6b656e206164647265737300000000000000000060448201526064015b60405180910390fd5b60008111620000e05760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b604482015260640162000092565b68056bc75e2d631000008211156200013b5760405162461bcd60e51b815260206004820152601c60248201527f496e636f727265637420696e697469616c2070657263656e7461676500000000604482015260640162000092565b835162000150906004906020870190620001c1565b5060a09190915260c05260601b6001600160601b03191660805250620003d2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001cf906200037f565b90600052602060002090601f016020900481019282620001f357600085556200023e565b82601f106200020e57805160ff19168380011785556200023e565b828001600101855582156200023e579182015b828111156200023e57825182559160200191906001019062000221565b506200024c92915062000250565b5090565b5b808211156200024c576000815560010162000251565b80516001600160a01b03811681146200027f57600080fd5b919050565b600080600080608085870312156200029a578384fd5b84516001600160401b0380821115620002b1578586fd5b818701915087601f830112620002c5578586fd5b815181811115620002da57620002da620003bc565b604051601f8201601f19908116603f01168101908382118183101715620003055762000305620003bc565b81604052828152602093508a8484870101111562000321578889fd5b8891505b8282101562000344578482018401518183018501529083019062000325565b828211156200035557888484830101525b97506200036791505087820162000267565b60408801516060909801519699909850945050505050565b600181811c908216806200039457607f821691505b60208210811415620003b657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160c0516114406200042f6000396000818161041b01528181610c780152610cbb0152600081816103fa0152610c24015260008181610362015281816103d0015281816105f30152610a0f01526114406000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063c34da17c11610097578063f013e0e111610066578063f013e0e11461020d578063f0baa67314610220578063f2fde38b14610228578063ff1a318d1461023b57600080fd5b8063c34da17c146101a6578063cb13cddb146101ca578063d2f400bb146101ea578063d607b5c6146101fa57600080fd5b80635a9b0b89116100d35780635a9b0b8914610148578063700a4a7414610163578063715018a6146101835780638da5cb5b1461018b57600080fd5b80630b97bc86146100fa57806339adac4d146101165780634641257d1461013e575b600080fd5b61010360015481565b6040519081526020015b60405180910390f35b6101296101243660046110ce565b61024e565b6040805192835260208301919091520161010d565b6101466102cc565b005b6101506103c1565b60405161010d9796959493929190611282565b6101036101713660046110ce565b60026020526000908152604090205481565b6101466104dd565b6000546040516001600160a01b03909116815260200161010d565b6000546101ba90600160a01b900460ff1681565b604051901515815260200161010d565b6101036101d83660046110ce565b60036020526000908152604090205481565b61010368056bc75e2d6310000081565b610146610208366004611189565b610513565b61014661021b3660046110e8565b61061f565b61014661091e565b6101466102363660046110ce565b610a92565b610146610249366004611171565b610b2d565b600080610259610be2565b61027a5750506001600160a01b031660009081526003602052604081205491565b600061028584610bfb565b6001600160a01b038516600090815260026020908152604080832054600390925290912054919250906102b990839061135b565b6102c3919061135b565b94909350915050565b6102d4610be2565b6103205760405162461bcd60e51b815260206004820152601860248201527715995cdd1a5b99c818d85b89dd081899481cdd185c9d195960421b60448201526064015b60405180910390fd5b600061032b33610bfb565b3360009081526002602052604081208054929350839290919061034f908490611304565b9091555061038990506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610d16565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a250565b606060008060008060008060047f00000000000000000000000000000000000000000000000000000000000000006006546007546005547f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008680546104469061139e565b80601f01602080910402602001604051908101604052809291908181526020018280546104729061139e565b80156104bf5780601f10610494576101008083540402835291602001916104bf565b820191906000526020600020905b8154815290600101906020018083116104a257829003601f168201915b50505050509650965096509650965096509650965090919293949596565b6000546001600160a01b031633146105075760405162461bcd60e51b8152600401610317906112cf565b6105116000610d7e565b565b6000546001600160a01b0316331461053d5760405162461bcd60e51b8152600401610317906112cf565b6005541561058d5760405162461bcd60e51b815260206004820152601960248201527f49732077617320696e697469616c697a6564206265666f7265000000000000006044820152606401610317565b60008111801561059d5750600082115b6105dc5760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b6044820152606401610317565b6005829055600681905561061b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610dce565b5050565b6000546001600160a01b031633146106495760405162461bcd60e51b8152600401610317906112cf565b610651610be2565b156106975760405162461bcd60e51b815260206004820152601660248201527515995cdd1a5b99c818d85b881899481cdd185c9d195960521b6044820152606401610317565b8281146106df5760405162461bcd60e51b8152602060048201526016602482015275092dcc6dee4e4cac6e840c2e4e4c2f240d8cadccee8d60531b6044820152606401610317565b60005b838110156108da5760006003600087878581811061071057634e487b7160e01b600052603260045260246000fd5b905060200201602081019061072591906110ce565b6001600160a01b03166001600160a01b031681526020019081526020016000205411156107bd576003600086868481811061077057634e487b7160e01b600052603260045260246000fd5b905060200201602081019061078591906110ce565b6001600160a01b03166001600160a01b0316815260200190815260200160002054600760008282546107b7919061135b565b90915550505b8282828181106107dd57634e487b7160e01b600052603260045260246000fd5b90506020020135600760008282546107f59190611304565b9091555050600654600754111561084e5760405162461bcd60e51b815260206004820152601e60248201527f43616e2774206265206d6f7265207468656e20746f74616c537570706c7900006044820152606401610317565b82828281811061086e57634e487b7160e01b600052603260045260246000fd5b905060200201356003600087878581811061089957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108ae91906110ce565b6001600160a01b03168152602081019190915260400160002055806108d2816113d9565b9150506106e2565b507f03a5d97eaa6b3bc1e6457e8134b894c58aceaafaabdd550a4bc138d66ac2322d8484848460405161091094939291906111f2565b60405180910390a150505050565b6000546001600160a01b031633146109485760405162461bcd60e51b8152600401610317906112cf565b6001546109925760405162461bcd60e51b815260206004820152601860248201527715995cdd1a5b99c818d85b89dd081899481cdd185c9d195960421b6044820152606401610317565b600054600160a01b900460ff16156109ec5760405162461bcd60e51b815260206004820152601860248201527f4275726e6564207761732063616c6c6564206265666f726500000000000000006044820152606401610317565b6000805460ff60a01b1916600160a01b1790556007546006546001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916342966c6891610a40919061135b565b6040518263ffffffff1660e01b8152600401610a5e91815260200190565b600060405180830381600087803b158015610a7857600080fd5b505af1158015610a8c573d6000803e3d6000fd5b50505050565b6000546001600160a01b03163314610abc5760405162461bcd60e51b8152600401610317906112cf565b6001600160a01b038116610b215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610317565b610b2a81610d7e565b50565b6000546001600160a01b03163314610b575760405162461bcd60e51b8152600401610317906112cf565b600154158015610b6657508015155b610ba75760405162461bcd60e51b815260206004820152601260248201527154474520697320736574206f72207a65726f60701b6044820152606401610317565b60018190556040518181527f9ff6fdd7fb2b14a46b8be419cf5d0e2cca5df2d8baff946e6665e570123739559060200160405180910390a150565b600060015442118015610bf6575060015415155b905090565b6001600160a01b0381166000908152600360205260408120548168056bc75e2d63100000610c497f00000000000000000000000000000000000000000000000000000000000000008461133c565b610c53919061131c565b90506000610c9c62278d0060015442610c6c919061135b565b610c76919061131c565b7f0000000000000000000000000000000000000000000000000000000000000000610e06565b6001600160a01b038616600090815260026020526040902054909150827f000000000000000000000000000000000000000000000000000000000000000083610ce5838861135b565b610cef919061133c565b610cf9919061131c565b610d039190611304565b610d0d919061135b565b95945050505050565b6040516001600160a01b038316602482015260448101829052610d7990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e1e565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a8c9085906323b872dd60e01b90608401610d42565b6000818310610e155781610e17565b825b9392505050565b6000610e73826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ef09092919063ffffffff16565b805190915015610d795780806020019051810190610e919190611151565b610d795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610317565b6060610eff8484600085610f07565b949350505050565b606082471015610f685760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610317565b843b610fb65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610317565b600080866001600160a01b03168587604051610fd291906111d6565b60006040518083038185875af1925050503d806000811461100f576040519150601f19603f3d011682016040523d82523d6000602084013e611014565b606091505b509150915061102482828661102f565b979650505050505050565b6060831561103e575081610e17565b82511561104e5782518084602001fd5b8160405162461bcd60e51b8152600401610317919061126f565b80356001600160a01b038116811461107f57600080fd5b919050565b60008083601f840112611095578182fd5b50813567ffffffffffffffff8111156110ac578182fd5b6020830191508360208260051b85010111156110c757600080fd5b9250929050565b6000602082840312156110df578081fd5b610e1782611068565b600080600080604085870312156110fd578283fd5b843567ffffffffffffffff80821115611114578485fd5b61112088838901611084565b90965094506020870135915080821115611138578384fd5b5061114587828801611084565b95989497509550505050565b600060208284031215611162578081fd5b81518015158114610e17578182fd5b600060208284031215611182578081fd5b5035919050565b6000806040838503121561119b578182fd5b50508035926020909101359150565b600081518084526111c2816020860160208601611372565b601f01601f19169290920160200192915050565b600082516111e8818460208701611372565b9190910192915050565b6040808252810184905260008560608301825b87811015611233576001600160a01b0361121e84611068565b16825260209283019290910190600101611205565b5083810360208501528481526001600160fb1b03851115611252578283fd5b8460051b9150818660208301370160200190815295945050505050565b602081526000610e1760208301846111aa565b60e08152600061129560e083018a6111aa565b6001600160a01b039890981660208301525060408101959095526060850193909352608084019190915260a083015260c090910152919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611317576113176113f4565b500190565b60008261133757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611356576113566113f4565b500290565b60008282101561136d5761136d6113f4565b500390565b60005b8381101561138d578181015183820152602001611375565b83811115610a8c5750506000910152565b600181811c908216806113b257607f821691505b602082108114156113d357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156113ed576113ed6113f4565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122062f728e52e2b72a0c791be48696c18f300fb3b615b9c4f616ae3e282c7c6278464736f6c63430008040033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec4100000000000000000000000000000000000000000000000029a2241af62c0000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000075072697661746500000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063c34da17c11610097578063f013e0e111610066578063f013e0e11461020d578063f0baa67314610220578063f2fde38b14610228578063ff1a318d1461023b57600080fd5b8063c34da17c146101a6578063cb13cddb146101ca578063d2f400bb146101ea578063d607b5c6146101fa57600080fd5b80635a9b0b89116100d35780635a9b0b8914610148578063700a4a7414610163578063715018a6146101835780638da5cb5b1461018b57600080fd5b80630b97bc86146100fa57806339adac4d146101165780634641257d1461013e575b600080fd5b61010360015481565b6040519081526020015b60405180910390f35b6101296101243660046110ce565b61024e565b6040805192835260208301919091520161010d565b6101466102cc565b005b6101506103c1565b60405161010d9796959493929190611282565b6101036101713660046110ce565b60026020526000908152604090205481565b6101466104dd565b6000546040516001600160a01b03909116815260200161010d565b6000546101ba90600160a01b900460ff1681565b604051901515815260200161010d565b6101036101d83660046110ce565b60036020526000908152604090205481565b61010368056bc75e2d6310000081565b610146610208366004611189565b610513565b61014661021b3660046110e8565b61061f565b61014661091e565b6101466102363660046110ce565b610a92565b610146610249366004611171565b610b2d565b600080610259610be2565b61027a5750506001600160a01b031660009081526003602052604081205491565b600061028584610bfb565b6001600160a01b038516600090815260026020908152604080832054600390925290912054919250906102b990839061135b565b6102c3919061135b565b94909350915050565b6102d4610be2565b6103205760405162461bcd60e51b815260206004820152601860248201527715995cdd1a5b99c818d85b89dd081899481cdd185c9d195960421b60448201526064015b60405180910390fd5b600061032b33610bfb565b3360009081526002602052604081208054929350839290919061034f908490611304565b9091555061038990506001600160a01b037f00000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec41163383610d16565b60405181815233907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a250565b606060008060008060008060047f00000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec416006546007546005547f00000000000000000000000000000000000000000000000029a2241af62c00007f00000000000000000000000000000000000000000000000000000000000000068680546104469061139e565b80601f01602080910402602001604051908101604052809291908181526020018280546104729061139e565b80156104bf5780601f10610494576101008083540402835291602001916104bf565b820191906000526020600020905b8154815290600101906020018083116104a257829003601f168201915b50505050509650965096509650965096509650965090919293949596565b6000546001600160a01b031633146105075760405162461bcd60e51b8152600401610317906112cf565b6105116000610d7e565b565b6000546001600160a01b0316331461053d5760405162461bcd60e51b8152600401610317906112cf565b6005541561058d5760405162461bcd60e51b815260206004820152601960248201527f49732077617320696e697469616c697a6564206265666f7265000000000000006044820152606401610317565b60008111801561059d5750600082115b6105dc5760405162461bcd60e51b815260206004820152601060248201526f125b98dbdc9c9958dd08185b5bdd5b9d60821b6044820152606401610317565b6005829055600681905561061b6001600160a01b037f00000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec4116333084610dce565b5050565b6000546001600160a01b031633146106495760405162461bcd60e51b8152600401610317906112cf565b610651610be2565b156106975760405162461bcd60e51b815260206004820152601660248201527515995cdd1a5b99c818d85b881899481cdd185c9d195960521b6044820152606401610317565b8281146106df5760405162461bcd60e51b8152602060048201526016602482015275092dcc6dee4e4cac6e840c2e4e4c2f240d8cadccee8d60531b6044820152606401610317565b60005b838110156108da5760006003600087878581811061071057634e487b7160e01b600052603260045260246000fd5b905060200201602081019061072591906110ce565b6001600160a01b03166001600160a01b031681526020019081526020016000205411156107bd576003600086868481811061077057634e487b7160e01b600052603260045260246000fd5b905060200201602081019061078591906110ce565b6001600160a01b03166001600160a01b0316815260200190815260200160002054600760008282546107b7919061135b565b90915550505b8282828181106107dd57634e487b7160e01b600052603260045260246000fd5b90506020020135600760008282546107f59190611304565b9091555050600654600754111561084e5760405162461bcd60e51b815260206004820152601e60248201527f43616e2774206265206d6f7265207468656e20746f74616c537570706c7900006044820152606401610317565b82828281811061086e57634e487b7160e01b600052603260045260246000fd5b905060200201356003600087878581811061089957634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108ae91906110ce565b6001600160a01b03168152602081019190915260400160002055806108d2816113d9565b9150506106e2565b507f03a5d97eaa6b3bc1e6457e8134b894c58aceaafaabdd550a4bc138d66ac2322d8484848460405161091094939291906111f2565b60405180910390a150505050565b6000546001600160a01b031633146109485760405162461bcd60e51b8152600401610317906112cf565b6001546109925760405162461bcd60e51b815260206004820152601860248201527715995cdd1a5b99c818d85b89dd081899481cdd185c9d195960421b6044820152606401610317565b600054600160a01b900460ff16156109ec5760405162461bcd60e51b815260206004820152601860248201527f4275726e6564207761732063616c6c6564206265666f726500000000000000006044820152606401610317565b6000805460ff60a01b1916600160a01b1790556007546006546001600160a01b037f00000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec4116916342966c6891610a40919061135b565b6040518263ffffffff1660e01b8152600401610a5e91815260200190565b600060405180830381600087803b158015610a7857600080fd5b505af1158015610a8c573d6000803e3d6000fd5b50505050565b6000546001600160a01b03163314610abc5760405162461bcd60e51b8152600401610317906112cf565b6001600160a01b038116610b215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610317565b610b2a81610d7e565b50565b6000546001600160a01b03163314610b575760405162461bcd60e51b8152600401610317906112cf565b600154158015610b6657508015155b610ba75760405162461bcd60e51b815260206004820152601260248201527154474520697320736574206f72207a65726f60701b6044820152606401610317565b60018190556040518181527f9ff6fdd7fb2b14a46b8be419cf5d0e2cca5df2d8baff946e6665e570123739559060200160405180910390a150565b600060015442118015610bf6575060015415155b905090565b6001600160a01b0381166000908152600360205260408120548168056bc75e2d63100000610c497f00000000000000000000000000000000000000000000000029a2241af62c00008461133c565b610c53919061131c565b90506000610c9c62278d0060015442610c6c919061135b565b610c76919061131c565b7f0000000000000000000000000000000000000000000000000000000000000006610e06565b6001600160a01b038616600090815260026020526040902054909150827f000000000000000000000000000000000000000000000000000000000000000683610ce5838861135b565b610cef919061133c565b610cf9919061131c565b610d039190611304565b610d0d919061135b565b95945050505050565b6040516001600160a01b038316602482015260448101829052610d7990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610e1e565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a8c9085906323b872dd60e01b90608401610d42565b6000818310610e155781610e17565b825b9392505050565b6000610e73826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610ef09092919063ffffffff16565b805190915015610d795780806020019051810190610e919190611151565b610d795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610317565b6060610eff8484600085610f07565b949350505050565b606082471015610f685760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610317565b843b610fb65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610317565b600080866001600160a01b03168587604051610fd291906111d6565b60006040518083038185875af1925050503d806000811461100f576040519150601f19603f3d011682016040523d82523d6000602084013e611014565b606091505b509150915061102482828661102f565b979650505050505050565b6060831561103e575081610e17565b82511561104e5782518084602001fd5b8160405162461bcd60e51b8152600401610317919061126f565b80356001600160a01b038116811461107f57600080fd5b919050565b60008083601f840112611095578182fd5b50813567ffffffffffffffff8111156110ac578182fd5b6020830191508360208260051b85010111156110c757600080fd5b9250929050565b6000602082840312156110df578081fd5b610e1782611068565b600080600080604085870312156110fd578283fd5b843567ffffffffffffffff80821115611114578485fd5b61112088838901611084565b90965094506020870135915080821115611138578384fd5b5061114587828801611084565b95989497509550505050565b600060208284031215611162578081fd5b81518015158114610e17578182fd5b600060208284031215611182578081fd5b5035919050565b6000806040838503121561119b578182fd5b50508035926020909101359150565b600081518084526111c2816020860160208601611372565b601f01601f19169290920160200192915050565b600082516111e8818460208701611372565b9190910192915050565b6040808252810184905260008560608301825b87811015611233576001600160a01b0361121e84611068565b16825260209283019290910190600101611205565b5083810360208501528481526001600160fb1b03851115611252578283fd5b8460051b9150818660208301370160200190815295945050505050565b602081526000610e1760208301846111aa565b60e08152600061129560e083018a6111aa565b6001600160a01b039890981660208301525060408101959095526060850193909352608084019190915260a083015260c090910152919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611317576113176113f4565b500190565b60008261133757634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611356576113566113f4565b500290565b60008282101561136d5761136d6113f4565b500390565b60005b8381101561138d578181015183820152602001611375565b83811115610a8c5750506000910152565b600181811c908216806113b257607f821691505b602082108114156113d357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156113ed576113ed6113f4565b5060010190565b634e487b7160e01b600052601160045260246000fdfea264697066735822122062f728e52e2b72a0c791be48696c18f300fb3b615b9c4f616ae3e282c7c6278464736f6c63430008040033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec4100000000000000000000000000000000000000000000000029a2241af62c0000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000075072697661746500000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Private
Arg [1] : rewardToken_ (address): 0x58f9102bF53Cf186682Bd9a281d3Cd3c616eEc41
Arg [2] : initialUnlockPercentage_ (uint256): 3000000000000000000
Arg [3] : vestingNumberMonth_ (uint256): 6

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000058f9102bf53cf186682bd9a281d3cd3c616eec41
Arg [2] : 00000000000000000000000000000000000000000000000029a2241af62c0000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 5072697661746500000000000000000000000000000000000000000000000000


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.