ETH Price: $3,404.43 (+2.66%)

Contract

0x068FAB2D9E8C1e27b8c7dd39AFBb9b60B23e5672
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Token Transfers found.

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
IdleStrategyUSDCMainnet

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : IdleStrategyUSDCMainnet.sol
pragma solidity 0.5.16;
import "./IdleFinanceStrategy.sol";

/**
 * Adds the mainnet addresses to the PickleStrategy3Pool
 */
contract IdleStrategyUSDCMainnet is IdleFinanceStrategy {
    // token addresses
    address public constant __weth =
        address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    address public constant __usdc =
        address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
    address public constant __uniswap =
        address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    address public constant __idleUnderlying =
        address(0x5274891bEC421B39D23760c04A6755eCB444797C);
    address public constant __comp =
        address(0xc00e94Cb662C3520282E6f5717214004A7f26888);
    address public constant __idle =
        address(0x875773784Af8135eA0ef43b5a374AaD105c5D39e);

    constructor(address _storage, address _vault)
        public
        IdleFinanceStrategy(
            _storage,
            __usdc,
            __idleUnderlying,
            _vault,
            __comp,
            __idle,
            __weth,
            __uniswap
        )
    {}
}

File 2 of 19 : Controllable.sol
pragma solidity 0.5.16;

import "./Governable.sol";

contract Controllable is Governable {
    constructor(address _storage) public Governable(_storage) {}

    modifier onlyController() {
        require(store.isController(msg.sender), "Not a controller");
        _;
    }

    modifier onlyControllerOrGovernance() {
        require(
            (store.isController(msg.sender) || store.isGovernance(msg.sender)),
            "The caller must be controller or governance"
        );
        _;
    }

    function controller() public view returns (address) {
        return store.controller();
    }
}

File 3 of 19 : Governable.sol
pragma solidity 0.5.16;

import "./Storage.sol";

contract Governable {
    Storage public store;

    constructor(address _store) public {
        require(_store != address(0), "new storage shouldn't be empty");
        store = Storage(_store);
    }

    modifier onlyGovernance() {
        require(store.isGovernance(msg.sender), "Not governance");
        _;
    }

    function setStorage(address _store) public onlyGovernance {
        require(_store != address(0), "new storage shouldn't be empty");
        store = Storage(_store);
    }

    function governance() public view returns (address) {
        return store.governance();
    }
}

File 4 of 19 : Storage.sol
pragma solidity 0.5.16;

contract Storage {
    address public governance;
    address public controller;

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

    modifier onlyGovernance() {
        require(isGovernance(msg.sender), "Not governance");
        _;
    }

    function setGovernance(address _governance) public onlyGovernance {
        require(_governance != address(0), "new governance shouldn't be empty");
        governance = _governance;
    }

    function setController(address _controller) public onlyGovernance {
        require(_controller != address(0), "new controller shouldn't be empty");
        controller = _controller;
    }

    function isGovernance(address account) public view returns (bool) {
        return account == governance;
    }

    function isController(address account) public view returns (bool) {
        return account == controller;
    }
}

File 5 of 19 : IController.sol
pragma solidity 0.5.16;

interface IController {
    function whiteList(address _target) external view returns (bool);

    function addVaultAndStrategy(address _vault, address _strategy) external;

    function forceUnleashed(address _vault) external;

    function hasVault(address _vault) external returns (bool);

    function salvage(address _token, uint256 amount) external;

    function salvageStrategy(
        address _strategy,
        address _token,
        uint256 amount
    ) external;

    function notifyFee(address _underlying, uint256 fee) external;

    function profitSharingNumerator() external view returns (uint256);

    function profitSharingDenominator() external view returns (uint256);

    function treasury() external view returns (address);
}

File 6 of 19 : IStrategy.sol
pragma solidity 0.5.16;

interface IStrategy {
    function unsalvagableTokens(address tokens) external view returns (bool);

    function governance() external view returns (address);

    function controller() external view returns (address);

    function underlying() external view returns (address);

    function vault() external view returns (address);

    function withdrawAllToVault() external;

    function withdrawToVault(uint256 amount) external;

    function investedUnderlyingBalance() external view returns (uint256); // itsNotMuch()

    // should only be called by controller
    function salvage(
        address recipient,
        address token,
        uint256 amount
    ) external;

    function forceUnleashed() external;

    function depositArbCheck() external view returns (bool);
}

File 7 of 19 : IVault.sol
pragma solidity 0.5.16;

interface IVault {
    function underlyingBalanceInVault() external view returns (uint256);

    function underlyingBalanceWithInvestment() external view returns (uint256);

    function governance() external view returns (address);

    function controller() external view returns (address);

    function underlying() external view returns (address);

    function strategy() external view returns (address);

    function setStrategy(address _strategy) external;

    function setVaultFractionToInvest(uint256 numerator, uint256 denominator)
        external;

    function deposit(uint256 amountWei) external;

    function depositFor(uint256 amountWei, address holder) external;

    function withdrawAll() external;

    function withdraw(uint256 numberOfShares) external;

    function getPricePerFullShare() external view returns (uint256);

    function underlyingBalanceWithInvestmentForHolder(address holder)
        external
        view
        returns (uint256);

    // force unleash should be callable only by the controller (by the force unleasher) or by governance
    function forceUnleashed() external;

    function rebalance() external;
}

File 8 of 19 : RewardTokenProfitNotifier.sol
pragma solidity 0.5.16;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../interfaces/IController.sol";
import "../Controllable.sol";

contract RewardTokenProfitNotifier is Controllable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 public profitSharingNumerator;
    uint256 public profitSharingDenominator;
    address public rewardToken;

    constructor(address _storage, address _rewardToken)
        public
        Controllable(_storage)
    {
        rewardToken = _rewardToken;
        profitSharingNumerator = 0;
        profitSharingDenominator = 100;
        require(
            profitSharingNumerator < profitSharingDenominator,
            "invalid profit share"
        );
    }

    event ProfitLogInReward(
        uint256 profitAmount,
        uint256 feeAmount,
        uint256 timestamp
    );

    function notifyProfitInRewardToken(uint256 _rewardBalance) internal {
        if (_rewardBalance > 0 && profitSharingNumerator > 0) {
            uint256 feeAmount =
                _rewardBalance.mul(profitSharingNumerator).div(
                    profitSharingDenominator
                );
            emit ProfitLogInReward(_rewardBalance, feeAmount, block.timestamp);
            IERC20(rewardToken).safeApprove(controller(), 0);
            IERC20(rewardToken).safeApprove(controller(), feeAmount);

            IController(controller()).notifyFee(rewardToken, feeAmount);
        } else {
            emit ProfitLogInReward(0, 0, block.timestamp);
        }
    }

    function setProfitSharingNumerator(uint256 _profitSharingNumerator)
        external
        onlyGovernance
    {
        profitSharingNumerator = _profitSharingNumerator;
    }
}

