Address io14wdutjy8x5a22w2k3ees4krfdscgnkq8hcy5ay

Contract Overview

Balance:
0 IOTX

IOTX Value:
$ 0

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
02add26fcc94b3dd32db33d4827c1e6a19154a1fa726682833fd4c86af1d45a3 29506837 2024-04-16 10:50:25 +0000 UTC 3 days ago io1f2wq3ltwx8z3ewsks5cn9fnf5f9gf9s40f8562  IN    Contract: Vesting 0 IOTX 0.132112
88f0f2b339320bf1b3a527f73aa260f7eaf9fcdfa6664174bcfe276da906ba96 29426347 2024-04-11 18:58:25 +0000 UTC 8 days ago io15heae9d49jgmpnypetwsky7ekeud4uznvk0m4w  IN    Contract: Vesting 0 IOTX 0.097912
f59ebd8d302cafdc594a6792802bf843cb6f7d0ed4966bd876f31a1e32116a49 28866729 2024-03-10 08:59:50 +0000 UTC one month ago io1wrlnk9lpcgepet3pke2d9efeutjnj3dg3kklha  IN    Contract: Vesting 0 IOTX 0.24478
67c00cd20a7e78f2e2e39dbe3febcb95126c324539c7f77da43fe3d81cb3702b 28421548 2024-02-13 12:50:55 +0000 UTC 2 months ago io1yfmzv605as28tus25zg7z35mpk3sw0nzvmvsuw  IN    Contract: Vesting 0 IOTX 0.33028
ca659e78060ddb2f9c6d73fb694ed84879dce2cd18724642f4d3566d2f0bbdc1 28421422 2024-02-13 12:40:25 +0000 UTC 2 months ago io1h7jg9y0cfd0zjashnllf0aq26tp6n6w8vcc7kj  IN    Contract: Vesting 0 IOTX 0.33028
2e81701c3e11cfb2626533694e0304420e78048d229ca42c55ca4220b2956ec1 27924408 2024-01-15 17:54:55 +0000 UTC 3 months ago io1emsmpyrxuzl7auteddzcwf70mqnuy4caj4rsl8  IN    Contract: Vesting 0 IOTX 0.33028
d491f8f22ab9892b7554fda70e2e9a03fd1d0de4f3af9415e17242ac663525c1 27834054 2024-01-10 12:24:45 +0000 UTC 3 months ago io1gulqey562y70wfjj7838rft2fsl2lvvu8u3adf  IN    Contract: Vesting 0 IOTX 0.33028
f7ded1cda319beee1b9f164ed78f7392bc2e9e778b693b51890994a5e0bb4a05 27834028 2024-01-10 12:22:35 +0000 UTC 3 months ago io12da82mx9nhvu00z7p08x6zp643g0kxj39s7syx  IN    Contract: Vesting 0 IOTX 0.33028
497056d434c1caca1f31d95c4afc15488d22eb23aefac0b1313387e993f1a2e5 27561262 2023-12-25 16:16:25 +0000 UTC 4 months ago io194s9j58hdr3p88ur3ueq2hjekm2usm7725un6v  IN    Contract: Vesting 0 IOTX 0.33028
84f7d5ed9d98baa2d12de2cbc1a9de4e7fafe744f13f8d5a0e993b7ee6f1343d 26270440 2023-10-11 20:42:35 +0000 UTC 6 months ago io1xzderxeuskhsmwfusxpaxzkz99kza966f9v4e4  IN    Contract: Vesting 0 IOTX 0.100256
2085220cd3f5256351ee364212961ff61e31ff5a088cd887d2d7558a0aabdcd6 24480551 2023-06-30 06:04:25 +0000 UTC 10 months ago io182pt9487uxll67scle5n9ex33kl7tz28y7c5p5  IN    Contract: Vesting 0 IOTX 0.066056
d88a8f543c9fa9982c5822f4f14547bb1cd5497c421c557e0f805408ce643255 23944001 2023-05-30 04:44:35 +0000 UTC 11 months ago io1k9fxvx4zpkt5w0tzqaamqpunjsmmju0pwee5z3  IN    Contract: Vesting 0 IOTX 0.066056
f5b80683e7cca6fbcaaf035d531e45bfd54f8d949187ea1528b2fd009e262e3c 23018964 2023-04-06 15:09:15 +0000 UTC one year ago io1cjnu22pw02esej4h7k6tthf5yndrgwkyttdaxq  IN    Contract: Vesting 0 IOTX 0.048956
f1b077e5c734d6d07b465263b675489f0eda2b2e7631ecf6eb2cda046d2b8521 22308850 2023-02-24 09:28:50 +0000 UTC one year ago io1u5ylqyvsylqej0es0cr8wpq83t5v0ksefjrjxp  IN    Contract: Vesting 0 IOTX 0.066056
0f22f0112409172f14884aa4650d10d7abc7c9a04938ea11452cb6361d7557bd 22238502 2023-02-20 07:45:55 +0000 UTC one year ago io1jnnq9k3ys27zzu8esv5gsm37ar246zh0vm3p5v  IN    Contract: Vesting 0 IOTX 0.066056
66896ab67d1be7e857c3f84eb1af7fc8be4a80babe612d9885f6005de6ea2cbe 22166422 2023-02-16 03:38:25 +0000 UTC one year ago io1rmjzpw0f8267tlgypmntjg6q0ky0r8w97rzzj2  IN    Contract: Vesting 0 IOTX 0.066056
db31a9f7d80735422d4d1b7582ea94230d88c50aec60296801f2ab0719d8f6b0 22057409 2023-02-09 20:13:10 +0000 UTC one year ago io18twp7cyyd6f909j8jt9g3aw3kuagt2swva2m6m  IN    Contract: Vesting 0 IOTX 0.066056
bc57f4b18d8677ab07503f3a4099a88a81f57bfa4d11d38a554d9e4be46bc1e0 22054021 2023-02-09 15:30:50 +0000 UTC one year ago io1r9ar4xmxpllhfxz4gcyqchdv3d47ye38lkq2sc  IN    Contract: Vesting 0 IOTX 0.048956
2586c196d53057b19408919752f102816a80cc2ba177ad2e69f8c4804f26e7b3 21970374 2023-02-04 18:45:10 +0000 UTC one year ago io1euxx6jfn9ku9e7rkhaj38wsellevkc0ud453s3  IN    Contract: Vesting 0 IOTX 0.066056
444b2b0474a64bb94b9fa3af39b46d8305c7c72dd44779ee8bae2b90b8b0be07 21968836 2023-02-04 16:37:00 +0000 UTC one year ago io1elj3hfrhvjl6j42n39e5kc7c0d9ksn32a444r6  IN    Contract: Vesting 0 IOTX 0.048956
255d9a742283c8e7f8e2ecdbd6e8b047c35e2b9d626e51502742513cd7929971 21880697 2023-01-30 13:51:25 +0000 UTC one year ago io1ttmz6y4qdft4ae8r3cftg2uvwv7wyxkpwj9vfz  IN    Contract: Vesting 0 IOTX 0.066056
245fd03f43c9137c366db4590f1f78f1e50c3b1edbccf2304bd1dac98e1f843b 21866998 2023-01-29 18:40:45 +0000 UTC one year ago io1ujaw9grz9f5yjjua0cw0uetn2mpt3ldxerkxrz  IN    Contract: Vesting 0 IOTX 0.066056
7039694c38dc0cd42c515e570758308dffbce46d7471134624fa3c4ec878a41c 21730863 2023-01-21 21:35:05 +0000 UTC one year ago io15msj6u9h8ktpdmyzcukw5etm59lvhssrfscns9  IN    Contract: Vesting 0 IOTX 0.066056
a8cd6c285df4900c60e5f6babf3b72e74036718bd19c997cac5b15bd71cb8df8 21651587 2023-01-17 07:27:35 +0000 UTC one year ago io1k6g9cjxcsq3h2fc6czqlv9tarmckq4xhf60kyr  IN    Contract: Vesting 0 IOTX 0.066056
2fa57d58fff6f2057a47388b0c43e7a986ef398a777738e058ed4614966b13d2 21435496 2023-01-04 18:08:35 +0000 UTC one year ago io13txj8rag090dplec2gwujsqm5ntaawnlju5eqq  IN    Contract: Vesting 0 IOTX 0.050556
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vesting

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

