ETH Price: $3,659.79 (+1.64%)

Contract

0xD46f00d9F1f6d2e65D9572F9ce283ba925FE591a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim211885052024-11-14 21:05:3515 days ago1731618335IN
0xD46f00d9...925FE591a
0 ETH0.0018539732.87720526
Claim211884622024-11-14 20:56:5915 days ago1731617819IN
0xD46f00d9...925FE591a
0 ETH0.0028403631.35374977
Claim211514122024-11-09 16:52:4720 days ago1731171167IN
0xD46f00d9...925FE591a
0 ETH0.0010681811.23889838
Claim211305512024-11-06 18:58:3523 days ago1730919515IN
0xD46f00d9...925FE591a
0 ETH0.0009062516.06867432
Claim211164392024-11-04 19:41:1125 days ago1730749271IN
0xD46f00d9...925FE591a
0 ETH0.000443575.82432543
Claim210874012024-10-31 18:25:2329 days ago1730399123IN
0xD46f00d9...925FE591a
0 ETH0.0007677613
Claim210873882024-10-31 18:22:4729 days ago1730398967IN
0xD46f00d9...925FE591a
0 ETH0.0007706412.66791904
Claim208793202024-10-02 17:30:2358 days ago1727890223IN
0xD46f00d9...925FE591a
0 ETH0.0026798245.37534968
Claim208647242024-09-30 16:39:5960 days ago1727714399IN
0xD46f00d9...925FE591a
0 ETH0.0013583523
Claim208647142024-09-30 16:37:5960 days ago1727714279IN
0xD46f00d9...925FE591a
0 ETH0.0014120723.21189034
Claim206720032024-09-03 19:00:1187 days ago1725390011IN
0xD46f00d9...925FE591a
0 ETH0.000149911.96843917
Claim206717882024-09-03 18:17:1187 days ago1725387431IN
0xD46f00d9...925FE591a
0 ETH0.000145962.47192369
Claim206717792024-09-03 18:15:2387 days ago1725387323IN
0xD46f00d9...925FE591a
0 ETH0.000157562.66798514
Claim206440852024-08-30 21:29:1191 days ago1725053351IN
0xD46f00d9...925FE591a
0 ETH0.000094491.6
Claim206440782024-08-30 21:27:4791 days ago1725053267IN
0xD46f00d9...925FE591a
0 ETH0.00009611.57974263
Claim204284162024-07-31 18:47:11121 days ago1722451631IN
0xD46f00d9...925FE591a
0 ETH0.0010833314.22461689
Claim204140432024-07-29 18:33:47123 days ago1722278027IN
0xD46f00d9...925FE591a
0 ETH0.000354356
Claim204139982024-07-29 18:24:47123 days ago1722277487IN
0xD46f00d9...925FE591a
0 ETH0.000298454.90611819
Claim202134912024-07-01 18:34:35151 days ago1719858875IN
0xD46f00d9...925FE591a
0 ETH0.0010102513.26502382
Claim201937652024-06-29 0:28:23154 days ago1719620903IN
0xD46f00d9...925FE591a
0 ETH0.000177173
Claim201937412024-06-29 0:23:35154 days ago1719620615IN
0xD46f00d9...925FE591a
0 ETH0.000128592.11380508
Claim200940802024-06-15 1:59:23168 days ago1718416763IN
0xD46f00d9...925FE591a
0 ETH0.000206873.40259363
Claim199923292024-05-31 20:54:35182 days ago1717188875IN
0xD46f00d9...925FE591a
0 ETH0.000578657.59795679
Claim199845352024-05-30 18:46:35183 days ago1717094795IN
0xD46f00d9...925FE591a
0 ETH0.0010190917.25556417
Claim199844322024-05-30 18:25:59183 days ago1717093559IN
0xD46f00d9...925FE591a
0 ETH0.0012992521.3573745
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:
MerkleVesting

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : MerkleVesting.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.10;

import "./interfaces/IMerkleVesting.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Multicall.sol";

