ETH Price: $1,805.41 (+10.69%)

Contract

0x404cf7B188D8ca8219D874cfff96e2EF918d5261

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
191107132022-08-01 11:05:29996 days ago1659351929
0x404cf7B1...F918d5261
0 ETH
191100902022-08-01 10:52:46996 days ago1659351166
0x404cf7B1...F918d5261
0 ETH
191083202022-08-01 10:30:41996 days ago1659349841
0x404cf7B1...F918d5261
0 ETH
191083202022-08-01 10:30:41996 days ago1659349841
0x404cf7B1...F918d5261
0 ETH
191083202022-08-01 10:30:41996 days ago1659349841
0x404cf7B1...F918d5261
0 ETH
191075142022-08-01 10:15:08996 days ago1659348908
0x404cf7B1...F918d5261
0 ETH
191058202022-08-01 9:44:14996 days ago1659347054
0x404cf7B1...F918d5261
0 ETH
191058202022-08-01 9:44:14996 days ago1659347054
0x404cf7B1...F918d5261
0 ETH
191058202022-08-01 9:44:14996 days ago1659347054
0x404cf7B1...F918d5261
0 ETH
191020982022-08-01 8:46:51996 days ago1659343611
0x404cf7B1...F918d5261
0 ETH
191020982022-08-01 8:46:51996 days ago1659343611
0x404cf7B1...F918d5261
0 ETH
191020982022-08-01 8:46:51996 days ago1659343611
0x404cf7B1...F918d5261
0 ETH
191014732022-08-01 8:36:44996 days ago1659343004
0x404cf7B1...F918d5261
0 ETH
191014732022-08-01 8:36:44996 days ago1659343004
0x404cf7B1...F918d5261
0 ETH
191014732022-08-01 8:36:44996 days ago1659343004
0x404cf7B1...F918d5261
0 ETH
191011932022-08-01 8:31:33996 days ago1659342693
0x404cf7B1...F918d5261
0 ETH
191011932022-08-01 8:31:33996 days ago1659342693
0x404cf7B1...F918d5261
0 ETH
191011932022-08-01 8:31:33996 days ago1659342693
0x404cf7B1...F918d5261
0 ETH
191002642022-08-01 8:16:50996 days ago1659341810
0x404cf7B1...F918d5261
0 ETH
191002642022-08-01 8:16:50996 days ago1659341810
0x404cf7B1...F918d5261
0 ETH
191002642022-08-01 8:16:50996 days ago1659341810
0x404cf7B1...F918d5261
0 ETH
190999362022-08-01 8:10:37996 days ago1659341437
0x404cf7B1...F918d5261
0 ETH
190998262022-08-01 8:08:06996 days ago1659341286
0x404cf7B1...F918d5261
0 ETH
190998262022-08-01 8:08:06996 days ago1659341286
0x404cf7B1...F918d5261
0 ETH
190998262022-08-01 8:08:06996 days ago1659341286
0x404cf7B1...F918d5261
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RewardRouter

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : RewardRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity 0.8.10;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";

import "./interfaces/IWETH.sol";
import "./interfaces/IRewardDistributor.sol";
import "./interfaces/IMlpRewardTracker.sol";
import "./interfaces/IMuxRewardTracker.sol";
import "./interfaces/IVester.sol";
import "./interfaces/IVotingEscrow.sol";
import "./interfaces/IMintable.sol";

