ETH Price: $3,785.78 (-2.11%)
Gas: 5 Gwei

Contract

0x8727c592F28F10b42eB0914a7f6a5885823794c0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Release192718942024-02-20 22:30:2399 days ago1708468223IN
0x8727c592...5823794c0
0 ETH0.0029742454.99095255
Release192673332024-02-20 7:08:1199 days ago1708412891IN
0x8727c592...5823794c0
0 ETH0.0014658820.59237952
Release188953542023-12-30 2:23:11152 days ago1703902991IN
0x8727c592...5823794c0
0 ETH0.0007996714.7851958
Release188429452023-12-22 17:43:35159 days ago1703267015IN
0x8727c592...5823794c0
0 ETH0.0020456637.82246052
Release188288592023-12-20 18:20:11161 days ago1703096411IN
0x8727c592...5823794c0
0 ETH0.0033391961.73857538
Release187635562023-12-11 14:27:23170 days ago1702304843IN
0x8727c592...5823794c0
0 ETH0.0029358641.24219386
Release186793782023-11-29 19:32:59182 days ago1701286379IN
0x8727c592...5823794c0
0 ETH0.0030708356.25788293
Release185358722023-11-09 17:26:35202 days ago1699550795IN
0x8727c592...5823794c0
0 ETH0.003807469.75185086
Release184794462023-11-01 19:49:11210 days ago1698868151IN
0x8727c592...5823794c0
0 ETH0.0019240335.24850147
Release182593532023-10-02 0:46:11241 days ago1696207571IN
0x8727c592...5823794c0
0 ETH0.00036776.73635456
Release To180740262023-09-06 1:05:23267 days ago1693962323IN
0x8727c592...5823794c0
0 ETH0.0015042527.53125202
Release To179762672023-08-23 8:39:11280 days ago1692779951IN
0x8727c592...5823794c0
0 ETH0.0011644516.23203786
Release179719992023-08-22 18:19:59281 days ago1692728399IN
0x8727c592...5823794c0
0 ETH0.0023286942.66184393
Release179359342023-08-17 17:09:47286 days ago1692292187IN
0x8727c592...5823794c0
0 ETH0.0048647167.86241078
Release177860912023-07-27 18:07:59307 days ago1690481279IN
0x8727c592...5823794c0
0 ETH0.0026174847.95240499
Release175433752023-06-23 16:11:47341 days ago1687536707IN
0x8727c592...5823794c0
0 ETH0.0019804336.2817371
Release173441642023-05-26 15:29:59369 days ago1685114999IN
0x8727c592...5823794c0
0 ETH0.0018556333.99536532
Release171452142023-04-28 14:27:35397 days ago1682692055IN
0x8727c592...5823794c0
0 ETH0.0022350140.94558228
Release169218822023-03-27 23:07:47429 days ago1679958467IN
0x8727c592...5823794c0
0 ETH0.0012138722.23832736
Release168773832023-03-21 17:06:11435 days ago1679418371IN
0x8727c592...5823794c0
0 ETH0.0023891233.32813059
Release To167980482023-03-10 13:33:11446 days ago1678455191IN
0x8727c592...5823794c0
0 ETH0.0016856830.85182049
Release167776782023-03-07 16:41:59449 days ago1678207319IN
0x8727c592...5823794c0
0 ETH0.0034004638.30003533
Release167712992023-03-06 19:10:35450 days ago1678129835IN
0x8727c592...5823794c0
0 ETH0.0027176637.91122023
Release166801702023-02-21 23:33:23463 days ago1677022403IN
0x8727c592...5823794c0
0 ETH0.0016792730.76443033
Release165832722023-02-08 9:49:35476 days ago1675849775IN
0x8727c592...5823794c0
0 ETH0.0012842123.52684021
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GeneralTokenVesting

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-15
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @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.
     */
    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.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity >=0.6.0 <0.8.0;




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

    /**
     * @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'
        // 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. 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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/GeneralTokenVesting.sol

pragma solidity ^0.6.12;



/**
 * @title GeneralTokenVesting
 * @dev A token holder contract that can release its token balance gradually like a
 * typical vesting scheme, with a vesting period.
 */

