POL Price: $0.593277 (-0.51%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw655095732024-12-15 10:50:2423 hrs ago1734259824IN
Metavault: MVX Vester
0 POL0.0039183729.99802092
Withdraw654140802024-12-13 1:43:303 days ago1734054210IN
Metavault: MVX Vester
0 POL0.0053109233.00000002
Withdraw653960372024-12-12 14:58:533 days ago1734015533IN
Metavault: MVX Vester
0 POL0.0078668160.22625253
Withdraw652008502024-12-07 17:24:238 days ago1733592263IN
Metavault: MVX Vester
0 POL0.005341129.99999999
Withdraw651638242024-12-06 18:48:539 days ago1733510933IN
Metavault: MVX Vester
0 POL0.0046708935.75916788
Withdraw651245942024-12-05 19:20:1210 days ago1733426412IN
Metavault: MVX Vester
0 POL0.0069120436.72499874
Withdraw650273272024-12-03 9:24:4813 days ago1733217888IN
Metavault: MVX Vester
0 POL0.02948129169.17699543
Withdraw650157222024-12-03 2:24:5213 days ago1733192692IN
Metavault: MVX Vester
0 POL0.0085445647.99319995
Withdraw650107912024-12-02 23:23:2013 days ago1733181800IN
Metavault: MVX Vester
0 POL0.0058399336.28710978
Withdraw649992462024-12-02 16:15:1113 days ago1733156111IN
Metavault: MVX Vester
0 POL0.0106854160.01795779
Withdraw649754782024-12-02 1:58:1614 days ago1733104696IN
Metavault: MVX Vester
0 POL0.0076979348.98056035
Withdraw649172972024-11-30 15:01:1015 days ago1732978870IN
Metavault: MVX Vester
0 POL0.02466464188.82599953
Withdraw649132542024-11-30 12:35:5615 days ago1732970156IN
Metavault: MVX Vester
0 POL0.011186862.83414915
Withdraw648473402024-11-28 21:02:1017 days ago1732827730IN
Metavault: MVX Vester
0 POL0.0057937335.99999998
Withdraw647808022024-11-27 5:25:5819 days ago1732685158IN
Metavault: MVX Vester
0 POL0.0063078635.43007019
Withdraw647807312024-11-27 5:23:2619 days ago1732685006IN
Metavault: MVX Vester
0 POL0.0064093135.99992343
Withdraw647415652024-11-26 4:58:5820 days ago1732597138IN
Metavault: MVX Vester
0 POL0.0068299843.45799407
Withdraw647125442024-11-25 11:37:5220 days ago1732534672IN
Metavault: MVX Vester
0 POL0.04696302249.52327851
Withdraw646931182024-11-24 23:51:1021 days ago1732492270IN
Metavault: MVX Vester
0 POL0.012120475.31149801
Withdraw646741632024-11-24 12:16:1021 days ago1732450570IN
Metavault: MVX Vester
0 POL0.012689472.8175255
Withdraw646647692024-11-24 6:38:2622 days ago1732430306IN
Metavault: MVX Vester
0 POL0.0049153337.63050265
Withdraw646520962024-11-23 22:54:4922 days ago1732402489IN
Metavault: MVX Vester
0 POL0.0086298866.0681335
Withdraw645608862024-11-21 16:11:1924 days ago1732205479IN
Metavault: MVX Vester
0 POL0.03660037205.57736479
Withdraw644864552024-11-19 19:40:3526 days ago1732045235IN
Metavault: MVX Vester
0 POL0.0051070844.98801586
Withdraw644321932024-11-18 11:16:2927 days ago1731928589IN
Metavault: MVX Vester
0 POL0.0114775773.02974409
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MvxVester

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion
File 1 of 11 : MvxVester.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./Vester.sol";

contract MvxVester is Vester {
    constructor(
        uint256 _vestingDuration,
        address _esToken,
        address _pairToken,
        address _claimableToken,
        address _rewardTracker
    ) public Vester("Vested MVX", "vMVX", _vestingDuration, _esToken, _pairToken, _claimableToken, _rewardTracker) {}
}

File 2 of 11 : Vester.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "../libraries/math/SafeMath.sol";
import "../libraries/token/IERC20.sol";
import "../libraries/token/SafeERC20.sol";
import "../libraries/utils/ReentrancyGuard.sol";

import "./interfaces/IRewardTracker.sol";
import "./interfaces/IVester.sol";
import "../tokens/interfaces/IMintable.sol";
import "../access/Governable.sol";

contract Vester is IVester, IERC20, ReentrancyGuard, Governable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    string public name;
    string public symbol;
    uint8 public decimals = 18;

    uint256 public vestingDuration;

    address public esToken;
    address public pairToken;
    address public claimableToken;

    address public override rewardTracker;

    uint256 public override totalSupply;
    uint256 public pairSupply;

    bool public hasMaxVestableAmount;

    mapping(address => uint256) public balances;
    mapping(address => uint256) public override pairAmounts;
    mapping(address => uint256) public override cumulativeClaimAmounts;
    mapping(address => uint256) public override claimedAmounts;
    mapping(address => uint256) public lastVestingTimes;

    mapping(address => uint256) public override transferredAverageStakedAmounts;
    mapping(address => uint256) public override transferredCumulativeRewards;
    mapping(address => uint256) public override cumulativeRewardDeductions;
    mapping(address => uint256) public override bonusRewards;

    mapping(address => bool) public isHandler;

    event Claim(address receiver, uint256 amount);
    event Deposit(address account, uint256 amount);
    event Withdraw(address account, uint256 claimedAmount, uint256 balance);
    event PairTransfer(address indexed from, address indexed to, uint256 value);

    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _vestingDuration,
        address _esToken,
        address _pairToken,
        address _claimableToken,
        address _rewardTracker
    ) public {
        name = _name;
        symbol = _symbol;

        vestingDuration = _vestingDuration;

        esToken = _esToken;
        pairToken = _pairToken;
        claimableToken = _claimableToken;

        rewardTracker = _rewardTracker;

        if (rewardTracker != address(0)) {
            hasMaxVestableAmount = true;
        }
    }

    function setHandler(address _handler, bool _isActive) external onlyGov {
        isHandler[_handler] = _isActive;
    }

    function setHasMaxVestableAmount(bool _hasMaxVestableAmount) external onlyGov {
        hasMaxVestableAmount = _hasMaxVestableAmount;
    }

    function deposit(uint256 _amount) external nonReentrant {
        _deposit(msg.sender, _amount);
    }

    function depositForAccount(address _account, uint256 _amount) external nonReentrant {
        _validateHandler();
        _deposit(_account, _amount);
    }

    function claim() external nonReentrant returns (uint256) {
        return _claim(msg.sender, msg.sender);
    }

    function claimForAccount(address _account, address _receiver) external override nonReentrant returns (uint256) {
        _validateHandler();
        return _claim(_account, _receiver);
    }

    // to help users who accidentally send their tokens to this contract
    function withdrawToken(
        address _token,
        address _account,
        uint256 _amount
    ) external onlyGov {
        IERC20(_token).safeTransfer(_account, _amount);
    }

    function withdraw() external nonReentrant {
        address account = msg.sender;
        address _receiver = account;
        _claim(account, _receiver);

        uint256 claimedAmount = cumulativeClaimAmounts[account];
        uint256 balance = balances[account];
        uint256 totalVested = balance.add(claimedAmount);
        require(totalVested > 0, "Vester: vested amount is zero");

        if (hasPairToken()) {
            uint256 pairAmount = pairAmounts[account];
            _burnPair(account, pairAmount);
            IERC20(pairToken).safeTransfer(_receiver, pairAmount);
        }

        IERC20(esToken).safeTransfer(_receiver, balance);
        _burn(account, balance);

        delete cumulativeClaimAmounts[account];
        delete claimedAmounts[account];
        delete lastVestingTimes[account];

        emit Withdraw(account, claimedAmount, balance);
    }

    function transferStakeValues(address _sender, address _receiver) external override nonReentrant {
        _validateHandler();

        transferredAverageStakedAmounts[_receiver] = getCombinedAverageStakedAmount(_sender);
        transferredAverageStakedAmounts[_sender] = 0;

        uint256 transferredCumulativeReward = transferredCumulativeRewards[_sender];
        uint256 cumulativeReward = IRewardTracker(rewardTracker).cumulativeRewards(_sender);

        transferredCumulativeRewards[_receiver] = transferredCumulativeReward.add(cumulativeReward);
        cumulativeRewardDeductions[_sender] = cumulativeReward;
        transferredCumulativeRewards[_sender] = 0;

        bonusRewards[_receiver] = bonusRewards[_sender];
        bonusRewards[_sender] = 0;
    }

    function setTransferredAverageStakedAmounts(address _account, uint256 _amount) external override nonReentrant {
        _validateHandler();
        transferredAverageStakedAmounts[_account] = _amount;
    }

    function setTransferredCumulativeRewards(address _account, uint256 _amount) external override nonReentrant {
        _validateHandler();
        transferredCumulativeRewards[_account] = _amount;
    }

    function setCumulativeRewardDeductions(address _account, uint256 _amount) external override nonReentrant {
        _validateHandler();
        cumulativeRewardDeductions[_account] = _amount;
    }

    function setBonusRewards(address _account, uint256 _amount) external override nonReentrant {
        _validateHandler();
        bonusRewards[_account] = _amount;
    }

    function claimable(address _account) public view override returns (uint256) {
        uint256 amount = cumulativeClaimAmounts[_account].sub(claimedAmounts[_account]);
        uint256 nextClaimable = _getNextClaimableAmount(_account);
        return amount.add(nextClaimable);
    }

    function getMaxVestableAmount(address _account) public view override returns (uint256) {
        if (!hasRewardTracker()) {
            return 0;
        }

        uint256 transferredCumulativeReward = transferredCumulativeRewards[_account];
        uint256 bonusReward = bonusRewards[_account];
        uint256 cumulativeReward = IRewardTracker(rewardTracker).cumulativeRewards(_account);
        uint256 maxVestableAmount = cumulativeReward.add(transferredCumulativeReward).add(bonusReward);

        uint256 cumulativeRewardDeduction = cumulativeRewardDeductions[_account];

        if (maxVestableAmount < cumulativeRewardDeduction) {
            return 0;
        }

        return maxVestableAmount.sub(cumulativeRewardDeduction);
    }

    function getCombinedAverageStakedAmount(address _account) public view override returns (uint256) {
        uint256 cumulativeReward = IRewardTracker(rewardTracker).cumulativeRewards(_account);
        uint256 transferredCumulativeReward = transferredCumulativeRewards[_account];
        uint256 totalCumulativeReward = cumulativeReward.add(transferredCumulativeReward);
        if (totalCumulativeReward == 0) {
            return 0;
        }

        uint256 averageStakedAmount = IRewardTracker(rewardTracker).averageStakedAmounts(_account);
        uint256 transferredAverageStakedAmount = transferredAverageStakedAmounts[_account];

        return averageStakedAmount.mul(cumulativeReward).div(totalCumulativeReward).add(transferredAverageStakedAmount.mul(transferredCumulativeReward).div(totalCumulativeReward));
    }

    function getPairAmount(address _account, uint256 _esAmount) public view returns (uint256) {
        if (!hasRewardTracker()) {
            return 0;
        }

        uint256 combinedAverageStakedAmount = getCombinedAverageStakedAmount(_account);
        if (combinedAverageStakedAmount == 0) {
            return 0;
        }

        uint256 maxVestableAmount = getMaxVestableAmount(_account);
        if (maxVestableAmount == 0) {
            return 0;
        }

        return _esAmount.mul(combinedAverageStakedAmount).div(maxVestableAmount);
    }

    function hasRewardTracker() public view returns (bool) {
        return rewardTracker != address(0);
    }

    function hasPairToken() public view returns (bool) {
        return pairToken != address(0);
    }

    function getTotalVested(address _account) public view returns (uint256) {
        return balances[_account].add(cumulativeClaimAmounts[_account]);
    }

    function balanceOf(address _account) public view override returns (uint256) {
        return balances[_account];
    }

    // empty implementation, tokens are non-transferrable
    function transfer(
        address, /* recipient */
        uint256 /* amount */
    ) public override returns (bool) {
        revert("Vester: non-transferrable");
    }

    // empty implementation, tokens are non-transferrable
    function allowance(
        address, /* owner */
        address /* spender */
    ) public view virtual override returns (uint256) {
        return 0;
    }

    // empty implementation, tokens are non-transferrable
    function approve(
        address, /* spender */
        uint256 /* amount */
    ) public virtual override returns (bool) {
        revert("Vester: non-transferrable");
    }

    // empty implementation, tokens are non-transferrable
    function transferFrom(
        address, /* sender */
        address, /* recipient */
        uint256 /* amount */
    ) public virtual override returns (bool) {
        revert("Vester: non-transferrable");
    }

    function getVestedAmount(address _account) public view override returns (uint256) {
        uint256 balance = balances[_account];
        uint256 cumulativeClaimAmount = cumulativeClaimAmounts[_account];
        return balance.add(cumulativeClaimAmount);
    }

    function _mint(address _account, uint256 _amount) private {
        require(_account != address(0), "Vester: mint to the zero address");

        totalSupply = totalSupply.add(_amount);
        balances[_account] = balances[_account].add(_amount);

        emit Transfer(address(0), _account, _amount);
    }

    function _mintPair(address _account, uint256 _amount) private {
        require(_account != address(0), "Vester: mint to the zero address");

        pairSupply = pairSupply.add(_amount);
        pairAmounts[_account] = pairAmounts[_account].add(_amount);

        emit PairTransfer(address(0), _account, _amount);
    }

    function _burn(address _account, uint256 _amount) private {
        require(_account != address(0), "Vester: burn from the zero address");

        balances[_account] = balances[_account].sub(_amount, "Vester: burn amount exceeds balance");
        totalSupply = totalSupply.sub(_amount);

        emit Transfer(_account, address(0), _amount);
    }

    function _burnPair(address _account, uint256 _amount) private {
        require(_account != address(0), "Vester: burn from the zero address");

        pairAmounts[_account] = pairAmounts[_account].sub(_amount, "Vester: burn amount exceeds balance");
        pairSupply = pairSupply.sub(_amount);

        emit PairTransfer(_account, address(0), _amount);
    }

    function _deposit(address _account, uint256 _amount) private {
        require(_amount > 0, "Vester: invalid _amount");

        _updateVesting(_account);

        IERC20(esToken).safeTransferFrom(_account, address(this), _amount);

        _mint(_account, _amount);

        if (hasPairToken()) {
            uint256 pairAmount = pairAmounts[_account];
            uint256 nextPairAmount = getPairAmount(_account, balances[_account]);
            if (nextPairAmount > pairAmount) {
                uint256 pairAmountDiff = nextPairAmount.sub(pairAmount);
                IERC20(pairToken).safeTransferFrom(_account, address(this), pairAmountDiff);
                _mintPair(_account, pairAmountDiff);
            }
        }

        if (hasMaxVestableAmount) {
            uint256 maxAmount = getMaxVestableAmount(_account);
            require(getTotalVested(_account) <= maxAmount, "Vester: max vestable amount exceeded");
        }

        emit Deposit(_account, _amount);
    }

    function _updateVesting(address _account) private {
        uint256 amount = _getNextClaimableAmount(_account);
        lastVestingTimes[_account] = block.timestamp;

        if (amount == 0) {
            return;
        }

        // transfer claimableAmount from balances to cumulativeClaimAmounts
        _burn(_account, amount);
        cumulativeClaimAmounts[_account] = cumulativeClaimAmounts[_account].add(amount);

        IMintable(esToken).burn(address(this), amount);
    }

    function _getNextClaimableAmount(address _account) private view returns (uint256) {
        uint256 timeDiff = block.timestamp.sub(lastVestingTimes[_account]);

        uint256 balance = balances[_account];
        if (balance == 0) {
            return 0;
        }

        uint256 vestedAmount = getVestedAmount(_account);
        uint256 claimableAmount = vestedAmount.mul(timeDiff).div(vestingDuration);

        if (claimableAmount < balance) {
            return claimableAmount;
        }

        return balance;
    }

    function _claim(address _account, address _receiver) private returns (uint256) {
        _updateVesting(_account);
        uint256 amount = claimable(_account);
        claimedAmounts[_account] = claimedAmounts[_account].add(amount);
        IERC20(claimableToken).safeTransfer(_receiver, amount);
        emit Claim(_account, amount);
        return amount;
    }

    function _validateHandler() private view {
        require(isHandler[msg.sender], "Vester: forbidden");
    }
}

