ETH Price: $3,414.08 (-0.89%)
Gas: 2 Gwei

Contract

0x3d482668C897916100ca57BaA522Ab1Eb2Bdd029
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim202221402024-07-02 23:34:591 hr ago1719963299IN
0x3d482668...Eb2Bdd029
0 ETH0.000249652.68391542
Claim202175572024-07-02 8:12:2317 hrs ago1719907943IN
0x3d482668...Eb2Bdd029
0 ETH0.000405794.36251812
Claim202143602024-07-01 21:28:4727 hrs ago1719869327IN
0x3d482668...Eb2Bdd029
0 ETH0.000516625.55395738
Claim202116332024-07-01 12:21:2337 hrs ago1719836483IN
0x3d482668...Eb2Bdd029
0 ETH0.00063475.74373971
Claim202075812024-06-30 22:46:232 days ago1719787583IN
0x3d482668...Eb2Bdd029
0 ETH0.0004846.37528836
Claim202038532024-06-30 10:17:472 days ago1719742667IN
0x3d482668...Eb2Bdd029
0 ETH0.000146991.93620901
Claim202038302024-06-30 10:13:112 days ago1719742391IN
0x3d482668...Eb2Bdd029
0 ETH0.000214212.30296658
Claim202037842024-06-30 10:03:592 days ago1719741839IN
0x3d482668...Eb2Bdd029
0 ETH0.000285642.58494734
Claim201995092024-06-29 19:44:113 days ago1719690251IN
0x3d482668...Eb2Bdd029
0 ETH0.000280962.54255688
Claim201958782024-06-29 7:33:113 days ago1719646391IN
0x3d482668...Eb2Bdd029
0 ETH0.000231412.09422038
Claim201882032024-06-28 5:50:114 days ago1719553811IN
0x3d482668...Eb2Bdd029
0 ETH0.000176031.89247265
Claim201825902024-06-27 11:00:475 days ago1719486047IN
0x3d482668...Eb2Bdd029
0 ETH0.000483826.37294137
Claim201825732024-06-27 10:57:235 days ago1719485843IN
0x3d482668...Eb2Bdd029
0 ETH0.000411175.41594049
Claim201767052024-06-26 15:17:116 days ago1719415031IN
0x3d482668...Eb2Bdd029
0 ETH0.0015119313.68216765
Withdraw Request...201759002024-06-26 12:35:356 days ago1719405335IN
0x3d482668...Eb2Bdd029
0 ETH0.000374115.29373048
Claim201756012024-06-26 11:35:356 days ago1719401735IN
0x3d482668...Eb2Bdd029
0 ETH0.000321282.90745617
Claim201733822024-06-26 4:10:116 days ago1719375011IN
0x3d482668...Eb2Bdd029
0 ETH0.00021722.86105945
Claim201715722024-06-25 22:06:237 days ago1719353183IN
0x3d482668...Eb2Bdd029
0 ETH0.000535324.84436193
Claim201712192024-06-25 20:55:477 days ago1719348947IN
0x3d482668...Eb2Bdd029
0 ETH0.000551594.9915898
Claim201707442024-06-25 19:19:597 days ago1719343199IN
0x3d482668...Eb2Bdd029
0 ETH0.000922348.34671922
Claim201705442024-06-25 18:39:357 days ago1719340775IN
0x3d482668...Eb2Bdd029
0 ETH0.000754126.82443437
Claim201692862024-06-25 14:26:477 days ago1719325607IN
0x3d482668...Eb2Bdd029
0 ETH0.000927748.39557604
Claim201663932024-06-25 4:44:357 days ago1719290675IN
0x3d482668...Eb2Bdd029
0 ETH0.000459914.16199797
Claim201643632024-06-24 21:55:598 days ago1719266159IN
0x3d482668...Eb2Bdd029
0 ETH0.000637865.7723601
Claim201642932024-06-24 21:41:478 days ago1719265307IN
0x3d482668...Eb2Bdd029
0 ETH0.000825047.46622716
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x3357974c...A18fe3abD
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Vesting

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 200 runs

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

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

struct CreateVestingInput {
    address user;
    uint128 amount;
}

/**
 * @param rate percentage vested from total amount during the phase in BPS
 * @param endAt Time when phase ends
 * @param minimumClaimablePeriod for linear vesting it would be "1 seconds", for weekly westing it would be "1 weeks", if not set(set to zero) user will be able to claim only after phase ends
 */
struct Phase {
    uint32 rate;
    uint40 endAt;
    uint32 minimumClaimablePeriod;
}

/**
 * @title Vesting
 * @dev no user can claim while contract is in locked state
 * @dev Contract that is used for token vesting by some predefined schedule. It supports cases when part(percentage) of the token was already given
 * to users and rest will be claimed here. It supports many phases and cliff at the start. Also it supports vesting by block, which means user can vest every block some tokens, 
 * by percentage defined in phase percetage.
 * For time we are using uint40, which max number is 1099511627776, presented in seconds is more than suitable for our usage.
 */
