ETH Price: $1,591.90 (-0.08%)
Gas: 6 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multi Chain

Transaction Hash
Method
Block
From
To
Value
0x5de04b68b02be9c80e37a1882e210a01a3f519e1a99cdf35246eba4c740f0c81Claim(pending)2023-09-23 22:55:1734 mins ago1695509717IN
0xf26619...af063f04
0 ETH(Pending)(Pending)
0xe926b8fa02afd8f4d904fd4770b541cee9d755eae23c70ca711d6e3b02556371Claim(pending)2023-09-17 7:34:016 days 15 hrs ago1694936041IN
0xf26619...af063f04
0 ETH(Pending)(Pending)
0x030c060c834e4021f01820908aafb46162ad831e7dc04a0296520e8609bcbce2Claim(pending)2023-09-17 2:48:506 days 20 hrs ago1694918930IN
0xf26619...af063f04
0 ETH(Pending)(Pending)
0xd37035847b677be4fd155ac213052f033030d93c2184492f33b3bf97c10cbb12Claim(pending)2023-09-17 2:43:516 days 20 hrs ago1694918631IN
0xf26619...af063f04
0 ETH(Pending)(Pending)
0x1e96d7721adaa01c36e694d78440686105fd17a0e5693405bf10722499ea34abClaim(pending)2023-09-17 1:59:486 days 21 hrs ago1694915988IN
0xf26619...af063f04
0 ETH(Pending)(Pending)
Claim181988012023-09-23 13:24:2310 hrs 5 mins ago1695475463IN
0xf26619...af063f04
0 ETH0.000900897.62863868
Claim181987972023-09-23 13:23:3510 hrs 6 mins ago1695475415IN
0xf26619...af063f04
0 ETH0.000898987.40387179
Claim181985862023-09-23 12:41:2310 hrs 48 mins ago1695472883IN
0xf26619...af063f04
0 ETH0.00066947.88412826
Claim181985712023-09-23 12:38:2310 hrs 51 mins ago1695472703IN
0xf26619...af063f04
0 ETH0.00087887.2385784
Claim181983642023-09-23 11:56:2311 hrs 33 mins ago1695470183IN
0xf26619...af063f04
0 ETH0.000886637.30067415
Claim181978462023-09-23 10:12:1113 hrs 17 mins ago1695463931IN
0xf26619...af063f04
0 ETH0.000867187.14041482
Claim181978062023-09-23 10:04:1113 hrs 25 mins ago1695463451IN
0xf26619...af063f04
0 ETH0.001192799.82658241
Claim181977222023-09-23 9:47:2313 hrs 42 mins ago1695462443IN
0xf26619...af063f04
0 ETH0.000937837.72253388
Claim181975782023-09-23 9:18:2314 hrs 11 mins ago1695460703IN
0xf26619...af063f04
0 ETH0.000918187.81398584
Claim181975352023-09-23 9:09:4714 hrs 20 mins ago1695460187IN
0xf26619...af063f04
0 ETH0.000958488.11714173
Claim181975242023-09-23 9:07:3514 hrs 22 mins ago1695460055IN
0xf26619...af063f04
0 ETH0.000599737.06450586
Claim181974862023-09-23 8:59:5914 hrs 30 mins ago1695459599IN
0xf26619...af063f04
0 ETH0.000909937.49336345
Claim181974452023-09-23 8:51:4714 hrs 38 mins ago1695459107IN
0xf26619...af063f04
0 ETH0.001054038.67924539
Claim181974222023-09-23 8:47:1114 hrs 42 mins ago1695458831IN
0xf26619...af063f04
0 ETH0.000640357.53965102
Claim181973782023-09-23 8:38:2314 hrs 51 mins ago1695458303IN
0xf26619...af063f04
0 ETH0.001123459.56104749
Claim181972642023-09-23 8:15:3515 hrs 14 mins ago1695456935IN
0xf26619...af063f04
0 ETH0.000610217.18494689
Claim181970872023-09-23 7:39:4715 hrs 50 mins ago1695454787IN
0xf26619...af063f04
0 ETH0.000934397.95266279
Claim181964662023-09-23 5:34:4717 hrs 55 mins ago1695447287IN
0xf26619...af063f04
0 ETH0.000894537.61364465
Claim181921872023-09-22 15:11:351 day 8 hrs ago1695395495IN
0xf26619...af063f04
0 ETH0.0019730616.24682885
Claim181918622023-09-22 14:05:351 day 9 hrs ago1695391535IN
0xf26619...af063f04
0 ETH0.0012239510.0785547
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:
ContinuousVestingMerkle

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 20 : ContinuousVestingMerkle.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import { ContinuousVesting } from "./abstract/ContinuousVesting.sol";
import { MerkleSet } from "./abstract/MerkleSet.sol";