File 3 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

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

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

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

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

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

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

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

File 5 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./IERC20.sol";
import "../math/SafeMath.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 SafeMath for uint256;
    using Address for address;

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

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

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

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

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

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

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

File 6 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

/**
 * @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].
 */
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() internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 7 of 11 : IRewardTracker.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IRewardTracker {
    function depositBalances(address _account, address _depositToken) external view returns (uint256);
    function stakedAmounts(address _account) external view returns (uint256);
    function updateRewards() external;
    function stake(address _depositToken, uint256 _amount) external;
    function stakeForAccount(address _fundingAccount, address _account, address _depositToken, uint256 _amount) external;
    function unstake(address _depositToken, uint256 _amount) external;
    function unstakeForAccount(address _account, address _depositToken, uint256 _amount, address _receiver) external;
    function tokensPerInterval() external view returns (uint256);
    function claim(address _receiver) external returns (uint256);
    function claimForAccount(address _account, address _receiver) external returns (uint256);
    function claimable(address _account) external view returns (uint256);
    function averageStakedAmounts(address _account) external view returns (uint256);
    function cumulativeRewards(address _account) external view returns (uint256);
}

File 8 of 11 : IVester.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IVester {
    function rewardTracker() external view returns (address);

    function claimForAccount(address _account, address _receiver) external returns (uint256);

    function claimable(address _account) external view returns (uint256);
    function cumulativeClaimAmounts(address _account) external view returns (uint256);
    function claimedAmounts(address _account) external view returns (uint256);
    function pairAmounts(address _account) external view returns (uint256);
    function getVestedAmount(address _account) external view returns (uint256);
    function transferredAverageStakedAmounts(address _account) external view returns (uint256);
    function transferredCumulativeRewards(address _account) external view returns (uint256);
    function cumulativeRewardDeductions(address _account) external view returns (uint256);
    function bonusRewards(address _account) external view returns (uint256);

    function transferStakeValues(address _sender, address _receiver) external;
    function setTransferredAverageStakedAmounts(address _account, uint256 _amount) external;
    function setTransferredCumulativeRewards(address _account, uint256 _amount) external;
    function setCumulativeRewardDeductions(address _account, uint256 _amount) external;
    function setBonusRewards(address _account, uint256 _amount) external;

    function getMaxVestableAmount(address _account) external view returns (uint256);
    function getCombinedAverageStakedAmount(address _account) external view returns (uint256);
}

