ETH Price: $2,004.54 (-0.68%)

Contract

0x6d00268a47D48474f999c18210c6877491AE6FB3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim221296842025-03-26 7:48:3530 hrs ago1742975315IN
Orderly: Team/Investors Vesting
0 ETH0.000085980.92948474
Claim221228372025-03-25 8:50:232 days ago1742892623IN
Orderly: Team/Investors Vesting
0 ETH0.000046640.8
Claim221209332025-03-25 2:27:352 days ago1742869655IN
Orderly: Team/Investors Vesting
0 ETH0.000087060.94115117
Claim221186252025-03-24 18:42:232 days ago1742841743IN
Orderly: Team/Investors Vesting
0 ETH0.000130791.4138573
Claim221164792025-03-24 11:30:593 days ago1742815859IN
Orderly: Team/Investors Vesting
0 ETH0.000114651.23941253
Claim221145122025-03-24 4:56:233 days ago1742792183IN
Orderly: Team/Investors Vesting
0 ETH0.000051650.88593481
Claim221140062025-03-24 3:14:473 days ago1742786087IN
Orderly: Team/Investors Vesting
0 ETH0.00007350.97483986
Claim221140032025-03-24 3:14:113 days ago1742786051IN
Orderly: Team/Investors Vesting
0 ETH0.000088911.17917964
Claim220868472025-03-20 8:22:117 days ago1742458931IN
Orderly: Team/Investors Vesting
0 ETH0.000056720.97278591
Claim220868372025-03-20 8:20:117 days ago1742458811IN
Orderly: Team/Investors Vesting
0 ETH0.000072050.95548167
Claim220783402025-03-19 3:49:478 days ago1742356187IN
Orderly: Team/Investors Vesting
0 ETH0.000081310.878979
Claim220671832025-03-17 14:23:3510 days ago1742221415IN
Orderly: Team/Investors Vesting
0 ETH0.000101751.1
Claim220444032025-03-14 10:04:4713 days ago1741946687IN
Orderly: Team/Investors Vesting
0 ETH0.000062780.83266873
Claim220160802025-03-10 11:09:3517 days ago1741604975IN
Orderly: Team/Investors Vesting
0 ETH0.000118211.27794915
Claim220146942025-03-10 6:30:4717 days ago1741588247IN
Orderly: Team/Investors Vesting
0 ETH0.000096451.04265658
Claim220139362025-03-10 3:58:4717 days ago1741579127IN
Orderly: Team/Investors Vesting
0 ETH0.000096161.03948928
Claim220139342025-03-10 3:58:2317 days ago1741579103IN
Orderly: Team/Investors Vesting
0 ETH0.000101091.09279623
Claim220080542025-03-09 8:14:5918 days ago1741508099IN
Orderly: Team/Investors Vesting
0 ETH0.000157261.7
Claim219943462025-03-07 10:16:2320 days ago1741342583IN
Orderly: Team/Investors Vesting
0 ETH0.000175091.89279159
Claim219892262025-03-06 17:05:2320 days ago1741280723IN
Orderly: Team/Investors Vesting
0 ETH0.000207053.55114907
Claim219735632025-03-04 12:35:4723 days ago1741091747IN
Orderly: Team/Investors Vesting
0 ETH0.000091180.98571029
Claim219731502025-03-04 11:12:4723 days ago1741086767IN
Orderly: Team/Investors Vesting
0 ETH0.000153331.65758906
Claim219636232025-03-03 3:18:4724 days ago1740971927IN
Orderly: Team/Investors Vesting
0 ETH0.00011741.26915238
Claim219440672025-02-28 9:52:1127 days ago1740736331IN
Orderly: Team/Investors Vesting
0 ETH0.000123231.33219352
Claim219394222025-02-27 18:19:3527 days ago1740680375IN
Orderly: Team/Investors Vesting
0 ETH0.000115221.2455345
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:
LockedTokenVault

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
Yes with 1000 runs

Other Settings:
cancun EvmVersion
File 1 of 8 : LockedTokenVault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;

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