contract MerkleVesting is IMerkleVesting, Multicall, Ownable {
    address public immutable token;
    bytes32 public lastEndingCohort;

    mapping(bytes32 => Cohort) internal cohorts;

    constructor(address token_) {
        token = token_;
    }

    function getCohort(bytes32 cohortId) external view returns (CohortData memory) {
        return cohorts[cohortId].data;
    }

    function getClaimableAmount(
        bytes32 cohortId,
        uint256 index,
        address account,
        uint256 fullAmount
    ) public view returns (uint256) {
        Cohort storage cohort = cohorts[cohortId];
        uint256 claimedSoFar = cohort.claims[account];
        uint256 vestingEnd = cohort.data.vestingEnd;
        uint256 vestingStart = vestingEnd - cohort.data.vestingPeriod;
        uint256 cliff = vestingStart + cohort.data.cliffPeriod;
        if (isDisabled(cohortId, index)) revert NotInVesting(cohortId, account);
        if (block.timestamp < cliff) revert CliffNotReached(cliff, block.timestamp);
        else if (block.timestamp < vestingEnd)
            return (fullAmount * (block.timestamp - vestingStart)) / cohort.data.vestingPeriod - claimedSoFar;
        else return fullAmount - claimedSoFar;
    }

    function getClaimed(bytes32 cohortId, address account) public view returns (uint256) {
        return cohorts[cohortId].claims[account];
    }

    function isDisabled(bytes32 cohortId, uint256 index) public view returns (bool) {
        uint256 wordIndex = index / 256;
        uint256 bitIndex = index % 256;
        uint256 word = cohorts[cohortId].disabledState[wordIndex];
        uint256 mask = (1 << bitIndex);
        return word & mask == mask;
    }

    function setDisabled(bytes32 cohortId, uint256 index) external onlyOwner {
        uint256 wordIndex = index / 256;
        uint256 bitIndex = index % 256;
        cohorts[cohortId].disabledState[wordIndex] = cohorts[cohortId].disabledState[wordIndex] | (1 << bitIndex);
    }

    function addCohort(
        bytes32 merkleRoot,
        uint256 distributionDuration,
        uint64 vestingPeriod,
        uint64 cliffPeriod
    ) external onlyOwner {
        if (
            merkleRoot == bytes32(0) ||
            distributionDuration == 0 ||
            vestingPeriod == 0 ||
            distributionDuration < vestingPeriod ||
            distributionDuration < cliffPeriod ||
            vestingPeriod < cliffPeriod
        ) revert InvalidParameters();
        if (cohorts[merkleRoot].data.merkleRoot != bytes32(0)) revert MerkleRootCollision();

        uint256 distributionEnd = block.timestamp + distributionDuration;
        if (distributionEnd > cohorts[lastEndingCohort].data.distributionEnd) lastEndingCohort = merkleRoot;

        cohorts[merkleRoot].data.merkleRoot = merkleRoot;
        cohorts[merkleRoot].data.distributionEnd = uint64(distributionEnd);
        cohorts[merkleRoot].data.vestingEnd = uint64(block.timestamp + vestingPeriod);
        cohorts[merkleRoot].data.vestingPeriod = vestingPeriod;
        cohorts[merkleRoot].data.cliffPeriod = cliffPeriod;

        emit CohortAdded(merkleRoot);
    }

    function claim(
        bytes32 cohortId,
        uint256 index,
        address account,
        uint256 amount,
        bytes32[] calldata merkleProof
    ) external {
        if (cohorts[cohortId].data.merkleRoot == bytes32(0)) revert CohortDoesNotExist();
        Cohort storage cohort = cohorts[cohortId];
        uint256 distributionEndLocal = cohort.data.distributionEnd;
        if (block.timestamp > distributionEndLocal) revert DistributionEnded(block.timestamp, distributionEndLocal);

        // Verify the merkle proof.
        bytes32 node = keccak256(abi.encodePacked(index, account, amount));
        if (!MerkleProof.verify(merkleProof, cohort.data.merkleRoot, node)) revert InvalidProof();

        // Calculate the claimable amount and update the claimed amount on storage.
        uint256 claimableAmount = getClaimableAmount(cohortId, index, account, amount);
        cohort.claims[account] += claimableAmount;

        // Send the token.
        if (!IERC20(token).transfer(account, claimableAmount)) revert TransferFailed(token, address(this), account);

        emit Claimed(cohortId, account, claimableAmount);
    }

    function withdraw(address recipient) external onlyOwner {
        uint256 distributionEndLocal = cohorts[lastEndingCohort].data.distributionEnd;
        if (block.timestamp <= distributionEndLocal) revert DistributionOngoing(block.timestamp, distributionEndLocal);
        uint256 balance = IERC20(token).balanceOf(address(this));
        if (balance == 0) revert AlreadyWithdrawn();
        if (!IERC20(token).transfer(recipient, balance)) revert TransferFailed(token, address(this), recipient);
        emit Withdrawn(recipient, balance);
    }
}

