ETH Price: $3,419.24 (-0.12%)

Contract

0x2aC59d5d25Fd2888eF5531A7805Cd79cFC39D247

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Release By Benef...1183055972024-04-04 5:52:51105 days ago1712209971IN
0x2aC59d5d...cFC39D247
0 ETH0.0000056367710.06173798
Release By Benef...1177898292024-03-23 7:20:35117 days ago1711178435IN
0x2aC59d5d...cFC39D247
0 ETH0.0000007927290.00688503
Release By Benef...1167661262024-02-28 14:37:09141 days ago1709131029IN
0x2aC59d5d...cFC39D247
0 ETH0.0001416591130.11952286
Release By Benef...1164428882024-02-21 3:02:33149 days ago1708484553IN
0x2aC59d5d...cFC39D247
0 ETH0.0000623765650.00387674
Release By Benef...1152997682024-01-25 15:58:33175 days ago1706198313IN
0x2aC59d5d...cFC39D247
0 ETH0.0000776404990.00421563
Release By Benef...1151638612024-01-22 12:28:19178 days ago1705926499IN
0x2aC59d5d...cFC39D247
0 ETH0.0000217752130.00437847
Release By Benef...1147803152024-01-13 15:23:27187 days ago1705159407IN
0x2aC59d5d...cFC39D247
0 ETH0.0000317562920.00793481
Release By Benef...1146024362024-01-09 12:34:09191 days ago1704803649IN
0x2aC59d5d...cFC39D247
0 ETH0.0000318251180.0064307
Release By Benef...1145051062024-01-07 6:29:49193 days ago1704608989IN
0x2aC59d5d...cFC39D247
0 ETH0.0000496795030.00547786
Release By Benef...1139069692023-12-24 10:11:55207 days ago1703412715IN
0x2aC59d5d...cFC39D247
0 ETH0.0000357275170.00527212
Release By Benef...1138226532023-12-22 11:21:23209 days ago1703244083IN
0x2aC59d5d...cFC39D247
0 ETH0.0000522069410.00446169
Release By Benef...1137751532023-12-21 8:58:03210 days ago1703149083IN
0x2aC59d5d...cFC39D247
0 ETH0.0000563027070.00544677
Release By Benef...1132071502023-12-08 5:24:37224 days ago1702013077IN
0x2aC59d5d...cFC39D247
0 ETH0.0000602353450.00914553
Release By Benef...1131978322023-12-08 0:14:01224 days ago1701994441IN
0x2aC59d5d...cFC39D247
0 ETH0.000067798860.00836471
Release By Benef...1125652622023-11-23 8:48:21238 days ago1700729301IN
0x2aC59d5d...cFC39D247
0 ETH0.0000472684340.00958157
Release By Benef...1125331022023-11-22 14:56:21239 days ago1700664981IN
0x2aC59d5d...cFC39D247
0 ETH0.000092221980.00985213
Release By Benef...1125132362023-11-22 3:54:09240 days ago1700625249IN
0x2aC59d5d...cFC39D247
0 ETH0.0000531166190.0083762
Release By Benef...1123477802023-11-18 7:58:57243 days ago1700294337IN
0x2aC59d5d...cFC39D247
0 ETH0.0000304479710.00784816
Release By Benef...1122555472023-11-16 4:44:31246 days ago1700109871IN
0x2aC59d5d...cFC39D247
0 ETH0.0000486639690.01166031
Release By Benef...1122028992023-11-14 23:29:35247 days ago1700004575IN
0x2aC59d5d...cFC39D247
0 ETH0.0000484163060.00869155
Release By Benef...1121823052023-11-14 12:03:07247 days ago1699963387IN
0x2aC59d5d...cFC39D247
0 ETH0.0000550500110.00996061
Release By Benef...1121801872023-11-14 10:52:31247 days ago1699959151IN
0x2aC59d5d...cFC39D247
0 ETH0.0000495764390.00907641
Release By Benef...1121788522023-11-14 10:08:01247 days ago1699956481IN
0x2aC59d5d...cFC39D247
0 ETH0.0000491844350.00802547
Release By Benef...1121713492023-11-14 5:57:55247 days ago1699941475IN
0x2aC59d5d...cFC39D247
0 ETH0.0000379350790.01104045
Release By Benef...1121558372023-11-13 21:20:51248 days ago1699910451IN
0x2aC59d5d...cFC39D247
0 ETH0.0001293327360.02622395
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1075550192023-07-30 9:20:15354 days ago1690708815
0x2aC59d5d...cFC39D247
0 ETH
1075495162023-07-30 6:16:49354 days ago1690697809
0x2aC59d5d...cFC39D247
0 ETH
1074906592023-07-28 21:34:55356 days ago1690580095
0x2aC59d5d...cFC39D247
0 ETH
1074850852023-07-28 18:29:07356 days ago1690568947
0x2aC59d5d...cFC39D247
0 ETH
1073897382023-07-26 13:30:53358 days ago1690378253
0x2aC59d5d...cFC39D247
0 ETH
1073390292023-07-25 9:20:35359 days ago1690276835
0x2aC59d5d...cFC39D247
0 ETH
1072489542023-07-23 7:18:05361 days ago1690096685
0x2aC59d5d...cFC39D247
0 ETH
1072126912023-07-22 11:09:19362 days ago1690024159
0x2aC59d5d...cFC39D247
0 ETH
1070771242023-07-19 7:50:25365 days ago1689753025
0x2aC59d5d...cFC39D247
0 ETH
1069855882023-07-17 4:59:13368 days ago1689569953
0x2aC59d5d...cFC39D247
0 ETH
1069826692023-07-17 3:21:55368 days ago1689564115
0x2aC59d5d...cFC39D247
0 ETH
1069538952023-07-16 11:22:47368 days ago1689506567
0x2aC59d5d...cFC39D247
0 ETH
1069448662023-07-16 6:21:49368 days ago1689488509
0x2aC59d5d...cFC39D247
0 ETH
1069111282023-07-15 11:37:13369 days ago1689421033
0x2aC59d5d...cFC39D247
0 ETH
1068782332023-07-14 17:20:43370 days ago1689355243
0x2aC59d5d...cFC39D247
0 ETH
1068250792023-07-13 11:48:55371 days ago1689248935
0x2aC59d5d...cFC39D247
0 ETH
1068239552023-07-13 11:11:27371 days ago1689246687
0x2aC59d5d...cFC39D247
0 ETH
1068185092023-07-13 8:09:55371 days ago1689235795
0x2aC59d5d...cFC39D247
0 ETH
1068082592023-07-13 2:28:15372 days ago1689215295
0x2aC59d5d...cFC39D247
0 ETH
1067882082023-07-12 15:19:53372 days ago1689175193
0x2aC59d5d...cFC39D247
0 ETH
1067804062023-07-12 10:59:49372 days ago1689159589
0x2aC59d5d...cFC39D247
0 ETH
1067483062023-07-11 17:09:49373 days ago1689095389
0x2aC59d5d...cFC39D247
0 ETH
1067483062023-07-11 17:09:49373 days ago1689095389
0x2aC59d5d...cFC39D247
0 ETH
1067203722023-07-11 1:38:41374 days ago1689039521
0x2aC59d5d...cFC39D247
0 ETH
1067203632023-07-11 1:38:23374 days ago1689039503
0x2aC59d5d...cFC39D247
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenVesting

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 8 : TokenVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