contract GeneralTokenVesting {
    // 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
    // duration of four years, are safe to use.

    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event TokensReleased(
        IERC20 token,
        address beneficiary,
        address recipient,
        uint256 amount
    );
    event VestStarted(IERC20 token, address beneficiary, uint256 amount);

    struct Vest {
        uint256 _totalTokens;
        uint256 _releasedTokens;
        uint256 _start;
        uint256 _duration;
    }

    //data mapping for token contract
    mapping(IERC20 => mapping(address => Vest)) public tokenVest;

    /**
     * @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.
     * @dev transfers erc20 token to vesting contract to allow the vesting contract to release
     * tokens at the end of the vesting schedule.
     * @param beneficiary addresses of the beneficiaries to whom vested tokens are transferred
     * @param tokensToVest amounts of tokens for the beneficiaries
     * @param vestDuration duration in seconds of the period in which the tokens will vest
     * @param tokenAddress address of the token to be vested
     */

    function startVest(
        address beneficiary,
        uint256 tokensToVest,
        uint256 vestDuration,
        IERC20 tokenAddress
    ) public {
        require(vestDuration > 0, "GeneralTokenVesting: duration is 0");
        require(
            beneficiary != address(0),
            "GeneralTokenVesting: beneficiary is the zero address"
        );
        require(
            address(tokenAddress) != address(0),
            "GeneralTokenVesting: token is the zero address"
        );
        require(tokensToVest != 0, "GeneralTokenVesting: amount is zero");
        require(
            getTotalTokens(tokenAddress, beneficiary) == 0,
            "GeneralTokenVesting: Vest already created for this token => beneficiary"
        );

        uint256 beforeBalance = tokenAddress.balanceOf(address(this));
        tokenAddress.safeTransferFrom(msg.sender, address(this), tokensToVest);
        uint256 afterBalance = tokenAddress.balanceOf(address(this));
        uint256 resultBalance = afterBalance.sub(beforeBalance);
        require(resultBalance != 0, "GeneralTokenVesting: amount is zero");

        Vest memory newVest =
            Vest(resultBalance, 0, block.timestamp, vestDuration);
        tokenVest[tokenAddress][beneficiary] = newVest;

        emit VestStarted(tokenAddress, beneficiary, resultBalance);
    }

    /**
     * @return the start time of the token vesting.
     */
    function getStart(IERC20 token, address beneficiary)
        public
        view
        returns (uint256)
    {
        return tokenVest[token][beneficiary]._start;
    }

    /**
     * @return the total tokens of the token vesting.
     */
    function getTotalTokens(IERC20 token, address beneficiary)
        public
        view
        returns (uint256)
    {
        return tokenVest[token][beneficiary]._totalTokens;
    }

    /**
     * @return the duration of the token vesting.
     */
    function getDuration(IERC20 token, address beneficiary)
        public
        view
        returns (uint256)
    {
        return tokenVest[token][beneficiary]._duration;
    }

    /**
     * @return the amount of the tokens released.
     */
    function getReleasedTokens(IERC20 token, address beneficiary)
        public
        view
        returns (uint256)
    {
        return tokenVest[token][beneficiary]._releasedTokens;
    }

    /**
     * @return the amount of tokens which can be claimed by a beneficiary.
     */
    function getReleasableAmount(IERC20 token, address beneficiary)
        public
        view
        returns (uint256)
    {
        return
            totalVestedAmount(token, beneficiary).sub(
                getReleasedTokens(token, beneficiary)
            );
    }
    /**
     * @notice Transfers vested tokens to beneficiary.
     * @param beneficiary beneficiary to receive the funds
     * @param token address of the token released
     * Private used by release/releaseTo functions
     */
    function _release(
        IERC20 token,
        address beneficiary,
        address recipient
    ) private {
        uint256 unreleased = getReleasableAmount(token, beneficiary);
        require(unreleased > 0, "GeneralTokenVesting: no tokens are due");
        tokenVest[token][beneficiary]._releasedTokens = tokenVest[token][
            beneficiary
        ]
            ._releasedTokens
            .add(unreleased);
        token.safeTransfer(recipient, unreleased);
        emit TokensReleased(token, beneficiary, recipient, unreleased);
    }

    /**
     * @notice Transfers vested tokens to beneficiary.
     * @param beneficiary beneficiary to receive the funds
     * @param token address of the token released
     */
    function release(IERC20 token, address beneficiary) public {
        _release(token, beneficiary, beneficiary);
    }

    /**
     * @notice Transfers beneficiary's tokens to a new recipient.
     * Beneficiary must be msg.sender
     * @param recipient recipient to receive the beneficiary's funds
     * @param token address of the token released
     */
    function releaseTo(IERC20 token, address recipient) public {
        _release(token, msg.sender, recipient);
    }

    /**
     * @dev Calculates the amount that has already vested.
     * @param beneficiary beneficiary address to check
     * @param token address of the token vested
     */
    function totalVestedAmount(IERC20 token, address beneficiary)
        public
        view
        returns (uint256)
    {
        uint256 _startTime = getStart(token, beneficiary);
        uint256 _durationTime = getDuration(token, beneficiary);
        if (block.timestamp < _startTime) {
            return 0;
        } else if (block.timestamp >= _startTime.add(_durationTime)) {
            return getTotalTokens(token, beneficiary);
        } else {
            return
                getTotalTokens(token, beneficiary)
                    .mul(block.timestamp.sub(_startTime))
                    .div(_durationTime);
        }
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"VestStarted","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getReleasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getReleasedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getTotalTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"releaseTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"tokensToVest","type":"uint256"},{"internalType":"uint256","name":"vestDuration","type":"uint256"},{"internalType":"contract IERC20","name":"tokenAddress","type":"address"}],"name":"startVest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"tokenVest","outputs":[{"internalType":"uint256","name":"_totalTokens","type":"uint256"},{"internalType":"uint256","name":"_releasedTokens","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"totalVestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061105a806100206000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063abef6db511610066578063abef6db51461019d578063b6e398ea146101f1578063e2dbb3e81461021f578063e9824d4f1461024d578063f49dd246146102875761009e565b806313caf1b5146100a357806348b75044146100e357806377e8a4cd146101135780637e180e5314610141578063ab608e0b1461016f575b600080fd5b6100d1600480360360408110156100b957600080fd5b506001600160a01b03813581169160200135166102b5565b60408051918252519081900360200190f35b610111600480360360408110156100f957600080fd5b506001600160a01b03813581169160200135166102e3565b005b6100d16004803603604081101561012957600080fd5b506001600160a01b03813581169160200135166102f2565b6100d16004803603604081101561015757600080fd5b506001600160a01b0381358116916020013516610318565b6100d16004803603604081101561018557600080fd5b506001600160a01b0381358116916020013516610344565b6101cb600480360360408110156101b357600080fd5b506001600160a01b038135811691602001351661036d565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6100d16004803603604081101561020757600080fd5b506001600160a01b038135811691602001351661039c565b6100d16004803603604081101561023557600080fd5b506001600160a01b03813581169160200135166103c8565b6101116004803603608081101561026357600080fd5b506001600160a01b0381358116916020810135916040820135916060013516610442565b6101116004803603604081101561029d57600080fd5b506001600160a01b03813581169160200135166107e8565b6001600160a01b03808316600090815260208181526040808320938516835292905220600201545b92915050565b6102ee8282836107ef565b5050565b60006103116103018484610318565b61030b85856103c8565b906108fd565b9392505050565b6001600160a01b0391821660009081526020818152604080832093909416825291909152206001015490565b6001600160a01b0391821660009081526020818152604080832093909416825291909152205490565b600060208181529281526040808220909352908152208054600182015460028301546003909301549192909184565b6001600160a01b0391821660009081526020818152604080832093909416825291909152206003015490565b6000806103d584846102b5565b905060006103e3858561039c565b9050814210156103f8576000925050506102dd565b610402828261093f565b421061041b576104128585610344565b925050506102dd565b6104128161043c61042c42866108fd565b6104368989610344565b90610999565b906109f2565b600082116104815760405162461bcd60e51b8152600401808060200182810382526022815260200180610ee76022913960400191505060405180910390fd5b6001600160a01b0384166104c65760405162461bcd60e51b8152600401808060200182810382526034815260200180610f096034913960400191505060405180910390fd5b6001600160a01b03811661050b5760405162461bcd60e51b815260040180806020018281038252602e815260200180610ff7602e913960400191505060405180910390fd5b826105475760405162461bcd60e51b8152600401808060200182810382526023815260200180610faa6023913960400191505060405180910390fd5b6105518185610344565b1561058d5760405162461bcd60e51b8152600401808060200182810382526047815260200180610ea06047913960600191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156105dc57600080fd5b505afa1580156105f0573d6000803e3d6000fd5b505050506040513d602081101561060657600080fd5b5051905061061f6001600160a01b038316333087610a34565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561066e57600080fd5b505afa158015610682573d6000803e3d6000fd5b505050506040513d602081101561069857600080fd5b5051905060006106a882846108fd565b9050806106e65760405162461bcd60e51b8152600401808060200182810382526023815260200180610faa6023913960400191505060405180910390fd5b6106ee610e77565b60405180608001604052808381526020016000815260200142815260200187815250905080600080876001600160a01b03166001600160a01b0316815260200190815260200160002060008a6001600160a01b03166001600160a01b03168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050507f56ea27ea1b417c5c801a96c6064afa3dcab16a0a279656b3cea85f321f551fce85898460405180846001600160a01b03168152602001836001600160a01b03168152602001828152602001935050505060405180910390a15050505050505050565b6102ee8233835b60006107fb84846102f2565b90506000811161083c5760405162461bcd60e51b8152600401808060200182810382526026815260200180610f3d6026913960400191505060405180910390fd5b6001600160a01b038085166000908152602081815260408083209387168352929052206001015461086d908261093f565b6001600160a01b03808616600081815260208181526040808320948916835293905291909120600101919091556108a5908383610a94565b604080516001600160a01b03808716825280861660208301528416818301526060810183905290517f177de809d108c62a7ae835c49b0ab8ffeebcc7b3b4045930da8dfe54f6d9cddc9181900360800190a150505050565b600061031183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610aeb565b600082820183811015610311576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826109a8575060006102dd565b828202828482816109b557fe5b04146103115760405162461bcd60e51b8152600401808060200182810382526021815260200180610f896021913960400191505060405180910390fd5b600061031183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610b82565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610a8e908590610be7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ae6908490610be7565b505050565b60008184841115610b7a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b3f578181015183820152602001610b27565b50505050905090810190601f168015610b6c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610bd15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610b3f578181015183820152602001610b27565b506000838581610bdd57fe5b0495945050505050565b6060610c3c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c989092919063ffffffff16565b805190915015610ae657808060200190516020811015610c5b57600080fd5b5051610ae65760405162461bcd60e51b815260040180806020018281038252602a815260200180610fcd602a913960400191505060405180910390fd5b6060610ca78484600085610caf565b949350505050565b606082471015610cf05760405162461bcd60e51b8152600401808060200182810382526026815260200180610f636026913960400191505060405180910390fd5b610cf985610e0b565b610d4a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610d895780518252601f199092019160209182019101610d6a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610deb576040519150601f19603f3d011682016040523d82523d6000602084013e610df0565b606091505b5091509150610e00828286610e11565b979650505050505050565b3b151590565b60608315610e20575081610311565b825115610e305782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610b3f578181015183820152602001610b27565b604051806080016040528060008152602001600081526020016000815260200160008152509056fe47656e6572616c546f6b656e56657374696e673a205665737420616c7265616479206372656174656420666f72207468697320746f6b656e203d3e2062656e656669636961727947656e6572616c546f6b656e56657374696e673a206475726174696f6e206973203047656e6572616c546f6b656e56657374696e673a2062656e656669636961727920697320746865207a65726f206164647265737347656e6572616c546f6b656e56657374696e673a206e6f20746f6b656e732061726520647565416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7747656e6572616c546f6b656e56657374696e673a20616d6f756e74206973207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656447656e6572616c546f6b656e56657374696e673a20746f6b656e20697320746865207a65726f2061646472657373a2646970667358221220b8664532686d33526e28d7c95414b852e5804d800b1bcfdee6a45c0b52f5bb1e64736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063abef6db511610066578063abef6db51461019d578063b6e398ea146101f1578063e2dbb3e81461021f578063e9824d4f1461024d578063f49dd246146102875761009e565b806313caf1b5146100a357806348b75044146100e357806377e8a4cd146101135780637e180e5314610141578063ab608e0b1461016f575b600080fd5b6100d1600480360360408110156100b957600080fd5b506001600160a01b03813581169160200135166102b5565b60408051918252519081900360200190f35b610111600480360360408110156100f957600080fd5b506001600160a01b03813581169160200135166102e3565b005b6100d16004803603604081101561012957600080fd5b506001600160a01b03813581169160200135166102f2565b6100d16004803603604081101561015757600080fd5b506001600160a01b0381358116916020013516610318565b6100d16004803603604081101561018557600080fd5b506001600160a01b0381358116916020013516610344565b6101cb600480360360408110156101b357600080fd5b506001600160a01b038135811691602001351661036d565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6100d16004803603604081101561020757600080fd5b506001600160a01b038135811691602001351661039c565b6100d16004803603604081101561023557600080fd5b506001600160a01b03813581169160200135166103c8565b6101116004803603608081101561026357600080fd5b506001600160a01b0381358116916020810135916040820135916060013516610442565b6101116004803603604081101561029d57600080fd5b506001600160a01b03813581169160200135166107e8565b6001600160a01b03808316600090815260208181526040808320938516835292905220600201545b92915050565b6102ee8282836107ef565b5050565b60006103116103018484610318565b61030b85856103c8565b906108fd565b9392505050565b6001600160a01b0391821660009081526020818152604080832093909416825291909152206001015490565b6001600160a01b0391821660009081526020818152604080832093909416825291909152205490565b600060208181529281526040808220909352908152208054600182015460028301546003909301549192909184565b6001600160a01b0391821660009081526020818152604080832093909416825291909152206003015490565b6000806103d584846102b5565b905060006103e3858561039c565b9050814210156103f8576000925050506102dd565b610402828261093f565b421061041b576104128585610344565b925050506102dd565b6104128161043c61042c42866108fd565b6104368989610344565b90610999565b906109f2565b600082116104815760405162461bcd60e51b8152600401808060200182810382526022815260200180610ee76022913960400191505060405180910390fd5b6001600160a01b0384166104c65760405162461bcd60e51b8152600401808060200182810382526034815260200180610f096034913960400191505060405180910390fd5b6001600160a01b03811661050b5760405162461bcd60e51b815260040180806020018281038252602e815260200180610ff7602e913960400191505060405180910390fd5b826105475760405162461bcd60e51b8152600401808060200182810382526023815260200180610faa6023913960400191505060405180910390fd5b6105518185610344565b1561058d5760405162461bcd60e51b8152600401808060200182810382526047815260200180610ea06047913960600191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156105dc57600080fd5b505afa1580156105f0573d6000803e3d6000fd5b505050506040513d602081101561060657600080fd5b5051905061061f6001600160a01b038316333087610a34565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561066e57600080fd5b505afa158015610682573d6000803e3d6000fd5b505050506040513d602081101561069857600080fd5b5051905060006106a882846108fd565b9050806106e65760405162461bcd60e51b8152600401808060200182810382526023815260200180610faa6023913960400191505060405180910390fd5b6106ee610e77565b60405180608001604052808381526020016000815260200142815260200187815250905080600080876001600160a01b03166001600160a01b0316815260200190815260200160002060008a6001600160a01b03166001600160a01b03168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050507f56ea27ea1b417c5c801a96c6064afa3dcab16a0a279656b3cea85f321f551fce85898460405180846001600160a01b03168152602001836001600160a01b03168152602001828152602001935050505060405180910390a15050505050505050565b6102ee8233835b60006107fb84846102f2565b90506000811161083c5760405162461bcd60e51b8152600401808060200182810382526026815260200180610f3d6026913960400191505060405180910390fd5b6001600160a01b038085166000908152602081815260408083209387168352929052206001015461086d908261093f565b6001600160a01b03808616600081815260208181526040808320948916835293905291909120600101919091556108a5908383610a94565b604080516001600160a01b03808716825280861660208301528416818301526060810183905290517f177de809d108c62a7ae835c49b0ab8ffeebcc7b3b4045930da8dfe54f6d9cddc9181900360800190a150505050565b600061031183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610aeb565b600082820183811015610311576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826109a8575060006102dd565b828202828482816109b557fe5b04146103115760405162461bcd60e51b8152600401808060200182810382526021815260200180610f896021913960400191505060405180910390fd5b600061031183836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610b82565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610a8e908590610be7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610ae6908490610be7565b505050565b60008184841115610b7a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b3f578181015183820152602001610b27565b50505050905090810190601f168015610b6c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183610bd15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610b3f578181015183820152602001610b27565b506000838581610bdd57fe5b0495945050505050565b6060610c3c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c989092919063ffffffff16565b805190915015610ae657808060200190516020811015610c5b57600080fd5b5051610ae65760405162461bcd60e51b815260040180806020018281038252602a815260200180610fcd602a913960400191505060405180910390fd5b6060610ca78484600085610caf565b949350505050565b606082471015610cf05760405162461bcd60e51b8152600401808060200182810382526026815260200180610f636026913960400191505060405180910390fd5b610cf985610e0b565b610d4a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610d895780518252601f199092019160209182019101610d6a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610deb576040519150601f19603f3d011682016040523d82523d6000602084013e610df0565b606091505b5091509150610e00828286610e11565b979650505050505050565b3b151590565b60608315610e20575081610311565b825115610e305782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610b3f578181015183820152602001610b27565b604051806080016040528060008152602001600081526020016000815260200160008152509056fe47656e6572616c546f6b656e56657374696e673a205665737420616c7265616479206372656174656420666f72207468697320746f6b656e203d3e2062656e656669636961727947656e6572616c546f6b656e56657374696e673a206475726174696f6e206973203047656e6572616c546f6b656e56657374696e673a2062656e656669636961727920697320746865207a65726f206164647265737347656e6572616c546f6b656e56657374696e673a206e6f20746f6b656e732061726520647565416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7747656e6572616c546f6b656e56657374696e673a20616d6f756e74206973207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656447656e6572616c546f6b656e56657374696e673a20746f6b656e20697320746865207a65726f2061646472657373a2646970667358221220b8664532686d33526e28d7c95414b852e5804d800b1bcfdee6a45c0b52f5bb1e64736f6c634300060c0033