File 9 of 19 : IIdleTokenHelper.sol
pragma solidity 0.5.16;

contract IIdleTokenHelper {
    function getMintingPrice(address idleYieldToken)
        external
        view
        returns (uint256 mintingPrice);

    function getRedeemPrice(address idleYieldToken)
        external
        view
        returns (uint256 redeemPrice);

    function getRedeemPrice(address idleYieldToken, address user)
        external
        view
        returns (uint256 redeemPrice);
}

File 10 of 19 : IdleFinanceStrategy.sol
pragma solidity 0.5.16;

import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../../Controllable.sol";
import "../../interfaces/IStrategy.sol";
import "../../uniswap/interfaces/IUniswapV2Router02.sol";
import "./IdleToken.sol";
import "./IIdleTokenHelper.sol";
import "../RewardTokenProfitNotifier.sol";
import "../../interfaces/IVault.sol";

contract IdleFinanceStrategy is IStrategy, RewardTokenProfitNotifier {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event ProfitsNotCollected(address);
    event Liquidating(address, uint256);

    IERC20 public underlying;
    address public idleUnderlying;
    uint256 public virtualPrice;
    IIdleTokenHelper public idleTokenHelper;

    address public vault;
    address public comp;
    address public idle;

    address[] public uniswapComp;
    address[] public uniswapIdle;

    address public uniswapRouterV2;

    bool public sellComp;
    bool public sellIdle;
    bool public claimAllowed;
    bool public protected;

    // These tokens cannot be claimed by the controller
    mapping(address => bool) public unsalvagableTokens;

    modifier restricted() {
        require(
            msg.sender == vault ||
                msg.sender == address(controller()) ||
                msg.sender == address(governance()),
            "The sender has to be the controller or vault or governance"
        );
        _;
    }

    modifier updateVirtualPrice() {
        if (protected) {
            require(
                virtualPrice <= idleTokenHelper.getRedeemPrice(idleUnderlying),
                "virtual price is higher than needed"
            );
        }
        _;
        virtualPrice = idleTokenHelper.getRedeemPrice(idleUnderlying);
    }

    constructor(
        address _storage,
        address _underlying,
        address _idleUnderlying,
        address _vault,
        address _comp,
        address _idle,
        address _weth,
        address _uniswap
    ) public RewardTokenProfitNotifier(_storage, _idle) {
        comp = _comp;
        idle = _idle;
        underlying = IERC20(_underlying);
        idleUnderlying = _idleUnderlying;
        vault = _vault;
        uniswapRouterV2 = _uniswap;
        protected = true;

        // set these tokens to be not salvagable
        unsalvagableTokens[_underlying] = true;
        unsalvagableTokens[_idleUnderlying] = true;
        unsalvagableTokens[_comp] = true;
        unsalvagableTokens[_idle] = true;

        uniswapComp = [_comp, _weth, _idle];
        uniswapIdle = [_idle, _weth, _underlying];

        idleTokenHelper = IIdleTokenHelper(
            0x04Ce60ed10F6D2CfF3AA015fc7b950D13c113be5
        );
        virtualPrice = idleTokenHelper.getRedeemPrice(idleUnderlying);
    }

    function depositArbCheck() public view returns (bool) {
        return true;
    }

    /**
     * The strategy invests by supplying the underlying token into IDLE.
     */
    function investAllUnderlying() public restricted updateVirtualPrice {
        uint256 balance = underlying.balanceOf(address(this));
        underlying.safeApprove(address(idleUnderlying), 0);
        underlying.safeApprove(address(idleUnderlying), balance);
        IIdleTokenV3_1(idleUnderlying).mintIdleToken(balance, true, address(0));
    }

    /**
     * Exits IDLE and transfers everything to the vault.
     */
    function withdrawAllToVault() external restricted updateVirtualPrice {
        withdrawAll();
        IERC20(address(underlying)).safeTransfer(
            vault,
            underlying.balanceOf(address(this))
        );
    }

    /**
     * Withdraws all from IDLE
     */
    function withdrawAll() internal {
        uint256 balance = IERC20(idleUnderlying).balanceOf(address(this));

        // this automatically claims the crops
        IIdleTokenV3_1(idleUnderlying).redeemIdleToken(balance);

        liquidateComp();
        liquidateIdle();
    }

    function withdrawToVault(uint256 amountUnderlying) public restricted {
        // this method is called when the vault is missing funds
        // we will calculate the proportion of idle LP tokens that matches
        // the underlying amount requested
        uint256 balanceBefore = underlying.balanceOf(address(this));
        uint256 totalIdleLpTokens =
            IERC20(idleUnderlying).balanceOf(address(this));
        uint256 totalUnderlyingBalance =
            totalIdleLpTokens.mul(virtualPrice).div(1e18);
        uint256 ratio = amountUnderlying.mul(1e18).div(totalUnderlyingBalance);
        uint256 toRedeem = totalIdleLpTokens.mul(ratio).div(1e18);
        IIdleTokenV3_1(idleUnderlying).redeemIdleToken(toRedeem);
        uint256 balanceAfter = underlying.balanceOf(address(this));
        underlying.safeTransfer(vault, balanceAfter.sub(balanceBefore));
    }

    /**
     * Withdraws all assets, liquidates COMP, and invests again in the required ratio.
     */
    function forceUnleashed() public restricted updateVirtualPrice {
        if (claimAllowed) {
            claim();
        }
        liquidateComp();
        liquidateIdle();

        // this updates the virtual price
        investAllUnderlying();

        // state of supply/loan will be updated by the modifier
    }

    /**
     * Salvages a token.
     */
    function salvage(
        address recipient,
        address token,
        uint256 amount
    ) public onlyGovernance {
        // To make sure that governance cannot come in and take away the coins
        require(
            !unsalvagableTokens[token],
            "token is defined as not salvagable"
        );
        IERC20(token).safeTransfer(recipient, amount);
    }

    function claim() internal {
        IIdleTokenV3_1(idleUnderlying).redeemIdleToken(0);
    }

    function liquidateComp() internal {
        if (!sellComp) {
            // Profits can be disabled for possible simplified and rapid exit
            emit ProfitsNotCollected(comp);
            return;
        }

        // no profit notification, comp is liquidated to IDLE and will be notified there

        uint256 compBalance = IERC20(comp).balanceOf(address(this));
        if (compBalance > 0) {
            emit Liquidating(address(comp), compBalance);
            IERC20(comp).safeApprove(uniswapRouterV2, 0);
            IERC20(comp).safeApprove(uniswapRouterV2, compBalance);
            // we can accept 1 as the minimum because this will be called only by a trusted worker
            IUniswapV2Router02(uniswapRouterV2).swapExactTokensForTokens(
                compBalance,
                1,
                uniswapComp,
                address(this),
                block.timestamp
            );
        }
    }

    function liquidateIdle() internal {
        if (!sellIdle) {
            // Profits can be disabled for possible simplified and rapid exit
            emit ProfitsNotCollected(idle);
            return;
        }

        uint256 rewardBalance = IERC20(idle).balanceOf(address(this));
        notifyProfitInRewardToken(rewardBalance);

        uint256 idleBalance = IERC20(idle).balanceOf(address(this));
        if (idleBalance > 0) {
            emit Liquidating(address(idle), idleBalance);
            IERC20(idle).safeApprove(uniswapRouterV2, 0);
            IERC20(idle).safeApprove(uniswapRouterV2, idleBalance);
            // we can accept 1 as the minimum because this will be called only by a trusted worker
            IUniswapV2Router02(uniswapRouterV2).swapExactTokensForTokens(
                idleBalance,
                1,
                uniswapIdle,
                address(this),
                block.timestamp
            );
        }
    }

    /**
     * Returns the current balance. Ignores COMP that was not liquidated and invested.
     */
    function investedUnderlyingBalance() public view returns (uint256) {
        // NOTE: The use of virtual price is okay for appreciating assets inside IDLE,
        // but would be wrong and exploitable if funds were lost by IDLE, indicated by
        // the virtualPrice being greater than the token price.
        if (protected) {
            require(
                virtualPrice <= idleTokenHelper.getRedeemPrice(idleUnderlying),
                "virtual price is higher than needed"
            );
        }
        uint256 invested =
            IERC20(idleUnderlying)
                .balanceOf(address(this))
                .mul(virtualPrice)
                .div(1e18);
        return invested.add(IERC20(underlying).balanceOf(address(this)));
    }

    function setLiquidation(
        bool _sellComp,
        bool _sellIdle,
        bool _claimAllowed
    ) public onlyGovernance {
        sellComp = _sellComp;
        sellIdle = _sellIdle;
        claimAllowed = _claimAllowed;
    }

    function setProtected(bool _protected) public onlyGovernance {
        protected = _protected;
    }
}

