MATIC Price: $0.533965 (-0.50%)
Gas: 30.9 GWei
 

Overview

MATIC Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 MATIC

MATIC Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Handler593820962024-07-15 7:54:045 days ago1721030044IN
Metavault: sbfMVX Token
0 MATIC0.01853400
Set Handler581824022024-06-15 7:59:4935 days ago1718438389IN
Metavault: sbfMVX Token
0 MATIC0.0019224841.50000005
Set Handler500555462023-11-17 13:43:43246 days ago1700228623IN
Metavault: sbfMVX Token
0 MATIC0.01853400
Approve422373612023-05-03 1:30:39445 days ago1683077439IN
Metavault: sbfMVX Token
0 MATIC0.00991963213.21093792
Set Gov419016002023-04-24 12:32:08453 days ago1682339528IN
Metavault: sbfMVX Token
0 MATIC0.01293269479.77059319
Transfer414838482023-04-13 12:33:32464 days ago1681389212IN
Metavault: sbfMVX Token
0 MATIC0.00699782264.20852964
Transfer414838262023-04-13 12:32:46464 days ago1681389166IN
Metavault: sbfMVX Token
0 MATIC0.00730347275.74853067
Claim409696742023-03-31 7:18:44478 days ago1680247124IN
Metavault: sbfMVX Token
0 MATIC0.0119820198.51284095
Set Handler409413112023-03-30 14:06:26478 days ago1680185186IN
Metavault: sbfMVX Token
0 MATIC0.01853400
Transfer405447602023-03-19 23:53:23489 days ago1679270003IN
Metavault: sbfMVX Token
0 MATIC0.002293586.86853142
Set In Private S...402291502023-03-11 17:25:06497 days ago1678555506IN
Metavault: sbfMVX Token
0 MATIC0.00372244143.66285289
Set In Private S...398172542023-02-28 20:40:19508 days ago1677616819IN
Metavault: sbfMVX Token
0 MATIC0.01736515604.82571348
Set In Private S...394273622023-02-18 10:07:52518 days ago1676714872IN
Metavault: sbfMVX Token
0 MATIC0.01268952441.78965698
Transfer386132462023-01-28 5:15:11540 days ago1674882911IN
Metavault: sbfMVX Token
0 MATIC0.0024124191
Claim374214032022-12-29 13:38:58569 days ago1672321138IN
Metavault: sbfMVX Token
0 MATIC0.01603356153.38871761
Transfer367231882022-12-12 2:38:03587 days ago1670812683IN
Metavault: sbfMVX Token
0 MATIC0.0009367635.38449572
Set In Private S...358423432022-11-20 12:00:31608 days ago1668945631IN
Metavault: sbfMVX Token
0 MATIC0.0259111,000
Stake358422732022-11-20 11:58:07608 days ago1668945487IN
Metavault: sbfMVX Token
0 MATIC0.0103783271.54553235
Stake358151432022-11-19 20:20:14609 days ago1668889214IN
Metavault: sbfMVX Token
0 MATIC0.0043517730.00000001
Stake358034262022-11-19 13:32:22609 days ago1668864742IN
Metavault: sbfMVX Token
0 MATIC0.0049542530.55185254
Set In Private S...358030912022-11-19 13:20:52609 days ago1668864052IN
Metavault: sbfMVX Token
0 MATIC0.0287111,000
Set In Private S...357552172022-11-18 9:12:41610 days ago1668762761IN
Metavault: sbfMVX Token
0 MATIC0.0287231,000
Set In Private S...357541472022-11-18 8:33:44610 days ago1668760424IN
Metavault: sbfMVX Token
0 MATIC0.0287111,000
Transfer355617282022-11-13 16:38:13615 days ago1668357493IN
Metavault: sbfMVX Token
0 MATIC0.0010596739.99072458
Transfer355617022022-11-13 16:37:17615 days ago1668357437IN
Metavault: sbfMVX Token
0 MATIC0.0010376239.15855005
View all transactions

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

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

Contract Name:
StakedMvxTracker

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 100 runs

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

pragma solidity 0.6.12;

import "./RewardTracker.sol";

contract StakedMvxTracker is RewardTracker {
    constructor() public RewardTracker("Staked MVX", "sMVX") {}
}