contract Vesting is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /**
     * @param amount Total amount allocated for user
     * @param amountClaimed Total amount claimed by user so far
     * @param lastClaimAt Timestamp from user last claim
     */
    struct UserVesting {
        uint40 lastClaimAt;
        bool init;
        // during refundGracePeriod (i.e. 1, 3 or 7 days after vesting starts, user can request refund if did not claim any tokens)
        // after refundGracePeriod expires, user will be then enabled refund on fundraise chain.
        bool requestedRefund;
        uint256 amount;
        uint256 amountClaimed;
    }

    uint128 public constant BASIS_POINT_RATE_CONVERTER = 10_000; // Basis Points(bps) 1% = 100bps
    uint256 public constant MAX_ALLOWED_PHASES = 30;

    string public name;

    bool public refundMode; 
    bool public requestedRefundWithdrawn;
    bool public refundWithdrawn;
    uint40 public startDateAt;
    uint40 public vestingEndAt;
    uint16 public claimableAtStart; // in BPS
    uint32  public refundGracePeriodDuration; // in seconds

    IERC20 public vestedToken;

    // when refund mode is on this means complete project will be refunded as terms has been nreached. 
    // i.e. price is bellow IDO Price after 48 hours, etc. 
    uint256 public totalAmountAllocated; // Amount owner allocated for all users
    uint256 public totalAmountClaimed; // Amount claimed by all users
    uint256 public totalAmountRefundRequested; // Amount reserved for refund, requested by users

    Phase[] public phases;
    mapping(address => UserVesting) public vestings;
    
    // it is hard to add user and then remove it if cancle requestRefund. SO here wew ill store all users
    // that requestedRefund. Later we will check flag in UserVesting
    address[] public refundRequestedUsersAtLeastOnce;

    event NewVestingCreated(address indexed user, uint256 amount);
    event NewClaim(address indexed user, uint256 amountClaimed);
    event RefundRequested(address indexed user);
    event RefundRequestedPulledBack(address indexed user);
    event RefundRequestedWithdrawn(address indexed user, uint256 amount);
    event RefundForAllWithdrawn(address indexed user, uint256 amount);

    constructor(
        IERC20 _vestedToken,
        string memory _name,
        uint40 _startDateAt,
        uint16 _claimableAtStart,
        Phase[] memory _phases,
        uint32 _refundGracePeriodDuration
    ) payable Ownable() {
        _initialize(
            _vestedToken,
            _name,
            _startDateAt,
            _claimableAtStart,
            _phases,
            _refundGracePeriodDuration
        );
    }

    /**
     * @notice owner can reinitialize vesting schedule only if vesting did not started
     */
    function reinitialize(
        IERC20 _vestedToken,
        string memory _name,
        uint40 _startDateAt,
        uint16 _claimableAtStart,
        Phase[] memory _phases,
        uint32 _refundGracePeriodDuration
    ) external onlyOwner {
        require(totalAmountClaimed == 0, "claim already started");
 
        _initialize(
            _vestedToken,
            _name,
            _startDateAt,
            _claimableAtStart,
            _phases,
            _refundGracePeriodDuration
        );
    }

    function getNumberOfRefundRequestedUsersAtLeastOnce() public view returns (uint256) {
        return refundRequestedUsersAtLeastOnce.length;
    }

    function getRefundRequestedUsersAtLeastOnceVesting(uint256 index) public view returns (UserVesting memory userVesting) {
        address user = refundRequestedUsersAtLeastOnce[index];

        userVesting = vestings[user];
    }

    /**
     * @notice this is to make vesting refundMode. This method is used if e.g we will refund launchpad but we need to return not vested tokens, we need to make it 
     * to stop vesting contract.
     */
    function setRefundMode(bool _refundMode) external onlyOwner {
        refundMode = _refundMode;
    }

    function getUserVesting(address _userAddress) public view returns (UserVesting memory) {
        return vestings[_userAddress];
    }

    /**
     * @notice create vesting for user, only one vesting per user address
     * @dev owner needs to first deploy enough tokens to vesting contract address
     */
    function createVestings(CreateVestingInput[] calldata vestingsInput, bool depositCheck) external onlyOwner {
        require(vestingsInput.length > 0, "vestingsInput empty");
        require(block.timestamp < startDateAt, "vesting started");

        uint256 totalDepositedAmount = getDepositedAmount();
        uint256 amountAllocated;

        for (uint64 i = 0; i < vestingsInput.length; i++) {
            amountAllocated += vestingsInput[i].amount;
        }

        if (depositCheck) {
            uint256 totalTokenAvailable = totalDepositedAmount + totalAmountClaimed - totalAmountAllocated;
            require(totalTokenAvailable >= amountAllocated, "not enough token deposited");
        }

        for (uint64 i = 0; i < vestingsInput.length; i++) {
            _createVesting(vestingsInput[i]);
        }
    }

    /**
     * @dev method which is used for claiming if any tokens are available for claim
     */
    function claim() external nonReentrant {
        require(!refundMode, "vesting is refunded");

        address user = _msgSender();
        UserVesting storage vesting = vestings[user];
        require(!vesting.requestedRefund, "user req refund");

        require(vesting.init, "user is not participating");
        require(vesting.amount - vesting.amountClaimed > 0, "all amount claimed");
        
        uint256 claimableAmount = _claimable(vesting);
        require(getDepositedAmount() >= claimableAmount, "not enough token deposited for claim");

        require(claimableAmount > 0, "nothing to claim currently");

        totalAmountClaimed += claimableAmount;
        vesting.amountClaimed += claimableAmount;
        vesting.lastClaimAt = uint40(block.timestamp);

        assert(vesting.amountClaimed <= vesting.amount);
        assert(totalAmountClaimed <= totalAmountAllocated);

        vestedToken.safeTransfer(user, claimableAmount);
        emit NewClaim(user, claimableAmount);
    }

    /**
     * @dev return amount user can claim from locked tokens at the moment
     */
    function claimable(address _user) external view returns (uint256 amount) {
        if (refundMode) {
            return 0;
        }

        amount = _claimable(vestings[_user]);
    }

    function getDepositedAmount() public view returns (uint256 amount) {
        amount = vestedToken.balanceOf(address(this));
    }

    /**
     * @dev method which is used for user to request refund
     */
    function requestRefund() external nonReentrant {
        address user = _msgSender();
        UserVesting storage vesting = vestings[user];

        require(vesting.init, "user is not participating");
        require(!vesting.requestedRefund , "already requested");
        require(vesting.amountClaimed == 0, "user already claimed");
        require(block.timestamp <= (startDateAt + refundGracePeriodDuration), "refund period passed");

        vesting.requestedRefund = true;
        totalAmountRefundRequested += vesting.amount;
        totalAmountAllocated -= vesting.amount;
        refundRequestedUsersAtLeastOnce.push(user);
        
        emit RefundRequested(user);
    }

    /**
     * @dev method which is used for user to request refund
     */
    function pullBackRequestRefund() external nonReentrant {
        address user = _msgSender();
        UserVesting storage vesting = vestings[user];

        require(vesting.init, "user is not participating");
        require(vesting.amountClaimed == 0, "user already claimed");
        require(vesting.requestedRefund, "nothin to pull back");
        require(block.timestamp <= (startDateAt + refundGracePeriodDuration), "refund period passed");
        
        vesting.requestedRefund = false;
        totalAmountRefundRequested -= vesting.amount;
        totalAmountAllocated += vesting.amount;

        emit RefundRequestedPulledBack(user);
    }

    /**
     * @dev Returns time until next vesting batch will be unlocked for vesting contract provided in arguments
     * in case of linear vesting (or next block vesting) it is returned 1, which for the caller indicates it will be next block
     * for other use cases it is returned time when next phase will be available
     */
    function nextBatchAt() external view returns (uint256) {
        if (block.timestamp >= vestingEndAt) {
            return vestingEndAt;
        }

        // we assume all vesting contracts release at least some funds on start date/TGE
        if (block.timestamp < startDateAt) {
            return startDateAt;
        }

        uint256 nextBatchIn;
        uint256 prevEndDate = startDateAt;
        
        // iterate over phases until we find current phase contract does not returns phases length
        for (uint256 i = 0; block.timestamp > prevEndDate; i++) {
            Phase memory phase = phases[i];
            if (block.timestamp <= phase.endAt) {
                // vesting per sec/block
                if (phase.minimumClaimablePeriod == 1) {
                    nextBatchIn = 1;
                } else if (phase.minimumClaimablePeriod == 0) {
                    // vested at the end of the phase
                    nextBatchIn = phase.endAt;
                } else {
                    // if the funds are released in batches in current phase every `minimumClaimablePeriod` time,
                    nextBatchIn = block.timestamp + phase.minimumClaimablePeriod - ((block.timestamp - prevEndDate) % phase.minimumClaimablePeriod);
                }
                break;
            }
            
            prevEndDate = phase.endAt;
        }

        return nextBatchIn;
    }

    /**
     * @notice rescue any token accidentally sent to this contract
     */
    function emergencyWithdrawToken(IERC20 token) external onlyOwner {
        token.safeTransfer(_msgSender(), token.balanceOf(address(this)));
    }

    /**
     * @notice Move vesting to another address in case user lose access to his original account
    */
    function moveVesting(address from, address to) external onlyOwner {
        UserVesting memory vestingFrom = vestings[from];
        require(vestingFrom.init, "`from` no active vesting");
        require(vestingFrom.amount - vestingFrom.amountClaimed > 0, "`from` all amount claimed");

        UserVesting memory vestingTo = vestings[to];
        require(!vestingTo.init, "`to` has registered listing");
        require(to != address(0), "`to` must not be 0 addr");

        vestings[to] = vestingFrom;
        delete vestings[from];
    }

    /**
     * @dev withdraw toknes which requested refund. These tokens will be returned to the project and user will be enabled refund on fundraiseChain
     */
    function withdrawRequestRefundToken() external onlyOwner {
        require(!requestedRefundWithdrawn, "already withdrawn");
        require(block.timestamp > startDateAt + refundGracePeriodDuration, "refund period active");
        uint256 vestedbalance = vestedToken.balanceOf(address(this));
        require(vestedbalance >= totalAmountRefundRequested, "not enough tokens");

        requestedRefundWithdrawn = true;
        vestedToken.safeTransfer(msg.sender, totalAmountRefundRequested);

        emit RefundRequestedWithdrawn(msg.sender, totalAmountRefundRequested);
    }

    /**
     * @dev withdraw refund tokens. These tokens will be returned to project and user will be enabled refund on fundraiseChain
     */
    function withdrawRefundForAll() external onlyOwner {
        require(!refundWithdrawn, "already withdrawn");
        require(refundMode, "refund mode is off");

        refundWithdrawn = true;
        vestedToken.safeTransfer(msg.sender, vestedToken.balanceOf(address(this)));

        emit RefundForAllWithdrawn(msg.sender, totalAmountRefundRequested);
    }

    function _initialize(
        IERC20 _vestedToken,
        string memory _name,
        uint40 _startDateAt,
        uint16 _claimableAtStart,
        Phase[] memory _phases,
        uint32 _refundGracePeriodDuration
    ) private {
        require(_phases.length <= MAX_ALLOWED_PHASES, "phases size exceeds max allowed");

        uint256 prevStartDate = _startDateAt;
        uint256 total = _claimableAtStart;
        for (uint256 i = 0; i < _phases.length; i++) {
            Phase memory phase = _phases[i];

            require(phase.endAt > prevStartDate, "phases not ordered");
            
            total += phase.rate;
            prevStartDate = phase.endAt;
        }

        require(total == BASIS_POINT_RATE_CONVERTER, "total == 10000");
        require(address(_vestedToken) != address(0), "vesttedToken address is zero");
        
        name = _name;
        vestedToken = _vestedToken;
        startDateAt = _startDateAt;
        // set vesting end date to last phase end date, if there is not phases then set end date to start date(e.g. for 100% claim at TGE)
        vestingEndAt = _phases.length > 0
            ? _phases[_phases.length - 1].endAt
            : _startDateAt;
        claimableAtStart = _claimableAtStart;
        // clear the phases array in case of reinitialization
        delete phases;
        for (uint256 i = 0; i < _phases.length; i++) {
            phases.push(_phases[i]);
        }

        refundGracePeriodDuration = _refundGracePeriodDuration;
    }

    /**
     * @dev create vesting for an user
     */
    function _createVesting(CreateVestingInput memory v) private {
        require(v.user != address(0), "user address is zero");
        require(v.amount > 0, "amount is zero");
        require(vestings[v.user].amount == 0, "one vesting per addr");

        totalAmountAllocated += v.amount;

        vestings[v.user] = UserVesting({
            init: true,
            amount: v.amount,
            amountClaimed: 0,
            lastClaimAt: 0,
            requestedRefund: false
        });

        emit NewVestingCreated(v.user, v.amount);
    }

    /**
     * @dev claimable amount available at the time function is called
     */
    function _claimable(UserVesting memory v) private view returns (uint256 amount) {
        if (refundMode || v.requestedRefund) {
            // refundMode is on or user requested refund
            return 0;
        } else if (block.timestamp < startDateAt) {
            // vesting has not started
            return 0;
        }

        uint256 amountLeft = v.amount - v.amountClaimed;
        // user already claimed everything
        if (amountLeft == 0) return 0;

        if (block.timestamp >= vestingEndAt) {
            // if vesting ended return everything left
            amount = amountLeft;
        } else {
            if (v.lastClaimAt == 0) {
                // if this is first claim also calculate amount available at start
                amount += (claimableAtStart * v.amount) / BASIS_POINT_RATE_CONVERTER;
            }
            uint256 prevEndDate = startDateAt;
            for (uint256 i = 0; i < phases.length; i++) {
                Phase memory phase = phases[i];
                uint40 phaseLength = uint40(phase.endAt - prevEndDate);

                // if last claim time is larger than the end of phase then skip it, already calculated in previous claim
                if (v.lastClaimAt < phase.endAt) {
                    if (block.timestamp >= phase.endAt && phase.minimumClaimablePeriod == 0) {
                        // if phase completely passed then calculate amount with every second in phase
                        amount += (v.amount * phase.rate) / BASIS_POINT_RATE_CONVERTER;
                    } else if (phase.minimumClaimablePeriod != 0) {
                        uint40 start = uint40(max(v.lastClaimAt, prevEndDate));
                        uint40 end = uint40(min(block.timestamp, phase.endAt));

                        // only take full increments of minimumClaimablePeriod in calculation of amount. 
                        // e.g. if end (current block.timestamp) is at 170, and start is at 100,  and if minimumClaimable perios is 20s. 
                        // then we have following: end - start = 170 - 100 = 70, and of that 70 we can only take in calculation 60 seconds, only full amount of claimable period.
                        // timePassed = 170 - 100 - ((170 - 100) % 20) = 70 - (70 % 20) = 70 - 10 = 60
                        uint40 timePassed = end - start - ((end - start) % phase.minimumClaimablePeriod);

                        amount += (v.amount * phase.rate * timePassed) / (phaseLength * BASIS_POINT_RATE_CONVERTER);
                    }

                    if (block.timestamp < phase.endAt) {
                        // if current time is less than end of this phase then there is no need to calculate remaining phases
                        break;
                    }
                }
                prevEndDate = phase.endAt;
            }
        }

        return min(amount, amountLeft);
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 8 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    /**
     * @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @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);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @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.encodeWithSelector(token.approve.selector, spender, value);

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

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * 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.isContract(address(token));
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_vestedToken","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint40","name":"_startDateAt","type":"uint40"},{"internalType":"uint16","name":"_claimableAtStart","type":"uint16"},{"components":[{"internalType":"uint32","name":"rate","type":"uint32"},{"internalType":"uint40","name":"endAt","type":"uint40"},{"internalType":"uint32","name":"minimumClaimablePeriod","type":"uint32"}],"internalType":"struct Phase[]","name":"_phases","type":"tuple[]"},{"internalType":"uint32","name":"_refundGracePeriodDuration","type":"uint32"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountClaimed","type":"uint256"}],"name":"NewClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NewVestingCreated","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RefundForAllWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"RefundRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"RefundRequestedPulledBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RefundRequestedWithdrawn","type":"event"},{"inputs":[],"name":"BASIS_POINT_RATE_CONVERTER","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOWED_PHASES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableAtStart","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"}],"internalType":"struct CreateVestingInput[]","name":"vestingsInput","type":"tuple[]"},{"internalType":"bool","name":"depositCheck","type":"bool"}],"name":"createVestings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"emergencyWithdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getDepositedAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumberOfRefundRequestedUsersAtLeastOnce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRefundRequestedUsersAtLeastOnceVesting","outputs":[{"components":[{"internalType":"uint40","name":"lastClaimAt","type":"uint40"},{"internalType":"bool","name":"init","type":"bool"},{"internalType":"bool","name":"requestedRefund","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountClaimed","type":"uint256"}],"internalType":"struct Vesting.UserVesting","name":"userVesting","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"name":"getUserVesting","outputs":[{"components":[{"internalType":"uint40","name":"lastClaimAt","type":"uint40"},{"internalType":"bool","name":"init","type":"bool"},{"internalType":"bool","name":"requestedRefund","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountClaimed","type":"uint256"}],"internalType":"struct Vesting.UserVesting","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"moveVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextBatchAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phases","outputs":[{"internalType":"uint32","name":"rate","type":"uint32"},{"internalType":"uint40","name":"endAt","type":"uint40"},{"internalType":"uint32","name":"minimumClaimablePeriod","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pullBackRequestRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"refundGracePeriodDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"refundRequestedUsersAtLeastOnce","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_vestedToken","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint40","name":"_startDateAt","type":"uint40"},{"internalType":"uint16","name":"_claimableAtStart","type":"uint16"},{"components":[{"internalType":"uint32","name":"rate","type":"uint32"},{"internalType":"uint40","name":"endAt","type":"uint40"},{"internalType":"uint32","name":"minimumClaimablePeriod","type":"uint32"}],"internalType":"struct Phase[]","name":"_phases","type":"tuple[]"},{"internalType":"uint32","name":"_refundGracePeriodDuration","type":"uint32"}],"name":"reinitialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestedRefundWithdrawn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_refundMode","type":"bool"}],"name":"setRefundMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startDateAt","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmountAllocated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmountClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmountRefundRequested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingEndAt","outputs":[{"internalType":"uint40","name":"","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vestings","outputs":[{"internalType":"uint40","name":"lastClaimAt","type":"uint40"},{"internalType":"bool","name":"init","type":"bool"},{"internalType":"bool","name":"requestedRefund","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountClaimed","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRefundForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRequestRefundToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c8063918f24d411610125578063d5cef133116100ad578063e44a05af1161007c578063e44a05af146105e5578063e8aba58e146105f8578063f2fde38b14610605578063f63f2cae14610618578063f843664a1461062b57600080fd5b8063d5cef13314610542578063d5ffd1921461054a578063daf4986314610552578063dc82d0f7146105d257600080fd5b8063afe7bf37116100f4578063afe7bf37146104ea578063b6c97a5114610516578063be3d1afb1461051e578063bfa5e13c14610531578063d29af10d1461053a57600080fd5b8063918f24d41461041a5780639feee45414610432578063a7637c9a146104da578063a7d52cc9146104e257600080fd5b80634355c32c116101a8578063684e79dd11610177578063684e79dd1461039e57806370c4b1f1146103c0578063715018a6146103d35780638a4113d7146103db5780638da5cb5b1461040957600080fd5b80634355c32c146103715780634e71d92d1461037a578063549c1a35146103825780635de297411461038b57600080fd5b80632a6e5aac116101ef5780632a6e5aac1461027d5780632b24014c146102dd5780632e37eef614610308578063322ba9f314610348578063402914f51461035e57600080fd5b806306fdde0314610221578063124a27541461023f578063182f2ae8146102605780631af032031461026a575b600080fd5b610229610653565b60405161023691906127bb565b60405180910390f35b61024861271081565b6040516001600160801b039091168152602001610236565b6102686106e1565b005b610268610278366004612803565b6108b9565b61029061028b366004612820565b610941565b6040516102369190600060a08201905064ffffffffff8351168252602083015115156020830152604083015115156040830152606083015160608301526080830151608083015292915050565b6102f06102eb366004612820565b6109fb565b6040516001600160a01b039091168152602001610236565b61031b610316366004612820565b610a25565b6040805163ffffffff948516815264ffffffffff9093166020840152921691810191909152606001610236565b610350610a66565b604051908152602001610236565b61035061036c366004612803565b610add565b61035060075481565b610268610b6e565b61035060055481565b6004546102f0906001600160a01b031681565b6003546103b090610100900460ff1681565b6040519015158152602001610236565b6102686103ce366004612839565b610e81565b61026861114d565b6003546103f3906301000000900464ffffffffff1681565b60405164ffffffffff9091168152602001610236565b6000546001600160a01b03166102f0565b6003546103f390600160401b900464ffffffffff1681565b610290610440366004612803565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152506001600160a01b0316600090815260096020908152604091829020825160a081018452815464ffffffffff8116825260ff600160281b82048116151594830194909452600160301b900490921615159282019290925260018201546060820152600290910154608082015290565b61026861115f565b600a54610350565b60035461050190600160781b900463ffffffff1681565b60405163ffffffff9091168152602001610236565b610350601e81565b61026861052c366004612880565b6112cc565b61035060065481565b6103506112e7565b610268611472565b610268611685565b61059c610560366004612803565b60096020526000908152604090208054600182015460029092015464ffffffffff82169260ff600160281b8404811693600160301b9004169185565b6040805164ffffffffff90961686529315156020860152911515928401929092526060830191909152608082015260a001610236565b6003546103b09062010000900460ff1681565b6102686105f336600461289d565b61186f565b6003546103b09060ff1681565b610268610613366004612803565b611a69565b610268610626366004612a96565b611adf565b60035461064090600160681b900461ffff1681565b60405161ffff9091168152602001610236565b6002805461066090612b92565b80601f016020809104026020016040519081016040528092919081815260200182805461068c90612b92565b80156106d95780601f106106ae576101008083540402835291602001916106d9565b820191906000526020600020905b8154815290600101906020018083116106bc57829003601f168201915b505050505081565b6106e9611b3d565b3360008181526009602052604090208054600160281b900460ff166107295760405162461bcd60e51b815260040161072090612bcc565b60405180910390fd5b6002810154156107725760405162461bcd60e51b81526020600482015260146024820152731d5cd95c88185b1c9958591e4818db185a5b595960621b6044820152606401610720565b8054600160301b900460ff166107c05760405162461bcd60e51b81526020600482015260136024820152726e6f7468696e20746f2070756c6c206261636b60681b6044820152606401610720565b6003546107e890600160781b810463ffffffff16906301000000900464ffffffffff16612c19565b64ffffffffff164211156108355760405162461bcd60e51b81526020600482015260146024820152731c99599d5b99081c195c9a5bd9081c185cdcd95960621b6044820152606401610720565b805460ff60301b19168155600181015460078054600090610857908490612c3e565b9091555050600181015460058054600090610873908490612c51565b90915550506040516001600160a01b038316907f417be750e991ea3d9fe3542a9c620e0f2d10e00a47f6957b2925b5bde3bd619390600090a250506108b760018055565b565b6108c1611b96565b61093e336040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610909573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092d9190612c64565b6001600160a01b0384169190611bf0565b50565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526000600a838154811061098157610981612c7d565b60009182526020808320909101546001600160a01b0316825260098152604091829020825160a081018452815464ffffffffff8116825260ff600160281b82048116151594830194909452600160301b90049092161515928201929092526001820154606082015260029091015460808201529392505050565b600a8181548110610a0b57600080fd5b6000918252602090912001546001600160a01b0316905081565b60088181548110610a3557600080fd5b60009182526020909120015463ffffffff808216925064ffffffffff64010000000083041691600160481b90041683565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ab4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad89190612c64565b905090565b60035460009060ff1615610af357506000919050565b6001600160a01b038216600090815260096020908152604091829020825160a081018452815464ffffffffff8116825260ff600160281b82048116151594830194909452600160301b9004909216151592820192909252600182015460608201526002909101546080820152610b6890611c47565b92915050565b610b76611b3d565b60035460ff1615610bbf5760405162461bcd60e51b81526020600482015260136024820152721d995cdd1a5b99c81a5cc81c99599d5b991959606a1b6044820152606401610720565b3360008181526009602052604090208054600160301b900460ff1615610c195760405162461bcd60e51b815260206004820152600f60248201526e1d5cd95c881c995c481c99599d5b99608a1b6044820152606401610720565b8054600160281b900460ff16610c415760405162461bcd60e51b815260040161072090612bcc565b600081600201548260010154610c579190612c3e565b11610c995760405162461bcd60e51b8152602060048201526012602482015271185b1b08185b5bdd5b9d0818db185a5b595960721b6044820152606401610720565b6040805160a081018252825464ffffffffff8116825260ff600160281b8204811615156020840152600160301b909104161515918101919091526001820154606082015260028201546080820152600090610cf390611c47565b905080610cfe610a66565b1015610d585760405162461bcd60e51b8152602060048201526024808201527f6e6f7420656e6f75676820746f6b656e206465706f736974656420666f7220636044820152636c61696d60e01b6064820152608401610720565b60008111610da85760405162461bcd60e51b815260206004820152601a60248201527f6e6f7468696e6720746f20636c61696d2063757272656e746c790000000000006044820152606401610720565b8060066000828254610dba9190612c51565b9250508190555080826002016000828254610dd59190612c51565b9091555050815464ffffffffff19164264ffffffffff16178255600182015460028301541115610e0757610e07612c93565b6005546006541115610e1b57610e1b612c93565b600454610e32906001600160a01b03168483611bf0565b826001600160a01b03167f081144d27d70f1f67f67a65289dde411e1a9511c916d13ee3ff9bf22f169cd9a82604051610e6d91815260200190565b60405180910390a25050506108b760018055565b610e89611b96565b6001600160a01b038216600090815260096020908152604091829020825160a081018452815464ffffffffff8116825260ff600160281b820481161515948301859052600160301b9091041615159381019390935260018101546060840152600201546080830152610f3d5760405162461bcd60e51b815260206004820152601860248201527f6066726f6d60206e6f206163746976652076657374696e6700000000000000006044820152606401610720565b600081608001518260600151610f539190612c3e565b11610fa05760405162461bcd60e51b815260206004820152601960248201527f6066726f6d6020616c6c20616d6f756e7420636c61696d6564000000000000006044820152606401610720565b6001600160a01b038216600090815260096020908152604091829020825160a081018452815464ffffffffff8116825260ff600160281b8204811615801595840195909552600160301b90910416151593810193909352600181015460608401526002015460808301526110565760405162461bcd60e51b815260206004820152601b60248201527f60746f60206861732072656769737465726564206c697374696e6700000000006044820152606401610720565b6001600160a01b0383166110ac5760405162461bcd60e51b815260206004820152601760248201527f60746f60206d757374206e6f74206265203020616464720000000000000000006044820152606401610720565b506001600160a01b0391821660009081526009602090815260408083208451815493860151838701511515600160301b0260ff60301b19911515600160281b0265ffffffffffff1990961664ffffffffff9093169290921794909417939093169290921782556060840151600180840191909155608090940151600292830155949093168152928320805466ffffffffffffff191681559081018390550155565b611155611b96565b6108b76000611f3f565b611167611b96565b60035462010000900460ff16156111b45760405162461bcd60e51b815260206004820152601160248201527030b63932b0b23c903bb4ba34323930bbb760791b6044820152606401610720565b60035460ff166111fb5760405162461bcd60e51b81526020600482015260126024820152713932b33ab7321036b7b2329034b99037b33360711b6044820152606401610720565b6003805462ff0000191662010000179055600480546040516370a0823160e01b815230928101929092526112929133916001600160a01b0316906370a0823190602401602060405180830381865afa15801561125b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127f9190612c64565b6004546001600160a01b03169190611bf0565b60075460405190815233907f64934b8ce5d50616ab8d2e7fd8bfb458cf1ce270d4ce1e62bb8a05057f10df1c9060200160405180910390a2565b6112d4611b96565b6003805460ff1916911515919091179055565b600354600090600160401b900464ffffffffff1642106113165750600354600160401b900464ffffffffff1690565b6003546301000000900464ffffffffff1642101561134357506003546301000000900464ffffffffff1690565b6003546000906301000000900464ffffffffff16815b8142111561146a5760006008828154811061137657611376612c7d565b600091825260209182902060408051606081018252929091015463ffffffff8082168452640100000000820464ffffffffff16948401859052600160481b90910416908201529150421161144b57806040015163ffffffff166001036113df5760019350611445565b806040015163ffffffff1660000361140457806020015164ffffffffff169350611445565b604081015163ffffffff166114198442612c3e565b6114239190612cbf565b60408201516114389063ffffffff1642612c51565b6114429190612c3e565b93505b5061146a565b6020015164ffffffffff1691508061146281612cd3565b915050611359565b509092915050565b61147a611b3d565b3360008181526009602052604090208054600160281b900460ff166114b15760405162461bcd60e51b815260040161072090612bcc565b8054600160301b900460ff16156114fe5760405162461bcd60e51b8152602060048201526011602482015270185b1c9958591e481c995c5d595cdd1959607a1b6044820152606401610720565b6002810154156115475760405162461bcd60e51b81526020600482015260146024820152731d5cd95c88185b1c9958591e4818db185a5b595960621b6044820152606401610720565b60035461156f90600160781b810463ffffffff16906301000000900464ffffffffff16612c19565b64ffffffffff164211156115bc5760405162461bcd60e51b81526020600482015260146024820152731c99599d5b99081c195c9a5bd9081c185cdcd95960621b6044820152606401610720565b805460ff60301b1916600160301b1781556001810154600780546000906115e4908490612c51565b9091555050600181015460058054600090611600908490612c3e565b9091555050600a805460018101825560009182527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0319166001600160a01b03851690811790915560405190917f7fcea13fa52052e10e2a2ae5f7edf34eb7a59dd5778244bca78f8f0c6866bfbe91a250506108b760018055565b61168d611b96565b600354610100900460ff16156116d95760405162461bcd60e51b815260206004820152601160248201527030b63932b0b23c903bb4ba34323930bbb760791b6044820152606401610720565b60035461170190600160781b810463ffffffff16906301000000900464ffffffffff16612c19565b64ffffffffff16421161174d5760405162461bcd60e51b8152602060048201526014602482015273726566756e6420706572696f642061637469766560601b6044820152606401610720565b600480546040516370a0823160e01b815230928101929092526000916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf9190612c64565b90506007548110156118075760405162461bcd60e51b81526020600482015260116024820152706e6f7420656e6f75676820746f6b656e7360781b6044820152606401610720565b6003805461ff001916610100179055600754600454611833916001600160a01b03909116903390611bf0565b60075460405190815233907f88c24254769936ac40e24c2fdd2c5a2dbc823efeb5bf25211513e7e6cbb06ef4906020015b60405180910390a250565b611877611b96565b816118ba5760405162461bcd60e51b815260206004820152601360248201527276657374696e6773496e70757420656d70747960681b6044820152606401610720565b6003546301000000900464ffffffffff16421061190b5760405162461bcd60e51b815260206004820152600f60248201526e1d995cdd1a5b99c81cdd185c9d1959608a1b6044820152606401610720565b6000611915610a66565b90506000805b67ffffffffffffffff81168511156119885785858267ffffffffffffffff1681811061194957611949612c7d565b90506040020160200160208101906119619190612d03565b611974906001600160801b031683612c51565b91508061198081612d1e565b91505061191b565b508215611a00576000600554600654846119a29190612c51565b6119ac9190612c3e565b9050818110156119fe5760405162461bcd60e51b815260206004820152601a60248201527f6e6f7420656e6f75676820746f6b656e206465706f73697465640000000000006044820152606401610720565b505b60005b67ffffffffffffffff8116851115611a6157611a4f86868367ffffffffffffffff16818110611a3457611a34612c7d565b905060400201803603810190611a4a9190612d45565b611f8f565b80611a5981612d1e565b915050611a03565b505050505050565b611a71611b96565b6001600160a01b038116611ad65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610720565b61093e81611f3f565b611ae7611b96565b60065415611b2f5760405162461bcd60e51b815260206004820152601560248201527418db185a5b48185b1c9958591e481cdd185c9d1959605a1b6044820152606401610720565b611a61868686868686612192565b600260015403611b8f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610720565b6002600155565b6000546001600160a01b031633146108b75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610720565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611c429084906124cb565b505050565b60035460009060ff1680611c5c575081604001515b15611c6957506000919050565b6003546301000000900464ffffffffff16421015611c8957506000919050565b600082608001518360600151611c9f9190612c3e565b905080600003611cb25750600092915050565b600354600160401b900464ffffffffff164210611cd157809150611f2e565b825164ffffffffff16600003611d1857606083015160035461271091611d0191600160681b900461ffff16612da2565b611d0b9190612db9565b611d159083612c51565b91505b6003546301000000900464ffffffffff1660005b600854811015611f2b57600060088281548110611d4b57611d4b612c7d565b6000918252602080832060408051606081018252939091015463ffffffff8082168552640100000000820464ffffffffff16938501849052600160481b9091041690830152909250611d9e908590612c3e565b9050816020015164ffffffffff16876000015164ffffffffff161015611f1557816020015164ffffffffff164210158015611de15750604082015163ffffffff16155b15611e1e578151606088015161271091611e039163ffffffff90911690612da2565b611e0d9190612db9565b611e179087612c51565b9550611efb565b604082015163ffffffff1615611efb576000611e45886000015164ffffffffff16866125a0565b90506000611e5e42856020015164ffffffffff166125b6565b90506000846040015163ffffffff168383611e799190612dcd565b611e839190612deb565b611e8d8484612dcd565b611e979190612dcd565b9050611eac61271064ffffffffff8616612e0f565b6001600160801b03168164ffffffffff16866000015163ffffffff168c60600151611ed79190612da2565b611ee19190612da2565b611eeb9190612db9565b611ef5908a612c51565b98505050505b816020015164ffffffffff16421015611f15575050611f2b565b506020015164ffffffffff169150600101611d2c565b50505b611f3882826125b6565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0316611fdd5760405162461bcd60e51b8152602060048201526014602482015273757365722061646472657373206973207a65726f60601b6044820152606401610720565b600081602001516001600160801b03161161202b5760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e74206973207a65726f60901b6044820152606401610720565b80516001600160a01b03166000908152600960205260409020600101541561208c5760405162461bcd60e51b815260206004820152601460248201527337b732903b32b9ba34b733903832b91030b2323960611b6044820152606401610720565b80602001516001600160801b0316600560008282546120ab9190612c51565b90915550506040805160a08101825260008082526001602080840182815284860184815287830180516001600160801b0390811660608901908152608089018881528b516001600160a01b039081168a5260098852988b902099518a54965195511515600160301b0260ff60301b19961515600160281b0265ffffffffffff1990981664ffffffffff9092169190911796909617949094169490941788559251948701949094555160029095019490945585519151945194909316845216917f1ad52506d5b39a5f36ce7518f02978bb44db2961e116f2a2d8d134cd3f43e9579101611864565b601e825111156121e45760405162461bcd60e51b815260206004820152601f60248201527f7068617365732073697a652065786365656473206d617820616c6c6f776564006044820152606401610720565b64ffffffffff841661ffff841660005b845181101561229557600085828151811061221157612211612c7d565b6020026020010151905083816020015164ffffffffff161161226a5760405162461bcd60e51b81526020600482015260126024820152711c1a185cd95cc81b9bdd081bdc99195c995960721b6044820152606401610720565b805161227c9063ffffffff1684612c51565b60209091015164ffffffffff16935091506001016121f4565b5061271081146122d85760405162461bcd60e51b815260206004820152600e60248201526d0746f74616c203d3d2031303030360941b6044820152606401610720565b6001600160a01b03881661232e5760405162461bcd60e51b815260206004820152601c60248201527f76657374746564546f6b656e2061646472657373206973207a65726f000000006044820152606401610720565b600261233a8882612e82565b50600480546001600160a01b0319166001600160a01b038a161790556003805467ffffffffff0000001916630100000064ffffffffff891602179055835161238257856123ae565b83600185516123919190612c3e565b815181106123a1576123a1612c7d565b6020026020010151602001515b600380546effffffffffffff00000000000000001916600160401b64ffffffffff939093169290920261ffff60681b191691909117600160681b61ffff8816021790556123fd60086000612755565b60005b845181101561249c57600885828151811061241d5761241d612c7d565b6020908102919091018101518254600181810185556000948552938390208251910180549383015160409093015163ffffffff908116600160481b026cffffffff0000000000000000001964ffffffffff9095166401000000000268ffffffffffffffffff199096169190931617939093179190911617905501612400565b50506003805463ffffffff909316600160781b0263ffffffff60781b1990931692909217909155505050505050565b6000612520826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125c59092919063ffffffff16565b90508051600014806125415750808060200190518101906125419190612f42565b611c425760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610720565b60008183116125af5781611f38565b5090919050565b60008183106125af5781611f38565b60606125d484846000856125dc565b949350505050565b60608247101561263d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610720565b600080866001600160a01b031685876040516126599190612f5f565b60006040518083038185875af1925050503d8060008114612696576040519150601f19603f3d011682016040523d82523d6000602084013e61269b565b606091505b50915091506126ac878383876126b7565b979650505050505050565b6060831561272657825160000361271f576001600160a01b0385163b61271f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610720565b50816125d4565b6125d4838381511561273b5781518083602001fd5b8060405162461bcd60e51b815260040161072091906127bb565b508054600082559060005260206000209081019061093e91905b808211156127935780546cffffffffffffffffffffffffff1916815560010161276f565b5090565b60005b838110156127b257818101518382015260200161279a565b50506000910152565b60208152600082518060208401526127da816040850160208701612797565b601f01601f19169190910160400192915050565b6001600160a01b038116811461093e57600080fd5b60006020828403121561281557600080fd5b8135611f38816127ee565b60006020828403121561283257600080fd5b5035919050565b6000806040838503121561284c57600080fd5b8235612857816127ee565b91506020830135612867816127ee565b809150509250929050565b801515811461093e57600080fd5b60006020828403121561289257600080fd5b8135611f3881612872565b6000806000604084860312156128b257600080fd5b833567ffffffffffffffff808211156128ca57600080fd5b818601915086601f8301126128de57600080fd5b8135818111156128ed57600080fd5b8760208260061b850101111561290257600080fd5b6020928301955093505084013561291881612872565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561295c5761295c612923565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561298b5761298b612923565b604052919050565b803564ffffffffff811681146129a857600080fd5b919050565b803561ffff811681146129a857600080fd5b803563ffffffff811681146129a857600080fd5b600082601f8301126129e457600080fd5b8135602067ffffffffffffffff821115612a0057612a00612923565b612a0e818360051b01612962565b82815260609283028501820192828201919087851115612a2d57600080fd5b8387015b85811015612a895781818a031215612a495760008081fd5b612a51612939565b612a5a826129bf565b8152612a67868301612993565b868201526040612a788184016129bf565b908201528452928401928101612a31565b5090979650505050505050565b60008060008060008060c08789031215612aaf57600080fd5b8635612aba816127ee565b955060208781013567ffffffffffffffff80821115612ad857600080fd5b818a0191508a601f830112612aec57600080fd5b813581811115612afe57612afe612923565b612b10601f8201601f19168501612962565b8181528c85838601011115612b2457600080fd5b818585018683013760008583830101528099505050612b4560408b01612993565b9650612b5360608b016129ad565b955060808a0135925080831115612b6957600080fd5b5050612b7789828a016129d3565b925050612b8660a088016129bf565b90509295509295509295565b600181811c90821680612ba657607f821691505b602082108103612bc657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526019908201527f75736572206973206e6f742070617274696369706174696e6700000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b64ffffffffff818116838216019080821115612c3757612c37612c03565b5092915050565b81810381811115610b6857610b68612c03565b80820180821115610b6857610b68612c03565b600060208284031215612c7657600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082612cce57612cce612ca9565b500690565b600060018201612ce557612ce5612c03565b5060010190565b80356001600160801b03811681146129a857600080fd5b600060208284031215612d1557600080fd5b611f3882612cec565b600067ffffffffffffffff808316818103612d3b57612d3b612c03565b6001019392505050565b600060408284031215612d5757600080fd5b6040516040810181811067ffffffffffffffff82111715612d7a57612d7a612923565b6040528235612d88816127ee565b8152612d9660208401612cec565b60208201529392505050565b8082028115828204841417610b6857610b68612c03565b600082612dc857612dc8612ca9565b500490565b64ffffffffff828116828216039080821115612c3757612c37612c03565b600064ffffffffff80841680612e0357612e03612ca9565b92169190910692915050565b6001600160801b03818116838216028082169190828114612e3257612e32612c03565b505092915050565b601f821115611c42576000816000526020600020601f850160051c81016020861015612e635750805b601f850160051c820191505b81811015611a6157828155600101612e6f565b815167ffffffffffffffff811115612e9c57612e9c612923565b612eb081612eaa8454612b92565b84612e3a565b602080601f831160018114612ee55760008415612ecd5750858301515b600019600386901b1c1916600185901b178555611a61565b600085815260208120601f198616915b82811015612f1457888601518255948401946001909101908401612ef5565b5085821015612f325787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215612f5457600080fd5b8151611f3881612872565b60008251612f71818460208701612797565b919091019291505056fea2646970667358221220690eedbd126b9760158f7629c55e72427f47adfd19d71dce181ac98ad17dd4be64736f6c63430008170033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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