ETH Price: $2,778.71 (+5.30%)
Gas: 1.27 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deploy Vesting137146422021-11-30 12:04:271163 days ago1638273867IN
0x20618187...0D2742528
0 ETH0.1314374686.33224088
Deploy Vesting130020132021-08-11 5:27:361274 days ago1628659656IN
0x20618187...0D2742528
0 ETH0.0604885639.73015207
Deploy Vesting130020122021-08-11 5:27:151274 days ago1628659635IN
0x20618187...0D2742528
0 ETH0.0606792639.73015207
Deploy Vesting130020102021-08-11 5:27:091274 days ago1628659629IN
0x20618187...0D2742528
0 ETH0.0606792639.73015207
Deploy Vesting129455862021-08-02 11:07:371283 days ago1627902457IN
0x20618187...0D2742528
0 ETH0.0342683722.66
Deploy Vesting129455772021-08-02 11:05:461283 days ago1627902346IN
0x20618187...0D2742528
0 ETH0.0341565222.66
Deploy Vesting129029502021-07-26 16:44:331290 days ago1627317873IN
0x20618187...0D2742528
0 ETH0.0610904440
Deploy Vesting129029482021-07-26 16:44:221290 days ago1627317862IN
0x20618187...0D2742528
0 ETH0.0610899640
Deploy Vesting129029412021-07-26 16:42:511290 days ago1627317771IN
0x20618187...0D2742528
0 ETH0.0610899640
Deploy Vesting129028892021-07-26 16:29:551290 days ago1627316995IN
0x20618187...0D2742528
0 ETH0.0610904440
Deploy Vesting129028712021-07-26 16:26:201290 days ago1627316780IN
0x20618187...0D2742528
0 ETH0.0610923640
Deploy Vesting129028562021-07-26 16:22:331290 days ago1627316553IN
0x20618187...0D2742528
0 ETH0.061091440
Deploy Vesting129028512021-07-26 16:21:151290 days ago1627316475IN
0x20618187...0D2742528
0 ETH0.061091440
Deploy Vesting129028432021-07-26 16:18:371290 days ago1627316317IN
0x20618187...0D2742528
0 ETH0.0610909240
Deploy Vesting129028392021-07-26 16:18:041290 days ago1627316284IN
0x20618187...0D2742528
0 ETH0.0610899640
Deploy Vesting129028362021-07-26 16:17:281290 days ago1627316248IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028282021-07-26 16:15:381290 days ago1627316138IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028252021-07-26 16:15:051290 days ago1627316105IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028202021-07-26 16:13:271290 days ago1627316007IN
0x20618187...0D2742528
0 ETH0.0602925240
Deploy Vesting129028182021-07-26 16:13:091290 days ago1627315989IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028102021-07-26 16:12:051290 days ago1627315925IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028032021-07-26 16:09:391290 days ago1627315779IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028022021-07-26 16:09:221290 days ago1627315762IN
0x20618187...0D2742528
0 ETH0.06029340
Deploy Vesting129028012021-07-26 16:09:091290 days ago1627315749IN
0x20618187...0D2742528
0 ETH0.0602925240
Deploy Vesting129028002021-07-26 16:09:041290 days ago1627315744IN
0x20618187...0D2742528
0 ETH0.06029340
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
137146422021-11-30 12:04:271163 days ago1638273867
0x20618187...0D2742528
 Contract Creation0 ETH
130020132021-08-11 5:27:361274 days ago1628659656
0x20618187...0D2742528
 Contract Creation0 ETH
130020122021-08-11 5:27:151274 days ago1628659635
0x20618187...0D2742528
 Contract Creation0 ETH
130020102021-08-11 5:27:091274 days ago1628659629
0x20618187...0D2742528
 Contract Creation0 ETH
129455862021-08-02 11:07:371283 days ago1627902457
0x20618187...0D2742528
 Contract Creation0 ETH
129455772021-08-02 11:05:461283 days ago1627902346
0x20618187...0D2742528
 Contract Creation0 ETH
129029502021-07-26 16:44:331290 days ago1627317873
0x20618187...0D2742528
 Contract Creation0 ETH
129029482021-07-26 16:44:221290 days ago1627317862
0x20618187...0D2742528
 Contract Creation0 ETH
129029412021-07-26 16:42:511290 days ago1627317771
0x20618187...0D2742528
 Contract Creation0 ETH
129028892021-07-26 16:29:551290 days ago1627316995
0x20618187...0D2742528
 Contract Creation0 ETH
129028712021-07-26 16:26:201290 days ago1627316780
0x20618187...0D2742528
 Contract Creation0 ETH
129028562021-07-26 16:22:331290 days ago1627316553
0x20618187...0D2742528
 Contract Creation0 ETH
129028512021-07-26 16:21:151290 days ago1627316475
0x20618187...0D2742528
 Contract Creation0 ETH
129028432021-07-26 16:18:371290 days ago1627316317
0x20618187...0D2742528
 Contract Creation0 ETH
129028392021-07-26 16:18:041290 days ago1627316284
0x20618187...0D2742528
 Contract Creation0 ETH
129028362021-07-26 16:17:281290 days ago1627316248
0x20618187...0D2742528
 Contract Creation0 ETH
129028282021-07-26 16:15:381290 days ago1627316138
0x20618187...0D2742528
 Contract Creation0 ETH
129028252021-07-26 16:15:051290 days ago1627316105
0x20618187...0D2742528
 Contract Creation0 ETH
129028202021-07-26 16:13:271290 days ago1627316007
0x20618187...0D2742528
 Contract Creation0 ETH
129028182021-07-26 16:13:091290 days ago1627315989
0x20618187...0D2742528
 Contract Creation0 ETH