contract ContinuousVestingMerkle is
  ContinuousVesting,
  MerkleSet
{

  constructor(
    IERC20 _token, // the token being claimed
    uint256 _total, // the total claimable by all users
    string memory _uri, // information on the sale (e.g. merkle proofs)
    uint256 _voteFactor, // votes have this weight
    uint256 _start, // vesting clock starts at this time
    uint256 _cliff, // claims open at this time
    uint256 _end, // vesting clock ends and this time
    bytes32 _merkleRoot // the merkle root for claim membership
  )
    ContinuousVesting(_token, _total, _uri, _voteFactor, _start, _cliff, _end)
    MerkleSet(_merkleRoot)
  {}

  function NAME() external override pure returns (string memory) {
    return 'ContinuousVestingMerkle';
  }
  
  function VERSION() external override pure returns (uint) {
    return 2;
  }

  function initializeDistributionRecord(
    uint256 index, // the beneficiary's index in the merkle root
    address beneficiary, // the address that will receive tokens
    uint256 amount, // the total claimable by this beneficiary
    bytes32[] calldata merkleProof
  ) validMerkleProof(keccak256(abi.encodePacked(index, beneficiary, amount)), merkleProof) external {
    _initializeDistributionRecord(beneficiary, amount);
  }

  function claim(
    uint256 index, // the beneficiary's index in the merkle root
    address beneficiary, // the address that will receive tokens
    uint256 amount, // the total claimable by this beneficiary
    bytes32[] calldata merkleProof
  ) external validMerkleProof(keccak256(abi.encodePacked(index, beneficiary, amount)), merkleProof) nonReentrant {
    if (!records[beneficiary].initialized) {
      _initializeDistributionRecord(beneficiary, amount);
    }
    super._executeClaim(beneficiary, uint120(getClaimableAmount(beneficiary)));
  }

  function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
    _setMerkleRoot(_merkleRoot);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 4 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

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

File 7 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 9 of 20 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 10 of 20 : AdvancedDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

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

import {Distributor, DistributionRecord, IERC20} from "./Distributor.sol";
import {IAdjustable} from "../interfaces/IAdjustable.sol";
import {IVotesLite} from "../interfaces/IVotesLite.sol";
import {Sweepable} from "../../utilities/Sweepable.sol";

abstract contract AdvancedDistributor is Ownable, Distributor, Sweepable, IAdjustable, IVotesLite {
  using SafeERC20 for IERC20;

  uint256 private voteFactor;
  constructor(
    IERC20 _token,
    uint256 _total,
    string memory _uri,
    uint256 _voteFactor,
    uint256 _fractionDenominator
  ) Distributor(_token, _total, _uri, _fractionDenominator) {
    voteFactor = _voteFactor;
    emit SetVoteFactor(voteFactor);
  }

  function adjust(address beneficiary, int256 amount) external onlyOwner {
    DistributionRecord memory distributionRecord = records[beneficiary];
    require(
        distributionRecord.initialized,
        "must initialize before adjusting"
    );

      uint256 diff = uint256(amount > 0 ? amount : -amount);
      require(diff < type(uint120).max, "adjustment > max uint120");

      if (amount < 0) {
        // decreasing claimable tokens
        require(total >= diff, "decrease greater than distributor total");
        require(
          distributionRecord.total >= diff,
          "decrease greater than distributionRecord total"
        );
        total -= diff;
        records[beneficiary].total -= uint120(diff);

        token.safeTransfer(owner(), diff);
    } else {
        // increasing claimable tokens
        total += diff;
        records[beneficiary].total += uint120(diff);
    }

    emit Adjust(beneficiary, amount);
  }

	// Set the token being distributed
	function setToken(IERC20 _token) external onlyOwner {
    require(address(_token) != address(0), "Adjustable: token is address(0)");
		token = _token;
		emit SetToken(token);
	}

	// Set the total to distribute
	function setTotal(uint256 _total) external onlyOwner {
		total = _total;
		emit SetTotal(total);
	}

	// Set the distributor metadata URI
	function setUri(string memory _uri) external onlyOwner {
		uri = _uri;
		emit SetUri(uri);
	}

  function getVotes(
    address beneficiary
  ) external override(IVotesLite) view returns (uint256) {
    // Uninitialized claims will not have any votes! (returns 0)

    // The user can vote using tokens that are allocated to them but not yet claimed
    return (records[beneficiary].total - records[beneficiary].claimed) * voteFactor / fractionDenominator;
  }
  
  function getTotalVotes() external override(IVotesLite) view returns (uint256) {
    // Return total voting power for this distributor across all users
    return (total - claimed) * voteFactor / fractionDenominator;
  }

  function getVoteFactor(address) external override(IVotesLite) view returns (uint256) {
	return voteFactor;
  }

	// Set the voting power of undistributed tokens
	function setVoteFactor(uint256 _voteFactor) external onlyOwner {
		voteFactor = _voteFactor;
		emit SetVoteFactor(voteFactor);
	}
}

File 11 of 20 : ContinuousVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import {Distributor, AdvancedDistributor} from "./AdvancedDistributor.sol";
import {IVesting} from "../interfaces/IVesting.sol";
import {IContinuousVesting} from "../interfaces/IContinuousVesting.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

abstract contract ContinuousVesting is AdvancedDistributor, IContinuousVesting {
    uint256 private start; // time vesting clock begins
    uint256 private cliff; // time vesting begins (all tokens vested prior to the cliff are immediately claimable)
    uint256 private end; // time vesting clock ends

    constructor(
        IERC20 _token,
        uint256 _total,
        string memory _uri,
        uint256 _voteFactor,
        uint256 _start,
        uint256 _cliff,
        uint256 _end
    )
        // use a large fraction denominator to provide the highest resolution on continuous vesting.
        AdvancedDistributor(_token, _total, _uri, _voteFactor, 10**18)
    {
        require(_start <= _cliff, "vesting cliff before start");
        require(_cliff <= _end, "vesting end before cliff");
        require(
            _end <= 4102444800,
            "vesting ends after 4102444800 (Jan 1 2100)"
        );

        start = _start;
        cliff = _cliff;
        end = _end;

        emit SetContinuousVesting(start, cliff, end);
    }

    function getVestedFraction(
        address, /*beneficiary*/
        uint256 time // time is in seconds past the epoch (e.g. block.timestamp)
    ) public view override(Distributor, IVesting) returns (uint256) {
        // no tokens are vested
        if (time <= cliff) {
            return 0;
        }

        // all tokens are vested
        if (time >= end) {
            return fractionDenominator;
        }

        // some tokens are vested
        return (fractionDenominator * (time - start)) / (end - start);
    }

    function getVestingConfig()
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        return (start, cliff, end);
    }

    // Adjustable admin functions
    function setVestingConfig(
        uint256 _start,
        uint256 _cliff,
        uint256 _end
    ) external onlyOwner {
        start = _start;
        cliff = _cliff;
        end = _end;
        emit SetContinuousVesting(start, cliff, end);
    }
}

File 12 of 20 : Distributor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";

import {IDistributor, DistributionRecord} from "../interfaces/IDistributor.sol";

abstract contract Distributor is IDistributor, ReentrancyGuard {
    using SafeERC20 for IERC20;

    mapping(address => DistributionRecord) internal records; // track distribution records per user
    IERC20 public token; // the token being claimed
    uint256 public total; // total tokens allocated for claims
    uint256 public claimed; // tokens already claimed
    string public uri; // ipfs link on distributor info
    uint256 immutable fractionDenominator; // denominator for vesting fraction (e.g. if vested fraction is 100 and fractionDenominator is 10000, 1% of tokens have vested)

    // provide context on the contract name and version
    function NAME() external virtual returns (string memory);

    function VERSION() external virtual returns (uint256);

    constructor(
        IERC20 _token,
        uint256 _total,
        string memory _uri,
        uint256 _fractionDenominator
    ) {
        require(
            address(_token) != address(0),
            "Distributor: token is address(0)"
        );
        require(_total > 0, "Distributor: total is 0");

        token = _token;
        total = _total;
        uri = _uri;
        fractionDenominator = _fractionDenominator;
        emit InitializeDistributor(token, total, uri, fractionDenominator);
    }

    function _initializeDistributionRecord(address beneficiary, uint256 amount)
        internal
    {
        // CALLER MUST VERIFY THE BENEFICIARY AND AMOUNT ARE VALID!

        // Checks
        require(
            amount <= type(uint120).max,
            "Distributor: amount > type(uint120).max"
        );
        require(amount > 0, "Distributor: amount == 0");
        require(
            !records[beneficiary].initialized,
            "Distributor: already initialized"
        );

        // Effects
        records[beneficiary] = DistributionRecord(true, uint120(amount), 0);
        emit InitializeDistributionRecord(beneficiary, amount);
    }

    function _executeClaim(address beneficiary, uint256 _amount) internal {
        // Checks: NONE! THIS FUNCTION DOES NOT CHECK PERMISSIONS: CALLER MUST VERIFY THE CLAIM IS VALID!
        uint120 amount = uint120(_amount);
        require(amount > 0, "Distributor: no more tokens claimable right now");

        // effects
        records[beneficiary].claimed += amount;
        claimed += amount;

        // interactions
        token.safeTransfer(beneficiary, amount);
        emit Claim(beneficiary, amount);
    }

    function getDistributionRecord(address beneficiary)
        external
        view
        virtual
        returns (DistributionRecord memory)
    {
        return records[beneficiary];
    }

    // Get tokens vested as fraction of fractionDenominator
    function getVestedFraction(address beneficiary, uint256 time)
        public
        view
        virtual
        returns (uint256);

    function getFractionDenominator() public view returns (uint256) {
        return fractionDenominator;
    }

    // get the number of tokens currently claimable by a specific use
    function getClaimableAmount(address beneficiary)
        public
        view
        virtual
        returns (uint256)
    {
        require(
            records[beneficiary].initialized,
            "Distributor: claim not initialized"
        );

        DistributionRecord memory record = records[beneficiary];

        uint256 claimable = (record.total *
            getVestedFraction(beneficiary, block.timestamp)) /
            fractionDenominator;
        return
            record.claimed >= claimable
                ? 0 // no more tokens to claim
                : claimable - record.claimed; // claim all available tokens
    }
}