/// @title A Vault contract that locks up tokens
/// @author Orderly Network
/// @notice This contract is used to lock up tokens for a period of time and release them gradually
contract LockedTokenVault is Ownable {
    using Math for uint256;
    using SafeERC20 for IERC20;

    address _TOKEN_;

    mapping(address => uint256) internal originBalances;
    mapping(address => uint256) internal claimedBalances;
    mapping(address => uint256) internal startReleaseTime;
    mapping(address => uint256) internal releaseDuration;
    mapping(address => uint256) internal cliffTime;

    uint256 public _UNDISTRIBUTED_AMOUNT_;

    // ============ constant ============

    uint256 constant ONE = 10 ** 18;

    // ============ Events & Error ============

    event Claim(
        address indexed holder,
        uint256 origin,
        uint256 claimed,
        uint256 amount
    );

    error BatchGrantLengthNotMatch();
    error CliffTimeBeforeStartTime();
    error CliffTimeTooLate();
    error AmountZero();
    error DurationZero();

    // ============ Init Functions ============

    constructor(address initialOwner, address _token) Ownable(initialOwner) {
        _TOKEN_ = _token;
    }

    function deposit(uint256 amount) external onlyOwner {
        _tokenTransferIn(owner(), amount);
        _UNDISTRIBUTED_AMOUNT_ = _UNDISTRIBUTED_AMOUNT_ + amount;
    }

    function withdraw(uint256 amount) external onlyOwner {
        _UNDISTRIBUTED_AMOUNT_ = _UNDISTRIBUTED_AMOUNT_ - amount;
        _tokenTransferOut(owner(), amount);
    }

    // ============ For Owner ============

    /// @notice Grant token to the holder
    /// @dev all the list should have the same length
    /// @dev support regrant, the new grant will overwrite the old one, and the balance will be accumulated
    /// @param holderList holder list, the address of the holder
    /// @param amountList amount list, the amount of token to grant
    /// @param startList start time list, the timestamp when the token start to release
    /// @param durationList duration list, the duration of the release
    /// @param cliffList cliff time list, the timestamp when the token is able to claim
    function grant(
        address[] calldata holderList,
        uint256[] calldata amountList,
        uint256[] calldata startList,
        uint256[] calldata durationList,
        uint256[] calldata cliffList
    ) external onlyOwner {
        if (holderList.length != amountList.length)
            revert BatchGrantLengthNotMatch();
        if (holderList.length != startList.length)
            revert BatchGrantLengthNotMatch();
        if (holderList.length != durationList.length)
            revert BatchGrantLengthNotMatch();
        if (holderList.length != cliffList.length)
            revert BatchGrantLengthNotMatch();
        uint256 amount = 0;
        for (uint256 i = 0; i < holderList.length; ++i) {
            address holder = holderList[i];
            if (cliffList[i] < startList[i]) {
                revert CliffTimeBeforeStartTime();
            }
            if (cliffList[i] > startList[i] + durationList[i]) {
                revert CliffTimeTooLate();
            }
            if (amountList[i] == 0) {
                revert AmountZero();
            }
            if (durationList[i] == 0) {
                revert DurationZero();
            }
            originBalances[holder] = originBalances[holder] + amountList[i];
            startReleaseTime[holder] = startList[i];
            releaseDuration[holder] = durationList[i];
            cliffTime[holder] = cliffList[i];
            amount = amount + amountList[i];
        }
        _UNDISTRIBUTED_AMOUNT_ = _UNDISTRIBUTED_AMOUNT_ - amount;
    }

    /// @notice recall the token from the holder, all the token will be returned to the owner
    /// @param holder holder address
    function recall(address holder) external onlyOwner {
        _UNDISTRIBUTED_AMOUNT_ =
            _UNDISTRIBUTED_AMOUNT_ +
            originBalances[holder] -
            claimedBalances[holder];
        originBalances[holder] = 0;
        claimedBalances[holder] = 0;
        startReleaseTime[holder] = 0;
        releaseDuration[holder] = 0;
        cliffTime[holder] = 0;
    }

    // ============ For Holder ============

    /// @notice claim the token that is able to claim
    function claim() external {
        uint256 claimableToken = getClaimableBalance(msg.sender);
        claimedBalances[msg.sender] =
            claimedBalances[msg.sender] +
            claimableToken;
        _tokenTransferOut(msg.sender, claimableToken);
        emit Claim(
            msg.sender,
            originBalances[msg.sender],
            claimedBalances[msg.sender],
            claimableToken
        );
    }

    // ============ View ============

    function isReleaseStart(address holder) external view returns (bool) {
        return block.timestamp >= startReleaseTime[holder];
    }

    function isCliffStart(address holder) external view returns (bool) {
        return block.timestamp >= cliffTime[holder];
    }

    function getStartReleaseTime(
        address holder
    ) external view returns (uint256) {
        return startReleaseTime[holder];
    }

    function getReleaseDuration(
        address holder
    ) external view returns (uint256) {
        return releaseDuration[holder];
    }

    function getOriginBalance(address holder) external view returns (uint256) {
        return originBalances[holder];
    }

    function getClaimedBalance(address holder) external view returns (uint256) {
        return claimedBalances[holder];
    }

    function getCliffTime(address holder) external view returns (uint256) {
        return cliffTime[holder];
    }

    function getClaimableBalance(address holder) public view returns (uint256) {
        // first check if the cliff time is passed
        if (block.timestamp < cliffTime[holder]) {
            return 0;
        }
        uint256 remainingToken = getRemainingBalance(holder);
        // regrant may cause `claimableToken - claimedBalances[holder]` to be negative
        uint256 claimableToken = originBalances[holder] - remainingToken;
        if (claimableToken < claimedBalances[holder]) {
            return 0;
        } else {
            return claimableToken - claimedBalances[holder];
        }
    }

    function getRemainingBalance(address holder) public view returns (uint256) {
        uint256 remainingRatio = getRemainingRatio(block.timestamp, holder);
        return originBalances[holder].mulDiv(remainingRatio, ONE);
    }

    function getRemainingRatio(
        uint256 timestamp,
        address holder
    ) public view returns (uint256) {
        if (timestamp < startReleaseTime[holder]) {
            return ONE;
        }
        uint256 timePast = timestamp - startReleaseTime[holder];
        if (timePast < releaseDuration[holder]) {
            uint256 remainingTime = releaseDuration[holder] - timePast;
            return ONE.mulDiv(remainingTime, releaseDuration[holder]);
        } else {
            return 0;
        }
    }

    // ============ Internal Helper ============

    function _tokenTransferIn(address from, uint256 amount) internal {
        IERC20(_TOKEN_).safeTransferFrom(from, address(this), amount);
    }

    function _tokenTransferOut(address to, uint256 amount) internal {
        IERC20(_TOKEN_).safeTransfer(to, amount);
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 4 of 8 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 5 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 6 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 7 of 8 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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 8 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // 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 FailedInnerCall();
        }
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "contracts/=src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AmountZero","type":"error"},{"inputs":[],"name":"BatchGrantLengthNotMatch","type":"error"},{"inputs":[],"name":"CliffTimeBeforeStartTime","type":"error"},{"inputs":[],"name":"CliffTimeTooLate","type":"error"},{"inputs":[],"name":"DurationZero","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":false,"internalType":"uint256","name":"origin","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimed","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","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"},{"inputs":[],"name":"_UNDISTRIBUTED_AMOUNT_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getClaimableBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getClaimedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getCliffTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getOriginBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getReleaseDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getRemainingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"address","name":"holder","type":"address"}],"name":"getRemainingRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"getStartReleaseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"holderList","type":"address[]"},{"internalType":"uint256[]","name":"amountList","type":"uint256[]"},{"internalType":"uint256[]","name":"startList","type":"uint256[]"},{"internalType":"uint256[]","name":"durationList","type":"uint256[]"},{"internalType":"uint256[]","name":"cliffList","type":"uint256[]"}],"name":"grant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"isCliffStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"isReleaseStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"recall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b5060405161128038038061128083398101604081905261002e916100f6565b816001600160a01b03811661005c57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100658161008c565b50600180546001600160a01b0319166001600160a01b039290921691909117905550610127565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100f1575f80fd5b919050565b5f8060408385031215610107575f80fd5b610110836100db565b915061011e602084016100db565b90509250929050565b61114c806101345f395ff3fe608060405234801561000f575f80fd5b5060043610610148575f3560e01c80637137bc5e116100c7578063c11cf42a1161007d578063cf0e80fe11610063578063cf0e80fe146102f7578063d18284961461031f578063f2fde38b14610347575f80fd5b8063c11cf42a146102d1578063ca430519146102e4575f80fd5b80637dbf2f95116100ad5780637dbf2f951461027c5780638da5cb5b146102a4578063b6b55f25146102be575f80fd5b80637137bc5e1461024c578063715018a614610274575f80fd5b806321646eac1161011c5780632e1a7d4d116101025780632e1a7d4d146102065780634e71d92d1461021957806355e0d1b914610221575f80fd5b806321646eac146101c257806324b32741146101fd575f80fd5b80621bf8f61461014c57806306def802146101725780630f7eaef314610185578063156000a3146101ad575b5f80fd5b61015f61015a366004610ef7565b61035a565b6040519081526020015b60405180910390f35b61015f610180366004610ef7565b61039b565b61015f610193366004610ef7565b6001600160a01b03165f9081526006602052604090205490565b6101c06101bb366004610f58565b610447565b005b6101ed6101d0366004610ef7565b6001600160a01b03165f9081526006602052604090205442101590565b6040519015158152602001610169565b61015f60075481565b6101c061021436600461103e565b6107e6565b6101c061081c565b6101ed61022f366004610ef7565b6001600160a01b03165f9081526004602052604090205442101590565b61015f61025a366004610ef7565b6001600160a01b03165f9081526005602052604090205490565b6101c06108bb565b61015f61028a366004610ef7565b6001600160a01b03165f9081526004602052604090205490565b5f546040516001600160a01b039091168152602001610169565b6101c06102cc36600461103e565b6108ce565b61015f6102df366004611055565b610904565b6101c06102f2366004610ef7565b6109dd565b61015f610305366004610ef7565b6001600160a01b03165f9081526003602052604090205490565b61015f61032d366004610ef7565b6001600160a01b03165f9081526002602052604090205490565b6101c0610355366004610ef7565b610a67565b5f806103664284610904565b6001600160a01b0384165f908152600260205260409020549091506103949082670de0b6b3a7640000610abf565b9392505050565b6001600160a01b0381165f908152600660205260408120544210156103c157505f919050565b5f6103cb8361035a565b6001600160a01b0384165f90815260026020526040812054919250906103f2908390611093565b6001600160a01b0385165f9081526003602052604090205490915081101561041d57505f9392505050565b6001600160a01b0384165f9081526003602052604090205461043f9082611093565b949350505050565b61044f610b97565b88871461046f57604051630be3705d60e31b815260040160405180910390fd5b88851461048f57604051630be3705d60e31b815260040160405180910390fd5b8883146104af57604051630be3705d60e31b815260040160405180910390fd5b8881146104cf57604051630be3705d60e31b815260040160405180910390fd5b5f805b8a8110156107c7575f8c8c838181106104ed576104ed6110a6565b90506020020160208101906105029190610ef7565b9050888883818110610516576105166110a6565b9050602002013585858481811061052f5761052f6110a6565b90506020020135101561056e576040517fe925c9ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b868683818110610580576105806110a6565b90506020020135898984818110610599576105996110a6565b905060200201356105aa91906110ba565b8585848181106105bc576105bc6110a6565b9050602002013511156105fb576040517f05b28b1700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a8a8381811061060d5761060d6110a6565b905060200201355f0361064c576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86868381811061065e5761065e6110a6565b905060200201355f0361069d576040517f71e8e04c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a8a838181106106af576106af6110a6565b6001600160a01b0384165f908152600260209081526040909120546106db9491909202013591506110ba565b6001600160a01b0382165f90815260026020526040902055888883818110610705576107056110a6565b6001600160a01b0384165f908152600460209081526040909120910292909201359091555086868381811061073c5761073c6110a6565b6001600160a01b0384165f9081526005602090815260409091209102929092013590915550848483818110610773576107736110a6565b6001600160a01b0384165f90815260066020908152604090912091029290920135909155508a8a838181106107aa576107aa6110a6565b90506020020135836107bc91906110ba565b9250506001016104d2565b50806007546107d69190611093565b6007555050505050505050505050565b6107ee610b97565b806007546107fc9190611093565b6007556108196108135f546001600160a01b031690565b82610bdc565b50565b5f6108263361039b565b335f908152600360205260409020549091506108439082906110ba565b335f8181526003602052604090209190915561085f9082610bdc565b335f8181526002602090815260408083205460038352928190205481519384529183019190915281018390527f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef19060600160405180910390a250565b6108c3610b97565b6108cc5f610bf7565b565b6108d6610b97565b6108f06108ea5f546001600160a01b031690565b82610c5e565b806007546108fe91906110ba565b60075550565b6001600160a01b0381165f908152600460205260408120548310156109325750670de0b6b3a76400006109d7565b6001600160a01b0382165f908152600460205260408120546109549085611093565b6001600160a01b0384165f908152600560205260409020549091508110156109d2576001600160a01b0383165f90815260056020526040812054610999908390611093565b6001600160a01b0385165f908152600560205260409020549091506109c990670de0b6b3a7640000908390610abf565b925050506109d7565b5f9150505b92915050565b6109e5610b97565b6001600160a01b0381165f90815260036020908152604080832054600290925290912054600754610a1691906110ba565b610a209190611093565b6007556001600160a01b03165f9081526002602090815260408083208390556003825280832083905560048252808320839055600582528083208390556006909152812055565b610a6f610b97565b6001600160a01b038116610ab6576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b61081981610bf7565b5f838302815f1985870982811083820303915050805f03610af357838281610ae957610ae96110cd565b0492505050610394565b808411610b2c576040517f227bc15300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f546001600160a01b031633146108cc576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610aad565b600154610bf3906001600160a01b03168383610c76565b5050565b5f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600154610bf3906001600160a01b0316833084610cef565b6040516001600160a01b03838116602483015260448201839052610cea91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d2e565b505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610d289186918216906323b872dd90608401610ca3565b50505050565b5f610d426001600160a01b03841683610da8565b905080515f14158015610d66575080806020019051810190610d6491906110e1565b155b15610cea576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602401610aad565b606061039483835f845f80856001600160a01b03168486604051610dcc9190611100565b5f6040518083038185875af1925050503d805f8114610e06576040519150601f19603f3d011682016040523d82523d5f602084013e610e0b565b606091505b5091509150610e1b868383610e25565b9695505050505050565b606082610e3a57610e3582610e9a565b610394565b8151158015610e5157506001600160a01b0384163b155b15610e93576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610aad565b5080610394565b805115610eaa5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b0381168114610ef2575f80fd5b919050565b5f60208284031215610f07575f80fd5b61039482610edc565b5f8083601f840112610f20575f80fd5b50813567ffffffffffffffff811115610f37575f80fd5b6020830191508360208260051b8501011115610f51575f80fd5b9250929050565b5f805f805f805f805f8060a08b8d031215610f71575f80fd5b8a3567ffffffffffffffff80821115610f88575f80fd5b610f948e838f01610f10565b909c509a5060208d0135915080821115610fac575f80fd5b610fb88e838f01610f10565b909a50985060408d0135915080821115610fd0575f80fd5b610fdc8e838f01610f10565b909850965060608d0135915080821115610ff4575f80fd5b6110008e838f01610f10565b909650945060808d0135915080821115611018575f80fd5b506110258d828e01610f10565b915080935050809150509295989b9194979a5092959850565b5f6020828403121561104e575f80fd5b5035919050565b5f8060408385031215611066575f80fd5b8235915061107660208401610edc565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156109d7576109d761107f565b634e487b7160e01b5f52603260045260245ffd5b808201808211156109d7576109d761107f565b634e487b7160e01b5f52601260045260245ffd5b5f602082840312156110f1575f80fd5b81518015158114610394575f80fd5b5f82518060208501845e5f92019182525091905056fea2646970667358221220327d606e1c90e7d41f5ebdf63148f3383955ac8e3b14fe379bf9e0192b06b40664736f6c634300081900330000000000000000000000004e834ca9310d7710a409638a7aa70cb22f141df3000000000000000000000000abd4c63d2616a5201454168269031355f4764337

Deployed Bytecode

0x608060405234801561000f575f80fd5b5060043610610148575f3560e01c80637137bc5e116100c7578063c11cf42a1161007d578063cf0e80fe11610063578063cf0e80fe146102f7578063d18284961461031f578063f2fde38b14610347575f80fd5b8063c11cf42a146102d1578063ca430519146102e4575f80fd5b80637dbf2f95116100ad5780637dbf2f951461027c5780638da5cb5b146102a4578063b6b55f25146102be575f80fd5b80637137bc5e1461024c578063715018a614610274575f80fd5b806321646eac1161011c5780632e1a7d4d116101025780632e1a7d4d146102065780634e71d92d1461021957806355e0d1b914610221575f80fd5b806321646eac146101c257806324b32741146101fd575f80fd5b80621bf8f61461014c57806306def802146101725780630f7eaef314610185578063156000a3146101ad575b5f80fd5b61015f61015a366004610ef7565b61035a565b6040519081526020015b60405180910390f35b61015f610180366004610ef7565b61039b565b61015f610193366004610ef7565b6001600160a01b03165f9081526006602052604090205490565b6101c06101bb366004610f58565b610447565b005b6101ed6101d0366004610ef7565b6001600160a01b03165f9081526006602052604090205442101590565b6040519015158152602001610169565b61015f60075481565b6101c061021436600461103e565b6107e6565b6101c061081c565b6101ed61022f366004610ef7565b6001600160a01b03165f9081526004602052604090205442101590565b61015f61025a366004610ef7565b6001600160a01b03165f9081526005602052604090205490565b6101c06108bb565b61015f61028a366004610ef7565b6001600160a01b03165f9081526004602052604090205490565b5f546040516001600160a01b039091168152602001610169565b6101c06102cc36600461103e565b6108ce565b61015f6102df366004611055565b610904565b6101c06102f2366004610ef7565b6109dd565b61015f610305366004610ef7565b6001600160a01b03165f9081526003602052604090205490565b61015f61032d366004610ef7565b6001600160a01b03165f9081526002602052604090205490565b6101c0610355366004610ef7565b610a67565b5f806103664284610904565b6001600160a01b0384165f908152600260205260409020549091506103949082670de0b6b3a7640000610abf565b9392505050565b6001600160a01b0381165f908152600660205260408120544210156103c157505f919050565b5f6103cb8361035a565b6001600160a01b0384165f90815260026020526040812054919250906103f2908390611093565b6001600160a01b0385165f9081526003602052604090205490915081101561041d57505f9392505050565b6001600160a01b0384165f9081526003602052604090205461043f9082611093565b949350505050565b61044f610b97565b88871461046f57604051630be3705d60e31b815260040160405180910390fd5b88851461048f57604051630be3705d60e31b815260040160405180910390fd5b8883146104af57604051630be3705d60e31b815260040160405180910390fd5b8881146104cf57604051630be3705d60e31b815260040160405180910390fd5b5f805b8a8110156107c7575f8c8c838181106104ed576104ed6110a6565b90506020020160208101906105029190610ef7565b9050888883818110610516576105166110a6565b9050602002013585858481811061052f5761052f6110a6565b90506020020135101561056e576040517fe925c9ec00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b868683818110610580576105806110a6565b90506020020135898984818110610599576105996110a6565b905060200201356105aa91906110ba565b8585848181106105bc576105bc6110a6565b9050602002013511156105fb576040517f05b28b1700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a8a8381811061060d5761060d6110a6565b905060200201355f0361064c576040517fcbca5aa200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86868381811061065e5761065e6110a6565b905060200201355f0361069d576040517f71e8e04c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a8a838181106106af576106af6110a6565b6001600160a01b0384165f908152600260209081526040909120546106db9491909202013591506110ba565b6001600160a01b0382165f90815260026020526040902055888883818110610705576107056110a6565b6001600160a01b0384165f908152600460209081526040909120910292909201359091555086868381811061073c5761073c6110a6565b6001600160a01b0384165f9081526005602090815260409091209102929092013590915550848483818110610773576107736110a6565b6001600160a01b0384165f90815260066020908152604090912091029290920135909155508a8a838181106107aa576107aa6110a6565b90506020020135836107bc91906110ba565b9250506001016104d2565b50806007546107d69190611093565b6007555050505050505050505050565b6107ee610b97565b806007546107fc9190611093565b6007556108196108135f546001600160a01b031690565b82610bdc565b50565b5f6108263361039b565b335f908152600360205260409020549091506108439082906110ba565b335f8181526003602052604090209190915561085f9082610bdc565b335f8181526002602090815260408083205460038352928190205481519384529183019190915281018390527f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef19060600160405180910390a250565b6108c3610b97565b6108cc5f610bf7565b565b6108d6610b97565b6108f06108ea5f546001600160a01b031690565b82610c5e565b806007546108fe91906110ba565b60075550565b6001600160a01b0381165f908152600460205260408120548310156109325750670de0b6b3a76400006109d7565b6001600160a01b0382165f908152600460205260408120546109549085611093565b6001600160a01b0384165f908152600560205260409020549091508110156109d2576001600160a01b0383165f90815260056020526040812054610999908390611093565b6001600160a01b0385165f908152600560205260409020549091506109c990670de0b6b3a7640000908390610abf565b925050506109d7565b5f9150505b92915050565b6109e5610b97565b6001600160a01b0381165f90815260036020908152604080832054600290925290912054600754610a1691906110ba565b610a209190611093565b6007556001600160a01b03165f9081526002602090815260408083208390556003825280832083905560048252808320839055600582528083208390556006909152812055565b610a6f610b97565b6001600160a01b038116610ab6576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081525f60048201526024015b60405180910390fd5b61081981610bf7565b5f838302815f1985870982811083820303915050805f03610af357838281610ae957610ae96110cd565b0492505050610394565b808411610b2c576040517f227bc15300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f848688095f868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b5f546001600160a01b031633146108cc576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610aad565b600154610bf3906001600160a01b03168383610c76565b5050565b5f80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600154610bf3906001600160a01b0316833084610cef565b6040516001600160a01b03838116602483015260448201839052610cea91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610d2e565b505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610d289186918216906323b872dd90608401610ca3565b50505050565b5f610d426001600160a01b03841683610da8565b905080515f14158015610d66575080806020019051810190610d6491906110e1565b155b15610cea576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b0384166004820152602401610aad565b606061039483835f845f80856001600160a01b03168486604051610dcc9190611100565b5f6040518083038185875af1925050503d805f8114610e06576040519150601f19603f3d011682016040523d82523d5f602084013e610e0b565b606091505b5091509150610e1b868383610e25565b9695505050505050565b606082610e3a57610e3582610e9a565b610394565b8151158015610e5157506001600160a01b0384163b155b15610e93576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610aad565b5080610394565b805115610eaa5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b0381168114610ef2575f80fd5b919050565b5f60208284031215610f07575f80fd5b61039482610edc565b5f8083601f840112610f20575f80fd5b50813567ffffffffffffffff811115610f37575f80fd5b6020830191508360208260051b8501011115610f51575f80fd5b9250929050565b5f805f805f805f805f8060a08b8d031215610f71575f80fd5b8a3567ffffffffffffffff80821115610f88575f80fd5b610f948e838f01610f10565b909c509a5060208d0135915080821115610fac575f80fd5b610fb88e838f01610f10565b909a50985060408d0135915080821115610fd0575f80fd5b610fdc8e838f01610f10565b909850965060608d0135915080821115610ff4575f80fd5b6110008e838f01610f10565b909650945060808d0135915080821115611018575f80fd5b506110258d828e01610f10565b915080935050809150509295989b9194979a5092959850565b5f6020828403121561104e575f80fd5b5035919050565b5f8060408385031215611066575f80fd5b8235915061107660208401610edc565b90509250929050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156109d7576109d761107f565b634e487b7160e01b5f52603260045260245ffd5b808201808211156109d7576109d761107f565b634e487b7160e01b5f52601260045260245ffd5b5f602082840312156110f1575f80fd5b81518015158114610394575f80fd5b5f82518060208501845e5f92019182525091905056fea2646970667358221220327d606e1c90e7d41f5ebdf63148f3383955ac8e3b14fe379bf9e0192b06b40664736f6c63430008190033

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

0000000000000000000000004e834ca9310d7710a409638a7aa70cb22f141df3000000000000000000000000abd4c63d2616a5201454168269031355f4764337

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x4e834Ca9310d7710a409638A7aa70CB22F141Df3
Arg [1] : _token (address): 0xABD4C63d2616A5201454168269031355f4764337

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004e834ca9310d7710a409638a7aa70cb22f141df3
Arg [1] : 000000000000000000000000abd4c63d2616a5201454168269031355f4764337


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.