ETH Price: $2,634.69 (-1.66%)
Gas: 0.92 Gwei

Contract

0x92baEa8BCd5b10D1A76e154D23Cf63F918Ee9e17
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vesting

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
paris EvmVersion
File 1 of 8 : Vesting.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract Vesting is OwnableUpgradeable {
    struct AllocParams {
        address investor;
        uint128 vestAmount;
        uint64 lockupPeriod;
        uint64 vestingPeriod;
        uint64 instantShare; // 0-100% share of vestAmount tokens to be instantly vested
    }

    struct VestingParams {
        uint128 vestAmount; // amount of "vestedToken" that is already on vesting
        uint128 instantVestAmount; // amount of token to be instant vested
        uint64 lockupPeriod; // period of time in seconds during which tokens cannot be claimed
        uint64 vestingPeriod; // time period of linear tokens unlock
        uint128 claimedAmount; // counter of already claimed vested tokens
    }

    /// @notice Vested token contract
    IERC20 public vestedToken;

    /// @notice True if vesting begin time cannot be changed
    bool public vestingBeginIsLocked;

    /// @notice Timestamp of the overall vesting begin time
    uint64 public vestingBegin;

    /// @notice Mapping of IDs to vesting params
    mapping(uint256 => VestingParams) public vestings;

    /// @notice Mapping of addresses to lists of their vesting IDs
    mapping(address => uint256[]) public vestingIds;

    /// @notice Mapping of addresses to boolean values indicates that it can maintain allocations
    mapping(address => bool) public maintainers;

    /// @notice Last vesting object ID (1-based)
    uint256 public lastVestingId;

    event Claimed(address indexed account, uint256 indexed id, uint256 amount);
    event MaintainerUpdated(address indexed account, bool isMaintainer);
    event VestingBeginSet(uint256 vestingBeginTime);
    event Allocated(
        address indexed allocator,
        address[] investors,
        uint256[] ids
    );

    error IncorrectVestingBegin();
    error IncorrectVestingPeriod();
    error ZeroAmount();
    error TimeChangeIsLocked();
    error VestingAlreadyStarted();
    error BeginIsNotSet();
    error NotApplicableForVestedToken();
    error IncorrectInstantShare();
    error NothingChanged();
    error OnlyMaintainer();

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    /**
     * @notice Contract constructor
     * @param vestedToken_ Address of the vested token contract
     * @param owner_ Address of initial owner
     */
    function initialize(
        address vestedToken_,
        address owner_
    ) external initializer {
        __Ownable_init(owner_);
        vestedToken = IERC20(vestedToken_);
    }

    // USER FUNCTIONS

    /**
     * @notice Claim all available vested tokens for account
     * @param account Address to claim tokens for
     */
    function claim(address account) external {
        uint256 totalAmount;
        uint256[] storage ids = vestingIds[account];
        uint256 length = ids.length;
        uint256 id;
        uint128 amount;
        for (uint256 i = 0; i < length; ++i) {
            id = ids[i];
            amount = getAvailableBalance(id);
            if (amount > 0) {
                totalAmount += amount;
                vestings[id].claimedAmount += amount;
                emit Claimed(account, id, amount);
            }
        }
        if (totalAmount == 0) revert ZeroAmount();
        vestedToken.transfer(account, totalAmount);
    }

    // RESTRICTED FUNCTIONS

    /**
     * @notice Lock changing of vesting begin time
     */
    function lockVestingBegin() external onlyOwner {
        if (vestingBegin == 0) revert BeginIsNotSet();
        vestingBeginIsLocked = true;
    }

    /**
     * @notice Change vesting begin time
     * @param vestingBegin_ Timestamp of new time
     */
    function setVestingBegin(uint64 vestingBegin_) external onlyOwner {
        if (vestingBeginIsLocked) revert TimeChangeIsLocked();
        _checkVestingBegin();
        if (vestingBegin_ <= block.timestamp) revert IncorrectVestingBegin();
        vestingBegin = vestingBegin_;
        emit VestingBeginSet(vestingBegin_);
    }

    /**
     * @notice Updates the maintainer status of an account.
     */
    function updateMaintainer(
        address account,
        bool isMaintainer
    ) external onlyOwner {
        if (maintainers[account] == isMaintainer) revert NothingChanged();
        maintainers[account] = isMaintainer;
        emit MaintainerUpdated(account, isMaintainer);
    }

    /**
     * @notice Give vested token allocations to investors
     * @param allocParams Allocations parameters
     */
    function allocate(AllocParams[] calldata allocParams) external {
        if (msg.sender != owner() && !maintainers[msg.sender])
            revert OnlyMaintainer();

        uint256 totalAmount;
        uint256 lastId = lastVestingId;
        uint256 length = allocParams.length;
        AllocParams calldata params;
        VestingParams storage vesting;
        address[] memory investors = new address[](length);
        uint256[] memory ids = new uint256[](length);
        uint128 instantVestAmount_;
        uint128 vestAmount_;

        for (uint256 i = 0; i < length; ++i) {
            params = allocParams[i];
            if (params.vestAmount == 0) revert ZeroAmount();
            if (params.vestingPeriod == 0) revert IncorrectVestingPeriod();
            if (params.instantShare > 100) revert IncorrectInstantShare();

            totalAmount += params.vestAmount;
            vesting = vestings[++lastId];

            instantVestAmount_ = (params.instantShare == 0)
                ? 0
                : ((params.vestAmount * params.instantShare) / 100);
            vestAmount_ = params.vestAmount - instantVestAmount_;

            vesting.vestAmount = vestAmount_;
            vesting.instantVestAmount = instantVestAmount_;
            vesting.lockupPeriod = params.lockupPeriod;
            vesting.vestingPeriod = params.vestingPeriod;

            vestingIds[params.investor].push(lastId);
            investors[i] = params.investor;
            ids[i] = lastId;
        }
        lastVestingId = lastId;
        emit Allocated(msg.sender, investors, ids);
        vestedToken.transferFrom(msg.sender, address(this), totalAmount);
    }

    /**
     * @notice Withdraw accidentally received tokens of the contract to given address
     * @param to Destination address
     */
    function withdraw(address token, address to) external onlyOwner {
        if (token == address(vestedToken)) revert NotApplicableForVestedToken();

        uint256 amount = IERC20(token).balanceOf(address(this));
        if (amount == 0) revert ZeroAmount();
        SafeERC20.safeTransfer(IERC20(token), to, amount);
    }

    // VIEW

    /**
     * @notice Get total amount of available for claim tokens for account
     * @param account Account to calculate amount for
     * @return amount Total amount of available tokens
     */
    function getAvailableBalanceOf(
        address account
    ) external view returns (uint256 amount) {
        uint256[] memory ids = vestingIds[account];
        uint256 length = ids.length;
        for (uint256 i = 0; i < length; ++i) {
            amount += getAvailableBalance(ids[i]);
        }
    }

    /**
     * @notice Get amount of vesting objects for account
     * @param account Address of account
     * @return Amount of vesting objects
     */
    function vestingCountOf(address account) external view returns (uint256) {
        return vestingIds[account].length;
    }

    /**
     * @notice Get array of vesting objects IDs for account
     * @param account Address of account
     * @return Array of vesting objects IDs
     */
    function vestingIdsOf(
        address account
    ) external view returns (uint256[] memory) {
        return vestingIds[account];
    }

    /**
     * @notice Get total amount tokens for claim in future
     * @param account Account to calculate amount for
     * @return amount Total amount of tokens
     */
    function getBalanceOf(
        address account
    ) external view returns (uint256 amount) {
        uint256[] memory ids = vestingIds[account];
        VestingParams storage vestParams;
        for (uint256 i = 0; i < ids.length; ++i) {
            vestParams = vestings[ids[i]];
            amount +=
                vestParams.vestAmount +
                vestParams.instantVestAmount -
                vestParams.claimedAmount;
        }
    }

    /**
     * @notice Get amount of available for claim tokens in exact vesting object
     *         Instant vested tokens available after user lockup (vestingBegin + lockupPeriod) passed
     * @param vestingId ID of the vesting object
     * @return amount Amount of available tokens
     */
    function getAvailableBalance(
        uint256 vestingId
    ) public view returns (uint128 amount) {
        if (vestingBegin == 0) return 0;

        VestingParams storage vestParams = vestings[vestingId];
        uint256 userVestingBegin_ = vestingBegin + vestParams.lockupPeriod;
        if (block.timestamp < userVestingBegin_) return 0;

        uint256 userVestingEnd_ = userVestingBegin_ + vestParams.vestingPeriod;
        uint128 instantVestAmount_ = vestParams.instantVestAmount;
        uint128 vestAmount_ = vestParams.vestAmount;
        uint128 claimedAmount_ = vestParams.claimedAmount;

        amount =
            (
                (block.timestamp < userVestingEnd_)
                    ? uint128(
                        (vestAmount_ * (block.timestamp - userVestingBegin_)) /
                            (userVestingEnd_ - userVestingBegin_)
                    )
                    : vestAmount_
            ) +
            instantVestAmount_ -
            claimedAmount_;
    }

    function _checkVestingBegin() internal view {
        if (vestingBegin > 0 && vestingBegin <= block.timestamp)
            revert VestingAlreadyStarted();
    }
}

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