contract BonusMvxTracker is RewardTracker {
    constructor() public RewardTracker("Staked + Bonus MVX", "sbMVX") {}
}

contract FeeMvxTracker is RewardTracker {
    constructor() public RewardTracker("Staked + Bonus + Fee MVX", "sbfMVX") {}
}

contract StakedMvlpTracker is RewardTracker {
    constructor() public RewardTracker("Fee + Staked MVLP", "fsMVLP") {}
}

contract FeeMvlpTracker is RewardTracker {
    constructor() public RewardTracker("Fee MVLP", "fMVLP") {}
}

File 2 of 10 : RewardTracker.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/IRewardDistributor.sol";
import "./interfaces/IRewardTracker.sol";
import "../access/Governable.sol";

contract RewardTracker is IERC20, ReentrancyGuard, IRewardTracker, Governable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 public constant BASIS_POINTS_DIVISOR = 10000;
    uint256 public constant PRECISION = 1e30;

    uint8 public constant decimals = 18;

    bool public isInitialized;

    string public name;
    string public symbol;

    address public distributor;
    mapping(address => bool) public isDepositToken;
    mapping(address => mapping(address => uint256)) public override depositBalances;
    mapping(address => uint256) public totalDepositSupply;

    uint256 public override totalSupply;
    mapping(address => uint256) public balances;
    mapping(address => mapping(address => uint256)) public allowances;

    uint256 public cumulativeRewardPerToken;
    mapping(address => uint256) public override stakedAmounts;
    mapping(address => uint256) public claimableReward;
    mapping(address => uint256) public previousCumulatedRewardPerToken;
    mapping(address => uint256) public override cumulativeRewards;
    mapping(address => uint256) public override averageStakedAmounts;

    bool public inPrivateTransferMode;
    bool public inPrivateStakingMode;
    bool public inPrivateClaimingMode;
    mapping(address => bool) public isHandler;

    event Claim(address receiver, uint256 amount);

    constructor(string memory _name, string memory _symbol) public {
        name = _name;
        symbol = _symbol;
    }

    function initialize(address[] memory _depositTokens, address _distributor) external onlyGov {
        require(!isInitialized, "RewardTracker: already initialized");
        isInitialized = true;

        for (uint256 i = 0; i < _depositTokens.length; i++) {
            address depositToken = _depositTokens[i];
            isDepositToken[depositToken] = true;
        }

        distributor = _distributor;
    }

    function setDepositToken(address _depositToken, bool _isDepositToken) external onlyGov {
        isDepositToken[_depositToken] = _isDepositToken;
    }

    function setInPrivateTransferMode(bool _inPrivateTransferMode) external onlyGov {
        inPrivateTransferMode = _inPrivateTransferMode;
    }

    function setInPrivateStakingMode(bool _inPrivateStakingMode) external onlyGov {
        inPrivateStakingMode = _inPrivateStakingMode;
    }

    function setInPrivateClaimingMode(bool _inPrivateClaimingMode) external onlyGov {
        inPrivateClaimingMode = _inPrivateClaimingMode;
    }

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

    // 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 balanceOf(address _account) external view override returns (uint256) {
        return balances[_account];
    }

    function stake(address _depositToken, uint256 _amount) external override nonReentrant {
        if (inPrivateStakingMode) {
            revert("RewardTracker: action not enabled");
        }
        _stake(msg.sender, msg.sender, _depositToken, _amount);
    }

    function stakeForAccount(
        address _fundingAccount,
        address _account,
        address _depositToken,
        uint256 _amount
    ) external override nonReentrant {
        _validateHandler();
        _stake(_fundingAccount, _account, _depositToken, _amount);
    }

    function unstake(address _depositToken, uint256 _amount) external override nonReentrant {
        if (inPrivateStakingMode) {
            revert("RewardTracker: action not enabled");
        }
        _unstake(msg.sender, _depositToken, _amount, msg.sender);
    }

    function unstakeForAccount(
        address _account,
        address _depositToken,
        uint256 _amount,
        address _receiver
    ) external override nonReentrant {
        _validateHandler();
        _unstake(_account, _depositToken, _amount, _receiver);
    }

    function transfer(address _recipient, uint256 _amount) external override returns (bool) {
        _transfer(msg.sender, _recipient, _amount);
        return true;
    }

    function allowance(address _owner, address _spender) external view override returns (uint256) {
        return allowances[_owner][_spender];
    }

    function approve(address _spender, uint256 _amount) external override returns (bool) {
        _approve(msg.sender, _spender, _amount);
        return true;
    }

    function transferFrom(
        address _sender,
        address _recipient,
        uint256 _amount
    ) external override returns (bool) {
        if (isHandler[msg.sender]) {
            _transfer(_sender, _recipient, _amount);
            return true;
        }

        uint256 nextAllowance = allowances[_sender][msg.sender].sub(_amount, "RewardTracker: transfer amount exceeds allowance");
        _approve(_sender, msg.sender, nextAllowance);
        _transfer(_sender, _recipient, _amount);
        return true;
    }

    function tokensPerInterval() external view override returns (uint256) {
        return IRewardDistributor(distributor).tokensPerInterval();
    }

    function updateRewards() external override nonReentrant {
        _updateRewards(address(0));
    }

    function claim(address _receiver) external override nonReentrant returns (uint256) {
        if (inPrivateClaimingMode) {
            revert("RewardTracker: action not enabled");
        }
        return _claim(msg.sender, _receiver);
    }

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

    function claimable(address _account) public view override returns (uint256) {
        uint256 stakedAmount = stakedAmounts[_account];
        if (stakedAmount == 0) {
            return claimableReward[_account];
        }
        uint256 supply = totalSupply;
        uint256 pendingRewards = IRewardDistributor(distributor).pendingRewards().mul(PRECISION);
        uint256 nextCumulativeRewardPerToken = cumulativeRewardPerToken.add(pendingRewards.div(supply));
        return claimableReward[_account].add(stakedAmount.mul(nextCumulativeRewardPerToken.sub(previousCumulatedRewardPerToken[_account])).div(PRECISION));
    }

    function rewardToken() public view returns (address) {
        return IRewardDistributor(distributor).rewardToken();
    }

    function _claim(address _account, address _receiver) private returns (uint256) {
        _updateRewards(_account);

        uint256 tokenAmount = claimableReward[_account];
        claimableReward[_account] = 0;

        if (tokenAmount > 0) {
            IERC20(rewardToken()).safeTransfer(_receiver, tokenAmount);
            emit Claim(_account, tokenAmount);
        }

        return tokenAmount;
    }

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

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

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

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

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

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

    function _transfer(
        address _sender,
        address _recipient,
        uint256 _amount
    ) private {
        require(_sender != address(0), "RewardTracker: transfer from the zero address");
        require(_recipient != address(0), "RewardTracker: transfer to the zero address");

        if (inPrivateTransferMode) {
            _validateHandler();
        }

        balances[_sender] = balances[_sender].sub(_amount, "RewardTracker: transfer amount exceeds balance");
        balances[_recipient] = balances[_recipient].add(_amount);

        emit Transfer(_sender, _recipient, _amount);
    }

    function _approve(
        address _owner,
        address _spender,
        uint256 _amount
    ) private {
        require(_owner != address(0), "RewardTracker: approve from the zero address");
        require(_spender != address(0), "RewardTracker: approve to the zero address");

        allowances[_owner][_spender] = _amount;

        emit Approval(_owner, _spender, _amount);
    }

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

    function _stake(
        address _fundingAccount,
        address _account,
        address _depositToken,
        uint256 _amount
    ) private {
        require(_amount > 0, "RewardTracker: invalid _amount");
        require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken");

        IERC20(_depositToken).safeTransferFrom(_fundingAccount, address(this), _amount);

        _updateRewards(_account);

        stakedAmounts[_account] = stakedAmounts[_account].add(_amount);
        depositBalances[_account][_depositToken] = depositBalances[_account][_depositToken].add(_amount);
        totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken].add(_amount);

        _mint(_account, _amount);
    }

    function _unstake(
        address _account,
        address _depositToken,
        uint256 _amount,
        address _receiver
    ) private {
        require(_amount > 0, "RewardTracker: invalid _amount");
        require(isDepositToken[_depositToken], "RewardTracker: invalid _depositToken");

        _updateRewards(_account);

        uint256 stakedAmount = stakedAmounts[_account];
        require(stakedAmounts[_account] >= _amount, "RewardTracker: _amount exceeds stakedAmount");

        stakedAmounts[_account] = stakedAmount.sub(_amount);

        uint256 depositBalance = depositBalances[_account][_depositToken];
        require(depositBalance >= _amount, "RewardTracker: _amount exceeds depositBalance");
        depositBalances[_account][_depositToken] = depositBalance.sub(_amount);
        totalDepositSupply[_depositToken] = totalDepositSupply[_depositToken].sub(_amount);

        _burn(_account, _amount);
        IERC20(_depositToken).safeTransfer(_receiver, _amount);
    }

    function _updateRewards(address _account) private {
        uint256 blockReward = IRewardDistributor(distributor).distribute();

        uint256 supply = totalSupply;
        uint256 _cumulativeRewardPerToken = cumulativeRewardPerToken;
        if (supply > 0 && blockReward > 0) {
            _cumulativeRewardPerToken = _cumulativeRewardPerToken.add(blockReward.mul(PRECISION).div(supply));
            cumulativeRewardPerToken = _cumulativeRewardPerToken;
        }

        // cumulativeRewardPerToken can only increase
        // so if cumulativeRewardPerToken is zero, it means there are no rewards yet
        if (_cumulativeRewardPerToken == 0) {
            return;
        }

        if (_account != address(0)) {
            uint256 stakedAmount = stakedAmounts[_account];
            uint256 accountReward = stakedAmount.mul(_cumulativeRewardPerToken.sub(previousCumulatedRewardPerToken[_account])).div(PRECISION);
            uint256 _claimableReward = claimableReward[_account].add(accountReward);

            claimableReward[_account] = _claimableReward;
            previousCumulatedRewardPerToken[_account] = _cumulativeRewardPerToken;

            if (_claimableReward > 0 && stakedAmounts[_account] > 0) {
                uint256 nextCumulativeReward = cumulativeRewards[_account].add(accountReward);

                averageStakedAmounts[_account] = averageStakedAmounts[_account].mul(cumulativeRewards[_account]).div(nextCumulativeReward).add(
                    stakedAmount.mul(accountReward).div(nextCumulativeReward)
                );

                cumulativeRewards[_account] = nextCumulativeReward;
            }
        }
    }
}

