ETH Price: $2,134.90 (+0.46%)

Contract

0x4f55eDFfd4e9325577D4C8Dde6F15782CEfd6517
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release Availabl...245912852026-03-05 12:31:3515 days ago1772713895IN
ValleyDAO: Vesting Contract
0 ETH0.000013080.15986934
Release241329722025-12-31 13:41:3579 days ago1767188495IN
ValleyDAO: Vesting Contract
0 ETH0.0000450.57917378
Release238691592025-11-24 13:57:59116 days ago1763992679IN
ValleyDAO: Vesting Contract
0 ETH0.000061320.78919439
Release Availabl...235063012025-10-04 18:48:11166 days ago1759603691IN
ValleyDAO: Vesting Contract
0 ETH0.000120241.11608445
Release234630622025-09-28 17:44:11173 days ago1759081451IN
ValleyDAO: Vesting Contract
0 ETH0.000130141.16305437
Release Availabl...234128142025-09-21 17:07:59180 days ago1758474479IN
ValleyDAO: Vesting Contract
0 ETH0.000005070.19202269
Release Availabl...233933302025-09-18 23:46:11182 days ago1758239171IN
ValleyDAO: Vesting Contract
0 ETH0.000006080.23012373
Release Availabl...233864862025-09-18 0:49:23183 days ago1758156563IN
ValleyDAO: Vesting Contract
0 ETH0.000006980.26404534
Release Availabl...233778022025-09-16 19:44:47184 days ago1758051887IN
ValleyDAO: Vesting Contract
0 ETH0.000013610.51495358
Release Availabl...233681262025-09-15 11:17:11186 days ago1757935031IN
ValleyDAO: Vesting Contract
0 ETH0.000087691.07147156
Release Availabl...233060552025-09-06 19:11:11194 days ago1757185871IN
ValleyDAO: Vesting Contract
0 ETH0.000044871.69681785
Release Availabl...232569212025-08-30 22:23:35201 days ago1756592615IN
ValleyDAO: Vesting Contract
0 ETH0.000006220.23552252
Release Availabl...232538032025-08-30 11:58:11202 days ago1756555091IN
ValleyDAO: Vesting Contract
0 ETH0.000007240.27384729
Release Availabl...232246332025-08-26 10:16:35206 days ago1756203395IN
ValleyDAO: Vesting Contract
0 ETH0.000101481.23998646
Release Availabl...231905942025-08-21 16:16:35211 days ago1755792995IN
ValleyDAO: Vesting Contract
0 ETH0.000331443.3498596
Release231376022025-08-14 6:47:47218 days ago1755154067IN
ValleyDAO: Vesting Contract
0 ETH0.00014571.30196389
Release228128552025-06-29 21:46:47263 days ago1751233607IN
ValleyDAO: Vesting Contract
0 ETH0.000202372.32027899
Release228053602025-06-28 20:36:35264 days ago1751142995IN
ValleyDAO: Vesting Contract
0 ETH0.00024472.34518764
Release220749002025-03-18 16:17:11367 days ago1742314631IN
ValleyDAO: Vesting Contract
0 ETH0.000091810.96830949
Release Availabl...219415182025-02-28 1:20:11385 days ago1740705611IN
ValleyDAO: Vesting Contract
0 ETH0.000122321.13540117
Release Availabl...216219862025-01-14 10:00:23430 days ago1736848823IN
ValleyDAO: Vesting Contract
0 ETH0.0003017.46638597
Release215875162025-01-09 14:28:11435 days ago1736432891IN
ValleyDAO: Vesting Contract
0 ETH0.0015334217.57613208
Release Availabl...215159402024-12-30 14:38:47445 days ago1735569527IN
ValleyDAO: Vesting Contract
0 ETH0.0015621415.78814548
Release214440842024-12-20 13:39:11455 days ago1734701951IN
ValleyDAO: Vesting Contract
0 ETH0.0040422846.33258819
Release Availabl...213646372024-12-09 11:26:23466 days ago1733743583IN
ValleyDAO: Vesting Contract
0 ETH0.0010410611.48643482
View all transactions

View more zero value Internal Transactions in Advanced View mode

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

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
TokenVesting

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// contracts/TokenVesting.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.18;

import { IERC20Metadata } from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Pausable } from "@openzeppelin/contracts/security/Pausable.sol";

/// @title TokenVesting - On-Chain vesting scheme enabled by smart contracts.
/// The TokenVesting contract can release its token balance gradually like a
/// typical vesting scheme, with a cliff and vesting period. The contract owner
/// can create vesting schedules for different users, even multiple for the same person.
/// Vesting schedules are optionally revokable by the owner. Additionally the
/// smart contract functions as an ERC20 compatible non-transferable virtual
/// token which can be used e.g. for governance.
/// This work is based on the TokenVesting contract by Abdelhamid Bakhta
/// (https://github.com/abdelhamidbakhta/token-vesting-contracts)
/// and was extended with the virtual token functionality and partially rewritten.
/// @author Schmackofant - schmackofant@protonmail.com