pragma solidity ^0.8.20;

import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    /// @custom:storage-location erc7201:openzeppelin.storage.Ownable
    struct OwnableStorage {
        address _owner;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;

    function _getOwnableStorage() private pure returns (OwnableStorage storage $) {
        assembly {
            $.slot := OwnableStorageLocation
        }
    }

    /**
     * @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.
     */
    function __Ownable_init(address initialOwner) internal onlyInitializing {
        __Ownable_init_unchained(initialOwner);
    }

    function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {
        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) {
        OwnableStorage storage $ = _getOwnableStorage();
        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 {
        OwnableStorage storage $ = _getOwnableStorage();
        address oldOwner = $._owner;
        $._owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.20;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Storage of the initializable contract.
     *
     * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
     * when using with upgradeable contracts.
     *
     * @custom:storage-location erc7201:openzeppelin.storage.Initializable
     */
    struct InitializableStorage {
        /**
         * @dev Indicates that the contract has been initialized.
         */
        uint64 _initialized;
        /**
         * @dev Indicates that the contract is in the process of being initialized.
         */
        bool _initializing;
    }

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;

    /**
     * @dev The contract is already initialized.
     */
    error InvalidInitialization();

    /**
     * @dev The contract is not initializing.
     */
    error NotInitializing();

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint64 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
     * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
     * production.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        // Cache values to avoid duplicated sloads
        bool isTopLevelCall = !$._initializing;
        uint64 initialized = $._initialized;

        // Allowed calls:
        // - initialSetup: the contract is not in the initializing state and no previous version was
        //                 initialized
        // - construction: the contract is initialized at version 1 (no reininitialization) and the
        //                 current contract is just being deployed
        bool initialSetup = initialized == 0 && isTopLevelCall;
        bool construction = initialized == 1 && address(this).code.length == 0;

        if (!initialSetup && !construction) {
            revert InvalidInitialization();
        }
        $._initialized = 1;
        if (isTopLevelCall) {
            $._initializing = true;
        }
        _;
        if (isTopLevelCall) {
            $._initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint64 version) {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing || $._initialized >= version) {
            revert InvalidInitialization();
        }
        $._initialized = version;
        $._initializing = true;
        _;
        $._initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        _checkInitializing();
        _;
    }

    /**
     * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
     */
    function _checkInitializing() internal view virtual {
        if (!_isInitializing()) {
            revert NotInitializing();
        }
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        // solhint-disable-next-line var-name-mixedcase
        InitializableStorage storage $ = _getInitializableStorage();

        if ($._initializing) {
            revert InvalidInitialization();
        }
        if ($._initialized != type(uint64).max) {
            $._initialized = type(uint64).max;
            emit Initialized(type(uint64).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint64) {
        return _getInitializableStorage()._initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _getInitializableStorage()._initializing;
    }

    /**
     * @dev Returns a pointer to the storage namespace.
     */
    // solhint-disable-next-line var-name-mixedcase
    function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
        assembly {
            $.slot := INITIALIZABLE_STORAGE
        }
    }
}

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

pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    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 5 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 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 : 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 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
{
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"BeginIsNotSet","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"IncorrectInstantShare","type":"error"},{"inputs":[],"name":"IncorrectVestingBegin","type":"error"},{"inputs":[],"name":"IncorrectVestingPeriod","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotApplicableForVestedToken","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NothingChanged","type":"error"},{"inputs":[],"name":"OnlyMaintainer","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"},{"inputs":[],"name":"TimeChangeIsLocked","type":"error"},{"inputs":[],"name":"VestingAlreadyStarted","type":"error"},{"inputs":[],"name":"ZeroAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"allocator","type":"address"},{"indexed":false,"internalType":"address[]","name":"investors","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"Allocated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isMaintainer","type":"bool"}],"name":"MaintainerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vestingBeginTime","type":"uint256"}],"name":"VestingBeginSet","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"investor","type":"address"},{"internalType":"uint128","name":"vestAmount","type":"uint128"},{"internalType":"uint64","name":"lockupPeriod","type":"uint64"},{"internalType":"uint64","name":"vestingPeriod","type":"uint64"},{"internalType":"uint64","name":"instantShare","type":"uint64"}],"internalType":"struct Vesting.AllocParams[]","name":"allocParams","type":"tuple[]"}],"name":"allocate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"getAvailableBalance","outputs":[{"internalType":"uint128","name":"amount","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAvailableBalanceOf","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getBalanceOf","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"vestedToken_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastVestingId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockVestingBegin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maintainers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint64","name":"vestingBegin_","type":"uint64"}],"name":"setVestingBegin","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"},{"internalType":"bool","name":"isMaintainer","type":"bool"}],"name":"updateMaintainer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingBegin","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingBeginIsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"vestingCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"vestingIdsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestings","outputs":[{"internalType":"uint128","name":"vestAmount","type":"uint128"},{"internalType":"uint128","name":"instantVestAmount","type":"uint128"},{"internalType":"uint64","name":"lockupPeriod","type":"uint64"},{"internalType":"uint64","name":"vestingPeriod","type":"uint64"},{"internalType":"uint128","name":"claimedAmount","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001961001e565b6100d0565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff161561006e5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100cd5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b61218780620000e06000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c8063821bee73116100d8578063aabef0db1161008c578063e29bc68b11610066578063e29bc68b14610470578063f2fde38b146104b6578063f940e385146104c957600080fd5b8063aabef0db14610404578063bbeb606014610438578063ca3f15671461044b57600080fd5b80639b96eece116100bd5780639b96eece146103cb5780639daba150146103de578063aa6367db146103f157600080fd5b8063821bee73146102cf5780638da5cb5b1461038e57600080fd5b80633cfe61841161013a5780635de29741116101145780635de297411461026f5780636b379010146102b4578063715018a6146102c757600080fd5b80633cfe6184146102405780634669621914610249578063485cc9551461025c57600080fd5b80631e43ccde1161016b5780631e43ccde146101c95780631e83409a146101e9578063257341a8146101fc57600080fd5b806306fc3bd7146101875780630823c56214610191575b600080fd5b61018f6104dc565b005b6101b461019f366004611c70565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101dc6101d7366004611c70565b610584565b6040516101c09190611cc7565b61018f6101f7366004611c70565b6105fd565b61023261020a366004611c70565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6040519081526020016101c0565b61023260045481565b610232610257366004611c70565b610862565b61018f61026a366004611cda565b610932565b60005461028f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c0565b61018f6102c2366004611d0d565b610af2565b61018f610c22565b6103456102dd366004611d37565b600160208190526000918252604090912080549101546fffffffffffffffffffffffffffffffff808316927001000000000000000000000000000000009081900482169267ffffffffffffffff80821693680100000000000000008304909116929091041685565b604080516fffffffffffffffffffffffffffffffff9687168152948616602086015267ffffffffffffffff9384169085015291166060830152909116608082015260a0016101c0565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1661028f565b6102326103d9366004611c70565b610c36565b61018f6103ec366004611d50565b610d5b565b61018f6103ff366004611dd3565b61130f565b610417610412366004611d37565b611408565b6040516fffffffffffffffffffffffffffffffff90911681526020016101c0565b610232610446366004611e0a565b61156e565b6000546101b49074010000000000000000000000000000000000000000900460ff1681565b60005461049d907501000000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016101c0565b61018f6104c4366004611c70565b61159f565b61018f6104d7366004611cda565b611608565b6104e4611742565b600080547501000000000000000000000000000000000000000000900467ffffffffffffffff169003610543576040517f60c187e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260209081526040918290208054835181840281018401909452808452606093928301828280156105f157602002820191906000526020600020905b8154815260200190600101908083116105dd575b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812080548280805b838110156107815784818154811061064257610642611e34565b9060005260206000200154925061065883611408565b91506fffffffffffffffffffffffffffffffff8216156107795761068e6fffffffffffffffffffffffffffffffff831687611e92565b600084815260016020819052604090912001805491975083916010906106db90849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16611ea5565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550828773ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8460405161077091906fffffffffffffffffffffffffffffffff91909116815260200190565b60405180910390a35b600101610628565b50846000036107bc576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152602482018890529091169063a9059cbb906044016020604051808303816000875af1158015610835573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108599190611ed5565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260209081526040808320805482518185028101850190935280835284938301828280156108cc57602002820191906000526020600020905b8154815260200190600101908083116108b8575b505083519394506000925050505b8181101561092a576109048382815181106108f7576108f7611e34565b6020026020010151611408565b610920906fffffffffffffffffffffffffffffffff1685611e92565b93506001016108da565b505050919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff1660008115801561097d5750825b905060008267ffffffffffffffff16600114801561099a5750303b155b9050811580156109a8575080155b156109df576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001660011785558315610a405784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b610a49866117d0565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff891617905583156108595784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a150505050505050565b610afa611742565b60005474010000000000000000000000000000000000000000900460ff1615610b4f576040517feb77e18d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b576117e1565b428167ffffffffffffffff1611610b9a576040517f1c3c07fb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff16750100000000000000000000000000000000000000000067ffffffffffffffff8416908102919091179091556040519081527f7ec90ddc0fe1ff8785a1d08350d1015d927f2b954385b0e085cb416af172790d9060200160405180910390a150565b610c2a611742565b610c346000611872565b565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020908152604080832080548251818502810185019093528083528493830182828015610ca057602002820191906000526020600020905b815481526020019060010190808311610c8c575b50505050509050600080600090505b825181101561092a5760016000848381518110610cce57610cce611e34565b6020908102919091018101518252810191909152604001600020600181015481549193506fffffffffffffffffffffffffffffffff70010000000000000000000000000000000091829004811692610d2b92810482169116611ea5565b610d359190611ef2565b610d51906fffffffffffffffffffffffffffffffff1685611e92565b9350600101610caf565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff163314801590610db257503360009081526003602052604090205460ff16155b15610de9576040517f710bcc4000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600454600090823683808367ffffffffffffffff811115610e0c57610e0c611f1b565b604051908082528060200260200182016040528015610e35578160200160208202803683370190505b50905060008467ffffffffffffffff811115610e5357610e53611f1b565b604051908082528060200260200182016040528015610e7c578160200160208202803683370190505b50905060008060005b8781101561121e578b8b82818110610e9f57610e9f611e34565b905060a002019650866020016020810190610eba9190611f4a565b6fffffffffffffffffffffffffffffffff16600003610f05576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f156080880160608901611d0d565b67ffffffffffffffff16600003610f58576040517fef040e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6064610f6a60a0890160808a01611d0d565b67ffffffffffffffff161115610fac576040517fc09cc8bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fbc6040880160208901611f4a565b610fd8906fffffffffffffffffffffffffffffffff168b611e92565b995060016000610fe78b611f7c565b9a508a8152602001908152602001600020955086608001602081019061100d9190611d0d565b67ffffffffffffffff161561106157606461102e60a0890160808a01611d0d565b67ffffffffffffffff1661104860408a0160208b01611f4a565b6110529190611fb4565b61105c9190612017565b611064565b60005b9250826110776040890160208a01611f4a565b6110819190611ef2565b6fffffffffffffffffffffffffffffffff8481167001000000000000000000000000000000000290821617875591506110c06060880160408901611d0d565b6001870180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905561110b6080880160608901611d0d565b60018701805467ffffffffffffffff9290921668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff9092169190911790556002600061116460208a018a611c70565b73ffffffffffffffffffffffffffffffffffffffff1681526020808201929092526040016000908120805460018101825590825290829020018a90556111ac90880188611c70565b8582815181106111be576111be611e34565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508884828151811061120b5761120b611e34565b6020908102919091010152600101610e85565b50600488905560405133907f1fa5cc2a69d97904cd19ba493ecd201e8e25b249126297404efd95a96bb51fff906112589087908790612046565b60405180910390a26000546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018b905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af11580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190611ed5565b505050505050505050505050565b611317611742565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604090205481151560ff90911615150361137e576040517f06923abf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821660008181526003602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f2098a4098c1f50924be4b44fa1120ec3af0426e0e4fe723666e38659c252385e910160405180910390a25050565b600080547501000000000000000000000000000000000000000000900467ffffffffffffffff16810361143d57506000919050565b600082815260016020819052604082209081015482549192916114869167ffffffffffffffff9081169175010000000000000000000000000000000000000000009004166120aa565b67ffffffffffffffff169050804210156114a4575060009392505050565b60018201546000906114cc9068010000000000000000900467ffffffffffffffff1683611e92565b835460018501549192506fffffffffffffffffffffffffffffffff7001000000000000000000000000000000008083048216939282169204168083428611611514578361154e565b61151e87876120cb565b61152888426120cb565b611544906fffffffffffffffffffffffffffffffff87166120de565b61154e91906120f5565b6115589190611ea5565b6115629190611ef2565b98975050505050505050565b6002602052816000526040600020818154811061158a57600080fd5b90600052602060002001600091509150505481565b6115a7611742565b73ffffffffffffffffffffffffffffffffffffffff81166115fc576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61160581611872565b50565b611610611742565b60005473ffffffffffffffffffffffffffffffffffffffff90811690831603611665576040517f14497d1900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f69190612109565b905080600003611732576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61173d838383611908565b505050565b336117817f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016115f3565b6117d8611995565b611605816119fc565b6000547501000000000000000000000000000000000000000000900467ffffffffffffffff161580159061183b575060005442750100000000000000000000000000000000000000000090910467ffffffffffffffff1611155b15610c34576040517f72de7acd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261173d908490611a04565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610c34576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115a7611995565b6000611a2673ffffffffffffffffffffffffffffffffffffffff841683611a9a565b90508051600014158015611a4b575080806020019051810190611a499190611ed5565b155b1561173d576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024016115f3565b6060611aa883836000611ab1565b90505b92915050565b606081471015611aef576040517fcd7860590000000000000000000000000000000000000000000000000000000081523060048201526024016115f3565b6000808573ffffffffffffffffffffffffffffffffffffffff168486604051611b189190612122565b60006040518083038185875af1925050503d8060008114611b55576040519150601f19603f3d011682016040523d82523d6000602084013e611b5a565b606091505b5091509150611b6a868383611b76565b925050505b9392505050565b606082611b8b57611b8682611c05565b611b6f565b8151158015611baf575073ffffffffffffffffffffffffffffffffffffffff84163b155b15611bfe576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024016115f3565b5080611b6f565b805115611c155780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff81168114611c6b57600080fd5b919050565b600060208284031215611c8257600080fd5b611aa882611c47565b60008151808452602080850194506020840160005b83811015611cbc57815187529582019590820190600101611ca0565b509495945050505050565b602081526000611aa86020830184611c8b565b60008060408385031215611ced57600080fd5b611cf683611c47565b9150611d0460208401611c47565b90509250929050565b600060208284031215611d1f57600080fd5b813567ffffffffffffffff81168114611b6f57600080fd5b600060208284031215611d4957600080fd5b5035919050565b60008060208385031215611d6357600080fd5b823567ffffffffffffffff80821115611d7b57600080fd5b818501915085601f830112611d8f57600080fd5b813581811115611d9e57600080fd5b86602060a083028501011115611db357600080fd5b60209290920196919550909350505050565b801515811461160557600080fd5b60008060408385031215611de657600080fd5b611def83611c47565b91506020830135611dff81611dc5565b809150509250929050565b60008060408385031215611e1d57600080fd5b611e2683611c47565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115611aab57611aab611e63565b6fffffffffffffffffffffffffffffffff818116838216019080821115611ece57611ece611e63565b5092915050565b600060208284031215611ee757600080fd5b8151611b6f81611dc5565b6fffffffffffffffffffffffffffffffff828116828216039080821115611ece57611ece611e63565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060208284031215611f5c57600080fd5b81356fffffffffffffffffffffffffffffffff81168114611b6f57600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611fad57611fad611e63565b5060010190565b6fffffffffffffffffffffffffffffffff818116838216028082169190828114611fe057611fe0611e63565b505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006fffffffffffffffffffffffffffffffff8084168061203a5761203a611fe8565b92169190910492915050565b604080825283519082018190526000906020906060840190828701845b8281101561209557815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101612063565b5050508381036020850152611b6a8186611c8b565b67ffffffffffffffff818116838216019080821115611ece57611ece611e63565b81810381811115611aab57611aab611e63565b8082028115828204841417611aab57611aab611e63565b60008261210457612104611fe8565b500490565b60006020828403121561211b57600080fd5b5051919050565b6000825160005b818110156121435760208186018101518583015201612129565b50600092019182525091905056fea26469706673582212209cafbff8a21211e9ca421abcfc928abdcb241a81923c4fedc3763139b95706ce64736f6c63430008180033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101825760003560e01c8063821bee73116100d8578063aabef0db1161008c578063e29bc68b11610066578063e29bc68b14610470578063f2fde38b146104b6578063f940e385146104c957600080fd5b8063aabef0db14610404578063bbeb606014610438578063ca3f15671461044b57600080fd5b80639b96eece116100bd5780639b96eece146103cb5780639daba150146103de578063aa6367db146103f157600080fd5b8063821bee73146102cf5780638da5cb5b1461038e57600080fd5b80633cfe61841161013a5780635de29741116101145780635de297411461026f5780636b379010146102b4578063715018a6146102c757600080fd5b80633cfe6184146102405780634669621914610249578063485cc9551461025c57600080fd5b80631e43ccde1161016b5780631e43ccde146101c95780631e83409a146101e9578063257341a8146101fc57600080fd5b806306fc3bd7146101875780630823c56214610191575b600080fd5b61018f6104dc565b005b6101b461019f366004611c70565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101dc6101d7366004611c70565b610584565b6040516101c09190611cc7565b61018f6101f7366004611c70565b6105fd565b61023261020a366004611c70565b73ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b6040519081526020016101c0565b61023260045481565b610232610257366004611c70565b610862565b61018f61026a366004611cda565b610932565b60005461028f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c0565b61018f6102c2366004611d0d565b610af2565b61018f610c22565b6103456102dd366004611d37565b600160208190526000918252604090912080549101546fffffffffffffffffffffffffffffffff808316927001000000000000000000000000000000009081900482169267ffffffffffffffff80821693680100000000000000008304909116929091041685565b604080516fffffffffffffffffffffffffffffffff9687168152948616602086015267ffffffffffffffff9384169085015291166060830152909116608082015260a0016101c0565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1661028f565b6102326103d9366004611c70565b610c36565b61018f6103ec366004611d50565b610d5b565b61018f6103ff366004611dd3565b61130f565b610417610412366004611d37565b611408565b6040516fffffffffffffffffffffffffffffffff90911681526020016101c0565b610232610446366004611e0a565b61156e565b6000546101b49074010000000000000000000000000000000000000000900460ff1681565b60005461049d907501000000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016101c0565b61018f6104c4366004611c70565b61159f565b61018f6104d7366004611cda565b611608565b6104e4611742565b600080547501000000000000000000000000000000000000000000900467ffffffffffffffff169003610543576040517f60c187e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260209081526040918290208054835181840281018401909452808452606093928301828280156105f157602002820191906000526020600020905b8154815260200190600101908083116105dd575b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812080548280805b838110156107815784818154811061064257610642611e34565b9060005260206000200154925061065883611408565b91506fffffffffffffffffffffffffffffffff8216156107795761068e6fffffffffffffffffffffffffffffffff831687611e92565b600084815260016020819052604090912001805491975083916010906106db90849070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16611ea5565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550828773ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a8460405161077091906fffffffffffffffffffffffffffffffff91909116815260200190565b60405180910390a35b600101610628565b50846000036107bc576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8881166004830152602482018890529091169063a9059cbb906044016020604051808303816000875af1158015610835573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108599190611ed5565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600260209081526040808320805482518185028101850190935280835284938301828280156108cc57602002820191906000526020600020905b8154815260200190600101908083116108b8575b505083519394506000925050505b8181101561092a576109048382815181106108f7576108f7611e34565b6020026020010151611408565b610920906fffffffffffffffffffffffffffffffff1685611e92565b93506001016108da565b505050919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff1660008115801561097d5750825b905060008267ffffffffffffffff16600114801561099a5750303b155b9050811580156109a8575080155b156109df576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001660011785558315610a405784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff16680100000000000000001785555b610a49866117d0565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff891617905583156108595784547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a150505050505050565b610afa611742565b60005474010000000000000000000000000000000000000000900460ff1615610b4f576040517feb77e18d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b576117e1565b428167ffffffffffffffff1611610b9a576040517f1c3c07fb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080547fffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffff16750100000000000000000000000000000000000000000067ffffffffffffffff8416908102919091179091556040519081527f7ec90ddc0fe1ff8785a1d08350d1015d927f2b954385b0e085cb416af172790d9060200160405180910390a150565b610c2a611742565b610c346000611872565b565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020908152604080832080548251818502810185019093528083528493830182828015610ca057602002820191906000526020600020905b815481526020019060010190808311610c8c575b50505050509050600080600090505b825181101561092a5760016000848381518110610cce57610cce611e34565b6020908102919091018101518252810191909152604001600020600181015481549193506fffffffffffffffffffffffffffffffff70010000000000000000000000000000000091829004811692610d2b92810482169116611ea5565b610d359190611ef2565b610d51906fffffffffffffffffffffffffffffffff1685611e92565b9350600101610caf565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff163314801590610db257503360009081526003602052604090205460ff16155b15610de9576040517f710bcc4000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600454600090823683808367ffffffffffffffff811115610e0c57610e0c611f1b565b604051908082528060200260200182016040528015610e35578160200160208202803683370190505b50905060008467ffffffffffffffff811115610e5357610e53611f1b565b604051908082528060200260200182016040528015610e7c578160200160208202803683370190505b50905060008060005b8781101561121e578b8b82818110610e9f57610e9f611e34565b905060a002019650866020016020810190610eba9190611f4a565b6fffffffffffffffffffffffffffffffff16600003610f05576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f156080880160608901611d0d565b67ffffffffffffffff16600003610f58576040517fef040e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6064610f6a60a0890160808a01611d0d565b67ffffffffffffffff161115610fac576040517fc09cc8bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fbc6040880160208901611f4a565b610fd8906fffffffffffffffffffffffffffffffff168b611e92565b995060016000610fe78b611f7c565b9a508a8152602001908152602001600020955086608001602081019061100d9190611d0d565b67ffffffffffffffff161561106157606461102e60a0890160808a01611d0d565b67ffffffffffffffff1661104860408a0160208b01611f4a565b6110529190611fb4565b61105c9190612017565b611064565b60005b9250826110776040890160208a01611f4a565b6110819190611ef2565b6fffffffffffffffffffffffffffffffff8481167001000000000000000000000000000000000290821617875591506110c06060880160408901611d0d565b6001870180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905561110b6080880160608901611d0d565b60018701805467ffffffffffffffff9290921668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff9092169190911790556002600061116460208a018a611c70565b73ffffffffffffffffffffffffffffffffffffffff1681526020808201929092526040016000908120805460018101825590825290829020018a90556111ac90880188611c70565b8582815181106111be576111be611e34565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508884828151811061120b5761120b611e34565b6020908102919091010152600101610e85565b50600488905560405133907f1fa5cc2a69d97904cd19ba493ecd201e8e25b249126297404efd95a96bb51fff906112589087908790612046565b60405180910390a26000546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018b905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd906064016020604051808303816000875af11580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190611ed5565b505050505050505050505050565b611317611742565b73ffffffffffffffffffffffffffffffffffffffff821660009081526003602052604090205481151560ff90911615150361137e576040517f06923abf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821660008181526003602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527f2098a4098c1f50924be4b44fa1120ec3af0426e0e4fe723666e38659c252385e910160405180910390a25050565b600080547501000000000000000000000000000000000000000000900467ffffffffffffffff16810361143d57506000919050565b600082815260016020819052604082209081015482549192916114869167ffffffffffffffff9081169175010000000000000000000000000000000000000000009004166120aa565b67ffffffffffffffff169050804210156114a4575060009392505050565b60018201546000906114cc9068010000000000000000900467ffffffffffffffff1683611e92565b835460018501549192506fffffffffffffffffffffffffffffffff7001000000000000000000000000000000008083048216939282169204168083428611611514578361154e565b61151e87876120cb565b61152888426120cb565b611544906fffffffffffffffffffffffffffffffff87166120de565b61154e91906120f5565b6115589190611ea5565b6115629190611ef2565b98975050505050505050565b6002602052816000526040600020818154811061158a57600080fd5b90600052602060002001600091509150505481565b6115a7611742565b73ffffffffffffffffffffffffffffffffffffffff81166115fc576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61160581611872565b50565b611610611742565b60005473ffffffffffffffffffffffffffffffffffffffff90811690831603611665576040517f14497d1900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009073ffffffffffffffffffffffffffffffffffffffff8416906370a0823190602401602060405180830381865afa1580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f69190612109565b905080600003611732576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61173d838383611908565b505050565b336117817f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614610c34576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016115f3565b6117d8611995565b611605816119fc565b6000547501000000000000000000000000000000000000000000900467ffffffffffffffff161580159061183b575060005442750100000000000000000000000000000000000000000090910467ffffffffffffffff1611155b15610c34576040517f72de7acd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080547fffffffffffffffffffffffff0000000000000000000000000000000000000000811673ffffffffffffffffffffffffffffffffffffffff848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261173d908490611a04565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610c34576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115a7611995565b6000611a2673ffffffffffffffffffffffffffffffffffffffff841683611a9a565b90508051600014158015611a4b575080806020019051810190611a499190611ed5565b155b1561173d576040517f5274afe700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff841660048201526024016115f3565b6060611aa883836000611ab1565b90505b92915050565b606081471015611aef576040517fcd7860590000000000000000000000000000000000000000000000000000000081523060048201526024016115f3565b6000808573ffffffffffffffffffffffffffffffffffffffff168486604051611b189190612122565b60006040518083038185875af1925050503d8060008114611b55576040519150601f19603f3d011682016040523d82523d6000602084013e611b5a565b606091505b5091509150611b6a868383611b76565b925050505b9392505050565b606082611b8b57611b8682611c05565b611b6f565b8151158015611baf575073ffffffffffffffffffffffffffffffffffffffff84163b155b15611bfe576040517f9996b31500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff851660048201526024016115f3565b5080611b6f565b805115611c155780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b803573ffffffffffffffffffffffffffffffffffffffff81168114611c6b57600080fd5b919050565b600060208284031215611c8257600080fd5b611aa882611c47565b60008151808452602080850194506020840160005b83811015611cbc57815187529582019590820190600101611ca0565b509495945050505050565b602081526000611aa86020830184611c8b565b60008060408385031215611ced57600080fd5b611cf683611c47565b9150611d0460208401611c47565b90509250929050565b600060208284031215611d1f57600080fd5b813567ffffffffffffffff81168114611b6f57600080fd5b600060208284031215611d4957600080fd5b5035919050565b60008060208385031215611d6357600080fd5b823567ffffffffffffffff80821115611d7b57600080fd5b818501915085601f830112611d8f57600080fd5b813581811115611d9e57600080fd5b86602060a083028501011115611db357600080fd5b60209290920196919550909350505050565b801515811461160557600080fd5b60008060408385031215611de657600080fd5b611def83611c47565b91506020830135611dff81611dc5565b809150509250929050565b60008060408385031215611e1d57600080fd5b611e2683611c47565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820180821115611aab57611aab611e63565b6fffffffffffffffffffffffffffffffff818116838216019080821115611ece57611ece611e63565b5092915050565b600060208284031215611ee757600080fd5b8151611b6f81611dc5565b6fffffffffffffffffffffffffffffffff828116828216039080821115611ece57611ece611e63565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060208284031215611f5c57600080fd5b81356fffffffffffffffffffffffffffffffff81168114611b6f57600080fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611fad57611fad611e63565b5060010190565b6fffffffffffffffffffffffffffffffff818116838216028082169190828114611fe057611fe0611e63565b505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006fffffffffffffffffffffffffffffffff8084168061203a5761203a611fe8565b92169190910492915050565b604080825283519082018190526000906020906060840190828701845b8281101561209557815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101612063565b5050508381036020850152611b6a8186611c8b565b67ffffffffffffffff818116838216019080821115611ece57611ece611e63565b81810381811115611aab57611aab611e63565b8082028115828204841417611aab57611aab611e63565b60008261210457612104611fe8565b500490565b60006020828403121561211b57600080fd5b5051919050565b6000825160005b818110156121435760208186018101518583015201612129565b50600092019182525091905056fea26469706673582212209cafbff8a21211e9ca421abcfc928abdcb241a81923c4fedc3763139b95706ce64736f6c63430008180033

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

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.