contract RewardRouter is ReentrancyGuardUpgradeable, OwnableUpgradeable {
    using SafeMathUpgradeable for uint256;
    using SafeERC20Upgradeable for IERC20Upgradeable;
    using AddressUpgradeable for address payable;

    address public weth;
    address public mlp;
    address public mcb;
    address public mux;
    IVotingEscrow public votingEscrow;

    IMlpRewardTracker public mlpFeeTracker; // RewardTracker
    IMlpRewardTracker public mlpMuxTracker; // RewardTracker
    IMuxRewardTracker public veFeeTracker; // VeRewardTracker
    IMuxRewardTracker public veMuxTracker; // VeRewardTracker

    IVester public muxVester;
    IVester public mlpVester;

    bytes32 private _deprecated0;

    IRewardDistributor public mlpDistributor;
    IRewardDistributor public muxDistributor;

    address public protocolLiquidityOwner;
    address public vault;

    event StakeMux(address account, address token, uint256 amount, uint256 unlockTime);
    event UnstakeMux(address account, uint256 amount);

    event StakeMlp(address account, uint256 amount);
    event UnstakeMlp(address account, uint256 amount);

    event SetVault(address previousVault, address newVault);
    event SetProtocolLiquidityOwner(address previousOwner, address newOwner);

    receive() external payable {
        revert("Router: invalid sender");
    }

    function initialize(
        address[5] memory _tokens,
        address[4] memory _rewardTrackers,
        address[2] memory _vesters,
        address[2] memory _distributors
    ) external initializer {
        __Ownable_init();

        weth = _tokens[0];
        mcb = _tokens[1];
        mux = _tokens[2];
        mlp = _tokens[3];
        votingEscrow = IVotingEscrow(_tokens[4]);

        mlpFeeTracker = IMlpRewardTracker(_rewardTrackers[0]);
        mlpMuxTracker = IMlpRewardTracker(_rewardTrackers[1]);
        veFeeTracker = IMuxRewardTracker(_rewardTrackers[2]);
        veMuxTracker = IMuxRewardTracker(_rewardTrackers[3]);

        mlpVester = IVester(_vesters[0]);
        muxVester = IVester(_vesters[1]);

        mlpDistributor = IRewardDistributor(_distributors[0]);
        muxDistributor = IRewardDistributor(_distributors[1]);
    }

    function setVault(address _vault) external onlyOwner {
        emit SetVault(vault, _vault);
        vault = _vault;
    }

    function setProtocolLiquidityOwner(address _protocolLiquidityOwner) external onlyOwner {
        emit SetProtocolLiquidityOwner(protocolLiquidityOwner, _protocolLiquidityOwner);
        protocolLiquidityOwner = _protocolLiquidityOwner;
    }

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

    // ========================== aggregated staking interfaces ==========================
    function claimableRewards(address account)
        external
        returns (
            uint256 mlpFeeAmount,
            uint256 mlpMuxAmount,
            uint256 veFeeAmount,
            uint256 veMuxAmount,
            uint256 mcbAmount
        )
    {
        mlpFeeAmount = mlpFeeTracker.claimable(account);
        mlpMuxAmount = mlpMuxTracker.claimable(account);
        veFeeAmount = veFeeTracker.claimable(account);
        veMuxAmount = veMuxTracker.claimable(account);
        mcbAmount = mlpVester.claimable(account) + muxVester.claimable(account);
    }

    function claimAll() external nonReentrant {
        address account = msg.sender;

        mlpFeeTracker.claimForAccount(account, account);
        veFeeTracker.claimForAccount(account, account);

        veMuxTracker.claimForAccount(account, account);
        mlpMuxTracker.claimForAccount(account, account);

        muxVester.claimForAccount(account, account);
        mlpVester.claimForAccount(account, account);
    }

    // ========================== mux & mcb staking interfaces ==========================
    function batchStakeMuxForAccount(
        address[] memory _accounts,
        uint256[] memory _amounts,
        uint256[] memory _unlockTime
    ) external nonReentrant onlyOwner {
        address _mux = mcb;
        for (uint256 i = 0; i < _accounts.length; i++) {
            _stakeForVeToken(msg.sender, _accounts[i], _mux, _amounts[i], _unlockTime[i]);
        }
    }

    function stakeMcbForAccount(address _account, uint256 _amount) external nonReentrant onlyOwner {
        _stakeForVeToken(msg.sender, _account, mcb, _amount, 0);
    }

    function stakeMcb(uint256 _amount, uint256 lockPeriod) external nonReentrant {
        _stakeForVeToken(msg.sender, msg.sender, mcb, _amount, lockPeriod);
    }

    function stakeMux(uint256 _amount, uint256 lockPeriod) external nonReentrant {
        _stakeForVeToken(msg.sender, msg.sender, mux, _amount, lockPeriod);
    }

    function increaseStakeUnlockTime(uint256 lockPeriod) external nonReentrant {
        votingEscrow.increaseUnlockTimeFor(msg.sender, lockPeriod);
        emit StakeMux(msg.sender, msg.sender, 0, lockPeriod);
    }

    function unstakeMcbAndMux() external nonReentrant {
        _unstakeMux(msg.sender);
    }

    function stakeMlp(uint256 _amount) external nonReentrant returns (uint256) {
        require(_amount > 0, "Amount is zero");
        address account = msg.sender;
        mlpFeeTracker.stakeForAccount(account, account, mlp, _amount);
        mlpMuxTracker.stakeForAccount(account, account, address(mlpFeeTracker), _amount);
        emit StakeMlp(account, _amount);
        return _amount;
    }

    function unstakeMlp(uint256 _amount) external nonReentrant returns (uint256) {
        require(_amount > 0, "Amount is zero");
        address account = msg.sender;
        mlpMuxTracker.unstakeForAccount(account, address(mlpFeeTracker), _amount, account);
        mlpFeeTracker.unstakeForAccount(account, mlp, _amount, account);
        emit UnstakeMlp(account, _amount);
        return _amount;
    }

    // ========================== mlp staking interfaces ==========================

    function maxVestableTokenFromMlp(address account) external view returns (uint256) {
        return mlpVester.getMaxVestableAmount(account);
    }

    function totalVestedTokenFromMlp(address account) external view returns (uint256) {
        return mlpVester.getTotalVested(account);
    }

    function claimedVestedTokenFromMlp(address account) external view returns (uint256) {
        return mlpVester.claimedAmounts(account);
    }

    function claimableVestedTokenFromMlp(address account) external view returns (uint256) {
        return mlpVester.claimable(account);
    }

    function depositToMlpVester(uint256 amount) external nonReentrant {
        require(amount > 0, "Amount is zero");
        mlpVester.depositForAccount(msg.sender, amount);
    }

    function withdrawFromMlpVester() external nonReentrant {
        mlpVester.withdrawFor(msg.sender, msg.sender);
    }

    function claimFromMlp() external nonReentrant {
        address account = msg.sender;
        mlpFeeTracker.claimForAccount(account, account);
        mlpMuxTracker.claimForAccount(account, account);
    }

    function claimVestedTokenFromMlp(address account) external nonReentrant returns (uint256) {
        return mlpVester.claimForAccount(account, account);
    }

    // ========================== ve staking interfaces ==========================

    function maxVestableTokenFromVe(address account) external view returns (uint256) {
        return muxVester.getMaxVestableAmount(account);
    }

    function totalVestedTokenFromVe(address account) external view returns (uint256) {
        return muxVester.getTotalVested(account);
    }

    function claimedVestedTokenFromVe(address account) external view returns (uint256) {
        return muxVester.claimedAmounts(account);
    }

    function claimableVestedTokenFromVe(address account) external view returns (uint256) {
        return muxVester.claimable(account);
    }

    function claimVestedTokenFromVe(address account) external returns (uint256) {
        return muxVester.claimForAccount(account, account);
    }

    function claimFromVe() external nonReentrant {
        address account = msg.sender;
        veFeeTracker.claimForAccount(account, account);
        veMuxTracker.claimForAccount(account, account);
    }

    function depositToVeVester(uint256 amount) external nonReentrant {
        require(amount > 0, "Amount is zero");
        muxVester.depositForAccount(msg.sender, amount);
    }

    function withdrawFromVeVester() external {
        muxVester.withdrawFor(msg.sender, msg.sender);
    }

    // ========================== staking status interfaces ==========================

    function averageStakePeriod() external view returns (uint256) {
        return votingEscrow.averageUnlockTime();
    }

    function unlockTime(address account) external view returns (uint256) {
        return votingEscrow.lockedEnd(account);
    }

    function stakedMlpAmount(address account) external view returns (uint256) {
        return mlpMuxTracker.balanceOf(account);
    }

    function votingEscrowedAmounts(address account) external view returns (uint256, uint256) {
        IVotingEscrow.DepositedBalance memory balances = votingEscrow.depositedBalances(account);
        return (balances.mcbAmount, balances.muxAmount);
    }

    function feeRewardRate() external view returns (uint256) {
        return mlpDistributor.rewardRate();
    }

    function muxRewardRate() external view returns (uint256) {
        return muxDistributor.rewardRate();
    }

    function reservedMlpAmount(address account) external view returns (uint256) {
        return mlpVester.pairAmounts(account);
    }

    function mlpLockAmount(address account, uint256 amount) external view returns (uint256) {
        return mlpVester.getPairAmount(account, amount);
    }

    function poolOwnedRate() public view returns (uint256) {
        uint256 numerator = IERC20Upgradeable(mlp).balanceOf(protocolLiquidityOwner);
        uint256 denominator = numerator + mlpFeeTracker.totalSupply();
        return denominator == 0 ? 0 : (numerator * 1e18) / denominator;
    }

    function votingEscrowedRate() public view returns (uint256) {
        uint256 numerator = votingEscrow.totalSupply();
        uint256 denominator = IERC20Upgradeable(mcb).totalSupply() + IERC20Upgradeable(mux).totalSupply();
        return denominator == 0 ? 0 : (numerator * 1e18) / denominator;
    }

    // ========================== reserved interfaces ==========================

    function compound() external nonReentrant {
        _compound(msg.sender);
    }

    function compoundForAccount(address _account) external nonReentrant onlyOwner {
        _compound(_account);
    }

    function batchCompoundForAccounts(address[] memory _accounts) external nonReentrant onlyOwner {
        for (uint256 i = 0; i < _accounts.length; i++) {
            _compound(_accounts[i]);
        }
    }

    function _compound(address _account) private {
        uint256 muxAmount = veMuxTracker.claimForAccount(_account, _account) +
            mlpMuxTracker.claimForAccount(_account, _account);
        if (muxAmount > 0) {
            _stakeForVeToken(_account, _account, mux, muxAmount, 0);
        }
    }

    function _stakeForVeToken(
        address _fundingAccount,
        address _account,
        address _token,
        uint256 _amount,
        uint256 _unlockTime
    ) private {
        if (_unlockTime == 0) {
            uint256 lockEnd = votingEscrow.lockedEnd(_account);
            votingEscrow.depositFor(_fundingAccount, _account, _token, _amount, lockEnd);
        } else {
            votingEscrow.depositFor(_fundingAccount, _account, _token, _amount, _unlockTime);
        }
        emit StakeMux(_account, _token, _amount, _unlockTime);
    }

    function _unstakeMux(address _account) private {
        uint256 amount = votingEscrow.lockedAmount(_account);
        votingEscrow.withdrawFor(_account);
        emit UnstakeMux(_account, amount);
    }
}