File 11 of 19 : IdleToken.sol
/**
 * @title: Idle Token interface
 * @author: Idle Labs Inc., idle.finance
 */
pragma solidity 0.5.16;

interface IIdleTokenV3_1 {
    // view
    /**
     * IdleToken price calculation, in underlying
     *
     * @return : price in underlying token
     */
    function tokenPrice() external view returns (uint256 price);

    /**
     * @return : underlying token address
     */
    function token() external view returns (address);

    /**
     * Get APR of every ILendingProtocol
     *
     * @return addresses: array of token addresses
     * @return aprs: array of aprs (ordered in respect to the `addresses` array)
     */
    function getAPRs()
        external
        view
        returns (address[] memory addresses, uint256[] memory aprs);

    // external
    // We should save the amount one has deposited to calc interests

    /**
     * Used to mint IdleTokens, given an underlying amount (eg. DAI).
     * This method triggers a rebalance of the pools if needed
     * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken
     * NOTE 2: this method can be paused
     *
     * @param _amount : amount of underlying token to be lended
     * @param _skipRebalance : flag for skipping rebalance for lower gas price
     * @param _referral : referral address
     * @return mintedTokens : amount of IdleTokens minted
     */
    function mintIdleToken(
        uint256 _amount,
        bool _skipRebalance,
        address _referral
    ) external returns (uint256 mintedTokens);

    /**
     * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
     * This method triggers a rebalance of the pools if needed
     * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens.
     * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss.
     *         Ideally one should wait until the black swan event is terminated
     *
     * @param _amount : amount of IdleTokens to be burned
     * @return redeemedTokens : amount of underlying tokens redeemed
     */
    function redeemIdleToken(uint256 _amount)
        external
        returns (uint256 redeemedTokens);

    /**
     * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn
     * and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user.
     * Underlying (eg. DAI) is not redeemed here.
     *
     * @param _amount : amount of IdleTokens to be burned
     */
    function redeemInterestBearingTokens(uint256 _amount) external;

    /**
     * @return : whether has rebalanced or not
     */
    function rebalance() external returns (bool);
}

File 12 of 19 : IUniswapV2Router01.sol
pragma solidity >=0.5.0;

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

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

File 13 of 19 : IUniswapV2Router02.sol
pragma solidity >=0.5.0;

import "./IUniswapV2Router01.sol";

interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

File 14 of 19 : Math.sol
pragma solidity ^0.5.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 15 of 19 : SafeMath.sol
pragma solidity ^0.5.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, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 16 of 19 : ERC20Detailed.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