File 2 of 8 : IMerkleVesting.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

/// @title Allows anyone to claim a token if they exist in a merkle root, but only over time.
interface IMerkleVesting {
    /// @notice The struct holding a specific cohort's data and the individual claim statuses.
    /// @param data The struct holding a specific cohort's data.
    /// @param claims Stores the amount of claimed funds per address.
    /// @param disabledState A packed array of booleans. If true, the individual user cannot claim anymore.
    struct Cohort {
        CohortData data;
        mapping(address => uint256) claims;
        mapping(uint256 => uint256) disabledState;
    }

    /// @notice The struct holding a specific cohort's data.
    /// @param merkleRoot The merkle root of the merkle tree containing account balances available to claim.
    /// @param distributionEnd The unix timestamp that marks the end of the token distribution.
    /// @param vestingEnd The unix timestamp that marks the end of the vesting period.
    /// @param vestingPeriod The length of the vesting period in seconds.
    /// @param cliffPeriod The length of the cliff period in seconds.
    struct CohortData {
        bytes32 merkleRoot;
        uint64 distributionEnd;
        uint64 vestingEnd;
        uint64 vestingPeriod;
        uint64 cliffPeriod;
    }

    /// @notice Returns the address of the token distributed by this contract.
    function token() external view returns (address);

    /// @notice Returns the id/Merkle root of the cohort ending at the latest.
    function lastEndingCohort() external view returns (bytes32);

    /// @notice Returns the parameters of a specific cohort.
    /// @param cohortId The Merkle root of the cohort.
    function getCohort(bytes32 cohortId) external view returns (CohortData memory);

    /// @notice Returns the amount of funds an account can claim at the moment.
    /// @param cohortId The Merkle root of the cohort.
    /// @param index A value from the generated input list.
    /// @param account The address of the account to query.
    /// @param fullAmount The full amount of funds the account can claim.
    function getClaimableAmount(
        bytes32 cohortId,
        uint256 index,
        address account,
        uint256 fullAmount
    ) external view returns (uint256);

    /// @notice Returns the amount of funds an account has claimed.
    /// @param cohortId The Merkle root of the cohort.
    /// @param account The address of the account to query.
    function getClaimed(bytes32 cohortId, address account) external view returns (uint256);

    /// @notice Check if the address in a cohort at the index is excluded from the vesting.
    /// @param cohortId The Merkle root of the cohort.
    /// @param index A value from the generated input list.
    function isDisabled(bytes32 cohortId, uint256 index) external view returns (bool);

    /// @notice Exclude the address in a cohort at the index from the vesting.
    /// @param cohortId The Merkle root of the cohort.
    /// @param index A value from the generated input list.
    function setDisabled(bytes32 cohortId, uint256 index) external;

    /// @notice Allows the owner to add a new cohort.
    /// @param merkleRoot The Merkle root of the cohort. It will also serve as the cohort's ID.
    /// @param distributionDuration The length of the token distribtion period in seconds.
    /// @param vestingPeriod The length of the vesting period of the tokens in seconds.
    /// @param cliffPeriod The length of the cliff period in seconds.
    function addCohort(
        bytes32 merkleRoot,
        uint256 distributionDuration,
        uint64 vestingPeriod,
        uint64 cliffPeriod
    ) external;

    /// @notice Claim the given amount of the token to the given address. Reverts if the inputs are invalid.
    /// @param cohortId The Merkle root of the cohort.
    /// @param index A value from the generated input list.
    /// @param account A value from the generated input list.
    /// @param amount A value from the generated input list (so the full amount).
    /// @param merkleProof A an array of values from the generated input list.
    function claim(
        bytes32 cohortId,
        uint256 index,
        address account,
        uint256 amount,
        bytes32[] calldata merkleProof
    ) external;

    /// @notice Allows the owner to reclaim the tokens after the distribution has ended.
    /// @param recipient The address receiving the tokens.
    function withdraw(address recipient) external;

    /// @notice This event is triggered whenever a call to #addCohort succeeds.
    /// @param cohortId The Merkle root of the cohort.
    event CohortAdded(bytes32 cohortId);

    /// @notice This event is triggered whenever a call to #claim succeeds.
    /// @param cohortId The Merkle root of the cohort.
    /// @param account The address that claimed the tokens.
    /// @param amount The amount of tokens the address received.
    event Claimed(bytes32 cohortId, address account, uint256 amount);