129028102021-07-26 16:12:051290 days ago1627315925
0x20618187...0D2742528
 Contract Creation0 ETH
129028032021-07-26 16:09:391290 days ago1627315779
0x20618187...0D2742528
 Contract Creation0 ETH
129028022021-07-26 16:09:221290 days ago1627315762
0x20618187...0D2742528
 Contract Creation0 ETH
129028012021-07-26 16:09:091290 days ago1627315749
0x20618187...0D2742528
 Contract Creation0 ETH
129028002021-07-26 16:09:041290 days ago1627315744
0x20618187...0D2742528
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenVestingFactory

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 8 : TokenVestingFactory.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./TokenVesting.sol";

contract TokenVestingFactory is Ownable {
  using SafeERC20 for IERC20;

  mapping (address => address) public vestingForAddress;

  event VestingDeployed(
    address indexed vestingAddress,
    address indexed beneficiary,
    uint256 start,
    uint256 cliffDuration,
    uint256 duration,
    bool revocable
  );

  function deployVesting(
    address beneficiary,
    uint256 start,
    uint256 cliffDuration,
    uint256 duration,
    bool revocable,
    uint256 amount,
    IERC20 token,
    bytes32 salt,
    address owner,
    address tokenHolder
  ) public returns (address vestingAddress){
    require(vestingForAddress[beneficiary] == address(0), "User is already vested");
    bytes memory bytecode = abi.encodePacked(
      type(TokenVesting).creationCode,
      abi.encode(
        beneficiary,
        start,
        cliffDuration,
        duration,
        revocable
      )
    );

    vestingAddress = Create2.deploy(0, salt, bytecode);

    vestingForAddress[beneficiary] = vestingAddress;
    
    TokenVesting vesting = TokenVesting(vestingAddress);

    vesting.transferOwnership(owner);

    token.safeTransferFrom(tokenHolder, address(vesting), amount);

    emit VestingDeployed(
      vestingAddress,
      beneficiary,
      start,
      cliffDuration,
      duration,
      revocable
    );
  
    return vestingAddress;
  }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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 4 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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;
        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");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 7 of 8 : Create2.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.
 * `CREATE2` can be used to compute in advance the address where a smart
 * contract will be deployed, which allows for interesting new mechanisms known
 * as 'counterfactual interactions'.
 *
 * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more
 * information.
 */
library Create2 {
    /**
     * @dev Deploys a contract using `CREATE2`. The address where the contract
     * will be deployed can be known in advance via {computeAddress}.
     *
     * The bytecode for a contract can be obtained from Solidity with
     * `type(contractName).creationCode`.
     *
     * Requirements:
     *
     * - `bytecode` must not be empty.
     * - `salt` must have not been used for `bytecode` already.
     * - the factory must have a balance of at least `amount`.
     * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.
     */
    function deploy(
        uint256 amount,
        bytes32 salt,
        bytes memory bytecode
    ) internal returns (address) {
        address addr;
        require(address(this).balance >= amount, "Create2: insufficient balance");
        require(bytecode.length != 0, "Create2: bytecode length is zero");
        assembly {
            addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)
        }
        require(addr != address(0), "Create2: Failed on deploy");
        return addr;
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the
     * `bytecodeHash` or `salt` will result in a new destination address.
     */
    function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {
        return computeAddress(salt, bytecodeHash, address(this));
    }

    /**
     * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at
     * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.
     */
    function computeAddress(
        bytes32 salt,
        bytes32 bytecodeHash,
        address deployer
    ) internal pure returns (address) {
        bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash));
        return address(uint160(uint256(_data)));
    }
}