contract TokenVesting is IERC20Metadata, Ownable, ReentrancyGuard, Pausable {
    using SafeERC20 for IERC20Metadata;

    /// @notice The ERC20 name of the virtual token
    string public override name;

    /// @notice The ERC20 symbol of the virtual token
    string public override symbol;

    /// @notice The ERC20 number of decimals of the virtual token
    /// @dev This contract only supports native tokens with 18 decimals
    uint8 public constant override decimals = 18;

    enum Status {
        INITIALIZED, //0
        REVOKED
    }

    /**
     * @dev vesting schedule struct
     * @param cliff cliff period in seconds
     * @param start start time of the vesting period
     * @param duration duration of the vesting period in seconds
     * @param slicePeriodSeconds duration of a slice period for the vesting in seconds
     * @param amountTotal total amount of tokens to be released at the end of the vesting
     * @param released amount of tokens released so far
     * @param status schedule status (initialized, revoked)
     * @param beneficiary address of beneficiary of the vesting schedule
     * @param revokable whether or not the vesting is revokable
     */
    struct VestingSchedule {
        uint256 cliff;
        uint256 start;
        uint256 duration;
        uint256 slicePeriodSeconds;
        uint256 amountTotal;
        uint256 released;
        Status status;
        address beneficiary;
        bool revokable;
    }

    /// @notice address of the ERC20 native token
    IERC20Metadata public immutable nativeToken;

    /// @dev This mapping is used to keep track of the vesting schedule ids
    bytes32[] public vestingSchedulesIds;

    /// @dev This mapping is used to keep track of the vesting schedules
    mapping(bytes32 => VestingSchedule) private vestingSchedules;

    /// @notice total amount of native tokens in all vesting schedules
    uint256 public vestingSchedulesTotalAmount;

    /// @notice This mapping is used to keep track of the number of vesting schedules for each beneficiary
    mapping(address => uint256) public holdersVestingScheduleCount;

    /// @dev This mapping is used to keep track of the total amount of vested tokens for each beneficiary
    mapping(address => uint256) private holdersVestedAmount;

    event ScheduleCreated(
        bytes32 indexed scheduleId,
        address indexed beneficiary,
        uint256 amount,
        uint256 start,
        uint256 cliff,
        uint256 duration,
        uint256 slicePeriodSeconds,
        bool revokable
    );
    event TokensReleased(bytes32 indexed scheduleId, address indexed beneficiary, uint256 amount);
    event ScheduleRevoked(bytes32 indexed scheduleId);

    /**
     * @dev Reverts if the vesting schedule does not exist or has been revoked.
     */
    modifier onlyIfVestingScheduleNotRevoked(bytes32 vestingScheduleId) {
        // Check if schedule exists
        if (vestingSchedules[vestingScheduleId].duration == 0) revert InvalidSchedule();
        //slither-disable-next-line incorrect-equality
        if (vestingSchedules[vestingScheduleId].status == Status.REVOKED) revert ScheduleWasRevoked();
        _;
    }

    /// @dev This error is fired when trying to perform an action that is not
    /// supported by the contract, like transfers and approvals. These actions
    /// will never be supported.
    error NotSupported();

    error DecimalsError();
    error InsufficientTokensInContract();
    error InsufficientReleasableTokens();
    error InvalidSchedule();
    error InvalidDuration();
    error InvalidAmount();
    error InvalidSlicePeriod();
    error InvalidStart();
    error DurationShorterThanCliff();
    error NotRevokable();
    error Unauthorized();
    error ScheduleWasRevoked();
    error TooManySchedulesForBeneficiary();

    /**
     * @notice Creates a vesting contract.
     * @param token_ address of the ERC20 native token contract
     * @param _name name of the virtual token
     * @param _symbol symbol of the virtual token
     */
    constructor(IERC20Metadata token_, string memory _name, string memory _symbol) {
        nativeToken = token_;
        if (nativeToken.decimals() != 18) revert DecimalsError();
        name = _name;
        symbol = _symbol;
    }

    /// @dev All types of transfers are permanently disabled.
    function transferFrom(address, address, uint256) public pure override returns (bool) {
        revert NotSupported();
    }

    /// @dev All types of transfers are permanently disabled.
    function transfer(address, uint256) public pure override returns (bool) {
        revert NotSupported();
    }

    /// @dev All types of approvals are permanently disabled to reduce code
    /// size.
    function approve(address, uint256) public pure override returns (bool) {
        revert NotSupported();
    }

    /// @dev Approvals cannot be set, so allowances are always zero.
    function allowance(address, address) public pure override returns (uint256) {
        return 0;
    }

    /// @notice Returns the amount of virtual tokens in existence
    function totalSupply() public view override returns (uint256) {
        return vestingSchedulesTotalAmount;
    }

    /// @notice Returns the sum of virtual tokens for a user
    /// @param user The user for whom the balance is calculated
    /// @return Balance of the user
    function balanceOf(address user) public view override returns (uint256) {
        return holdersVestedAmount[user];
    }

    /**
     * @notice Returns the vesting schedule information for a given holder and index.
     * @return the vesting schedule structure information
     */
    function getVestingScheduleByAddressAndIndex(address holder, uint256 index) external view returns (VestingSchedule memory) {
        return getVestingSchedule(computeVestingScheduleIdForAddressAndIndex(holder, index));
    }

    /**
     * @notice Public function for creating a vesting schedule (only callable by contract owner)
     * @param _beneficiary address of the beneficiary to whom vested tokens are transferred
     * @param _start start time of the vesting period
     * @param _cliff duration in seconds of the cliff in which tokens will begin to vest
     * @param _duration duration in seconds of the period in which the tokens will vest
     * @param _slicePeriodSeconds duration of a slice period for the vesting in seconds
     * @param _revokable whether the vesting is revokable or not
     * @param _amount total amount of tokens to be released at the end of the vesting
     */
    function createVestingSchedule(
        address _beneficiary,
        uint256 _start,
        uint256 _cliff,
        uint256 _duration,
        uint256 _slicePeriodSeconds,
        bool _revokable,
        uint256 _amount
    ) external onlyOwner {
        _createVestingSchedule(_beneficiary, _start, _cliff, _duration, _slicePeriodSeconds, _revokable, _amount);
    }

    /**
     * @notice Creates a new vesting schedule for a beneficiary.
     * @param _beneficiary address of the beneficiary to whom vested tokens are transferred
     * @param _start start time of the vesting period
     * @param _cliff duration in seconds of the cliff in which tokens will begin to vest
     * @param _duration duration in seconds of the period in which the tokens will vest
     * @param _slicePeriodSeconds duration of a slice period for the vesting in seconds
     * @param _revokable whether the vesting is revokable or not
     * @param _amount total amount of tokens to be released at the end of the vesting
     */
    function _createVestingSchedule(
        address _beneficiary,
        uint256 _start,
        uint256 _cliff,
        uint256 _duration,
        uint256 _slicePeriodSeconds,
        bool _revokable,
        uint256 _amount
    ) internal {
        if (getWithdrawableAmount() < _amount) revert InsufficientTokensInContract();

        // _start should be no further away than 30 weeks
        if (_start > block.timestamp + 30 weeks) revert InvalidStart();

        // _duration should be at least 7 days and max 50 years
        if (_duration < 7 days || _duration > 50 * (365 days)) revert InvalidDuration();

        if (_amount == 0) revert InvalidAmount();

        // _slicePeriodSeconds should be at least 60 seconds
        if (_slicePeriodSeconds == 0 || _slicePeriodSeconds > 60) revert InvalidSlicePeriod();

        // _duration must be longer than _cliff
        if (_duration < _cliff) revert DurationShorterThanCliff();

        if (_amount > 2 ** 200) revert InvalidAmount();
        if (holdersVestingScheduleCount[_beneficiary] >= 100) revert TooManySchedulesForBeneficiary();

        bytes32 vestingScheduleId = computeVestingScheduleIdForAddressAndIndex(_beneficiary, holdersVestingScheduleCount[_beneficiary]);
        vestingSchedules[vestingScheduleId] =
            VestingSchedule(_start + _cliff, _start, _duration, _slicePeriodSeconds, _amount, 0, Status.INITIALIZED, _beneficiary, _revokable);
        vestingSchedulesTotalAmount = vestingSchedulesTotalAmount + _amount;
        vestingSchedulesIds.push(vestingScheduleId);
        ++holdersVestingScheduleCount[_beneficiary];
        holdersVestedAmount[_beneficiary] = holdersVestedAmount[_beneficiary] + _amount;
        emit ScheduleCreated(vestingScheduleId, _beneficiary, _amount, _start, _cliff, _duration, _slicePeriodSeconds, _revokable);
    }

    /**
     * @notice Revokes the vesting schedule for given identifier.
     * @param vestingScheduleId the vesting schedule identifier
     */
    function revoke(bytes32 vestingScheduleId) external onlyOwner onlyIfVestingScheduleNotRevoked(vestingScheduleId) {
        VestingSchedule storage vestingSchedule = vestingSchedules[vestingScheduleId];
        if (!vestingSchedule.revokable) revert NotRevokable();
        if (_computeReleasableAmount(vestingSchedule) > 0) {
            _release(vestingScheduleId, _computeReleasableAmount(vestingSchedule));
        }
        uint256 unreleased = vestingSchedule.amountTotal - vestingSchedule.released;
        vestingSchedulesTotalAmount = vestingSchedulesTotalAmount - unreleased;
        holdersVestedAmount[vestingSchedule.beneficiary] = holdersVestedAmount[vestingSchedule.beneficiary] - unreleased;
        vestingSchedule.status = Status.REVOKED;
        emit ScheduleRevoked(vestingScheduleId);
    }

    /**
     * @notice Pauses or unpauses the release of tokens and claiming of schedules
     * @param paused true if the release of tokens and claiming of schedules should be paused, false otherwise
     */
    function setPaused(bool paused) external onlyOwner {
        if (paused) {
            _pause();
        } else {
            _unpause();
        }
    }

    /**
     * @notice Withdraw the specified amount if possible.
     * @param amount the amount to withdraw
     */
    function withdraw(uint256 amount) external nonReentrant onlyOwner {
        if (amount > getWithdrawableAmount()) revert InsufficientTokensInContract();
        nativeToken.safeTransfer(owner(), amount);
    }

    /**
     * @notice Internal function for releasing vested amount of tokens.
     * @param vestingScheduleId the vesting schedule identifier
     * @param amount the amount to release
     */
    function _release(bytes32 vestingScheduleId, uint256 amount) internal {
        VestingSchedule storage vestingSchedule = vestingSchedules[vestingScheduleId];
        bool isBeneficiary = msg.sender == vestingSchedule.beneficiary;
        bool isOwner = msg.sender == owner();
        if (!isBeneficiary && !isOwner) revert Unauthorized();
        if (amount > _computeReleasableAmount(vestingSchedule)) revert InsufficientReleasableTokens();
        vestingSchedule.released = vestingSchedule.released + amount;
        vestingSchedulesTotalAmount = vestingSchedulesTotalAmount - amount;
        holdersVestedAmount[vestingSchedule.beneficiary] = holdersVestedAmount[vestingSchedule.beneficiary] - amount;
        emit TokensReleased(vestingScheduleId, vestingSchedule.beneficiary, amount);
        nativeToken.safeTransfer(vestingSchedule.beneficiary, amount);
    }

    /**
     * @notice Release vested amount of tokens.
     * @param vestingScheduleId the vesting schedule identifier
     * @param amount the amount to release
     */
    function release(bytes32 vestingScheduleId, uint256 amount) external nonReentrant onlyIfVestingScheduleNotRevoked(vestingScheduleId) {
        _release(vestingScheduleId, amount);
    }

    /**
     * @notice Release all available tokens for holder address
     * @param holder address of the holder & beneficiary
     */
    function releaseAvailableTokensForHolder(address holder) external nonReentrant {
        if (msg.sender != holder && msg.sender != owner()) revert Unauthorized();
        uint256 vestingScheduleCount = holdersVestingScheduleCount[holder];
        for (uint256 i = 0; i < vestingScheduleCount; i++) {
            bytes32 vestingScheduleId = computeVestingScheduleIdForAddressAndIndex(holder, i);
            uint256 releasable = computeReleasableAmount(vestingScheduleId);
            if (releasable > 0) {
                _release(vestingScheduleId, releasable);
            }
        }
    }

    /**
     * @notice Returns the array of vesting schedule ids
     * @return vestingSchedulesIds
     */
    function getVestingSchedulesIds() external view returns (bytes32[] memory) {
        return vestingSchedulesIds;
    }

    /**
     * @notice Computes the vested amount of tokens for the given vesting schedule identifier.
     * @return the vested amount
     */
    function computeReleasableAmount(bytes32 vestingScheduleId) public view onlyIfVestingScheduleNotRevoked(vestingScheduleId) returns (uint256) {
        return _computeReleasableAmount(vestingSchedules[vestingScheduleId]);
    }

    /**
     * @notice Returns the vesting schedule information for a given identifier.
     * @return the vesting schedule structure information
     */
    function getVestingSchedule(bytes32 vestingScheduleId) public view returns (VestingSchedule memory) {
        return vestingSchedules[vestingScheduleId];
    }

    /**
     * @notice Returns the amount of native tokens that can be withdrawn by the owner.
     * @return the amount of tokens
     */
    function getWithdrawableAmount() public view returns (uint256) {
        return nativeToken.balanceOf(address(this)) - vestingSchedulesTotalAmount;
    }

    /**
     * @notice Computes the vesting schedule identifier for an address and an index.
     */
    function computeVestingScheduleIdForAddressAndIndex(address holder, uint256 index) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(holder, index));
    }

    /**
     * @dev Computes the releasable amount of tokens for a vesting schedule.
     * @return the amount of releasable tokens
     */
    function _computeReleasableAmount(VestingSchedule storage vestingSchedule) internal view returns (uint256) {
        uint256 currentTime = block.timestamp;
        //slither-disable-next-line incorrect-equality
        if (currentTime < vestingSchedule.cliff || vestingSchedule.status == Status.REVOKED) {
            return 0;
        } else if (currentTime >= vestingSchedule.start + vestingSchedule.duration) {
            return vestingSchedule.amountTotal - vestingSchedule.released;
        } else {
            uint256 timeFromStart = currentTime - vestingSchedule.start;
            uint256 secondsPerSlice = vestingSchedule.slicePeriodSeconds;
            uint256 vestedSlicePeriods = timeFromStart / secondsPerSlice;
            // Disable warning: duration and token amounts are checked in schedule creation and prevent underflow/overflow
            //slither-disable-next-line divide-before-multiply
            uint256 vestedSeconds = vestedSlicePeriods * secondsPerSlice;
            // Disable warning: duration and token amounts are checked in schedule creation and prevent underflow/overflow
            //slither-disable-next-line divide-before-multiply
            uint256 vestedAmount = vestingSchedule.amountTotal * vestedSeconds / vestingSchedule.duration;
            return vestedAmount - vestingSchedule.released;
        }
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.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 functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

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

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

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

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

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

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

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

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

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

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "remappings": [
    ":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    ":ds-test/=lib/forge-std/lib/ds-test/src/",
    ":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    ":forge-std/=lib/forge-std/src/",
    ":openzeppelin-contracts/=lib/openzeppelin-contracts/",
    ":solady/=lib/solady/src/",
    ":solmate/=lib/solady/lib/solmate/src/"
  ],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20Metadata","name":"token_","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DecimalsError","type":"error"},{"inputs":[],"name":"DurationShorterThanCliff","type":"error"},{"inputs":[],"name":"InsufficientReleasableTokens","type":"error"},{"inputs":[],"name":"InsufficientTokensInContract","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidDuration","type":"error"},{"inputs":[],"name":"InvalidSchedule","type":"error"},{"inputs":[],"name":"InvalidSlicePeriod","type":"error"},{"inputs":[],"name":"InvalidStart","type":"error"},{"inputs":[],"name":"NotRevokable","type":"error"},{"inputs":[],"name":"NotSupported","type":"error"},{"inputs":[],"name":"ScheduleWasRevoked","type":"error"},{"inputs":[],"name":"TooManySchedulesForBeneficiary","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"scheduleId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cliff","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"slicePeriodSeconds","type":"uint256"},{"indexed":false,"internalType":"bool","name":"revokable","type":"bool"}],"name":"ScheduleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"scheduleId","type":"bytes32"}],"name":"ScheduleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"scheduleId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"vestingScheduleId","type":"bytes32"}],"name":"computeReleasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"computeVestingScheduleIdForAddressAndIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_slicePeriodSeconds","type":"uint256"},{"internalType":"bool","name":"_revokable","type":"bool"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"createVestingSchedule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"vestingScheduleId","type":"bytes32"}],"name":"getVestingSchedule","outputs":[{"components":[{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"slicePeriodSeconds","type":"uint256"},{"internalType":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"},{"internalType":"enum TokenVesting.Status","name":"status","type":"uint8"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"bool","name":"revokable","type":"bool"}],"internalType":"struct TokenVesting.VestingSchedule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getVestingScheduleByAddressAndIndex","outputs":[{"components":[{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"slicePeriodSeconds","type":"uint256"},{"internalType":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"},{"internalType":"enum TokenVesting.Status","name":"status","type":"uint8"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"bool","name":"revokable","type":"bool"}],"internalType":"struct TokenVesting.VestingSchedule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVestingSchedulesIds","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holdersVestingScheduleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nativeToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"vestingScheduleId","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"releaseAvailableTokensForHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"vestingScheduleId","type":"bytes32"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingSchedulesIds","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingSchedulesTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162001fea38038062001fea83398101604081905262000034916200021e565b6200003f3362000109565b600180556002805460ff191690556001600160a01b03831660808190526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801562000098573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000be9190620002a8565b60ff16601214620000e257604051631273be1d60e31b815260040160405180910390fd5b6003620000f0838262000363565b506004620000ff828262000363565b505050506200042f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200018157600080fd5b81516001600160401b03808211156200019e576200019e62000159565b604051601f8301601f19908116603f01168101908282118183101715620001c957620001c962000159565b81604052838152602092508683858801011115620001e657600080fd5b600091505b838210156200020a5785820183015181830184015290820190620001eb565b600093810190920192909252949350505050565b6000806000606084860312156200023457600080fd5b83516001600160a01b03811681146200024c57600080fd5b60208501519093506001600160401b03808211156200026a57600080fd5b62000278878388016200016f565b935060408601519150808211156200028f57600080fd5b506200029e868287016200016f565b9150509250925092565b600060208284031215620002bb57600080fd5b815160ff81168114620002cd57600080fd5b9392505050565b600181811c90821680620002e957607f821691505b6020821081036200030a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035e57600081815260208120601f850160051c81016020861015620003395750805b601f850160051c820191505b818110156200035a5782815560010162000345565b5050505b505050565b81516001600160401b038111156200037f576200037f62000159565b6200039781620003908454620002d4565b8462000310565b602080601f831160018114620003cf5760008415620003b65750858301515b600019600386901b1c1916600185901b1785556200035a565b600085815260208120601f198616915b828110156200040057888601518255948401946001909101908401620003df565b50858210156200041f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611b8a62000460600039600081816103be01528181610626015281816107900152610db00152611b8a6000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80638815e86211610104578063a9059cbb116100a2578063ea1bb3d511610071578063ea1bb3d5146103e0578063f2fde38b146103f3578063f51321d714610406578063fd8aa0851461041957600080fd5b8063a9059cbb14610207578063b75c7dc614610390578063dd62ed3e146103a3578063e1758bd8146103b957600080fd5b806390be10cc116100de57806390be10cc1461035757806395d89b411461035f5780639d8535ad146103675780639ef346b41461037057600080fd5b80638815e8621461030c5780638af104da1461031f5780638da5cb5b1461033257600080fd5b80632e1a7d4d116101715780635c975abb1161014b5780635c975abb146102bd57806366afd8ef146102c857806370a08231146102db578063715018a61461030457600080fd5b80632e1a7d4d14610270578063313ce567146102835780634b866a2d1461029d57600080fd5b806316c38b3c116101ad57806316c38b3c1461022a57806317e289e91461023d57806318160ddd1461025057806323b872dd1461026257600080fd5b806305d6cc59146101d457806306fdde03146101e9578063095ea7b314610207575b600080fd5b6101e76101e2366004611779565b61042e565b005b6101f16104e8565b6040516101fe91906117b8565b60405180910390f35b61021a6102153660046117eb565b610576565b60405190151581526020016101fe565b6101e7610238366004611823565b610591565b6101e761024b366004611840565b6105af565b6007545b6040519081526020016101fe565b61021a6102153660046118a7565b6101e761027e3660046118e3565b6105cf565b61028b601281565b60405160ff90911681526020016101fe565b6102546102ab366004611779565b60086020526000908152604090205481565b60025460ff1661021a565b6101e76102d63660046118fc565b610656565b6102546102e9366004611779565b6001600160a01b031660009081526009602052604090205490565b6101e76106ef565b61025461031a3660046118e3565b610703565b61025461032d3660046117eb565b610724565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101fe565b61025461076c565b6101f161080a565b61025460075481565b61038361037e3660046118e3565b610817565b6040516101fe9190611934565b6101e761039e3660046118e3565b6108e3565b6102546103b13660046119c9565b600092915050565b61033f7f000000000000000000000000000000000000000000000000000000000000000081565b6102546103ee3660046118e3565b610a7a565b6101e7610401366004611779565b610b14565b6103836104143660046117eb565b610b8f565b610421610bab565b6040516101fe91906119fc565b610436610c03565b336001600160a01b0382161480159061045a57506000546001600160a01b03163314155b15610477576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116600090815260086020526040812054905b818110156104da5760006104a68483610724565b905060006104b382610a7a565b905080156104c5576104c58282610c5c565b505080806104d290611a56565b915050610492565b50506104e560018055565b50565b600380546104f590611a6f565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611a6f565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b505050505081565b6000604051630280e1e560e61b815260040160405180910390fd5b610599610de5565b80156105a7576104e5610e3f565b6104e5610e99565b6105b7610de5565b6105c687878787878787610ed2565b50505050505050565b6105d7610c03565b6105df610de5565b6105e761076c565b811115610607576040516314a83c1960e01b815260040160405180910390fd5b61064d61061c6000546001600160a01b031690565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016908361128b565b6104e560018055565b61065e610c03565b60008281526006602052604081206002015483910361069057604051631b742d9d60e31b815260040160405180910390fd5b60016000828152600660208190526040909120015460ff1660018111156106b9576106b961191e565b036106d757604051632957a17760e01b815260040160405180910390fd5b6106e18383610c5c565b506106eb60018055565b5050565b6106f7610de5565b61070160006112e2565b565b6005818154811061071357600080fd5b600091825260209091200154905081565b6040516bffffffffffffffffffffffff19606084901b166020820152603481018290526000906054016040516020818303038152906040528051906020012090505b92915050565b6007546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156107d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fb9190611aa3565b6108059190611abc565b905090565b600480546104f590611a6f565b61081f611700565b60066000838152602001908152602001600020604051806101200160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff16600181111561089e5761089e61191e565b60018111156108af576108af61191e565b81526006919091015461010081046001600160a01b03166020830152600160a81b900460ff16151560409091015292915050565b6108eb610de5565b60008181526006602052604081206002015482910361091d57604051631b742d9d60e31b815260040160405180910390fd5b60016000828152600660208190526040909120015460ff1660018111156109465761094661191e565b0361096457604051632957a17760e01b815260040160405180910390fd5b600082815260066020819052604090912090810154600160a81b900460ff166109a057604051633c34e69d60e01b815260040160405180910390fd5b60006109ab82611332565b11156109c3576109c3836109be83611332565b610c5c565b6000816005015482600401546109d99190611abc565b9050806007546109e99190611abc565b600755600682015461010090046001600160a01b0316600090815260096020526040902054610a19908290611abc565b6006830180546001600160a01b036101009091041660009081526009602052604080822093909355815460ff1916600117909155905185917f3672cfd57034e1b586da46ec42eea7bc449af89ac0ff5a795c3c00a0d1ae64c991a250505050565b60008181526006602052604081206002015482908203610aad57604051631b742d9d60e31b815260040160405180910390fd5b60016000828152600660208190526040909120015460ff166001811115610ad657610ad661191e565b03610af457604051632957a17760e01b815260040160405180910390fd5b6000838152600660205260409020610b0b90611332565b91505b50919050565b610b1c610de5565b6001600160a01b038116610b865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6104e5816112e2565b610b97611700565b610ba461037e8484610724565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610bf957602002820191906000526020600020905b815481526020019060010190808311610be5575b5050505050905090565b600260015403610c555760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b7d565b6002600155565b600082815260066020819052604082209081015491549091336001600160a01b0361010090920482168114929190911614811582610c98575080155b15610cb5576040516282b42960e81b815260040160405180910390fd5b610cbe83611332565b841115610cde5760405163110c741b60e31b815260040160405180910390fd5b838360050154610cee9190611acf565b6005840155600754610d01908590611abc565b600755600683015461010090046001600160a01b0316600090815260096020526040902054610d31908590611abc565b6006840180546001600160a01b036101009182900481166000908152600960205260409081902094909455915492519204169086907f62eb4bd96d9a7a66875a9f46f9f9d8bf6cfed3fe0578671b752301427d2a4f6690610d959088815260200190565b60405180910390a36006830154610dde906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116916101009004168661128b565b5050505050565b6000546001600160a01b031633146107015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7d565b610e4761140f565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e7c3390565b6040516001600160a01b03909116815260200160405180910390a1565b610ea1611455565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610e7c565b80610edb61076c565b1015610efa576040516314a83c1960e01b815260040160405180910390fd5b610f0842630114db00611acf565b861115610f2857604051630e0d5b9360e21b815260040160405180910390fd5b62093a80841080610f3c5750635dfc0f0084115b15610f5a57604051637616640160e01b815260040160405180910390fd5b80600003610f7b5760405163162908e360e11b815260040160405180910390fd5b821580610f885750603c83115b15610fa65760405163c36476e960e01b815260040160405180910390fd5b84841015610fc75760405163625a1c5760e11b815260040160405180910390fd5b600160c81b811115610fec5760405163162908e360e11b815260040160405180910390fd5b6001600160a01b038716600090815260086020526040902054606411611025576040516338cf51e560e01b815260040160405180910390fd5b6001600160a01b038716600090815260086020526040812054611049908990610724565b905060405180610120016040528087896110639190611acf565b8152602001888152602001868152602001858152602001838152602001600081526020016000600181111561109a5761109a61191e565b8152602001896001600160a01b0316815260200184151581525060066000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff0219169083600181111561112d5761112d61191e565b021790555060e082015160069091018054610100938401511515600160a81b0260ff60a81b196001600160a01b0390941690940292909216610100600160b01b03199092169190911791909117905560075461118a908390611acf565b60075560058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190556001600160a01b038816600090815260086020526040812080549091906111e390611a56565b909155506001600160a01b03881660009081526009602052604090205461120b908390611acf565b6001600160a01b0389166000818152600960209081526040918290209390935580518581529283018a90528201889052606082018790526080820186905284151560a08301529082907f6a4b2f118c5372782b73db45bdf54f9241247604d5414fef92818ca34ad7d4629060c00160405180910390a35050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112dd90849061149e565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8054600090429081108061135e57506001600684015460ff16600181111561135c5761135c61191e565b145b1561136c5750600092915050565b826002015483600101546113809190611acf565b811061139a5782600501548360040154610b0b9190611abc565b60008360010154826113ac9190611abc565b600385015490915060006113c08284611ae2565b905060006113ce8383611b04565b9050600087600201548289600401546113e79190611b04565b6113f19190611ae2565b90508760050154816114039190611abc565b98975050505050505050565b60025460ff16156107015760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b7d565b60025460ff166107015760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b7d565b60006114f3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115709092919063ffffffff16565b8051909150156112dd57808060200190518101906115119190611b1b565b6112dd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b7d565b606061157f8484600085611587565b949350505050565b6060824710156115e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b7d565b600080866001600160a01b031685876040516116049190611b38565b60006040518083038185875af1925050503d8060008114611641576040519150601f19603f3d011682016040523d82523d6000602084013e611646565b606091505b509150915061165787838387611662565b979650505050505050565b606083156116d15782516000036116ca576001600160a01b0385163b6116ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b7d565b508161157f565b61157f83838151156116e65781518083602001fd5b8060405162461bcd60e51b8152600401610b7d91906117b8565b604051806101200160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600060018111156117495761174961191e565b815260006020820181905260409091015290565b80356001600160a01b038116811461177457600080fd5b919050565b60006020828403121561178b57600080fd5b610ba48261175d565b60005b838110156117af578181015183820152602001611797565b50506000910152565b60208152600082518060208401526117d7816040850160208701611794565b601f01601f19169190910160400192915050565b600080604083850312156117fe57600080fd5b6118078361175d565b946020939093013593505050565b80151581146104e557600080fd5b60006020828403121561183557600080fd5b8135610ba481611815565b600080600080600080600060e0888a03121561185b57600080fd5b6118648861175d565b96506020880135955060408801359450606088013593506080880135925060a088013561189081611815565b8092505060c0880135905092959891949750929550565b6000806000606084860312156118bc57600080fd5b6118c58461175d565b92506118d36020850161175d565b9150604084013590509250925092565b6000602082840312156118f557600080fd5b5035919050565b6000806040838503121561190f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b600061012082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c08301516002811061199657634e487b7160e01b600052602160045260246000fd5b8060c08401525060e08301516119b760e08401826001600160a01b03169052565b50610100928301511515919092015290565b600080604083850312156119dc57600080fd5b6119e58361175d565b91506119f36020840161175d565b90509250929050565b6020808252825182820181905260009190848201906040850190845b81811015611a3457835183529284019291840191600101611a18565b50909695505050505050565b634e487b7160e01b600052601160045260246000fd5b600060018201611a6857611a68611a40565b5060010190565b600181811c90821680611a8357607f821691505b602082108103610b0e57634e487b7160e01b600052602260045260246000fd5b600060208284031215611ab557600080fd5b5051919050565b8181038181111561076657610766611a40565b8082018082111561076657610766611a40565b600082611aff57634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761076657610766611a40565b600060208284031215611b2d57600080fd5b8151610ba481611815565b60008251611b4a818460208701611794565b919091019291505056fea26469706673582212201e809584432c63f2c4e6c3774ae6b0c786de4184b828adf1b7f793ad86bad8c864736f6c63430008120033000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001756616c6c657944414f205669727475616c20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000057647524f57000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80638815e86211610104578063a9059cbb116100a2578063ea1bb3d511610071578063ea1bb3d5146103e0578063f2fde38b146103f3578063f51321d714610406578063fd8aa0851461041957600080fd5b8063a9059cbb14610207578063b75c7dc614610390578063dd62ed3e146103a3578063e1758bd8146103b957600080fd5b806390be10cc116100de57806390be10cc1461035757806395d89b411461035f5780639d8535ad146103675780639ef346b41461037057600080fd5b80638815e8621461030c5780638af104da1461031f5780638da5cb5b1461033257600080fd5b80632e1a7d4d116101715780635c975abb1161014b5780635c975abb146102bd57806366afd8ef146102c857806370a08231146102db578063715018a61461030457600080fd5b80632e1a7d4d14610270578063313ce567146102835780634b866a2d1461029d57600080fd5b806316c38b3c116101ad57806316c38b3c1461022a57806317e289e91461023d57806318160ddd1461025057806323b872dd1461026257600080fd5b806305d6cc59146101d457806306fdde03146101e9578063095ea7b314610207575b600080fd5b6101e76101e2366004611779565b61042e565b005b6101f16104e8565b6040516101fe91906117b8565b60405180910390f35b61021a6102153660046117eb565b610576565b60405190151581526020016101fe565b6101e7610238366004611823565b610591565b6101e761024b366004611840565b6105af565b6007545b6040519081526020016101fe565b61021a6102153660046118a7565b6101e761027e3660046118e3565b6105cf565b61028b601281565b60405160ff90911681526020016101fe565b6102546102ab366004611779565b60086020526000908152604090205481565b60025460ff1661021a565b6101e76102d63660046118fc565b610656565b6102546102e9366004611779565b6001600160a01b031660009081526009602052604090205490565b6101e76106ef565b61025461031a3660046118e3565b610703565b61025461032d3660046117eb565b610724565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101fe565b61025461076c565b6101f161080a565b61025460075481565b61038361037e3660046118e3565b610817565b6040516101fe9190611934565b6101e761039e3660046118e3565b6108e3565b6102546103b13660046119c9565b600092915050565b61033f7f000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa81565b6102546103ee3660046118e3565b610a7a565b6101e7610401366004611779565b610b14565b6103836104143660046117eb565b610b8f565b610421610bab565b6040516101fe91906119fc565b610436610c03565b336001600160a01b0382161480159061045a57506000546001600160a01b03163314155b15610477576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116600090815260086020526040812054905b818110156104da5760006104a68483610724565b905060006104b382610a7a565b905080156104c5576104c58282610c5c565b505080806104d290611a56565b915050610492565b50506104e560018055565b50565b600380546104f590611a6f565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611a6f565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b505050505081565b6000604051630280e1e560e61b815260040160405180910390fd5b610599610de5565b80156105a7576104e5610e3f565b6104e5610e99565b6105b7610de5565b6105c687878787878787610ed2565b50505050505050565b6105d7610c03565b6105df610de5565b6105e761076c565b811115610607576040516314a83c1960e01b815260040160405180910390fd5b61064d61061c6000546001600160a01b031690565b6001600160a01b037f000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa16908361128b565b6104e560018055565b61065e610c03565b60008281526006602052604081206002015483910361069057604051631b742d9d60e31b815260040160405180910390fd5b60016000828152600660208190526040909120015460ff1660018111156106b9576106b961191e565b036106d757604051632957a17760e01b815260040160405180910390fd5b6106e18383610c5c565b506106eb60018055565b5050565b6106f7610de5565b61070160006112e2565b565b6005818154811061071357600080fd5b600091825260209091200154905081565b6040516bffffffffffffffffffffffff19606084901b166020820152603481018290526000906054016040516020818303038152906040528051906020012090505b92915050565b6007546040516370a0823160e01b8152306004820152600091906001600160a01b037f000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa16906370a0823190602401602060405180830381865afa1580156107d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fb9190611aa3565b6108059190611abc565b905090565b600480546104f590611a6f565b61081f611700565b60066000838152602001908152602001600020604051806101200160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481526020016006820160009054906101000a900460ff16600181111561089e5761089e61191e565b60018111156108af576108af61191e565b81526006919091015461010081046001600160a01b03166020830152600160a81b900460ff16151560409091015292915050565b6108eb610de5565b60008181526006602052604081206002015482910361091d57604051631b742d9d60e31b815260040160405180910390fd5b60016000828152600660208190526040909120015460ff1660018111156109465761094661191e565b0361096457604051632957a17760e01b815260040160405180910390fd5b600082815260066020819052604090912090810154600160a81b900460ff166109a057604051633c34e69d60e01b815260040160405180910390fd5b60006109ab82611332565b11156109c3576109c3836109be83611332565b610c5c565b6000816005015482600401546109d99190611abc565b9050806007546109e99190611abc565b600755600682015461010090046001600160a01b0316600090815260096020526040902054610a19908290611abc565b6006830180546001600160a01b036101009091041660009081526009602052604080822093909355815460ff1916600117909155905185917f3672cfd57034e1b586da46ec42eea7bc449af89ac0ff5a795c3c00a0d1ae64c991a250505050565b60008181526006602052604081206002015482908203610aad57604051631b742d9d60e31b815260040160405180910390fd5b60016000828152600660208190526040909120015460ff166001811115610ad657610ad661191e565b03610af457604051632957a17760e01b815260040160405180910390fd5b6000838152600660205260409020610b0b90611332565b91505b50919050565b610b1c610de5565b6001600160a01b038116610b865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6104e5816112e2565b610b97611700565b610ba461037e8484610724565b9392505050565b60606005805480602002602001604051908101604052809291908181526020018280548015610bf957602002820191906000526020600020905b815481526020019060010190808311610be5575b5050505050905090565b600260015403610c555760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b7d565b6002600155565b600082815260066020819052604082209081015491549091336001600160a01b0361010090920482168114929190911614811582610c98575080155b15610cb5576040516282b42960e81b815260040160405180910390fd5b610cbe83611332565b841115610cde5760405163110c741b60e31b815260040160405180910390fd5b838360050154610cee9190611acf565b6005840155600754610d01908590611abc565b600755600683015461010090046001600160a01b0316600090815260096020526040902054610d31908590611abc565b6006840180546001600160a01b036101009182900481166000908152600960205260409081902094909455915492519204169086907f62eb4bd96d9a7a66875a9f46f9f9d8bf6cfed3fe0578671b752301427d2a4f6690610d959088815260200190565b60405180910390a36006830154610dde906001600160a01b037f000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa8116916101009004168661128b565b5050505050565b6000546001600160a01b031633146107015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b7d565b610e4761140f565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e7c3390565b6040516001600160a01b03909116815260200160405180910390a1565b610ea1611455565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610e7c565b80610edb61076c565b1015610efa576040516314a83c1960e01b815260040160405180910390fd5b610f0842630114db00611acf565b861115610f2857604051630e0d5b9360e21b815260040160405180910390fd5b62093a80841080610f3c5750635dfc0f0084115b15610f5a57604051637616640160e01b815260040160405180910390fd5b80600003610f7b5760405163162908e360e11b815260040160405180910390fd5b821580610f885750603c83115b15610fa65760405163c36476e960e01b815260040160405180910390fd5b84841015610fc75760405163625a1c5760e11b815260040160405180910390fd5b600160c81b811115610fec5760405163162908e360e11b815260040160405180910390fd5b6001600160a01b038716600090815260086020526040902054606411611025576040516338cf51e560e01b815260040160405180910390fd5b6001600160a01b038716600090815260086020526040812054611049908990610724565b905060405180610120016040528087896110639190611acf565b8152602001888152602001868152602001858152602001838152602001600081526020016000600181111561109a5761109a61191e565b8152602001896001600160a01b0316815260200184151581525060066000838152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff0219169083600181111561112d5761112d61191e565b021790555060e082015160069091018054610100938401511515600160a81b0260ff60a81b196001600160a01b0390941690940292909216610100600160b01b03199092169190911791909117905560075461118a908390611acf565b60075560058054600181019091557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0018190556001600160a01b038816600090815260086020526040812080549091906111e390611a56565b909155506001600160a01b03881660009081526009602052604090205461120b908390611acf565b6001600160a01b0389166000818152600960209081526040918290209390935580518581529283018a90528201889052606082018790526080820186905284151560a08301529082907f6a4b2f118c5372782b73db45bdf54f9241247604d5414fef92818ca34ad7d4629060c00160405180910390a35050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112dd90849061149e565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8054600090429081108061135e57506001600684015460ff16600181111561135c5761135c61191e565b145b1561136c5750600092915050565b826002015483600101546113809190611acf565b811061139a5782600501548360040154610b0b9190611abc565b60008360010154826113ac9190611abc565b600385015490915060006113c08284611ae2565b905060006113ce8383611b04565b9050600087600201548289600401546113e79190611b04565b6113f19190611ae2565b90508760050154816114039190611abc565b98975050505050505050565b60025460ff16156107015760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610b7d565b60025460ff166107015760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b7d565b60006114f3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115709092919063ffffffff16565b8051909150156112dd57808060200190518101906115119190611b1b565b6112dd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610b7d565b606061157f8484600085611587565b949350505050565b6060824710156115e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610b7d565b600080866001600160a01b031685876040516116049190611b38565b60006040518083038185875af1925050503d8060008114611641576040519150601f19603f3d011682016040523d82523d6000602084013e611646565b606091505b509150915061165787838387611662565b979650505050505050565b606083156116d15782516000036116ca576001600160a01b0385163b6116ca5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b7d565b508161157f565b61157f83838151156116e65781518083602001fd5b8060405162461bcd60e51b8152600401610b7d91906117b8565b604051806101200160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600060018111156117495761174961191e565b815260006020820181905260409091015290565b80356001600160a01b038116811461177457600080fd5b919050565b60006020828403121561178b57600080fd5b610ba48261175d565b60005b838110156117af578181015183820152602001611797565b50506000910152565b60208152600082518060208401526117d7816040850160208701611794565b601f01601f19169190910160400192915050565b600080604083850312156117fe57600080fd5b6118078361175d565b946020939093013593505050565b80151581146104e557600080fd5b60006020828403121561183557600080fd5b8135610ba481611815565b600080600080600080600060e0888a03121561185b57600080fd5b6118648861175d565b96506020880135955060408801359450606088013593506080880135925060a088013561189081611815565b8092505060c0880135905092959891949750929550565b6000806000606084860312156118bc57600080fd5b6118c58461175d565b92506118d36020850161175d565b9150604084013590509250925092565b6000602082840312156118f557600080fd5b5035919050565b6000806040838503121561190f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b600061012082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c08301516002811061199657634e487b7160e01b600052602160045260246000fd5b8060c08401525060e08301516119b760e08401826001600160a01b03169052565b50610100928301511515919092015290565b600080604083850312156119dc57600080fd5b6119e58361175d565b91506119f36020840161175d565b90509250929050565b6020808252825182820181905260009190848201906040850190845b81811015611a3457835183529284019291840191600101611a18565b50909695505050505050565b634e487b7160e01b600052601160045260246000fd5b600060018201611a6857611a68611a40565b5060010190565b600181811c90821680611a8357607f821691505b602082108103610b0e57634e487b7160e01b600052602260045260246000fd5b600060208284031215611ab557600080fd5b5051919050565b8181038181111561076657610766611a40565b8082018082111561076657610766611a40565b600082611aff57634e487b7160e01b600052601260045260246000fd5b500490565b808202811582820484141761076657610766611a40565b600060208284031215611b2d57600080fd5b8151610ba481611815565b60008251611b4a818460208701611794565b919091019291505056fea26469706673582212201e809584432c63f2c4e6c3774ae6b0c786de4184b828adf1b7f793ad86bad8c864736f6c63430008120033

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

000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001756616c6c657944414f205669727475616c20546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000057647524f57000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : token_ (address): 0x761A3557184cbC07b7493da0661c41177b2f97fA
Arg [1] : _name (string): ValleyDAO Virtual Token
Arg [2] : _symbol (string): vGROW

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000761a3557184cbc07b7493da0661c41177b2f97fa
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [4] : 56616c6c657944414f205669727475616c20546f6b656e000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 7647524f57000000000000000000000000000000000000000000000000000000


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

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