File 13 of 20 : MerkleSet.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import { IMerkleSet } from "../interfaces/IMerkleSet.sol";

contract MerkleSet is IMerkleSet {
  bytes32 private merkleRoot;
  constructor(bytes32 _merkleRoot) {
    _setMerkleRoot(_merkleRoot);
  }

  modifier validMerkleProof(
    bytes32 leaf,
    bytes32[] calldata merkleProof
  ) {
    _verifyMembership(leaf, merkleProof);

    _;
  }

  function _testMembership(bytes32 leaf, bytes32[] calldata merkleProof)
    internal
    view returns (bool)
  {
    return MerkleProof.verify(merkleProof, merkleRoot, leaf);
  }

  function getMerkleRoot() public view returns (bytes32) {
    return merkleRoot;
  }

  function _verifyMembership(bytes32 leaf, bytes32[] calldata merkleProof)
    internal
    view
  {
    require(_testMembership(leaf, merkleProof), "invalid proof");
  }

  function _setMerkleRoot(bytes32 _merkleRoot) internal {
    merkleRoot = _merkleRoot;
    emit SetMerkleRoot(merkleRoot);
  }
}

File 14 of 20 : IAdjustable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IAdjustable {
  event Adjust(address indexed beneficiary, int256 amount);
  event SetToken(IERC20 indexed token);
  event SetTotal(uint256 total);
  event SetUri(string indexed uri);
  event SetVoteFactor(uint256 voteFactor);

  // Adjust the quantity claimable by a user
  function adjust(address beneficiary, int256 amount) external;
  // Set the token being distributed
  function setToken(IERC20 token) external;
  // Set the total distribution quantity
  function setTotal(uint256 total) external;
  // Set the distributor metadata URI
  function setUri(string memory uri) external;
  // Set the voting power of undistributed tokens
  function setVoteFactor(uint256 setVoteFactor) external;
}

File 15 of 20 : IContinuousVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IVesting} from "./IVesting.sol";

interface IContinuousVesting is IVesting {
    event SetContinuousVesting(uint256 start, uint256 cliff, uint256 end);

    function getVestingConfig()
        external
        view
        returns (
            uint256,
            uint256,
            uint256
        );

    function setVestingConfig(
        uint256 _start,
        uint256 _cliff,
        uint256 _end
    ) external;
}

File 16 of 20 : IDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

struct DistributionRecord {
    bool initialized; // has the claim record been initialized
    uint120 total; // total token quantity claimable
    uint120 claimed; // token quantity already claimed
}

interface IDistributor {
    event InitializeDistributor(
        IERC20 indexed token,
        uint256 total,
        string uri,
        uint256 fractionDenominator
    );
    event InitializeDistributionRecord(
        address indexed beneficiary,
        uint256 amount
    );
    event Claim(address indexed beneficiary, uint256 amount);

    function getDistributionRecord(address beneficiary) external view returns (DistributionRecord memory);
    function getClaimableAmount(address beneficiary) external view returns (uint256);
    function getFractionDenominator() external view returns (uint256);
}

File 17 of 20 : IMerkleSet.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;
interface IMerkleSet {
  event SetMerkleRoot(bytes32 merkleRoot);

	function getMerkleRoot() external view returns (bytes32 root);
}

File 18 of 20 : IVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

interface IVesting {
    function getVestedFraction(
        address, /*beneficiary*/
        uint256 time // time is in seconds past the epoch (e.g. block.timestamp)
    ) external returns (uint256);
}

File 19 of 20 : IVotesLite.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.16;
interface IVotesLite {
    // an account's current voting power
    function getVotes(address account) external view returns (uint256);
    // an total current voting power
    function getTotalVotes() external view returns (uint256);
    // a weighting factor used to convert token holdings to voting power (eg in basis points)
    function getVoteFactor(address account) external view returns (uint256);
}

File 20 of 20 : Sweepable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;

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