File 8 of 8 : TokenVesting.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

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

    /**
     * @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) {
        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 + duration > block.timestamp, "TokenVesting: final time is before current time");

        _beneficiary = beneficiary;
        _revocable = revocable;
        _duration = duration;
        _cliff = start + 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)] + unreleased;

        token.safeTransfer(_beneficiary, unreleased);

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

    /**
     * @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 - 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) private view returns (uint256) {
        return _vestedAmount(token) - _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 + _released[address(token)];

        if (block.timestamp < _cliff) {
            return 0;
        } else if (block.timestamp >= _start + _duration || _revoked[address(token)]) {
            return totalBalance;
        } else {
            return (totalBalance * (block.timestamp - _start)) / _duration;
        }
    }

    function releasableAmount(IERC20 token) public view returns (uint256) {
        return _releasableAmount(token);
    }

    function vestedAmount(IERC20 token) public view returns (uint256) {
        return _vestedAmount(token);
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"vestingAddress","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cliffDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"bool","name":"revocable","type":"bool"}],"name":"VestingDeployed","type":"event"},{"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"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"deployVesting","outputs":[{"internalType":"address","name":"vestingAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestingForAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6133ad8061010d6000396000f3fe60806040523480156200001157600080fd5b50600436106200005e5760003560e01c80636ac0c6671462000063578063715018a614620000995780638da5cb5b14620000a5578063a11659dc14620000c7578063f2fde38b14620000fd575b600080fd5b6200008160048036038101906200007b919062000bc5565b6200011d565b60405162000090919062001091565b60405180910390f35b620000a362000413565b005b620000af620004a4565b604051620000be919062001091565b60405180910390f35b620000e56004803603810190620000df919062000b99565b620004cd565b604051620000f4919062001091565b60405180910390f35b6200011b600480360381019062000115919062000b99565b62000500565b005b60008073ffffffffffffffffffffffffffffffffffffffff16600160008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620001ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e69062001216565b60405180910390fd5b600060405180602001620002039062000b01565b6020820181038252601f19601f820116604052508c8c8c8c8c60405160200162000232959493929190620010eb565b6040516020818303038152906040526040516020016200025492919062001069565b6040516020818303038152906040529050620002736000868362000604565b915081600160008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008290508073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b866040518263ffffffff1660e01b815260040162000333919062001091565b600060405180830381600087803b1580156200034e57600080fd5b505af115801562000363573d6000803e3d6000fd5b505050506200039684828a8a73ffffffffffffffffffffffffffffffffffffffff166200071e909392919063ffffffff16565b8c73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f631d3ffb4c6b71517971aa2cb6bcde0b6c9161b0b4d6af0d8e8247fd174454488e8e8e8e604051620003fb94939291906200129e565b60405180910390a350509a9950505050505050505050565b6200041d620007ab565b73ffffffffffffffffffffffffffffffffffffffff166200043d620004a4565b73ffffffffffffffffffffffffffffffffffffffff161462000496576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200048d90620011f4565b60405180910390fd5b620004a26000620007b3565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6200050a620007ab565b73ffffffffffffffffffffffffffffffffffffffff166200052a620004a4565b73ffffffffffffffffffffffffffffffffffffffff161462000583576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200057a90620011f4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620005f6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005ed906200118e565b60405180910390fd5b6200060181620007b3565b50565b600080844710156200064d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000644906200127c565b60405180910390fd5b60008351141562000695576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200068c906200116c565b60405180910390fd5b8383516020850187f59050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000713576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200070a90620011d2565b60405180910390fd5b809150509392505050565b620007a5846323b872dd60e01b8585856040516024016200074293929190620010ae565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505062000877565b50505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000620008db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16620009469092919063ffffffff16565b9050600081511115620009415780806020019051810190620008fe919062000cb5565b62000940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000937906200125a565b60405180910390fd5b5b505050565b606062000957848460008562000960565b90509392505050565b606082471015620009a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200099f90620011b0565b60405180910390fd5b620009b38562000a82565b620009f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009ec9062001238565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405162000a20919062001050565b60006040518083038185875af1925050503d806000811462000a5f576040519150601f19603f3d011682016040523d82523d6000602084013e62000a64565b606091505b509150915062000a7682828662000a95565b92505050949350505050565b600080823b905060008111915050919050565b6060831562000aa75782905062000afa565b60008351111562000abb5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000af1919062001148565b60405180910390fd5b9392505050565b611f29806200144f83390190565b60008135905062000b2081620013cc565b92915050565b60008135905062000b3781620013e6565b92915050565b60008151905062000b4e81620013e6565b92915050565b60008135905062000b658162001400565b92915050565b60008135905062000b7c816200141a565b92915050565b60008135905062000b938162001434565b92915050565b60006020828403121562000bac57600080fd5b600062000bbc8482850162000b0f565b91505092915050565b6000806000806000806000806000806101408b8d03121562000be657600080fd5b600062000bf68d828e0162000b0f565b9a5050602062000c098d828e0162000b82565b995050604062000c1c8d828e0162000b82565b985050606062000c2f8d828e0162000b82565b975050608062000c428d828e0162000b26565b96505060a062000c558d828e0162000b82565b95505060c062000c688d828e0162000b6b565b94505060e062000c7b8d828e0162000b54565b93505061010062000c8f8d828e0162000b0f565b92505061012062000ca38d828e0162000b0f565b9150509295989b9194979a5092959850565b60006020828403121562000cc857600080fd5b600062000cd88482850162000b3d565b91505092915050565b62000cec816200131d565b82525050565b62000cfd8162001331565b82525050565b600062000d1082620012eb565b62000d1c818562001301565b935062000d2e81856020860162001385565b80840191505092915050565b600062000d4782620012f6565b62000d5381856200130c565b935062000d6581856020860162001385565b62000d7081620013bb565b840191505092915050565b600062000d8a6020836200130c565b91507f437265617465323a2062797465636f6465206c656e677468206973207a65726f6000830152602082019050919050565b600062000dcc6026836200130c565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600062000e346026836200130c565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b600062000e9c6019836200130c565b91507f437265617465323a204661696c6564206f6e206465706c6f79000000000000006000830152602082019050919050565b600062000ede6020836200130c565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600062000f206016836200130c565b91507f5573657220697320616c726561647920766573746564000000000000000000006000830152602082019050919050565b600062000f62601d836200130c565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b600062000fa4602a836200130c565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b60006200100c601d836200130c565b91507f437265617465323a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b6200104a816200137b565b82525050565b60006200105e828462000d03565b915081905092915050565b600062001077828562000d03565b915062001085828462000d03565b91508190509392505050565b6000602082019050620010a8600083018462000ce1565b92915050565b6000606082019050620010c5600083018662000ce1565b620010d4602083018562000ce1565b620010e360408301846200103f565b949350505050565b600060a08201905062001102600083018862000ce1565b6200111160208301876200103f565b6200112060408301866200103f565b6200112f60608301856200103f565b6200113e608083018462000cf2565b9695505050505050565b6000602082019050818103600083015262001164818462000d3a565b905092915050565b60006020820190508181036000830152620011878162000d7b565b9050919050565b60006020820190508181036000830152620011a98162000dbd565b9050919050565b60006020820190508181036000830152620011cb8162000e25565b9050919050565b60006020820190508181036000830152620011ed8162000e8d565b9050919050565b600060208201905081810360008301526200120f8162000ecf565b9050919050565b60006020820190508181036000830152620012318162000f11565b9050919050565b60006020820190508181036000830152620012538162000f53565b9050919050565b60006020820190508181036000830152620012758162000f95565b9050919050565b60006020820190508181036000830152620012978162000ffd565b9050919050565b6000608082019050620012b560008301876200103f565b620012c460208301866200103f565b620012d360408301856200103f565b620012e2606083018462000cf2565b95945050505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006200132a826200135b565b9050919050565b60008115159050919050565b6000819050919050565b600062001354826200131d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620013a557808201518184015260208101905062001388565b83811115620013b5576000848401525b50505050565b6000601f19601f8301169050919050565b620013d7816200131d565b8114620013e357600080fd5b50565b620013f18162001331565b8114620013fd57600080fd5b50565b6200140b816200133d565b81146200141757600080fd5b50565b620014258162001347565b81146200143157600080fd5b50565b6200143f816200137b565b81146200144b57600080fd5b5056fe60806040523480156200001157600080fd5b5060405162001f2938038062001f29833981810160405281019062000037919062000341565b620000576200004b6200023060201b60201c565b6200023860201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415620000ca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c1906200055f565b60405180910390fd5b8183111562000110576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001079062000581565b60405180910390fd5b6000821162000156576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200014d90620005a3565b60405180910390fd5b428285620001659190620005d6565b11620001a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019f906200053d565b60405180910390fd5b84600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548160ff021916908315150217905550816004819055508284620002189190620005d6565b600281905550836003819055505050505050620006fa565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200030d81620006ac565b92915050565b6000815190506200032481620006c6565b92915050565b6000815190506200033b81620006e0565b92915050565b600080600080600060a086880312156200035a57600080fd5b60006200036a88828901620002fc565b95505060206200037d888289016200032a565b945050604062000390888289016200032a565b9350506060620003a3888289016200032a565b9250506080620003b68882890162000313565b9150509295509295909350565b6000620003d2602f83620005c5565b91507f546f6b656e56657374696e673a2066696e616c2074696d65206973206265666f60008301527f72652063757272656e742074696d6500000000000000000000000000000000006020830152604082019050919050565b60006200043a602d83620005c5565b91507f546f6b656e56657374696e673a2062656e65666963696172792069732074686560008301527f207a65726f2061646472657373000000000000000000000000000000000000006020830152604082019050919050565b6000620004a2602b83620005c5565b91507f546f6b656e56657374696e673a20636c696666206973206c6f6e67657220746860008301527f616e206475726174696f6e0000000000000000000000000000000000000000006020830152604082019050919050565b60006200050a601b83620005c5565b91507f546f6b656e56657374696e673a206475726174696f6e206973203000000000006000830152602082019050919050565b600060208201905081810360008301526200055881620003c3565b9050919050565b600060208201905081810360008301526200057a816200042b565b9050919050565b600060208201905081810360008301526200059c8162000493565b9050919050565b60006020820190508181036000830152620005be81620004fb565b9050919050565b600082825260208201905092915050565b6000620005e38262000673565b9150620005f08362000673565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200062857620006276200067d565b5b828201905092915050565b6000620006408262000653565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b620006b78162000633565b8114620006c357600080fd5b50565b620006d18162000647565b8114620006dd57600080fd5b50565b620006eb8162000673565b8114620006f757600080fd5b50565b61181f806200070a6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806374a8f1031161008c5780639852595c116100665780639852595c14610227578063be9a655514610257578063f2fde38b14610275578063fa01dc0614610291576100ea565b806374a8f103146101cf578063872a7810146101eb5780638da5cb5b14610209576100ea565b806319165587116100c8578063191655871461015b578063384711cc1461017757806338af3eed146101a7578063715018a6146101c5576100ea565b80630fb5a6b4146100ef57806313d033c01461010d5780631726cbc81461012b575b600080fd5b6100f76102c1565b604051610104919061152f565b60405180910390f35b6101156102cb565b604051610122919061152f565b60405180910390f35b61014560048036038101906101409190611016565b6102d5565b604051610152919061152f565b60405180910390f35b61017560048036038101906101709190611016565b6102e7565b005b610191600480360381019061018c9190611016565b61044f565b60405161019e919061152f565b60405180910390f35b6101af610461565b6040516101bc91906113ae565b60405180910390f35b6101cd61048b565b005b6101e960048036038101906101e49190611016565b610513565b005b6101f36107dc565b60405161020091906113f2565b60405180910390f35b6102116107f3565b60405161021e91906113ae565b60405180910390f35b610241600480360381019061023c9190610fc4565b61081c565b60405161024e919061152f565b60405180910390f35b61025f610865565b60405161026c919061152f565b60405180910390f35b61028f600480360381019061028a9190610fc4565b61086f565b005b6102ab60048036038101906102a69190610fc4565b610967565b6040516102b891906113f2565b60405180910390f35b6000600454905090565b6000600254905090565b60006102e0826109bd565b9050919050565b60006102f2826109bd565b905060008111610337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032e9061146f565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610382919061157c565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610412600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16610a199092919063ffffffff16565b7fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df9317982826040516104439291906113c9565b60405180910390a15050565b600061045a82610a9f565b9050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610493610c37565b73ffffffffffffffffffffffffffffffffffffffff166104b16107f3565b73ffffffffffffffffffffffffffffffffffffffff1614610507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906114af565b60405180910390fd5b6105116000610c3f565b565b61051b610c37565b73ffffffffffffffffffffffffffffffffffffffff166105396107f3565b73ffffffffffffffffffffffffffffffffffffffff161461058f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610586906114af565b60405180910390fd5b600560009054906101000a900460ff166105de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d59061142f565b60405180910390fd5b600760008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561066b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106629061150f565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106a691906113ae565b60206040518083038186803b1580156106be57600080fd5b505afa1580156106d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f6919061103f565b90506000610703836109bd565b905060008183610713919061165d565b90506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061079f6107786107f3565b828673ffffffffffffffffffffffffffffffffffffffff16610a199092919063ffffffff16565b7f39983c6d4d174a7aee564f449d4a5c3c7ac9649d72b7793c56901183996f8af6846040516107ce91906113ae565b60405180910390a150505050565b6000600560009054906101000a900460ff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600354905090565b610877610c37565b73ffffffffffffffffffffffffffffffffffffffff166108956107f3565b73ffffffffffffffffffffffffffffffffffffffff16146108eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e2906114af565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561095b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109529061144f565b60405180910390fd5b61096481610c3f565b50565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a0883610a9f565b610a12919061165d565b9050919050565b610a9a8363a9059cbb60e01b8484604051602401610a389291906113c9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d03565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610adb91906113ae565b60206040518083038186803b158015610af357600080fd5b505afa158015610b07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2b919061103f565b90506000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482610b7a919061157c565b9050600254421015610b9157600092505050610c32565b600454600354610ba1919061157c565b42101580610bf85750600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15610c07578092505050610c32565b60045460035442610c18919061165d565b82610c239190611603565b610c2d91906115d2565b925050505b919050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000610d65826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610dca9092919063ffffffff16565b9050600081511115610dc55780806020019051810190610d859190610fed565b610dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbb906114ef565b60405180910390fd5b5b505050565b6060610dd98484600085610de2565b90509392505050565b606082471015610e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1e9061148f565b60405180910390fd5b610e3085610ef6565b610e6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e66906114cf565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610e989190611397565b60006040518083038185875af1925050503d8060008114610ed5576040519150601f19603f3d011682016040523d82523d6000602084013e610eda565b606091505b5091509150610eea828286610f09565b92505050949350505050565b600080823b905060008111915050919050565b60608315610f1957829050610f69565b600083511115610f2c5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f60919061140d565b60405180910390fd5b9392505050565b600081359050610f7f8161178d565b92915050565b600081519050610f94816117a4565b92915050565b600081359050610fa9816117bb565b92915050565b600081519050610fbe816117d2565b92915050565b600060208284031215610fd657600080fd5b6000610fe484828501610f70565b91505092915050565b600060208284031215610fff57600080fd5b600061100d84828501610f85565b91505092915050565b60006020828403121561102857600080fd5b600061103684828501610f9a565b91505092915050565b60006020828403121561105157600080fd5b600061105f84828501610faf565b91505092915050565b61107181611691565b82525050565b611080816116a3565b82525050565b60006110918261154a565b61109b8185611560565b93506110ab8185602086016116eb565b80840191505092915050565b60006110c282611555565b6110cc818561156b565b93506110dc8185602086016116eb565b6110e58161177c565b840191505092915050565b60006110fd601b8361156b565b91507f546f6b656e56657374696e673a2063616e6e6f74207265766f6b6500000000006000830152602082019050919050565b600061113d60268361156b565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006111a3601f8361156b565b91507f546f6b656e56657374696e673a206e6f20746f6b656e732061726520647565006000830152602082019050919050565b60006111e360268361156b565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061124960208361156b565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611289601d8361156b565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006112c9602a8361156b565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b600061132f60238361156b565b91507f546f6b656e56657374696e673a20746f6b656e20616c7265616479207265766f60008301527f6b656400000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b611391816116e1565b82525050565b60006113a38284611086565b915081905092915050565b60006020820190506113c36000830184611068565b92915050565b60006040820190506113de6000830185611068565b6113eb6020830184611388565b9392505050565b60006020820190506114076000830184611077565b92915050565b6000602082019050818103600083015261142781846110b7565b905092915050565b60006020820190508181036000830152611448816110f0565b9050919050565b6000602082019050818103600083015261146881611130565b9050919050565b6000602082019050818103600083015261148881611196565b9050919050565b600060208201905081810360008301526114a8816111d6565b9050919050565b600060208201905081810360008301526114c88161123c565b9050919050565b600060208201905081810360008301526114e88161127c565b9050919050565b60006020820190508181036000830152611508816112bc565b9050919050565b6000602082019050818103600083015261152881611322565b9050919050565b60006020820190506115446000830184611388565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611587826116e1565b9150611592836116e1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156115c7576115c661171e565b5b828201905092915050565b60006115dd826116e1565b91506115e8836116e1565b9250826115f8576115f761174d565b5b828204905092915050565b600061160e826116e1565b9150611619836116e1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116525761165161171e565b5b828202905092915050565b6000611668826116e1565b9150611673836116e1565b9250828210156116865761168561171e565b5b828203905092915050565b600061169c826116c1565b9050919050565b60008115159050919050565b60006116ba82611691565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156117095780820151818401526020810190506116ee565b83811115611718576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b61179681611691565b81146117a157600080fd5b50565b6117ad816116a3565b81146117b857600080fd5b50565b6117c4816116af565b81146117cf57600080fd5b50565b6117db816116e1565b81146117e657600080fd5b5056fea26469706673582212204346ac923a7cc9f212f51cb2ac8d1d9598fae319099b692c02ca5a345f74ff4964736f6c63430008000033a2646970667358221220156c0eadd6842fb43fba2bd2fb49ff4acf6801a6c68f349b56c20376eea8eb3164736f6c63430008000033

Deployed Bytecode

0x60806040523480156200001157600080fd5b50600436106200005e5760003560e01c80636ac0c6671462000063578063715018a614620000995780638da5cb5b14620000a5578063a11659dc14620000c7578063f2fde38b14620000fd575b600080fd5b6200008160048036038101906200007b919062000bc5565b6200011d565b60405162000090919062001091565b60405180910390f35b620000a362000413565b005b620000af620004a4565b604051620000be919062001091565b60405180910390f35b620000e56004803603810190620000df919062000b99565b620004cd565b604051620000f4919062001091565b60405180910390f35b6200011b600480360381019062000115919062000b99565b62000500565b005b60008073ffffffffffffffffffffffffffffffffffffffff16600160008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614620001ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001e69062001216565b60405180910390fd5b600060405180602001620002039062000b01565b6020820181038252601f19601f820116604052508c8c8c8c8c60405160200162000232959493929190620010eb565b6040516020818303038152906040526040516020016200025492919062001069565b6040516020818303038152906040529050620002736000868362000604565b915081600160008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008290508073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b866040518263ffffffff1660e01b815260040162000333919062001091565b600060405180830381600087803b1580156200034e57600080fd5b505af115801562000363573d6000803e3d6000fd5b505050506200039684828a8a73ffffffffffffffffffffffffffffffffffffffff166200071e909392919063ffffffff16565b8c73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f631d3ffb4c6b71517971aa2cb6bcde0b6c9161b0b4d6af0d8e8247fd174454488e8e8e8e604051620003fb94939291906200129e565b60405180910390a350509a9950505050505050505050565b6200041d620007ab565b73ffffffffffffffffffffffffffffffffffffffff166200043d620004a4565b73ffffffffffffffffffffffffffffffffffffffff161462000496576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200048d90620011f4565b60405180910390fd5b620004a26000620007b3565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6200050a620007ab565b73ffffffffffffffffffffffffffffffffffffffff166200052a620004a4565b73ffffffffffffffffffffffffffffffffffffffff161462000583576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200057a90620011f4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620005f6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005ed906200118e565b60405180910390fd5b6200060181620007b3565b50565b600080844710156200064d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000644906200127c565b60405180910390fd5b60008351141562000695576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200068c906200116c565b60405180910390fd5b8383516020850187f59050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000713576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200070a90620011d2565b60405180910390fd5b809150509392505050565b620007a5846323b872dd60e01b8585856040516024016200074293929190620010ae565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505062000877565b50505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000620008db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16620009469092919063ffffffff16565b9050600081511115620009415780806020019051810190620008fe919062000cb5565b62000940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000937906200125a565b60405180910390fd5b5b505050565b606062000957848460008562000960565b90509392505050565b606082471015620009a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200099f90620011b0565b60405180910390fd5b620009b38562000a82565b620009f5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009ec9062001238565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405162000a20919062001050565b60006040518083038185875af1925050503d806000811462000a5f576040519150601f19603f3d011682016040523d82523d6000602084013e62000a64565b606091505b509150915062000a7682828662000a95565b92505050949350505050565b600080823b905060008111915050919050565b6060831562000aa75782905062000afa565b60008351111562000abb5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000af1919062001148565b60405180910390fd5b9392505050565b611f29806200144f83390190565b60008135905062000b2081620013cc565b92915050565b60008135905062000b3781620013e6565b92915050565b60008151905062000b4e81620013e6565b92915050565b60008135905062000b658162001400565b92915050565b60008135905062000b7c816200141a565b92915050565b60008135905062000b938162001434565b92915050565b60006020828403121562000bac57600080fd5b600062000bbc8482850162000b0f565b91505092915050565b6000806000806000806000806000806101408b8d03121562000be657600080fd5b600062000bf68d828e0162000b0f565b9a5050602062000c098d828e0162000b82565b995050604062000c1c8d828e0162000b82565b985050606062000c2f8d828e0162000b82565b975050608062000c428d828e0162000b26565b96505060a062000c558d828e0162000b82565b95505060c062000c688d828e0162000b6b565b94505060e062000c7b8d828e0162000b54565b93505061010062000c8f8d828e0162000b0f565b92505061012062000ca38d828e0162000b0f565b9150509295989b9194979a5092959850565b60006020828403121562000cc857600080fd5b600062000cd88482850162000b3d565b91505092915050565b62000cec816200131d565b82525050565b62000cfd8162001331565b82525050565b600062000d1082620012eb565b62000d1c818562001301565b935062000d2e81856020860162001385565b80840191505092915050565b600062000d4782620012f6565b62000d5381856200130c565b935062000d6581856020860162001385565b62000d7081620013bb565b840191505092915050565b600062000d8a6020836200130c565b91507f437265617465323a2062797465636f6465206c656e677468206973207a65726f6000830152602082019050919050565b600062000dcc6026836200130c565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600062000e346026836200130c565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b600062000e9c6019836200130c565b91507f437265617465323a204661696c6564206f6e206465706c6f79000000000000006000830152602082019050919050565b600062000ede6020836200130c565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600062000f206016836200130c565b91507f5573657220697320616c726561647920766573746564000000000000000000006000830152602082019050919050565b600062000f62601d836200130c565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b600062000fa4602a836200130c565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b60006200100c601d836200130c565b91507f437265617465323a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b6200104a816200137b565b82525050565b60006200105e828462000d03565b915081905092915050565b600062001077828562000d03565b915062001085828462000d03565b91508190509392505050565b6000602082019050620010a8600083018462000ce1565b92915050565b6000606082019050620010c5600083018662000ce1565b620010d4602083018562000ce1565b620010e360408301846200103f565b949350505050565b600060a08201905062001102600083018862000ce1565b6200111160208301876200103f565b6200112060408301866200103f565b6200112f60608301856200103f565b6200113e608083018462000cf2565b9695505050505050565b6000602082019050818103600083015262001164818462000d3a565b905092915050565b60006020820190508181036000830152620011878162000d7b565b9050919050565b60006020820190508181036000830152620011a98162000dbd565b9050919050565b60006020820190508181036000830152620011cb8162000e25565b9050919050565b60006020820190508181036000830152620011ed8162000e8d565b9050919050565b600060208201905081810360008301526200120f8162000ecf565b9050919050565b60006020820190508181036000830152620012318162000f11565b9050919050565b60006020820190508181036000830152620012538162000f53565b9050919050565b60006020820190508181036000830152620012758162000f95565b9050919050565b60006020820190508181036000830152620012978162000ffd565b9050919050565b6000608082019050620012b560008301876200103f565b620012c460208301866200103f565b620012d360408301856200103f565b620012e2606083018462000cf2565b95945050505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006200132a826200135b565b9050919050565b60008115159050919050565b6000819050919050565b600062001354826200131d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620013a557808201518184015260208101905062001388565b83811115620013b5576000848401525b50505050565b6000601f19601f8301169050919050565b620013d7816200131d565b8114620013e357600080fd5b50565b620013f18162001331565b8114620013fd57600080fd5b50565b6200140b816200133d565b81146200141757600080fd5b50565b620014258162001347565b81146200143157600080fd5b50565b6200143f816200137b565b81146200144b57600080fd5b5056fe60806040523480156200001157600080fd5b5060405162001f2938038062001f29833981810160405281019062000037919062000341565b620000576200004b6200023060201b60201c565b6200023860201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415620000ca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c1906200055f565b60405180910390fd5b8183111562000110576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001079062000581565b60405180910390fd5b6000821162000156576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200014d90620005a3565b60405180910390fd5b428285620001659190620005d6565b11620001a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019f906200053d565b60405180910390fd5b84600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548160ff021916908315150217905550816004819055508284620002189190620005d6565b600281905550836003819055505050505050620006fa565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200030d81620006ac565b92915050565b6000815190506200032481620006c6565b92915050565b6000815190506200033b81620006e0565b92915050565b600080600080600060a086880312156200035a57600080fd5b60006200036a88828901620002fc565b95505060206200037d888289016200032a565b945050604062000390888289016200032a565b9350506060620003a3888289016200032a565b9250506080620003b68882890162000313565b9150509295509295909350565b6000620003d2602f83620005c5565b91507f546f6b656e56657374696e673a2066696e616c2074696d65206973206265666f60008301527f72652063757272656e742074696d6500000000000000000000000000000000006020830152604082019050919050565b60006200043a602d83620005c5565b91507f546f6b656e56657374696e673a2062656e65666963696172792069732074686560008301527f207a65726f2061646472657373000000000000000000000000000000000000006020830152604082019050919050565b6000620004a2602b83620005c5565b91507f546f6b656e56657374696e673a20636c696666206973206c6f6e67657220746860008301527f616e206475726174696f6e0000000000000000000000000000000000000000006020830152604082019050919050565b60006200050a601b83620005c5565b91507f546f6b656e56657374696e673a206475726174696f6e206973203000000000006000830152602082019050919050565b600060208201905081810360008301526200055881620003c3565b9050919050565b600060208201905081810360008301526200057a816200042b565b9050919050565b600060208201905081810360008301526200059c8162000493565b9050919050565b60006020820190508181036000830152620005be81620004fb565b9050919050565b600082825260208201905092915050565b6000620005e38262000673565b9150620005f08362000673565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200062857620006276200067d565b5b828201905092915050565b6000620006408262000653565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b620006b78162000633565b8114620006c357600080fd5b50565b620006d18162000647565b8114620006dd57600080fd5b50565b620006eb8162000673565b8114620006f757600080fd5b50565b61181f806200070a6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806374a8f1031161008c5780639852595c116100665780639852595c14610227578063be9a655514610257578063f2fde38b14610275578063fa01dc0614610291576100ea565b806374a8f103146101cf578063872a7810146101eb5780638da5cb5b14610209576100ea565b806319165587116100c8578063191655871461015b578063384711cc1461017757806338af3eed146101a7578063715018a6146101c5576100ea565b80630fb5a6b4146100ef57806313d033c01461010d5780631726cbc81461012b575b600080fd5b6100f76102c1565b604051610104919061152f565b60405180910390f35b6101156102cb565b604051610122919061152f565b60405180910390f35b61014560048036038101906101409190611016565b6102d5565b604051610152919061152f565b60405180910390f35b61017560048036038101906101709190611016565b6102e7565b005b610191600480360381019061018c9190611016565b61044f565b60405161019e919061152f565b60405180910390f35b6101af610461565b6040516101bc91906113ae565b60405180910390f35b6101cd61048b565b005b6101e960048036038101906101e49190611016565b610513565b005b6101f36107dc565b60405161020091906113f2565b60405180910390f35b6102116107f3565b60405161021e91906113ae565b60405180910390f35b610241600480360381019061023c9190610fc4565b61081c565b60405161024e919061152f565b60405180910390f35b61025f610865565b60405161026c919061152f565b60405180910390f35b61028f600480360381019061028a9190610fc4565b61086f565b005b6102ab60048036038101906102a69190610fc4565b610967565b6040516102b891906113f2565b60405180910390f35b6000600454905090565b6000600254905090565b60006102e0826109bd565b9050919050565b60006102f2826109bd565b905060008111610337576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032e9061146f565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610382919061157c565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610412600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff16610a199092919063ffffffff16565b7fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df9317982826040516104439291906113c9565b60405180910390a15050565b600061045a82610a9f565b9050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610493610c37565b73ffffffffffffffffffffffffffffffffffffffff166104b16107f3565b73ffffffffffffffffffffffffffffffffffffffff1614610507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104fe906114af565b60405180910390fd5b6105116000610c3f565b565b61051b610c37565b73ffffffffffffffffffffffffffffffffffffffff166105396107f3565b73ffffffffffffffffffffffffffffffffffffffff161461058f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610586906114af565b60405180910390fd5b600560009054906101000a900460ff166105de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d59061142f565b60405180910390fd5b600760008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561066b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106629061150f565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106a691906113ae565b60206040518083038186803b1580156106be57600080fd5b505afa1580156106d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f6919061103f565b90506000610703836109bd565b905060008183610713919061165d565b90506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061079f6107786107f3565b828673ffffffffffffffffffffffffffffffffffffffff16610a199092919063ffffffff16565b7f39983c6d4d174a7aee564f449d4a5c3c7ac9649d72b7793c56901183996f8af6846040516107ce91906113ae565b60405180910390a150505050565b6000600560009054906101000a900460ff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600354905090565b610877610c37565b73ffffffffffffffffffffffffffffffffffffffff166108956107f3565b73ffffffffffffffffffffffffffffffffffffffff16146108eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e2906114af565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561095b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109529061144f565b60405180910390fd5b61096481610c3f565b50565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610a0883610a9f565b610a12919061165d565b9050919050565b610a9a8363a9059cbb60e01b8484604051602401610a389291906113c9565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d03565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610adb91906113ae565b60206040518083038186803b158015610af357600080fd5b505afa158015610b07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2b919061103f565b90506000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482610b7a919061157c565b9050600254421015610b9157600092505050610c32565b600454600354610ba1919061157c565b42101580610bf85750600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15610c07578092505050610c32565b60045460035442610c18919061165d565b82610c239190611603565b610c2d91906115d2565b925050505b919050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000610d65826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610dca9092919063ffffffff16565b9050600081511115610dc55780806020019051810190610d859190610fed565b610dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbb906114ef565b60405180910390fd5b5b505050565b6060610dd98484600085610de2565b90509392505050565b606082471015610e27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1e9061148f565b60405180910390fd5b610e3085610ef6565b610e6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e66906114cf565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610e989190611397565b60006040518083038185875af1925050503d8060008114610ed5576040519150601f19603f3d011682016040523d82523d6000602084013e610eda565b606091505b5091509150610eea828286610f09565b92505050949350505050565b600080823b905060008111915050919050565b60608315610f1957829050610f69565b600083511115610f2c5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f60919061140d565b60405180910390fd5b9392505050565b600081359050610f7f8161178d565b92915050565b600081519050610f94816117a4565b92915050565b600081359050610fa9816117bb565b92915050565b600081519050610fbe816117d2565b92915050565b600060208284031215610fd657600080fd5b6000610fe484828501610f70565b91505092915050565b600060208284031215610fff57600080fd5b600061100d84828501610f85565b91505092915050565b60006020828403121561102857600080fd5b600061103684828501610f9a565b91505092915050565b60006020828403121561105157600080fd5b600061105f84828501610faf565b91505092915050565b61107181611691565b82525050565b611080816116a3565b82525050565b60006110918261154a565b61109b8185611560565b93506110ab8185602086016116eb565b80840191505092915050565b60006110c282611555565b6110cc818561156b565b93506110dc8185602086016116eb565b6110e58161177c565b840191505092915050565b60006110fd601b8361156b565b91507f546f6b656e56657374696e673a2063616e6e6f74207265766f6b6500000000006000830152602082019050919050565b600061113d60268361156b565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006111a3601f8361156b565b91507f546f6b656e56657374696e673a206e6f20746f6b656e732061726520647565006000830152602082019050919050565b60006111e360268361156b565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061124960208361156b565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000611289601d8361156b565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b60006112c9602a8361156b565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b600061132f60238361156b565b91507f546f6b656e56657374696e673a20746f6b656e20616c7265616479207265766f60008301527f6b656400000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b611391816116e1565b82525050565b60006113a38284611086565b915081905092915050565b60006020820190506113c36000830184611068565b92915050565b60006040820190506113de6000830185611068565b6113eb6020830184611388565b9392505050565b60006020820190506114076000830184611077565b92915050565b6000602082019050818103600083015261142781846110b7565b905092915050565b60006020820190508181036000830152611448816110f0565b9050919050565b6000602082019050818103600083015261146881611130565b9050919050565b6000602082019050818103600083015261148881611196565b9050919050565b600060208201905081810360008301526114a8816111d6565b9050919050565b600060208201905081810360008301526114c88161123c565b9050919050565b600060208201905081810360008301526114e88161127c565b9050919050565b60006020820190508181036000830152611508816112bc565b9050919050565b6000602082019050818103600083015261152881611322565b9050919050565b60006020820190506115446000830184611388565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611587826116e1565b9150611592836116e1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156115c7576115c661171e565b5b828201905092915050565b60006115dd826116e1565b91506115e8836116e1565b9250826115f8576115f761174d565b5b828204905092915050565b600061160e826116e1565b9150611619836116e1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116525761165161171e565b5b828202905092915050565b6000611668826116e1565b9150611673836116e1565b9250828210156116865761168561171e565b5b828203905092915050565b600061169c826116c1565b9050919050565b60008115159050919050565b60006116ba82611691565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b838110156117095780820151818401526020810190506116ee565b83811115611718576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000601f19601f8301169050919050565b61179681611691565b81146117a157600080fd5b50565b6117ad816116a3565b81146117b857600080fd5b50565b6117c4816116af565b81146117cf57600080fd5b50565b6117db816116e1565b81146117e657600080fd5b5056fea26469706673582212204346ac923a7cc9f212f51cb2ac8d1d9598fae319099b692c02ca5a345f74ff4964736f6c63430008000033a2646970667358221220156c0eadd6842fb43fba2bd2fb49ff4acf6801a6c68f349b56c20376eea8eb3164736f6c63430008000033

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  ]
[ 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.