File 3 of 10 : 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 10 : 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 10 : 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 10 : 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 10 : IRewardDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IRewardDistributor {
    function rewardToken() external view returns (address);
    function tokensPerInterval() external view returns (uint256);
    function pendingRewards() external view returns (uint256);
    function distribute() external returns (uint256);
}

File 8 of 10 : 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 9 of 10 : 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 10 of 10 : 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":[],"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":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"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"averageStakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_receiver","type":"address"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"claimableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cumulativeRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"cumulativeRewards","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":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"depositBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateClaimingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateStakingMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inPrivateTransferMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_depositTokens","type":"address[]"},{"internalType":"address","name":"_distributor","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isDepositToken","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":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"previousCumulatedRewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"bool","name":"_isDepositToken","type":"bool"}],"name":"setDepositToken","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":"_inPrivateClaimingMode","type":"bool"}],"name":"setInPrivateClaimingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateStakingMode","type":"bool"}],"name":"setInPrivateStakingMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inPrivateTransferMode","type":"bool"}],"name":"setInPrivateTransferMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fundingAccount","type":"address"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensPerInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalDepositSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"unstakeForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateRewards","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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102955760003560e01c806355b6ed5c11610167578063bfe10928116100ce578063e44b755811610087578063e44b7558146108f0578063e95034251461091e578063f5d9d63e14610944578063f5fc507614610972578063f76033d31461097a578063f7c618c11461098257610295565b8063bfe1092814610858578063c2a672e014610860578063c5fa27301461088c578063cfad57a214610894578063dd62ed3e146108ba578063dfbaefb1146108e857610295565b8063a318021711610120578063a3180217146107a4578063a8d93627146107ca578063a9059cbb146107d2578063aaf5eb68146107fe578063adc9772e14610806578063b89e45b31461083257610295565b806355b6ed5c146106bf5780635a47a1a7146106ed57806370a082311461070c578063790b5a6c1461073257806395d89b411461076e5780639cb7de4b1461077657610295565b806323b872dd1161020b5780633e158b0c116101c45780633e158b0c14610571578063402914f51461057957806344a084111461059f578063462d0b2e146105c557806346ea87af14610673578063552ce1dc1461069957610295565b806323b872dd146104aa57806327e235e3146104e0578063313ce567146105065780633792def314610524578063392e53cd1461054a5780633cd7f7001461055257610295565b8063126082cf1161025d578063126082cf1461040357806312d43a511461040b57806313e82e7a1461042f57806318160ddd1461045d5780631d30d5bc146104655780631e83409a1461048457610295565b806301e336671461029a57806306fdde03146102d2578063095ea7b31461034f578063098bf59d1461038f57806310c1c103146103cb575b600080fd5b6102d0600480360360608110156102b057600080fd5b506001600160a01b0381358116916020810135909116906040013561098a565b005b6102da6109f0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103145781810151838201526020016102fc565b50505050905090810190601f1680156103415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61037b6004803603604081101561036557600080fd5b506001600160a01b038135169060200135610a7b565b604080519115158252519081900360200190f35b6102d0600480360360808110156103a557600080fd5b506001600160a01b03813581169160208101358216916040820135916060013516610a92565b6103f1600480360360208110156103e157600080fd5b50356001600160a01b0316610afc565b60408051918252519081900360200190f35b6103f1610b0e565b610413610b14565b604080516001600160a01b039092168252519081900360200190f35b6103f16004803603604081101561044557600080fd5b506001600160a01b0381358116916020013516610b23565b6103f1610b8e565b6102d06004803603602081101561047b57600080fd5b50351515610b94565b6103f16004803603602081101561049a57600080fd5b50356001600160a01b0316610bfb565b61037b600480360360608110156104c057600080fd5b506001600160a01b03813581169160208101359091169060400135610ca5565b6103f1600480360360208110156104f657600080fd5b50356001600160a01b0316610d3f565b61050e610d51565b6040805160ff9092168252519081900360200190f35b6103f16004803603602081101561053a57600080fd5b50356001600160a01b0316610d56565b61037b610d68565b6102d06004803603602081101561056857600080fd5b50351515610d78565b6102d0610de1565b6103f16004803603602081101561058f57600080fd5b50356001600160a01b0316610e3e565b6103f1600480360360208110156105b557600080fd5b50356001600160a01b0316610f9c565b6102d0600480360360408110156105db57600080fd5b8101906020810181356401000000008111156105f657600080fd5b82018360208201111561060857600080fd5b8035906020019184602083028401116401000000008311171561062a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505090356001600160a01b03169150610fae9050565b61037b6004803603602081101561068957600080fd5b50356001600160a01b03166110d1565b6103f1600480360360208110156106af57600080fd5b50356001600160a01b03166110e6565b6103f1600480360360408110156106d557600080fd5b506001600160a01b03813581169160200135166110f8565b6102d06004803603602081101561070357600080fd5b50351515611115565b6103f16004803603602081101561072257600080fd5b50356001600160a01b0316611175565b6102d06004803603608081101561074857600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135611190565b6102da6111ef565b6102d06004803603604081101561078c57600080fd5b506001600160a01b038135169060200135151561124a565b6103f1600480360360208110156107ba57600080fd5b50356001600160a01b03166112c2565b6103f16112d4565b61037b600480360360408110156107e857600080fd5b506001600160a01b038135169060200135611355565b6103f1611362565b6102d06004803603604081101561081c57600080fd5b506001600160a01b038135169060200135611372565b61037b6004803603602081101561084857600080fd5b50356001600160a01b0316611419565b61041361142e565b6102d06004803603604081101561087657600080fd5b506001600160a01b03813516906020013561143d565b61037b6114db565b6102d0600480360360208110156108aa57600080fd5b50356001600160a01b03166114e9565b6103f1600480360360408110156108d057600080fd5b506001600160a01b0381358116916020013516611558565b61037b611583565b6102d06004803603604081101561090657600080fd5b506001600160a01b038135169060200135151561158c565b6103f16004803603602081101561093457600080fd5b50356001600160a01b0316611604565b6103f16004803603604081101561095a57600080fd5b506001600160a01b0381358116916020013516611616565b6103f1611633565b61037b611639565b610413611648565b6001546001600160a01b031633146109d7576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b6109eb6001600160a01b0384168383611698565b505050565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610a735780601f10610a4857610100808354040283529160200191610a73565b820191906000526020600020905b815481529060010190602001808311610a5657829003601f168201915b505050505081565b6000610a883384846116ea565b5060015b92915050565b60026000541415610ad8576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b6002600055610ae56117d6565b610af184848484611837565b505060016000555050565b600c6020526000908152604090205481565b61271081565b6001546001600160a01b031681565b600060026000541415610b6b576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b6002600055610b786117d6565b610b828383611a45565b60016000559392505050565b60085481565b6001546001600160a01b03163314610be1576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b601180549115156101000261ff0019909216919091179055565b600060026000541415610c43576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b600260005560115462010000900460ff1615610c905760405162461bcd60e51b815260040180806020018281038252602181526020018061295b6021913960400191505060405180910390fd5b610c9a3383611a45565b600160005592915050565b3360009081526012602052604081205460ff1615610cd057610cc8848484611adb565b506001610d38565b6000610d1a83604051806060016040528060308152602001612901603091396001600160a01b0388166000908152600a602090815260408083203384529091529020549190611c2e565b9050610d278533836116ea565b610d32858585611adb565b60019150505b9392505050565b60096020526000908152604090205481565b601281565b600f6020526000908152604090205481565b600154600160a01b900460ff1681565b6001546001600160a01b03163314610dc5576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b60118054911515620100000262ff000019909216919091179055565b60026000541415610e27576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b60026000908155610e3790611cc5565b6001600055565b6001600160a01b0381166000908152600c602052604081205480610e7c5750506001600160a01b0381166000908152600d6020526040902054610f97565b60085460048054604080516376f69fed60e11b81529051600093610f099368327cb2734119d3b7a9601e1b936001600160a01b039091169263eded3fda92828101926020929190829003018186803b158015610ed757600080fd5b505afa158015610eeb573d6000803e3d6000fd5b505050506040513d6020811015610f0157600080fd5b505190611f15565b90506000610f23610f1a8385611f6e565b600b5490611fb0565b6001600160a01b0387166000908152600e6020526040902054909150610f9090610f719068327cb2734119d3b7a9601e1b90610f6b90610f6490869061200a565b8890611f15565b90611f6e565b6001600160a01b0388166000908152600d602052604090205490611fb0565b9450505050505b919050565b600e6020526000908152604090205481565b6001546001600160a01b03163314610ffb576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b600154600160a01b900460ff16156110445760405162461bcd60e51b815260040180806020018281038252602281526020018061286b6022913960400191505060405180910390fd5b6001805460ff60a01b1916600160a01b17905560005b82518110156110ad57600083828151811061107157fe5b6020908102919091018101516001600160a01b03166000908152600590915260409020805460ff1916600190811790915591909101905061105a565b50600480546001600160a01b0319166001600160a01b039290921691909117905550565b60126020526000908152604090205460ff1681565b60076020526000908152604090205481565b600a60209081526000928352604080842090915290825290205481565b6001546001600160a01b03163314611162576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b6011805460ff1916911515919091179055565b6001600160a01b031660009081526009602052604090205490565b600260005414156111d6576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b60026000556111e36117d6565b610af18484848461204c565b6003805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a735780601f10610a4857610100808354040283529160200191610a73565b6001546001600160a01b03163314611297576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b60106020526000908152604090205481565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663a8d936276040518163ffffffff1660e01b815260040160206040518083038186803b15801561132457600080fd5b505afa158015611338573d6000803e3d6000fd5b505050506040513d602081101561134e57600080fd5b5051905090565b6000610a88338484611adb565b68327cb2734119d3b7a9601e1b81565b600260005414156113b8576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b6002600055601154610100900460ff16156114045760405162461bcd60e51b815260040180806020018281038252602181526020018061295b6021913960400191505060405180910390fd5b6114103333848461204c565b50506001600055565b60056020526000908152604090205460ff1681565b6004546001600160a01b031681565b60026000541415611483576040805162461bcd60e51b815260206004820152601f60248201526000805160206126eb833981519152604482015290519081900360640190fd5b6002600055601154610100900460ff16156114cf5760405162461bcd60e51b815260040180806020018281038252602181526020018061295b6021913960400191505060405180910390fd5b61141033838333611837565b601154610100900460ff1681565b6001546001600160a01b03163314611536576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205490565b60115460ff1681565b6001546001600160a01b031633146115d9576040805162461bcd60e51b8152602060048201526015602482015260008051602061278b833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600560205260409020805460ff1916911515919091179055565b600d6020526000908152604090205481565b600660209081526000928352604080842090915290825290205481565b600b5481565b60115462010000900460ff1681565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663f7c618c16040518163ffffffff1660e01b815260040160206040518083038186803b15801561132457600080fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526109eb9084906121d5565b6001600160a01b03831661172f5760405162461bcd60e51b815260040180806020018281038252602c815260200180612736602c913960400191505060405180910390fd5b6001600160a01b0382166117745760405162461bcd60e51b815260040180806020018281038252602a815260200180612820602a913960400191505060405180910390fd5b6001600160a01b038084166000818152600a6020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b3360009081526012602052604090205460ff16611835576040805162461bcd60e51b81526020600482015260186024820152772932bbb0b9322a3930b1b5b2b91d103337b93134b23232b760411b604482015290519081900360640190fd5b565b6000821161188c576040805162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e740000604482015290519081900360640190fd5b6001600160a01b03831660009081526005602052604090205460ff166118e35760405162461bcd60e51b81526004018080602001828103825260248152602001806127fc6024913960400191505060405180910390fd5b6118ec84611cc5565b6001600160a01b0384166000908152600c6020526040902054828110156119445760405162461bcd60e51b815260040180806020018281038252602b81526020018061270b602b913960400191505060405180910390fd5b61194e818461200a565b6001600160a01b038087166000908152600c6020908152604080832094909455600681528382209288168252919091522054838110156119bf5760405162461bcd60e51b815260040180806020018281038252602d81526020018061297c602d913960400191505060405180910390fd5b6119c9818561200a565b6001600160a01b038088166000908152600660209081526040808320938a168352928152828220939093556007909252902054611a06908561200a565b6001600160a01b038616600090815260076020526040902055611a298685612286565b611a3d6001600160a01b0386168486611698565b505050505050565b6000611a5083611cc5565b6001600160a01b0383166000908152600d6020526040812080549190558015610d3857611a908382611a80611648565b6001600160a01b03169190611698565b604080516001600160a01b03861681526020810183905281517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4929181900390910190a19392505050565b6001600160a01b038316611b205760405162461bcd60e51b815260040180806020018281038252602d81526020018061288d602d913960400191505060405180910390fd5b6001600160a01b038216611b655760405162461bcd60e51b815260040180806020018281038252602b8152602001806127ab602b913960400191505060405180910390fd5b60115460ff1615611b7857611b786117d6565b611bb5816040518060600160405280602e81526020016129a9602e91396001600160a01b0386166000908152600960205260409020549190611c2e565b6001600160a01b038085166000908152600960205260408082209390935590841681522054611be49082611fb0565b6001600160a01b0380841660008181526009602090815260409182902094909455805185815290519193928716926000805160206128e183398151915292918290030190a3505050565b60008184841115611cbd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c82578181015183820152602001611c6a565b50505050905090810190601f168015611caf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000600460009054906101000a90046001600160a01b03166001600160a01b031663e4fc6b6d6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611d1757600080fd5b505af1158015611d2b573d6000803e3d6000fd5b505050506040513d6020811015611d4157600080fd5b5051600854600b54919250908115801590611d5c5750600083115b15611d8d57611d85611d7e83610f6b8668327cb2734119d3b7a9601e1b611f15565b8290611fb0565b600b81905590505b80611d9a57505050611f12565b6001600160a01b03841615611f0e576001600160a01b0384166000908152600c6020908152604080832054600e909252822054909190611df89068327cb2734119d3b7a9601e1b90610f6b90611df190879061200a565b8590611f15565b6001600160a01b0387166000908152600d602052604081205491925090611e1f9083611fb0565b6001600160a01b0388166000908152600d60209081526040808320849055600e909152902085905590508015801590611e6f57506001600160a01b0387166000908152600c602052604090205415155b15611f0a576001600160a01b0387166000908152600f6020526040812054611e979084611fb0565b9050611ee4611eaa82610f6b8787611f15565b6001600160a01b038a166000908152600f6020908152604080832054601090925290912054611ede918591610f6b91611f15565b90611fb0565b6001600160a01b038916600090815260106020908152604080832093909355600f905220555b5050505b5050505b50565b600082611f2457506000610a8c565b82820282848281611f3157fe5b0414610d385760405162461bcd60e51b815260040180806020018281038252602181526020018061284a6021913960400191505060405180910390fd5b6000610d3883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612364565b600082820183811015610d38576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000610d3883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c2e565b600081116120a1576040805162461bcd60e51b815260206004820152601e60248201527f526577617264547261636b65723a20696e76616c6964205f616d6f756e740000604482015290519081900360640190fd5b6001600160a01b03821660009081526005602052604090205460ff166120f85760405162461bcd60e51b81526004018080602001828103825260248152602001806127fc6024913960400191505060405180910390fd5b61210d6001600160a01b0383168530846123c9565b61211683611cc5565b6001600160a01b0383166000908152600c60205260409020546121399082611fb0565b6001600160a01b038085166000908152600c60209081526040808320949094556006815283822092861682529190915220546121759082611fb0565b6001600160a01b03808516600090815260066020908152604080832093871683529281528282209390935560079092529020546121b29082611fb0565b6001600160a01b038316600090815260076020526040902055611f0e8382612423565b606061222a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166124e19092919063ffffffff16565b8051909150156109eb5780806020019051602081101561224957600080fd5b50516109eb5760405162461bcd60e51b815260040180806020018281038252602a815260200180612931602a913960400191505060405180910390fd5b6001600160a01b0382166122cb5760405162461bcd60e51b81526004018080602001828103825260298152602001806127626029913960400191505060405180910390fd5b612308816040518060600160405280602a81526020016126c1602a91396001600160a01b0385166000908152600960205260409020549190611c2e565b6001600160a01b03831660009081526009602052604090205560085461232e908261200a565b6008556040805182815290516000916001600160a01b038516916000805160206128e18339815191529181900360200190a35050565b600081836123b35760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c82578181015183820152602001611c6a565b5060008385816123bf57fe5b0495945050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611f0e9085906121d5565b6001600160a01b0382166124685760405162461bcd60e51b81526004018080602001828103825260278152602001806128ba6027913960400191505060405180910390fd5b6008546124759082611fb0565b6008556001600160a01b03821660009081526009602052604090205461249b9082611fb0565b6001600160a01b03831660008181526009602090815260408083209490945583518581529351929391926000805160206128e18339815191529281900390910190a35050565b60606124f084846000856124f8565b949350505050565b6060824710156125395760405162461bcd60e51b81526004018080602001828103825260268152602001806127d66026913960400191505060405180910390fd5b61254285612654565b612593576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106125d25780518252601f1990920191602091820191016125b3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612634576040519150601f19603f3d011682016040523d82523d6000602084013e612639565b606091505b509150915061264982828661265a565b979650505050505050565b3b151590565b60608315612669575081610d38565b8251156126795782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611c82578181015183820152602001611c6a56fe526577617264547261636b65723a206275726e20616d6f756e7420657863656564732062616c616e63655265656e7472616e637947756172643a207265656e7472616e742063616c6c00526577617264547261636b65723a205f616d6f756e742065786365656473207374616b6564416d6f756e74526577617264547261636b65723a20617070726f76652066726f6d20746865207a65726f2061646472657373526577617264547261636b65723a206275726e2066726f6d20746865207a65726f2061646472657373476f7665726e61626c653a20666f7262696464656e0000000000000000000000526577617264547261636b65723a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c526577617264547261636b65723a20696e76616c6964205f6465706f736974546f6b656e526577617264547261636b65723a20617070726f766520746f20746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526577617264547261636b65723a20616c726561647920696e697469616c697a6564526577617264547261636b65723a207472616e736665722066726f6d20746865207a65726f2061646472657373526577617264547261636b65723a206d696e7420746f20746865207a65726f2061646472657373ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef526577617264547261636b65723a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564526577617264547261636b65723a20616374696f6e206e6f7420656e61626c6564526577617264547261636b65723a205f616d6f756e742065786365656473206465706f73697442616c616e6365526577617264547261636b65723a207472616e7366657220616d6f756e7420657863656564732062616c616e6365a164736f6c634300060c000a

Block Transaction Gas Used Reward
view all blocks produced

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