Contract 0x4728a38b6b00cdff9fdc59ace8e3c7ef3c6560e5 1

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe6d22fc897d2fc9e074871fb04ce3314b24340c2ec54651b400dd3be44379e590x60806040178189812021-08-10 4:54:18118 days 6 hrs ago0xa1b0176b24cfb9db3aee2edf7a6df129b69ed376 IN  Contract Creation0 MATIC0.00500954564
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MoneyPrinterStrategy

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : MoneyPrinterStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../../interfaces/ICurveFi.sol";
import "../../interfaces/IUniswapV2Router02.sol";
import "../../interfaces/IUniswapV2Pair.sol";
import "../../interfaces/ILPPool.sol";
import "../../interfaces/ILendingPool.sol";
import "../../interfaces/IGauge.sol";
import "../../interfaces/WexPolyMaster.sol";


contract MoneyPrinterStrategy is Ownable{
    using SafeMath for uint;
    using SafeERC20 for IERC20;

    address public vault;
    address public treasury;
    address public communityWallet;
    address public strategist;
    address _initialVault = 0x3DB93e95c9881BC7D9f2C845ce12e97130Ebf5f2;

    IERC20 public constant DAI = IERC20(0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063); 
    IERC20 public constant USDC = IERC20(0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174);
    IERC20 public constant USDT = IERC20(0xc2132D05D31c914a87C6611C10748AEb04B58e8F);
    
    IERC20 public constant MATIC = IERC20(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270);
    IERC20 public constant CRV = IERC20(0x172370d5Cd63279eFa6d502DAB29171933a610AF);
    IERC20 public constant QUICK = IERC20(0x831753DD7087CaC61aB5644b308642cc1c33Dc13);
    IERC20 public constant Wexpoly = IERC20(0x4c4BF319237D98a30A929A96112EfFa8DA3510EB);
    IERC20 public constant curveLpToken = IERC20(0xE7a24EF0C5e95Ffb0f6684b813A78F2a3AD7D171);

    
    IUniswapV2Router02 public constant WexPolyRouter = IUniswapV2Router02(0x3a1D87f206D12415f5b0A33E786967680AAb4f6d);
    IUniswapV2Router02 public constant quickSwapRouter = IUniswapV2Router02(0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff);
    ILPPool public constant DAIUSDTQuickswapPool = ILPPool(0x97Efe8470727FeE250D7158e6f8F63bb4327c8A2);
    
    IGauge public constant rewardGauge = IGauge(0x19793B454D3AfC7b454F206Ffe95aDE26cA6912c);
    ICurveFi public constant curveFi = ICurveFi(0x445FE580eF8d70FF569aB36e80c647af338db351);
    
    WexPolyMaster public constant wexStakingContract = WexPolyMaster(0xC8Bd86E5a132Ac0bf10134e270De06A8Ba317BFe);
    IUniswapV2Pair public constant WexUSDT_USDCPair = IUniswapV2Pair(0x7242e19A0937ac33472febD69462668a4cf5bbC5);
    IUniswapV2Pair public constant QuickDAI_USDTPair = IUniswapV2Pair(0x59153f27eeFE07E5eCE4f9304EBBa1DA6F53CA88);
        

    uint private valueInPool;

    uint usdtusdcWexPID = 9;

    mapping(IERC20 => int128) curveIds;

    event Yield(uint wexPolyEarned, uint quickEarned, uint wMaticEarned, uint crvEarned, uint valueInDai);

    constructor(address _treasury, address _communityWallet, address _strategist) {
        curveIds[DAI] = 0;
        curveIds[USDC] = 1;
        curveIds[USDT] = 2;
        
        DAI.approve(address(WexPolyRouter), type(uint).max);
        DAI.approve(address(quickSwapRouter), type(uint).max);
        DAI.approve(address(curveFi), type(uint).max);
        USDC.approve(address(WexPolyRouter), type(uint).max);
        USDC.approve(address(quickSwapRouter), type(uint).max);
        USDC.approve(address(curveFi), type(uint).max);
        USDT.approve(address(WexPolyRouter), type(uint).max);
        USDT.approve(address(quickSwapRouter), type(uint).max);
        USDT.approve(address(curveFi), type(uint).max);
        CRV.approve(address(quickSwapRouter), type(uint).max);
        MATIC.approve(address(quickSwapRouter), type(uint).max);
        QUICK.approve(address(quickSwapRouter), type(uint).max);
        Wexpoly.approve(address(quickSwapRouter), type(uint).max);
        curveLpToken.approve(address(rewardGauge), type(uint).max);
        curveLpToken.approve(address(curveFi), type(uint).max);
        WexUSDT_USDCPair.approve(address(wexStakingContract), type(uint).max);
        WexUSDT_USDCPair.approve(address(WexPolyRouter), type(uint).max);
        QuickDAI_USDTPair.approve(address(DAIUSDTQuickswapPool), type(uint).max);
        QuickDAI_USDTPair.approve(address(quickSwapRouter), type(uint).max);

        treasury= _treasury;
        communityWallet = _communityWallet;
        strategist = _strategist;
    }

    modifier onlyVault {
        require(msg.sender == vault, "Only Vault");
        _;
    }

    function deposit(uint _amount, IERC20 _token) external onlyVault{
        _token.safeTransferFrom(vault, address(this), _amount);
        _deposit(_amount, _token);

    }

    function _deposit(uint _amount, IERC20 _token) internal {
        _swapToDepositTokens(_amount, _token);

        uint daiToDeposit = (DAI.balanceOf(address(this))).div(2); 
        uint usdcToDeposit = (USDC.balanceOf(address(this))).div(2);
        uint usdtToDeposit = (USDT.balanceOf(address(this))).div(3);

        _depositToWexPoly(usdtToDeposit, usdcToDeposit);
        _depositToquickSwap(daiToDeposit, usdtToDeposit);
        _depositToCurve();
        
        
    }   


    function withdraw(uint _amount, IERC20 _token) external onlyVault{
        require(_amount <= getValueInPool(), "Invalid amount");
        (uint usdtFromwSwap, uint usdcFromwSwap) = _withdrawFromWexPoly(_amount);
        (uint daiFromQSwap, uint usdtFromQSwap) = _withdrawFromquickSwap(_amount);
        (uint daiFromCurve, uint usdcFromCurve, uint usdtFromCurve) = _withdrawFromCurve(_amount);

        uint daiBalance =  daiFromQSwap.add(daiFromCurve); 
        uint usdcBalance = usdcFromwSwap.add(usdcFromCurve);
        uint usdtBalance = usdtFromQSwap.add(usdtFromCurve).add(usdtFromwSwap);
    
        {
        uint valueRemoved = daiBalance.add(usdtBalance.mul(1e12)).add(usdcBalance.mul(1e12));
        valueInPool = valueRemoved < valueInPool ? valueInPool.sub(valueRemoved) : 0;
        }
        //convert to _token 

        if(_token != DAI)
        curveFi.exchange_underlying(curveIds[DAI], curveIds[_token], daiBalance, 0);
        if(_token != USDC)
        curveFi.exchange_underlying(curveIds[USDC], curveIds[_token], usdcBalance, 0);
        if(_token != USDT)
        curveFi.exchange_underlying(curveIds[USDT], curveIds[_token], usdtBalance, 0);

        _token.safeTransfer(address(vault), _token.balanceOf(address(this)));
    }

    function harvest() external onlyVault {
        
        uint wexPolyEarned = _harvestFromWexPoly();
        uint quickEarned = _harvestFromQuick();
        (uint wMaticEarned, uint crvEarned) = _harvestFromCurve();

        uint valueInDai = DAI.balanceOf(address(this));
        uint fee = valueInDai.div(10); //10%
        uint feeSplit = fee.mul(2).div(5);
        DAI.safeTransfer(treasury, feeSplit);//4 out of 10% to treasury
        DAI.safeTransfer(communityWallet, feeSplit);//4 out of 10% to communityWallet
        DAI.safeTransfer(strategist, fee.sub(feeSplit).sub(feeSplit));//2 out of 10% to strategist

        _deposit(DAI.balanceOf(address(this)), DAI);

        emit Yield(wexPolyEarned, quickEarned, wMaticEarned, crvEarned, valueInDai);
    }

    function migrateFunds(IERC20 _token)external onlyVault{

        //withdraw from wexPoly
        (uint amountStaked,,) = wexStakingContract.userInfo(usdtusdcWexPID, address(this));
        _harvestFromWexPoly();
        wexStakingContract.withdraw(usdtusdcWexPID, amountStaked, false);
        WexPolyRouter.removeLiquidity(address(USDT), address(USDC), amountStaked, 0, 0, address(this), block.timestamp);

        //withdraw from quickSwap
        uint lpTokenBalanceQSwap = DAIUSDTQuickswapPool.balanceOf(address(this));
        _harvestFromQuick();
        DAIUSDTQuickswapPool.withdraw(lpTokenBalanceQSwap);
        quickSwapRouter.removeLiquidity(address(DAI), address(USDT), lpTokenBalanceQSwap, 0, 0, address(this), block.timestamp);

        //withdraw from curve
        uint lpTokenBalanceCurve = rewardGauge.balanceOf(address(this));
        _harvestFromCurve();
        rewardGauge.withdraw(lpTokenBalanceCurve);
        uint[3] memory minAMmounts; //
        minAMmounts[0] = 0;
        minAMmounts[1] = 0;
        minAMmounts[2] = 0;
        curveFi.remove_liquidity(lpTokenBalanceCurve, minAMmounts, true);


        //swap and withdraw
        if(_token != DAI)
        curveFi.exchange_underlying(curveIds[DAI], curveIds[_token], DAI.balanceOf(address(this)), 0);
        if(_token != USDC)
        curveFi.exchange_underlying(curveIds[USDC], curveIds[_token], USDC.balanceOf(address(this)), 0);
        if(_token != USDT)
        curveFi.exchange_underlying(curveIds[USDT], curveIds[_token], USDT.balanceOf(address(this)), 0);

        //All funds are withdrawn, so vaules are set to 0.
        
        valueInPool = 0;
        _token.safeTransfer(address(vault), _token.balanceOf(address(this)));

    }

    function _withdrawFromWexPoly(uint _amount) internal returns (uint _withdrawnUSDT, uint _withdrawnUSDC){
        (uint amountStaked,,) = wexStakingContract.userInfo(usdtusdcWexPID, address(this));
        
        uint USDCUSDTLpToken = amountStaked.mul(_amount).div(getValueInPool());
        wexStakingContract.withdraw(usdtusdcWexPID, USDCUSDTLpToken, false);

        
        (_withdrawnUSDT, _withdrawnUSDC) = WexPolyRouter.removeLiquidity(address(USDT), address(USDC), USDCUSDTLpToken, 0, 0, address(this), block.timestamp);
        
    }

    function _withdrawFromquickSwap(uint _amount) internal returns(uint _withdrawnDAI, uint _withdrawnUSDT){
        
        uint lpTokenBalance = DAIUSDTQuickswapPool.balanceOf(address(this));
        uint DAIUSDTQuickLpToken = lpTokenBalance.mul(_amount).div(getValueInPool());
        
        
        DAIUSDTQuickswapPool.withdraw(DAIUSDTQuickLpToken);
        (_withdrawnDAI, _withdrawnUSDT) = quickSwapRouter.removeLiquidity(address(DAI), address(USDT), DAIUSDTQuickLpToken, 0, 0, address(this), block.timestamp);
    }

    function _withdrawFromCurve(uint _amount) internal returns (uint _withdrawnDAI, uint _withdrawnUSDC, uint _withdrawnUSDT){
        uint lpTokenBalance = rewardGauge.balanceOf(address(this));
        
        uint lpTokenToWithdraw = lpTokenBalance.mul(_amount).div(getValueInPool());
        


        rewardGauge.withdraw(lpTokenToWithdraw);
        uint[3] memory minAMmounts; 
        minAMmounts[0] = 0;
        minAMmounts[1] = 0;
        minAMmounts[2] = 0;

        uint[3] memory withdrawnAmounts = curveFi.remove_liquidity(lpTokenToWithdraw, minAMmounts, true);

        _withdrawnDAI = withdrawnAmounts[0];
        _withdrawnUSDC = withdrawnAmounts[1];
        _withdrawnUSDT = withdrawnAmounts[2];
    }

    function _harvestFromWexPoly() internal returns (uint WexpolyEarned){
        WexpolyEarned = wexStakingContract.pendingWex(usdtusdcWexPID, address(this));
        
        if(WexpolyEarned > 0 ) {
            wexStakingContract.claim(usdtusdcWexPID);

            address[] memory path = new address[](2);
            path[0] = address(Wexpoly);
            path[1] = address(DAI);

            quickSwapRouter.swapExactTokensForTokens(WexpolyEarned, 0, path, address(this), block.timestamp);
        }        
    }



    function _harvestFromQuick() internal returns(uint quickBalance){

        DAIUSDTQuickswapPool.getReward();

        quickBalance = QUICK.balanceOf(address(this));
        if(quickBalance > 0) {
            address[] memory path = new address[](2);
            path[0] = address(QUICK);
            path[1] = address(DAI);

            quickSwapRouter.swapExactTokensForTokens(quickBalance, 0, path, address(this), block.timestamp);
        }

    }

    function _harvestFromCurve() internal returns (uint maticHarvested, uint crvHarvested){
        rewardGauge.claim_rewards(); 

        address[] memory path = new address[](2);
        path[1] = address(DAI);
        maticHarvested = MATIC.balanceOf(address(this));
        if(maticHarvested > 0) {
            path[0] = address(MATIC);    
            quickSwapRouter.swapExactTokensForTokens(MATIC.balanceOf(address(this)), 0, path, address(this), block.timestamp);
        }

        crvHarvested = CRV.balanceOf(address(this));
        if(crvHarvested > 0) {
            path[0] = address(CRV);
            quickSwapRouter.swapExactTokensForTokens(CRV.balanceOf(address(this)), 0, path, address(this), block.timestamp);
        }
        
    }

    function _swapToDepositTokens(uint _amount, IERC20 _token) internal {
        if(_token == USDT) {
            //convert 27.77% to DAI and 27.77% to USDC
            uint amountToSwap = _amount.mul(2777).div(10000);
            curveFi.exchange_underlying(curveIds[_token], curveIds[DAI], amountToSwap, 0);
            curveFi.exchange_underlying(curveIds[_token], curveIds[USDC], amountToSwap, 0);
        }else  {
            //convert 44.44% to USDT
            //27.77% to DAI || USDC depending on the deposit token
            uint amountToUSDT = _amount.mul(4444).div(10000);

            IERC20 _tokenToGet = _token == DAI ? USDC : DAI; //return USDC if sourceToken is DAI, else return DAI.

            curveFi.exchange_underlying(curveIds[_token], curveIds[USDT], amountToUSDT, 0);
            curveFi.exchange_underlying(curveIds[_token], curveIds[_tokenToGet], _amount.mul(2777).div(10000), 0);
        }
    }

    function _depositToWexPoly(uint _usdtAmount, uint _usdcAmount) internal returns (uint usdt_usdcpoolToken){
        uint usdcAdded; uint usdtAdded;
        (usdcAdded, usdtAdded, usdt_usdcpoolToken) = WexPolyRouter.addLiquidity(address(USDC), address(USDT), _usdcAmount, _usdtAmount, 0, 0, address(this), block.timestamp);

        
    
        wexStakingContract.deposit(usdtusdcWexPID, usdt_usdcpoolToken, false);
        //deposit to wexPoly

        valueInPool = valueInPool.add(usdcAdded.mul(1e12)).add(usdtAdded.mul(1e12));
    }

    function _depositToquickSwap(uint _daiAmount, uint _usdtAmount) internal returns(uint dai_usdtpoolToken){

        uint daiAdded; uint usdtAdded;
        (daiAdded,usdtAdded, dai_usdtpoolToken) = quickSwapRouter.addLiquidity(address(DAI), address(USDT), _daiAmount, _usdtAmount, 0, 0, address(this), block.timestamp);

        
        DAIUSDTQuickswapPool.stake(dai_usdtpoolToken);
        valueInPool = valueInPool.add(daiAdded).add(usdtAdded.mul(1e12));
    }


    function _depositToCurve() internal returns (uint lpTokenAmount){
        
        uint daiBalance = DAI.balanceOf(address(this));
        uint usdcBalance = USDC.balanceOf(address(this));
        uint usdtBalance = USDT.balanceOf(address(this));

        curveFi.add_liquidity([daiBalance, usdcBalance, usdtBalance], 0, true);
        
        //deposit to gauge
        lpTokenAmount = curveLpToken.balanceOf(address(this));
        rewardGauge.deposit(lpTokenAmount);

        valueInPool = valueInPool.add(daiBalance).add(usdcBalance.mul(1e12)).add(usdtBalance.mul(1e12));
    }

    function setVault(address _vault) external{
        require(msg.sender == owner() || msg.sender == _initialVault,"Not owner");
        require(vault == address(0), "Cannot set vault");
        vault = _vault;
    }


    function setTreasuryWallet(address _treasury)external onlyVault{
        treasury = _treasury;
    }

    function setCommunityWallet(address _communityWallet)external onlyVault{
        communityWallet = _communityWallet;
    }

    function setStrategist(address _strategist)external onlyVault{
        strategist = _strategist;
    }

    function getValueInPool() public view returns (uint) {
        return valueInPool; 
    }
}

