MATIC Price: $0.67 (+0.68%)
Gas: 72 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Sponsored

Transaction Hash
Method
Block
From
To
Value
Release295930502022-06-15 9:41:08673 days ago1655286068IN
0x16CFaB64...4517Cc9F0
0 MATIC0.00922806125.19764599
Release261792102022-03-21 7:15:26759 days ago1647846926IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0025501631.31113846
Transfer Ownersh...218053642021-11-26 1:57:12874 days ago1637891832IN
0x16CFaB64...4517Cc9F0
0 MATIC0.00095633.3
Replace Benefici...218052562021-11-26 1:51:46874 days ago1637891506IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0008060130
Release217095802021-11-23 14:22:36877 days ago1637677356IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release215964342021-11-20 14:45:26880 days ago1637419526IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release214262162021-11-16 5:26:28884 days ago1637040388IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release213223532021-11-13 12:50:18887 days ago1636807818IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release212645662021-11-12 0:49:27888 days ago1636678167IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0009221411.32215404
Release210934632021-11-07 14:39:00893 days ago1636295940IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release209487582021-11-03 22:08:38896 days ago1635977318IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0028506135
Release207472332021-10-29 17:03:11902 days ago1635526991IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release205050982021-10-23 0:52:59908 days ago1634950379IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release204097462021-10-20 8:51:37911 days ago1634719897IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release203679742021-10-19 4:21:13912 days ago1634617273IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0008144610
Release203140782021-10-17 14:28:42914 days ago1634480922IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release202564032021-10-15 21:15:38915 days ago1634332538IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release201389872021-10-12 13:41:11919 days ago1634046071IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release200285872021-10-09 16:29:46922 days ago1633796986IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0008144610
Release199593832021-10-07 21:43:33923 days ago1633643013IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0032578440
Release198623132021-10-05 7:22:28926 days ago1633418548IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release197202842021-10-01 13:49:18930 days ago1633096158IN
0x16CFaB64...4517Cc9F0
0 MATIC0.000651568
Release194319532021-09-23 20:08:58938 days ago1632427738IN
0x16CFaB64...4517Cc9F0
0 MATIC0.000488676
Release191414702021-09-15 16:27:59946 days ago1631723279IN
0x16CFaB64...4517Cc9F0
0 MATIC0.0024433830
Release191046102021-09-14 16:50:07947 days ago1631638207IN
0x16CFaB64...4517Cc9F0
0 MATIC0.000488676
View all transactions

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenVesting

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-13
*/

pragma solidity 0.5.17;


/*
 * @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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}
/**
 * @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.
 *
 * 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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following 
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

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

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

/**
 * @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 ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    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));
    }

    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * @title TokenVesting
 * @dev A token holder contract that can release its token balance gradually like a
 * typical vesting scheme, with a cliff and vesting period. Optionally revocable by the
 * owner.
 */