abstract contract Sweepable is Ownable {
    using SafeERC20 for IERC20;

    event SweepToken(address indexed token, uint256 amount);
    event SweepNative(uint256 amount);
    constructor() {}

    // Sweep an ERC20 token to the owner
    function sweepToken(IERC20 token) external onlyOwner {
        uint256 amount = token.balanceOf(address(this));
        token.safeTransfer(owner(), amount);
        emit SweepToken(address(token), amount);
    }

    function sweepToken(IERC20 token, uint256 amount) external onlyOwner {
        token.safeTransfer(owner(), amount);
        emit SweepToken(address(token), amount);
    }

    // sweep native token to the owner
    function sweepNative() external onlyOwner {
        uint256 amount = address(this).balance;
        (bool success, ) = owner().call{value: amount}("");
        require(success, "Transfer failed.");
        emit SweepNative(amount);
    }

    function sweepNative(uint256 amount) external onlyOwner {
        (bool success, ) = owner().call{value: amount}("");
        require(success, "Transfer failed.");
        emit SweepNative(amount);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_total","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_voteFactor","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"int256","name":"amount","type":"int256"}],"name":"Adjust","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InitializeDistributionRecord","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"},{"indexed":false,"internalType":"uint256","name":"fractionDenominator","type":"uint256"}],"name":"InitializeDistributor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cliff","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"}],"name":"SetContinuousVesting","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"SetMerkleRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"}],"name":"SetToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"total","type":"uint256"}],"name":"SetTotal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"uri","type":"string"}],"name":"SetUri","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"voteFactor","type":"uint256"}],"name":"SetVoteFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SweepNative","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SweepToken","type":"event"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"int256","name":"amount","type":"int256"}],"name":"adjust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getDistributionRecord","outputs":[{"components":[{"internalType":"bool","name":"initialized","type":"bool"},{"internalType":"uint120","name":"total","type":"uint120"},{"internalType":"uint120","name":"claimed","type":"uint120"}],"internalType":"struct DistributionRecord","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFractionDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"getVestedFraction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVestingConfig","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getVoteFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"initializeDistributionRecord","outputs":[],"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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_total","type":"uint256"}],"name":"setTotal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"setVestingConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_voteFactor","type":"uint256"}],"name":"setVoteFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweepNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sweepNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b5060405162002684380380620026848339810160408190526200003491620003f6565b6001600055808888888888888886868686670de0b6b3a7640000848484836200005d3362000353565b6001600160a01b038416620000b95760405162461bcd60e51b815260206004820181905260248201527f4469737472696275746f723a20746f6b656e206973206164647265737328302960448201526064015b60405180910390fd5b600083116200010b5760405162461bcd60e51b815260206004820152601760248201527f4469737472696275746f723a20746f74616c20697320300000000000000000006044820152606401620000b0565b600380546001600160a01b0319166001600160a01b03861617905560048390556006620001398382620005b5565b5060808190526003546004546040516001600160a01b03909216917f433127dedcff849792656a12f4a9dbc0efeb80df5cce6310f53481a93cd71c71916200018691600690869062000681565b60405180910390a25050506007839055506040518281527f6c339c0bee516a4df5d7074ba7a974856d609f83666e915aa4a0f90e06989dc59060200160405180910390a1505050505081831115620002215760405162461bcd60e51b815260206004820152601a60248201527f76657374696e6720636c696666206265666f72652073746172740000000000006044820152606401620000b0565b80821115620002735760405162461bcd60e51b815260206004820152601860248201527f76657374696e6720656e64206265666f726520636c69666600000000000000006044820152606401620000b0565b63f4865700811115620002dc5760405162461bcd60e51b815260206004820152602a60248201527f76657374696e6720656e6473206166746572203431303234343438303020284a604482015269616e203120323130302960b01b6064820152608401620000b0565b60088390556009829055600a81905560408051848152602081018490529081018290527f34ebbb9e095e6c8737f99dd9923fb97ec1ca3d25cb39225975a934dd8d7a31b49060600160405180910390a1505050505050506200034481620003a560201b60201c565b50505050505050505062000724565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b8190556040518181527f914960aef5e033ce5cae8a7992d4b7a6f0f9741227b66acb67c605b7019f8a469060200160405180910390a150565b634e487b7160e01b600052604160045260246000fd5b600080600080600080600080610100898b0312156200041457600080fd5b88516001600160a01b03811681146200042c57600080fd5b60208a81015160408c0151929a509850906001600160401b03808211156200045357600080fd5b818c0191508c601f8301126200046857600080fd5b8151818111156200047d576200047d620003e0565b604051601f8201601f19908116603f01168101908382118183101715620004a857620004a8620003e0565b816040528281528f86848701011115620004c157600080fd5b600093505b82841015620004e55784840186015181850187015292850192620004c6565b6000868483010152809b50505050505050606089015194506080890151935060a0890151925060c0890151915060e089015190509295985092959890939650565b600181811c908216806200053b57607f821691505b6020821081036200055c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005b057600081815260208120601f850160051c810160208610156200058b5750805b601f850160051c820191505b81811015620005ac5782815560010162000597565b5050505b505050565b81516001600160401b03811115620005d157620005d1620003e0565b620005e981620005e2845462000526565b8462000562565b602080601f831160018114620006215760008415620006085750858301515b600019600386901b1c1916600185901b178555620005ac565b600085815260208120601f198616915b82811015620006525788860151825594840194600190910190840162000631565b5085821015620006715787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b83815260006020606081840152600085546200069d8162000526565b8060608701526080600180841660008114620006c25760018114620006dd576200070d565b60ff1985168984015283151560051b8901830195506200070d565b8a6000528660002060005b85811015620007055781548b8201860152908301908801620006e8565b8a0184019650505b505050505060409390930193909352509392505050565b608051611f2162000763600039600081816101ec01528181610c9501528181610d0001528181610df701528181610e3e0152610fd40152611f216000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80639b642de11161010f578063e12f3a61116100a2578063eac989f811610071578063eac989f8146104bc578063f2fde38b146104c4578063fc0c546a146104d7578063ffa1ad74146104ea57600080fd5b8063e12f3a61146103e1578063e834a834146103f4578063e85858d9146103fd578063e90a182f146104a957600080fd5b8063bb22dccb116100de578063bb22dccb14610382578063bf38b5c814610397578063c32b1326146103bb578063c9557255146103ce57600080fd5b80639b642de114610312578063a3f4df7e14610325578063ab803a7614610367578063b6d8f79f1461036f57600080fd5b806349590657116101875780637cb64759116101565780637cb64759146102bf5780638da5cb5b146102d25780639a0e7d66146102f75780639ab24eb0146102ff57600080fd5b80634959065714610289578063684de1f514610291578063715018a6146102a457806375aa9bc6146102ac57600080fd5b80631f8d1d50116101c35780631f8d1d50146102475780632ddbd13a1461025a5780632e7ba6ef146102635780633cf3a0251461027657600080fd5b80630f56b96c146101ea578063144fa6d71461021f5780631be1956014610234575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040519081526020015b60405180910390f35b61023261022d366004611982565b6104f1565b005b610232610242366004611982565b61059e565b61023261025536600461199f565b610680565b61020c60045481565b6102326102713660046119b8565b6106c4565b61023261028436600461199f565b6107c2565b600b5461020c565b61023261029f3660046119b8565b6108a8565b61023261090f565b6102326102ba366004611a51565b610923565b6102326102cd36600461199f565b610c7d565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610216565b61020c610c91565b61020c61030d366004611982565b610ce0565b610232610320366004611a93565b610d64565b60408051808201909152601781527f436f6e74696e756f757356657374696e674d65726b6c6500000000000000000060208201525b6040516102169190611b68565b610232610dbb565b61020c61037d366004611a51565b610dd8565b61020c610390366004611982565b5060075490565b600854600954600a5460408051938452602084019290925290820152606001610216565b6102326103c9366004611b9b565b610e73565b6102326103dc36600461199f565b610ed0565b61020c6103ef366004611982565b610f0d565b61020c60055481565b61047461040b366004611982565b6040805160608082018352600080835260208084018290529284018190526001600160a01b039490941684526002825292829020825193840183525460ff8116151584526001600160781b036101008204811692850192909252600160801b9004169082015290565b604080518251151581526020808401516001600160781b03908116918301919091529282015190921690820152606001610216565b6102326104b7366004611a51565b61105e565b61035a61107b565b6102326104d2366004611982565b611109565b6003546102df906001600160a01b031681565b600261020c565b6104f961117f565b6001600160a01b0381166105545760405162461bcd60e51b815260206004820152601f60248201527f41646a75737461626c653a20746f6b656e20697320616464726573732830290060448201526064015b60405180910390fd5b600380546001600160a01b0319166001600160a01b0383169081179091556040517fefc1fd16ea80a922086ee4e995739d59b025c1bcea6d1f67855747480c83214b90600090a250565b6105a661117f565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106119190611bc7565b90506106396106286001546001600160a01b031690565b6001600160a01b03841690836111d9565b816001600160a01b03167ff4a44a7f605c4971a27bcecb448108e6328b7fad34fab5bff4f69377294b826d8260405161067491815260200190565b60405180910390a25050565b61068861117f565b60048190556040518181527fac657d3615bd618ee537848e2b33acd2a9df67d4776485ab6922b0421d324d29906020015b60405180910390a150565b60408051602081018790526bffffffffffffffffffffffff19606087901b169181019190915260548101849052607401604051602081830303815290604052805190602001208282610717838383611230565b6002600054036107695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161054b565b600260008181556001600160a01b0389168152602091909152604090205460ff16610798576107988787611277565b6107b3876107a589610f0d565b6001600160781b031661146c565b50506001600055505050505050565b6107ca61117f565b60006107de6001546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610828576040519150601f19603f3d011682016040523d82523d6000602084013e61082d565b606091505b50509050806108715760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161054b565b6040518281527f3b381fdfc0e2729a70e8b26ae2397e9014f703a8235b557f5581c4ed47280fd29060200160405180910390a15050565b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526074016040516020818303038152906040528051906020012082826108fb838383611230565b6109058787611277565b5050505050505050565b61091761117f565b61092160006115c6565b565b61092b61117f565b6001600160a01b0382166000908152600260209081526040918290208251606081018452905460ff811615158083526001600160781b036101008304811694840194909452600160801b909104909216928101929092526109ce5760405162461bcd60e51b815260206004820181905260248201527f6d75737420696e697469616c697a65206265666f72652061646a757374696e67604482015260640161054b565b60008083136109e5576109e083611bf6565b6109e7565b825b90506001600160781b038110610a3f5760405162461bcd60e51b815260206004820152601860248201527f61646a7573746d656e74203e206d61782075696e743132300000000000000000604482015260640161054b565b6000831215610bbf57806004541015610aaa5760405162461bcd60e51b815260206004820152602760248201527f64656372656173652067726561746572207468616e206469737472696275746f6044820152661c881d1bdd185b60ca1b606482015260840161054b565b8082602001516001600160781b03161015610b1e5760405162461bcd60e51b815260206004820152602e60248201527f64656372656173652067726561746572207468616e206469737472696275746960448201526d1bdb949958dbdc99081d1bdd185b60921b606482015260840161054b565b8060046000828254610b309190611c12565b90915550506001600160a01b03841660009081526002602052604090208054829190600190610b6e90849061010090046001600160781b0316611c25565b92506101000a8154816001600160781b0302191690836001600160781b03160217905550610bba610ba76001546001600160a01b031690565b6003546001600160a01b031690836111d9565b610c34565b8060046000828254610bd19190611c4c565b90915550506001600160a01b03841660009081526002602052604090208054829190600190610c0f90849061010090046001600160781b0316611c5f565b92506101000a8154816001600160781b0302191690836001600160781b031602179055505b836001600160a01b03167fd81661cef4e40e0f1f97384c033d606e4d6b570554fc3524568d8f9fc84c838884604051610c6f91815260200190565b60405180910390a250505050565b610c8561117f565b610c8e81611618565b50565b60007f0000000000000000000000000000000000000000000000000000000000000000600754600554600454610cc79190611c12565b610cd19190611c7f565b610cdb9190611c9e565b905090565b6007546001600160a01b03821660009081526002602052604081205490917f000000000000000000000000000000000000000000000000000000000000000091610d41906001600160781b03600160801b8204811691610100900416611c25565b6001600160781b0316610d549190611c7f565b610d5e9190611c9e565b92915050565b610d6c61117f565b6006610d788282611d48565b506006604051610d889190611e08565b604051908190038120907fd70c1392a974224e639e7a9607dcb2c766826aecfe2dc356f442ce0488b01e1f90600090a250565b610dc361117f565b4760006107de6001546001600160a01b031690565b60006009548211610deb57506000610d5e565b600a548210610e1b57507f0000000000000000000000000000000000000000000000000000000000000000610d5e565b600854600a54610e2b9190611c12565b600854610e389084611c12565b610e62907f0000000000000000000000000000000000000000000000000000000000000000611c7f565b610e6c9190611c9e565b9392505050565b610e7b61117f565b60088390556009829055600a81905560408051848152602081018490529081018290527f34ebbb9e095e6c8737f99dd9923fb97ec1ca3d25cb39225975a934dd8d7a31b49060600160405180910390a1505050565b610ed861117f565b60078190556040518181527f6c339c0bee516a4df5d7074ba7a974856d609f83666e915aa4a0f90e06989dc5906020016106b9565b6001600160a01b03811660009081526002602052604081205460ff16610f805760405162461bcd60e51b815260206004820152602260248201527f4469737472696275746f723a20636c61696d206e6f7420696e697469616c697a604482015261195960f21b606482015260840161054b565b6001600160a01b03821660009081526002602090815260408083208151606081018352905460ff8116151582526001600160781b036101008204811694830194909452600160801b900490921690820152907f0000000000000000000000000000000000000000000000000000000000000000610ffd8542610dd8565b83602001516001600160781b03166110159190611c7f565b61101f9190611c9e565b90508082604001516001600160781b0316101561105357604082015161104e906001600160781b031682611c12565b611056565b60005b949350505050565b61106661117f565b6106396106286001546001600160a01b031690565b6006805461108890611cc0565b80601f01602080910402602001604051908101604052809291908181526020018280546110b490611cc0565b80156111015780601f106110d657610100808354040283529160200191611101565b820191906000526020600020905b8154815290600101906020018083116110e457829003601f168201915b505050505081565b61111161117f565b6001600160a01b0381166111765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054b565b610c8e816115c6565b6001546001600160a01b031633146109215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261122b90849061164d565b505050565b61123b83838361171f565b61122b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161054b565b6001600160781b038111156112de5760405162461bcd60e51b815260206004820152602760248201527f4469737472696275746f723a20616d6f756e74203e20747970652875696e743160448201526606460525cdac2f60cb1b606482015260840161054b565b6000811161132e5760405162461bcd60e51b815260206004820152601860248201527f4469737472696275746f723a20616d6f756e74203d3d20300000000000000000604482015260640161054b565b6001600160a01b03821660009081526002602052604090205460ff16156113975760405162461bcd60e51b815260206004820181905260248201527f4469737472696275746f723a20616c726561647920696e697469616c697a6564604482015260640161054b565b60408051606081018252600181526001600160781b03838116602080840191825260008486018181526001600160a01b038916808352600284529187902095518654945191516fffffffffffffffffffffffffffffffff199095169015156fffffffffffffffffffffffffffffff0019161761010091861691909102176effffffffffffffffffffffffffffff60801b1916600160801b939094169290920292909217909255915183815290917fdb598eb8e0a3d3d5c2e02e4cab1ee8b65bb20e48fc7b42f4c76272de4cdd24349101610674565b806001600160781b0381166114db5760405162461bcd60e51b815260206004820152602f60248201527f4469737472696275746f723a206e6f206d6f726520746f6b656e7320636c616960448201526e6d61626c65207269676874206e6f7760881b606482015260840161054b565b6001600160a01b03831660009081526002602052604090208054829190601090611516908490600160801b90046001600160781b0316611c5f565b92506101000a8154816001600160781b0302191690836001600160781b03160217905550806001600160781b0316600560008282546115559190611c4c565b909155505060035461157a906001600160a01b0316846001600160781b0384166111d9565b6040516001600160781b03821681526001600160a01b038416907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a2505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b8190556040518181527f914960aef5e033ce5cae8a7992d4b7a6f0f9741227b66acb67c605b7019f8a46906020016106b9565b60006116a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117629092919063ffffffff16565b80519091501561122b57808060200190518101906116c09190611e7e565b61122b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161054b565b600061105683838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150879050611771565b60606110568484600085611787565b60008261177e85846118b8565b14949350505050565b6060824710156117e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161054b565b6001600160a01b0385163b61183f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161054b565b600080866001600160a01b0316858760405161185b9190611ea0565b60006040518083038185875af1925050503d8060008114611898576040519150601f19603f3d011682016040523d82523d6000602084013e61189d565b606091505b50915091506118ad828286611905565b979650505050505050565b600081815b84518110156118fd576118e9828683815181106118dc576118dc611ebc565b602002602001015161193e565b9150806118f581611ed2565b9150506118bd565b509392505050565b60608315611914575081610e6c565b8251156119245782518084602001fd5b8160405162461bcd60e51b815260040161054b9190611b68565b600081831061195a576000828152602084905260409020610e6c565b6000838152602083905260409020610e6c565b6001600160a01b0381168114610c8e57600080fd5b60006020828403121561199457600080fd5b8135610e6c8161196d565b6000602082840312156119b157600080fd5b5035919050565b6000806000806000608086880312156119d057600080fd5b8535945060208601356119e28161196d565b935060408601359250606086013567ffffffffffffffff80821115611a0657600080fd5b818801915088601f830112611a1a57600080fd5b813581811115611a2957600080fd5b8960208260051b8501011115611a3e57600080fd5b9699959850939650602001949392505050565b60008060408385031215611a6457600080fd5b8235611a6f8161196d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611aa557600080fd5b813567ffffffffffffffff80821115611abd57600080fd5b818401915084601f830112611ad157600080fd5b813581811115611ae357611ae3611a7d565b604051601f8201601f19908116603f01168101908382118183101715611b0b57611b0b611a7d565b81604052828152876020848701011115611b2457600080fd5b826020860160208301376000928101602001929092525095945050505050565b60005b83811015611b5f578181015183820152602001611b47565b50506000910152565b6020815260008251806020840152611b87816040850160208701611b44565b601f01601f19169190910160400192915050565b600080600060608486031215611bb057600080fd5b505081359360208301359350604090920135919050565b600060208284031215611bd957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b8201611c0b57611c0b611be0565b5060000390565b81810381811115610d5e57610d5e611be0565b6001600160781b03828116828216039080821115611c4557611c45611be0565b5092915050565b80820180821115610d5e57610d5e611be0565b6001600160781b03818116838216019080821115611c4557611c45611be0565b6000816000190483118215151615611c9957611c99611be0565b500290565b600082611cbb57634e487b7160e01b600052601260045260246000fd5b500490565b600181811c90821680611cd457607f821691505b602082108103611cf457634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561122b57600081815260208120601f850160051c81016020861015611d215750805b601f850160051c820191505b81811015611d4057828155600101611d2d565b505050505050565b815167ffffffffffffffff811115611d6257611d62611a7d565b611d7681611d708454611cc0565b84611cfa565b602080601f831160018114611dab5760008415611d935750858301515b600019600386901b1c1916600185901b178555611d40565b600085815260208120601f198616915b82811015611dda57888601518255948401946001909101908401611dbb565b5085821015611df85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354611e1681611cc0565b60018281168015611e2e5760018114611e4357611e72565b60ff1984168752821515830287019450611e72565b8760005260208060002060005b85811015611e695781548a820152908401908201611e50565b50505082870194505b50929695505050505050565b600060208284031215611e9057600080fd5b81518015158114610e6c57600080fd5b60008251611eb2818460208701611b44565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201611ee457611ee4611be0565b506001019056fea2646970667358221220c81ee930bd353c982550e550dbdb3b23292ba46c35ca64752f82d29d9ffd600064736f6c63430008100033000000000000000000000000fe3b138879d6d0555be4132dcfe6e7424e257a2e0000000000000000000000000000000000000000001333fd5df573e5b5ea000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000063a792800000000000000000000000000000000000000000000000000000000063a7928000000000000000000000000000000000000000000000000000000000676b4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6578616d706c652e636f6d00000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c80639b642de11161010f578063e12f3a61116100a2578063eac989f811610071578063eac989f8146104bc578063f2fde38b146104c4578063fc0c546a146104d7578063ffa1ad74146104ea57600080fd5b8063e12f3a61146103e1578063e834a834146103f4578063e85858d9146103fd578063e90a182f146104a957600080fd5b8063bb22dccb116100de578063bb22dccb14610382578063bf38b5c814610397578063c32b1326146103bb578063c9557255146103ce57600080fd5b80639b642de114610312578063a3f4df7e14610325578063ab803a7614610367578063b6d8f79f1461036f57600080fd5b806349590657116101875780637cb64759116101565780637cb64759146102bf5780638da5cb5b146102d25780639a0e7d66146102f75780639ab24eb0146102ff57600080fd5b80634959065714610289578063684de1f514610291578063715018a6146102a457806375aa9bc6146102ac57600080fd5b80631f8d1d50116101c35780631f8d1d50146102475780632ddbd13a1461025a5780632e7ba6ef146102635780633cf3a0251461027657600080fd5b80630f56b96c146101ea578063144fa6d71461021f5780631be1956014610234575b600080fd5b7f0000000000000000000000000000000000000000000000000de0b6b3a76400005b6040519081526020015b60405180910390f35b61023261022d366004611982565b6104f1565b005b610232610242366004611982565b61059e565b61023261025536600461199f565b610680565b61020c60045481565b6102326102713660046119b8565b6106c4565b61023261028436600461199f565b6107c2565b600b5461020c565b61023261029f3660046119b8565b6108a8565b61023261090f565b6102326102ba366004611a51565b610923565b6102326102cd36600461199f565b610c7d565b6001546001600160a01b03165b6040516001600160a01b039091168152602001610216565b61020c610c91565b61020c61030d366004611982565b610ce0565b610232610320366004611a93565b610d64565b60408051808201909152601781527f436f6e74696e756f757356657374696e674d65726b6c6500000000000000000060208201525b6040516102169190611b68565b610232610dbb565b61020c61037d366004611a51565b610dd8565b61020c610390366004611982565b5060075490565b600854600954600a5460408051938452602084019290925290820152606001610216565b6102326103c9366004611b9b565b610e73565b6102326103dc36600461199f565b610ed0565b61020c6103ef366004611982565b610f0d565b61020c60055481565b61047461040b366004611982565b6040805160608082018352600080835260208084018290529284018190526001600160a01b039490941684526002825292829020825193840183525460ff8116151584526001600160781b036101008204811692850192909252600160801b9004169082015290565b604080518251151581526020808401516001600160781b03908116918301919091529282015190921690820152606001610216565b6102326104b7366004611a51565b61105e565b61035a61107b565b6102326104d2366004611982565b611109565b6003546102df906001600160a01b031681565b600261020c565b6104f961117f565b6001600160a01b0381166105545760405162461bcd60e51b815260206004820152601f60248201527f41646a75737461626c653a20746f6b656e20697320616464726573732830290060448201526064015b60405180910390fd5b600380546001600160a01b0319166001600160a01b0383169081179091556040517fefc1fd16ea80a922086ee4e995739d59b025c1bcea6d1f67855747480c83214b90600090a250565b6105a661117f565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106119190611bc7565b90506106396106286001546001600160a01b031690565b6001600160a01b03841690836111d9565b816001600160a01b03167ff4a44a7f605c4971a27bcecb448108e6328b7fad34fab5bff4f69377294b826d8260405161067491815260200190565b60405180910390a25050565b61068861117f565b60048190556040518181527fac657d3615bd618ee537848e2b33acd2a9df67d4776485ab6922b0421d324d29906020015b60405180910390a150565b60408051602081018790526bffffffffffffffffffffffff19606087901b169181019190915260548101849052607401604051602081830303815290604052805190602001208282610717838383611230565b6002600054036107695760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161054b565b600260008181556001600160a01b0389168152602091909152604090205460ff16610798576107988787611277565b6107b3876107a589610f0d565b6001600160781b031661146c565b50506001600055505050505050565b6107ca61117f565b60006107de6001546001600160a01b031690565b6001600160a01b03168260405160006040518083038185875af1925050503d8060008114610828576040519150601f19603f3d011682016040523d82523d6000602084013e61082d565b606091505b50509050806108715760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161054b565b6040518281527f3b381fdfc0e2729a70e8b26ae2397e9014f703a8235b557f5581c4ed47280fd29060200160405180910390a15050565b60408051602081018790526bffffffffffffffffffffffff19606087901b1691810191909152605481018490526074016040516020818303038152906040528051906020012082826108fb838383611230565b6109058787611277565b5050505050505050565b61091761117f565b61092160006115c6565b565b61092b61117f565b6001600160a01b0382166000908152600260209081526040918290208251606081018452905460ff811615158083526001600160781b036101008304811694840194909452600160801b909104909216928101929092526109ce5760405162461bcd60e51b815260206004820181905260248201527f6d75737420696e697469616c697a65206265666f72652061646a757374696e67604482015260640161054b565b60008083136109e5576109e083611bf6565b6109e7565b825b90506001600160781b038110610a3f5760405162461bcd60e51b815260206004820152601860248201527f61646a7573746d656e74203e206d61782075696e743132300000000000000000604482015260640161054b565b6000831215610bbf57806004541015610aaa5760405162461bcd60e51b815260206004820152602760248201527f64656372656173652067726561746572207468616e206469737472696275746f6044820152661c881d1bdd185b60ca1b606482015260840161054b565b8082602001516001600160781b03161015610b1e5760405162461bcd60e51b815260206004820152602e60248201527f64656372656173652067726561746572207468616e206469737472696275746960448201526d1bdb949958dbdc99081d1bdd185b60921b606482015260840161054b565b8060046000828254610b309190611c12565b90915550506001600160a01b03841660009081526002602052604090208054829190600190610b6e90849061010090046001600160781b0316611c25565b92506101000a8154816001600160781b0302191690836001600160781b03160217905550610bba610ba76001546001600160a01b031690565b6003546001600160a01b031690836111d9565b610c34565b8060046000828254610bd19190611c4c565b90915550506001600160a01b03841660009081526002602052604090208054829190600190610c0f90849061010090046001600160781b0316611c5f565b92506101000a8154816001600160781b0302191690836001600160781b031602179055505b836001600160a01b03167fd81661cef4e40e0f1f97384c033d606e4d6b570554fc3524568d8f9fc84c838884604051610c6f91815260200190565b60405180910390a250505050565b610c8561117f565b610c8e81611618565b50565b60007f0000000000000000000000000000000000000000000000000de0b6b3a7640000600754600554600454610cc79190611c12565b610cd19190611c7f565b610cdb9190611c9e565b905090565b6007546001600160a01b03821660009081526002602052604081205490917f0000000000000000000000000000000000000000000000000de0b6b3a764000091610d41906001600160781b03600160801b8204811691610100900416611c25565b6001600160781b0316610d549190611c7f565b610d5e9190611c9e565b92915050565b610d6c61117f565b6006610d788282611d48565b506006604051610d889190611e08565b604051908190038120907fd70c1392a974224e639e7a9607dcb2c766826aecfe2dc356f442ce0488b01e1f90600090a250565b610dc361117f565b4760006107de6001546001600160a01b031690565b60006009548211610deb57506000610d5e565b600a548210610e1b57507f0000000000000000000000000000000000000000000000000de0b6b3a7640000610d5e565b600854600a54610e2b9190611c12565b600854610e389084611c12565b610e62907f0000000000000000000000000000000000000000000000000de0b6b3a7640000611c7f565b610e6c9190611c9e565b9392505050565b610e7b61117f565b60088390556009829055600a81905560408051848152602081018490529081018290527f34ebbb9e095e6c8737f99dd9923fb97ec1ca3d25cb39225975a934dd8d7a31b49060600160405180910390a1505050565b610ed861117f565b60078190556040518181527f6c339c0bee516a4df5d7074ba7a974856d609f83666e915aa4a0f90e06989dc5906020016106b9565b6001600160a01b03811660009081526002602052604081205460ff16610f805760405162461bcd60e51b815260206004820152602260248201527f4469737472696275746f723a20636c61696d206e6f7420696e697469616c697a604482015261195960f21b606482015260840161054b565b6001600160a01b03821660009081526002602090815260408083208151606081018352905460ff8116151582526001600160781b036101008204811694830194909452600160801b900490921690820152907f0000000000000000000000000000000000000000000000000de0b6b3a7640000610ffd8542610dd8565b83602001516001600160781b03166110159190611c7f565b61101f9190611c9e565b90508082604001516001600160781b0316101561105357604082015161104e906001600160781b031682611c12565b611056565b60005b949350505050565b61106661117f565b6106396106286001546001600160a01b031690565b6006805461108890611cc0565b80601f01602080910402602001604051908101604052809291908181526020018280546110b490611cc0565b80156111015780601f106110d657610100808354040283529160200191611101565b820191906000526020600020905b8154815290600101906020018083116110e457829003601f168201915b505050505081565b61111161117f565b6001600160a01b0381166111765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161054b565b610c8e816115c6565b6001546001600160a01b031633146109215760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161054b565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261122b90849061164d565b505050565b61123b83838361171f565b61122b5760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b210383937b7b360991b604482015260640161054b565b6001600160781b038111156112de5760405162461bcd60e51b815260206004820152602760248201527f4469737472696275746f723a20616d6f756e74203e20747970652875696e743160448201526606460525cdac2f60cb1b606482015260840161054b565b6000811161132e5760405162461bcd60e51b815260206004820152601860248201527f4469737472696275746f723a20616d6f756e74203d3d20300000000000000000604482015260640161054b565b6001600160a01b03821660009081526002602052604090205460ff16156113975760405162461bcd60e51b815260206004820181905260248201527f4469737472696275746f723a20616c726561647920696e697469616c697a6564604482015260640161054b565b60408051606081018252600181526001600160781b03838116602080840191825260008486018181526001600160a01b038916808352600284529187902095518654945191516fffffffffffffffffffffffffffffffff199095169015156fffffffffffffffffffffffffffffff0019161761010091861691909102176effffffffffffffffffffffffffffff60801b1916600160801b939094169290920292909217909255915183815290917fdb598eb8e0a3d3d5c2e02e4cab1ee8b65bb20e48fc7b42f4c76272de4cdd24349101610674565b806001600160781b0381166114db5760405162461bcd60e51b815260206004820152602f60248201527f4469737472696275746f723a206e6f206d6f726520746f6b656e7320636c616960448201526e6d61626c65207269676874206e6f7760881b606482015260840161054b565b6001600160a01b03831660009081526002602052604090208054829190601090611516908490600160801b90046001600160781b0316611c5f565b92506101000a8154816001600160781b0302191690836001600160781b03160217905550806001600160781b0316600560008282546115559190611c4c565b909155505060035461157a906001600160a01b0316846001600160781b0384166111d9565b6040516001600160781b03821681526001600160a01b038416907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a2505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b8190556040518181527f914960aef5e033ce5cae8a7992d4b7a6f0f9741227b66acb67c605b7019f8a46906020016106b9565b60006116a2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117629092919063ffffffff16565b80519091501561122b57808060200190518101906116c09190611e7e565b61122b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161054b565b600061105683838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150879050611771565b60606110568484600085611787565b60008261177e85846118b8565b14949350505050565b6060824710156117e85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161054b565b6001600160a01b0385163b61183f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161054b565b600080866001600160a01b0316858760405161185b9190611ea0565b60006040518083038185875af1925050503d8060008114611898576040519150601f19603f3d011682016040523d82523d6000602084013e61189d565b606091505b50915091506118ad828286611905565b979650505050505050565b600081815b84518110156118fd576118e9828683815181106118dc576118dc611ebc565b602002602001015161193e565b9150806118f581611ed2565b9150506118bd565b509392505050565b60608315611914575081610e6c565b8251156119245782518084602001fd5b8160405162461bcd60e51b815260040161054b9190611b68565b600081831061195a576000828152602084905260409020610e6c565b6000838152602083905260409020610e6c565b6001600160a01b0381168114610c8e57600080fd5b60006020828403121561199457600080fd5b8135610e6c8161196d565b6000602082840312156119b157600080fd5b5035919050565b6000806000806000608086880312156119d057600080fd5b8535945060208601356119e28161196d565b935060408601359250606086013567ffffffffffffffff80821115611a0657600080fd5b818801915088601f830112611a1a57600080fd5b813581811115611a2957600080fd5b8960208260051b8501011115611a3e57600080fd5b9699959850939650602001949392505050565b60008060408385031215611a6457600080fd5b8235611a6f8161196d565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215611aa557600080fd5b813567ffffffffffffffff80821115611abd57600080fd5b818401915084601f830112611ad157600080fd5b813581811115611ae357611ae3611a7d565b604051601f8201601f19908116603f01168101908382118183101715611b0b57611b0b611a7d565b81604052828152876020848701011115611b2457600080fd5b826020860160208301376000928101602001929092525095945050505050565b60005b83811015611b5f578181015183820152602001611b47565b50506000910152565b6020815260008251806020840152611b87816040850160208701611b44565b601f01601f19169190910160400192915050565b600080600060608486031215611bb057600080fd5b505081359360208301359350604090920135919050565b600060208284031215611bd957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600160ff1b8201611c0b57611c0b611be0565b5060000390565b81810381811115610d5e57610d5e611be0565b6001600160781b03828116828216039080821115611c4557611c45611be0565b5092915050565b80820180821115610d5e57610d5e611be0565b6001600160781b03818116838216019080821115611c4557611c45611be0565b6000816000190483118215151615611c9957611c99611be0565b500290565b600082611cbb57634e487b7160e01b600052601260045260246000fd5b500490565b600181811c90821680611cd457607f821691505b602082108103611cf457634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561122b57600081815260208120601f850160051c81016020861015611d215750805b601f850160051c820191505b81811015611d4057828155600101611d2d565b505050505050565b815167ffffffffffffffff811115611d6257611d62611a7d565b611d7681611d708454611cc0565b84611cfa565b602080601f831160018114611dab5760008415611d935750858301515b600019600386901b1c1916600185901b178555611d40565b600085815260208120601f198616915b82811015611dda57888601518255948401946001909101908401611dbb565b5085821015611df85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354611e1681611cc0565b60018281168015611e2e5760018114611e4357611e72565b60ff1984168752821515830287019450611e72565b8760005260208060002060005b85811015611e695781548a820152908401908201611e50565b50505082870194505b50929695505050505050565b600060208284031215611e9057600080fd5b81518015158114610e6c57600080fd5b60008251611eb2818460208701611b44565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b600060018201611ee457611ee4611be0565b506001019056fea2646970667358221220c81ee930bd353c982550e550dbdb3b23292ba46c35ca64752f82d29d9ffd600064736f6c63430008100033

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