File 2 of 16 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

    /**
     * This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 16 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 16 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @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 16 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

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

File 6 of 16 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _status = _NOT_ENTERED;
    }

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

    /**
     * This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 16 : IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256 amount) external;
}

File 9 of 16 : IRewardDistributor.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

interface IRewardDistributor {
    function rewardToken() external view returns (address);

    function pendingRewards() external view returns (uint256);

    function pendingMlpRewards() external view returns (uint256 toMlpAmount);

    function pendingMuxRewards() external view returns (uint256 toMuxAmount);

    function distribute() external;

    function rewardRate() external view returns (uint256);
}

File 10 of 16 : IMlpRewardTracker.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

interface IMlpRewardTracker {
    function setHandler(address _handler, bool _isActive) external;

    function balanceOf(address _account) external view returns (uint256);

    function totalSupply() external view returns (uint256);

    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 returns (uint256);

    function averageStakedAmounts(address _account) external view returns (uint256);

    function cumulativeRewards(address _account) external view returns (uint256);

    function lastTimeRewardApplicable() external view returns (uint256);

    function notifyRewardAmount(uint256 amount) external;
}

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

pragma solidity 0.8.10;

interface IMuxRewardTracker {
    function claimable(address _addr) external returns (uint256);

    function claim(address _addr) external returns (uint256);

    function claimForAccount(address _addr, address _rcv) external returns (uint256);

    function checkpointToken() external;

    function averageStakedAmounts(address _account) external view returns (uint256);

    function cumulativeRewards(address _account) external view returns (uint256);

    function setHandler(address _handler, bool _isActive) external;
}

File 12 of 16 : IVester.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";

pragma solidity 0.8.10;

interface IVester is IERC20Upgradeable {
    function claimForAccount(address _account, address _receiver) external returns (uint256);

    function claimable(address _account) external view returns (uint256);

    function depositForAccount(address _account, uint256 _amount) external;

    function withdraw() external;

    function withdrawFor(address account, address _receiver) external;

    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 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 getMaxVestableAmount(address _account) external view returns (uint256);

    function getTotalVested(address _account) external view returns (uint256);

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

    function getPairAmount(address _account, uint256 _esAmount) external view returns (uint256);

    function setHandler(address _handler, bool _isActive) external;
}

File 13 of 16 : IVotingEscrow.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

interface IVotingEscrow {
    struct Point {
        int128 bias;
        int128 slope; // - dweight / dt
        uint256 ts;
        uint256 blk; // block
    }

    struct LockedBalance {
        int128 amount;
        uint256 end;
    }

    struct DepositedBalance {
        uint128 mcbAmount;
        uint128 muxAmount;
    }

    function depositedBalances(address account) external view returns (DepositedBalance memory);

    function averageUnlockTime() external view returns (uint256);

    function pointHistory(uint256 epoch) external view returns (Point memory);

    function getLastUserBlock(address addr) external view returns (uint256);

    function checkpoint() external;

    function depositFor(
        address _fundingAddr,
        address _addr,
        address _token,
        uint256 _value,
        uint256 _unlockTime
    ) external;

    function increaseUnlockTimeFor(address _addr, uint256 _unlockTime) external;

    function withdrawFor(address _account) external;

    function increaseAmount(uint256 _value) external;

    function increaseUnlockTime(uint256 _unlockTime) external;

    function balanceOf(address addr) external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function balanceOfAt(address addr, uint256 _block) external view returns (uint256);

    function totalSupplyAt(uint256 _block) external view returns (uint256);

    function supply() external view returns (uint256);

    function locked(address account) external view returns (LockedBalance memory);

    function lockedEnd(address _addr) external view returns (uint256);

    function lockedAmount(address _addr) external view returns (uint256);

    function userPointEpoch(address _addr) external view returns (uint256);

    function epoch() external view returns (uint256);

    function userPointHistory(address _addr, uint256 loc) external view returns (Point memory);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function findTimestampEpoch(uint256 _timestamp) external view returns (uint256);

    function findTimestampUserEpoch(
        address _addr,
        uint256 _timestamp,
        uint256 max_user_epoch
    ) external view returns (uint256);

    function setHandler(address _handler, bool _isActive) external;
}

File 14 of 16 : IMintable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

interface IMintable {
    function mint(address recipient, uint256 amount) external;

    function burn(address account, uint256 amount) external;
}

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

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

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 16 of 16 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"SetProtocolLiquidityOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousVault","type":"address"},{"indexed":false,"internalType":"address","name":"newVault","type":"address"}],"name":"SetVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"StakeMlp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTime","type":"uint256"}],"name":"StakeMux","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnstakeMlp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnstakeMux","type":"event"},{"inputs":[],"name":"averageStakePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"}],"name":"batchCompoundForAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"_unlockTime","type":"uint256[]"}],"name":"batchStakeMuxForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFromMlp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFromVe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimVestedTokenFromMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimVestedTokenFromVe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimableRewards","outputs":[{"internalType":"uint256","name":"mlpFeeAmount","type":"uint256"},{"internalType":"uint256","name":"mlpMuxAmount","type":"uint256"},{"internalType":"uint256","name":"veFeeAmount","type":"uint256"},{"internalType":"uint256","name":"veMuxAmount","type":"uint256"},{"internalType":"uint256","name":"mcbAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimableVestedTokenFromMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimableVestedTokenFromVe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimedVestedTokenFromMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimedVestedTokenFromVe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"compound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"compoundForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositToMlpVester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositToVeVester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockPeriod","type":"uint256"}],"name":"increaseStakeUnlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[5]","name":"_tokens","type":"address[5]"},{"internalType":"address[4]","name":"_rewardTrackers","type":"address[4]"},{"internalType":"address[2]","name":"_vesters","type":"address[2]"},{"internalType":"address[2]","name":"_distributors","type":"address[2]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxVestableTokenFromMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxVestableTokenFromVe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mcb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mlp","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mlpDistributor","outputs":[{"internalType":"contract IRewardDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mlpFeeTracker","outputs":[{"internalType":"contract IMlpRewardTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mlpLockAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mlpMuxTracker","outputs":[{"internalType":"contract IMlpRewardTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mlpVester","outputs":[{"internalType":"contract IVester","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mux","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"muxDistributor","outputs":[{"internalType":"contract IRewardDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"muxRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"muxVester","outputs":[{"internalType":"contract IVester","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolOwnedRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolLiquidityOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"reservedMlpAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_protocolLiquidityOwner","type":"address"}],"name":"setProtocolLiquidityOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"lockPeriod","type":"uint256"}],"name":"stakeMcb","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeMcbForAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stakeMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"lockPeriod","type":"uint256"}],"name":"stakeMux","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stakedMlpAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalVestedTokenFromMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalVestedTokenFromVe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstakeMcbAndMux","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstakeMlp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veFeeTracker","outputs":[{"internalType":"contract IMuxRewardTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veMuxTracker","outputs":[{"internalType":"contract IMuxRewardTracker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingEscrow","outputs":[{"internalType":"contract IVotingEscrow","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"votingEscrowedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"votingEscrowedRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFromMlpVester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFromVeVester","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"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506136e3806100206000396000f3fe6080604052600436106103a65760003560e01c80637a09fd90116101e7578063c4180acd1161010d578063e894e429116100a0578063f69e20461161006f578063f69e204614610afa578063f98c8c4c14610b0f578063fbc891d514610b2f578063fbfa77cf14610b4f57600080fd5b8063e894e42914610a7a578063ec69f95e14610a9a578063ee8bc97414610aba578063f2fde38b14610ada57600080fd5b8063d6947117116100dc578063d6947117146109dd578063dc01f60d146109f2578063debc811414610a3a578063e6aef8a614610a5a57600080fd5b8063c4180acd1461097e578063c43e2a611461099e578063c8aedf17146109b3578063d1058e59146109c857600080fd5b80639aa1112911610185578063b44bcffe11610154578063b44bcffe146108e9578063b696f9c914610909578063b98a7aba14610929578063be8d8b491461095e57600080fd5b80639aa11129146108745780639c119edc14610894578063a388c3a9146108b4578063b2a39a2a146108c957600080fd5b806381192eb7116101c157806381192eb714610801578063834080b9146108215780638da5cb5b14610836578063976e2a4d1461085457600080fd5b80637a09fd90146107b75780637a97fc4a146107d75780637f02a900146107ec57600080fd5b80633fc8cef3116102cc5780636725e80d1161026a5780636e677d5a116102395780636e677d5a1461074d578063715018a6146107625780637531615e1461077757806376b467b71461079757600080fd5b80636725e80d146106cd5780636817031b146106ed5780636c0bf8dd1461070d5780636e6537de1461072d57600080fd5b80634321bf40116102a65780634321bf40146106585780634f2bfe5b146106785780635010d1db14610698578063625f8460146106b857600080fd5b80633fc8cef3146106035780634152f25814610623578063429ba8221461064357600080fd5b80632458dcc0116103445780632e4535a4116103135780632e4535a4146105835780632f264544146105a357806334ab4e56146105c35780633e49e213146105e357600080fd5b80632458dcc0146104f557806326c36313146105155780632a1562d5146105355780632a9f40831461056357600080fd5b80631af276a6116103805780631af276a6146104755780631cb72ba8146104955780631df7ba5f146104b5578063240214a3146104d557600080fd5b806301a4939a146103f657806301e3366714610433578063181fbdc01461045557600080fd5b366103f15760405162461bcd60e51b81526020600482015260166024820152752937baba32b91d1034b73b30b634b21039b2b73232b960511b60448201526064015b60405180910390fd5b600080fd5b34801561040257600080fd5b5060a054610416906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561043f57600080fd5b5061045361044e366004612f89565b610b6f565b005b34801561046157600080fd5b50610453610470366004612fc5565b610bb2565b34801561048157600080fd5b506104536104903660046130e4565b610c8c565b3480156104a157600080fd5b50609e54610416906001600160a01b031681565b3480156104c157600080fd5b506104536104d0366004613119565b610d26565b3480156104e157600080fd5b506104536104f0366004613134565b610db9565b34801561050157600080fd5b5060a454610416906001600160a01b031681565b34801561052157600080fd5b50609c54610416906001600160a01b031681565b34801561054157600080fd5b50610555610550366004613119565b610dfc565b60405190815260200161042a565b34801561056f57600080fd5b5061045361057e366004613119565b610e72565b34801561058f57600080fd5b5061055561059e366004613119565b610ed4565b3480156105af57600080fd5b50609d54610416906001600160a01b031681565b3480156105cf57600080fd5b506104536105de366004613134565b610f07565b3480156105ef57600080fd5b50609854610416906001600160a01b031681565b34801561060f57600080fd5b50609754610416906001600160a01b031681565b34801561062f57600080fd5b5061055561063e366004613119565b610f4a565b34801561064f57600080fd5b50610453610f7d565b34801561066457600080fd5b50609f54610416906001600160a01b031681565b34801561068457600080fd5b50609b54610416906001600160a01b031681565b3480156106a457600080fd5b506105556106b3366004613156565b61100f565b3480156106c457600080fd5b5061045361108c565b3480156106d957600080fd5b506104536106e836600461325d565b6110f2565b3480156106f957600080fd5b50610453610708366004613119565b6112bb565b34801561071957600080fd5b5060a554610416906001600160a01b031681565b34801561073957600080fd5b50610555610748366004613119565b61134e565b34801561075957600080fd5b506105556113f7565b34801561076e57600080fd5b5061045361146a565b34801561078357600080fd5b50610453610792366004612fc5565b6114a0565b3480156107a357600080fd5b506105556107b2366004613119565b611551565b3480156107c357600080fd5b506104536107d2366004612fc5565b611584565b3480156107e357600080fd5b50610555611600565b3480156107f857600080fd5b5061055561164a565b34801561080d57600080fd5b50609954610416906001600160a01b031681565b34801561082d57600080fd5b50610555611694565b34801561084257600080fd5b506065546001600160a01b0316610416565b34801561086057600080fd5b5061055561086f366004613119565b6117c1565b34801561088057600080fd5b5061055561088f366004613119565b6117f4565b3480156108a057600080fd5b506105556108af366004613119565b611827565b3480156108c057600080fd5b5061045361185a565b3480156108d557600080fd5b5060a154610416906001600160a01b031681565b3480156108f557600080fd5b50610453610904366004613364565b611891565b34801561091557600080fd5b50610555610924366004613119565b611965565b34801561093557600080fd5b50610949610944366004613119565b611998565b6040805192835260208301919091520161042a565b34801561096a57600080fd5b50609a54610416906001600160a01b031681565b34801561098a57600080fd5b50610555610999366004613119565b611a2a565b3480156109aa57600080fd5b50610453611a5d565b3480156109bf57600080fd5b50610453611b70565b3480156109d457600080fd5b50610453611c40565b3480156109e957600080fd5b50610555611ee8565b3480156109fe57600080fd5b50610a12610a0d366004613119565b61205e565b604080519586526020860194909452928401919091526060830152608082015260a00161042a565b348015610a4657600080fd5b5060a354610416906001600160a01b031681565b348015610a6657600080fd5b50610555610a75366004613119565b612321565b348015610a8657600080fd5b50610555610a95366004613119565b612354565b348015610aa657600080fd5b50610453610ab5366004613156565b612387565b348015610ac657600080fd5b50610555610ad5366004613119565b6123f5565b348015610ae657600080fd5b50610453610af5366004613119565b612447565b348015610b0657600080fd5b506104536124e2565b348015610b1b57600080fd5b50610555610b2a366004612fc5565b612513565b348015610b3b57600080fd5b50610555610b4a366004612fc5565b61269b565b348015610b5b57600080fd5b5060a654610416906001600160a01b031681565b6065546001600160a01b03163314610b995760405162461bcd60e51b81526004016103e8906133ec565b610bad6001600160a01b0384168383612813565b505050565b60026001541415610bd55760405162461bcd60e51b81526004016103e890613421565b6002600155609b54604051639ab77eff60e01b8152336004820152602481018390526001600160a01b0390911690639ab77eff90604401600060405180830381600087803b158015610c2657600080fd5b505af1158015610c3a573d6000803e3d6000fd5b5050604080513380825260208201526000818301526060810185905290517f82cb7f5aa41d66b64080e7ad9c7372913b67f45c8fae6e183f283d22342a08119350908190036080019150a15060018055565b60026001541415610caf5760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b03163314610cde5760405162461bcd60e51b81526004016103e8906133ec565b60005b8151811015610d1e57610d0c828281518110610cff57610cff613458565b6020026020010151612865565b80610d1681613484565b915050610ce1565b505060018055565b6065546001600160a01b03163314610d505760405162461bcd60e51b81526004016103e8906133ec565b60a5546040517f78fa294a9593f00758d3792cda8048bd2b3534d612d292a101629f17eeab3c9a91610d8f916001600160a01b0390911690849061349f565b60405180910390a160a580546001600160a01b0319166001600160a01b0392909216919091179055565b60026001541415610ddc5760405162461bcd60e51b81526004016103e890613421565b6002600155609a54610d1e90339081906001600160a01b03168585612982565b60a054604051639303547360e01b81526001600160a01b03838116600483015260009216906393035473906024015b602060405180830381865afa158015610e48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6c91906134b9565b92915050565b60026001541415610e955760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b03163314610ec45760405162461bcd60e51b81526004016103e8906133ec565b610ecd81612865565b5060018055565b60a15460405163402914f560e01b81526001600160a01b038381166004830152600092169063402914f590602401610e2b565b60026001541415610f2a5760405162461bcd60e51b81526004016103e890613421565b6002600155609954610d1e90339081906001600160a01b03168585612982565b60a054604051630479363b60e11b81526001600160a01b03838116600483015260009216906308f26c7690602401610e2b565b60026001541415610fa05760405162461bcd60e51b81526004016103e890613421565b600260015560a154604051632b6d5cd760e21b81526001600160a01b039091169063adb5735c90610fd7903390819060040161349f565b600060405180830381600087803b158015610ff157600080fd5b505af1158015611005573d6000803e3d6000fd5b5050600180555050565b60a154604051633e7c79d960e11b81526001600160a01b038481166004830152602482018490526000921690637cf8f3b290604401602060405180830381865afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108591906134b9565b9392505050565b60a054604051632b6d5cd760e21b81526001600160a01b039091169063adb5735c906110be903390819060040161349f565b600060405180830381600087803b1580156110d857600080fd5b505af11580156110ec573d6000803e3d6000fd5b50505050565b600054610100900460ff1661110d5760005460ff1615611111565b303b155b6111745760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103e8565b600054610100900460ff16158015611196576000805461ffff19166101011790555b61119e612b52565b8451609780546001600160a01b03199081166001600160a01b0393841617909155602080880151609980548416918516919091179055604080890151609a805485169186169190911790556060808a015160988054861691871691909117905560808a0151609b805486169187169190911790558851609c8054861691871691909117905588830151609d8054861691871691909117905590880151609e80548516918616919091179055870151609f80548416918516919091179055855160a1805484169185169190911790558581015160a080548416918516919091179055845160a38054841691851691909117905584015160a48054909216921691909117905580156112b4576000805461ff00191690555b5050505050565b6065546001600160a01b031633146112e55760405162461bcd60e51b81526004016103e8906133ec565b60a6546040517f22a9f7c8a21e91a43518238948d4ed67511ad8492ca0e13fdbc93c134701a72a91611324916001600160a01b0390911690849061349f565b60405180910390a160a680546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260015414156113735760405162461bcd60e51b81526004016103e890613421565b600260015560a1546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a906113aa908590819060040161349f565b6020604051808303816000875af11580156113c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ed91906134b9565b6001805592915050565b609b5460408051631a7bc80f60e21b815290516000926001600160a01b0316916369ef203c9160048083019260209291908290030181865afa158015611441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146591906134b9565b905090565b6065546001600160a01b031633146114945760405162461bcd60e51b81526004016103e8906133ec565b61149e6000612b81565b565b600260015414156114c35760405162461bcd60e51b81526004016103e890613421565b6002600155806114e55760405162461bcd60e51b81526004016103e8906134d2565b60a05460405163342fcda960e01b8152336004820152602481018390526001600160a01b039091169063342fcda9906044015b600060405180830381600087803b15801561153257600080fd5b505af1158015611546573d6000803e3d6000fd5b505060018055505050565b609b546040516326f57e5760e11b81526001600160a01b0383811660048301526000921690634deafcae90602401610e2b565b600260015414156115a75760405162461bcd60e51b81526004016103e890613421565b6002600155806115c95760405162461bcd60e51b81526004016103e8906134d2565b60a15460405163342fcda960e01b8152336004820152602481018390526001600160a01b039091169063342fcda990604401611518565b60a35460408051633d8523f760e11b815290516000926001600160a01b031691637b0a47ee9160048083019260209291908290030181865afa158015611441573d6000803e3d6000fd5b60a45460408051633d8523f760e11b815290516000926001600160a01b031691637b0a47ee9160048083019260209291908290030181865afa158015611441573d6000803e3d6000fd5b60985460a5546040516370a0823160e01b81526001600160a01b039182166004820152600092839216906370a0823190602401602060405180830381865afa1580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170891906134b9565b90506000609c60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906134b9565b61178d90836134fa565b905080156117b757806117a883670de0b6b3a7640000613512565b6117b29190613531565b6117ba565b60005b9250505090565b609d546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401610e2b565b60a0546040516338a0bd9960e11b81526001600160a01b03838116600483015260009216906371417b3290602401610e2b565b60a1546040516338a0bd9960e11b81526001600160a01b03838116600483015260009216906371417b3290602401610e2b565b6002600154141561187d5760405162461bcd60e51b81526004016103e890613421565b600260015561188b33612bd3565b60018055565b600260015414156118b45760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b031633146118e35760405162461bcd60e51b81526004016103e8906133ec565b6099546001600160a01b031660005b8451811015611546576119533386838151811061191157611911613458565b60200260200101518487858151811061192c5761192c613458565b602002602001015187868151811061194657611946613458565b6020026020010151612982565b8061195d81613484565b9150506118f2565b60a154604051630479363b60e11b81526001600160a01b03838116600483015260009216906308f26c7690602401610e2b565b609b54604051637d99531160e01b81526001600160a01b0383811660048301526000928392839290911690637d995311906024016040805180830381865afa1580156119e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0c919061356a565b80516020909101516001600160801b03918216969116945092505050565b60a05460405163402914f560e01b81526001600160a01b038381166004830152600092169063402914f590602401610e2b565b60026001541415611a805760405162461bcd60e51b81526004016103e890613421565b6002600155609e546040516309f4173d60e11b815233916001600160a01b0316906313e82e7a90611ab7908490819060040161349f565b6020604051808303816000875af1158015611ad6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afa91906134b9565b50609f546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611b2d908490819060040161349f565b6020604051808303816000875af1158015611b4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1e91906134b9565b60026001541415611b935760405162461bcd60e51b81526004016103e890613421565b6002600155609c546040516309f4173d60e11b815233916001600160a01b0316906313e82e7a90611bca908490819060040161349f565b6020604051808303816000875af1158015611be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0d91906134b9565b50609d546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611b2d908490819060040161349f565b60026001541415611c635760405162461bcd60e51b81526004016103e890613421565b6002600155609c546040516309f4173d60e11b815233916001600160a01b0316906313e82e7a90611c9a908490819060040161349f565b6020604051808303816000875af1158015611cb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdd91906134b9565b50609e546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611d10908490819060040161349f565b6020604051808303816000875af1158015611d2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5391906134b9565b50609f546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611d86908490819060040161349f565b6020604051808303816000875af1158015611da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc991906134b9565b50609d546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611dfc908490819060040161349f565b6020604051808303816000875af1158015611e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3f91906134b9565b5060a0546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611e72908490819060040161349f565b6020604051808303816000875af1158015611e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb591906134b9565b5060a1546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611b2d908490819060040161349f565b600080609b60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6291906134b9565b90506000609a60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fdd91906134b9565b609960009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612030573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205491906134b9565b61178d91906134fa565b609c5460405163402914f560e01b81526001600160a01b038381166004830152600092839283928392839291169063402914f5906024016020604051808303816000875af11580156120b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d891906134b9565b609d5460405163402914f560e01b81526001600160a01b03898116600483015292975091169063402914f5906024016020604051808303816000875af1158015612126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214a91906134b9565b609e5460405163402914f560e01b81526001600160a01b03898116600483015292965091169063402914f5906024016020604051808303816000875af1158015612198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bc91906134b9565b609f5460405163402914f560e01b81526001600160a01b03898116600483015292955091169063402914f5906024016020604051808303816000875af115801561220a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222e91906134b9565b60a05460405163402914f560e01b81526001600160a01b03898116600483015292945091169063402914f590602401602060405180830381865afa15801561227a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229e91906134b9565b60a15460405163402914f560e01b81526001600160a01b0389811660048301529091169063402914f590602401602060405180830381865afa1580156122e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230c91906134b9565b61231691906134fa565b905091939590929450565b60a154604051635d50e72960e01b81526001600160a01b0383811660048301526000921690635d50e72990602401610e2b565b60a154604051639303547360e01b81526001600160a01b0383811660048301526000921690639303547390602401610e2b565b600260015414156123aa5760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b031633146123d95760405162461bcd60e51b81526004016103e8906133ec565b609954610d1e90339084906001600160a01b0316846000612982565b60a0546040516309f4173d60e11b81526000916001600160a01b0316906313e82e7a90612428908590819060040161349f565b6020604051808303816000875af1158015610e48573d6000803e3d6000fd5b6065546001600160a01b031633146124715760405162461bcd60e51b81526004016103e8906133ec565b6001600160a01b0381166124d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103e8565b6124df81612b81565b50565b600260015414156125055760405162461bcd60e51b81526004016103e890613421565b600260015561188b33612865565b6000600260015414156125385760405162461bcd60e51b81526004016103e890613421565b60026001558161255a5760405162461bcd60e51b81526004016103e8906134d2565b609d54609c5460405163098bf59d60e01b815233600482018190526001600160a01b039283166024830152604482018690526064820181905292919091169063098bf59d90608401600060405180830381600087803b1580156125bc57600080fd5b505af11580156125d0573d6000803e3d6000fd5b5050609c5460985460405163098bf59d60e01b81526001600160a01b038681166004830181905292811660248301526044820189905260648201929092529116925063098bf59d9150608401600060405180830381600087803b15801561263657600080fd5b505af115801561264a573d6000803e3d6000fd5b5050604080516001600160a01b0385168152602081018790527fcc7cb940d1fa10f6c95397bd7355aef0bad1b89bfc9cd922162720bff911009493500190505b60405180910390a150506001805590565b6000600260015414156126c05760405162461bcd60e51b81526004016103e890613421565b6002600155816126e25760405162461bcd60e51b81526004016103e8906134d2565b609c54609854604051631e42d69b60e21b81523360048201819052602482018190526001600160a01b0392831660448301526064820186905292919091169063790b5a6c90608401600060405180830381600087803b15801561274457600080fd5b505af1158015612758573d6000803e3d6000fd5b5050609d54609c54604051631e42d69b60e21b81526001600160a01b038681166004830181905260248301529182166044820152606481018890529116925063790b5a6c9150608401600060405180830381600087803b1580156127bb57600080fd5b505af11580156127cf573d6000803e3d6000fd5b5050604080516001600160a01b0385168152602081018790527f7d6d7cfda37a857e91ee28f4cd0b7aa06fe8be7a7f3c4fed676140a76365a542935001905061268a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bad908490612cea565b609d546040516309f4173d60e11b81526000916001600160a01b0316906313e82e7a90612898908590819060040161349f565b6020604051808303816000875af11580156128b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128db91906134b9565b609f546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a9061290d908690819060040161349f565b6020604051808303816000875af115801561292c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295091906134b9565b61295a91906134fa565b9050801561297e57609a5461297e90839081906001600160a01b0316846000612982565b5050565b80612a7b57609b546040516326f57e5760e11b81526001600160a01b0386811660048301526000921690634deafcae90602401602060405180830381865afa1580156129d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f691906134b9565b609b54604051631281099d60e21b81526001600160a01b038981166004830152888116602483015287811660448301526064820187905260848201849052929350911690634a0426749060a401600060405180830381600087803b158015612a5d57600080fd5b505af1158015612a71573d6000803e3d6000fd5b5050505050612af9565b609b54604051631281099d60e21b81526001600160a01b03878116600483015286811660248301528581166044830152606482018590526084820184905290911690634a0426749060a401600060405180830381600087803b158015612ae057600080fd5b505af1158015612af4573d6000803e3d6000fd5b505050505b604080516001600160a01b03808716825285166020820152908101839052606081018290527f82cb7f5aa41d66b64080e7ad9c7372913b67f45c8fae6e183f283d22342a08119060800160405180910390a15050505050565b600054610100900460ff16612b795760405162461bcd60e51b81526004016103e8906135c5565b61149e612dbc565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b609b5460405163142a7ce160e31b81526001600160a01b038381166004830152600092169063a153e70890602401602060405180830381865afa158015612c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4291906134b9565b609b546040516327b299cb60e21b81526001600160a01b038581166004830152929350911690639eca672c90602401600060405180830381600087803b158015612c8b57600080fd5b505af1158015612c9f573d6000803e3d6000fd5b5050604080516001600160a01b0386168152602081018590527f90579983d9fcc13ab3b8f6cb648dc2483c7aec85696956ec6659e7ac17fb1f80935001905060405180910390a15050565b6000612d3f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612dec9092919063ffffffff16565b805190915015610bad5780806020019051810190612d5d9190613610565b610bad5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e8565b600054610100900460ff16612de35760405162461bcd60e51b81526004016103e8906135c5565b61149e33612b81565b6060612dfb8484600085612e03565b949350505050565b606082471015612e645760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e8565b6001600160a01b0385163b612ebb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e8565b600080866001600160a01b03168587604051612ed7919061365e565b60006040518083038185875af1925050503d8060008114612f14576040519150601f19603f3d011682016040523d82523d6000602084013e612f19565b606091505b5091509150612f29828286612f34565b979650505050505050565b60608315612f43575081611085565b825115612f535782518084602001fd5b8160405162461bcd60e51b81526004016103e8919061367a565b80356001600160a01b0381168114612f8457600080fd5b919050565b600080600060608486031215612f9e57600080fd5b612fa784612f6d565b9250612fb560208501612f6d565b9150604084013590509250925092565b600060208284031215612fd757600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561301757613017612fde565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561304657613046612fde565b604052919050565b600067ffffffffffffffff82111561306857613068612fde565b5060051b60200190565b600082601f83011261308357600080fd5b813560206130986130938361304e565b61301d565b82815260059290921b840181019181810190868411156130b757600080fd5b8286015b848110156130d9576130cc81612f6d565b83529183019183016130bb565b509695505050505050565b6000602082840312156130f657600080fd5b813567ffffffffffffffff81111561310d57600080fd5b612dfb84828501613072565b60006020828403121561312b57600080fd5b61108582612f6d565b6000806040838503121561314757600080fd5b50508035926020909101359150565b6000806040838503121561316957600080fd5b61317283612f6d565b946020939093013593505050565b60006040516080810181811067ffffffffffffffff821117156131a5576131a5612fde565b60405290508060808301848111156131bc57600080fd5b835b818110156131dd576131cf81612f6d565b8352602092830192016131be565b50505092915050565b600082601f8301126131f757600080fd5b6040516040810181811067ffffffffffffffff8211171561321a5761321a612fde565b806040525080604084018581111561323157600080fd5b845b818110156132525761324481612f6d565b835260209283019201613233565b509195945050505050565b6000806000806101a0858703121561327457600080fd5b85601f86011261328357600080fd5b61328b612ff4565b8060a087018881111561329d57600080fd5b875b818110156132be576132b081612f6d565b84526020938401930161329f565b508196508860bf8901126132d157600080fd5b6132db8982613180565b95505050506132ee8661012087016131e6565b91506132fe8661016087016131e6565b905092959194509250565b600082601f83011261331a57600080fd5b8135602061332a6130938361304e565b82815260059290921b8401810191818101908684111561334957600080fd5b8286015b848110156130d9578035835291830191830161334d565b60008060006060848603121561337957600080fd5b833567ffffffffffffffff8082111561339157600080fd5b61339d87838801613072565b945060208601359150808211156133b357600080fd5b6133bf87838801613309565b935060408601359150808211156133d557600080fd5b506133e286828701613309565b9150509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156134985761349861346e565b5060010190565b6001600160a01b0392831681529116602082015260400190565b6000602082840312156134cb57600080fd5b5051919050565b6020808252600e908201526d416d6f756e74206973207a65726f60901b604082015260600190565b6000821982111561350d5761350d61346e565b500190565b600081600019048311821515161561352c5761352c61346e565b500290565b60008261354e57634e487b7160e01b600052601260045260246000fd5b500490565b80516001600160801b0381168114612f8457600080fd5b60006040828403121561357c57600080fd5b6040516040810181811067ffffffffffffffff8211171561359f5761359f612fde565b6040526135ab83613553565b81526135b960208401613553565b60208201529392505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561362257600080fd5b8151801515811461108557600080fd5b60005b8381101561364d578181015183820152602001613635565b838111156110ec5750506000910152565b60008251613670818460208701613632565b9190910192915050565b6020815260008251806020840152613699816040850160208701613632565b601f01601f1916919091016040019291505056fea264697066735822122092dd15f96d1969633531e92cef19a263a701fdc9bcb8a79572d24d3eb45914d964736f6c634300080a0033

Deployed Bytecode

0x6080604052600436106103a65760003560e01c80637a09fd90116101e7578063c4180acd1161010d578063e894e429116100a0578063f69e20461161006f578063f69e204614610afa578063f98c8c4c14610b0f578063fbc891d514610b2f578063fbfa77cf14610b4f57600080fd5b8063e894e42914610a7a578063ec69f95e14610a9a578063ee8bc97414610aba578063f2fde38b14610ada57600080fd5b8063d6947117116100dc578063d6947117146109dd578063dc01f60d146109f2578063debc811414610a3a578063e6aef8a614610a5a57600080fd5b8063c4180acd1461097e578063c43e2a611461099e578063c8aedf17146109b3578063d1058e59146109c857600080fd5b80639aa1112911610185578063b44bcffe11610154578063b44bcffe146108e9578063b696f9c914610909578063b98a7aba14610929578063be8d8b491461095e57600080fd5b80639aa11129146108745780639c119edc14610894578063a388c3a9146108b4578063b2a39a2a146108c957600080fd5b806381192eb7116101c157806381192eb714610801578063834080b9146108215780638da5cb5b14610836578063976e2a4d1461085457600080fd5b80637a09fd90146107b75780637a97fc4a146107d75780637f02a900146107ec57600080fd5b80633fc8cef3116102cc5780636725e80d1161026a5780636e677d5a116102395780636e677d5a1461074d578063715018a6146107625780637531615e1461077757806376b467b71461079757600080fd5b80636725e80d146106cd5780636817031b146106ed5780636c0bf8dd1461070d5780636e6537de1461072d57600080fd5b80634321bf40116102a65780634321bf40146106585780634f2bfe5b146106785780635010d1db14610698578063625f8460146106b857600080fd5b80633fc8cef3146106035780634152f25814610623578063429ba8221461064357600080fd5b80632458dcc0116103445780632e4535a4116103135780632e4535a4146105835780632f264544146105a357806334ab4e56146105c35780633e49e213146105e357600080fd5b80632458dcc0146104f557806326c36313146105155780632a1562d5146105355780632a9f40831461056357600080fd5b80631af276a6116103805780631af276a6146104755780631cb72ba8146104955780631df7ba5f146104b5578063240214a3146104d557600080fd5b806301a4939a146103f657806301e3366714610433578063181fbdc01461045557600080fd5b366103f15760405162461bcd60e51b81526020600482015260166024820152752937baba32b91d1034b73b30b634b21039b2b73232b960511b60448201526064015b60405180910390fd5b600080fd5b34801561040257600080fd5b5060a054610416906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561043f57600080fd5b5061045361044e366004612f89565b610b6f565b005b34801561046157600080fd5b50610453610470366004612fc5565b610bb2565b34801561048157600080fd5b506104536104903660046130e4565b610c8c565b3480156104a157600080fd5b50609e54610416906001600160a01b031681565b3480156104c157600080fd5b506104536104d0366004613119565b610d26565b3480156104e157600080fd5b506104536104f0366004613134565b610db9565b34801561050157600080fd5b5060a454610416906001600160a01b031681565b34801561052157600080fd5b50609c54610416906001600160a01b031681565b34801561054157600080fd5b50610555610550366004613119565b610dfc565b60405190815260200161042a565b34801561056f57600080fd5b5061045361057e366004613119565b610e72565b34801561058f57600080fd5b5061055561059e366004613119565b610ed4565b3480156105af57600080fd5b50609d54610416906001600160a01b031681565b3480156105cf57600080fd5b506104536105de366004613134565b610f07565b3480156105ef57600080fd5b50609854610416906001600160a01b031681565b34801561060f57600080fd5b50609754610416906001600160a01b031681565b34801561062f57600080fd5b5061055561063e366004613119565b610f4a565b34801561064f57600080fd5b50610453610f7d565b34801561066457600080fd5b50609f54610416906001600160a01b031681565b34801561068457600080fd5b50609b54610416906001600160a01b031681565b3480156106a457600080fd5b506105556106b3366004613156565b61100f565b3480156106c457600080fd5b5061045361108c565b3480156106d957600080fd5b506104536106e836600461325d565b6110f2565b3480156106f957600080fd5b50610453610708366004613119565b6112bb565b34801561071957600080fd5b5060a554610416906001600160a01b031681565b34801561073957600080fd5b50610555610748366004613119565b61134e565b34801561075957600080fd5b506105556113f7565b34801561076e57600080fd5b5061045361146a565b34801561078357600080fd5b50610453610792366004612fc5565b6114a0565b3480156107a357600080fd5b506105556107b2366004613119565b611551565b3480156107c357600080fd5b506104536107d2366004612fc5565b611584565b3480156107e357600080fd5b50610555611600565b3480156107f857600080fd5b5061055561164a565b34801561080d57600080fd5b50609954610416906001600160a01b031681565b34801561082d57600080fd5b50610555611694565b34801561084257600080fd5b506065546001600160a01b0316610416565b34801561086057600080fd5b5061055561086f366004613119565b6117c1565b34801561088057600080fd5b5061055561088f366004613119565b6117f4565b3480156108a057600080fd5b506105556108af366004613119565b611827565b3480156108c057600080fd5b5061045361185a565b3480156108d557600080fd5b5060a154610416906001600160a01b031681565b3480156108f557600080fd5b50610453610904366004613364565b611891565b34801561091557600080fd5b50610555610924366004613119565b611965565b34801561093557600080fd5b50610949610944366004613119565b611998565b6040805192835260208301919091520161042a565b34801561096a57600080fd5b50609a54610416906001600160a01b031681565b34801561098a57600080fd5b50610555610999366004613119565b611a2a565b3480156109aa57600080fd5b50610453611a5d565b3480156109bf57600080fd5b50610453611b70565b3480156109d457600080fd5b50610453611c40565b3480156109e957600080fd5b50610555611ee8565b3480156109fe57600080fd5b50610a12610a0d366004613119565b61205e565b604080519586526020860194909452928401919091526060830152608082015260a00161042a565b348015610a4657600080fd5b5060a354610416906001600160a01b031681565b348015610a6657600080fd5b50610555610a75366004613119565b612321565b348015610a8657600080fd5b50610555610a95366004613119565b612354565b348015610aa657600080fd5b50610453610ab5366004613156565b612387565b348015610ac657600080fd5b50610555610ad5366004613119565b6123f5565b348015610ae657600080fd5b50610453610af5366004613119565b612447565b348015610b0657600080fd5b506104536124e2565b348015610b1b57600080fd5b50610555610b2a366004612fc5565b612513565b348015610b3b57600080fd5b50610555610b4a366004612fc5565b61269b565b348015610b5b57600080fd5b5060a654610416906001600160a01b031681565b6065546001600160a01b03163314610b995760405162461bcd60e51b81526004016103e8906133ec565b610bad6001600160a01b0384168383612813565b505050565b60026001541415610bd55760405162461bcd60e51b81526004016103e890613421565b6002600155609b54604051639ab77eff60e01b8152336004820152602481018390526001600160a01b0390911690639ab77eff90604401600060405180830381600087803b158015610c2657600080fd5b505af1158015610c3a573d6000803e3d6000fd5b5050604080513380825260208201526000818301526060810185905290517f82cb7f5aa41d66b64080e7ad9c7372913b67f45c8fae6e183f283d22342a08119350908190036080019150a15060018055565b60026001541415610caf5760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b03163314610cde5760405162461bcd60e51b81526004016103e8906133ec565b60005b8151811015610d1e57610d0c828281518110610cff57610cff613458565b6020026020010151612865565b80610d1681613484565b915050610ce1565b505060018055565b6065546001600160a01b03163314610d505760405162461bcd60e51b81526004016103e8906133ec565b60a5546040517f78fa294a9593f00758d3792cda8048bd2b3534d612d292a101629f17eeab3c9a91610d8f916001600160a01b0390911690849061349f565b60405180910390a160a580546001600160a01b0319166001600160a01b0392909216919091179055565b60026001541415610ddc5760405162461bcd60e51b81526004016103e890613421565b6002600155609a54610d1e90339081906001600160a01b03168585612982565b60a054604051639303547360e01b81526001600160a01b03838116600483015260009216906393035473906024015b602060405180830381865afa158015610e48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6c91906134b9565b92915050565b60026001541415610e955760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b03163314610ec45760405162461bcd60e51b81526004016103e8906133ec565b610ecd81612865565b5060018055565b60a15460405163402914f560e01b81526001600160a01b038381166004830152600092169063402914f590602401610e2b565b60026001541415610f2a5760405162461bcd60e51b81526004016103e890613421565b6002600155609954610d1e90339081906001600160a01b03168585612982565b60a054604051630479363b60e11b81526001600160a01b03838116600483015260009216906308f26c7690602401610e2b565b60026001541415610fa05760405162461bcd60e51b81526004016103e890613421565b600260015560a154604051632b6d5cd760e21b81526001600160a01b039091169063adb5735c90610fd7903390819060040161349f565b600060405180830381600087803b158015610ff157600080fd5b505af1158015611005573d6000803e3d6000fd5b5050600180555050565b60a154604051633e7c79d960e11b81526001600160a01b038481166004830152602482018490526000921690637cf8f3b290604401602060405180830381865afa158015611061573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108591906134b9565b9392505050565b60a054604051632b6d5cd760e21b81526001600160a01b039091169063adb5735c906110be903390819060040161349f565b600060405180830381600087803b1580156110d857600080fd5b505af11580156110ec573d6000803e3d6000fd5b50505050565b600054610100900460ff1661110d5760005460ff1615611111565b303b155b6111745760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103e8565b600054610100900460ff16158015611196576000805461ffff19166101011790555b61119e612b52565b8451609780546001600160a01b03199081166001600160a01b0393841617909155602080880151609980548416918516919091179055604080890151609a805485169186169190911790556060808a015160988054861691871691909117905560808a0151609b805486169187169190911790558851609c8054861691871691909117905588830151609d8054861691871691909117905590880151609e80548516918616919091179055870151609f80548416918516919091179055855160a1805484169185169190911790558581015160a080548416918516919091179055845160a38054841691851691909117905584015160a48054909216921691909117905580156112b4576000805461ff00191690555b5050505050565b6065546001600160a01b031633146112e55760405162461bcd60e51b81526004016103e8906133ec565b60a6546040517f22a9f7c8a21e91a43518238948d4ed67511ad8492ca0e13fdbc93c134701a72a91611324916001600160a01b0390911690849061349f565b60405180910390a160a680546001600160a01b0319166001600160a01b0392909216919091179055565b6000600260015414156113735760405162461bcd60e51b81526004016103e890613421565b600260015560a1546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a906113aa908590819060040161349f565b6020604051808303816000875af11580156113c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ed91906134b9565b6001805592915050565b609b5460408051631a7bc80f60e21b815290516000926001600160a01b0316916369ef203c9160048083019260209291908290030181865afa158015611441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146591906134b9565b905090565b6065546001600160a01b031633146114945760405162461bcd60e51b81526004016103e8906133ec565b61149e6000612b81565b565b600260015414156114c35760405162461bcd60e51b81526004016103e890613421565b6002600155806114e55760405162461bcd60e51b81526004016103e8906134d2565b60a05460405163342fcda960e01b8152336004820152602481018390526001600160a01b039091169063342fcda9906044015b600060405180830381600087803b15801561153257600080fd5b505af1158015611546573d6000803e3d6000fd5b505060018055505050565b609b546040516326f57e5760e11b81526001600160a01b0383811660048301526000921690634deafcae90602401610e2b565b600260015414156115a75760405162461bcd60e51b81526004016103e890613421565b6002600155806115c95760405162461bcd60e51b81526004016103e8906134d2565b60a15460405163342fcda960e01b8152336004820152602481018390526001600160a01b039091169063342fcda990604401611518565b60a35460408051633d8523f760e11b815290516000926001600160a01b031691637b0a47ee9160048083019260209291908290030181865afa158015611441573d6000803e3d6000fd5b60a45460408051633d8523f760e11b815290516000926001600160a01b031691637b0a47ee9160048083019260209291908290030181865afa158015611441573d6000803e3d6000fd5b60985460a5546040516370a0823160e01b81526001600160a01b039182166004820152600092839216906370a0823190602401602060405180830381865afa1580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170891906134b9565b90506000609c60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561175f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178391906134b9565b61178d90836134fa565b905080156117b757806117a883670de0b6b3a7640000613512565b6117b29190613531565b6117ba565b60005b9250505090565b609d546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401610e2b565b60a0546040516338a0bd9960e11b81526001600160a01b03838116600483015260009216906371417b3290602401610e2b565b60a1546040516338a0bd9960e11b81526001600160a01b03838116600483015260009216906371417b3290602401610e2b565b6002600154141561187d5760405162461bcd60e51b81526004016103e890613421565b600260015561188b33612bd3565b60018055565b600260015414156118b45760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b031633146118e35760405162461bcd60e51b81526004016103e8906133ec565b6099546001600160a01b031660005b8451811015611546576119533386838151811061191157611911613458565b60200260200101518487858151811061192c5761192c613458565b602002602001015187868151811061194657611946613458565b6020026020010151612982565b8061195d81613484565b9150506118f2565b60a154604051630479363b60e11b81526001600160a01b03838116600483015260009216906308f26c7690602401610e2b565b609b54604051637d99531160e01b81526001600160a01b0383811660048301526000928392839290911690637d995311906024016040805180830381865afa1580156119e8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0c919061356a565b80516020909101516001600160801b03918216969116945092505050565b60a05460405163402914f560e01b81526001600160a01b038381166004830152600092169063402914f590602401610e2b565b60026001541415611a805760405162461bcd60e51b81526004016103e890613421565b6002600155609e546040516309f4173d60e11b815233916001600160a01b0316906313e82e7a90611ab7908490819060040161349f565b6020604051808303816000875af1158015611ad6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611afa91906134b9565b50609f546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611b2d908490819060040161349f565b6020604051808303816000875af1158015611b4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1e91906134b9565b60026001541415611b935760405162461bcd60e51b81526004016103e890613421565b6002600155609c546040516309f4173d60e11b815233916001600160a01b0316906313e82e7a90611bca908490819060040161349f565b6020604051808303816000875af1158015611be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0d91906134b9565b50609d546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611b2d908490819060040161349f565b60026001541415611c635760405162461bcd60e51b81526004016103e890613421565b6002600155609c546040516309f4173d60e11b815233916001600160a01b0316906313e82e7a90611c9a908490819060040161349f565b6020604051808303816000875af1158015611cb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cdd91906134b9565b50609e546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611d10908490819060040161349f565b6020604051808303816000875af1158015611d2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d5391906134b9565b50609f546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611d86908490819060040161349f565b6020604051808303816000875af1158015611da5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc991906134b9565b50609d546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611dfc908490819060040161349f565b6020604051808303816000875af1158015611e1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3f91906134b9565b5060a0546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611e72908490819060040161349f565b6020604051808303816000875af1158015611e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb591906134b9565b5060a1546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a90611b2d908490819060040161349f565b600080609b60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6291906134b9565b90506000609a60009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fb9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fdd91906134b9565b609960009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612030573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205491906134b9565b61178d91906134fa565b609c5460405163402914f560e01b81526001600160a01b038381166004830152600092839283928392839291169063402914f5906024016020604051808303816000875af11580156120b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d891906134b9565b609d5460405163402914f560e01b81526001600160a01b03898116600483015292975091169063402914f5906024016020604051808303816000875af1158015612126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214a91906134b9565b609e5460405163402914f560e01b81526001600160a01b03898116600483015292965091169063402914f5906024016020604051808303816000875af1158015612198573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121bc91906134b9565b609f5460405163402914f560e01b81526001600160a01b03898116600483015292955091169063402914f5906024016020604051808303816000875af115801561220a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222e91906134b9565b60a05460405163402914f560e01b81526001600160a01b03898116600483015292945091169063402914f590602401602060405180830381865afa15801561227a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229e91906134b9565b60a15460405163402914f560e01b81526001600160a01b0389811660048301529091169063402914f590602401602060405180830381865afa1580156122e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061230c91906134b9565b61231691906134fa565b905091939590929450565b60a154604051635d50e72960e01b81526001600160a01b0383811660048301526000921690635d50e72990602401610e2b565b60a154604051639303547360e01b81526001600160a01b0383811660048301526000921690639303547390602401610e2b565b600260015414156123aa5760405162461bcd60e51b81526004016103e890613421565b60026001556065546001600160a01b031633146123d95760405162461bcd60e51b81526004016103e8906133ec565b609954610d1e90339084906001600160a01b0316846000612982565b60a0546040516309f4173d60e11b81526000916001600160a01b0316906313e82e7a90612428908590819060040161349f565b6020604051808303816000875af1158015610e48573d6000803e3d6000fd5b6065546001600160a01b031633146124715760405162461bcd60e51b81526004016103e8906133ec565b6001600160a01b0381166124d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103e8565b6124df81612b81565b50565b600260015414156125055760405162461bcd60e51b81526004016103e890613421565b600260015561188b33612865565b6000600260015414156125385760405162461bcd60e51b81526004016103e890613421565b60026001558161255a5760405162461bcd60e51b81526004016103e8906134d2565b609d54609c5460405163098bf59d60e01b815233600482018190526001600160a01b039283166024830152604482018690526064820181905292919091169063098bf59d90608401600060405180830381600087803b1580156125bc57600080fd5b505af11580156125d0573d6000803e3d6000fd5b5050609c5460985460405163098bf59d60e01b81526001600160a01b038681166004830181905292811660248301526044820189905260648201929092529116925063098bf59d9150608401600060405180830381600087803b15801561263657600080fd5b505af115801561264a573d6000803e3d6000fd5b5050604080516001600160a01b0385168152602081018790527fcc7cb940d1fa10f6c95397bd7355aef0bad1b89bfc9cd922162720bff911009493500190505b60405180910390a150506001805590565b6000600260015414156126c05760405162461bcd60e51b81526004016103e890613421565b6002600155816126e25760405162461bcd60e51b81526004016103e8906134d2565b609c54609854604051631e42d69b60e21b81523360048201819052602482018190526001600160a01b0392831660448301526064820186905292919091169063790b5a6c90608401600060405180830381600087803b15801561274457600080fd5b505af1158015612758573d6000803e3d6000fd5b5050609d54609c54604051631e42d69b60e21b81526001600160a01b038681166004830181905260248301529182166044820152606481018890529116925063790b5a6c9150608401600060405180830381600087803b1580156127bb57600080fd5b505af11580156127cf573d6000803e3d6000fd5b5050604080516001600160a01b0385168152602081018790527f7d6d7cfda37a857e91ee28f4cd0b7aa06fe8be7a7f3c4fed676140a76365a542935001905061268a565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bad908490612cea565b609d546040516309f4173d60e11b81526000916001600160a01b0316906313e82e7a90612898908590819060040161349f565b6020604051808303816000875af11580156128b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128db91906134b9565b609f546040516309f4173d60e11b81526001600160a01b03909116906313e82e7a9061290d908690819060040161349f565b6020604051808303816000875af115801561292c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061295091906134b9565b61295a91906134fa565b9050801561297e57609a5461297e90839081906001600160a01b0316846000612982565b5050565b80612a7b57609b546040516326f57e5760e11b81526001600160a01b0386811660048301526000921690634deafcae90602401602060405180830381865afa1580156129d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f691906134b9565b609b54604051631281099d60e21b81526001600160a01b038981166004830152888116602483015287811660448301526064820187905260848201849052929350911690634a0426749060a401600060405180830381600087803b158015612a5d57600080fd5b505af1158015612a71573d6000803e3d6000fd5b5050505050612af9565b609b54604051631281099d60e21b81526001600160a01b03878116600483015286811660248301528581166044830152606482018590526084820184905290911690634a0426749060a401600060405180830381600087803b158015612ae057600080fd5b505af1158015612af4573d6000803e3d6000fd5b505050505b604080516001600160a01b03808716825285166020820152908101839052606081018290527f82cb7f5aa41d66b64080e7ad9c7372913b67f45c8fae6e183f283d22342a08119060800160405180910390a15050505050565b600054610100900460ff16612b795760405162461bcd60e51b81526004016103e8906135c5565b61149e612dbc565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b609b5460405163142a7ce160e31b81526001600160a01b038381166004830152600092169063a153e70890602401602060405180830381865afa158015612c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4291906134b9565b609b546040516327b299cb60e21b81526001600160a01b038581166004830152929350911690639eca672c90602401600060405180830381600087803b158015612c8b57600080fd5b505af1158015612c9f573d6000803e3d6000fd5b5050604080516001600160a01b0386168152602081018590527f90579983d9fcc13ab3b8f6cb648dc2483c7aec85696956ec6659e7ac17fb1f80935001905060405180910390a15050565b6000612d3f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612dec9092919063ffffffff16565b805190915015610bad5780806020019051810190612d5d9190613610565b610bad5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e8565b600054610100900460ff16612de35760405162461bcd60e51b81526004016103e8906135c5565b61149e33612b81565b6060612dfb8484600085612e03565b949350505050565b606082471015612e645760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e8565b6001600160a01b0385163b612ebb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e8565b600080866001600160a01b03168587604051612ed7919061365e565b60006040518083038185875af1925050503d8060008114612f14576040519150601f19603f3d011682016040523d82523d6000602084013e612f19565b606091505b5091509150612f29828286612f34565b979650505050505050565b60608315612f43575081611085565b825115612f535782518084602001fd5b8160405162461bcd60e51b81526004016103e8919061367a565b80356001600160a01b0381168114612f8457600080fd5b919050565b600080600060608486031215612f9e57600080fd5b612fa784612f6d565b9250612fb560208501612f6d565b9150604084013590509250925092565b600060208284031215612fd757600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561301757613017612fde565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561304657613046612fde565b604052919050565b600067ffffffffffffffff82111561306857613068612fde565b5060051b60200190565b600082601f83011261308357600080fd5b813560206130986130938361304e565b61301d565b82815260059290921b840181019181810190868411156130b757600080fd5b8286015b848110156130d9576130cc81612f6d565b83529183019183016130bb565b509695505050505050565b6000602082840312156130f657600080fd5b813567ffffffffffffffff81111561310d57600080fd5b612dfb84828501613072565b60006020828403121561312b57600080fd5b61108582612f6d565b6000806040838503121561314757600080fd5b50508035926020909101359150565b6000806040838503121561316957600080fd5b61317283612f6d565b946020939093013593505050565b60006040516080810181811067ffffffffffffffff821117156131a5576131a5612fde565b60405290508060808301848111156131bc57600080fd5b835b818110156131dd576131cf81612f6d565b8352602092830192016131be565b50505092915050565b600082601f8301126131f757600080fd5b6040516040810181811067ffffffffffffffff8211171561321a5761321a612fde565b806040525080604084018581111561323157600080fd5b845b818110156132525761324481612f6d565b835260209283019201613233565b509195945050505050565b6000806000806101a0858703121561327457600080fd5b85601f86011261328357600080fd5b61328b612ff4565b8060a087018881111561329d57600080fd5b875b818110156132be576132b081612f6d565b84526020938401930161329f565b508196508860bf8901126132d157600080fd5b6132db8982613180565b95505050506132ee8661012087016131e6565b91506132fe8661016087016131e6565b905092959194509250565b600082601f83011261331a57600080fd5b8135602061332a6130938361304e565b82815260059290921b8401810191818101908684111561334957600080fd5b8286015b848110156130d9578035835291830191830161334d565b60008060006060848603121561337957600080fd5b833567ffffffffffffffff8082111561339157600080fd5b61339d87838801613072565b945060208601359150808211156133b357600080fd5b6133bf87838801613309565b935060408601359150808211156133d557600080fd5b506133e286828701613309565b9150509250925092565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156134985761349861346e565b5060010190565b6001600160a01b0392831681529116602082015260400190565b6000602082840312156134cb57600080fd5b5051919050565b6020808252600e908201526d416d6f756e74206973207a65726f60901b604082015260600190565b6000821982111561350d5761350d61346e565b500190565b600081600019048311821515161561352c5761352c61346e565b500290565b60008261354e57634e487b7160e01b600052601260045260246000fd5b500490565b80516001600160801b0381168114612f8457600080fd5b60006040828403121561357c57600080fd5b6040516040810181811067ffffffffffffffff8211171561359f5761359f612fde565b6040526135ab83613553565b81526135b960208401613553565b60208201529392505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121561362257600080fd5b8151801515811461108557600080fd5b60005b8381101561364d578181015183820152602001613635565b838111156110ec5750506000910152565b60008251613670818460208701613632565b9190910192915050565b6020815260008251806020840152613699816040850160208701613632565b601f01601f1916919091016040019291505056fea264697066735822122092dd15f96d1969633531e92cef19a263a701fdc9bcb8a79572d24d3eb45914d964736f6c634300080a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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