    /// @notice This event is triggered whenever a call to #withdraw succeeds.
    /// @param account The address that received the tokens.
    /// @param amount The amount of tokens the address received.
    event Withdrawn(address account, uint256 amount);

    /// @notice Error thrown when there's nothing to withdraw.
    error AlreadyWithdrawn();

    /// @notice Error thrown when a cohort with the provided id does not exist.
    error CohortDoesNotExist();

    /// @notice Error thrown when the distribution period ended.
    /// @param current The current timestamp.
    /// @param end The time when the distribution ended.
    error DistributionEnded(uint256 current, uint256 end);

    /// @notice Error thrown when the cliff period is not over yet.
    /// @param cliff The time when the cliff period ends.
    /// @param timestamp The current timestamp.
    error CliffNotReached(uint256 cliff, uint256 timestamp);

    /// @notice Error thrown when the distribution period did not end yet.
    /// @param current The current timestamp.
    /// @param end The time when the distribution ends.
    error DistributionOngoing(uint256 current, uint256 end);

    /// @notice Error thrown when the Merkle proof is invalid.
    error InvalidProof();

    /// @notice Error thrown when a transfer failed.
    /// @param token The address of token attempted to be transferred.
    /// @param from The sender of the token.
    /// @param to The recipient of the token.
    error TransferFailed(address token, address from, address to);

    /// @notice Error thrown when a function receives invalid parameters.
    error InvalidParameters();

    /// @notice Error thrown when a cohort with an already existing merkle tree is attempted to be added.
    error MerkleRootCollision();

    /// @notice Error thrown when the input address has been excluded from the vesting.
    /// @param cohortId The Merkle root of the cohort.
    /// @param account The address that does not satisfy the requirements.
    error NotInVesting(bytes32 cohortId, address account);
}

File 3 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees 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.
 */
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 Returns the rebuilt hash obtained by traversing a Merklee 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++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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

pragma solidity ^0.8.0;

import "./Address.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
abstract contract Multicall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = Address.functionDelegateCall(address(this), data[i]);
        }
        return results;
    }
}