File 17 of 19 : IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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 18 of 19 : SafeERC20.sol
pragma solidity ^0.5.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 ERC20;` 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));
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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 19 of 19 : Address.sol
pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_storage","type":"address"},{"internalType":"address","name":"_vault","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"Liquidating","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profitAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ProfitLogInReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"ProfitsNotCollected","type":"event"},{"constant":true,"inputs":[],"name":"__comp","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__idle","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__idleUnderlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__uniswap","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__usdc","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__weth","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"claimAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"comp","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"depositArbCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"forceUnleashed","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"idle","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"idleTokenHelper","outputs":[{"internalType":"contract IIdleTokenHelper","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"idleUnderlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"investAllUnderlying","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"investedUnderlyingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"profitSharingDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"profitSharingNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"protected","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"salvage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellComp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sellIdle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_sellComp","type":"bool"},{"internalType":"bool","name":"_sellIdle","type":"bool"},{"internalType":"bool","name":"_claimAllowed","type":"bool"}],"name":"setLiquidation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_profitSharingNumerator","type":"uint256"}],"name":"setProfitSharingNumerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_protected","type":"bool"}],"name":"setProtected","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_store","type":"address"}],"name":"setStorage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"store","outputs":[{"internalType":"contract Storage","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uniswapComp","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uniswapIdle","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"uniswapRouterV2","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unsalvagableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"virtualPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAllToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amountUnderlying","type":"uint256"}],"name":"withdrawToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002c8338038062002c83833981810160405260408110156200003757600080fd5b5080516020909101518173a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48735274891bec421b39d23760c04a6755ecb444797c8373c00e94cb662c3520282e6f5717214004a7f2688873875773784af8135ea0ef43b5a374aad105c5d39e73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2737a250d5630b4cf539739df2c5dacb4c659f2488d878381806001600160a01b03811662000120576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600080546001600160a01b03199081166001600160a01b0393841617825560038054909116928516929092179091556001555060646002555050600980546001600160a01b03199081166001600160a01b03878116918217909355600a805483168785169081179091556004805484168c86169081179091556005805485168c87169081179091556008805486168c8816179055600d8054600160b81b96168888161760ff60b81b1916959095179094556000908152600e60209081526040808320805460ff19908116600190811790925596845281842080548816821790558584528184208054881682179055848452928190208054909616909217909455805160608101825292835293861692820192909252918201526200024990600b9060036200033c565b50604080516060810182526001600160a01b03808616825284811660208301528916918101919091526200028290600c9060036200033c565b50600780546001600160a01b0319167304ce60ed10f6d2cff3aa015fc7b950d13c113be5179081905560055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051929091169163368d9f0691602480820192602092909190829003018186803b158015620002fa57600080fd5b505afa1580156200030f573d6000803e3d6000fd5b505050506040513d60208110156200032657600080fd5b505160065550620003d098505050505050505050565b82805482825590600052602060002090810192821562000394579160200282015b828111156200039457825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200035d565b50620003a2929150620003a6565b5090565b620003cd91905b80821115620003a25780546001600160a01b0319168155600101620003ad565b90565b6128a380620003e06000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c8063872f0b9711610130578063c2a2a07b116100b8578063dff2e3151161007c578063dff2e3151461047f578063e70a273814610487578063f77c47911461048f578063f7c618c114610497578063fbfa77cf1461049f57610232565b8063c2a2a07b14610442578063c6008e051461044a578063cca7f47514610452578063ce8c42e81461045a578063cff3db9e1461047757610232565b8063975057e7116100ff578063975057e714610405578063a35c08191461040d578063b60f151a1461042a578063bad36a7314610432578063bfd131f11461043a57610232565b8063872f0b97146103a05780638e6d81a7146103a85780638ea875f3146103d75780639137c1a7146103df57610232565b80634a8cfa69116101be578063691678dd11610182578063691678dd146103635780636f307dc31461038057806377be00f3146103885780637d70ba6614610390578063834d81851461039857610232565b80634a8cfa69146103095780635018594614610311578063596fa9e31461034b5780635aa6e675146103535780635dbeffe51461035b57610232565b80631c02bc31116102055780631c02bc31146102ca5780632cca0cd6146102e95780633192164f146102f15780633332ec0e146102f957806345d01e4a1461030157610232565b8063026a0dd01461023757806307e2f71314610251578063109d0af8146102705780631113ef5214610294575b600080fd5b61023f6104a7565b60408051918252519081900360200190f35b61026e6004803603602081101561026757600080fd5b50356104ad565b005b61027861056b565b604080516001600160a01b039092168252519081900360200190f35b61026e600480360360608110156102aa57600080fd5b506001600160a01b0381358116916020810135909116906040013561057a565b61026e600480360360208110156102e057600080fd5b503515156106aa565b610278610781565b610278610799565b6102786107a8565b61023f6107b7565b61026e6109c1565b6103376004803603602081101561032757600080fd5b50356001600160a01b0316610cf1565b604080519115158252519081900360200190f35b610278610d06565b610278610d15565b610278610d95565b6102786004803603602081101561037957600080fd5b5035610dad565b610278610dd4565b610278610de3565b610278610dfb565b610337610e13565b610337610e23565b61026e600480360360608110156103be57600080fd5b5080351515906020810135151590604001351515610e33565b61023f610f36565b61026e600480360360208110156103f557600080fd5b50356001600160a01b0316610f3c565b610278611072565b6102786004803603602081101561042357600080fd5b5035611081565b61023f61108e565b610337611094565b61026e6110a4565b6103376112f4565b6102786112f9565b61026e611311565b61026e6004803603602081101561047057600080fd5b50356114a0565b6103376117cc565b6102786117dc565b6102786117f4565b610278611803565b610278611852565b610278611861565b60025481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156104f857600080fd5b505afa15801561050c573d6000803e3d6000fd5b505050506040513d602081101561052257600080fd5b5051610566576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600155565b6009546001600160a01b031681565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156105c557600080fd5b505afa1580156105d9573d6000803e3d6000fd5b505050506040513d60208110156105ef57600080fd5b5051610633576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0382166000908152600e602052604090205460ff161561068b5760405162461bcd60e51b815260040180806020018281038252602281526020018061276f6022913960400191505060405180910390fd5b6106a56001600160a01b038316848363ffffffff61187016565b505050565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156106f557600080fd5b505afa158015610709573d6000803e3d6000fd5b505050506040513d602081101561071f57600080fd5b5051610763576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600d8054911515600160b81b0260ff60b81b19909216919091179055565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600a546001600160a01b031681565b6007546001600160a01b031681565b600d54600090600160b81b900460ff16156108885760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d602081101561084657600080fd5b505160065411156108885760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b600654600554604080516370a0823160e01b8152306004820152905160009361092f93670de0b6b3a764000093610923936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156108eb57600080fd5b505afa1580156108ff573d6000803e3d6000fd5b505050506040513d602081101561091557600080fd5b50519063ffffffff6118c216565b9063ffffffff61192416565b60048054604080516370a0823160e01b81523093810193909352519293506109bb926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561098257600080fd5b505afa158015610996573d6000803e3d6000fd5b505050506040513d60208110156109ac57600080fd5b5051829063ffffffff61196616565b91505090565b6008546001600160a01b03163314806109f257506109dd611803565b6001600160a01b0316336001600160a01b0316145b80610a155750610a00610d15565b6001600160a01b0316336001600160a01b0316145b610a505760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b600d54600160b81b900460ff1615610b1e5760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b158015610ab257600080fd5b505afa158015610ac6573d6000803e3d6000fd5b505050506040513d6020811015610adc57600080fd5b50516006541115610b1e5760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610b6d57600080fd5b505afa158015610b81573d6000803e3d6000fd5b505050506040513d6020811015610b9757600080fd5b5051600554600454919250610bc0916001600160a01b039081169116600063ffffffff6119c016565b600554600454610be3916001600160a01b0391821691168363ffffffff6119c016565b60055460408051632befabbf60e01b8152600481018490526001602482015260006044820181905291516001600160a01b0390931692632befabbf92606480840193602093929083900390910190829087803b158015610c4257600080fd5b505af1158015610c56573d6000803e3d6000fd5b505050506040513d6020811015610c6c57600080fd5b505060075460055460408051631b46cf8360e11b81526001600160a01b039283166004820152905191909216925063368d9f0691602480820192602092909190829003018186803b158015610cc057600080fd5b505afa158015610cd4573d6000803e3d6000fd5b505050506040513d6020811015610cea57600080fd5b5051600655565b600e6020526000908152604090205460ff1681565b600d546001600160a01b031681565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015610d6457600080fd5b505afa158015610d78573d6000803e3d6000fd5b505050506040513d6020811015610d8e57600080fd5b5051905090565b73c00e94cb662c3520282e6f5717214004a7f2688881565b600c8181548110610dba57fe5b6000918252602090912001546001600160a01b0316905081565b6004546001600160a01b031681565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b600d54600160b81b900460ff1681565b600d54600160b01b900460ff1681565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610e7e57600080fd5b505afa158015610e92573d6000803e3d6000fd5b505050506040513d6020811015610ea857600080fd5b5051610eec576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600d805460ff60a01b1916600160a01b941515949094029390931760ff60a81b1916600160a81b921515929092029190911760ff60b01b1916600160b01b91151591909102179055565b60065481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610f8757600080fd5b505afa158015610f9b573d6000803e3d6000fd5b505050506040513d6020811015610fb157600080fd5b5051610ff5576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611050576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031681565b600b8181548110610dba57fe5b60015481565b600d54600160a01b900460ff1681565b6008546001600160a01b03163314806110d557506110c0611803565b6001600160a01b0316336001600160a01b0316145b806110f857506110e3610d15565b6001600160a01b0316336001600160a01b0316145b6111335760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b600d54600160b81b900460ff16156112015760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b15801561119557600080fd5b505afa1580156111a9573d6000803e3d6000fd5b505050506040513d60208110156111bf57600080fd5b505160065411156112015760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b611209611ad3565b60085460048054604080516370a0823160e01b81523093810193909352516112a4936001600160a01b03908116939216916370a08231916024808301926020929190829003018186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d602081101561128957600080fd5b50516004546001600160a01b0316919063ffffffff61187016565b60075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b158015610cc057600080fd5b600190565b73875773784af8135ea0ef43b5a374aad105c5d39e81565b6008546001600160a01b0316331480611342575061132d611803565b6001600160a01b0316336001600160a01b0316145b806113655750611350610d15565b6001600160a01b0316336001600160a01b0316145b6113a05760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b600d54600160b81b900460ff161561146e5760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b15801561140257600080fd5b505afa158015611416573d6000803e3d6000fd5b505050506040513d602081101561142c57600080fd5b5051600654111561146e5760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b600d54600160b01b900460ff161561148857611488611bdb565b611490611c5a565b611498611f48565b6112a46109c1565b6008546001600160a01b03163314806114d157506114bc611803565b6001600160a01b0316336001600160a01b0316145b806114f457506114df610d15565b6001600160a01b0316336001600160a01b0316145b61152f5760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561157e57600080fd5b505afa158015611592573d6000803e3d6000fd5b505050506040513d60208110156115a857600080fd5b5051600554604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156115fb57600080fd5b505afa15801561160f573d6000803e3d6000fd5b505050506040513d602081101561162557600080fd5b505160065490915060009061164f90670de0b6b3a76400009061092390859063ffffffff6118c216565b9050600061166f8261092387670de0b6b3a764000063ffffffff6118c216565b9050600061168f670de0b6b3a7640000610923868563ffffffff6118c216565b600554604080516345985a8b60e11b81526004810184905290519293506001600160a01b0390911691638b30b516916024808201926020929091908290030181600087803b1580156116e057600080fd5b505af11580156116f4573d6000803e3d6000fd5b505050506040513d602081101561170a57600080fd5b505060048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561175b57600080fd5b505afa15801561176f573d6000803e3d6000fd5b505050506040513d602081101561178557600080fd5b50516008549091506117c3906001600160a01b03166117aa838963ffffffff6122b816565b6004546001600160a01b0316919063ffffffff61187016565b50505050505050565b600d54600160a81b900460ff1681565b735274891bec421b39d23760c04a6755ecb444797c81565b6005546001600160a01b031681565b60008060009054906101000a90046001600160a01b03166001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b158015610d6457600080fd5b6003546001600160a01b031681565b6008546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106a59084906122fa565b6000826118d15750600061191e565b828202828482816118de57fe5b041461191b5760405162461bcd60e51b81526004018080602001828103825260218152602001806127cb6021913960400191505060405180910390fd5b90505b92915050565b600061191b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506124b8565b60008282018381101561191b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b801580611a46575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611a1857600080fd5b505afa158015611a2c573d6000803e3d6000fd5b505050506040513d6020811015611a4257600080fd5b5051155b611a815760405162461bcd60e51b81526004018080602001828103825260368152602001806128396036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526106a59084906122fa565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611b1e57600080fd5b505afa158015611b32573d6000803e3d6000fd5b505050506040513d6020811015611b4857600080fd5b5051600554604080516345985a8b60e11b81526004810184905290519293506001600160a01b0390911691638b30b516916024808201926020929091908290030181600087803b158015611b9b57600080fd5b505af1158015611baf573d6000803e3d6000fd5b505050506040513d6020811015611bc557600080fd5b50611bd09050611c5a565b611bd8611f48565b50565b600554604080516345985a8b60e11b815260006004820181905291516001600160a01b0390931692638b30b51692602480840193602093929083900390910190829087803b158015611c2c57600080fd5b505af1158015611c40573d6000803e3d6000fd5b505050506040513d6020811015611c5657600080fd5b5050565b600d54600160a01b900460ff16611caf57600954604080516001600160a01b039092168252517fa109254e13e832bfd64172d2e42d884bf04105edcc0aea7671ca399638b838699181900360200190a1611f46565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611cfa57600080fd5b505afa158015611d0e573d6000803e3d6000fd5b505050506040513d6020811015611d2457600080fd5b505190508015611bd857600954604080516001600160a01b0390921682526020820183905280517f3299e7c5a7981ab82269eda64d376314fb882cfe0f6ba4d1ff5a277211dbb3349281900390910190a1600d54600954611d99916001600160a01b039182169116600063ffffffff6119c016565b600d54600954611dbc916001600160a01b0391821691168363ffffffff6119c016565b600d546040516338ed173960e01b8152600481018381526001602483018190523060648401819052426084850181905260a060448601908152600b805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c49091019086908015611e5657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e38575b50509650505050505050600060405180830381600087803b158015611e7a57600080fd5b505af1158015611e8e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611eb757600080fd5b8101908080516040519392919084640100000000821115611ed757600080fd5b908301906020820185811115611eec57600080fd5b8251866020820283011164010000000082111715611f0957600080fd5b82525081516020918201928201910280838360005b83811015611f36578181015183820152602001611f1e565b5050505090500160405250505050505b565b600d54600160a81b900460ff16611f9d57600a54604080516001600160a01b039092168252517fa109254e13e832bfd64172d2e42d884bf04105edcc0aea7671ca399638b838699181900360200190a1611f46565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611fe857600080fd5b505afa158015611ffc573d6000803e3d6000fd5b505050506040513d602081101561201257600080fd5b5051905061201f8161255a565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561206a57600080fd5b505afa15801561207e573d6000803e3d6000fd5b505050506040513d602081101561209457600080fd5b505190508015611c5657600a54604080516001600160a01b0390921682526020820183905280517f3299e7c5a7981ab82269eda64d376314fb882cfe0f6ba4d1ff5a277211dbb3349281900390910190a1600d54600a54612109916001600160a01b039182169116600063ffffffff6119c016565b600d54600a5461212c916001600160a01b0391821691168363ffffffff6119c016565b600d546040516338ed173960e01b8152600481018381526001602483018190523060648401819052426084850181905260a060448601908152600c805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c490910190869080156121c657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116121a8575b50509650505050505050600060405180830381600087803b1580156121ea57600080fd5b505af11580156121fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561222757600080fd5b810190808051604051939291908464010000000082111561224757600080fd5b90830190602082018581111561225c57600080fd5b825186602082028301116401000000008211171561227957600080fd5b82525081516020918201928201910280838360005b838110156122a657818101518382015260200161228e565b50505050905001604052505050505050565b600061191b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126d8565b61230c826001600160a01b0316612732565b61235d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061239b5780518252601f19909201916020918201910161237c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146123fd576040519150601f19603f3d011682016040523d82523d6000602084013e612402565b606091505b509150915081612459576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156124b25780806020019051602081101561247557600080fd5b50516124b25760405162461bcd60e51b815260040180806020018281038252602a8152602001806127ec602a913960400191505060405180910390fd5b50505050565b600081836125445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125095781810151838201526020016124f1565b50505050905090810190601f1680156125365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161255057fe5b0495945050505050565b60008111801561256c57506000600154115b1561269657600061258e600254610923600154856118c290919063ffffffff16565b6040805184815260208101839052428183015290519192507f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b919081900360600190a16125f66125dc611803565b6003546001600160a01b031690600063ffffffff6119c016565b61261a612601611803565b6003546001600160a01b0316908363ffffffff6119c016565b612622611803565b60035460408051631ee0d7e560e31b81526001600160a01b039283166004820152602481018590529051929091169163f706bf289160448082019260009290919082900301818387803b15801561267857600080fd5b505af115801561268c573d6000803e3d6000fd5b5050505050611bd8565b6040805160008082526020820152428183015290517f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b9181900360600190a150565b6000818484111561272a5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125095781810151838201526020016124f1565b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061276657508115155b94935050505056fe746f6b656e20697320646566696e6564206173206e6f742073616c76616761626c655468652073656e6465722068617320746f2062652074686520636f6e74726f6c6c6572206f72207661756c74206f7220676f7665726e616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565647669727475616c20707269636520697320686967686572207468616e206e65656465645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820b00727e90e8f0a5b5ade9dcb0448edf0118660ce222c4f63e6ab85f0ab61c42464736f6c63430005100032000000000000000000000000837b73e6e8f04e3e4685c41b9a8c6f2bebc9e70f00000000000000000000000051654a8c04e97424724e1643d468b51924f6c40f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102325760003560e01c8063872f0b9711610130578063c2a2a07b116100b8578063dff2e3151161007c578063dff2e3151461047f578063e70a273814610487578063f77c47911461048f578063f7c618c114610497578063fbfa77cf1461049f57610232565b8063c2a2a07b14610442578063c6008e051461044a578063cca7f47514610452578063ce8c42e81461045a578063cff3db9e1461047757610232565b8063975057e7116100ff578063975057e714610405578063a35c08191461040d578063b60f151a1461042a578063bad36a7314610432578063bfd131f11461043a57610232565b8063872f0b97146103a05780638e6d81a7146103a85780638ea875f3146103d75780639137c1a7146103df57610232565b80634a8cfa69116101be578063691678dd11610182578063691678dd146103635780636f307dc31461038057806377be00f3146103885780637d70ba6614610390578063834d81851461039857610232565b80634a8cfa69146103095780635018594614610311578063596fa9e31461034b5780635aa6e675146103535780635dbeffe51461035b57610232565b80631c02bc31116102055780631c02bc31146102ca5780632cca0cd6146102e95780633192164f146102f15780633332ec0e146102f957806345d01e4a1461030157610232565b8063026a0dd01461023757806307e2f71314610251578063109d0af8146102705780631113ef5214610294575b600080fd5b61023f6104a7565b60408051918252519081900360200190f35b61026e6004803603602081101561026757600080fd5b50356104ad565b005b61027861056b565b604080516001600160a01b039092168252519081900360200190f35b61026e600480360360608110156102aa57600080fd5b506001600160a01b0381358116916020810135909116906040013561057a565b61026e600480360360208110156102e057600080fd5b503515156106aa565b610278610781565b610278610799565b6102786107a8565b61023f6107b7565b61026e6109c1565b6103376004803603602081101561032757600080fd5b50356001600160a01b0316610cf1565b604080519115158252519081900360200190f35b610278610d06565b610278610d15565b610278610d95565b6102786004803603602081101561037957600080fd5b5035610dad565b610278610dd4565b610278610de3565b610278610dfb565b610337610e13565b610337610e23565b61026e600480360360608110156103be57600080fd5b5080351515906020810135151590604001351515610e33565b61023f610f36565b61026e600480360360208110156103f557600080fd5b50356001600160a01b0316610f3c565b610278611072565b6102786004803603602081101561042357600080fd5b5035611081565b61023f61108e565b610337611094565b61026e6110a4565b6103376112f4565b6102786112f9565b61026e611311565b61026e6004803603602081101561047057600080fd5b50356114a0565b6103376117cc565b6102786117dc565b6102786117f4565b610278611803565b610278611852565b610278611861565b60025481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156104f857600080fd5b505afa15801561050c573d6000803e3d6000fd5b505050506040513d602081101561052257600080fd5b5051610566576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600155565b6009546001600160a01b031681565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156105c557600080fd5b505afa1580156105d9573d6000803e3d6000fd5b505050506040513d60208110156105ef57600080fd5b5051610633576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0382166000908152600e602052604090205460ff161561068b5760405162461bcd60e51b815260040180806020018281038252602281526020018061276f6022913960400191505060405180910390fd5b6106a56001600160a01b038316848363ffffffff61187016565b505050565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156106f557600080fd5b505afa158015610709573d6000803e3d6000fd5b505050506040513d602081101561071f57600080fd5b5051610763576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600d8054911515600160b81b0260ff60b81b19909216919091179055565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600a546001600160a01b031681565b6007546001600160a01b031681565b600d54600090600160b81b900460ff16156108885760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d602081101561084657600080fd5b505160065411156108885760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b600654600554604080516370a0823160e01b8152306004820152905160009361092f93670de0b6b3a764000093610923936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156108eb57600080fd5b505afa1580156108ff573d6000803e3d6000fd5b505050506040513d602081101561091557600080fd5b50519063ffffffff6118c216565b9063ffffffff61192416565b60048054604080516370a0823160e01b81523093810193909352519293506109bb926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561098257600080fd5b505afa158015610996573d6000803e3d6000fd5b505050506040513d60208110156109ac57600080fd5b5051829063ffffffff61196616565b91505090565b6008546001600160a01b03163314806109f257506109dd611803565b6001600160a01b0316336001600160a01b0316145b80610a155750610a00610d15565b6001600160a01b0316336001600160a01b0316145b610a505760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b600d54600160b81b900460ff1615610b1e5760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b158015610ab257600080fd5b505afa158015610ac6573d6000803e3d6000fd5b505050506040513d6020811015610adc57600080fd5b50516006541115610b1e5760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610b6d57600080fd5b505afa158015610b81573d6000803e3d6000fd5b505050506040513d6020811015610b9757600080fd5b5051600554600454919250610bc0916001600160a01b039081169116600063ffffffff6119c016565b600554600454610be3916001600160a01b0391821691168363ffffffff6119c016565b60055460408051632befabbf60e01b8152600481018490526001602482015260006044820181905291516001600160a01b0390931692632befabbf92606480840193602093929083900390910190829087803b158015610c4257600080fd5b505af1158015610c56573d6000803e3d6000fd5b505050506040513d6020811015610c6c57600080fd5b505060075460055460408051631b46cf8360e11b81526001600160a01b039283166004820152905191909216925063368d9f0691602480820192602092909190829003018186803b158015610cc057600080fd5b505afa158015610cd4573d6000803e3d6000fd5b505050506040513d6020811015610cea57600080fd5b5051600655565b600e6020526000908152604090205460ff1681565b600d546001600160a01b031681565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b158015610d6457600080fd5b505afa158015610d78573d6000803e3d6000fd5b505050506040513d6020811015610d8e57600080fd5b5051905090565b73c00e94cb662c3520282e6f5717214004a7f2688881565b600c8181548110610dba57fe5b6000918252602090912001546001600160a01b0316905081565b6004546001600160a01b031681565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b600d54600160b81b900460ff1681565b600d54600160b01b900460ff1681565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610e7e57600080fd5b505afa158015610e92573d6000803e3d6000fd5b505050506040513d6020811015610ea857600080fd5b5051610eec576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b600d805460ff60a01b1916600160a01b941515949094029390931760ff60a81b1916600160a81b921515929092029190911760ff60b01b1916600160b01b91151591909102179055565b60065481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610f8757600080fd5b505afa158015610f9b573d6000803e3d6000fd5b505050506040513d6020811015610fb157600080fd5b5051610ff5576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611050576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031681565b600b8181548110610dba57fe5b60015481565b600d54600160a01b900460ff1681565b6008546001600160a01b03163314806110d557506110c0611803565b6001600160a01b0316336001600160a01b0316145b806110f857506110e3610d15565b6001600160a01b0316336001600160a01b0316145b6111335760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b600d54600160b81b900460ff16156112015760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b15801561119557600080fd5b505afa1580156111a9573d6000803e3d6000fd5b505050506040513d60208110156111bf57600080fd5b505160065411156112015760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b611209611ad3565b60085460048054604080516370a0823160e01b81523093810193909352516112a4936001600160a01b03908116939216916370a08231916024808301926020929190829003018186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d602081101561128957600080fd5b50516004546001600160a01b0316919063ffffffff61187016565b60075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b158015610cc057600080fd5b600190565b73875773784af8135ea0ef43b5a374aad105c5d39e81565b6008546001600160a01b0316331480611342575061132d611803565b6001600160a01b0316336001600160a01b0316145b806113655750611350610d15565b6001600160a01b0316336001600160a01b0316145b6113a05760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b600d54600160b81b900460ff161561146e5760075460055460408051631b46cf8360e11b81526001600160a01b0392831660048201529051919092169163368d9f06916024808301926020929190829003018186803b15801561140257600080fd5b505afa158015611416573d6000803e3d6000fd5b505050506040513d602081101561142c57600080fd5b5051600654111561146e5760405162461bcd60e51b81526004018080602001828103825260238152602001806128166023913960400191505060405180910390fd5b600d54600160b01b900460ff161561148857611488611bdb565b611490611c5a565b611498611f48565b6112a46109c1565b6008546001600160a01b03163314806114d157506114bc611803565b6001600160a01b0316336001600160a01b0316145b806114f457506114df610d15565b6001600160a01b0316336001600160a01b0316145b61152f5760405162461bcd60e51b815260040180806020018281038252603a815260200180612791603a913960400191505060405180910390fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561157e57600080fd5b505afa158015611592573d6000803e3d6000fd5b505050506040513d60208110156115a857600080fd5b5051600554604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156115fb57600080fd5b505afa15801561160f573d6000803e3d6000fd5b505050506040513d602081101561162557600080fd5b505160065490915060009061164f90670de0b6b3a76400009061092390859063ffffffff6118c216565b9050600061166f8261092387670de0b6b3a764000063ffffffff6118c216565b9050600061168f670de0b6b3a7640000610923868563ffffffff6118c216565b600554604080516345985a8b60e11b81526004810184905290519293506001600160a01b0390911691638b30b516916024808201926020929091908290030181600087803b1580156116e057600080fd5b505af11580156116f4573d6000803e3d6000fd5b505050506040513d602081101561170a57600080fd5b505060048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561175b57600080fd5b505afa15801561176f573d6000803e3d6000fd5b505050506040513d602081101561178557600080fd5b50516008549091506117c3906001600160a01b03166117aa838963ffffffff6122b816565b6004546001600160a01b0316919063ffffffff61187016565b50505050505050565b600d54600160a81b900460ff1681565b735274891bec421b39d23760c04a6755ecb444797c81565b6005546001600160a01b031681565b60008060009054906101000a90046001600160a01b03166001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b158015610d6457600080fd5b6003546001600160a01b031681565b6008546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106a59084906122fa565b6000826118d15750600061191e565b828202828482816118de57fe5b041461191b5760405162461bcd60e51b81526004018080602001828103825260218152602001806127cb6021913960400191505060405180910390fd5b90505b92915050565b600061191b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506124b8565b60008282018381101561191b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b801580611a46575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611a1857600080fd5b505afa158015611a2c573d6000803e3d6000fd5b505050506040513d6020811015611a4257600080fd5b5051155b611a815760405162461bcd60e51b81526004018080602001828103825260368152602001806128396036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526106a59084906122fa565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611b1e57600080fd5b505afa158015611b32573d6000803e3d6000fd5b505050506040513d6020811015611b4857600080fd5b5051600554604080516345985a8b60e11b81526004810184905290519293506001600160a01b0390911691638b30b516916024808201926020929091908290030181600087803b158015611b9b57600080fd5b505af1158015611baf573d6000803e3d6000fd5b505050506040513d6020811015611bc557600080fd5b50611bd09050611c5a565b611bd8611f48565b50565b600554604080516345985a8b60e11b815260006004820181905291516001600160a01b0390931692638b30b51692602480840193602093929083900390910190829087803b158015611c2c57600080fd5b505af1158015611c40573d6000803e3d6000fd5b505050506040513d6020811015611c5657600080fd5b5050565b600d54600160a01b900460ff16611caf57600954604080516001600160a01b039092168252517fa109254e13e832bfd64172d2e42d884bf04105edcc0aea7671ca399638b838699181900360200190a1611f46565b600954604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611cfa57600080fd5b505afa158015611d0e573d6000803e3d6000fd5b505050506040513d6020811015611d2457600080fd5b505190508015611bd857600954604080516001600160a01b0390921682526020820183905280517f3299e7c5a7981ab82269eda64d376314fb882cfe0f6ba4d1ff5a277211dbb3349281900390910190a1600d54600954611d99916001600160a01b039182169116600063ffffffff6119c016565b600d54600954611dbc916001600160a01b0391821691168363ffffffff6119c016565b600d546040516338ed173960e01b8152600481018381526001602483018190523060648401819052426084850181905260a060448601908152600b805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c49091019086908015611e5657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e38575b50509650505050505050600060405180830381600087803b158015611e7a57600080fd5b505af1158015611e8e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611eb757600080fd5b8101908080516040519392919084640100000000821115611ed757600080fd5b908301906020820185811115611eec57600080fd5b8251866020820283011164010000000082111715611f0957600080fd5b82525081516020918201928201910280838360005b83811015611f36578181015183820152602001611f1e565b5050505090500160405250505050505b565b600d54600160a81b900460ff16611f9d57600a54604080516001600160a01b039092168252517fa109254e13e832bfd64172d2e42d884bf04105edcc0aea7671ca399638b838699181900360200190a1611f46565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611fe857600080fd5b505afa158015611ffc573d6000803e3d6000fd5b505050506040513d602081101561201257600080fd5b5051905061201f8161255a565b600a54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561206a57600080fd5b505afa15801561207e573d6000803e3d6000fd5b505050506040513d602081101561209457600080fd5b505190508015611c5657600a54604080516001600160a01b0390921682526020820183905280517f3299e7c5a7981ab82269eda64d376314fb882cfe0f6ba4d1ff5a277211dbb3349281900390910190a1600d54600a54612109916001600160a01b039182169116600063ffffffff6119c016565b600d54600a5461212c916001600160a01b0391821691168363ffffffff6119c016565b600d546040516338ed173960e01b8152600481018381526001602483018190523060648401819052426084850181905260a060448601908152600c805460a488018190526001600160a01b03909816976338ed1739978a97929594939160c490910190869080156121c657602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116121a8575b50509650505050505050600060405180830381600087803b1580156121ea57600080fd5b505af11580156121fe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561222757600080fd5b810190808051604051939291908464010000000082111561224757600080fd5b90830190602082018581111561225c57600080fd5b825186602082028301116401000000008211171561227957600080fd5b82525081516020918201928201910280838360005b838110156122a657818101518382015260200161228e565b50505050905001604052505050505050565b600061191b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506126d8565b61230c826001600160a01b0316612732565b61235d576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061239b5780518252601f19909201916020918201910161237c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146123fd576040519150601f19603f3d011682016040523d82523d6000602084013e612402565b606091505b509150915081612459576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156124b25780806020019051602081101561247557600080fd5b50516124b25760405162461bcd60e51b815260040180806020018281038252602a8152602001806127ec602a913960400191505060405180910390fd5b50505050565b600081836125445760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125095781810151838201526020016124f1565b50505050905090810190601f1680156125365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161255057fe5b0495945050505050565b60008111801561256c57506000600154115b1561269657600061258e600254610923600154856118c290919063ffffffff16565b6040805184815260208101839052428183015290519192507f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b919081900360600190a16125f66125dc611803565b6003546001600160a01b031690600063ffffffff6119c016565b61261a612601611803565b6003546001600160a01b0316908363ffffffff6119c016565b612622611803565b60035460408051631ee0d7e560e31b81526001600160a01b039283166004820152602481018590529051929091169163f706bf289160448082019260009290919082900301818387803b15801561267857600080fd5b505af115801561268c573d6000803e3d6000fd5b5050505050611bd8565b6040805160008082526020820152428183015290517f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b9181900360600190a150565b6000818484111561272a5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156125095781810151838201526020016124f1565b505050900390565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061276657508115155b94935050505056fe746f6b656e20697320646566696e6564206173206e6f742073616c76616761626c655468652073656e6465722068617320746f2062652074686520636f6e74726f6c6c6572206f72207661756c74206f7220676f7665726e616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565647669727475616c20707269636520697320686967686572207468616e206e65656465645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820b00727e90e8f0a5b5ade9dcb0448edf0118660ce222c4f63e6ab85f0ab61c42464736f6c63430005100032

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

000000000000000000000000837b73e6e8f04e3e4685c41b9a8c6f2bebc9e70f00000000000000000000000051654a8c04e97424724e1643d468b51924f6c40f

-----Decoded View---------------
Arg [0] : _storage (address): 0x837b73e6e8F04e3E4685C41b9a8c6F2bebc9E70F
Arg [1] : _vault (address): 0x51654a8c04e97424724E1643d468b51924f6C40F

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000837b73e6e8f04e3e4685c41b9a8c6f2bebc9e70f
Arg [1] : 00000000000000000000000051654a8c04e97424724e1643d468b51924f6c40f


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

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