000000000000000000000000fe3b138879d6d0555be4132dcfe6e7424e257a2e0000000000000000000000000000000000000000001333fd5df573e5b5ea000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000001bc16d674ec800000000000000000000000000000000000000000000000000000000000063a792800000000000000000000000000000000000000000000000000000000063a7928000000000000000000000000000000000000000000000000000000000676b4b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001368747470733a2f2f6578616d706c652e636f6d00000000000000000000000000

-----Decoded View---------------
Arg [0] : _token (address): 0xfE3B138879D6d0555bE4132DcfE6E7424E257A2E
Arg [1] : _total (uint256): 23215105060000000000000000
Arg [2] : _uri (string): https://example.com
Arg [3] : _voteFactor (uint256): 2000000000000000000
Arg [4] : _start (uint256): 1671926400
Arg [5] : _cliff (uint256): 1671926400
Arg [6] : _end (uint256): 1735084800
Arg [7] : _merkleRoot (bytes32): 0x0000000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000fe3b138879d6d0555be4132dcfe6e7424e257a2e
Arg [1] : 0000000000000000000000000000000000000000001333fd5df573e5b5ea0000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [4] : 0000000000000000000000000000000000000000000000000000000063a79280
Arg [5] : 0000000000000000000000000000000000000000000000000000000063a79280
Arg [6] : 00000000000000000000000000000000000000000000000000000000676b4b00
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000013
Arg [9] : 68747470733a2f2f6578616d706c652e636f6d00000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

Validator Index Block Amount
View All Withdrawals

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

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