// File @openzeppelin/contracts/token/ERC20/[email protected]

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

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

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

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


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @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);
}


// File @openzeppelin/contracts/utils/[email protected]

// 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 @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;



/**
 * @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 Contracts guidelines: functions revert
 * instead 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 {}
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.5.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
     * ====
     *
     * [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://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);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;


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


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_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 {
        _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 @openzeppelin/contracts/utils/math/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

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.
        return (a & b) + (a ^ b) / 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);
    }
}


// File @openzeppelin/contracts/security/[email protected]

// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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


// File contracts/Vesting.sol

pragma solidity 0.8.10;






struct CreateVestingInput {
    address user;
    uint128 amount;
}

/**
 * @title Vesting
 * @dev 3 stages: 0 = no rate applies(until cliffEnd), 1 = rateDuringStage1(until stage1End), 2 = rateDuringStage2(until vestingEnd)
 * @dev no user can claim until contract is unlocked
 */
contract Vesting is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    error VestingIsNotUnlocked();
    error NoZeroAddress(string param);
    error NothingToClaimCurrentlyPleaseTryAgainLater();
    error DepositedAmountIsInsufficientPleaseDepositMore();
    error WrongInputParameters();
    error AlreadyUnlocked();
    error OnlyOneVestingPerAddress();
    error MustNotBeZero(string param);
    error NoActiveVesting();
    error EmptyInputArray();

    struct UserVesting {
        bool init;
        uint256 amount;
        uint256 amountClaimed;
        uint256 lastClaimAt;
    }

    bool public locked = true;
    uint256 public totalAmountAllocated; // Amount owner allocated for users

    uint256 public constant YEAR_IN_SECONDS = 31536000;
    uint256 public constant RATE_CONVERTER = 100;

    IERC20 public immutable vestedToken;
    string public name;
    uint256 public immutable cliffEndAt;
    uint256 public immutable stage1EndAt;
    uint256 public immutable vestingEndAt;
    uint256 public immutable claimableAtStart; // percentage
    uint256 public immutable rateDuringStage1; // annual percentage rate
    uint256 public immutable rateDuringStage2; // annual percentage rate

    mapping(address => UserVesting) public vestings;

    event NewVestingCreated(address indexed user, uint256 amount);

    event NewClaim(address indexed user, uint256 amountClaimed);

    constructor(
        IERC20 _vestedToken,
        string memory _name,
        uint256 _cliffEndAt,
        uint256 _stage1EndAt,
        uint256 _vestingEndAt,
        uint256 _claimableAtStart,
        uint256 _rateDuringStage1,
        uint256 _rateDuringStage2
    ) {
        if (!(_cliffEndAt < _stage1EndAt && _stage1EndAt <= _vestingEndAt)) {
            revert WrongInputParameters();
        }
        uint256 total = _claimableAtStart +
            ((_stage1EndAt - _cliffEndAt) * _rateDuringStage1) /
            YEAR_IN_SECONDS +
            ((_vestingEndAt - _stage1EndAt) * _rateDuringStage2) /
            YEAR_IN_SECONDS;
        if (total != 100) {
            revert WrongInputParameters();
        }

        if (address(_vestedToken) == address(0)) {
            revert NoZeroAddress("_vestedToken");
        }

        name = _name;
        vestedToken = _vestedToken;
        cliffEndAt = _cliffEndAt;
        stage1EndAt = _stage1EndAt;
        vestingEndAt = _vestingEndAt;
        claimableAtStart = _claimableAtStart;
        rateDuringStage1 = _rateDuringStage1;
        rateDuringStage2 = _rateDuringStage2;
    }

    /**
     * @notice allow users to claim their vested tokens
     */
    function unlock() external onlyOwner {
        if (!locked) {
            revert AlreadyUnlocked();
        }

        locked = false;
    }

    /**
     * @notice Move vesting to another address in case user lose access to his original account
     */
    function moveVesting(address from, address to) external onlyOwner {
        UserVesting memory vesting = vestings[from];
        if (vesting.amount - vesting.amountClaimed == 0) {
            revert NoActiveVesting();
        }
        if (vestings[to].init) {
            revert OnlyOneVestingPerAddress();
        }
        if (to == address(0)) {
            revert NoZeroAddress("to");
        }

        vestings[to] = vesting;
        delete vestings[from];
    }

    /**
     * @notice create vesting for user, only one vesting per user address
     * @dev owner needs to first deploy enough tokens to vesting contract address
     */
    function createVestings(CreateVestingInput[] calldata vestingsInput)
        external
        onlyOwner
    {
        if (vestingsInput.length == 0) {
            revert EmptyInputArray();
        }
        uint256 totalDepositedAmount = getDepositedAmount();
        uint256 amountAllocated;

        for (uint64 i = 0; i < vestingsInput.length; i++) {
            amountAllocated += vestingsInput[i].amount;
        }
        // check if depositor have enough credit
        if ((totalDepositedAmount - totalAmountAllocated) < amountAllocated) {
            revert DepositedAmountIsInsufficientPleaseDepositMore();
        }

        for (uint64 i = 0; i < vestingsInput.length; i++) {
            _createVesting(vestingsInput[i]);
        }
    }

    /**
     * @dev can be called any amount of time after vesting contract is unlocked, tokens are vested each block after cliffEnd
     */
    function claim() external nonReentrant {
        if (locked) {
            revert VestingIsNotUnlocked();
        }

        UserVesting storage vesting = vestings[msg.sender];
        if (vesting.amount - vesting.amountClaimed == 0) {
            revert NoActiveVesting();
        }

        uint256 claimableAmount = _claimable(vesting);

        if (claimableAmount == 0) {
            revert NothingToClaimCurrentlyPleaseTryAgainLater();
        }

        vesting.amountClaimed += claimableAmount;
        vesting.lastClaimAt = block.timestamp;

        assert(vesting.amountClaimed <= vesting.amount);

        vestedToken.safeTransfer(msg.sender, claimableAmount);
        emit NewClaim(msg.sender, claimableAmount);
    }

    // return amount user can claim from locked tokens at the moment
    function claimable(address _user) external view returns (uint256 amount) {
        return _claimable(vestings[_user]);
    }

    function getDepositedAmount() public view returns (uint256 amount) {
        return vestedToken.balanceOf(address(this));
    }

    // create a vesting for an user
    function _createVesting(CreateVestingInput memory v) private {
        if (v.user == address(0)) {
            revert NoZeroAddress("user");
        }
        if (v.amount == 0) {
            revert MustNotBeZero("amount");
        }
        if (vestings[v.user].init) {
            revert OnlyOneVestingPerAddress();
        }

        totalAmountAllocated += v.amount;

        vestings[v.user] = UserVesting({
            init: true,
            amount: v.amount,
            amountClaimed: 0,
            lastClaimAt: 0
        });

        emit NewVestingCreated(v.user, v.amount);
    }

    function _claimable(UserVesting memory v)
        private
        view
        returns (uint256 amount)
    {
        uint256 amountLeft = v.amount - v.amountClaimed;
        if (amountLeft == 0) return 0;
        if (block.timestamp >= vestingEndAt) {
            return amountLeft;
        }

        if (v.lastClaimAt == 0) {
            amount += (claimableAtStart * v.amount) / RATE_CONVERTER;
        }

        if (block.timestamp > cliffEndAt) {
            if ((v.lastClaimAt < stage1EndAt)) {
                uint256 start = Math.max(v.lastClaimAt, cliffEndAt);
                uint256 end = Math.min(block.timestamp, stage1EndAt);

                amount +=
                    (rateDuringStage1 * v.amount * (end - start)) /
                    (YEAR_IN_SECONDS * RATE_CONVERTER);
            }

            if ((block.timestamp > stage1EndAt)) {
                uint256 start = Math.max(v.lastClaimAt, stage1EndAt);
                uint256 end = Math.min(block.timestamp, vestingEndAt);

                amount +=
                    (rateDuringStage2 * v.amount * (end - start)) /
                    (YEAR_IN_SECONDS * RATE_CONVERTER);
            }
        }

        amount = Math.min(amount, amountLeft);

        return amount;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_vestedToken","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_cliffEndAt","type":"uint256"},{"internalType":"uint256","name":"_stage1EndAt","type":"uint256"},{"internalType":"uint256","name":"_vestingEndAt","type":"uint256"},{"internalType":"uint256","name":"_claimableAtStart","type":"uint256"},{"internalType":"uint256","name":"_rateDuringStage1","type":"uint256"},{"internalType":"uint256","name":"_rateDuringStage2","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyUnlocked","type":"error"},{"inputs":[],"name":"DepositedAmountIsInsufficientPleaseDepositMore","type":"error"},{"inputs":[],"name":"EmptyInputArray","type":"error"},{"inputs":[{"internalType":"string","name":"param","type":"string"}],"name":"MustNotBeZero","type":"error"},{"inputs":[],"name":"NoActiveVesting","type":"error"},{"inputs":[{"internalType":"string","name":"param","type":"string"}],"name":"NoZeroAddress","type":"error"},{"inputs":[],"name":"NothingToClaimCurrentlyPleaseTryAgainLater","type":"error"},{"inputs":[],"name":"OnlyOneVestingPerAddress","type":"error"},{"inputs":[],"name":"VestingIsNotUnlocked","type":"error"},{"inputs":[],"name":"WrongInputParameters","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountClaimed","type":"uint256"}],"name":"NewClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NewVestingCreated","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"},{"inputs":[],"name":"RATE_CONVERTER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YEAR_IN_SECONDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableAtStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cliffEndAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"}],"internalType":"struct CreateVestingInput[]","name":"vestingsInput","type":"tuple[]"}],"name":"createVestings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getDepositedAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"moveVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rateDuringStage1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rateDuringStage2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage1EndAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmountAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingEndAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestings","outputs":[{"internalType":"bool","name":"init","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountClaimed","type":"uint256"},{"internalType":"uint256","name":"lastClaimAt","type":"uint256"}],"stateMutability":"view","type":"function"}]

