ETH Price: $1,966.15 (+2.24%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw131536372021-09-03 15:44:061639 days ago1630683846IN
0x06cF0194...E76Ed31b7
0 ETH0.01617586181.65123623
Withdraw131535532021-09-03 15:24:531639 days ago1630682693IN
0x06cF0194...E76Ed31b7
0 ETH0.01940175206.73375402
Renounce Ownersh...131531242021-09-03 13:52:101639 days ago1630677130IN
0x06cF0194...E76Ed31b7
0 ETH0.00372426160.15602118
Set Lockup125617762021-06-03 13:20:211731 days ago1622726421IN
0x06cF0194...E76Ed31b7
0 ETH0.0029552440

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FixedAmountVesting

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "./libraries/VestingLibrary.sol";

contract FixedAmountVesting is ReentrancyGuard, Ownable {
    
    using SafeCast for uint;
    using SafeERC20 for IERC20;
    using VestingLibrary for VestingLibrary.Data;

    event Withdraw(address indexed sender, uint amount);
    event SetLockup(address _account, uint total);

    uint constant private BP = 10_000;

    mapping(address => uint) public vestedAmountOf;

    IERC20 immutable private token;
    VestingLibrary.Data private vestingData;
    mapping(address => uint) private _lockupAmountOf;
    uint64 cliffPercentageInBP;
    uint64 vestingPercentageInBP;

    constructor(
        address _token,
        uint64 _cliffEnd,
        uint32 _vestingInterval,
        uint64 _cliffPercentageInBP,
        uint64 _vestingPercentageInBP
    ) {
        token = IERC20(_token);
        cliffPercentageInBP = _cliffPercentageInBP;
        vestingPercentageInBP = _vestingPercentageInBP;
        vestingData.initialize(
            _cliffEnd,
            _vestingInterval
        );
    }

    function addLockup(address[] calldata _accounts, uint[] calldata _totalAmounts) external onlyOwner {
        require(_accounts.length == _totalAmounts.length, "FixedAmountVesting: LENGTH");
        for (uint i; i < _accounts.length; ++i) {
            _lockupAmountOf[_accounts[i]] += _totalAmounts[i];
            emit SetLockup(_accounts[i], _lockupAmountOf[_accounts[i]]);
        }
    }

    function setLockup(address[] calldata _accounts, uint[] calldata _totalAmounts) external onlyOwner {
        require(_accounts.length == _totalAmounts.length, "FixedAmountVesting: LENGTH");
        for (uint i; i < _accounts.length; ++i) {
            _lockupAmountOf[_accounts[i]] = _totalAmounts[i];
            emit SetLockup(_accounts[i], _totalAmounts[i]);
        }
    }

    /// @notice Withdrawals are allowed only if ownership was renounced (setLockup cannot be called, vesting recipients cannot be changed anymore)
    function withdraw() external nonReentrant {
        require(owner() == address(0), "FixedAmountVesting: RENOUNCE_OWNERSHIP");
        uint totalAmount = _lockupAmountOf[msg.sender];
        uint unlocked = vestingData.availableInputAmount(
            totalAmount, 
            vestedAmountOf[msg.sender], 
            totalAmount * vestingPercentageInBP / BP, 
            totalAmount * cliffPercentageInBP / BP
        );
        require(unlocked > 0, "FixedAmountVesting: ZERO");
        vestedAmountOf[msg.sender] += unlocked;
        IERC20(token).safeTransfer(msg.sender, unlocked);
        emit Withdraw(msg.sender, unlocked);
    }

    function lockupAmountOf(address _account) external view returns (uint totalAmount) {
        totalAmount = _lockupAmountOf[_account];
    }
 
    function unlockedAmountOf(address _account) external view returns (uint) {
        uint totalAmount = _lockupAmountOf[_account];
        return vestingData.availableInputAmount(
            totalAmount, 
            vestedAmountOf[_account], 
            totalAmount * vestingPercentageInBP / BP, 
            totalAmount * cliffPercentageInBP / BP
        );
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {
    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < 2**255, "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.4;

import "@openzeppelin/contracts/utils/math/Math.sol";

library VestingLibrary {
    
    struct Data {
        uint64 cliffEnd;
        // uint32 in seconds = 136 years 
        uint32 vestingInterval;
    }

    function initialize(
        Data storage self,
        uint64 cliffEnd,
        uint32 vestingInterval
    ) internal {
        // cliff may have zero duration to instantaneously unlock percentage of funds
        self.cliffEnd = cliffEnd;
        self.vestingInterval = vestingInterval;
    }

    function availableInputAmount(
        Data storage self, 
        uint totalAmount, 
        uint input, 
        uint vestedAmountPerInterval, 
        uint cliffAmount
    ) internal view returns (uint) {
        // input = amount_unlocked + amount_vested
        if (block.timestamp < self.cliffEnd) {
            return 0; // no unlock or vesting yet
        }
        uint totalVested = totalAmount - cliffAmount;
        if (input == 0) {
            return _vested(self, 0, totalVested, vestedAmountPerInterval) + cliffAmount;
        } else {
            // amount_vested = input - amount_unlocked
            uint vested = input - cliffAmount;
            return _vested(self, vested, totalVested, vestedAmountPerInterval);
        }
    }

    function _vested(
        Data storage self, 
        uint vested, 
        uint totalVested, 
        uint vestedPerInterval
    ) private view returns (uint) {
        if (totalVested == vested) {
            return 0;
        }
        if (self.vestingInterval == 0) {
            // when maxVested is too small or vestingDuration is too large, vesting reward is too small to even be distributed
            return totalVested - vested;
        }
        uint lastVesting = (vested / vestedPerInterval) * self.vestingInterval + self.cliffEnd;
        uint available = ((block.timestamp - lastVesting) / self.vestingInterval) * vestedPerInterval;
        return Math.min(available, totalVested - vested);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @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, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint64","name":"_cliffEnd","type":"uint64"},{"internalType":"uint32","name":"_vestingInterval","type":"uint32"},{"internalType":"uint64","name":"_cliffPercentageInBP","type":"uint64"},{"internalType":"uint64","name":"_vestingPercentageInBP","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"total","type":"uint256"}],"name":"SetLockup","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_totalAmounts","type":"uint256[]"}],"name":"addLockup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"lockupAmountOf","outputs":[{"internalType":"uint256","name":"totalAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_totalAmounts","type":"uint256[]"}],"name":"setLockup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"unlockedAmountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestedAmountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200167d3803806200167d833981016040819052620000349162000133565b6001600081815581546001600160a01b031916339081179092556040518291907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160601b0319606086901b16608052600580546001600160401b0383811668010000000000000000026001600160801b031990921690851617179055620000d66003858562000d31620000e1602090811b91909117901c565b5050505050620001b7565b825463ffffffff90911668010000000000000000026001600160601b03199091166001600160401b0390921691909117179055565b80516001600160401b03811681146200012e57600080fd5b919050565b600080600080600060a086880312156200014b578081fd5b85516001600160a01b038116811462000162578182fd5b9450620001726020870162000116565b9350604086015163ffffffff811681146200018b578182fd5b92506200019b6060870162000116565b9150620001ab6080870162000116565b90509295509295909350565b60805160601c6114a7620001d660003960006103e401526114a76000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c80638da5cb5b11610076578063e249c98a1161005b578063e249c98a1461015e578063e7558a8714610171578063f2fde38b1461018457600080fd5b80638da5cb5b14610123578063a742c88e1461014b57600080fd5b806332cf261d146100a85780633ccfd60b146100f1578063420c279d146100fb578063715018a61461011b575b600080fd5b6100de6100b636600461120a565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b6040519081526020015b60405180910390f35b6100f9610197565b005b6100de61010936600461120a565b60026020526000908152604090205481565b6100f9610449565b60015460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e8565b6100de61015936600461120a565b610539565b6100f961016c36600461123e565b6105c3565b6100f961017f36600461123e565b610866565b6100f961019236600461120a565b610b7f565b60026000541415610209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005560015473ffffffffffffffffffffffffffffffffffffffff16156102b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4669786564416d6f756e7456657374696e673a2052454e4f554e43455f4f574e60448201527f45525348495000000000000000000000000000000000000000000000000000006064820152608401610200565b336000908152600460209081526040808320546002909252822054600554919291610339918491612710906102ff9068010000000000000000900467ffffffffffffffff1684611385565b610309919061134c565b600554612710906103249067ffffffffffffffff1688611385565b61032e919061134c565b600393929190610d7f565b9050600081116103a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4669786564416d6f756e7456657374696e673a205a45524f00000000000000006044820152606401610200565b33600090815260026020526040812080548392906103c4908490611334565b9091555061040b905073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163383610df8565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001600055565b60015473ffffffffffffffffffffffffffffffffffffffff1633146104ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b60015460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602090815260408083205460029092528220546005546105bc918391612710906105979068010000000000000000900467ffffffffffffffff1684611385565b6105a1919061134c565b600554612710906103249067ffffffffffffffff1687611385565b9392505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b8281146106ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4669786564416d6f756e7456657374696e673a204c454e4754480000000000006044820152606401610200565b60005b8381101561085f578282828181106106f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560046000878785818110610735577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061074a919061120a565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020557f059e7ec00f4ba46008b44d7649fbf9f22f6439bb993a0c101a9459fc41e2a03c8585838181106107cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906107e0919061120a565b848484818110610819577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6040805173ffffffffffffffffffffffffffffffffffffffff90951685526020918202939093013590840152500160405180910390a161085881611409565b90506106b0565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146108e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b828114610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4669786564416d6f756e7456657374696e673a204c454e4754480000000000006044820152606401610200565b60005b8381101561085f57828282818110610994577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600460008787858181106109d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906109ed919061120a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a369190611334565b909155507f059e7ec00f4ba46008b44d7649fbf9f22f6439bb993a0c101a9459fc41e2a03c9050858583818110610a96577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610aab919061120a565b60046000888886818110610ae8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610afd919061120a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054604051610b6792919073ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b60405180910390a1610b7881611409565b9050610953565b60015473ffffffffffffffffffffffffffffffffffffffff163314610c00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b73ffffffffffffffffffffffffffffffffffffffff8116610ca3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610200565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b825463ffffffff90911668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000000000000000000090911667ffffffffffffffff90921691909117179055565b845460009067ffffffffffffffff16421015610d9d57506000610def565b6000610da983876113c2565b905084610dd05782610dbe8860008488610e8a565b610dc89190611334565b915050610def565b6000610ddc84876113c2565b9050610dea88828488610e8a565b925050505b95945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610e85908490610f62565b505050565b600083831415610e9c57506000610f5a565b845468010000000000000000900463ffffffff16610ec557610ebe84846113c2565b9050610f5a565b845460009067ffffffffffffffff81169068010000000000000000900463ffffffff16610ef2858861134c565b610efc9190611385565b610f069190611334565b8654909150600090849068010000000000000000900463ffffffff16610f2c84426113c2565b610f36919061134c565b610f409190611385565b9050610f5581610f5088886113c2565b61106e565b925050505b949350505050565b6000610fc4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110849092919063ffffffff16565b805190915015610e855780806020019051810190610fe291906112a7565b610e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610200565b600081831061107d57816105bc565b5090919050565b6060610f5a848460008585843b6110f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610200565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161112091906112c7565b60006040518083038185875af1925050503d806000811461115d576040519150601f19603f3d011682016040523d82523d6000602084013e611162565b606091505b5091509150610f558282866060831561117c5750816105bc565b82511561118c5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020091906112e3565b60008083601f8401126111d1578182fd5b50813567ffffffffffffffff8111156111e8578182fd5b6020830191508360208260051b850101111561120357600080fd5b9250929050565b60006020828403121561121b578081fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105bc578182fd5b60008060008060408587031215611253578283fd5b843567ffffffffffffffff8082111561126a578485fd5b611276888389016111c0565b9096509450602087013591508082111561128e578384fd5b5061129b878288016111c0565b95989497509550505050565b6000602082840312156112b8578081fd5b815180151581146105bc578182fd5b600082516112d98184602087016113d9565b9190910192915050565b60208152600082518060208401526113028160408501602087016113d9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561134757611347611442565b500190565b600082611380577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156113bd576113bd611442565b500290565b6000828210156113d4576113d4611442565b500390565b60005b838110156113f45781810151838201526020016113dc565b83811115611403576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561143b5761143b611442565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212200f7f4663775d2a7a3820e74d697074514a21605d0887f7fa9d24fe8eeca96ab164736f6c63430008040033000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da0000000000000000000000000000000000000000000000000000000060b8d250000000000000000000000000000000000000000000000000000000000076a700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004e2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80638da5cb5b11610076578063e249c98a1161005b578063e249c98a1461015e578063e7558a8714610171578063f2fde38b1461018457600080fd5b80638da5cb5b14610123578063a742c88e1461014b57600080fd5b806332cf261d146100a85780633ccfd60b146100f1578063420c279d146100fb578063715018a61461011b575b600080fd5b6100de6100b636600461120a565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b6040519081526020015b60405180910390f35b6100f9610197565b005b6100de61010936600461120a565b60026020526000908152604090205481565b6100f9610449565b60015460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100e8565b6100de61015936600461120a565b610539565b6100f961016c36600461123e565b6105c3565b6100f961017f36600461123e565b610866565b6100f961019236600461120a565b610b7f565b60026000541415610209576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260005560015473ffffffffffffffffffffffffffffffffffffffff16156102b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4669786564416d6f756e7456657374696e673a2052454e4f554e43455f4f574e60448201527f45525348495000000000000000000000000000000000000000000000000000006064820152608401610200565b336000908152600460209081526040808320546002909252822054600554919291610339918491612710906102ff9068010000000000000000900467ffffffffffffffff1684611385565b610309919061134c565b600554612710906103249067ffffffffffffffff1688611385565b61032e919061134c565b600393929190610d7f565b9050600081116103a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4669786564416d6f756e7456657374696e673a205a45524f00000000000000006044820152606401610200565b33600090815260026020526040812080548392906103c4908490611334565b9091555061040b905073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da163383610df8565b60405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001600055565b60015473ffffffffffffffffffffffffffffffffffffffff1633146104ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b60015460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602090815260408083205460029092528220546005546105bc918391612710906105979068010000000000000000900467ffffffffffffffff1684611385565b6105a1919061134c565b600554612710906103249067ffffffffffffffff1687611385565b9392505050565b60015473ffffffffffffffffffffffffffffffffffffffff163314610644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b8281146106ad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4669786564416d6f756e7456657374696e673a204c454e4754480000000000006044820152606401610200565b60005b8381101561085f578282828181106106f1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560046000878785818110610735577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061074a919061120a565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020557f059e7ec00f4ba46008b44d7649fbf9f22f6439bb993a0c101a9459fc41e2a03c8585838181106107cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906107e0919061120a565b848484818110610819577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6040805173ffffffffffffffffffffffffffffffffffffffff90951685526020918202939093013590840152500160405180910390a161085881611409565b90506106b0565b5050505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146108e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b828114610950576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4669786564416d6f756e7456657374696e673a204c454e4754480000000000006044820152606401610200565b60005b8381101561085f57828282818110610994577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600460008787858181106109d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020160208101906109ed919061120a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a369190611334565b909155507f059e7ec00f4ba46008b44d7649fbf9f22f6439bb993a0c101a9459fc41e2a03c9050858583818110610a96577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610aab919061120a565b60046000888886818110610ae8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610afd919061120a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054604051610b6792919073ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b60405180910390a1610b7881611409565b9050610953565b60015473ffffffffffffffffffffffffffffffffffffffff163314610c00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610200565b73ffffffffffffffffffffffffffffffffffffffff8116610ca3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610200565b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b825463ffffffff90911668010000000000000000027fffffffffffffffffffffffffffffffffffffffff00000000000000000000000090911667ffffffffffffffff90921691909117179055565b845460009067ffffffffffffffff16421015610d9d57506000610def565b6000610da983876113c2565b905084610dd05782610dbe8860008488610e8a565b610dc89190611334565b915050610def565b6000610ddc84876113c2565b9050610dea88828488610e8a565b925050505b95945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610e85908490610f62565b505050565b600083831415610e9c57506000610f5a565b845468010000000000000000900463ffffffff16610ec557610ebe84846113c2565b9050610f5a565b845460009067ffffffffffffffff81169068010000000000000000900463ffffffff16610ef2858861134c565b610efc9190611385565b610f069190611334565b8654909150600090849068010000000000000000900463ffffffff16610f2c84426113c2565b610f36919061134c565b610f409190611385565b9050610f5581610f5088886113c2565b61106e565b925050505b949350505050565b6000610fc4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166110849092919063ffffffff16565b805190915015610e855780806020019051810190610fe291906112a7565b610e85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610200565b600081831061107d57816105bc565b5090919050565b6060610f5a848460008585843b6110f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610200565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161112091906112c7565b60006040518083038185875af1925050503d806000811461115d576040519150601f19603f3d011682016040523d82523d6000602084013e611162565b606091505b5091509150610f558282866060831561117c5750816105bc565b82511561118c5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020091906112e3565b60008083601f8401126111d1578182fd5b50813567ffffffffffffffff8111156111e8578182fd5b6020830191508360208260051b850101111561120357600080fd5b9250929050565b60006020828403121561121b578081fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146105bc578182fd5b60008060008060408587031215611253578283fd5b843567ffffffffffffffff8082111561126a578485fd5b611276888389016111c0565b9096509450602087013591508082111561128e578384fd5b5061129b878288016111c0565b95989497509550505050565b6000602082840312156112b8578081fd5b815180151581146105bc578182fd5b600082516112d98184602087016113d9565b9190910192915050565b60208152600082518060208401526113028160408501602087016113d9565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000821982111561134757611347611442565b500190565b600082611380577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156113bd576113bd611442565b500290565b6000828210156113d4576113d4611442565b500390565b60005b838110156113f45781810151838201526020016113dc565b83811115611403576000848401525b50505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561143b5761143b611442565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212200f7f4663775d2a7a3820e74d697074514a21605d0887f7fa9d24fe8eeca96ab164736f6c63430008040033

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

000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da0000000000000000000000000000000000000000000000000000000060b8d250000000000000000000000000000000000000000000000000000000000076a700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004e2

-----Decoded View---------------
Arg [0] : _token (address): 0xE1Fc4455f62a6E89476f1072530C20CF1A0622dA
Arg [1] : _cliffEnd (uint64): 1622725200
Arg [2] : _vestingInterval (uint32): 7776000
Arg [3] : _cliffPercentageInBP (uint64): 0
Arg [4] : _vestingPercentageInBP (uint64): 1250

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1fc4455f62a6e89476f1072530c20cf1a0622da
Arg [1] : 0000000000000000000000000000000000000000000000000000000060b8d250
Arg [2] : 000000000000000000000000000000000000000000000000000000000076a700
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000004e2


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.