File 2 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 3 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 4 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 6 of 15 : ICurveFi.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.8.0;

interface ICurveFi {

  function get_virtual_price() external view returns (uint256);
  function get_dy(
    int128 i,
    int128 j,
    uint256 dx
  ) external view returns (uint256);

  function get_dy_underlying(
    int128 i,
    int128 j,
    uint256 dx
  ) external view returns (uint256);

  function coins(int128 arg0) external view returns (address);

  function underlying_coins(int128 arg0) external view returns (address);

  function balances(int128 arg0) external view returns (uint256);

  function add_liquidity(
    uint256[2] calldata amounts,
    uint256 deadline
  ) external;

  function exchange(
    int128 i,
    int128 j,
    uint256 dx,
    uint256 min_dy
    //uint256 deadline
  ) external returns (uint256);

  function exchange_underlying(
    int128 i,
    int128 j,
    uint256 dx,
    uint256 min_dy
  ) external returns (uint256);

  function remove_liquidity(
    uint256 _amount,
    uint256 deadline,
    uint256[2] calldata min_amounts
  ) external;

  function remove_liquidity_imbalance(
    uint256[2] calldata amounts,
    uint256 deadline
  ) external;

  function add_liquidity(uint[3] memory _amounts, uint _min_mint_amount, bool _use_underlying) external returns (uint);
  function remove_liquidity(uint _amount, uint[3] memory _min_amounts, bool _use_underlying) external returns (uint[3] memory);
}