File 5 of 8 : 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 6 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 8 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyWithdrawn","type":"error"},{"inputs":[{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"CliffNotReached","type":"error"},{"inputs":[],"name":"CohortDoesNotExist","type":"error"},{"inputs":[{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"DistributionEnded","type":"error"},{"inputs":[{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"DistributionOngoing","type":"error"},{"inputs":[],"name":"InvalidParameters","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"MerkleRootCollision","type":"error"},{"inputs":[{"internalType":"bytes32","name":"cohortId","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"NotInVesting","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"cohortId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"cohortId","type":"bytes32"}],"name":"CohortAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"distributionDuration","type":"uint256"},{"internalType":"uint64","name":"vestingPeriod","type":"uint64"},{"internalType":"uint64","name":"cliffPeriod","type":"uint64"}],"name":"addCohort","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cohortId","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cohortId","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"fullAmount","type":"uint256"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cohortId","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"getClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cohortId","type":"bytes32"}],"name":"getCohort","outputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint64","name":"distributionEnd","type":"uint64"},{"internalType":"uint64","name":"vestingEnd","type":"uint64"},{"internalType":"uint64","name":"vestingPeriod","type":"uint64"},{"internalType":"uint64","name":"cliffPeriod","type":"uint64"}],"internalType":"struct IMerkleVesting.CohortData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"cohortId","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastEndingCohort","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"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":"cohortId","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"setDisabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b5060405161166138038061166183398101604081905261002f91610099565b61003833610049565b6001600160a01b03166080526100c9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100ab57600080fd5b81516001600160a01b03811681146100c257600080fd5b9392505050565b60805161155a6101076000396000818161032101528181610423015281816104dc015281816105640152818161079e0152610826015261155a6000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063ac9650d81161008c578063daf7ba6c11610066578063daf7ba6c14610202578063db8e75fe14610215578063f2fde38b14610309578063fc0c546a1461031c57600080fd5b8063ac9650d814610196578063be4518b2146101b6578063d2d5effc146101c957600080fd5b80637e22b75a116100c85780637e22b75a146101345780638da5cb5b14610147578063a090ebf31461016c578063a3f5ad9d1461017f57600080fd5b80634f02a73e146100ef57806351cff8d914610117578063715018a61461012c575b600080fd5b6101026100fd36600461103d565b610343565b60405190151581526020015b60405180910390f35b61012a61012536600461107b565b610392565b005b61012a6105e6565b61012a6101423660046110e1565b61061c565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010e565b61012a61017a366004611168565b6108b6565b61018860015481565b60405190815260200161010e565b6101a96101a43660046111ae565b610ab0565b60405161010e919061124b565b6101886101c43660046112ad565b610ba4565b6101886101d73660046112ea565b60008281526002602081815260408084206001600160a01b0386168552909201905290205492915050565b61012a61021036600461103d565b610ce5565b6102b4610223366004611316565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260026020908152604091829020825160a081018452815481526001909101546001600160401b0380821693830193909352600160401b8104831693820193909352600160801b830482166060820152600160c01b90920416608082015290565b60405161010e9190600060a0820190508251825260208301516001600160401b038082166020850152806040860151166040850152806060860151166060850152806080860151166080850152505092915050565b61012a61031736600461107b565b610d5c565b6101547f000000000000000000000000000000000000000000000000000000000000000081565b6000806103526101008461135b565b905060006103626101008561136f565b6000958652600260209081526040808820948852600390940190529190942054600190911b908116149392505050565b6000546001600160a01b031633146103c55760405162461bcd60e51b81526004016103bc90611383565b60405180910390fd5b60018054600090815260026020526040902001546001600160401b031642811061040b5760405163f6f4e2b160e01b8152426004820152602481018290526044016103bc565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610472573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049691906113b8565b9050806104b657604051636507689f60e01b815260040160405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af1158015610525573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054991906113d1565b61059f57604051633aaef15d60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152841660448201526064016103bc565b604080516001600160a01b0385168152602081018390527f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5910160405180910390a1505050565b6000546001600160a01b031633146106105760405162461bcd60e51b81526004016103bc90611383565b61061a6000610df7565b565b600086815260026020526040902054610648576040516340f4c53360e11b815260040160405180910390fd5b600086815260026020526040902060018101546001600160401b03164281101561068e57604051631bbcd9e560e01b8152426004820152602481018290526044016103bc565b60408051602081018990526bffffffffffffffffffffffff19606089901b1691810191909152605481018690526000906074016040516020818303038152906040528051906020012090506107198585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505086549150849050610e47565b610736576040516309bde33960e01b815260040160405180910390fd5b60006107448a8a8a8a610ba4565b6001600160a01b03891660009081526002860160205260408120805492935083929091906107739084906113f3565b909155505060405163a9059cbb60e01b81526001600160a01b038981166004830152602482018390527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156107e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080b91906113d1565b61086157604051633aaef15d60e21b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152306024830152891660448201526064016103bc565b604080518b81526001600160a01b038a1660208201529081018290527f0508a8b4117d9a7b3d8f5895f6413e61b4f9a2df35afbfb41e78d0ecfff1843f9060600160405180910390a150505050505050505050565b6000546001600160a01b031633146108e05760405162461bcd60e51b81526004016103bc90611383565b8315806108eb575082155b806108fd57506001600160401b038216155b806109105750816001600160401b031683105b806109235750806001600160401b031683105b8061093f5750806001600160401b0316826001600160401b0316105b1561095d57604051630e52390960e41b815260040160405180910390fd5b6000848152600260205260409020541561098a57604051632334cf8960e21b815260040160405180910390fd5b600061099684426113f3565b60018054600090815260026020526040902001549091506001600160401b03168111156109c35760018590555b6000858152600260205260409020858155600101805467ffffffffffffffff19166001600160401b0383811691909117909155610a02908416426113f3565b600086815260026020908152604091829020600101805477ffffffffffffffffffffffffffffffff00000000000000001916600160401b6001600160401b039586160267ffffffffffffffff60801b191617600160801b88861602176001600160c01b0316600160c01b9487169490940293909317909255518681527f4b32a169b25b429cbe6187348df8cce740260f1c5baa6aaa8eca43e152f94395910160405180910390a15050505050565b6060816001600160401b03811115610aca57610aca61140b565b604051908082528060200260200182016040528015610afd57816020015b6060815260200190600190039081610ae85790505b50905060005b82811015610b9d57610b6d30858584818110610b2157610b21611421565b9050602002810190610b339190611437565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e5f92505050565b828281518110610b7f57610b7f611421565b60200260200101819052508080610b959061147d565b915050610b03565b5092915050565b60008481526002602081815260408084206001600160a01b038716855292830190915282205460018201546001600160401b03600160401b82048116918591610bf591600160801b90041683611498565b6001850154909150600090610c1a90600160c01b90046001600160401b0316836113f3565b9050610c268a8a610343565b15610c56576040516384fa90e560e01b8152600481018b90526001600160a01b03891660248201526044016103bc565b80421015610c8057604051632f4b66b560e11b8152600481018290524260248201526044016103bc565b82421015610cd35760018501548490600160801b90046001600160401b0316610ca98442611498565b610cb3908a6114af565b610cbd919061135b565b610cc79190611498565b95505050505050610cdd565b610cc78488611498565b949350505050565b6000546001600160a01b03163314610d0f5760405162461bcd60e51b81526004016103bc90611383565b6000610d1d6101008361135b565b90506000610d2d6101008461136f565b600094855260026020908152604080872094875260039094019052919093208054600190921b90911790555050565b6000546001600160a01b03163314610d865760405162461bcd60e51b81526004016103bc90611383565b6001600160a01b038116610deb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bc565b610df481610df7565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610e548584610e84565b1490505b9392505050565b6060610e5883836040518060600160405280602781526020016114fe60279139610f30565b600081815b8451811015610f28576000858281518110610ea657610ea6611421565b60200260200101519050808311610ee8576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610f15565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610f208161147d565b915050610e89565b509392505050565b6060833b610f8f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016103bc565b600080856001600160a01b031685604051610faa91906114ce565b600060405180830381855af49150503d8060008114610fe5576040519150601f19603f3d011682016040523d82523d6000602084013e610fea565b606091505b5091509150610ffa828286611004565b9695505050505050565b60608315611013575081610e58565b8251156110235782518084602001fd5b8160405162461bcd60e51b81526004016103bc91906114ea565b6000806040838503121561105057600080fd5b50508035926020909101359150565b80356001600160a01b038116811461107657600080fd5b919050565b60006020828403121561108d57600080fd5b610e588261105f565b60008083601f8401126110a857600080fd5b5081356001600160401b038111156110bf57600080fd5b6020830191508360208260051b85010111156110da57600080fd5b9250929050565b60008060008060008060a087890312156110fa57600080fd5b86359550602087013594506111116040880161105f565b93506060870135925060808701356001600160401b0381111561113357600080fd5b61113f89828a01611096565b979a9699509497509295939492505050565b80356001600160401b038116811461107657600080fd5b6000806000806080858703121561117e57600080fd5b843593506020850135925061119560408601611151565b91506111a360608601611151565b905092959194509250565b600080602083850312156111c157600080fd5b82356001600160401b038111156111d757600080fd5b6111e385828601611096565b90969095509350505050565b60005b8381101561120a5781810151838201526020016111f2565b83811115611219576000848401525b50505050565b600081518084526112378160208601602086016111ef565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156112a057603f1988860301845261128e85835161121f565b94509285019290850190600101611272565b5092979650505050505050565b600080600080608085870312156112c357600080fd5b84359350602085013592506112da6040860161105f565b9396929550929360600135925050565b600080604083850312156112fd57600080fd5b8235915061130d6020840161105f565b90509250929050565b60006020828403121561132857600080fd5b5035919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261136a5761136a61132f565b500490565b60008261137e5761137e61132f565b500690565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156113ca57600080fd5b5051919050565b6000602082840312156113e357600080fd5b81518015158114610e5857600080fd5b6000821982111561140657611406611345565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261144e57600080fd5b8301803591506001600160401b0382111561146857600080fd5b6020019150368190038213156110da57600080fd5b600060001982141561149157611491611345565b5060010190565b6000828210156114aa576114aa611345565b500390565b60008160001904831182151516156114c9576114c9611345565b500290565b600082516114e08184602087016111ef565b9190910192915050565b602081526000610e58602083018461121f56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b1a6ffeac8e4e212597e3107801fc5fc53cddd8d01f2858cdbd582988f474e4664736f6c634300080a0033000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063ac9650d81161008c578063daf7ba6c11610066578063daf7ba6c14610202578063db8e75fe14610215578063f2fde38b14610309578063fc0c546a1461031c57600080fd5b8063ac9650d814610196578063be4518b2146101b6578063d2d5effc146101c957600080fd5b80637e22b75a116100c85780637e22b75a146101345780638da5cb5b14610147578063a090ebf31461016c578063a3f5ad9d1461017f57600080fd5b80634f02a73e146100ef57806351cff8d914610117578063715018a61461012c575b600080fd5b6101026100fd36600461103d565b610343565b60405190151581526020015b60405180910390f35b61012a61012536600461107b565b610392565b005b61012a6105e6565b61012a6101423660046110e1565b61061c565b6000546001600160a01b03165b6040516001600160a01b03909116815260200161010e565b61012a61017a366004611168565b6108b6565b61018860015481565b60405190815260200161010e565b6101a96101a43660046111ae565b610ab0565b60405161010e919061124b565b6101886101c43660046112ad565b610ba4565b6101886101d73660046112ea565b60008281526002602081815260408084206001600160a01b0386168552909201905290205492915050565b61012a61021036600461103d565b610ce5565b6102b4610223366004611316565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915250600090815260026020908152604091829020825160a081018452815481526001909101546001600160401b0380821693830193909352600160401b8104831693820193909352600160801b830482166060820152600160c01b90920416608082015290565b60405161010e9190600060a0820190508251825260208301516001600160401b038082166020850152806040860151166040850152806060860151166060850152806080860151166080850152505092915050565b61012a61031736600461107b565b610d5c565b6101547f000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f981565b6000806103526101008461135b565b905060006103626101008561136f565b6000958652600260209081526040808820948852600390940190529190942054600190911b908116149392505050565b6000546001600160a01b031633146103c55760405162461bcd60e51b81526004016103bc90611383565b60405180910390fd5b60018054600090815260026020526040902001546001600160401b031642811061040b5760405163f6f4e2b160e01b8152426004820152602481018290526044016103bc565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f96001600160a01b0316906370a0823190602401602060405180830381865afa158015610472573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049691906113b8565b9050806104b657604051636507689f60e01b815260040160405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390527f000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f9169063a9059cbb906044016020604051808303816000875af1158015610525573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054991906113d1565b61059f57604051633aaef15d60e21b81526001600160a01b037f000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f981166004830152306024830152841660448201526064016103bc565b604080516001600160a01b0385168152602081018390527f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5910160405180910390a1505050565b6000546001600160a01b031633146106105760405162461bcd60e51b81526004016103bc90611383565b61061a6000610df7565b565b600086815260026020526040902054610648576040516340f4c53360e11b815260040160405180910390fd5b600086815260026020526040902060018101546001600160401b03164281101561068e57604051631bbcd9e560e01b8152426004820152602481018290526044016103bc565b60408051602081018990526bffffffffffffffffffffffff19606089901b1691810191909152605481018690526000906074016040516020818303038152906040528051906020012090506107198585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505086549150849050610e47565b610736576040516309bde33960e01b815260040160405180910390fd5b60006107448a8a8a8a610ba4565b6001600160a01b03891660009081526002860160205260408120805492935083929091906107739084906113f3565b909155505060405163a9059cbb60e01b81526001600160a01b038981166004830152602482018390527f000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f9169063a9059cbb906044016020604051808303816000875af11580156107e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080b91906113d1565b61086157604051633aaef15d60e21b81526001600160a01b037f000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f981166004830152306024830152891660448201526064016103bc565b604080518b81526001600160a01b038a1660208201529081018290527f0508a8b4117d9a7b3d8f5895f6413e61b4f9a2df35afbfb41e78d0ecfff1843f9060600160405180910390a150505050505050505050565b6000546001600160a01b031633146108e05760405162461bcd60e51b81526004016103bc90611383565b8315806108eb575082155b806108fd57506001600160401b038216155b806109105750816001600160401b031683105b806109235750806001600160401b031683105b8061093f5750806001600160401b0316826001600160401b0316105b1561095d57604051630e52390960e41b815260040160405180910390fd5b6000848152600260205260409020541561098a57604051632334cf8960e21b815260040160405180910390fd5b600061099684426113f3565b60018054600090815260026020526040902001549091506001600160401b03168111156109c35760018590555b6000858152600260205260409020858155600101805467ffffffffffffffff19166001600160401b0383811691909117909155610a02908416426113f3565b600086815260026020908152604091829020600101805477ffffffffffffffffffffffffffffffff00000000000000001916600160401b6001600160401b039586160267ffffffffffffffff60801b191617600160801b88861602176001600160c01b0316600160c01b9487169490940293909317909255518681527f4b32a169b25b429cbe6187348df8cce740260f1c5baa6aaa8eca43e152f94395910160405180910390a15050505050565b6060816001600160401b03811115610aca57610aca61140b565b604051908082528060200260200182016040528015610afd57816020015b6060815260200190600190039081610ae85790505b50905060005b82811015610b9d57610b6d30858584818110610b2157610b21611421565b9050602002810190610b339190611437565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610e5f92505050565b828281518110610b7f57610b7f611421565b60200260200101819052508080610b959061147d565b915050610b03565b5092915050565b60008481526002602081815260408084206001600160a01b038716855292830190915282205460018201546001600160401b03600160401b82048116918591610bf591600160801b90041683611498565b6001850154909150600090610c1a90600160c01b90046001600160401b0316836113f3565b9050610c268a8a610343565b15610c56576040516384fa90e560e01b8152600481018b90526001600160a01b03891660248201526044016103bc565b80421015610c8057604051632f4b66b560e11b8152600481018290524260248201526044016103bc565b82421015610cd35760018501548490600160801b90046001600160401b0316610ca98442611498565b610cb3908a6114af565b610cbd919061135b565b610cc79190611498565b95505050505050610cdd565b610cc78488611498565b949350505050565b6000546001600160a01b03163314610d0f5760405162461bcd60e51b81526004016103bc90611383565b6000610d1d6101008361135b565b90506000610d2d6101008461136f565b600094855260026020908152604080872094875260039094019052919093208054600190921b90911790555050565b6000546001600160a01b03163314610d865760405162461bcd60e51b81526004016103bc90611383565b6001600160a01b038116610deb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bc565b610df481610df7565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082610e548584610e84565b1490505b9392505050565b6060610e5883836040518060600160405280602781526020016114fe60279139610f30565b600081815b8451811015610f28576000858281518110610ea657610ea6611421565b60200260200101519050808311610ee8576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610f15565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610f208161147d565b915050610e89565b509392505050565b6060833b610f8f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016103bc565b600080856001600160a01b031685604051610faa91906114ce565b600060405180830381855af49150503d8060008114610fe5576040519150601f19603f3d011682016040523d82523d6000602084013e610fea565b606091505b5091509150610ffa828286611004565b9695505050505050565b60608315611013575081610e58565b8251156110235782518084602001fd5b8160405162461bcd60e51b81526004016103bc91906114ea565b6000806040838503121561105057600080fd5b50508035926020909101359150565b80356001600160a01b038116811461107657600080fd5b919050565b60006020828403121561108d57600080fd5b610e588261105f565b60008083601f8401126110a857600080fd5b5081356001600160401b038111156110bf57600080fd5b6020830191508360208260051b85010111156110da57600080fd5b9250929050565b60008060008060008060a087890312156110fa57600080fd5b86359550602087013594506111116040880161105f565b93506060870135925060808701356001600160401b0381111561113357600080fd5b61113f89828a01611096565b979a9699509497509295939492505050565b80356001600160401b038116811461107657600080fd5b6000806000806080858703121561117e57600080fd5b843593506020850135925061119560408601611151565b91506111a360608601611151565b905092959194509250565b600080602083850312156111c157600080fd5b82356001600160401b038111156111d757600080fd5b6111e385828601611096565b90969095509350505050565b60005b8381101561120a5781810151838201526020016111f2565b83811115611219576000848401525b50505050565b600081518084526112378160208601602086016111ef565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156112a057603f1988860301845261128e85835161121f565b94509285019290850190600101611272565b5092979650505050505050565b600080600080608085870312156112c357600080fd5b84359350602085013592506112da6040860161105f565b9396929550929360600135925050565b600080604083850312156112fd57600080fd5b8235915061130d6020840161105f565b90509250929050565b60006020828403121561132857600080fd5b5035919050565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008261136a5761136a61132f565b500490565b60008261137e5761137e61132f565b500690565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156113ca57600080fd5b5051919050565b6000602082840312156113e357600080fd5b81518015158114610e5857600080fd5b6000821982111561140657611406611345565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261144e57600080fd5b8301803591506001600160401b0382111561146857600080fd5b6020019150368190038213156110da57600080fd5b600060001982141561149157611491611345565b5060010190565b6000828210156114aa576114aa611345565b500390565b60008160001904831182151516156114c9576114c9611345565b500290565b600082516114e08184602087016111ef565b9190910192915050565b602081526000610e58602083018461121f56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220b1a6ffeac8e4e212597e3107801fc5fc53cddd8d01f2858cdbd582988f474e4664736f6c634300080a0033

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

000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f9

-----Decoded View---------------
Arg [0] : token_ (address): 0xF76d80200226AC250665139B9E435617e4Ba55F9

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f76d80200226ac250665139b9e435617e4ba55f9


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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