contract TokenVesting is Ownable {
    // The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is
    // therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore,
    // it is recommended to avoid using short time durations (less than a minute). Typical vesting schemes, with a
    // cliff period of a year and a duration of four years, are safe to use.
    // solhint-disable not-rely-on-time

    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event TokensReleased(address token, uint256 amount);
    event TokenVestingRevoked(address token);

    // beneficiary of tokens after they are released
    address private _beneficiary;

    // Durations and timestamps are expressed in UNIX time, the same units as block.timestamp.
    uint256 private _cliff;
    uint256 private _start;
    uint256 private _duration;

    bool private _revocable;

    mapping (address => uint256) private _released;
    mapping (address => bool) private _revoked;
    
    function replaceBeneficiary(address newBeneficiary) external {
        require(msg.sender == _beneficiary, "Not authorized");
        _beneficiary = newBeneficiary;
    }

    /**
     * @dev Creates a vesting contract that vests its balance of any ERC20 token to the
     * beneficiary, gradually in a linear fashion until start + duration. By then all
     * of the balance will have vested.
     * @param beneficiary address of the beneficiary to whom vested tokens are transferred
     * @param cliffDuration duration in seconds of the cliff in which tokens will begin to vest
     * @param start the time (as Unix time) at which point vesting starts
     * @param duration duration in seconds of the period in which the tokens will vest
     * @param revocable whether the vesting is revocable or not
     */
    constructor (address beneficiary, uint256 start, uint256 cliffDuration, uint256 duration, bool revocable) public {
        require(beneficiary != address(0), "TokenVesting: beneficiary is the zero address");
        // solhint-disable-next-line max-line-length
        require(cliffDuration <= duration, "TokenVesting: cliff is longer than duration");
        require(duration > 0, "TokenVesting: duration is 0");
        // solhint-disable-next-line max-line-length
        require(start.add(duration) > block.timestamp, "TokenVesting: final time is before current time");

        _beneficiary = beneficiary;
        _revocable = revocable;
        _duration = duration;
        _cliff = start.add(cliffDuration);
        _start = start;
    }

    /**
     * @return the beneficiary of the tokens.
     */
    function beneficiary() public view returns (address) {
        return _beneficiary;
    }

    /**
     * @return the cliff time of the token vesting.
     */
    function cliff() public view returns (uint256) {
        return _cliff;
    }

    /**
     * @return the start time of the token vesting.
     */
    function start() public view returns (uint256) {
        return _start;
    }

    /**
     * @return the duration of the token vesting.
     */
    function duration() public view returns (uint256) {
        return _duration;
    }

    /**
     * @return true if the vesting is revocable.
     */
    function revocable() public view returns (bool) {
        return _revocable;
    }

    /**
     * @return the amount of the token released.
     */
    function released(address token) public view returns (uint256) {
        return _released[token];
    }

    /**
     * @return true if the token is revoked.
     */
    function revoked(address token) public view returns (bool) {
        return _revoked[token];
    }

    /**
     * @notice Transfers vested tokens to beneficiary.
     * @param token ERC20 token which is being vested
     */
    function release(IERC20 token) public {
        uint256 unreleased = releasableAmount(token);

        require(unreleased > 0, "TokenVesting: no tokens are due");

        _released[address(token)] = _released[address(token)].add(unreleased);

        token.safeTransfer(_beneficiary, unreleased);

        emit TokensReleased(address(token), unreleased);
    }
    
    function partialRelease(IERC20 token, uint256 value) public {
        uint256 unreleased = releasableAmount(token);
        require(unreleased > 0, "TokenVesting: no tokens are due");
        require(value <= unreleased, "value is greater than unreleased amount");
        
        _released[address(token)] = _released[address(token)].add(value);

        token.safeTransfer(_beneficiary, value);

        emit TokensReleased(address(token), value);
    }

    /**
     * @notice Allows the owner to revoke the vesting. Tokens already vested
     * remain in the contract, the rest are returned to the owner.
     * @param token ERC20 token which is being vested
     */
    function revoke(IERC20 token) public onlyOwner {
        require(_revocable, "TokenVesting: cannot revoke");
        require(!_revoked[address(token)], "TokenVesting: token already revoked");

        uint256 balance = token.balanceOf(address(this));

        uint256 unreleased = releasableAmount(token);
        uint256 refund = balance.sub(unreleased);

        _revoked[address(token)] = true;

        token.safeTransfer(owner(), refund);

        emit TokenVestingRevoked(address(token));
    }

    /**
     * @dev Calculates the amount that has already vested but hasn't been released yet.
     * @param token ERC20 token which is being vested
     */
    function releasableAmount(IERC20 token) public view returns (uint256) {
        return _vestedAmount(token).sub(_released[address(token)]);
    }

    /**
     * @dev Calculates the amount that has already vested.
     * @param token ERC20 token which is being vested
     */
    function _vestedAmount(IERC20 token) private view returns (uint256) {
        uint256 currentBalance = token.balanceOf(address(this));
        uint256 totalBalance = currentBalance.add(_released[address(token)]);

        if (block.timestamp < _cliff) {
            return 0;
        } else if (block.timestamp >= _start.add(_duration) || _revoked[address(token)]) {
            return totalBalance;
        } else {
            return totalBalance.mul(block.timestamp.sub(_start)).div(_duration);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"cliffDuration","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"TokenVestingRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensReleased","type":"event"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"partialRelease","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"releasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"release","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"replaceBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"revocable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"revoke","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"revoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200142038038062001420833981810160405260a08110156200003757600080fd5b5080516020820151604083015160608401516080909401519293919290919060006200006b6001600160e01b036200024216565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038516620000fc5760405162461bcd60e51b815260040180806020018281038252602d815260200180620013c8602d913960400191505060405180910390fd5b818311156200013d5760405162461bcd60e51b815260040180806020018281038252602b815260200180620013f5602b913960400191505060405180910390fd5b6000821162000193576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a206475726174696f6e20697320300000000000604482015290519081900360640190fd5b42620001ae83866200024660201b62000b0b1790919060201c565b11620001ec5760405162461bcd60e51b815260040180806020018281038252602f81526020018062001399602f913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0387161790556005805460ff1916821515179055600482905562000232848462000246602090811b62000b0b17901c565b60025550505060035550620002a8565b3390565b600082820183811015620002a1576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6110e180620002b86000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063c3b53e9611610066578063c3b53e9614610221578063ee8e6b6514610247578063f2fde38b14610273578063fa01dc061461029957610100565b80638da5cb5b146101e35780638f32d59b146101eb5780639852595c146101f3578063be9a65551461021957610100565b806338af3eed116100d357806338af3eed14610175578063715018a61461019957806374a8f103146101a1578063872a7810146101c757610100565b80630fb5a6b41461010557806313d033c01461011f5780631726cbc814610127578063191655871461014d575b600080fd5b61010d6102bf565b60408051918252519081900360200190f35b61010d6102c5565b61010d6004803603602081101561013d57600080fd5b50356001600160a01b03166102cb565b6101736004803603602081101561016357600080fd5b50356001600160a01b0316610305565b005b61017d61040a565b604080516001600160a01b039092168252519081900360200190f35b610173610419565b610173600480360360208110156101b757600080fd5b50356001600160a01b03166104bc565b6101cf6106e4565b604080519115158252519081900360200190f35b61017d6106ed565b6101cf6106fc565b61010d6004803603602081101561020957600080fd5b50356001600160a01b0316610720565b61010d61073b565b6101736004803603602081101561023757600080fd5b50356001600160a01b0316610741565b6101736004803603604081101561025d57600080fd5b506001600160a01b0381351690602001356107b3565b6101736004803603602081101561028957600080fd5b50356001600160a01b03166108f8565b6101cf600480360360208110156102af57600080fd5b50356001600160a01b031661095d565b60045490565b60025490565b6001600160a01b0381166000908152600660205260408120546102fd906102f18461097b565b9063ffffffff610ac016565b90505b919050565b6000610310826102cb565b905060008111610367576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e56657374696e673a206e6f20746f6b656e73206172652064756500604482015290519081900360640190fd5b6001600160a01b038216600090815260066020526040902054610390908263ffffffff610b0b16565b6001600160a01b038084166000818152600660205260409020929092556001546103c29291168363ffffffff610b6516565b604080516001600160a01b03841681526020810183905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a15050565b6001546001600160a01b031690565b6104216106fc565b610472576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6104c46106fc565b610515576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460ff1661056c576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a2063616e6e6f74207265766f6b650000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526007602052604090205460ff16156105c45760405162461bcd60e51b815260040180806020018281038252602381526020018061108a6023913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561060e57600080fd5b505afa158015610622573d6000803e3d6000fd5b505050506040513d602081101561063857600080fd5b505190506000610647836102cb565b9050600061065b838363ffffffff610ac016565b6001600160a01b0385166000908152600760205260409020805460ff1916600117905590506106a261068b6106ed565b6001600160a01b038616908363ffffffff610b6516565b604080516001600160a01b038616815290517f39983c6d4d174a7aee564f449d4a5c3c7ac9649d72b7793c56901183996f8af69181900360200190a150505050565b60055460ff1690565b6000546001600160a01b031690565b600080546001600160a01b0316610711610bbc565b6001600160a01b031614905090565b6001600160a01b031660009081526006602052604090205490565b60035490565b6001546001600160a01b03163314610791576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006107be836102cb565b905060008111610815576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e56657374696e673a206e6f20746f6b656e73206172652064756500604482015290519081900360640190fd5b808211156108545760405162461bcd60e51b81526004018080602001828103825260278152602001806110186027913960400191505060405180910390fd5b6001600160a01b03831660009081526006602052604090205461087d908363ffffffff610b0b16565b6001600160a01b038085166000818152600660205260409020929092556001546108af9291168463ffffffff610b6516565b604080516001600160a01b03851681526020810184905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a1505050565b6109006106fc565b610951576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61095a81610bc0565b50565b6001600160a01b031660009081526007602052604090205460ff1690565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156109c657600080fd5b505afa1580156109da573d6000803e3d6000fd5b505050506040513d60208110156109f057600080fd5b50516001600160a01b03841660009081526006602052604081205491925090610a2090839063ffffffff610b0b16565b9050600254421015610a3757600092505050610300565b600454600354610a4c9163ffffffff610b0b16565b42101580610a7257506001600160a01b03841660009081526007602052604090205460ff165b15610a805791506103009050565b610ab7600454610aab610a9e60035442610ac090919063ffffffff16565b849063ffffffff610c6016565b9063ffffffff610cb916565b92505050610300565b6000610b0283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610cfb565b90505b92915050565b600082820183811015610b02576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bb7908490610d92565b505050565b3390565b6001600160a01b038116610c055760405162461bcd60e51b8152600401808060200182810382526026815260200180610ff26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082610c6f57506000610b05565b82820282848281610c7c57fe5b0414610b025760405162461bcd60e51b815260040180806020018281038252602181526020018061103f6021913960400191505060405180910390fd5b6000610b0283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f50565b60008184841115610d8a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d4f578181015183820152602001610d37565b50505050905090810190601f168015610d7c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610da4826001600160a01b0316610fb5565b610df5576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610e335780518252601f199092019160209182019101610e14565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610e95576040519150601f19603f3d011682016040523d82523d6000602084013e610e9a565b606091505b509150915081610ef1576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610f4a57808060200190516020811015610f0d57600080fd5b5051610f4a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611060602a913960400191505060405180910390fd5b50505050565b60008183610f9f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610d4f578181015183820152602001610d37565b506000838581610fab57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610fe957508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737376616c75652069732067726561746572207468616e20756e72656c656173656420616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e673a20746f6b656e20616c7265616479207265766f6b6564a265627a7a7231582019cd5d5f9292d8c029a7fb85e5685a5b505897a167ca867ed8208d7c1ff77b4e64736f6c63430005110032546f6b656e56657374696e673a2066696e616c2074696d65206973206265666f72652063757272656e742074696d65546f6b656e56657374696e673a2062656e656669636961727920697320746865207a65726f2061646472657373546f6b656e56657374696e673a20636c696666206973206c6f6e676572207468616e206475726174696f6e00000000000000000000000002491d37984764d39b99e4077649dcd349221a62000000000000000000000000000000000000000000000000000000005ff89504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025537800000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063c3b53e9611610066578063c3b53e9614610221578063ee8e6b6514610247578063f2fde38b14610273578063fa01dc061461029957610100565b80638da5cb5b146101e35780638f32d59b146101eb5780639852595c146101f3578063be9a65551461021957610100565b806338af3eed116100d357806338af3eed14610175578063715018a61461019957806374a8f103146101a1578063872a7810146101c757610100565b80630fb5a6b41461010557806313d033c01461011f5780631726cbc814610127578063191655871461014d575b600080fd5b61010d6102bf565b60408051918252519081900360200190f35b61010d6102c5565b61010d6004803603602081101561013d57600080fd5b50356001600160a01b03166102cb565b6101736004803603602081101561016357600080fd5b50356001600160a01b0316610305565b005b61017d61040a565b604080516001600160a01b039092168252519081900360200190f35b610173610419565b610173600480360360208110156101b757600080fd5b50356001600160a01b03166104bc565b6101cf6106e4565b604080519115158252519081900360200190f35b61017d6106ed565b6101cf6106fc565b61010d6004803603602081101561020957600080fd5b50356001600160a01b0316610720565b61010d61073b565b6101736004803603602081101561023757600080fd5b50356001600160a01b0316610741565b6101736004803603604081101561025d57600080fd5b506001600160a01b0381351690602001356107b3565b6101736004803603602081101561028957600080fd5b50356001600160a01b03166108f8565b6101cf600480360360208110156102af57600080fd5b50356001600160a01b031661095d565b60045490565b60025490565b6001600160a01b0381166000908152600660205260408120546102fd906102f18461097b565b9063ffffffff610ac016565b90505b919050565b6000610310826102cb565b905060008111610367576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e56657374696e673a206e6f20746f6b656e73206172652064756500604482015290519081900360640190fd5b6001600160a01b038216600090815260066020526040902054610390908263ffffffff610b0b16565b6001600160a01b038084166000818152600660205260409020929092556001546103c29291168363ffffffff610b6516565b604080516001600160a01b03841681526020810183905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a15050565b6001546001600160a01b031690565b6104216106fc565b610472576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6104c46106fc565b610515576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460ff1661056c576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a2063616e6e6f74207265766f6b650000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526007602052604090205460ff16156105c45760405162461bcd60e51b815260040180806020018281038252602381526020018061108a6023913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b15801561060e57600080fd5b505afa158015610622573d6000803e3d6000fd5b505050506040513d602081101561063857600080fd5b505190506000610647836102cb565b9050600061065b838363ffffffff610ac016565b6001600160a01b0385166000908152600760205260409020805460ff1916600117905590506106a261068b6106ed565b6001600160a01b038616908363ffffffff610b6516565b604080516001600160a01b038616815290517f39983c6d4d174a7aee564f449d4a5c3c7ac9649d72b7793c56901183996f8af69181900360200190a150505050565b60055460ff1690565b6000546001600160a01b031690565b600080546001600160a01b0316610711610bbc565b6001600160a01b031614905090565b6001600160a01b031660009081526006602052604090205490565b60035490565b6001546001600160a01b03163314610791576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006107be836102cb565b905060008111610815576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e56657374696e673a206e6f20746f6b656e73206172652064756500604482015290519081900360640190fd5b808211156108545760405162461bcd60e51b81526004018080602001828103825260278152602001806110186027913960400191505060405180910390fd5b6001600160a01b03831660009081526006602052604090205461087d908363ffffffff610b0b16565b6001600160a01b038085166000818152600660205260409020929092556001546108af9291168463ffffffff610b6516565b604080516001600160a01b03851681526020810184905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a1505050565b6109006106fc565b610951576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61095a81610bc0565b50565b6001600160a01b031660009081526007602052604090205460ff1690565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b038516916370a08231916024808301926020929190829003018186803b1580156109c657600080fd5b505afa1580156109da573d6000803e3d6000fd5b505050506040513d60208110156109f057600080fd5b50516001600160a01b03841660009081526006602052604081205491925090610a2090839063ffffffff610b0b16565b9050600254421015610a3757600092505050610300565b600454600354610a4c9163ffffffff610b0b16565b42101580610a7257506001600160a01b03841660009081526007602052604090205460ff165b15610a805791506103009050565b610ab7600454610aab610a9e60035442610ac090919063ffffffff16565b849063ffffffff610c6016565b9063ffffffff610cb916565b92505050610300565b6000610b0283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610cfb565b90505b92915050565b600082820183811015610b02576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bb7908490610d92565b505050565b3390565b6001600160a01b038116610c055760405162461bcd60e51b8152600401808060200182810382526026815260200180610ff26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082610c6f57506000610b05565b82820282848281610c7c57fe5b0414610b025760405162461bcd60e51b815260040180806020018281038252602181526020018061103f6021913960400191505060405180910390fd5b6000610b0283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f50565b60008184841115610d8a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d4f578181015183820152602001610d37565b50505050905090810190601f168015610d7c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b610da4826001600160a01b0316610fb5565b610df5576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610e335780518252601f199092019160209182019101610e14565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610e95576040519150601f19603f3d011682016040523d82523d6000602084013e610e9a565b606091505b509150915081610ef1576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610f4a57808060200190516020811015610f0d57600080fd5b5051610f4a5760405162461bcd60e51b815260040180806020018281038252602a815260200180611060602a913960400191505060405180910390fd5b50505050565b60008183610f9f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610d4f578181015183820152602001610d37565b506000838581610fab57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610fe957508115155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737376616c75652069732067726561746572207468616e20756e72656c656173656420616d6f756e74536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e673a20746f6b656e20616c7265616479207265766f6b6564a265627a7a7231582019cd5d5f9292d8c029a7fb85e5685a5b505897a167ca867ed8208d7c1ff77b4e64736f6c63430005110032

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

00000000000000000000000002491d37984764d39b99e4077649dcd349221a62000000000000000000000000000000000000000000000000000000005ff89504000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000025537800000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : beneficiary (address): 0x02491D37984764d39b99e4077649dcD349221a62
Arg [1] : start (uint256): 1610126596
Arg [2] : cliffDuration (uint256): 0
Arg [3] : duration (uint256): 39139200
Arg [4] : revocable (bool): False

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000002491d37984764d39b99e4077649dcd349221a62
Arg [1] : 000000000000000000000000000000000000000000000000000000005ff89504
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000002553780
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

18734:6565:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18734:6565:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21989:85;;;:::i;:::-;;;;;;;;;;;;;;;;21675:79;;;:::i;24484:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24484:147:0;-1:-1:-1;;;;;24484:147:0;;:::i;22724:371::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22724:371:0;-1:-1:-1;;;;;22724:371:0;;:::i;:::-;;21505:91;;;:::i;:::-;;;;-1:-1:-1;;;;;21505:91:0;;;;;;;;;;;;;;2826:140;;;:::i;23800:514::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23800:514:0;-1:-1:-1;;;;;23800:514:0;;:::i;22150:84::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;2015:79;;;:::i;2381:94::-;;;:::i;22310:105::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22310:105:0;-1:-1:-1;;;;;22310:105:0;;:::i;21833:79::-;;;:::i;19841:173::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19841:173:0;-1:-1:-1;;;;;19841:173:0;;:::i;23107:466::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23107:466:0;;;;;;;;:::i;3121:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3121:109:0;-1:-1:-1;;;;;3121:109:0;;:::i;22487:100::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22487:100:0;-1:-1:-1;;;;;22487:100:0;;:::i;21989:85::-;22057:9;;21989:85;:::o;21675:79::-;21740:6;;21675:79;:::o;24484:147::-;-1:-1:-1;;;;;24597:25:0;;24545:7;24597:25;;;:9;:25;;;;;;24572:51;;:20;24615:5;24572:13;:20::i;:::-;:24;:51;:24;:51;:::i;:::-;24565:58;;24484:147;;;;:::o;22724:371::-;22773:18;22794:23;22811:5;22794:16;:23::i;:::-;22773:44;;22851:1;22838:10;:14;22830:58;;;;;-1:-1:-1;;;22830:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22929:25:0;;;;;;:9;:25;;;;;;:41;;22959:10;22929:41;:29;:41;:::i;:::-;-1:-1:-1;;;;;22901:25:0;;;;;;;:9;:25;;;;;:69;;;;23002:12;;22983:44;;22901:25;23002:12;23016:10;22983:44;:18;:44;:::i;:::-;23045:42;;;-1:-1:-1;;;;;23045:42:0;;;;;;;;;;;;;;;;;;;;;;;22724:371;;:::o;21505:91::-;21576:12;;-1:-1:-1;;;;;21576:12:0;21505:91;:::o;2826:140::-;2227:9;:7;:9::i;:::-;2219:54;;;;;-1:-1:-1;;;2219:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2925:1;2909:6;;2888:40;;-1:-1:-1;;;;;2909:6:0;;;;2888:40;;2925:1;;2888:40;2956:1;2939:19;;-1:-1:-1;;;;;;2939:19:0;;;2826:140::o;23800:514::-;2227:9;:7;:9::i;:::-;2219:54;;;;;-1:-1:-1;;;2219:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23866:10;;;;23858:50;;;;;-1:-1:-1;;;23858:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23928:24:0;;;;;;:8;:24;;;;;;;;23927:25;23919:73;;;;-1:-1:-1;;;23919:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24023:30;;;-1:-1:-1;;;24023:30:0;;24047:4;24023:30;;;;;;24005:15;;-1:-1:-1;;;;;24023:15:0;;;;;:30;;;;;;;;;;;;;;;:15;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;24023:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24023:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24023:30:0;;-1:-1:-1;24066:18:0;24087:23;24104:5;24087:16;:23::i;:::-;24066:44;-1:-1:-1;24121:14:0;24138:23;:7;24066:44;24138:23;:11;:23;:::i;:::-;-1:-1:-1;;;;;24174:24:0;;;;;;:8;:24;;;;;:31;;-1:-1:-1;;24174:31:0;24201:4;24174:31;;;24121:40;-1:-1:-1;24218:35:0;24237:7;:5;:7::i;:::-;-1:-1:-1;;;;;24218:18:0;;;24246:6;24218:35;:18;:35;:::i;:::-;24271;;;-1:-1:-1;;;;;24271:35:0;;;;;;;;;;;;;;;2284:1;;;23800:514;:::o;22150:84::-;22216:10;;;;22150:84;:::o;2015:79::-;2053:7;2080:6;-1:-1:-1;;;;;2080:6:0;2015:79;:::o;2381:94::-;2421:4;2461:6;;-1:-1:-1;;;;;2461:6:0;2445:12;:10;:12::i;:::-;-1:-1:-1;;;;;2445:22:0;;2438:29;;2381:94;:::o;22310:105::-;-1:-1:-1;;;;;22391:16:0;22364:7;22391:16;;;:9;:16;;;;;;;22310:105::o;21833:79::-;21898:6;;21833:79;:::o;19841:173::-;19935:12;;-1:-1:-1;;;;;19935:12:0;19921:10;:26;19913:53;;;;;-1:-1:-1;;;19913:53:0;;;;;;;;;;;;-1:-1:-1;;;19913:53:0;;;;;;;;;;;;;;;19977:12;:29;;-1:-1:-1;;;;;;19977:29:0;-1:-1:-1;;;;;19977:29:0;;;;;;;;;;19841:173::o;23107:466::-;23178:18;23199:23;23216:5;23199:16;:23::i;:::-;23178:44;;23254:1;23241:10;:14;23233:58;;;;;-1:-1:-1;;;23233:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23319:10;23310:5;:19;;23302:71;;;;-1:-1:-1;;;23302:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23422:25:0;;;;;;:9;:25;;;;;;:36;;23452:5;23422:36;:29;:36;:::i;:::-;-1:-1:-1;;;;;23394:25:0;;;;;;;:9;:25;;;;;:64;;;;23490:12;;23471:39;;23394:25;23490:12;23504:5;23471:39;:18;:39;:::i;:::-;23528:37;;;-1:-1:-1;;;;;23528:37:0;;;;;;;;;;;;;;;;;;;;;;;23107:466;;;:::o;3121:109::-;2227:9;:7;:9::i;:::-;2219:54;;;;;-1:-1:-1;;;2219:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3194:28;3213:8;3194:18;:28::i;:::-;3121:109;:::o;22487:100::-;-1:-1:-1;;;;;22564:15:0;22540:4;22564:15;;;:8;:15;;;;;;;;;22487:100::o;24772:524::-;24876:30;;;-1:-1:-1;;;24876:30:0;;24900:4;24876:30;;;;;;24831:7;;;;-1:-1:-1;;;;;24876:15:0;;;;;:30;;;;;;;;;;;;;;:15;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;24876:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24876:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24876:30:0;-1:-1:-1;;;;;24959:25:0;;24917:20;24959:25;;;:9;24876:30;24959:25;;;;;24876:30;;-1:-1:-1;24917:20:0;24940:45;;24876:30;;24940:45;:18;:45;:::i;:::-;24917:68;;25020:6;;25002:15;:24;24998:291;;;25050:1;25043:8;;;;;;24998:291;25103:9;;25092:6;;:21;;;:10;:21;:::i;:::-;25073:15;:40;;:68;;;-1:-1:-1;;;;;;25117:24:0;;;;;;:8;:24;;;;;;;;25073:68;25069:220;;;25165:12;-1:-1:-1;25158:19:0;;-1:-1:-1;25158:19:0;25069:220;25217:60;25267:9;;25217:45;25234:27;25254:6;;25234:15;:19;;:27;;;;:::i;:::-;25217:12;;:45;:16;:45;:::i;:::-;:49;:60;:49;:60;:::i;:::-;25210:67;;;;;;7860:136;7918:7;7945:43;7949:1;7952;7945:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;7938:50;;7860:136;;;;;:::o;7404:181::-;7462:7;7494:5;;;7518:6;;;;7510:46;;;;;-1:-1:-1;;;7510:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;15355:176;15464:58;;;-1:-1:-1;;;;;15464:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;15464:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;15438:85:0;;15457:5;;15438:18;:85::i;:::-;15355:176;;;:::o;808:98::-;888:10;808:98;:::o;3336:229::-;-1:-1:-1;;;;;3410:22:0;;3402:73;;;;-1:-1:-1;;;3402:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3512:6;;;3491:38;;-1:-1:-1;;;;;3491:38:0;;;;3512:6;;;3491:38;;;3540:6;:17;;-1:-1:-1;;;;;;3540:17:0;-1:-1:-1;;;;;3540:17:0;;;;;;;;;;3336:229::o;8776:471::-;8834:7;9079:6;9075:47;;-1:-1:-1;9109:1:0;9102:8;;9075:47;9146:5;;;9150:1;9146;:5;:1;9170:5;;;;;:10;9162:56;;;;-1:-1:-1;;;9162:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9715:132;9773:7;9800:39;9804:1;9807;9800:39;;;;;;;;;;;;;;;;;:3;:39::i;8333:192::-;8419:7;8455:12;8447:6;;;;8439:29;;;;-1:-1:-1;;;8439:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;8439:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8491:5:0;;;8333:192::o;17394:1114::-;17998:27;18006:5;-1:-1:-1;;;;;17998:25:0;;:27::i;:::-;17990:71;;;;;-1:-1:-1;;;17990:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18135:12;18149:23;18184:5;-1:-1:-1;;;;;18176:19:0;18196:4;18176:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;18176:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;18134:67:0;;;;18220:7;18212:52;;;;;-1:-1:-1;;;18212:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18281:17;;:21;18277:224;;18423:10;18412:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18412:30:0;18404:85;;;;-1:-1:-1;;;18404:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17394:1114;;;;:::o;10377:345::-;10463:7;10565:12;10558:5;10550:28;;;;-1:-1:-1;;;10550:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;10550:28:0;;10589:9;10605:1;10601;:5;;;;;;;10377:345;-1:-1:-1;;;;;10377:345:0:o;4254:619::-;4314:4;4782:20;;4625:66;4822:23;;;;;;:42;;-1:-1:-1;4849:15:0;;;4822:42;4814:51;4254:619;-1:-1:-1;;;;4254:619:0:o

Swarm Source

bzzr://19cd5d5f9292d8c029a7fb85e5685a5b505897a167ca867ed8208d7c1ff77b4e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.