Contract Creation Code

608060405234801561001057600080fd5b50600436106101425760003560e01c80637847ea53116100b8578063b3040c1e1161007c578063b3040c1e146102af578063c8bfe988146102d6578063cf309012146102fd578063daf498631461031a578063f2fde38b14610375578063f843664a1461038857600080fd5b80637847ea531461023d5780638032fa66146102485780638da5cb5b1461026f578063918f24d414610280578063a69df4b5146102a757600080fd5b80634e77a17b1161010a5780634e77a17b146101a057806351448c2b146101c7578063549c1a35146101da5780635de29741146101e357806370c4b1f114610222578063715018a61461023557600080fd5b806306fdde031461014757806323aaa7fe14610165578063322ba9f31461017b578063402914f5146101835780634e71d92d14610196575b600080fd5b61014f6103af565b60405161015c91906112ad565b60405180910390f35b61016d606481565b60405190815260200161015c565b61016d61043d565b61016d6101913660046112fc565b6104cd565b61019e610529565b005b61016d7f000000000000000000000000000000000000000000000000000000000000000081565b61019e6101d5366004611317565b6106f1565b61016d60035481565b61020a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161015c565b61019e61023036600461138c565b61084d565b61019e6109d4565b61016d6301e1338081565b61016d7f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031661020a565b61016d7f000000000000000000000000000000000000000000000000000000000000000081565b61019e610a0a565b61016d7f000000000000000000000000000000000000000000000000000000000000000081565b61016d7f000000000000000000000000000000000000000000000000000000000000000081565b60025461030a9060ff1681565b604051901515815260200161015c565b6103536103283660046112fc565b600560205260009081526040902080546001820154600283015460039093015460ff90921692909184565b604080519415158552602085019390935291830152606082015260800161015c565b61019e6103833660046112fc565b610a63565b61016d7f000000000000000000000000000000000000000000000000000000000000000081565b600480546103bc906113bf565b80601f01602080910402602001604051908101604052809291908181526020018280546103e8906113bf565b80156104355780601f1061040a57610100808354040283529160200191610435565b820191906000526020600020905b81548152906001019060200180831161041857829003601f168201915b505050505081565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156104a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c891906113fa565b905090565b6001600160a01b03811660009081526005602090815260408083208151608081018352815460ff161515815260018201549381019390935260028101549183019190915260030154606082015261052390610afe565b92915050565b600260015414156105815760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260018190555460ff16156105aa5760405163a995904b60e01b815260040160405180910390fd5b336000908152600560205260409020600281015460018201546105cd9190611429565b6105ea57604051634186725760e11b815260040160405180910390fd5b60408051608081018252825460ff1615158152600183015460208201526002830154918101919091526003820154606082015260009061062990610afe565b905080610649576040516347f9e41d60e01b815260040160405180910390fd5b8082600201600082825461065d9190611440565b909155505042600383015560018201546002830154111561068057610680611458565b6106b46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610dc7565b60405181815233907f081144d27d70f1f67f67a65289dde411e1a9511c916d13ee3ff9bf22f169cd9a9060200160405180910390a2505060018055565b6000546001600160a01b0316331461071b5760405162461bcd60e51b81526004016105789061146e565b806107395760405163af70781d60e01b815260040160405180910390fd5b600061074361043d565b90506000805b67ffffffffffffffff81168411156107b65784848267ffffffffffffffff16818110610777576107776114a3565b905060400201602001602081019061078f91906114d0565b6107a2906001600160801b031683611440565b9150806107ae816114eb565b915050610749565b5080600354836107c69190611429565b10156107e55760405163409a7ab960e11b815260040160405180910390fd5b60005b67ffffffffffffffff81168411156108465761083485858367ffffffffffffffff16818110610819576108196114a3565b90506040020180360381019061082f9190611513565b610e1e565b8061083e816114eb565b9150506107e8565b5050505050565b6000546001600160a01b031633146108775760405162461bcd60e51b81526004016105789061146e565b6001600160a01b0382166000908152600560209081526040918290208251608081018452815460ff1615158152600182015492810183905260028201549381018490526003909101546060820152916108cf91611429565b6108ec57604051634186725760e11b815260040160405180910390fd5b6001600160a01b03821660009081526005602052604090205460ff1615610926576040516382c06f2f60e01b815260040160405180910390fd5b6001600160a01b0382166109625760405163030cc15560e51b8152602060048201526002602482015261746f60f01b6044820152606401610578565b6001600160a01b0391821660009081526005602090815260408083208451815490151560ff199182161782559285015160018083019190915582860151600280840191909155606090960151600392830155969095168352822080549091168155938401819055908301819055910155565b6000546001600160a01b031633146109fe5760405162461bcd60e51b81526004016105789061146e565b610a086000610fb4565b565b6000546001600160a01b03163314610a345760405162461bcd60e51b81526004016105789061146e565b60025460ff16610a57576040516328486b6360e11b815260040160405180910390fd5b6002805460ff19169055565b6000546001600160a01b03163314610a8d5760405162461bcd60e51b81526004016105789061146e565b6001600160a01b038116610af25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610578565b610afb81610fb4565b50565b60008082604001518360200151610b159190611429565b905080610b255750600092915050565b7f00000000000000000000000000000000000000000000000000000000000000004210610b525792915050565b6060830151610ba457606483602001517f0000000000000000000000000000000000000000000000000000000000000000610b8d919061157c565b610b97919061159b565b610ba19083611440565b91505b7f0000000000000000000000000000000000000000000000000000000000000000421115610db6577f000000000000000000000000000000000000000000000000000000000000000083606001511015610cc3576000610c2884606001517f0000000000000000000000000000000000000000000000000000000000000000611004565b90506000610c56427f000000000000000000000000000000000000000000000000000000000000000061101b565b9050610c6760646301e1338061157c565b610c718383611429565b6020870151610ca0907f000000000000000000000000000000000000000000000000000000000000000061157c565b610caa919061157c565b610cb4919061159b565b610cbe9085611440565b935050505b7f0000000000000000000000000000000000000000000000000000000000000000421115610db6576000610d1b84606001517f0000000000000000000000000000000000000000000000000000000000000000611004565b90506000610d49427f000000000000000000000000000000000000000000000000000000000000000061101b565b9050610d5a60646301e1338061157c565b610d648383611429565b6020870151610d93907f000000000000000000000000000000000000000000000000000000000000000061157c565b610d9d919061157c565b610da7919061159b565b610db19085611440565b935050505b610dc0828261101b565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e1990849061102a565b505050565b80516001600160a01b0316610e5f5760405163030cc15560e51b8152600401610578906020808252600490820152633ab9b2b960e11b604082015260600190565b60208101516001600160801b0316610ea357604051633930c7a960e21b8152602060048201526006602482015265185b5bdd5b9d60d21b6044820152606401610578565b80516001600160a01b031660009081526005602052604090205460ff1615610ede576040516382c06f2f60e01b815260040160405180910390fd5b80602001516001600160801b031660036000828254610efd9190611440565b9091555050604080516080810182526001808252602084810180516001600160801b039081168386019081526000868801818152606088018281528a516001600160a01b03908116845260058852928a90209851895460ff191690151517895592519688019690965594516002870155516003909501949094558551905194519490931684529116917f1ad52506d5b39a5f36ce7518f02978bb44db2961e116f2a2d8d134cd3f43e957910160405180910390a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000818310156110145781610dc0565b5090919050565b60008183106110145781610dc0565b600061107f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110fc9092919063ffffffff16565b805190915015610e19578080602001905181019061109d91906115bd565b610e195760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610578565b606061110b8484600085611113565b949350505050565b6060824710156111745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610578565b6001600160a01b0385163b6111cb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610578565b600080866001600160a01b031685876040516111e791906115df565b60006040518083038185875af1925050503d8060008114611224576040519150601f19603f3d011682016040523d82523d6000602084013e611229565b606091505b5091509150611239828286611244565b979650505050505050565b60608315611253575081610dc0565b8251156112635782518084602001fd5b8160405162461bcd60e51b815260040161057891906112ad565b60005b83811015611298578181015183820152602001611280565b838111156112a7576000848401525b50505050565b60208152600082518060208401526112cc81604085016020870161127d565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146112f757600080fd5b919050565b60006020828403121561130e57600080fd5b610dc0826112e0565b6000806020838503121561132a57600080fd5b823567ffffffffffffffff8082111561134257600080fd5b818501915085601f83011261135657600080fd5b81358181111561136557600080fd5b8660208260061b850101111561137a57600080fd5b60209290920196919550909350505050565b6000806040838503121561139f57600080fd5b6113a8836112e0565b91506113b6602084016112e0565b90509250929050565b600181811c908216806113d357607f821691505b602082108114156113f457634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561140c57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561143b5761143b611413565b500390565b6000821982111561145357611453611413565b500190565b634e487b7160e01b600052600160045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b80356001600160801b03811681146112f757600080fd5b6000602082840312156114e257600080fd5b610dc0826114b9565b600067ffffffffffffffff8083168181141561150957611509611413565b6001019392505050565b60006040828403121561152557600080fd5b6040516040810181811067ffffffffffffffff8211171561155657634e487b7160e01b600052604160045260246000fd5b604052611562836112e0565b8152611570602084016114b9565b60208201529392505050565b600081600019048311821515161561159657611596611413565b500290565b6000826115b857634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156115cf57600080fd5b81518015158114610dc057600080fd5b600082516115f181846020870161127d565b919091019291505056fea26469706673582212204e5ece6b57452c3ecadd18923652f1e19efaa20ece3130d0a75e6aa24edadd3964736f6c634300080a0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.