Deployed Bytecode Sourcemap

19248:6826:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22376:177;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22376:177:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;24736:119;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24736:119:0;;;;;;;;;;:::i;:::-;;23457:277;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23457:277:0;;;;;;;;;;:::i;23160:195::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;23160:195:0;;;;;;;;;;:::i;22634:189::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22634:189:0;;;;;;;;;;:::i;20157:60::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20157:60:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22900:183;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22900:183:0;;;;;;;;;;:::i;25415:656::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25415:656:0;;;;;;;;;;:::i;20928:1369::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20928:1369:0;;;;;;;;;;;;;;;;;;;;:::i;25108:116::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25108:116:0;;;;;;;;;;:::i;22376:177::-;-1:-1:-1;;;;;22509:16:0;;;22477:7;22509:16;;;;;;;;;;;:29;;;;;;;;;:36;;;22376:177;;;;;:::o;24736:119::-;24806:41;24815:5;24822:11;24835;24806:8;:41::i;:::-;24736:119;;:::o;23457:277::-;23569:7;23614:112;23674:37;23692:5;23699:11;23674:17;:37::i;:::-;23614;23632:5;23639:11;23614:17;:37::i;:::-;:41;;:112::i;:::-;23594:132;23457:277;-1:-1:-1;;;23457:277:0:o;23160:195::-;-1:-1:-1;;;;;23302:16:0;;;23270:7;23302:16;;;;;;;;;;;:29;;;;;;;;;;;:45;;;;23160:195::o;22634:189::-;-1:-1:-1;;;;;22773:16:0;;;22741:7;22773:16;;;;;;;;;;;:29;;;;;;;;;;;:42;;22634:189::o;20157:60::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;22900:183::-;-1:-1:-1;;;;;23036:16:0;;;23004:7;23036:16;;;;;;;;;;;:29;;;;;;;;;;;:39;;;;22900:183::o;25415:656::-;25525:7;25550:18;25571:28;25580:5;25587:11;25571:8;:28::i;:::-;25550:49;;25610:21;25634:31;25646:5;25653:11;25634;:31::i;:::-;25610:55;;25698:10;25680:15;:28;25676:388;;;25732:1;25725:8;;;;;;25676:388;25774:29;:10;25789:13;25774:14;:29::i;:::-;25755:15;:48;25751:313;;25827:34;25842:5;25849:11;25827:14;:34::i;:::-;25820:41;;;;;;25751:313;25918:134;26038:13;25918:93;25979:31;:15;25999:10;25979:19;:31::i;:::-;25918:34;25933:5;25940:11;25918:14;:34::i;:::-;:60;;:93::i;:::-;:119;;:134::i;20928:1369::-;21117:1;21102:12;:16;21094:63;;;;-1:-1:-1;;;21094:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21190:25:0;;21168:127;;;;-1:-1:-1;;;21168:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21328:35:0;;21306:131;;;;-1:-1:-1;;;21306:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21456:17;21448:65;;;;-1:-1:-1;;;21448:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21546:41;21561:12;21575:11;21546:14;:41::i;:::-;:46;21524:167;;;;-1:-1:-1;;;21524:167:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21704:21;21728:12;-1:-1:-1;;;;;21728:22:0;;21759:4;21728:37;;;;;;;;;;;;;-1:-1:-1;;;;;21728:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21728:37:0;;-1:-1:-1;21776:70:0;-1:-1:-1;;;;;21776:29:0;;21806:10;21826:4;21833:12;21776:29;:70::i;:::-;21857:20;21880:12;-1:-1:-1;;;;;21880:22:0;;21911:4;21880:37;;;;;;;;;;;;;-1:-1:-1;;;;;21880:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21880:37:0;;-1:-1:-1;21928:21:0;21952:31;21880:37;21969:13;21952:16;:31::i;:::-;21928:55;-1:-1:-1;22002:18:0;21994:66;;;;-1:-1:-1;;;21994:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22073:19;;:::i;:::-;22108:53;;;;;;;;22113:13;22108:53;;;;22128:1;22108:53;;;;22131:15;22108:53;;;;22148:12;22108:53;;;22073:88;;22211:7;22172:9;:23;22182:12;-1:-1:-1;;;;;22172:23:0;-1:-1:-1;;;;;22172:23:0;;;;;;;;;;;;:36;22196:11;-1:-1:-1;;;;;22172:36:0;-1:-1:-1;;;;;22172:36:0;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22236:53;22248:12;22262:11;22275:13;22236:53;;;;-1:-1:-1;;;;;22236:53:0;;;;;;-1:-1:-1;;;;;22236:53:0;;;;;;;;;;;;;;;;;;;;;;20928:1369;;;;;;;;:::o;25108:116::-;25178:38;25187:5;25194:10;25206:9;23977:566;24102:18;24123:39;24143:5;24150:11;24123:19;:39::i;:::-;24102:60;;24194:1;24181:10;:14;24173:65;;;;-1:-1:-1;;;24173:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24297:16:0;;;:9;:16;;;;;;;;;;;:53;;;;;;;;;:83;;;:113;;24399:10;24297:101;:113::i;:::-;-1:-1:-1;;;;;24249:16:0;;;:9;:16;;;;;;;;;;;:29;;;;;;;;;;;;:45;;:161;;;;24421:41;;24440:9;24451:10;24421:18;:41::i;:::-;24478:57;;;-1:-1:-1;;;;;24478:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23977:566;;;;:::o;4235:136::-;4293:7;4320:43;4324:1;4327;4320:43;;;;;;;;;;;;;;;;;:3;:43::i;3771:181::-;3829:7;3861:5;;;3885:6;;;;3877:46;;;;;-1:-1:-1;;;3877:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5125:471;5183:7;5428:6;5424:47;;-1:-1:-1;5458:1:0;5451:8;;5424:47;5495:5;;;5499:1;5495;:5;:1;5519:5;;;;;:10;5511:56;;;;-1:-1:-1;;;5511:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6072:132;6130:7;6157:39;6161:1;6164;6157:39;;;;;;;;;;;;;;;;;:3;:39::i;16103:205::-;16231:68;;;-1:-1:-1;;;;;16231:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16231:68:0;-1:-1:-1;;;16231:68:0;;;16204:96;;16224:5;;16204:19;:96::i;:::-;16103:205;;;;:::o;15918:177::-;16028:58;;;-1:-1:-1;;;;;16028:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16028:58:0;-1:-1:-1;;;16028:58:0;;;16001:86;;16021:5;;16001:19;:86::i;:::-;15918:177;;;:::o;4674:192::-;4760:7;4796:12;4788:6;;;;4780:29;;;;-1:-1:-1;;;4780:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4832:5:0;;;4674:192::o;6700:278::-;6786:7;6821:12;6814:5;6806:28;;;;-1:-1:-1;;;6806:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6845:9;6861:1;6857;:5;;;;;;;6700:278;-1:-1:-1;;;;;6700:278:0:o;18223:761::-;18647:23;18673:69;18701:4;18673:69;;;;;;;;;;;;;;;;;18681:5;-1:-1:-1;;;;;18673:27:0;;;:69;;;;;:::i;:::-;18757:17;;18647:95;;-1:-1:-1;18757:21:0;18753:224;;18899:10;18888:30;;;;;;;;;;;;;;;-1:-1:-1;18888:30:0;18880:85;;;;-1:-1:-1;;;18880:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11919:195;12022:12;12054:52;12076:6;12084:4;12090:1;12093:12;12054:21;:52::i;:::-;12047:59;11919:195;-1:-1:-1;;;;11919:195:0:o;12971:530::-;13098:12;13156:5;13131:21;:30;;13123:81;;;;-1:-1:-1;;;13123:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13223:18;13234:6;13223:10;:18::i;:::-;13215:60;;;;;-1:-1:-1;;;13215:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13349:12;13363:23;13390:6;-1:-1:-1;;;;;13390:11:0;13410:5;13418:4;13390:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13390:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13348:75;;;;13441:52;13459:7;13468:10;13480:12;13441:17;:52::i;:::-;13434:59;12971:530;-1:-1:-1;;;;;;;12971:530:0:o;9001:422::-;9368:20;9407:8;;;9001:422::o;14507:742::-;14622:12;14651:7;14647:595;;;-1:-1:-1;14682:10:0;14675:17;;14647:595;14796:17;;:21;14792:439;;15059:10;15053:17;15120:15;15107:10;15103:2;15099:19;15092:44;15007:148;15195:20;;-1:-1:-1;;;15195:20:0;;;;;;;;;;;;;;;;;15202:12;;15195:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://b8664532686d33526e28d7c95414b852e5804d800b1bcfdee6a45c0b52f5bb1e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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