File 7 of 15 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 8 of 15 : IUniswapV2Pair.sol
pragma solidity 0.7.6;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 9 of 15 : ILPPool.sol
pragma solidity ^0.7.4;


interface ILPPool {
    //================== Callers ==================//
    //function mir() external view returns (IERC20);
    function balanceOf(address account) external view returns (uint256);

    function startTime() external view returns (uint256);

    function totalReward() external view returns (uint256);

    function earned(address account) external view returns (uint256);

    //================== Transactors ==================//

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function exit() external;

    function getReward() external;
}

File 10 of 15 : ILendingPool.sol
interface ILendingPool {
      function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external;
      function withdraw(address asset, uint256 amount, address to) external returns (uint);
}

File 11 of 15 : IGauge.sol
interface IGauge {
    function balanceOf(address _address) external view returns (uint256);
    function deposit(uint256 _amount) external;
    function withdraw(uint256 _amount) external;
    function claim_rewards() external;
}

File 12 of 15 : WexPolyMaster.sol
interface WexPolyMaster {
    function deposit(uint256 _pid, uint256 _amount, bool _withdrawRewards) external;
    function withdraw(uint256 _pid, uint256 _amount, bool _withdrawRewards) external;
    function claim(uint256 _pid) external;

    function pendingWex(uint _pid, address _user)external view returns (uint);
    function userInfo(uint pid, address userAddress)external view returns (uint amount, uint rewardDebt, uint pendingRewards);
}

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

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 15 of 15 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_communityWallet","type":"address"},{"internalType":"address","name":"_strategist","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"wexPolyEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quickEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"wMaticEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"crvEarned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"valueInDai","type":"uint256"}],"name":"Yield","type":"event"},{"inputs":[],"name":"CRV","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAIUSDTQuickswapPool","outputs":[{"internalType":"contract ILPPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MATIC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QUICK","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QuickDAI_USDTPair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WexPolyRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WexUSDT_USDCPair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Wexpoly","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveFi","outputs":[{"internalType":"contract ICurveFi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveLpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getValueInPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"migrateFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quickSwapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardGauge","outputs":[{"internalType":"contract IGauge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_communityWallet","type":"address"}],"name":"setCommunityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wexStakingContract","outputs":[{"internalType":"contract WexPolyMaster","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600580546001600160a01b031916733db93e95c9881bc7d9f2c845ce12e97130ebf5f217905560096007553480156200003c57600080fd5b5060405162004ef338038062004ef3833981810160405260608110156200006257600080fd5b508051602082015160409092015190919060006200007f62000d45565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600860209081527f63ab5a5f62ca79ee225a64f0d247db4fd82ef7b7c0f602a2a6722cd00a071a7480546001600160801b03199081169091557ffe454cb04cfdd5dfbb61c2b7e8b7e90f32495782ec6892f5d0a22c4f9fb8482f80548216600117905573c2132d05d31c914a87c6611c10748aeb04b58e8f60009081527f6f59005106ec5b8f86bf4adc23624d4d68ea4fa04d8631d2e770531bfd3bc0a680549092166002179091556040805163095ea7b360e01b8152733a1d87f206d12415f5b0a33e786967680aab4f6d600482015260001960248201529051738f3cf7ad23cd3cadbd9735aff958023239c6a0639363095ea7b3936044808501949293928390030190829087803b158015620001e057600080fd5b505af1158015620001f5573d6000803e3d6000fd5b505050506040513d60208110156200020c57600080fd5b50506040805163095ea7b360e01b815260008051602062004ed3833981519152600482015260001960248201529051738f3cf7ad23cd3cadbd9735aff958023239c6a0639163095ea7b39160448083019260209291908290030181600087803b1580156200027957600080fd5b505af11580156200028e573d6000803e3d6000fd5b505050506040513d6020811015620002a557600080fd5b50506040805163095ea7b360e01b815273445fe580ef8d70ff569ab36e80c647af338db351600482015260001960248201529051738f3cf7ad23cd3cadbd9735aff958023239c6a0639163095ea7b39160448083019260209291908290030181600087803b1580156200031757600080fd5b505af11580156200032c573d6000803e3d6000fd5b505050506040513d60208110156200034357600080fd5b50506040805163095ea7b360e01b8152733a1d87f206d12415f5b0a33e786967680aab4f6d600482015260001960248201529051732791bca1f2de4661ed88a30c99a7a9449aa841749163095ea7b39160448083019260209291908290030181600087803b158015620003b557600080fd5b505af1158015620003ca573d6000803e3d6000fd5b505050506040513d6020811015620003e157600080fd5b50506040805163095ea7b360e01b815260008051602062004ed3833981519152600482015260001960248201529051732791bca1f2de4661ed88a30c99a7a9449aa841749163095ea7b39160448083019260209291908290030181600087803b1580156200044e57600080fd5b505af115801562000463573d6000803e3d6000fd5b505050506040513d60208110156200047a57600080fd5b50506040805163095ea7b360e01b815273445fe580ef8d70ff569ab36e80c647af338db351600482015260001960248201529051732791bca1f2de4661ed88a30c99a7a9449aa841749163095ea7b39160448083019260209291908290030181600087803b158015620004ec57600080fd5b505af115801562000501573d6000803e3d6000fd5b505050506040513d60208110156200051857600080fd5b50506040805163095ea7b360e01b8152733a1d87f206d12415f5b0a33e786967680aab4f6d60048201526000196024820152905173c2132d05d31c914a87c6611c10748aeb04b58e8f9163095ea7b39160448083019260209291908290030181600087803b1580156200058a57600080fd5b505af11580156200059f573d6000803e3d6000fd5b505050506040513d6020811015620005b657600080fd5b50506040805163095ea7b360e01b815260008051602062004ed383398151915260048201526000196024820152905173c2132d05d31c914a87c6611c10748aeb04b58e8f9163095ea7b39160448083019260209291908290030181600087803b1580156200062357600080fd5b505af115801562000638573d6000803e3d6000fd5b505050506040513d60208110156200064f57600080fd5b50506040805163095ea7b360e01b815273445fe580ef8d70ff569ab36e80c647af338db35160048201526000196024820152905173c2132d05d31c914a87c6611c10748aeb04b58e8f9163095ea7b39160448083019260209291908290030181600087803b158015620006c157600080fd5b505af1158015620006d6573d6000803e3d6000fd5b505050506040513d6020811015620006ed57600080fd5b50506040805163095ea7b360e01b815260008051602062004ed383398151915260048201526000196024820152905173172370d5cd63279efa6d502dab29171933a610af9163095ea7b39160448083019260209291908290030181600087803b1580156200075a57600080fd5b505af11580156200076f573d6000803e3d6000fd5b505050506040513d60208110156200078657600080fd5b50506040805163095ea7b360e01b815260008051602062004ed3833981519152600482015260001960248201529051730d500b1d8e8ef31e21c99d1db9a6444d3adf12709163095ea7b39160448083019260209291908290030181600087803b158015620007f357600080fd5b505af115801562000808573d6000803e3d6000fd5b505050506040513d60208110156200081f57600080fd5b50506040805163095ea7b360e01b815260008051602062004ed383398151915260048201526000196024820152905173831753dd7087cac61ab5644b308642cc1c33dc139163095ea7b39160448083019260209291908290030181600087803b1580156200088c57600080fd5b505af1158015620008a1573d6000803e3d6000fd5b505050506040513d6020811015620008b857600080fd5b50506040805163095ea7b360e01b815260008051602062004ed3833981519152600482015260001960248201529051734c4bf319237d98a30a929a96112effa8da3510eb9163095ea7b39160448083019260209291908290030181600087803b1580156200092557600080fd5b505af11580156200093a573d6000803e3d6000fd5b505050506040513d60208110156200095157600080fd5b50506040805163095ea7b360e01b81527319793b454d3afc7b454f206ffe95ade26ca6912c60048201526000196024820152905173e7a24ef0c5e95ffb0f6684b813a78f2a3ad7d1719163095ea7b39160448083019260209291908290030181600087803b158015620009c357600080fd5b505af1158015620009d8573d6000803e3d6000fd5b505050506040513d6020811015620009ef57600080fd5b50506040805163095ea7b360e01b815273445fe580ef8d70ff569ab36e80c647af338db35160048201526000196024820152905173e7a24ef0c5e95ffb0f6684b813a78f2a3ad7d1719163095ea7b39160448083019260209291908290030181600087803b15801562000a6157600080fd5b505af115801562000a76573d6000803e3d6000fd5b505050506040513d602081101562000a8d57600080fd5b50506040805163095ea7b360e01b815273c8bd86e5a132ac0bf10134e270de06a8ba317bfe600482015260001960248201529051737242e19a0937ac33472febd69462668a4cf5bbc59163095ea7b39160448083019260209291908290030181600087803b15801562000aff57600080fd5b505af115801562000b14573d6000803e3d6000fd5b505050506040513d602081101562000b2b57600080fd5b50506040805163095ea7b360e01b8152733a1d87f206d12415f5b0a33e786967680aab4f6d600482015260001960248201529051737242e19a0937ac33472febd69462668a4cf5bbc59163095ea7b39160448083019260209291908290030181600087803b15801562000b9d57600080fd5b505af115801562000bb2573d6000803e3d6000fd5b505050506040513d602081101562000bc957600080fd5b50506040805163095ea7b360e01b81527397efe8470727fee250d7158e6f8f63bb4327c8a26004820152600019602482015290517359153f27eefe07e5ece4f9304ebba1da6f53ca889163095ea7b39160448083019260209291908290030181600087803b15801562000c3b57600080fd5b505af115801562000c50573d6000803e3d6000fd5b505050506040513d602081101562000c6757600080fd5b50506040805163095ea7b360e01b815260008051602062004ed38339815191526004820152600019602482015290517359153f27eefe07e5ece4f9304ebba1da6f53ca889163095ea7b39160448083019260209291908290030181600087803b15801562000cd457600080fd5b505af115801562000ce9573d6000803e3d6000fd5b505050506040513d602081101562000d0057600080fd5b5050600280546001600160a01b039485166001600160a01b03199182161790915560038054938516938216939093179092556004805491909316911617905562000d49565b3390565b61417a8062000d596000396000f3fe608060405234801561001057600080fd5b50600436106101ef5760003560e01c806385d6bb811161010f578063c54e44eb116100a2578063e189eb4211610071578063e189eb42146103e2578063e5f2c651146103ea578063f2fde38b146103f2578063fbfa77cf14610418576101ef565b8063c54e44eb146103a4578063c7574839146103ac578063c7b9d530146103b4578063e0bab4c4146103da576101ef565b8063996d51ff116100de578063996d51ff14610336578063a8602fea1461033e578063bde5fc6d14610364578063bf51929f1461037e576101ef565b806385d6bb81146102f857806389a302711461031e5780638da5cb5b14610326578063945c91421461032e576101ef565b806345550ca6116101875780636817031b116101565780636817031b146102965780636e553f65146102bc578063715018a6146102e857806378645969146102f0576101ef565b806345550ca6146102765780634641257d1461027e57806361d027b314610286578063646780df1461028e576101ef565b80631d8de353116101c35780631d8de353146102565780631fe4a6861461025e57806334c0d442146102665780633f696db31461026e576101ef565b8062f714ce146101f457806315b550d61461022257806315cdaa2e14610246578063188672a01461024e575b600080fd5b6102206004803603604081101561020a57600080fd5b50803590602001356001600160a01b0316610420565b005b61022a610916565b604080516001600160a01b039092168252519081900360200190f35b61022a61092e565b61022a610946565b61022a61095e565b61022a610976565b61022a610985565b61022a61099d565b61022a6109b5565b6102206109cd565b61022a610c86565b61022a610c95565b610220600480360360208110156102ac57600080fd5b50356001600160a01b0316610cad565b610220600480360360408110156102d257600080fd5b50803590602001356001600160a01b0316610daf565b610220610e24565b61022a610ee2565b6102206004803603602081101561030e57600080fd5b50356001600160a01b0316610efa565b61022a610f68565b61022a610f80565b61022a610f90565b61022a610fa8565b6102206004803603602081101561035457600080fd5b50356001600160a01b0316610fc0565b61036c61102e565b60408051918252519081900360200190f35b6102206004803603602081101561039457600080fd5b50356001600160a01b0316611034565b61022a611b63565b61022a611b7b565b610220600480360360208110156103ca57600080fd5b50356001600160a01b0316611b8a565b61022a611bf8565b61022a611c10565b61022a611c28565b6102206004803603602081101561040857600080fd5b50356001600160a01b0316611c40565b61022a611d54565b6001546001600160a01b0316331461046c576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b61047461102e565b8211156104c8576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000806104d484611d63565b915091506000806104e486611f79565b9150915060008060006104f689612131565b919450925090506000610509868561234a565b90506000610517888561234a565b9050600061052f8a610529898761234a565b9061234a565b9050600061055e6105458464e8d4a510006123ad565b6105296105578564e8d4a510006123ad565b879061234a565b9050600654811061057057600061057d565b60065461057d9082612406565b600655506001600160a01b038b16738f3cf7ad23cd3cadbd9735aff958023239c6a0631461067e57600860209081527f63ab5a5f62ca79ee225a64f0d247db4fd82ef7b7c0f602a2a6722cd00a071a74546001600160a01b038d1660009081526040808220548151635320bf6b60e11b8152600f94850b850b600482015290840b90930b602484015260448301879052606483018290525173445fe580ef8d70ff569ab36e80c647af338db3519363a6417ed693608480820194929392918390030190829087803b15801561065157600080fd5b505af1158015610665573d6000803e3d6000fd5b505050506040513d602081101561067b57600080fd5b50505b6001600160a01b038b16732791bca1f2de4661ed88a30c99a7a9449aa841741461077b57600860209081527ffe454cb04cfdd5dfbb61c2b7e8b7e90f32495782ec6892f5d0a22c4f9fb8482f546001600160a01b038d1660009081526040808220548151635320bf6b60e11b8152600f94850b850b600482015290840b90930b602484015260448301869052606483018290525173445fe580ef8d70ff569ab36e80c647af338db3519363a6417ed693608480820194929392918390030190829087803b15801561074e57600080fd5b505af1158015610762573d6000803e3d6000fd5b505050506040513d602081101561077857600080fd5b50505b6001600160a01b038b1673c2132d05d31c914a87c6611c10748aeb04b58e8f1461087857600860209081527f6f59005106ec5b8f86bf4adc23624d4d68ea4fa04d8631d2e770531bfd3bc0a6546001600160a01b038d1660009081526040808220548151635320bf6b60e11b8152600f94850b850b600482015290840b90930b602484015260448301859052606483018290525173445fe580ef8d70ff569ab36e80c647af338db3519363a6417ed693608480820194929392918390030190829087803b15801561084b57600080fd5b505af115801561085f573d6000803e3d6000fd5b505050506040513d602081101561087557600080fd5b50505b600154604080516370a0823160e01b81523060048201529051610908926001600160a01b0390811692908f16916370a0823191602480820192602092909190829003018186803b1580156108cb57600080fd5b505afa1580156108df573d6000803e3d6000fd5b505050506040513d60208110156108f557600080fd5b50516001600160a01b038e169190612463565b505050505050505050505050565b730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b7359153f27eefe07e5ece4f9304ebba1da6f53ca8881565b73831753dd7087cac61ab5644b308642cc1c33dc1381565b733a1d87f206d12415f5b0a33e786967680aab4f6d81565b6004546001600160a01b031681565b7319793b454d3afc7b454f206ffe95ade26ca6912c81565b7397efe8470727fee250d7158e6f8f63bb4327c8a281565b73c8bd86e5a132ac0bf10134e270de06a8ba317bfe81565b6001546001600160a01b03163314610a19576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b6000610a236124e8565b90506000610a2f612840565b9050600080610a3c612971565b915091506000738f3cf7ad23cd3cadbd9735aff958023239c6a0636001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610aa357600080fd5b505afa158015610ab7573d6000803e3d6000fd5b505050506040513d6020811015610acd57600080fd5b505190506000610ade82600a612fbd565b90506000610af86005610af28460026123ad565b90612fbd565b600254909150610b2790738f3cf7ad23cd3cadbd9735aff958023239c6a063906001600160a01b031683612463565b600354610b5390738f3cf7ad23cd3cadbd9735aff958023239c6a063906001600160a01b031683612463565b600454610b93906001600160a01b0316610b7783610b718682612406565b90612406565b738f3cf7ad23cd3cadbd9735aff958023239c6a0639190612463565b604080516370a0823160e01b81523060048201529051610c2f91738f3cf7ad23cd3cadbd9735aff958023239c6a063916370a0823191602480820192602092909190829003018186803b158015610be957600080fd5b505afa158015610bfd573d6000803e3d6000fd5b505050506040513d6020811015610c1357600080fd5b5051738f3cf7ad23cd3cadbd9735aff958023239c6a063613024565b6040805188815260208101889052808201879052606081018690526080810185905290517f79cbb40c184fed000178ad2114381eca8f820640e001f691dc841e52d26eb4ec9181900360a00190a150505050505050565b6002546001600160a01b031681565b73e7a24ef0c5e95ffb0f6684b813a78f2a3ad7d17181565b610cb5610f80565b6001600160a01b0316336001600160a01b03161480610cde57506005546001600160a01b031633145b610d2f576040805162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e65720000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6001546001600160a01b031615610d8d576040805162461bcd60e51b815260206004820152601060248201527f43616e6e6f7420736574207661756c7400000000000000000000000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314610dfb576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b600154610e16906001600160a01b03838116911630856131c4565b610e208282613024565b5050565b610e2c613252565b6001600160a01b0316610e3d610f80565b6001600160a01b031614610e98576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b737242e19a0937ac33472febd69462668a4cf5bbc581565b6001546001600160a01b03163314610f46576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b732791bca1f2de4661ed88a30c99a7a9449aa8417481565b6000546001600160a01b03165b90565b73172370d5cd63279efa6d502dab29171933a610af81565b734c4bf319237d98a30a929a96112effa8da3510eb81565b6001546001600160a01b0316331461100c576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60065490565b6001546001600160a01b03163314611080576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b600754604080517f93f1a40b00000000000000000000000000000000000000000000000000000000815260048101929092523060248301525160009173c8bd86e5a132ac0bf10134e270de06a8ba317bfe916393f1a40b91604480820192606092909190829003018186803b1580156110f857600080fd5b505afa15801561110c573d6000803e3d6000fd5b505050506040513d606081101561112257600080fd5b5051905061112e6124e8565b50600754604080516333cfcd3b60e01b8152600481019290925260248201839052600060448301819052905173c8bd86e5a132ac0bf10134e270de06a8ba317bfe926333cfcd3b92606480830193919282900301818387803b15801561119357600080fd5b505af11580156111a7573d6000803e3d6000fd5b505060408051635d5155ef60e11b815273c2132d05d31c914a87c6611c10748aeb04b58e8f6004820152732791bca1f2de4661ed88a30c99a7a9449aa84174602482015260448101859052600060648201819052608482018190523060a48301524260c48301528251733a1d87f206d12415f5b0a33e786967680aab4f6d955063baa2abde945060e480840194939192918390030190829087803b15801561124e57600080fd5b505af1158015611262573d6000803e3d6000fd5b505050506040513d604081101561127857600080fd5b5050604080516370a0823160e01b815230600482015290516000917397efe8470727fee250d7158e6f8f63bb4327c8a2916370a0823191602480820192602092909190829003018186803b1580156112cf57600080fd5b505afa1580156112e3573d6000803e3d6000fd5b505050506040513d60208110156112f957600080fd5b50519050611305612840565b507397efe8470727fee250d7158e6f8f63bb4327c8a26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561136057600080fd5b505af1158015611374573d6000803e3d6000fd5b505060408051635d5155ef60e11b8152738f3cf7ad23cd3cadbd9735aff958023239c6a063600482015273c2132d05d31c914a87c6611c10748aeb04b58e8f602482015260448101859052600060648201819052608482018190523060a48301524260c4830152825173a5e0829caced8ffdd4de3c43696c57f7d7a678ff955063baa2abde945060e480840194939192918390030190829087803b15801561141b57600080fd5b505af115801561142f573d6000803e3d6000fd5b505050506040513d604081101561144557600080fd5b5050604080516370a0823160e01b815230600482015290516000917319793b454d3afc7b454f206ffe95ade26ca6912c916370a0823191602480820192602092909190829003018186803b15801561149c57600080fd5b505afa1580156114b0573d6000803e3d6000fd5b505050506040513d60208110156114c657600080fd5b505190506114d2612971565b50507319793b454d3afc7b454f206ffe95ade26ca6912c6001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561152e57600080fd5b505af1158015611542573d6000803e3d6000fd5b5050505061154e61408f565b6000818160200201526000816001602002015260008160026020020152604051637e73239b60e11b81526004810183815273445fe580ef8d70ff569ab36e80c647af338db3519163fce64736918591859160019160240183606080838360005b838110156115c65781810151838201526020016115ae565b5050505090500182151581526020019350505050606060405180830381600087803b1580156115f457600080fd5b505af1158015611608573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250606081101561162d57600080fd5b50506001600160a01b038516738f3cf7ad23cd3cadbd9735aff958023239c6a063146117b757600860209081527f63ab5a5f62ca79ee225a64f0d247db4fd82ef7b7c0f602a2a6722cd00a071a74546001600160a01b03871660009081526040908190205481516370a0823160e01b8152306004820152915173445fe580ef8d70ff569ab36e80c647af338db3519463a6417ed694600f90810b9493900b92738f3cf7ad23cd3cadbd9735aff958023239c6a063926370a0823192602480840193919291829003018186803b15801561170557600080fd5b505afa158015611719573d6000803e3d6000fd5b505050506040513d602081101561172f57600080fd5b5051604080516001600160e01b031960e087901b168152600f94850b60048201529290930b60248301526044820152600060648201819052915160848083019360209383900390910190829087803b15801561178a57600080fd5b505af115801561179e573d6000803e3d6000fd5b505050506040513d60208110156117b457600080fd5b50505b6001600160a01b038516732791bca1f2de4661ed88a30c99a7a9449aa841741461193f57600860209081527ffe454cb04cfdd5dfbb61c2b7e8b7e90f32495782ec6892f5d0a22c4f9fb8482f546001600160a01b03871660009081526040908190205481516370a0823160e01b8152306004820152915173445fe580ef8d70ff569ab36e80c647af338db3519463a6417ed694600f90810b9493900b92732791bca1f2de4661ed88a30c99a7a9449aa84174926370a0823192602480840193919291829003018186803b15801561188d57600080fd5b505afa1580156118a1573d6000803e3d6000fd5b505050506040513d60208110156118b757600080fd5b5051604080516001600160e01b031960e087901b168152600f94850b60048201529290930b60248301526044820152600060648201819052915160848083019360209383900390910190829087803b15801561191257600080fd5b505af1158015611926573d6000803e3d6000fd5b505050506040513d602081101561193c57600080fd5b50505b6001600160a01b03851673c2132d05d31c914a87c6611c10748aeb04b58e8f14611ac757600860209081527f6f59005106ec5b8f86bf4adc23624d4d68ea4fa04d8631d2e770531bfd3bc0a6546001600160a01b03871660009081526040908190205481516370a0823160e01b8152306004820152915173445fe580ef8d70ff569ab36e80c647af338db3519463a6417ed694600f90810b9493900b9273c2132d05d31c914a87c6611c10748aeb04b58e8f926370a0823192602480840193919291829003018186803b158015611a1557600080fd5b505afa158015611a29573d6000803e3d6000fd5b505050506040513d6020811015611a3f57600080fd5b5051604080516001600160e01b031960e087901b168152600f94850b60048201529290930b60248301526044820152600060648201819052915160848083019360209383900390910190829087803b158015611a9a57600080fd5b505af1158015611aae573d6000803e3d6000fd5b505050506040513d6020811015611ac457600080fd5b50505b6000600655600154604080516370a0823160e01b81523060048201529051611b5c926001600160a01b0390811692908916916370a0823191602480820192602092909190829003018186803b158015611b1f57600080fd5b505afa158015611b33573d6000803e3d6000fd5b505050506040513d6020811015611b4957600080fd5b50516001600160a01b0388169190612463565b5050505050565b73c2132d05d31c914a87c6611c10748aeb04b58e8f81565b6003546001600160a01b031681565b6001546001600160a01b03163314611bd6576040805162461bcd60e51b815260206004820152600a60248201526913db9b1e4815985d5b1d60b21b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b738f3cf7ad23cd3cadbd9735aff958023239c6a06381565b73a5e0829caced8ffdd4de3c43696c57f7d7a678ff81565b73445fe580ef8d70ff569ab36e80c647af338db35181565b611c48613252565b6001600160a01b0316611c59610f80565b6001600160a01b031614611cb4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116611cf95760405162461bcd60e51b81526004018080602001828103825260268152602001806140ae6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b600080600073c8bd86e5a132ac0bf10134e270de06a8ba317bfe6001600160a01b03166393f1a40b600754306040518363ffffffff1660e01b815260040180838152602001826001600160a01b031681526020019250505060606040518083038186803b158015611dd357600080fd5b505afa158015611de7573d6000803e3d6000fd5b505050506040513d6060811015611dfd57600080fd5b505190506000611e18611e0e61102e565b610af284886123ad565b600754604080516333cfcd3b60e01b8152600481019290925260248201839052600060448301819052905192935073c8bd86e5a132ac0bf10134e270de06a8ba317bfe926333cfcd3b92606480820193929182900301818387803b158015611e7f57600080fd5b505af1158015611e93573d6000803e3d6000fd5b505060408051635d5155ef60e11b815273c2132d05d31c914a87c6611c10748aeb04b58e8f6004820152732791bca1f2de4661ed88a30c99a7a9449aa84174602482015260448101859052600060648201819052608482018190523060a48301524260c48301528251733a1d87f206d12415f5b0a33e786967680aab4f6d955063baa2abde945060e480840194939192918390030190829087803b158015611f3a57600080fd5b505af1158015611f4e573d6000803e3d6000fd5b505050506040513d6040811015611f6457600080fd5b50805160209091015190969095509350505050565b60008060007397efe8470727fee250d7158e6f8f63bb4327c8a26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611fdf57600080fd5b505afa158015611ff3573d6000803e3d6000fd5b505050506040513d602081101561200957600080fd5b50519050600061201a611e0e61102e565b90507397efe8470727fee250d7158e6f8f63bb4327c8a26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561207657600080fd5b505af115801561208a573d6000803e3d6000fd5b505060408051635d5155ef60e11b8152738f3cf7ad23cd3cadbd9735aff958023239c6a063600482015273c2132d05d31c914a87c6611c10748aeb04b58e8f602482015260448101859052600060648201819052608482018190523060a48301524260c4830152825173a5e0829caced8ffdd4de3c43696c57f7d7a678ff955063baa2abde945060e480840194939192918390030190829087803b158015611f3a57600080fd5b6000806000807319793b454d3afc7b454f206ffe95ade26ca6912c6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561219857600080fd5b505afa1580156121ac573d6000803e3d6000fd5b505050506040513d60208110156121c257600080fd5b5051905060006121dd6121d361102e565b610af284896123ad565b90507319793b454d3afc7b454f206ffe95ade26ca6912c6001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561223957600080fd5b505af115801561224d573d6000803e3d6000fd5b5050505061225961408f565b600080825260208201819052604080830182905251637e73239b60e11b81526004810184815273445fe580ef8d70ff569ab36e80c647af338db3519163fce6473691869186916001916024018360608083838c5b838110156122c55781810151838201526020016122ad565b5050505090500182151581526020019350505050606060405180830381600087803b1580156122f357600080fd5b505af1158015612307573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250606081101561232c57600080fd5b5080516020820151604090920151909a919950975095505050505050565b6000828201838110156123a4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6000826123bc575060006123a7565b828202828482816123c957fe5b04146123a45760405162461bcd60e51b81526004018080602001828103825260218152602001806140fa6021913960400191505060405180910390fd5b60008282111561245d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526124e3908490613256565b505050565b600754604080517f7e0246cf00000000000000000000000000000000000000000000000000000000815260048101929092523060248301525160009173c8bd86e5a132ac0bf10134e270de06a8ba317bfe91637e0246cf91604480820192602092909190829003018186803b15801561256057600080fd5b505afa158015612574573d6000803e3d6000fd5b505050506040513d602081101561258a57600080fd5b505190508015610f8d5773c8bd86e5a132ac0bf10134e270de06a8ba317bfe6001600160a01b031663379607f56007546040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156125f057600080fd5b505af1158015612604573d6000803e3d6000fd5b50506040805160028082526060820183526000945090925090602083019080368337019050509050734c4bf319237d98a30a929a96112effa8da3510eb8160008151811061264e57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050738f3cf7ad23cd3cadbd9735aff958023239c6a0638160018151811061269057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073a5e0829caced8ffdd4de3c43696c57f7d7a678ff6001600160a01b03166338ed17398360008430426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015612749578181015183820152602001612731565b505050509050019650505050505050600060405180830381600087803b15801561277257600080fd5b505af1158015612786573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156127af57600080fd5b81019080805160405193929190846401000000008211156127cf57600080fd5b9083019060208201858111156127e457600080fd5b825186602082028301116401000000008211171561280157600080fd5b82525081516020918201928201910280838360005b8381101561282e578181015183820152602001612816565b50505050905001604052505050505090565b60007397efe8470727fee250d7158e6f8f63bb4327c8a26001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561289157600080fd5b505af11580156128a5573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905173831753dd7087cac61ab5644b308642cc1c33dc1393506370a0823192506024808301926020929190829003018186803b1580156128fa57600080fd5b505afa15801561290e573d6000803e3d6000fd5b505050506040513d602081101561292457600080fd5b505190508015610f8d5760408051600280825260608201835260009260208301908036833701905050905073831753dd7087cac61ab5644b308642cc1c33dc138160008151811061264e57fe5b6000807319793b454d3afc7b454f206ffe95ade26ca6912c6001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156129c357600080fd5b505af11580156129d7573d6000803e3d6000fd5b50506040805160028082526060820183526000945090925090602083019080368337019050509050738f3cf7ad23cd3cadbd9735aff958023239c6a06381600181518110612a2157fe5b6001600160a01b03909216602092830291909101820152604080516370a0823160e01b81523060048201529051730d500b1d8e8ef31e21c99d1db9a6444d3adf1270926370a082319260248082019391829003018186803b158015612a8557600080fd5b505afa158015612a99573d6000803e3d6000fd5b505050506040513d6020811015612aaf57600080fd5b505192508215612cf657730d500b1d8e8ef31e21c99d1db9a6444d3adf127081600081518110612adb57fe5b6001600160a01b03909216602092830291909101820152604080516370a0823160e01b8152306004820152905173a5e0829caced8ffdd4de3c43696c57f7d7a678ff926338ed173992730d500b1d8e8ef31e21c99d1db9a6444d3adf1270926370a0823192602480840193919291829003018186803b158015612b5d57600080fd5b505afa158015612b71573d6000803e3d6000fd5b505050506040513d6020811015612b8757600080fd5b50516040516001600160e01b031960e084901b168152600481018281526000602483018190523060648401819052426084850181905260a060448601908152895160a4870152895193958a95939492939260c490910190602087810191028083838b5b83811015612c02578181015183820152602001612bea565b505050509050019650505050505050600060405180830381600087803b158015612c2b57600080fd5b505af1158015612c3f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612c6857600080fd5b8101908080516040519392919084640100000000821115612c8857600080fd5b908301906020820185811115612c9d57600080fd5b8251866020820283011164010000000082111715612cba57600080fd5b82525081516020918201928201910280838360005b83811015612ce7578181015183820152602001612ccf565b50505050905001604052505050505b604080516370a0823160e01b8152306004820152905173172370d5cd63279efa6d502dab29171933a610af916370a08231916024808301926020929190829003018186803b158015612d4757600080fd5b505afa158015612d5b573d6000803e3d6000fd5b505050506040513d6020811015612d7157600080fd5b505191508115612fb85773172370d5cd63279efa6d502dab29171933a610af81600081518110612d9d57fe5b6001600160a01b03909216602092830291909101820152604080516370a0823160e01b8152306004820152905173a5e0829caced8ffdd4de3c43696c57f7d7a678ff926338ed17399273172370d5cd63279efa6d502dab29171933a610af926370a0823192602480840193919291829003018186803b158015612e1f57600080fd5b505afa158015612e33573d6000803e3d6000fd5b505050506040513d6020811015612e4957600080fd5b50516040516001600160e01b031960e084901b168152600481018281526000602483018190523060648401819052426084850181905260a060448601908152895160a4870152895193958a95939492939260c490910190602087810191028083838b5b83811015612ec4578181015183820152602001612eac565b505050509050019650505050505050600060405180830381600087803b158015612eed57600080fd5b505af1158015612f01573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612f2a57600080fd5b8101908080516040519392919084640100000000821115612f4a57600080fd5b908301906020820185811115612f5f57600080fd5b8251866020820283011164010000000082111715612f7c57600080fd5b82525081516020918201928201910280838360005b83811015612fa9578181015183820152602001612f91565b50505050905001604052505050505b509091565b6000808211613013576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161301c57fe5b049392505050565b61302e8282613307565b60006130c86002738f3cf7ad23cd3cadbd9735aff958023239c6a0636001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561309657600080fd5b505afa1580156130aa573d6000803e3d6000fd5b505050506040513d60208110156130c057600080fd5b505190612fbd565b905060006131326002732791bca1f2de4661ed88a30c99a7a9449aa841746001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561309657600080fd5b9050600061319c600373c2132d05d31c914a87c6611c10748aeb04b58e8f6001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561309657600080fd5b90506131a88183613758565b506131b3838261391b565b506131bc613ab3565b505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261324c908590613256565b50505050565b3390565b60006132ab826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613e719092919063ffffffff16565b8051909150156124e3578080602001905160208110156132ca57600080fd5b50516124e35760405162461bcd60e51b815260040180806020018281038252602a81526020018061411b602a913960400191505060405180910390fd5b6001600160a01b03811673c2132d05d31c914a87c6611c10748aeb04b58e8f1415613527576000613340612710610af285610ad96123ad565b6001600160a01b038316600090815260086020908152604080832054738f3cf7ad23cd3cadbd9735aff958023239c6a06384527f63ab5a5f62ca79ee225a64f0d247db4fd82ef7b7c0f602a2a6722cd00a071a74548251635320bf6b60e11b8152600f92830b830b600482015290820b90910b60248201526044810185905260648101849052905193945073445fe580ef8d70ff569ab36e80c647af338db3519363a6417ed693608480840194938390030190829087803b15801561340457600080fd5b505af1158015613418573d6000803e3d6000fd5b505050506040513d602081101561342e57600080fd5b50506001600160a01b038216600090815260086020908152604080832054732791bca1f2de4661ed88a30c99a7a9449aa8417484527ffe454cb04cfdd5dfbb61c2b7e8b7e90f32495782ec6892f5d0a22c4f9fb8482f548251635320bf6b60e11b8152600f92830b830b600482015290820b90910b60248201526044810185905260648101849052905173445fe580ef8d70ff569ab36e80c647af338db3519363a6417ed693608480850194919392918390030190829087803b1580156134f457600080fd5b505af1158015613508573d6000803e3d6000fd5b505050506040513d602081101561351e57600080fd5b50610e20915050565b600061353b612710610af28561115c6123ad565b905060006001600160a01b038316738f3cf7ad23cd3cadbd9735aff958023239c6a0631461357d57738f3cf7ad23cd3cadbd9735aff958023239c6a063613593565b732791bca1f2de4661ed88a30c99a7a9449aa841745b6001600160a01b03841660009081526008602090815260408083205473c2132d05d31c914a87c6611c10748aeb04b58e8f84527f6f59005106ec5b8f86bf4adc23624d4d68ea4fa04d8631d2e770531bfd3bc0a6548251635320bf6b60e11b8152600f92830b830b600482015290820b90910b60248201526044810187905260648101849052905193945073445fe580ef8d70ff569ab36e80c647af338db3519363a6417ed693608480840194938390030190829087803b15801561365757600080fd5b505af115801561366b573d6000803e3d6000fd5b505050506040513d602081101561368157600080fd5b50506001600160a01b0383811660009081526008602052604080822054928416825290205473445fe580ef8d70ff569ab36e80c647af338db3519163a6417ed691600f91820b910b6136db612710610af28a610ad96123ad565b60006040518563ffffffff1660e01b81526004018085600f0b815260200184600f0b8152602001838152602001828152602001945050505050602060405180830381600087803b15801561372e57600080fd5b505af1158015613742573d6000803e3d6000fd5b505050506040513d60208110156131bc57600080fd5b6040805162e8e33760e81b8152732791bca1f2de4661ed88a30c99a7a9449aa84174600482015273c2132d05d31c914a87c6611c10748aeb04b58e8f6024820152604481018390526064810184905260006084820181905260a482018190523060c48301524260e4830152915182918291733a1d87f206d12415f5b0a33e786967680aab4f6d9163e8e337009161010480830192606092919082900301818787803b15801561380657600080fd5b505af115801561381a573d6000803e3d6000fd5b505050506040513d606081101561383057600080fd5b508051602082015160409283015160075484517f43a0d066000000000000000000000000000000000000000000000000000000008152600481019190915260248101829052600060448201819052945191975092955090935073c8bd86e5a132ac0bf10134e270de06a8ba317bfe926343a0d066926064808201939182900301818387803b1580156138c157600080fd5b505af11580156138d5573d6000803e3d6000fd5b5050505061390f6138f464e8d4a51000836123ad90919063ffffffff16565b6105296139068564e8d4a510006123ad565b6006549061234a565b60065550909392505050565b6040805162e8e33760e81b8152738f3cf7ad23cd3cadbd9735aff958023239c6a063600482015273c2132d05d31c914a87c6611c10748aeb04b58e8f6024820152604481018490526064810183905260006084820181905260a482018190523060c48301524260e483015291518291829173a5e0829caced8ffdd4de3c43696c57f7d7a678ff9163e8e337009161010480830192606092919082900301818787803b1580156139c957600080fd5b505af11580156139dd573d6000803e3d6000fd5b505050506040513d60608110156139f357600080fd5b508051602082015160409283015183517fa694fc3a00000000000000000000000000000000000000000000000000000000815260048101829052935190965091945092507397efe8470727fee250d7158e6f8f63bb4327c8a29163a694fc3a91602480830192600092919082900301818387803b158015613a7357600080fd5b505af1158015613a87573d6000803e3d6000fd5b5050505061390f613aa664e8d4a51000836123ad90919063ffffffff16565b600654610529908561234a565b604080516370a0823160e01b815230600482015290516000918291738f3cf7ad23cd3cadbd9735aff958023239c6a063916370a08231916024808301926020929190829003018186803b158015613b0957600080fd5b505afa158015613b1d573d6000803e3d6000fd5b505050506040513d6020811015613b3357600080fd5b5051604080516370a0823160e01b81523060048201529051919250600091732791bca1f2de4661ed88a30c99a7a9449aa84174916370a08231916024808301926020929190829003018186803b158015613b8c57600080fd5b505afa158015613ba0573d6000803e3d6000fd5b505050506040513d6020811015613bb657600080fd5b5051604080516370a0823160e01b8152306004820152905191925060009173c2132d05d31c914a87c6611c10748aeb04b58e8f916370a08231916024808301926020929190829003018186803b158015613c0f57600080fd5b505afa158015613c23573d6000803e3d6000fd5b505050506040513d6020811015613c3957600080fd5b505160408051606080820183528682526020820186905281830184905291517f2b6e993a00000000000000000000000000000000000000000000000000000000815292935073445fe580ef8d70ff569ab36e80c647af338db35192632b6e993a9260009160019160049091019081908590808383885b83811015613cc7578181015183820152602001613caf565b5050505090500183815260200182151581526020019350505050602060405180830381600087803b158015613cfb57600080fd5b505af1158015613d0f573d6000803e3d6000fd5b505050506040513d6020811015613d2557600080fd5b5050604080516370a0823160e01b8152306004820152905173e7a24ef0c5e95ffb0f6684b813a78f2a3ad7d171916370a08231916024808301926020929190829003018186803b158015613d7857600080fd5b505afa158015613d8c573d6000803e3d6000fd5b505050506040513d6020811015613da257600080fd5b5051604080517fb6b55f250000000000000000000000000000000000000000000000000000000081526004810183905290519195507319793b454d3afc7b454f206ffe95ade26ca6912c9163b6b55f259160248082019260009290919082900301818387803b158015613e1457600080fd5b505af1158015613e28573d6000803e3d6000fd5b50505050613e66613e4764e8d4a51000836123ad90919063ffffffff16565b610529613e598564e8d4a510006123ad565b600654610529908861234a565b600655509192915050565b6060613e808484600085613e8a565b90505b9392505050565b606082471015613ecb5760405162461bcd60e51b81526004018080602001828103825260268152602001806140d46026913960400191505060405180910390fd5b613ed485613fe5565b613f25576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310613f635780518252601f199092019160209182019101613f44565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fc5576040519150601f19603f3d011682016040523d82523d6000602084013e613fca565b606091505b5091509150613fda828286613feb565b979650505050505050565b3b151590565b60608315613ffa575081613e83565b82511561400a5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561405457818101518382015260200161403c565b50505050905090810190601f1680156140815780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060600160405280600390602082028036833750919291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220abc3ebdd9ddcf82a6c2791ae41647251b65c4c3d4bf410ea1aa57994a254b3c064736f6c63430007060033000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff000000000000000000000000adacd247b4b3d873d8b2e664564a52f70907629c00000000000000000000000072520bd6393d6c3bf07a0159c947b98f2b1bd0b0000000000000000000000000897123d92fa17aa911a86f34051a7dc6937f6dbe

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

000000000000000000000000adacd247b4b3d873d8b2e664564a52f70907629c00000000000000000000000072520bd6393d6c3bf07a0159c947b98f2b1bd0b0000000000000000000000000897123d92fa17aa911a86f34051a7dc6937f6dbe

-----Decoded View---------------
Arg [0] : _treasury (address): 0xadacd247b4b3d873d8b2e664564a52f70907629c
Arg [1] : _communityWallet (address): 0x72520bd6393d6c3bf07a0159c947b98f2b1bd0b0
Arg [2] : _strategist (address): 0x897123d92fa17aa911a86f34051a7dc6937f6dbe

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000adacd247b4b3d873d8b2e664564a52f70907629c
Arg [1] : 00000000000000000000000072520bd6393d6c3bf07a0159c947b98f2b1bd0b0
Arg [2] : 000000000000000000000000897123d92fa17aa911a86f34051a7dc6937f6dbe


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.