/**
 * @title TokenVesting
 * @dev This contract handles the vesting of ERC20 tokens for a given beneficiary.
 * can be given to this contract, which will release the token to the beneficiary following a given vesting schedule.
 * The vesting schedule is customizable through the {vestedAmount} function.
 */
contract TokenVesting is Context, Ownable {
    using EnumerableSet for EnumerableSet.UintSet;

    event Released(uint256 indexed id, address beneficiary, uint256 amount);
    event VestingAdded(uint256 indexed id, uint256 amounts, address beneficiary, uint64 start, uint64 duration);
    event VestingUpdated(uint256 indexed id, uint256 amounts, address beneficiary, uint64 start, uint64 duration);

    struct Vesting {
        uint256 id;
        uint256 amounts;
        address beneficiary;
        uint64 start;
        uint64 duration;
        uint256 released;
    }

    mapping(address => bool) public isHandler;
    IERC20 public immutable vestingToken;

    Vesting[] private _vestings;
    mapping(address => EnumerableSet.UintSet) private _beneficiaryVestingIds;

    modifier onlyHandler() {
        require(isHandler[msg.sender], "forbidden");
        _;
    }

    /**
     * @dev Set the vestingToken.
     */
    constructor(address tokenAddress) {
        vestingToken = IERC20(tokenAddress);
    }

    function setHandler(address _handler, bool _isActive) external onlyOwner {
        isHandler[_handler] = _isActive;
    }

    function createVesting(
        uint256 vestingAmounts,
        address beneficiaryAddress,
        uint64 startTimestamp,
        uint64 durationSeconds
    ) external onlyHandler returns (uint256 id) {
        return _createVesting(vestingAmounts, beneficiaryAddress, startTimestamp, durationSeconds);
    }

    function createVestings(
        uint256[] memory vestingAmountsArr,
        address[] memory beneficiaryAddressArr,
        uint64[] memory startTimestampArr,
        uint64[] memory durationSecondsArr
    ) external onlyHandler returns (uint256[] memory) {
        uint256 length = vestingAmountsArr.length;
        uint256[] memory ids = new uint256[](length);
        for (uint i = 0; i < length; i++) {
            uint256 id = _createVesting(
                vestingAmountsArr[i],
                beneficiaryAddressArr[i],
                startTimestampArr[i],
                durationSecondsArr[i]
            );
            ids[i] = id;
        }
        return ids;
    }

    function _createVesting(
        uint256 vestingAmounts,
        address beneficiaryAddress,
        uint64 startTimestamp,
        uint64 durationSeconds
    ) private returns (uint256 id) {
        require(durationSeconds != 0, "durationSeconds is zero");
        require(beneficiaryAddress != address(0), "beneficiary is zero address");

        id = _vestings.length;
        Vesting memory newVesting = Vesting({
            id: id,
            beneficiary: beneficiaryAddress,
            amounts: vestingAmounts,
            start: startTimestamp,
            duration: durationSeconds,
            released: 0
        });
        _vestings.push(newVesting);
        _beneficiaryVestingIds[beneficiaryAddress].add(id);
        SafeERC20.safeTransferFrom(vestingToken, _msgSender(), address(this), vestingAmounts);

        emit VestingAdded(id, vestingAmounts, beneficiaryAddress, startTimestamp, durationSeconds);
    }

    function editVestings(
        uint256[] memory ids,
        uint256[] memory vestingAmountsArr,
        address[] memory beneficiaryAddressArr,
        uint64[] memory startTimestampArr,
        uint64[] memory durationSecondsArr
    ) external onlyHandler {
        uint256 length = ids.length;
        for (uint i = 0; i < length; i++) {
            _createVesting(vestingAmountsArr[i], beneficiaryAddressArr[i], startTimestampArr[i], durationSecondsArr[i]);
        }
    }

    function editVesting(
        uint256 id,
        uint256 vestingAmounts,
        address beneficiaryAddress,
        uint64 startTimestamp,
        uint64 durationSeconds
    ) external onlyHandler {
        _editVesting(id, vestingAmounts, beneficiaryAddress, startTimestamp, durationSeconds);
    }

    function _editVesting(
        uint256 id,
        uint256 vestingAmounts,
        address beneficiaryAddress,
        uint64 startTimestamp,
        uint64 durationSeconds
    ) private {
        require(durationSeconds != 0, "durationSeconds is zero");
        require(beneficiaryAddress != address(0), "beneficiary is zero address");

        Vesting memory vesting = getVestingAt(id);
        require(vesting.released <= vestingAmounts, "released is more than vestingAmounts");
        if (vestingAmounts > vesting.amounts) {
            SafeERC20.safeTransferFrom(vestingToken, _msgSender(), address(this), vestingAmounts - vesting.amounts);
        } else if (vesting.amounts > vestingAmounts) {
            SafeERC20.safeTransfer(vestingToken, _msgSender(), vesting.amounts - vestingAmounts);
        }

        if (beneficiaryAddress != vesting.beneficiary) {
            _beneficiaryVestingIds[vesting.beneficiary].remove(id);
            _beneficiaryVestingIds[beneficiaryAddress].add(id);
        }

        vesting.amounts = vestingAmounts;
        vesting.beneficiary = beneficiaryAddress;
        vesting.start = startTimestamp;
        vesting.duration = durationSeconds;

        _vestings[id] = vesting;

        emit VestingUpdated(id, vestingAmounts, beneficiaryAddress, startTimestamp, durationSeconds);
    }

    function getVestingAt(uint256 id) public view returns (Vesting memory) {
        require(id < _vestings.length, "Invalid vesting id");
        return _vestings[id];
    }

    function getTotalVestingCount() external view returns (uint256) {
        return _vestings.length;
    }

    function vestingCountForBeneficiary(address beneficiary) public view returns (uint256) {
        return _beneficiaryVestingIds[beneficiary].length();
    }

    function vestingsForBeneficiary(address beneficiary) external view returns (Vesting[] memory) {
        uint256 length = _beneficiaryVestingIds[beneficiary].length();
        Vesting[] memory userLocks = new Vesting[](length);

        for (uint256 i = 0; i < length; i++) {
            userLocks[i] = getVestingAt(_beneficiaryVestingIds[beneficiary].at(i));
        }
        return userLocks;
    }

    function getVestings(uint256 start, uint256 end) external view returns (Vesting[] memory) {
        uint256 length = end - start + 1;
        Vesting[] memory vestings = new Vesting[](length);
        uint256 currentIndex = 0;
        for (uint256 i = start; i <= end; i++) {
            vestings[currentIndex] = getVestingAt(i);
            currentIndex++;
        }
        return vestings;
    }

    /**
     * @dev Getter for the amount of releasable.
     */
    function releasable(uint256 id) public view virtual returns (uint256) {
        uint256 vested = vestedAmount(id, uint64(block.timestamp));
        uint256 released = getVestingAt(id).released;
        if (released > vested) {
            return 0;
        }
        return vested - released;
    }

    /**
     * @dev Release the tokens that have already vested.
     *
     * Emits a {Released} event.
     */
    function release(uint256 id) public virtual {
        uint256 amount = releasable(id);
        if (amount != 0) {
            Vesting storage vesting = _vestings[id];
            vesting.released += amount;
            address beneficiary = vesting.beneficiary;
            emit Released(id, beneficiary, amount);
            SafeERC20.safeTransfer(vestingToken, beneficiary, amount);
        }
    }

    function releaseByBeneficiary(address beneficiary) public virtual {
        uint256 length = _beneficiaryVestingIds[beneficiary].length();

        uint256 totalAmount = 0;
        for (uint256 i = 0; i < length; i++) {
            uint256 id = _beneficiaryVestingIds[beneficiary].at(i);
            uint256 amount = releasable(id);
            if (amount != 0) {
                totalAmount += amount;
                Vesting storage vesting = _vestings[id];
                vesting.released += amount;
                emit Released(id, beneficiary, amount);
            }
        }
        if (totalAmount != 0) {
            SafeERC20.safeTransfer(vestingToken, beneficiary, totalAmount);
        }
    }

    /**
     * @dev Calculates the amount of tokens that has already vested. Default implementation is a linear vesting curve.
     */
    function vestedAmount(uint256 id, uint64 timestamp) public view virtual returns (uint256) {
        return _vestingSchedule(id, timestamp);
    }

    /**
     * @dev Virtual implementation of the vesting formula. This returns the amount vested, as a function of time, for
     * an asset given its total historical allocation.
     */
    function _vestingSchedule(uint256 id, uint64 timestamp) internal view virtual returns (uint256) {
        Vesting memory vesting = getVestingAt(id);
        if (timestamp < vesting.start) {
            return 0;
        } else if (timestamp > vesting.start + vesting.duration) {
            return vesting.amounts;
        } else {
            return (vesting.amounts * (timestamp - vesting.start)) / vesting.duration;
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions 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 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 4 of 8 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 5 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 6 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 8 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amounts","type":"uint256"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint64","name":"start","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"duration","type":"uint64"}],"name":"VestingAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amounts","type":"uint256"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint64","name":"start","type":"uint64"},{"indexed":false,"internalType":"uint64","name":"duration","type":"uint64"}],"name":"VestingUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"vestingAmounts","type":"uint256"},{"internalType":"address","name":"beneficiaryAddress","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"durationSeconds","type":"uint64"}],"name":"createVesting","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"vestingAmountsArr","type":"uint256[]"},{"internalType":"address[]","name":"beneficiaryAddressArr","type":"address[]"},{"internalType":"uint64[]","name":"startTimestampArr","type":"uint64[]"},{"internalType":"uint64[]","name":"durationSecondsArr","type":"uint64[]"}],"name":"createVestings","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"vestingAmounts","type":"uint256"},{"internalType":"address","name":"beneficiaryAddress","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"durationSeconds","type":"uint64"}],"name":"editVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"vestingAmountsArr","type":"uint256[]"},{"internalType":"address[]","name":"beneficiaryAddressArr","type":"address[]"},{"internalType":"uint64[]","name":"startTimestampArr","type":"uint64[]"},{"internalType":"uint64[]","name":"durationSecondsArr","type":"uint64[]"}],"name":"editVestings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTotalVestingCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getVestingAt","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amounts","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"duration","type":"uint64"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct TokenVesting.Vesting","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getVestings","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amounts","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"duration","type":"uint64"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct TokenVesting.Vesting[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isHandler","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"releasable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"releaseByBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint64","name":"timestamp","type":"uint64"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"vestingCountForBeneficiary","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"vestingsForBeneficiary","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amounts","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint64","name":"start","type":"uint64"},{"internalType":"uint64","name":"duration","type":"uint64"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct TokenVesting.Vesting[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162002056380380620020568339810160408190526200003491620000a5565b6200003f3362000055565b60601b6001600160601b031916608052620000d7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000b857600080fd5b81516001600160a01b0381168114620000d057600080fd5b9392505050565b60805160601c611f3d620001196000396000818161013f015281816104b50152818161099501528181610d73015281816110fb01526111470152611f3d6000f3fe608060405234801561001057600080fd5b50600436106101205760003560e01c806371ee8522116100ad578063cc4988f611610071578063cc4988f614610285578063cc841f74146102a5578063e4bf01a8146102b8578063e6c8bdee146102cb578063f2fde38b146102eb57600080fd5b806371ee85221461023357806375aa844b1461024657806387144a9f1461024e5780638da5cb5b146102615780639cb7de4b1461027257600080fd5b806340436fac116100f457806340436fac146101b257806345c54011146101d257806346ea87af146101e557806360e507eb14610218578063715018a61461022b57600080fd5b8062c8415b1461012557806319d152fa1461013a5780631a9358181461017e57806337bdc99b1461019f575b600080fd5b6101386101333660046119f4565b6102fe565b005b6101617f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b61019161018c366004611afb565b6103cf565b604051908152602001610175565b6101386101ad366004611ae2565b610413565b6101c56101c03660046118f6565b6104e2565b6040516101759190611c5a565b6101916101e0366004611bc1565b6105c8565b6102086101f33660046118f6565b60016020526000908152604090205460ff1681565b6040519015158152602001610175565b6101916102263660046118f6565b6105dd565b6101386105fe565b6101c5610241366004611b48565b610612565b600254610191565b61013861025c366004611b6a565b6106e0565b6000546001600160a01b0316610161565b610138610280366004611911565b610723565b610298610293366004611948565b610756565b6040516101759190611ca8565b6101386102b33660046118f6565b61087e565b6101916102c6366004611ae2565b6109c0565b6102de6102d9366004611ae2565b610a04565b6040516101759190611d36565b6101386102f93660046118f6565b610adb565b3360009081526001602052604090205460ff166103365760405162461bcd60e51b815260040161032d90611d13565b60405180910390fd5b845160005b818110156103c6576103b386828151811061035857610358611ecd565b602002602001015186838151811061037257610372611ecd565b602002602001015186848151811061038c5761038c611ecd565b60200260200101518685815181106103a6576103a6611ecd565b6020026020010151610b54565b50806103be81611e86565b91505061033b565b50505050505050565b3360009081526001602052604081205460ff166103fe5760405162461bcd60e51b815260040161032d90611d13565b61040a85858585610b54565b95945050505050565b600061041e826109c0565b905080156104de5760006002838154811061043b5761043b611ecd565b906000526020600020906005020190508181600401600082825461045f9190611d97565b90915550506002810154604080516001600160a01b03909216808352602083018590529185917f3bfce8de0db7450cc169b94323c210e69a36c6a4a58c9f5d96bec4973adce392910160405180910390a26104db7f00000000000000000000000000000000000000000000000000000000000000008285610dfe565b50505b5050565b6001600160a01b03811660009081526003602052604081206060919061050790610e61565b90506000816001600160401b0381111561052357610523611ee3565b60405190808252806020026020018201604052801561055c57816020015b610549611732565b8152602001906001900390816105415790505b50905060005b828110156105c0576001600160a01b0385166000908152600360205260409020610590906102d99083610e6b565b8282815181106105a2576105a2611ecd565b602002602001018190525080806105b890611e86565b915050610562565b509392505050565b60006105d48383610e77565b90505b92915050565b6001600160a01b03811660009081526003602052604081206105d790610e61565b610606610f2d565b6106106000610f87565b565b606060006106208484611e1b565b61062b906001611d97565b90506000816001600160401b0381111561064757610647611ee3565b60405190808252806020026020018201604052801561068057816020015b61066d611732565b8152602001906001900390816106655790505b5090506000855b8581116106d55761069781610a04565b8383815181106106a9576106a9611ecd565b602002602001018190525081806106bf90611e86565b92505080806106cd90611e86565b915050610687565b509095945050505050565b3360009081526001602052604090205460ff1661070f5760405162461bcd60e51b815260040161032d90611d13565b61071c8585858585610fd7565b5050505050565b61072b610f2d565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b3360009081526001602052604090205460609060ff166107885760405162461bcd60e51b815260040161032d90611d13565b84516000816001600160401b038111156107a4576107a4611ee3565b6040519080825280602002602001820160405280156107cd578160200160208202803683370190505b50905060005b828110156108735760006108408983815181106107f2576107f2611ecd565b602002602001015189848151811061080c5761080c611ecd565b602002602001015189858151811061082657610826611ecd565b60200260200101518986815181106103a6576103a6611ecd565b90508083838151811061085557610855611ecd565b6020908102919091010152508061086b81611e86565b9150506107d3565b509695505050505050565b6001600160a01b038116600090815260036020526040812061089f90610e61565b90506000805b82811015610989576001600160a01b03841660009081526003602052604081206108cf9083610e6b565b905060006108dc826109c0565b90508015610974576108ee8185611d97565b935060006002838154811061090557610905611ecd565b90600052602060002090600502019050818160040160008282546109299190611d97565b9091555050604080516001600160a01b03891681526020810184905284917f3bfce8de0db7450cc169b94323c210e69a36c6a4a58c9f5d96bec4973adce392910160405180910390a2505b5050808061098190611e86565b9150506108a5565b5080156109bb576109bb7f00000000000000000000000000000000000000000000000000000000000000008483610dfe565b505050565b6000806109cd83426105c8565b905060006109da84610a04565b60a001519050818111156109f2575060009392505050565b6109fc8183611e1b565b949350505050565b610a0c611732565b6002548210610a525760405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081d995cdd1a5b99c81a5960721b604482015260640161032d565b60028281548110610a6557610a65611ecd565b60009182526020918290206040805160c08101825260059093029091018054835260018101549383019390935260028301546001600160a01b038116918301919091526001600160401b03600160a01b90910481166060830152600383015416608082015260049091015460a082015292915050565b610ae3610f2d565b6001600160a01b038116610b485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161032d565b610b5181610f87565b50565b60006001600160401b038216610ba65760405162461bcd60e51b81526020600482015260176024820152766475726174696f6e5365636f6e6473206973207a65726f60481b604482015260640161032d565b6001600160a01b038416610bfc5760405162461bcd60e51b815260206004820152601b60248201527f62656e6566696369617279206973207a65726f20616464726573730000000000604482015260640161032d565b50600280546040805160c08101825282815260208082018981526001600160a01b03808a168486018181526001600160401b03808c16606088019081528b821660808901908152600060a08a0181815260018d018e559c8152895160058d027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019190915597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf89015593517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad08801805493518516600160a01b026001600160e01b031990941691909716179190911790945592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad1850180549190941667ffffffffffffffff199091161790925596517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920191909155948552600390529220909190610d6d9083611321565b50610d9a7f000000000000000000000000000000000000000000000000000000000000000033308961132d565b604080518781526001600160a01b03871660208201526001600160401b038681168284015285166060820152905183917fb3e454292f96ae8b4e34dd4ab6c5f957f50d4dadcbdb95cc48ee661b1a04dc4c919081900360800190a250949350505050565b6040516001600160a01b0383166024820152604481018290526109bb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611365565b60006105d7825490565b60006105d48383611437565b600080610e8384610a04565b905080606001516001600160401b0316836001600160401b03161015610ead5760009150506105d7565b80608001518160600151610ec19190611daf565b6001600160401b0316836001600160401b03161115610ee5576020015190506105d7565b80608001516001600160401b0316816060015184610f039190611e32565b6001600160401b03168260200151610f1b9190611dfc565b610f259190611dda565b9150506105d7565b6000546001600160a01b031633146106105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161032d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160401b0381166110275760405162461bcd60e51b81526020600482015260176024820152766475726174696f6e5365636f6e6473206973207a65726f60481b604482015260640161032d565b6001600160a01b03831661107d5760405162461bcd60e51b815260206004820152601b60248201527f62656e6566696369617279206973207a65726f20616464726573730000000000604482015260640161032d565b600061108886610a04565b9050848160a0015111156110ea5760405162461bcd60e51b8152602060048201526024808201527f72656c6561736564206973206d6f7265207468616e2076657374696e67416d6f604482015263756e747360e01b606482015260840161032d565b8060200151851115611136576111317f0000000000000000000000000000000000000000000000000000000000000000333084602001518961112c9190611e1b565b61132d565b61117c565b848160200151111561117c5761117c7f0000000000000000000000000000000000000000000000000000000000000000338784602001516111779190611e1b565b610dfe565b80604001516001600160a01b0316846001600160a01b0316146111e2576040808201516001600160a01b031660009081526003602052206111bd9087611461565b506001600160a01b03841660009081526003602052604090206111e09087611321565b505b602081018590526001600160a01b03841660408201526001600160401b03808416606083015282166080820152600280548291908890811061122657611226611ecd565b6000918252602091829020835160059092020190815590820151600182015560408083015160028301805460608601516001600160401b03908116600160a01b026001600160e01b03199092166001600160a01b039094169390931717905560808401516003840180549190921667ffffffffffffffff1990911617905560a0909201516004909101555186907f9f2655a425592e943e49dc347814c54ad6eb5f6321c5ead9127e0b14395e7356906113119088908890889088909384526001600160a01b039290921660208401526001600160401b03908116604084015216606082015260800190565b60405180910390a2505050505050565b60006105d4838361146d565b6040516001600160a01b03808516602483015283166044820152606481018290526104db9085906323b872dd60e01b90608401610e2a565b60006113ba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114bc9092919063ffffffff16565b8051909150156109bb57808060200190518101906113d89190611ac5565b6109bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161032d565b600082600001828154811061144e5761144e611ecd565b9060005260206000200154905092915050565b60006105d483836114d5565b60008181526001830160205260408120546114b4575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105d7565b5060006105d7565b60606114cb84846000856115c8565b90505b9392505050565b600081815260018301602052604081205480156115be5760006114f9600183611e1b565b855490915060009061150d90600190611e1b565b905081811461157257600086600001828154811061152d5761152d611ecd565b906000526020600020015490508087600001848154811061155057611550611ecd565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061158357611583611eb7565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105d7565b60009150506105d7565b6060824710156116295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161032d565b6001600160a01b0385163b6116805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161032d565b600080866001600160a01b0316858760405161169c9190611c3e565b60006040518083038185875af1925050503d80600081146116d9576040519150601f19603f3d011682016040523d82523d6000602084013e6116de565b606091505b50915091506116ee8282866116f9565b979650505050505050565b606083156117085750816114ce565b8251156117185782518084602001fd5b8160405162461bcd60e51b815260040161032d9190611ce0565b6040518060c00160405280600081526020016000815260200160006001600160a01b0316815260200160006001600160401b0316815260200160006001600160401b03168152602001600081525090565b80356001600160a01b038116811461179a57600080fd5b919050565b600082601f8301126117b057600080fd5b813560206117c56117c083611d74565b611d44565b80838252828201915082860187848660051b89010111156117e557600080fd5b60005b8581101561180b576117f982611783565b845292840192908401906001016117e8565b5090979650505050505050565b600082601f83011261182957600080fd5b813560206118396117c083611d74565b80838252828201915082860187848660051b890101111561185957600080fd5b60005b8581101561180b5781358452928401929084019060010161185c565b600082601f83011261188957600080fd5b813560206118996117c083611d74565b80838252828201915082860187848660051b89010111156118b957600080fd5b60005b8581101561180b576118cd826118df565b845292840192908401906001016118bc565b80356001600160401b038116811461179a57600080fd5b60006020828403121561190857600080fd5b6105d482611783565b6000806040838503121561192457600080fd5b61192d83611783565b9150602083013561193d81611ef9565b809150509250929050565b6000806000806080858703121561195e57600080fd5b84356001600160401b038082111561197557600080fd5b61198188838901611818565b9550602087013591508082111561199757600080fd5b6119a38883890161179f565b945060408701359150808211156119b957600080fd5b6119c588838901611878565b935060608701359150808211156119db57600080fd5b506119e887828801611878565b91505092959194509250565b600080600080600060a08688031215611a0c57600080fd5b85356001600160401b0380821115611a2357600080fd5b611a2f89838a01611818565b96506020880135915080821115611a4557600080fd5b611a5189838a01611818565b95506040880135915080821115611a6757600080fd5b611a7389838a0161179f565b94506060880135915080821115611a8957600080fd5b611a9589838a01611878565b93506080880135915080821115611aab57600080fd5b50611ab888828901611878565b9150509295509295909350565b600060208284031215611ad757600080fd5b81516114ce81611ef9565b600060208284031215611af457600080fd5b5035919050565b60008060008060808587031215611b1157600080fd5b84359350611b2160208601611783565b9250611b2f604086016118df565b9150611b3d606086016118df565b905092959194509250565b60008060408385031215611b5b57600080fd5b50508035926020909101359150565b600080600080600060a08688031215611b8257600080fd5b8535945060208601359350611b9960408701611783565b9250611ba7606087016118df565b9150611bb5608087016118df565b90509295509295909350565b60008060408385031215611bd457600080fd5b82359150611be4602084016118df565b90509250929050565b805182526020810151602083015260018060a01b03604082015116604083015260608101516001600160401b038082166060850152806080840151166080850152505060a081015160a08301525050565b60008251611c50818460208701611e5a565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015611c9c57611c89838551611bed565b9284019260c09290920191600101611c76565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611c9c57835183529284019291840191600101611cc4565b6020815260008251806020840152611cff816040850160208701611e5a565b601f01601f19169190910160400192915050565b6020808252600990820152683337b93134b23232b760b91b604082015260600190565b60c081016105d78284611bed565b604051601f8201601f191681016001600160401b0381118282101715611d6c57611d6c611ee3565b604052919050565b60006001600160401b03821115611d8d57611d8d611ee3565b5060051b60200190565b60008219821115611daa57611daa611ea1565b500190565b60006001600160401b03808316818516808303821115611dd157611dd1611ea1565b01949350505050565b600082611df757634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611e1657611e16611ea1565b500290565b600082821015611e2d57611e2d611ea1565b500390565b60006001600160401b0383811690831681811015611e5257611e52611ea1565b039392505050565b60005b83811015611e75578181015183820152602001611e5d565b838111156104db5750506000910152565b6000600019821415611e9a57611e9a611ea1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610b5157600080fdfea264697066735822122094ee43cafd13abe025c8b59b523e47083aafb63cf40fa5286e0b0a1e192ace0064736f6c634300080700330000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd4

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101205760003560e01c806371ee8522116100ad578063cc4988f611610071578063cc4988f614610285578063cc841f74146102a5578063e4bf01a8146102b8578063e6c8bdee146102cb578063f2fde38b146102eb57600080fd5b806371ee85221461023357806375aa844b1461024657806387144a9f1461024e5780638da5cb5b146102615780639cb7de4b1461027257600080fd5b806340436fac116100f457806340436fac146101b257806345c54011146101d257806346ea87af146101e557806360e507eb14610218578063715018a61461022b57600080fd5b8062c8415b1461012557806319d152fa1461013a5780631a9358181461017e57806337bdc99b1461019f575b600080fd5b6101386101333660046119f4565b6102fe565b005b6101617f0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd481565b6040516001600160a01b0390911681526020015b60405180910390f35b61019161018c366004611afb565b6103cf565b604051908152602001610175565b6101386101ad366004611ae2565b610413565b6101c56101c03660046118f6565b6104e2565b6040516101759190611c5a565b6101916101e0366004611bc1565b6105c8565b6102086101f33660046118f6565b60016020526000908152604090205460ff1681565b6040519015158152602001610175565b6101916102263660046118f6565b6105dd565b6101386105fe565b6101c5610241366004611b48565b610612565b600254610191565b61013861025c366004611b6a565b6106e0565b6000546001600160a01b0316610161565b610138610280366004611911565b610723565b610298610293366004611948565b610756565b6040516101759190611ca8565b6101386102b33660046118f6565b61087e565b6101916102c6366004611ae2565b6109c0565b6102de6102d9366004611ae2565b610a04565b6040516101759190611d36565b6101386102f93660046118f6565b610adb565b3360009081526001602052604090205460ff166103365760405162461bcd60e51b815260040161032d90611d13565b60405180910390fd5b845160005b818110156103c6576103b386828151811061035857610358611ecd565b602002602001015186838151811061037257610372611ecd565b602002602001015186848151811061038c5761038c611ecd565b60200260200101518685815181106103a6576103a6611ecd565b6020026020010151610b54565b50806103be81611e86565b91505061033b565b50505050505050565b3360009081526001602052604081205460ff166103fe5760405162461bcd60e51b815260040161032d90611d13565b61040a85858585610b54565b95945050505050565b600061041e826109c0565b905080156104de5760006002838154811061043b5761043b611ecd565b906000526020600020906005020190508181600401600082825461045f9190611d97565b90915550506002810154604080516001600160a01b03909216808352602083018590529185917f3bfce8de0db7450cc169b94323c210e69a36c6a4a58c9f5d96bec4973adce392910160405180910390a26104db7f0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd48285610dfe565b50505b5050565b6001600160a01b03811660009081526003602052604081206060919061050790610e61565b90506000816001600160401b0381111561052357610523611ee3565b60405190808252806020026020018201604052801561055c57816020015b610549611732565b8152602001906001900390816105415790505b50905060005b828110156105c0576001600160a01b0385166000908152600360205260409020610590906102d99083610e6b565b8282815181106105a2576105a2611ecd565b602002602001018190525080806105b890611e86565b915050610562565b509392505050565b60006105d48383610e77565b90505b92915050565b6001600160a01b03811660009081526003602052604081206105d790610e61565b610606610f2d565b6106106000610f87565b565b606060006106208484611e1b565b61062b906001611d97565b90506000816001600160401b0381111561064757610647611ee3565b60405190808252806020026020018201604052801561068057816020015b61066d611732565b8152602001906001900390816106655790505b5090506000855b8581116106d55761069781610a04565b8383815181106106a9576106a9611ecd565b602002602001018190525081806106bf90611e86565b92505080806106cd90611e86565b915050610687565b509095945050505050565b3360009081526001602052604090205460ff1661070f5760405162461bcd60e51b815260040161032d90611d13565b61071c8585858585610fd7565b5050505050565b61072b610f2d565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b3360009081526001602052604090205460609060ff166107885760405162461bcd60e51b815260040161032d90611d13565b84516000816001600160401b038111156107a4576107a4611ee3565b6040519080825280602002602001820160405280156107cd578160200160208202803683370190505b50905060005b828110156108735760006108408983815181106107f2576107f2611ecd565b602002602001015189848151811061080c5761080c611ecd565b602002602001015189858151811061082657610826611ecd565b60200260200101518986815181106103a6576103a6611ecd565b90508083838151811061085557610855611ecd565b6020908102919091010152508061086b81611e86565b9150506107d3565b509695505050505050565b6001600160a01b038116600090815260036020526040812061089f90610e61565b90506000805b82811015610989576001600160a01b03841660009081526003602052604081206108cf9083610e6b565b905060006108dc826109c0565b90508015610974576108ee8185611d97565b935060006002838154811061090557610905611ecd565b90600052602060002090600502019050818160040160008282546109299190611d97565b9091555050604080516001600160a01b03891681526020810184905284917f3bfce8de0db7450cc169b94323c210e69a36c6a4a58c9f5d96bec4973adce392910160405180910390a2505b5050808061098190611e86565b9150506108a5565b5080156109bb576109bb7f0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd48483610dfe565b505050565b6000806109cd83426105c8565b905060006109da84610a04565b60a001519050818111156109f2575060009392505050565b6109fc8183611e1b565b949350505050565b610a0c611732565b6002548210610a525760405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081d995cdd1a5b99c81a5960721b604482015260640161032d565b60028281548110610a6557610a65611ecd565b60009182526020918290206040805160c08101825260059093029091018054835260018101549383019390935260028301546001600160a01b038116918301919091526001600160401b03600160a01b90910481166060830152600383015416608082015260049091015460a082015292915050565b610ae3610f2d565b6001600160a01b038116610b485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161032d565b610b5181610f87565b50565b60006001600160401b038216610ba65760405162461bcd60e51b81526020600482015260176024820152766475726174696f6e5365636f6e6473206973207a65726f60481b604482015260640161032d565b6001600160a01b038416610bfc5760405162461bcd60e51b815260206004820152601b60248201527f62656e6566696369617279206973207a65726f20616464726573730000000000604482015260640161032d565b50600280546040805160c08101825282815260208082018981526001600160a01b03808a168486018181526001600160401b03808c16606088019081528b821660808901908152600060a08a0181815260018d018e559c8152895160058d027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81019190915597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf89015593517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad08801805493518516600160a01b026001600160e01b031990941691909716179190911790945592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad1850180549190941667ffffffffffffffff199091161790925596517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920191909155948552600390529220909190610d6d9083611321565b50610d9a7f0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd433308961132d565b604080518781526001600160a01b03871660208201526001600160401b038681168284015285166060820152905183917fb3e454292f96ae8b4e34dd4ab6c5f957f50d4dadcbdb95cc48ee661b1a04dc4c919081900360800190a250949350505050565b6040516001600160a01b0383166024820152604481018290526109bb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611365565b60006105d7825490565b60006105d48383611437565b600080610e8384610a04565b905080606001516001600160401b0316836001600160401b03161015610ead5760009150506105d7565b80608001518160600151610ec19190611daf565b6001600160401b0316836001600160401b03161115610ee5576020015190506105d7565b80608001516001600160401b0316816060015184610f039190611e32565b6001600160401b03168260200151610f1b9190611dfc565b610f259190611dda565b9150506105d7565b6000546001600160a01b031633146106105760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161032d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160401b0381166110275760405162461bcd60e51b81526020600482015260176024820152766475726174696f6e5365636f6e6473206973207a65726f60481b604482015260640161032d565b6001600160a01b03831661107d5760405162461bcd60e51b815260206004820152601b60248201527f62656e6566696369617279206973207a65726f20616464726573730000000000604482015260640161032d565b600061108886610a04565b9050848160a0015111156110ea5760405162461bcd60e51b8152602060048201526024808201527f72656c6561736564206973206d6f7265207468616e2076657374696e67416d6f604482015263756e747360e01b606482015260840161032d565b8060200151851115611136576111317f0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd4333084602001518961112c9190611e1b565b61132d565b61117c565b848160200151111561117c5761117c7f0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd4338784602001516111779190611e1b565b610dfe565b80604001516001600160a01b0316846001600160a01b0316146111e2576040808201516001600160a01b031660009081526003602052206111bd9087611461565b506001600160a01b03841660009081526003602052604090206111e09087611321565b505b602081018590526001600160a01b03841660408201526001600160401b03808416606083015282166080820152600280548291908890811061122657611226611ecd565b6000918252602091829020835160059092020190815590820151600182015560408083015160028301805460608601516001600160401b03908116600160a01b026001600160e01b03199092166001600160a01b039094169390931717905560808401516003840180549190921667ffffffffffffffff1990911617905560a0909201516004909101555186907f9f2655a425592e943e49dc347814c54ad6eb5f6321c5ead9127e0b14395e7356906113119088908890889088909384526001600160a01b039290921660208401526001600160401b03908116604084015216606082015260800190565b60405180910390a2505050505050565b60006105d4838361146d565b6040516001600160a01b03808516602483015283166044820152606481018290526104db9085906323b872dd60e01b90608401610e2a565b60006113ba826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114bc9092919063ffffffff16565b8051909150156109bb57808060200190518101906113d89190611ac5565b6109bb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161032d565b600082600001828154811061144e5761144e611ecd565b9060005260206000200154905092915050565b60006105d483836114d5565b60008181526001830160205260408120546114b4575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556105d7565b5060006105d7565b60606114cb84846000856115c8565b90505b9392505050565b600081815260018301602052604081205480156115be5760006114f9600183611e1b565b855490915060009061150d90600190611e1b565b905081811461157257600086600001828154811061152d5761152d611ecd565b906000526020600020015490508087600001848154811061155057611550611ecd565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061158357611583611eb7565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506105d7565b60009150506105d7565b6060824710156116295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161032d565b6001600160a01b0385163b6116805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161032d565b600080866001600160a01b0316858760405161169c9190611c3e565b60006040518083038185875af1925050503d80600081146116d9576040519150601f19603f3d011682016040523d82523d6000602084013e6116de565b606091505b50915091506116ee8282866116f9565b979650505050505050565b606083156117085750816114ce565b8251156117185782518084602001fd5b8160405162461bcd60e51b815260040161032d9190611ce0565b6040518060c00160405280600081526020016000815260200160006001600160a01b0316815260200160006001600160401b0316815260200160006001600160401b03168152602001600081525090565b80356001600160a01b038116811461179a57600080fd5b919050565b600082601f8301126117b057600080fd5b813560206117c56117c083611d74565b611d44565b80838252828201915082860187848660051b89010111156117e557600080fd5b60005b8581101561180b576117f982611783565b845292840192908401906001016117e8565b5090979650505050505050565b600082601f83011261182957600080fd5b813560206118396117c083611d74565b80838252828201915082860187848660051b890101111561185957600080fd5b60005b8581101561180b5781358452928401929084019060010161185c565b600082601f83011261188957600080fd5b813560206118996117c083611d74565b80838252828201915082860187848660051b89010111156118b957600080fd5b60005b8581101561180b576118cd826118df565b845292840192908401906001016118bc565b80356001600160401b038116811461179a57600080fd5b60006020828403121561190857600080fd5b6105d482611783565b6000806040838503121561192457600080fd5b61192d83611783565b9150602083013561193d81611ef9565b809150509250929050565b6000806000806080858703121561195e57600080fd5b84356001600160401b038082111561197557600080fd5b61198188838901611818565b9550602087013591508082111561199757600080fd5b6119a38883890161179f565b945060408701359150808211156119b957600080fd5b6119c588838901611878565b935060608701359150808211156119db57600080fd5b506119e887828801611878565b91505092959194509250565b600080600080600060a08688031215611a0c57600080fd5b85356001600160401b0380821115611a2357600080fd5b611a2f89838a01611818565b96506020880135915080821115611a4557600080fd5b611a5189838a01611818565b95506040880135915080821115611a6757600080fd5b611a7389838a0161179f565b94506060880135915080821115611a8957600080fd5b611a9589838a01611878565b93506080880135915080821115611aab57600080fd5b50611ab888828901611878565b9150509295509295909350565b600060208284031215611ad757600080fd5b81516114ce81611ef9565b600060208284031215611af457600080fd5b5035919050565b60008060008060808587031215611b1157600080fd5b84359350611b2160208601611783565b9250611b2f604086016118df565b9150611b3d606086016118df565b905092959194509250565b60008060408385031215611b5b57600080fd5b50508035926020909101359150565b600080600080600060a08688031215611b8257600080fd5b8535945060208601359350611b9960408701611783565b9250611ba7606087016118df565b9150611bb5608087016118df565b90509295509295909350565b60008060408385031215611bd457600080fd5b82359150611be4602084016118df565b90509250929050565b805182526020810151602083015260018060a01b03604082015116604083015260608101516001600160401b038082166060850152806080840151166080850152505060a081015160a08301525050565b60008251611c50818460208701611e5a565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015611c9c57611c89838551611bed565b9284019260c09290920191600101611c76565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611c9c57835183529284019291840191600101611cc4565b6020815260008251806020840152611cff816040850160208701611e5a565b601f01601f19169190910160400192915050565b6020808252600990820152683337b93134b23232b760b91b604082015260600190565b60c081016105d78284611bed565b604051601f8201601f191681016001600160401b0381118282101715611d6c57611d6c611ee3565b604052919050565b60006001600160401b03821115611d8d57611d8d611ee3565b5060051b60200190565b60008219821115611daa57611daa611ea1565b500190565b60006001600160401b03808316818516808303821115611dd157611dd1611ea1565b01949350505050565b600082611df757634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611e1657611e16611ea1565b500290565b600082821015611e2d57611e2d611ea1565b500390565b60006001600160401b0383811690831681811015611e5257611e52611ea1565b039392505050565b60005b83811015611e75578181015183820152602001611e5d565b838111156104db5750506000910152565b6000600019821415611e9a57611e9a611ea1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610b5157600080fdfea264697066735822122094ee43cafd13abe025c8b59b523e47083aafb63cf40fa5286e0b0a1e192ace0064736f6c63430008070033

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

0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd4

-----Decoded View---------------
Arg [0] : tokenAddress (address): 0x3Ebb31CB2888e0Acbb81cBE2FeC65AEE24be3BD4

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003ebb31cb2888e0acbb81cbe2fec65aee24be3bd4


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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