File 9 of 11 : IMintable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IMintable {
    function isMinter(address _account) external returns (bool);
    function setMinter(address _minter, bool _isActive) external;
    function mint(address _account, uint256 _amount) external;
    function burn(address _account, uint256 _amount) external;
}

File 10 of 11 : Governable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

contract Governable {
    address public gov;

    constructor() public {
        gov = msg.sender;
    }

    modifier onlyGov() {
        require(msg.sender == gov, "Governable: forbidden");
        _;
    }

    function setGov(address _gov) external onlyGov {
        gov = _gov;
    }
}

File 11 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.12;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "metadata": {
    "bytecodeHash": "none",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_vestingDuration","type":"uint256"},{"internalType":"address","name":"_esToken","type":"address"},{"internalType":"address","name":"_pairToken","type":"address"},{"internalType":"address","name":"_claimableToken","type":"address"},{"internalType":"address","name":"_rewardTracker","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"PairTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"claimedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bonusRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"claimForAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cumulativeClaimAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cumulativeRewardDeductions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"esToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getCombinedAverageStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getMaxVestableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_esAmount","type":"uint256"}],"name":"getPairAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getTotalVested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getVestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasMaxVestableAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasPairToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasRewardTracker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isHandler","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastVestingTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pairAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setBonusRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setCumulativeRewardDeductions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasMaxVestableAmount","type":"bool"}],"name":"setHasMaxVestableAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTransferredAverageStakedAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setTransferredCumulativeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"transferStakeValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferredAverageStakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferredCumulativeRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestingDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526004805460ff191660121790553480156200001e57600080fd5b506040516200279b3803806200279b833981810160405260a08110156200004457600080fd5b508051602080830151604080850151606086015160809096015182518084018452600a8152690accae6e8cac8409aacb60b31b818701908152845180860190955260048552630ec9aacb60e31b968501969096526001600081905580546001600160a01b03191633179055805196979496929591939092909188918891889188918891620000d59160029162000161565b508551620000eb90600390602089019062000161565b506005859055600680546001600160a01b03199081166001600160a01b038781169190911790925560078054821686841617905560088054821685841617905560098054909116838316179081905516156200014f57600c805460ff191660011790555b505050505050505050505050620001fd565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001a457805160ff1916838001178555620001d4565b82800160010185558215620001d4579182015b82811115620001d4578251825591602001919060010190620001b7565b50620001e2929150620001e6565b5090565b5b80821115620001e25760008155600101620001e7565b61258e806200020d6000396000f3fe608060405234801561001057600080fd5b50600436106102ab5760003560e01c806369de9b9311610172578063b5ff136d116100d9578063d75abb5711610092578063d75abb571461084d578063d89b700714610855578063dd62ed3e14610881578063e3ecc4b2146108af578063f421f62a146108db578063f6d6d5aa146108e3578063f713c230146108eb576102ab565b8063b5ff136d1461076c578063b6b55f2514610792578063b71bce2a146107af578063cfad57a2146107d5578063d0b038b7146107fb578063d5a73fdd14610827576102ab565b8063930354731161012b57806393035473146106e257806395d89b41146107085780639cb7de4b14610710578063a2545fa51461073e578063a9059cbb1461039d578063acf077a514610764576102ab565b806369de9b931461061d5780636bcb411a1461063c57806370a082311461064457806371417b321461066a5780637337035c146106905780637cf8f3b2146106b6576102ab565b806327e235e311610216578063402914f5116101cf578063402914f51461055157806341f227241461057757806345f01ee6146105a357806346ea87af146105c95780634e71d92d146105ef5780635d50e729146105f7576102ab565b806327e235e3146104ab578063313ce567146104d1578063342fcda9146104ef578063387a785d1461051b5780633ccfd60b146105415780633de35b7914610549576102ab565b806313e82e7a1161026857806313e82e7a146104275780631514617e1461045557806315e90a411461045d57806316ca05c51461046557806318160ddd1461046d57806323b872dd14610475576102ab565b806301e33667146102b057806306fdde03146102e857806308f26c7614610365578063095ea7b31461039d5780630db9ea4a146103dd57806312d43a5114610403575b600080fd5b6102e6600480360360608110156102c657600080fd5b506001600160a01b03813581169160208101359091169060400135610919565b005b6102f0610989565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032a578181015183820152602001610312565b50505050905090810190601f1680156103575780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61038b6004803603602081101561037b57600080fd5b50356001600160a01b0316610a14565b60408051918252519081900360200190f35b6103c9600480360360408110156103b357600080fd5b506001600160a01b038135169060200135610b1d565b604080519115158252519081900360200190f35b61038b600480360360208110156103f357600080fd5b50356001600160a01b0316610b68565b61040b610b7a565b604080516001600160a01b039092168252519081900360200190f35b61038b6004803603604081101561043d57600080fd5b506001600160a01b0381358116916020013516610b89565b61038b610bf4565b61038b610bfa565b61040b610c00565b61038b610c0f565b6103c96004803603606081101561048b57600080fd5b506001600160a01b03813581169160208101359091169060400135610b1d565b61038b600480360360208110156104c157600080fd5b50356001600160a01b0316610c15565b6104d9610c27565b6040805160ff9092168252519081900360200190f35b6102e66004803603604081101561050557600080fd5b506001600160a01b038135169060200135610c30565b61038b6004803603602081101561053157600080fd5b50356001600160a01b0316610c96565b6102e6610ca8565b61040b610e6b565b61038b6004803603602081101561056757600080fd5b50356001600160a01b0316610e7a565b6102e66004803603604081101561058d57600080fd5b506001600160a01b038135169060200135610ecb565b61038b600480360360208110156105b957600080fd5b50356001600160a01b0316610f41565b6103c9600480360360208110156105df57600080fd5b50356001600160a01b03166110b3565b61038b6110c8565b61038b6004803603602081101561060d57600080fd5b50356001600160a01b0316611129565b6102e66004803603602081101561063357600080fd5b5035151561113b565b61040b6111a5565b61038b6004803603602081101561065a57600080fd5b50356001600160a01b03166111b4565b61038b6004803603602081101561068057600080fd5b50356001600160a01b03166111cf565b61038b600480360360208110156106a657600080fd5b50356001600160a01b03166111e1565b61038b600480360360408110156106cc57600080fd5b506001600160a01b0381351690602001356111f3565b61038b600480360360208110156106f857600080fd5b50356001600160a01b031661125b565b6102f0611288565b6102e66004803603604081101561072657600080fd5b506001600160a01b03813516906020013515156112e3565b61038b6004803603602081101561075457600080fd5b50356001600160a01b0316611365565b6103c9611377565b61038b6004803603602081101561078257600080fd5b50356001600160a01b0316611380565b6102e6600480360360208110156107a857600080fd5b5035611392565b61038b600480360360208110156107c557600080fd5b50356001600160a01b03166113ef565b6102e6600480360360208110156107eb57600080fd5b50356001600160a01b0316611401565b6102e66004803603604081101561081157600080fd5b506001600160a01b03813516906020013561147a565b61038b6004803603602081101561083d57600080fd5b50356001600160a01b03166114f0565b6103c961151e565b6102e66004803603604081101561086b57600080fd5b506001600160a01b03813516906020013561152f565b61038b6004803603604081101561089757600080fd5b506001600160a01b03813581169160200135166115a5565b6102e6600480360360408110156108c557600080fd5b506001600160a01b0381351690602001356115ad565b6103c9611623565b61040b611634565b6102e66004803603604081101561090157600080fd5b506001600160a01b0381358116916020013516611643565b6001546001600160a01b03163314610970576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b6109846001600160a01b03841683836117ac565b505050565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610a0c5780601f106109e157610100808354040283529160200191610a0c565b820191906000526020600020905b8154815290600101906020018083116109ef57829003601f168201915b505050505081565b6000610a1e611623565b610a2a57506000610b18565b6001600160a01b0380831660008181526013602090815260408083205460158352818420546009548351633792def360e01b81526004810197909752925191969095921692633792def39260248082019391829003018186803b158015610a9057600080fd5b505afa158015610aa4573d6000803e3d6000fd5b505050506040513d6020811015610aba57600080fd5b505190506000610ad483610ace84876117fe565b906117fe565b6001600160a01b03871660009081526014602052604090205490915080821015610b0657600095505050505050610b18565b610b10828261185f565b955050505050505b919050565b6040805162461bcd60e51b81526020600482015260196024820152785665737465723a206e6f6e2d7472616e736665727261626c6560381b6044820152905160009181900360640190fd5b60116020526000908152604090205481565b6001546001600160a01b031681565b600060026000541415610bd1576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b6002600055610bde6118a1565b610be883836118fb565b60016000559392505050565b60055481565b600b5481565b6006546001600160a01b031681565b600a5481565b600d6020526000908152604090205481565b60045460ff1681565b60026000541415610c76576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b6002600055610c836118a1565b610c8d82826119ae565b50506001600055565b60146020526000908152604090205481565b60026000541415610cee576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000553380610cff81806118fb565b506001600160a01b0382166000908152600f6020908152604080832054600d9092528220549091610d3082846117fe565b905060008111610d87576040805162461bcd60e51b815260206004820152601d60248201527f5665737465723a2076657374656420616d6f756e74206973207a65726f000000604482015290519081900360640190fd5b610d8f61151e565b15610dd0576001600160a01b0385166000908152600e6020526040902054610db78682611b50565b600754610dce906001600160a01b031686836117ac565b505b600654610de7906001600160a01b031685846117ac565b610df18583611c40565b6001600160a01b0385166000818152600f6020908152604080832083905560108252808320839055601182528083209290925581519283528201859052818101849052517ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360600190a150506001600055505050565b6007546001600160a01b031681565b6001600160a01b038116600090815260106020908152604080832054600f9092528220548291610eaa919061185f565b90506000610eb784611d30565b9050610ec382826117fe565b949350505050565b60026000541415610f11576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b6002600055610f1e6118a1565b6001600160a01b0390911660009081526015602052604081209190915560019055565b60095460408051633792def360e01b81526001600160a01b038481166004830152915160009384931691633792def3916024808301926020929190829003018186803b158015610f9057600080fd5b505afa158015610fa4573d6000803e3d6000fd5b505050506040513d6020811015610fba57600080fd5b50516001600160a01b038416600090815260136020526040812054919250610fe283836117fe565b905080610ff55760009350505050610b18565b6009546040805163a318021760e01b81526001600160a01b0388811660048301529151600093929092169163a318021791602480820192602092909190829003018186803b15801561104657600080fd5b505afa15801561105a573d6000803e3d6000fd5b505050506040513d602081101561107057600080fd5b50516001600160a01b038716600090815260126020526040902054909150610b106110a58461109f8488611dc9565b90611e22565b610ace8561109f868a611dc9565b60166020526000908152604090205460ff1681565b600060026000541415611110576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b600260005561111f33806118fb565b9050600160005590565b600e6020526000908152604090205481565b6001546001600160a01b03163314611192576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b600c805460ff1916911515919091179055565b6009546001600160a01b031681565b6001600160a01b03166000908152600d602052604090205490565b60106020526000908152604090205481565b60126020526000908152604090205481565b60006111fd611623565b61120957506000611255565b600061121484610f41565b905080611225576000915050611255565b600061123085610a14565b90508061124257600092505050611255565b6112508161109f8685611dc9565b925050505b92915050565b6001600160a01b0381166000908152600f6020908152604080832054600d909252822054611255916117fe565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a0c5780601f106109e157610100808354040283529160200191610a0c565b6001546001600160a01b0316331461133a576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b60156020526000908152604090205481565b600c5460ff1681565b600f6020526000908152604090205481565b600260005414156113d8576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556113e733826119ae565b506001600055565b60136020526000908152604090205481565b6001546001600160a01b03163314611458576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600260005414156114c0576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556114cd6118a1565b6001600160a01b0390911660009081526013602052604081209190915560019055565b6001600160a01b0381166000908152600d6020908152604080832054600f909252822054610ec382826117fe565b6007546001600160a01b0316151590565b60026000541415611575576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556115826118a1565b6001600160a01b0390911660009081526014602052604081209190915560019055565b600092915050565b600260005414156115f3576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556116006118a1565b6001600160a01b0390911660009081526012602052604081209190915560019055565b6009546001600160a01b0316151590565b6008546001600160a01b031681565b60026000541415611689576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556116966118a1565b61169f82610f41565b6001600160a01b0380831660009081526012602090815260408083209490945585831680835284832083905560138252848320546009548651633792def360e01b815260048101939093529551909593949390931692633792def392602480840193919291829003018186803b15801561171857600080fd5b505afa15801561172c573d6000803e3d6000fd5b505050506040513d602081101561174257600080fd5b5051905061175082826117fe565b6001600160a01b0393841660008181526013602081815260408084209590955597909616808252601488528382209490945594865281852085905560159095528084208054958552908420949094558252509081905560019055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610984908490611e64565b600082820183811015611858576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600061185883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f15565b3360009081526016602052604090205460ff166118f9576040805162461bcd60e51b81526020600482015260116024820152702b32b9ba32b91d103337b93134b23232b760791b604482015290519081900360640190fd5b565b600061190683611fac565b600061191184610e7a565b6001600160a01b03851660009081526010602052604090205490915061193790826117fe565b6001600160a01b03808616600090815260106020526040902091909155600854611963911684836117ac565b604080516001600160a01b03861681526020810183905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a19392505050565b600081116119fd576040805162461bcd60e51b815260206004820152601760248201527615995cdd195c8e881a5b9d985b1a590817d85b5bdd5b9d604a1b604482015290519081900360640190fd5b611a0682611fac565b600654611a1e906001600160a01b031683308461208a565b611a2882826120ea565b611a3061151e565b15611aa7576001600160a01b0382166000908152600e6020908152604080832054600d909252822054909190611a679085906111f3565b905081811115611aa4576000611a7d828461185f565b600754909150611a98906001600160a01b031686308461208a565b611aa285826121d0565b505b50505b600c5460ff1615611b08576000611abd83610a14565b905080611ac98461125b565b1115611b065760405162461bcd60e51b81526004018080602001828103825260248152602001806125346024913960400191505060405180910390fd5b505b604080516001600160a01b03841681526020810183905281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a15050565b6001600160a01b038216611b955760405162461bcd60e51b81526004018080602001828103825260228152602001806124f16022913960400191505060405180910390fd5b611bd2816040518060600160405280602381526020016124ce602391396001600160a01b0385166000908152600e60205260409020549190611f15565b6001600160a01b0383166000908152600e6020526040902055600b54611bf8908261185f565b600b556040805182815290516000916001600160a01b038516917f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc049181900360200190a35050565b6001600160a01b038216611c855760405162461bcd60e51b81526004018080602001828103825260228152602001806124f16022913960400191505060405180910390fd5b611cc2816040518060600160405280602381526020016124ce602391396001600160a01b0385166000908152600d60205260409020549190611f15565b6001600160a01b0383166000908152600d6020526040902055600a54611ce8908261185f565b600a556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0381166000908152601160205260408120548190611d5690429061185f565b6001600160a01b0384166000908152600d602052604090205490915080611d8257600092505050610b18565b6000611d8d856114f0565b90506000611daa60055461109f8685611dc990919063ffffffff16565b905082811015611dbf579350610b1892505050565b5090949350505050565b600082611dd857506000611255565b82820282848281611de557fe5b04146118585760405162461bcd60e51b81526004018080602001828103825260218152602001806125136021913960400191505060405180910390fd5b600061185883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506122b6565b6060611eb9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661231b9092919063ffffffff16565b80519091501561098457808060200190516020811015611ed857600080fd5b50516109845760405162461bcd60e51b815260040180806020018281038252602a815260200180612558602a913960400191505060405180910390fd5b60008184841115611fa45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f69578181015183820152602001611f51565b50505050905090810190601f168015611f965780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611fb782611d30565b6001600160a01b0383166000908152601160205260409020429055905080611fdf5750612087565b611fe98282611c40565b6001600160a01b0382166000908152600f602052604090205461200c90826117fe565b6001600160a01b038084166000908152600f6020526040808220939093556006548351632770a7eb60e21b8152306004820152602481018690529351921692639dc29fac926044808301939282900301818387803b15801561206d57600080fd5b505af1158015612081573d6000803e3d6000fd5b50505050505b50565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526120e4908590611e64565b50505050565b6001600160a01b038216612145576040805162461bcd60e51b815260206004820181905260248201527f5665737465723a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600a5461215290826117fe565b600a556001600160a01b0382166000908152600d602052604090205461217890826117fe565b6001600160a01b0383166000818152600d602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03821661222b576040805162461bcd60e51b815260206004820181905260248201527f5665737465723a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600b5461223890826117fe565b600b556001600160a01b0382166000908152600e602052604090205461225e90826117fe565b6001600160a01b0383166000818152600e602090815260408083209490945583518581529351929391927f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc049281900390910190a35050565b600081836123055760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f69578181015183820152602001611f51565b50600083858161231157fe5b0495945050505050565b6060610ec384846000858561232f85612441565b612380576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106123bf5780518252601f1990920191602091820191016123a0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612421576040519150601f19603f3d011682016040523d82523d6000602084013e612426565b606091505b5091509150612436828286612447565b979650505050505050565b3b151590565b60608315612456575081611858565b8251156124665782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611f69578181015183820152602001611f5156fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c005665737465723a206275726e20616d6f756e7420657863656564732062616c616e63655665737465723a206275726e2066726f6d20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775665737465723a206d6178207665737461626c6520616d6f756e742065786365656465645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a164736f6c634300060c000a0000000000000000000000000000000000000000000000000000000001e13380000000000000000000000000d1b2f8dff8437be57430ee98767d512f252ead61000000000000000000000000acec858f6397dd227dd4ed5be91a5bb180b8c4300000000000000000000000002760e46d9bb43dafcbecaad1f64b93207f9f0ed7000000000000000000000000e8e2e78d8ca52f238caf69f020fa961f8a7632e9

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102ab5760003560e01c806369de9b9311610172578063b5ff136d116100d9578063d75abb5711610092578063d75abb571461084d578063d89b700714610855578063dd62ed3e14610881578063e3ecc4b2146108af578063f421f62a146108db578063f6d6d5aa146108e3578063f713c230146108eb576102ab565b8063b5ff136d1461076c578063b6b55f2514610792578063b71bce2a146107af578063cfad57a2146107d5578063d0b038b7146107fb578063d5a73fdd14610827576102ab565b8063930354731161012b57806393035473146106e257806395d89b41146107085780639cb7de4b14610710578063a2545fa51461073e578063a9059cbb1461039d578063acf077a514610764576102ab565b806369de9b931461061d5780636bcb411a1461063c57806370a082311461064457806371417b321461066a5780637337035c146106905780637cf8f3b2146106b6576102ab565b806327e235e311610216578063402914f5116101cf578063402914f51461055157806341f227241461057757806345f01ee6146105a357806346ea87af146105c95780634e71d92d146105ef5780635d50e729146105f7576102ab565b806327e235e3146104ab578063313ce567146104d1578063342fcda9146104ef578063387a785d1461051b5780633ccfd60b146105415780633de35b7914610549576102ab565b806313e82e7a1161026857806313e82e7a146104275780631514617e1461045557806315e90a411461045d57806316ca05c51461046557806318160ddd1461046d57806323b872dd14610475576102ab565b806301e33667146102b057806306fdde03146102e857806308f26c7614610365578063095ea7b31461039d5780630db9ea4a146103dd57806312d43a5114610403575b600080fd5b6102e6600480360360608110156102c657600080fd5b506001600160a01b03813581169160208101359091169060400135610919565b005b6102f0610989565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561032a578181015183820152602001610312565b50505050905090810190601f1680156103575780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61038b6004803603602081101561037b57600080fd5b50356001600160a01b0316610a14565b60408051918252519081900360200190f35b6103c9600480360360408110156103b357600080fd5b506001600160a01b038135169060200135610b1d565b604080519115158252519081900360200190f35b61038b600480360360208110156103f357600080fd5b50356001600160a01b0316610b68565b61040b610b7a565b604080516001600160a01b039092168252519081900360200190f35b61038b6004803603604081101561043d57600080fd5b506001600160a01b0381358116916020013516610b89565b61038b610bf4565b61038b610bfa565b61040b610c00565b61038b610c0f565b6103c96004803603606081101561048b57600080fd5b506001600160a01b03813581169160208101359091169060400135610b1d565b61038b600480360360208110156104c157600080fd5b50356001600160a01b0316610c15565b6104d9610c27565b6040805160ff9092168252519081900360200190f35b6102e66004803603604081101561050557600080fd5b506001600160a01b038135169060200135610c30565b61038b6004803603602081101561053157600080fd5b50356001600160a01b0316610c96565b6102e6610ca8565b61040b610e6b565b61038b6004803603602081101561056757600080fd5b50356001600160a01b0316610e7a565b6102e66004803603604081101561058d57600080fd5b506001600160a01b038135169060200135610ecb565b61038b600480360360208110156105b957600080fd5b50356001600160a01b0316610f41565b6103c9600480360360208110156105df57600080fd5b50356001600160a01b03166110b3565b61038b6110c8565b61038b6004803603602081101561060d57600080fd5b50356001600160a01b0316611129565b6102e66004803603602081101561063357600080fd5b5035151561113b565b61040b6111a5565b61038b6004803603602081101561065a57600080fd5b50356001600160a01b03166111b4565b61038b6004803603602081101561068057600080fd5b50356001600160a01b03166111cf565b61038b600480360360208110156106a657600080fd5b50356001600160a01b03166111e1565b61038b600480360360408110156106cc57600080fd5b506001600160a01b0381351690602001356111f3565b61038b600480360360208110156106f857600080fd5b50356001600160a01b031661125b565b6102f0611288565b6102e66004803603604081101561072657600080fd5b506001600160a01b03813516906020013515156112e3565b61038b6004803603602081101561075457600080fd5b50356001600160a01b0316611365565b6103c9611377565b61038b6004803603602081101561078257600080fd5b50356001600160a01b0316611380565b6102e6600480360360208110156107a857600080fd5b5035611392565b61038b600480360360208110156107c557600080fd5b50356001600160a01b03166113ef565b6102e6600480360360208110156107eb57600080fd5b50356001600160a01b0316611401565b6102e66004803603604081101561081157600080fd5b506001600160a01b03813516906020013561147a565b61038b6004803603602081101561083d57600080fd5b50356001600160a01b03166114f0565b6103c961151e565b6102e66004803603604081101561086b57600080fd5b506001600160a01b03813516906020013561152f565b61038b6004803603604081101561089757600080fd5b506001600160a01b03813581169160200135166115a5565b6102e6600480360360408110156108c557600080fd5b506001600160a01b0381351690602001356115ad565b6103c9611623565b61040b611634565b6102e66004803603604081101561090157600080fd5b506001600160a01b0381358116916020013516611643565b6001546001600160a01b03163314610970576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b6109846001600160a01b03841683836117ac565b505050565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610a0c5780601f106109e157610100808354040283529160200191610a0c565b820191906000526020600020905b8154815290600101906020018083116109ef57829003601f168201915b505050505081565b6000610a1e611623565b610a2a57506000610b18565b6001600160a01b0380831660008181526013602090815260408083205460158352818420546009548351633792def360e01b81526004810197909752925191969095921692633792def39260248082019391829003018186803b158015610a9057600080fd5b505afa158015610aa4573d6000803e3d6000fd5b505050506040513d6020811015610aba57600080fd5b505190506000610ad483610ace84876117fe565b906117fe565b6001600160a01b03871660009081526014602052604090205490915080821015610b0657600095505050505050610b18565b610b10828261185f565b955050505050505b919050565b6040805162461bcd60e51b81526020600482015260196024820152785665737465723a206e6f6e2d7472616e736665727261626c6560381b6044820152905160009181900360640190fd5b60116020526000908152604090205481565b6001546001600160a01b031681565b600060026000541415610bd1576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b6002600055610bde6118a1565b610be883836118fb565b60016000559392505050565b60055481565b600b5481565b6006546001600160a01b031681565b600a5481565b600d6020526000908152604090205481565b60045460ff1681565b60026000541415610c76576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b6002600055610c836118a1565b610c8d82826119ae565b50506001600055565b60146020526000908152604090205481565b60026000541415610cee576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000553380610cff81806118fb565b506001600160a01b0382166000908152600f6020908152604080832054600d9092528220549091610d3082846117fe565b905060008111610d87576040805162461bcd60e51b815260206004820152601d60248201527f5665737465723a2076657374656420616d6f756e74206973207a65726f000000604482015290519081900360640190fd5b610d8f61151e565b15610dd0576001600160a01b0385166000908152600e6020526040902054610db78682611b50565b600754610dce906001600160a01b031686836117ac565b505b600654610de7906001600160a01b031685846117ac565b610df18583611c40565b6001600160a01b0385166000818152600f6020908152604080832083905560108252808320839055601182528083209290925581519283528201859052818101849052517ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360600190a150506001600055505050565b6007546001600160a01b031681565b6001600160a01b038116600090815260106020908152604080832054600f9092528220548291610eaa919061185f565b90506000610eb784611d30565b9050610ec382826117fe565b949350505050565b60026000541415610f11576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b6002600055610f1e6118a1565b6001600160a01b0390911660009081526015602052604081209190915560019055565b60095460408051633792def360e01b81526001600160a01b038481166004830152915160009384931691633792def3916024808301926020929190829003018186803b158015610f9057600080fd5b505afa158015610fa4573d6000803e3d6000fd5b505050506040513d6020811015610fba57600080fd5b50516001600160a01b038416600090815260136020526040812054919250610fe283836117fe565b905080610ff55760009350505050610b18565b6009546040805163a318021760e01b81526001600160a01b0388811660048301529151600093929092169163a318021791602480820192602092909190829003018186803b15801561104657600080fd5b505afa15801561105a573d6000803e3d6000fd5b505050506040513d602081101561107057600080fd5b50516001600160a01b038716600090815260126020526040902054909150610b106110a58461109f8488611dc9565b90611e22565b610ace8561109f868a611dc9565b60166020526000908152604090205460ff1681565b600060026000541415611110576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b600260005561111f33806118fb565b9050600160005590565b600e6020526000908152604090205481565b6001546001600160a01b03163314611192576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b600c805460ff1916911515919091179055565b6009546001600160a01b031681565b6001600160a01b03166000908152600d602052604090205490565b60106020526000908152604090205481565b60126020526000908152604090205481565b60006111fd611623565b61120957506000611255565b600061121484610f41565b905080611225576000915050611255565b600061123085610a14565b90508061124257600092505050611255565b6112508161109f8685611dc9565b925050505b92915050565b6001600160a01b0381166000908152600f6020908152604080832054600d909252822054611255916117fe565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a0c5780601f106109e157610100808354040283529160200191610a0c565b6001546001600160a01b0316331461133a576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b6001600160a01b03919091166000908152601660205260409020805460ff1916911515919091179055565b60156020526000908152604090205481565b600c5460ff1681565b600f6020526000908152604090205481565b600260005414156113d8576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556113e733826119ae565b506001600055565b60136020526000908152604090205481565b6001546001600160a01b03163314611458576040805162461bcd60e51b815260206004820152601560248201527423b7bb32b93730b136329d103337b93134b23232b760591b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600260005414156114c0576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556114cd6118a1565b6001600160a01b0390911660009081526013602052604081209190915560019055565b6001600160a01b0381166000908152600d6020908152604080832054600f909252822054610ec382826117fe565b6007546001600160a01b0316151590565b60026000541415611575576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556115826118a1565b6001600160a01b0390911660009081526014602052604081209190915560019055565b600092915050565b600260005414156115f3576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556116006118a1565b6001600160a01b0390911660009081526012602052604081209190915560019055565b6009546001600160a01b0316151590565b6008546001600160a01b031681565b60026000541415611689576040805162461bcd60e51b815260206004820152601f60248201526000805160206124ae833981519152604482015290519081900360640190fd5b60026000556116966118a1565b61169f82610f41565b6001600160a01b0380831660009081526012602090815260408083209490945585831680835284832083905560138252848320546009548651633792def360e01b815260048101939093529551909593949390931692633792def392602480840193919291829003018186803b15801561171857600080fd5b505afa15801561172c573d6000803e3d6000fd5b505050506040513d602081101561174257600080fd5b5051905061175082826117fe565b6001600160a01b0393841660008181526013602081815260408084209590955597909616808252601488528382209490945594865281852085905560159095528084208054958552908420949094558252509081905560019055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610984908490611e64565b600082820183811015611858576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600061185883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611f15565b3360009081526016602052604090205460ff166118f9576040805162461bcd60e51b81526020600482015260116024820152702b32b9ba32b91d103337b93134b23232b760791b604482015290519081900360640190fd5b565b600061190683611fac565b600061191184610e7a565b6001600160a01b03851660009081526010602052604090205490915061193790826117fe565b6001600160a01b03808616600090815260106020526040902091909155600854611963911684836117ac565b604080516001600160a01b03861681526020810183905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a19392505050565b600081116119fd576040805162461bcd60e51b815260206004820152601760248201527615995cdd195c8e881a5b9d985b1a590817d85b5bdd5b9d604a1b604482015290519081900360640190fd5b611a0682611fac565b600654611a1e906001600160a01b031683308461208a565b611a2882826120ea565b611a3061151e565b15611aa7576001600160a01b0382166000908152600e6020908152604080832054600d909252822054909190611a679085906111f3565b905081811115611aa4576000611a7d828461185f565b600754909150611a98906001600160a01b031686308461208a565b611aa285826121d0565b505b50505b600c5460ff1615611b08576000611abd83610a14565b905080611ac98461125b565b1115611b065760405162461bcd60e51b81526004018080602001828103825260248152602001806125346024913960400191505060405180910390fd5b505b604080516001600160a01b03841681526020810183905281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a15050565b6001600160a01b038216611b955760405162461bcd60e51b81526004018080602001828103825260228152602001806124f16022913960400191505060405180910390fd5b611bd2816040518060600160405280602381526020016124ce602391396001600160a01b0385166000908152600e60205260409020549190611f15565b6001600160a01b0383166000908152600e6020526040902055600b54611bf8908261185f565b600b556040805182815290516000916001600160a01b038516917f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc049181900360200190a35050565b6001600160a01b038216611c855760405162461bcd60e51b81526004018080602001828103825260228152602001806124f16022913960400191505060405180910390fd5b611cc2816040518060600160405280602381526020016124ce602391396001600160a01b0385166000908152600d60205260409020549190611f15565b6001600160a01b0383166000908152600d6020526040902055600a54611ce8908261185f565b600a556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b0381166000908152601160205260408120548190611d5690429061185f565b6001600160a01b0384166000908152600d602052604090205490915080611d8257600092505050610b18565b6000611d8d856114f0565b90506000611daa60055461109f8685611dc990919063ffffffff16565b905082811015611dbf579350610b1892505050565b5090949350505050565b600082611dd857506000611255565b82820282848281611de557fe5b04146118585760405162461bcd60e51b81526004018080602001828103825260218152602001806125136021913960400191505060405180910390fd5b600061185883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506122b6565b6060611eb9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661231b9092919063ffffffff16565b80519091501561098457808060200190516020811015611ed857600080fd5b50516109845760405162461bcd60e51b815260040180806020018281038252602a815260200180612558602a913960400191505060405180910390fd5b60008184841115611fa45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f69578181015183820152602001611f51565b50505050905090810190601f168015611f965780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611fb782611d30565b6001600160a01b0383166000908152601160205260409020429055905080611fdf5750612087565b611fe98282611c40565b6001600160a01b0382166000908152600f602052604090205461200c90826117fe565b6001600160a01b038084166000908152600f6020526040808220939093556006548351632770a7eb60e21b8152306004820152602481018690529351921692639dc29fac926044808301939282900301818387803b15801561206d57600080fd5b505af1158015612081573d6000803e3d6000fd5b50505050505b50565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526120e4908590611e64565b50505050565b6001600160a01b038216612145576040805162461bcd60e51b815260206004820181905260248201527f5665737465723a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600a5461215290826117fe565b600a556001600160a01b0382166000908152600d602052604090205461217890826117fe565b6001600160a01b0383166000818152600d602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03821661222b576040805162461bcd60e51b815260206004820181905260248201527f5665737465723a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b600b5461223890826117fe565b600b556001600160a01b0382166000908152600e602052604090205461225e90826117fe565b6001600160a01b0383166000818152600e602090815260408083209490945583518581529351929391927f659523c479d006050ebc0d0e48fea36d1b2c5d45b2f31402ac6f8671fc84cc049281900390910190a35050565b600081836123055760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f69578181015183820152602001611f51565b50600083858161231157fe5b0495945050505050565b6060610ec384846000858561232f85612441565b612380576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106123bf5780518252601f1990920191602091820191016123a0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612421576040519150601f19603f3d011682016040523d82523d6000602084013e612426565b606091505b5091509150612436828286612447565b979650505050505050565b3b151590565b60608315612456575081611858565b8251156124665782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611f69578181015183820152602001611f5156fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c005665737465723a206275726e20616d6f756e7420657863656564732062616c616e63655665737465723a206275726e2066726f6d20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775665737465723a206d6178207665737461626c6520616d6f756e742065786365656465645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a164736f6c634300060c000a

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

0000000000000000000000000000000000000000000000000000000001e13380000000000000000000000000d1b2f8dff8437be57430ee98767d512f252ead61000000000000000000000000acec858f6397dd227dd4ed5be91a5bb180b8c4300000000000000000000000002760e46d9bb43dafcbecaad1f64b93207f9f0ed7000000000000000000000000e8e2e78d8ca52f238caf69f020fa961f8a7632e9

-----Decoded View---------------
Arg [0] : _vestingDuration (uint256): 31536000
Arg [1] : _esToken (address): 0xd1b2f8DFF8437BE57430Ee98767d512F252ead61
Arg [2] : _pairToken (address): 0xaCEC858f6397Dd227dD4ed5bE91A5BB180b8c430
Arg [3] : _claimableToken (address): 0x2760E46d9BB43dafCbEcaad1F64b93207f9f0eD7
Arg [4] : _rewardTracker (address): 0xE8e2E78D8cA52f238CAf69f020fA961f8A7632e9

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000001e13380
Arg [1] : 000000000000000000000000d1b2f8dff8437be57430ee98767d512f252ead61
Arg [2] : 000000000000000000000000acec858f6397dd227dd4ed5be91a5bb180b8c430
Arg [3] : 0000000000000000000000002760e46d9bb43dafcbecaad1f64b93207f9f0ed7
Arg [4] : 000000000000000000000000e8e2e78d8ca52f238caf69f020fa961f8a7632e9


Block Transaction Gas Used Reward
view all blocks produced

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

OVERVIEW

Metavault.Trade is a cutting-edge Decentralised Exchange platform that doesn’t require registration. To start trading on Metavault.

Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.