Contract 0x8a6d902c66cdda0e01545c019516ac59d7c86397

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x206414fc02bb0ee52f2c7decbdfe27aa95f6ff2cfcc22b8b1ef1c6aee28a1bdcEarn241504502022-01-25 15:31:102 days 1 hr ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.051408656104
0xdf41ca5aad9bc35e40f1b99e63d92c27a130590cb760433a99525dd47d73d41aEarn241487812022-01-25 14:31:242 days 2 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.070476588142
0x7285a8dd2489e4a28187069ad2aaebcf602a53a67fe9822f22c9f0b85c112371Earn241470912022-01-25 13:31:122 days 3 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.073158472148
0x3d1868f40717129eecb31c0559a69887cbc67110de5b75d950cb0828fdc33f8bEarn241453712022-01-25 12:32:042 days 4 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.03623092273
0x3ccf1b42e5774f169df2b550774613ae2bd4da4a7746adb2bdfe5c450773ce33Earn241437892022-01-25 11:31:162 days 5 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.03325303867
0x3b5ae98fd3c8917515fe6476f394269079358697da07b35c7cb3b7d7625a9cdaEarn241420692022-01-25 10:32:022 days 6 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.02282855846
0x3432ca5c539d70dc70a2f253d78c7135363522ed8bf0888108d31329c53eb30eEarn241403782022-01-25 9:31:482 days 7 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.04566088892
0xaca71f969fb18692c78b59416d556e6ffe0628951bee8c0e3a8030184efa9556Earn241389422022-01-25 8:38:082 days 8 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.04069774882
0xf722dbf9ffd379d0467f11826e6728be1566f3e513d62cb9ffa5d7b37cde3eb7Earn241371402022-01-25 7:31:242 days 9 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.02034887441
0xefcff9d7b833e285af3debe58dbd66755c704a03d2272052884ca6d9602d4578Earn241355942022-01-25 6:31:412 days 10 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.01637836233
0x9e6085bf0b88cca23a27cd0e227bd8c3c08f0ab0f68303ce56cf5408f1b7d0b7Earn241339802022-01-25 5:31:492 days 11 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.01637836233
0x51cb37bcaf8d800d603a1496e534360b6f964a440ed03fc98531af17ee7d6a26Earn241322252022-01-25 4:31:292 days 12 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.01836361837
0x77679ce632632c1daa63308d126ec5af771d1aefe3fa7d5d5a8db054f26d0606Earn241306932022-01-25 3:32:252 days 13 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.01687328234
0x06bd921ff918f6f575327e92597f595137b9e38fdb0a8c6cc4bef68648f1fe71Earn241289252022-01-25 2:31:302 days 14 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.02134150243
0xf9a470251711331e7d76243de6b1dd770fbb0c62950d6702d2d3b110d298ba00Earn241272422022-01-25 1:31:302 days 15 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.02526669652
0x59e8c7e467676d561aeaf80141216146f551779ef735022b3cf73d65b0fd9364Earn241255242022-01-25 0:32:252 days 16 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.03790004478
0x33c865483b4a1b8844c8d333af2ad0321d70a53f039a1a5a7628c9e0f59750ddEarn241238162022-01-24 23:31:332 days 17 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.02767914357
0xb412d5b0f5499513bd14026f6ffff2ee1b6be78bbda956bf0bc2e8ce0bbfa253Earn241221412022-01-24 22:31:492 days 18 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.050127714101
0xa11a4693b55c4a627b8c4e6bd2830df8ab57df794529b0b0d552ba6fcc7c343eEarn241204732022-01-24 21:32:062 days 19 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.04020143481
0xc9b90202e2ddb87d461db5851ba5608b0b5c3d11d6e688821696d6a2efa25675Earn241187652022-01-24 20:31:132 days 20 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.099759114201
0x1c52c2bd107645791c6e4bd1e97de89d522d49f9bf22fa4261b5ab0492fc1970Earn241170972022-01-24 19:31:342 days 21 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.06700239135
0x8318346c6511b95af0b7dce09106dfd12616f2c8987eca902e128e2df2c4c27fEarn241153422022-01-24 18:31:112 days 22 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.17249379355
0x147cd0e3fc2051c1d1d7473b0327b098ce9affa834a042fdb2528c7d39bbc180Earn241135972022-01-24 17:31:032 days 23 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.122093244246
0x8ef2ab375b6ca3d1dd66b12ecd95836579a3e52a77cc1c49a2b1dcb76725b265Earn241128932022-01-24 17:04:432 days 23 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.03433829454
0x1f3e3034a626bbed02b90185ea142587fbef3c6926249550cd26e87e0c8d572fEarn241128932022-01-24 17:04:432 days 23 hrs ago0x1200048dc4997141f9c61fb29dd5de7cecc0dc31 IN  0x8a6d902c66cdda0e01545c019516ac59d7c863970 MATIC0.12632282260
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x206414fc02bb0ee52f2c7decbdfe27aa95f6ff2cfcc22b8b1ef1c6aee28a1bdc241504502022-01-25 15:31:102 days 1 hr ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.00118082039151599 MATIC
0x206414fc02bb0ee52f2c7decbdfe27aa95f6ff2cfcc22b8b1ef1c6aee28a1bdc241504502022-01-25 15:31:102 days 1 hr ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.00118082039151599 MATIC
0xdf41ca5aad9bc35e40f1b99e63d92c27a130590cb760433a99525dd47d73d41a241487812022-01-25 14:31:242 days 2 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001188303190163776 MATIC
0xdf41ca5aad9bc35e40f1b99e63d92c27a130590cb760433a99525dd47d73d41a241487812022-01-25 14:31:242 days 2 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001188303190163776 MATIC
0x7285a8dd2489e4a28187069ad2aaebcf602a53a67fe9822f22c9f0b85c112371241470912022-01-25 13:31:122 days 3 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001170234743109699 MATIC
0x7285a8dd2489e4a28187069ad2aaebcf602a53a67fe9822f22c9f0b85c112371241470912022-01-25 13:31:122 days 3 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001170234743109699 MATIC
0x3d1868f40717129eecb31c0559a69887cbc67110de5b75d950cb0828fdc33f8b241453712022-01-25 12:32:042 days 4 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001212269020705467 MATIC
0x3d1868f40717129eecb31c0559a69887cbc67110de5b75d950cb0828fdc33f8b241453712022-01-25 12:32:042 days 4 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001212269020705467 MATIC
0x3ccf1b42e5774f169df2b550774613ae2bd4da4a7746adb2bdfe5c450773ce33241437892022-01-25 11:31:162 days 5 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001188710398852071 MATIC
0x3ccf1b42e5774f169df2b550774613ae2bd4da4a7746adb2bdfe5c450773ce33241437892022-01-25 11:31:162 days 5 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001188710398852071 MATIC
0x3b5ae98fd3c8917515fe6476f394269079358697da07b35c7cb3b7d7625a9cda241420692022-01-25 10:32:022 days 6 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001208532154902383 MATIC
0x3b5ae98fd3c8917515fe6476f394269079358697da07b35c7cb3b7d7625a9cda241420692022-01-25 10:32:022 days 6 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001208532154902383 MATIC
0x3432ca5c539d70dc70a2f253d78c7135363522ed8bf0888108d31329c53eb30e241403782022-01-25 9:31:482 days 7 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001075539376904806 MATIC
0x3432ca5c539d70dc70a2f253d78c7135363522ed8bf0888108d31329c53eb30e241403782022-01-25 9:31:482 days 7 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001075539376904806 MATIC
0xaca71f969fb18692c78b59416d556e6ffe0628951bee8c0e3a8030184efa9556241389422022-01-25 8:38:082 days 8 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001337197458042788 MATIC
0xaca71f969fb18692c78b59416d556e6ffe0628951bee8c0e3a8030184efa9556241389422022-01-25 8:38:082 days 8 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001337197458042788 MATIC
0xf722dbf9ffd379d0467f11826e6728be1566f3e513d62cb9ffa5d7b37cde3eb7241371402022-01-25 7:31:242 days 9 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.0011966317153894 MATIC
0xf722dbf9ffd379d0467f11826e6728be1566f3e513d62cb9ffa5d7b37cde3eb7241371402022-01-25 7:31:242 days 9 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.0011966317153894 MATIC
0xefcff9d7b833e285af3debe58dbd66755c704a03d2272052884ca6d9602d4578241355942022-01-25 6:31:412 days 10 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001199838634254711 MATIC
0xefcff9d7b833e285af3debe58dbd66755c704a03d2272052884ca6d9602d4578241355942022-01-25 6:31:412 days 10 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001199838634254711 MATIC
0x9e6085bf0b88cca23a27cd0e227bd8c3c08f0ab0f68303ce56cf5408f1b7d0b7241339802022-01-25 5:31:492 days 11 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001230684872964569 MATIC
0x9e6085bf0b88cca23a27cd0e227bd8c3c08f0ab0f68303ce56cf5408f1b7d0b7241339802022-01-25 5:31:492 days 11 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001230684872964569 MATIC
0x51cb37bcaf8d800d603a1496e534360b6f964a440ed03fc98531af17ee7d6a26241322252022-01-25 4:31:292 days 12 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001216365321433192 MATIC
0x51cb37bcaf8d800d603a1496e534360b6f964a440ed03fc98531af17ee7d6a26241322252022-01-25 4:31:292 days 12 hrs ago Polygon: WMATIC Token 0x8a6d902c66cdda0e01545c019516ac59d7c863970.001216365321433192 MATIC
0x77679ce632632c1daa63308d126ec5af771d1aefe3fa7d5d5a8db054f26d0606241306932022-01-25 3:32:252 days 13 hrs ago 0x8a6d902c66cdda0e01545c019516ac59d7c86397Polycat Finance: Deployer0.001256794938911289 MATIC
[ Download CSV Export 
Loading

Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x97743C1A30415E8FdF0D1cE07a71C5a385B43A18

Contract Name:
StrategyAave

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 1 of 16: StrategyAave.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./Ownable.sol";
import "./SafeERC20.sol";
import "./Pausable.sol";
import "./ReentrancyGuard.sol";

import "./IAaveStake.sol";
import "./IProtocolDataProvider.sol";
import "./IStrategyFish.sol";
import "./IUniPair.sol";
import "./IUniRouter02.sol";
import "./IWETH.sol";

contract StrategyAave is Ownable, ReentrancyGuard, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address public constant aaveDataAddress = 0x7551b5D2763519d4e37e8B81929D336De671d46d;
    address public constant aaveDepositAddress = 0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf;
    address public constant aaveClaimAddress = 0x357D51124f59836DeD84c8a1730D72B749d8BC23;
    address public wantAddress;
    address public vTokenAddress;
    address public debtTokenAddress;
    address public earnedAddress;
    uint16 public referralCode = 0;
    
    address public uniRouterAddress = 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff;
    address public constant wmaticAddress = 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270;
    address public constant usdcAddress = 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174;
    address public constant fishAddress = 0x3a3Df212b7AA91Aa0402B9035b098891d276572B;
    address public constant rewardAddress = 0x917FB15E8aAA12264DCBdC15AFef7cD3cE76BA39;
    address public constant vaultAddress = 0x4879712c5D1A98C0B88Fb700daFF5c65d12Fd729;
    address public constant feeAddress = 0x1cb757f1eB92F25A917CE9a92ED88c1aC0734334;
    address public constant withdrawFeeAddress = 0x47231b2EcB18b7724560A78cd7191b121f53FABc;
    address public vaultChefAddress;
    address public govAddress;

    uint256 public lastEarnBlock = block.number;
    uint256 public sharesTotal = 0;

    address public constant buyBackAddress = 0x000000000000000000000000000000000000dEaD;
    uint256 public controllerFee = 50;
    uint256 public rewardRate = 0;
    uint256 public buyBackRate = 450;
    uint256 public constant feeMaxTotal = 1000;
    uint256 public constant feeMax = 10000; // 100 = 1%

    uint256 public withdrawFeeFactor = 10000; // 0% withdraw fee
    uint256 public constant withdrawFeeFactorMax = 10000;
    uint256 public constant withdrawFeeFactorLL = 9900;

    uint256 public slippageFactor = 950; // 5% default slippage tolerance
    uint256 public constant slippageFactorUL = 995;
    
    /**
     * @dev Variables that can be changed to config profitability and risk:
     * {borrowRate}          - At What % of our collateral do we borrow per leverage level.
     * {borrowDepth}         - Ma How many levels of leverage do we take.
     * {BORROW_RATE_MAX}     - Cat A limit on how much we can push borrow risk.
     * {BORROW_DEPTH_MAX}    - Kevin A limit on how many steps we can leverage.
     */
    uint256 public borrowRate;
    uint256 public borrowDepth = 6;
    uint256 public minLeverage;
    uint256 public BORROW_RATE_MAX;
    uint256 public BORROW_RATE_MAX_HARD;
    uint256 public BORROW_DEPTH_MAX = 8;
    uint256 public constant BORROW_RATE_DIVISOR = 10000;

    address[] public vTokenArray;
    address[] public earnedToUsdcPath;
    address[] public earnedToFishPath;
    address[] public earnedToWantPath;

    constructor(
        address _vaultChefAddress,
        uint256 _minLeverage,
        address _wantAddress,
        address _vTokenAddress,
        address _debtTokenAddress,
        address _earnedAddress,
        address[] memory _earnedToUsdcPath,
        address[] memory _earnedToFishPath,
        address[] memory _earnedToWantPath
    ) public {
        govAddress = msg.sender;
        vaultChefAddress = _vaultChefAddress;

        minLeverage = _minLeverage;

        wantAddress = _wantAddress;
        vTokenAddress = _vTokenAddress;
        vTokenArray = [vTokenAddress];
        debtTokenAddress = _debtTokenAddress;

        earnedAddress = _earnedAddress;

        earnedToUsdcPath = _earnedToUsdcPath;
        earnedToFishPath = _earnedToFishPath;
        earnedToWantPath = _earnedToWantPath;
        
        (, uint256 ltv, uint256 threshold, , , bool collateral, bool borrow, , , ) = 
            IProtocolDataProvider(aaveDataAddress).getReserveConfigurationData(wantAddress);
        BORROW_RATE_MAX = ltv.mul(99).div(100); // 1%
        BORROW_RATE_MAX_HARD = ltv.mul(999).div(1000); // 0.1%
        // At minimum, borrow rate always 10% lower than liquidation threshold
        if (threshold.mul(9).div(10) > BORROW_RATE_MAX) {
            borrowRate = BORROW_RATE_MAX;
        } else {
            borrowRate = threshold.mul(9).div(10);
        }
        // Only leverage if you can
        if (!(collateral && borrow)) {
            borrowDepth = 0;
            BORROW_DEPTH_MAX = 0;
        }

        transferOwnership(vaultChefAddress);
        
        _resetAllowances();
    }
    
    event SetSettings(
        uint256 _controllerFee,
        uint256 _rewardRate,
        uint256 _buyBackRate,
        uint256 _withdrawFeeFactor,
        uint256 _slippageFactor,
        address _uniRouterAddress,
        uint16 _referralCode
    );
    
    modifier onlyGov() {
        require(msg.sender == govAddress, "!gov");
        _;
    }
    
    function deposit(address _userAddress, uint256 _wantAmt) external onlyOwner nonReentrant whenNotPaused returns (uint256) {
        // Call must happen before transfer
        uint256 wantLockedBefore = wantLockedTotal();

        IERC20(wantAddress).safeTransferFrom(
            address(msg.sender),
            address(this),
            _wantAmt
        );

        // Proper deposit amount for tokens with fees, or vaults with deposit fees
        uint256 sharesAdded = _farm(_wantAmt);
        if (sharesTotal > 0) {
            sharesAdded = sharesAdded.mul(sharesTotal).div(wantLockedBefore);
        }
        sharesTotal = sharesTotal.add(sharesAdded);

        return sharesAdded;
    }

    function _farm(uint256 _wantAmt) internal returns (uint256) {
        uint256 wantAmt = wantLockedInHere();
        if (wantAmt == 0) return 0;
        
        // Cheat method to check for deposit fees in Aave
        uint256 sharesBefore = wantLockedTotal().sub(_wantAmt);
        _leverage(wantAmt);
        
        return wantLockedTotal().sub(sharesBefore);
    }

    function withdraw(address _userAddress, uint256 _wantAmt) external onlyOwner nonReentrant returns (uint256) {
        require(_wantAmt > 0, "_wantAmt is 0");
        
        uint256 wantAmt = IERC20(wantAddress).balanceOf(address(this));
        
        if (_wantAmt > wantAmt) {
            // Fully deleverage, cheap in Polygon
            _deleverage();
            wantAmt = IERC20(wantAddress).balanceOf(address(this));
        }

        if (_wantAmt > wantAmt) {
            _wantAmt = wantAmt;
        }

        if (_wantAmt > wantLockedTotal()) {
            _wantAmt = wantLockedTotal();
        }

        uint256 sharesRemoved = _wantAmt.mul(sharesTotal).div(wantLockedTotal());
        if (sharesRemoved > sharesTotal) {
            sharesRemoved = sharesTotal;
        }
        sharesTotal = sharesTotal.sub(sharesRemoved);
        
        // Withdraw fee
        uint256 withdrawFee = _wantAmt
            .mul(withdrawFeeFactorMax.sub(withdrawFeeFactor))
            .div(withdrawFeeFactorMax);
        IERC20(wantAddress).safeTransfer(vaultAddress, withdrawFee);
        
        _wantAmt = _wantAmt.sub(withdrawFee);

        IERC20(wantAddress).safeTransfer(vaultChefAddress, _wantAmt);

        if (!paused()) {
            // Put it all back in
            _leverage(wantLockedInHere());
        }

        return sharesRemoved;
    }
    
    function _supply(uint256 _amount) internal {
        IAaveStake(aaveDepositAddress).deposit(wantAddress, _amount, address(this), referralCode);
    }
    
    function _removeSupply(uint256 _amount) internal {
        IAaveStake(aaveDepositAddress).withdraw(wantAddress, _amount, address(this));
    }
    
    function _borrow(uint256 _amount) internal {
        IAaveStake(aaveDepositAddress).borrow(wantAddress, _amount, 2, referralCode, address(this));
    }
    
    function _repayBorrow(uint256 _amount) internal {
        IAaveStake(aaveDepositAddress).repay(wantAddress, _amount, 2, address(this));
    }
    
    /**
     * @dev Deposits token, withdraws a percentage, and deposits again
     * We stop at _borrow because we need some tokens to deleverage
     */
    function _leverage(uint256 _amount) internal {
        if (borrowDepth == 0) {
            _supply(_amount);
        } else if (_amount > minLeverage) {
            for (uint256 i = 0; i < borrowDepth; i++) {
                _supply(_amount);
                _amount = _amount.mul(borrowRate).div(BORROW_RATE_DIVISOR);
                _borrow(_amount);
            }
        }
    }
    
    /**
     * @dev Manually wind back one step in case contract gets stuck
     */
    function deleverageOnce() external onlyGov {
        _deleverageOnce();
    }
    
    function _deleverageOnce() internal {
        if (vTokenTotal() <= supplyBalTargeted()) {
            _removeSupply(vTokenTotal().sub(supplyBalMin()));
        } else {
            _removeSupply(vTokenTotal().sub(supplyBalTargeted()));
        }

        _repayBorrow(wantLockedInHere());
    }
    
    /**
     * @dev In Polygon, we can fully deleverage due to absurdly cheap fees
     */
    function _deleverage() internal {
        uint256 wantBal = wantLockedInHere();

        if (borrowDepth > 0) {
            while (wantBal < debtTotal()) {
                _repayBorrow(wantBal);
                _removeSupply(vTokenTotal().sub(supplyBalMin()));
                wantBal = wantLockedInHere();
            }
            
            _repayBorrow(wantBal);
        }
        _removeSupply(uint256(-1));
    }

    function earn() external nonReentrant whenNotPaused onlyGov {
        uint256 preEarn = IERC20(earnedAddress).balanceOf(address(this));

        // Harvest farm tokens
        IAaveStake(aaveClaimAddress).claimRewards(vTokenArray, uint256(-1), address(this));
        
        // Because we keep some tokens in this contract, we have to do this if earned is the same as want
        uint256 earnedAmt = IERC20(earnedAddress).balanceOf(address(this)).sub(preEarn);

        if (earnedAmt > 0) {
            earnedAmt = distributeFees(earnedAmt);
            earnedAmt = distributeRewards(earnedAmt);
            earnedAmt = buyBack(earnedAmt);
            
            if (earnedAddress != wantAddress) {
                _safeSwap(
                    earnedAmt,
                    earnedToWantPath,
                    address(this)
                );
            }
    
            lastEarnBlock = block.number;
    
            _leverage(wantLockedInHere());
        }
    }

    // To pay for earn function
    function distributeFees(uint256 _earnedAmt) internal returns (uint256) {
        if (controllerFee > 0) {
            uint256 fee = _earnedAmt.mul(controllerFee).div(feeMax);
            
            IWETH(wmaticAddress).withdraw(fee);
            safeTransferETH(feeAddress, fee);
            
            _earnedAmt = _earnedAmt.sub(fee);
        }

        return _earnedAmt;
    }

    function distributeRewards(uint256 _earnedAmt) internal returns (uint256) {
        if (rewardRate > 0) {
            uint256 fee = _earnedAmt.mul(rewardRate).div(feeMax);
    
            uint256 usdcBefore = IERC20(usdcAddress).balanceOf(address(this));
            
            _safeSwap(
                fee,
                earnedToUsdcPath,
                address(this)
            );
            
            uint256 usdcAfter = IERC20(usdcAddress).balanceOf(address(this)).sub(usdcBefore);
            
            IStrategyFish(rewardAddress).depositReward(usdcAfter);
            
            _earnedAmt = _earnedAmt.sub(fee);
        }

        return _earnedAmt;
    }

    function buyBack(uint256 _earnedAmt) internal returns (uint256) {
        if (buyBackRate > 0) {
            uint256 buyBackAmt = _earnedAmt.mul(buyBackRate).div(feeMax);
    
            _safeSwap(
                buyBackAmt,
                earnedToFishPath,
                buyBackAddress
            );

            _earnedAmt = _earnedAmt.sub(buyBackAmt);
        }
        
        return _earnedAmt;
    }

    // Emergency!!
    function pause() external onlyGov {
        _pause();
    }

    // False alarm
    function unpause() external onlyGov {
        _unpause();
        _resetAllowances();
    }
    
    function debtTotal() public view returns (uint256) {
        return IERC20(debtTokenAddress).balanceOf(address(this));
    }
    
    function supplyBalTargeted() public view returns (uint256) {
        return debtTotal().mul(BORROW_RATE_DIVISOR).div(borrowRate);
    }
    
    function supplyBalMin() public view returns (uint256) {
        return debtTotal().mul(BORROW_RATE_DIVISOR).div(BORROW_RATE_MAX_HARD);
    }
    
    function vTokenTotal() public view returns (uint256) {
        return IERC20(vTokenAddress).balanceOf(address(this));
    }
    
    function wantLockedInHere() public view returns (uint256) {
        return IERC20(wantAddress).balanceOf(address(this));
    }
    
    function wantLockedTotal() public view returns (uint256) {
        return wantLockedInHere()
            .add(vTokenTotal())
            .sub(debtTotal());
    }

    function _resetAllowances() internal {
        IERC20(wantAddress).safeApprove(aaveDepositAddress, uint256(0));
        IERC20(wantAddress).safeIncreaseAllowance(
            aaveDepositAddress,
            uint256(-1)
        );

        IERC20(earnedAddress).safeApprove(uniRouterAddress, uint256(0));
        IERC20(earnedAddress).safeIncreaseAllowance(
            uniRouterAddress,
            uint256(-1)
        );

        IERC20(usdcAddress).safeApprove(rewardAddress, uint256(0));
        IERC20(usdcAddress).safeIncreaseAllowance(
            rewardAddress,
            uint256(-1)
        );
    }

    function resetAllowances() external onlyGov {
        _resetAllowances();
    }

    function panic() external onlyGov {
        _pause();
        _deleverage();
    }

    function unpanic() external onlyGov {
        _unpause();
        _leverage(wantLockedInHere());
    }
    

    function rebalance(uint256 _borrowRate, uint256 _borrowDepth) external onlyGov {
        require(_borrowRate <= BORROW_RATE_MAX, "!rate");
        require(_borrowRate != 0, "borrowRate is used as a divisor");
        require(_borrowDepth <= BORROW_DEPTH_MAX, "!depth");

        _deleverage();
        borrowRate = _borrowRate;
        borrowDepth = _borrowDepth;
        _leverage(wantLockedInHere());
    }
    
    function setSettings(
        uint256 _controllerFee,
        uint256 _rewardRate,
        uint256 _buyBackRate,
        uint256 _withdrawFeeFactor,
        uint256 _slippageFactor,
        address _uniRouterAddress,
        uint16 _referralCode
    ) external onlyGov {
        require(_controllerFee.add(_rewardRate).add(_buyBackRate) <= feeMaxTotal, "Max fee of 10%");
        require(_withdrawFeeFactor >= withdrawFeeFactorLL, "_withdrawFeeFactor too low");
        require(_withdrawFeeFactor <= withdrawFeeFactorMax, "_withdrawFeeFactor too high");
        require(_slippageFactor <= slippageFactorUL, "_slippageFactor too high");
        controllerFee = _controllerFee;
        rewardRate = _rewardRate;
        buyBackRate = _buyBackRate;
        withdrawFeeFactor = _withdrawFeeFactor;
        slippageFactor = _slippageFactor;
        uniRouterAddress = _uniRouterAddress;
        referralCode = _referralCode;

        emit SetSettings(
            _controllerFee,
            _rewardRate,
            _buyBackRate,
            _withdrawFeeFactor,
            _slippageFactor,
            _uniRouterAddress,
            _referralCode
        );
    }

    function setGov(address _govAddress) external onlyGov {
        govAddress = _govAddress;
    }
    
    function _safeSwap(
        uint256 _amountIn,
        address[] memory _path,
        address _to
    ) internal {
        uint256[] memory amounts = IUniRouter02(uniRouterAddress).getAmountsOut(_amountIn, _path);
        uint256 amountOut = amounts[amounts.length.sub(1)];

        IUniRouter02(uniRouterAddress).swapExactTokensForTokens(
            _amountIn,
            amountOut.mul(slippageFactor).div(1000),
            _path,
            _to,
            now.add(600)
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }

    // tg @macatkevin
    receive() external payable {}
}

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 3 of 16: Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

File 4 of 16: IAaveStake.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IAaveStake {
    function depositETH(address lendingPool, address onBehalfOf, uint16 referralCode) external payable;
    
    function withdrawETH(address lendingPool, uint256 amount, address onBehalfOf) external;

    function repayETH(address lendingPool, uint256 amount, uint256 rateMode, address onBehalfOf) external payable;

    function borrowETH(address lendingPool, uint256 amount, uint256 interesRateMode, uint16 referralCode) external;
    
    function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) external payable;
    
    function withdraw(address asset, uint256 amount, address to) external;

    function borrow(address asset, uint256 amount, uint256 interesRateMode, uint16 referralCode, address onBehalfOf) external;

    function repay(address asset, uint256 amount, uint256 rateMode, address onBehalfOf) external payable;
    
    function getUserAccountData(address user) external view returns (uint256, uint256, uint256, uint256, uint256, uint256);
    
    
    function claimRewards(address[] calldata assets, uint256 amount, address to) external returns (uint256);
}

File 5 of 16: IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

File 6 of 16: IProtocolDataProvider.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

interface IProtocolDataProvider {
  struct TokenData {
    string symbol;
    address tokenAddress;
  }

  function getAllReservesTokens() external view returns (TokenData[] memory);
  function getAllATokens() external view returns (TokenData[] memory);
  function getReserveConfigurationData(address asset) external view returns (uint256 decimals, uint256 ltv, uint256 liquidationThreshold, uint256 liquidationBonus, uint256 reserveFactor, bool usageAsCollateralEnabled, bool borrowingEnabled, bool stableBorrowRateEnabled, bool isActive, bool isFrozen);
  function getReserveData(address asset) external view returns (uint256 availableLiquidity, uint256 totalStableDebt, uint256 totalVariableDebt, uint256 liquidityRate, uint256 variableBorrowRate, uint256 stableBorrowRate, uint256 averageStableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex, uint40 lastUpdateTimestamp);
  function getUserReserveData(address asset, address user) external view returns (uint256 currentATokenBalance, uint256 currentStableDebt, uint256 currentVariableDebt, uint256 principalStableDebt, uint256 scaledVariableDebt, uint256 stableBorrowRate, uint256 liquidityRate, uint40 stableRateLastUpdated, bool usageAsCollateralEnabled);
  function getReserveTokensAddresses(address asset) external view returns (address aTokenAddress, address stableDebtTokenAddress, address variableDebtTokenAddress);
}

File 7 of 16: IStrategyFish.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IStrategyFish {
    function depositReward(uint256 _depositAmt) external returns (bool);
}

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

pragma solidity 0.6.12;

interface IUniPair {
    function token0() external view returns (address);
    function token1() external view returns (address);
}

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

pragma solidity 0.6.12;

interface IUniRouter01 {
    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 10 of 16: IUniRouter02.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "./IUniRouter01.sol";

interface IUniRouter02 is IUniRouter01 {
    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 11 of 16: IWETH.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

File 12 of 16: Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

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

pragma solidity ^0.6.0;

import "./Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.6.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.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vaultChefAddress","type":"address"},{"internalType":"uint256","name":"_minLeverage","type":"uint256"},{"internalType":"address","name":"_wantAddress","type":"address"},{"internalType":"address","name":"_vTokenAddress","type":"address"},{"internalType":"address","name":"_debtTokenAddress","type":"address"},{"internalType":"address","name":"_earnedAddress","type":"address"},{"internalType":"address[]","name":"_earnedToUsdcPath","type":"address[]"},{"internalType":"address[]","name":"_earnedToFishPath","type":"address[]"},{"internalType":"address[]","name":"_earnedToWantPath","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_controllerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_rewardRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_buyBackRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_withdrawFeeFactor","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_slippageFactor","type":"uint256"},{"indexed":false,"internalType":"address","name":"_uniRouterAddress","type":"address"},{"indexed":false,"internalType":"uint16","name":"_referralCode","type":"uint16"}],"name":"SetSettings","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BORROW_DEPTH_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BORROW_RATE_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BORROW_RATE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BORROW_RATE_MAX_HARD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaveClaimAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaveDataAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaveDepositAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowDepth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controllerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleverageOnce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earnedAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"earnedToFishPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"earnedToUsdcPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"earnedToWantPath","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeMaxTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fishAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"govAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastEarnBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minLeverage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_borrowRate","type":"uint256"},{"internalType":"uint256","name":"_borrowDepth","type":"uint256"}],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"referralCode","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetAllowances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_govAddress","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_controllerFee","type":"uint256"},{"internalType":"uint256","name":"_rewardRate","type":"uint256"},{"internalType":"uint256","name":"_buyBackRate","type":"uint256"},{"internalType":"uint256","name":"_withdrawFeeFactor","type":"uint256"},{"internalType":"uint256","name":"_slippageFactor","type":"uint256"},{"internalType":"address","name":"_uniRouterAddress","type":"address"},{"internalType":"uint16","name":"_referralCode","type":"uint16"}],"name":"setSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharesTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippageFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"slippageFactorUL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyBalMin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"supplyBalTargeted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniRouterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpanic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdcAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vTokenArray","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vTokenTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultChefAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantLockedInHere","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wantLockedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFeeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeeFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeeFactorLL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFeeFactorMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wmaticAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526005805461ffff60a01b19169055600680546001600160a01b03191673a5e0829caced8ffdd4de3c43696c57f7d7a678ff178155436009556000600a8190556032600b55600c556101c2600d55612710600e556103b6600f5560115560086015553480156200007257600080fd5b50604051620043673803806200436783398181016040526101208110156200009957600080fd5b815160208301516040808501516060860151608087015160a088015160c08901805195519799969894979396929591948301929184640100000000821115620000e157600080fd5b908301906020820185811115620000f757600080fd5b82518660208202830111640100000000821117156200011557600080fd5b82525081516020918201928201910280838360005b83811015620001445781810151838201526020016200012a565b50505050905001604052602001805160405193929190846401000000008211156200016e57600080fd5b9083019060208201858111156200018457600080fd5b8251866020820283011164010000000082111715620001a257600080fd5b82525081516020918201928201910280838360005b83811015620001d1578181015183820152602001620001b7565b5050505090500160405260200180516040519392919084640100000000821115620001fb57600080fd5b9083019060208201858111156200021157600080fd5b82518660208202830111640100000000821117156200022f57600080fd5b82525081516020918201928201910280838360005b838110156200025e57818101518382015260200162000244565b5050505090500160405250505060006200027d6200056860201b60201c565b600080546001600160a01b0319166001600160a01b038316908117825560405192935091600080516020620042e7833981519152908290a35060018080556002805460088054336001600160a01b0319918216179091556007805482166001600160a01b038f81169190911790915560128d90556001600160a81b03199092166101008c8416021790925560038054909216898216179182905560408051602081019091529116815262000335916016919062000e31565b50600480546001600160a01b038088166001600160a01b031992831617909255600580549287169290911691909117905582516200037b90601790602086019062000e31565b5081516200039190601890602085019062000e31565b508051620003a790601990602084019062000e31565b5060025460408051633e15014160e01b81526101009092046001600160a01b0316600483015251600091829182918291737551b5d2763519d4e37e8b81929d336de671d46d91633e15014191602480830192610140929190829003018186803b1580156200041457600080fd5b505afa15801562000429573d6000803e3d6000fd5b505050506040513d6101408110156200044157600080fd5b50602080820151604083015160a084015160c090940151919750955091935090915062000498906064906200048490879060639062001e016200056c821b17901c565b620005d360201b62001e631790919060201c565b601355620004bc6103e862000484866103e76200056c602090811b62001e0117901c565b601455601354620004e1600a620004848660096200056c602090811b62001e0117901c565b1115620004f45760135460105562000519565b62000515600a620004846009866200056c60201b62001e011790919060201c565b6010555b818015620005245750805b6200053457600060118190556015555b6007546200054b906001600160a01b03166200061d565b620005556200071b565b5050505050505050505050505062000ebc565b3390565b6000826200057d57506000620005cd565b828202828482816200058b57fe5b0414620005ca5760405162461bcd60e51b8152600401808060200182810382526021815260200180620042c66021913960400191505060405180910390fd5b90505b92915050565b6000620005ca83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200087a60201b60201c565b6200062762000568565b6000546001600160a01b039081169116146200068a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116620006d15760405162461bcd60e51b8152600401808060200182810382526026815260200180620042a06026913960400191505060405180910390fd5b600080546040516001600160a01b0380851693921691600080516020620042e783398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546200075a9061010090046001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf600062000921602090811b62001ea517901c565b6002546200079a9061010090046001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf60001962000a45602090811b62001fbd17901c565b600654600554620007c6916001600160a01b039182169116600062000921602090811b62001ea517901c565b600654600554620007f3916001600160a01b03918216911660001962000a45602090811b62001fbd17901c565b62000835732791bca1f2de4661ed88a30c99a7a9449aa8417473917fb15e8aaa12264dcbdc15afef7cd3ce76ba39600062000921602090811b62001ea517901c565b62000878732791bca1f2de4661ed88a30c99a7a9449aa8417473917fb15e8aaa12264dcbdc15afef7cd3ce76ba3960001962000a45602090811b62001fbd17901c565b565b600081836200090a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620008ce578181015183820152602001620008b4565b50505050905090810190601f168015620008fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200091757fe5b0495945050505050565b801580620009ab575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200097b57600080fd5b505afa15801562000990573d6000803e3d6000fd5b505050506040513d6020811015620009a757600080fd5b5051155b620009e85760405162461bcd60e51b8152600401808060200182810382526036815260200180620043316036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915262000a4091859162000b4e16565b505050565b600062000aec82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801562000aab57600080fd5b505afa15801562000ac0573d6000803e3d6000fd5b505050506040513d602081101562000ad757600080fd5b50519062000c0a602090811b620020ae17901c565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b1790915291925062000b489186919062000b4e16565b50505050565b606062000baa826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000c6560201b62002108179092919060201c565b80519091501562000a405780806020019051602081101562000bcb57600080fd5b505162000a405760405162461bcd60e51b815260040180806020018281038252602a81526020018062004307602a913960400191505060405180910390fd5b600082820183811015620005ca576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b606062000c76848460008562000c7e565b949350505050565b606062000c8b8562000df7565b62000cdd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831062000d1e5780518252601f19909201916020918201910162000cfd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000d82576040519150601f19603f3d011682016040523d82523d6000602084013e62000d87565b606091505b5091509150811562000d9d57915062000c769050565b80511562000dae5780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315620008ce578181015183820152602001620008b4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159062000c76575050151592915050565b82805482825590600052602060002090810192821562000e89579160200282015b8281111562000e8957825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000e52565b5062000e9792915062000e9b565b5090565b5b8082111562000e975780546001600160a01b031916815560010162000e9c565b6133d48062000ecc6000396000f3fe6080604052600436106103c75760003560e01c80637c3f1e8c116101f2578063b4896ecc1161010d578063e6384d95116100a0578063f2fde38b1161006f578063f2fde38b146109fc578063f3fef3a314610a2f578063ffbd3b1f14610a68578063ffbe9f1e14610672576103ce565b8063e6384d9514610672578063e7198474146109bd578063e7a03679146109d2578063e7e7e387146109e7576103ce565b8063d389800f116100dc578063d389800f14610937578063d8b6d2521461094c578063db4b7eee14610978578063df8879b81461098d576103ce565b8063b4896ecc146108c5578063b74cd242146108da578063c914b437146108ef578063cfad57a214610904576103ce565b80638fefda06116101855780639872317f116101545780639872317f1461082b5780639e6b2ded14610840578063a430204414610855578063ad269e211461086a576103ce565b80638fefda06146107d7578063933a9e63146107ec57806393790113146108015780639768431714610816576103ce565b8063866b2018116101c1578063866b20181461076e5780638811dad0146107835780638cf57cb9146107ad5780638da5cb5b146107c2576103ce565b80637c3f1e8c146107055780637c44477e1461071a5780638456cb591461074457806385f02dd614610759576103ce565b806344a3955e116102e257806365a5e30b11610275578063715018a611610244578063715018a6146106b1578063783478ad146106c6578063784def8c146106db5780637b0a47ee146106f0576103ce565b806365a5e30b1461065d57806367057b6c1461067257806368f5416214610687578063693a090b1461069c576103ce565b806349281683116102b157806349281683146105e05780634f7405261461060a5780635c975abb1461061f578063624e260f14610648576103ce565b806344a3955e1461056857806346008a071461057d5780634700d3051461059257806347e7ef24146105a7576103ce565b80633505b09f1161035a57806341275358116103295780634127535814610514578063424ef45a1461052957806342da4eb31461053e578063430bf08a14610553576103ce565b80633505b09f146104a957806338946a8c146104c05780633ec80dcd146104ea5780633f4ba83a146104ff576103ce565b806320f6f76f1161039657806320f6f76f1461045557806325d8a5301461046a5780632792bd571461047f5780633220d73214610494576103ce565b806302d45457146103d35780630fa4e01e1461040457806314b5f8d11461042b578063178a8d0714610440576103ce565b366103ce57005b600080fd5b3480156103df57600080fd5b506103e8610a7d565b604080516001600160a01b039092168252519081900360200190f35b34801561041057600080fd5b50610419610a95565b60408051918252519081900360200190f35b34801561043757600080fd5b50610419610a9b565b34801561044c57600080fd5b50610419610ac2565b34801561046157600080fd5b50610419610ac8565b34801561047657600080fd5b506103e8610ace565b34801561048b57600080fd5b506103e8610ae6565b3480156104a057600080fd5b506103e8610af5565b3480156104b557600080fd5b506104be610b04565b005b3480156104cc57600080fd5b506103e8600480360360208110156104e357600080fd5b5035610b56565b3480156104f657600080fd5b50610419610b7d565b34801561050b57600080fd5b506104be610bf9565b34801561052057600080fd5b506103e8610c49565b34801561053557600080fd5b506103e8610c61565b34801561054a57600080fd5b50610419610c79565b34801561055f57600080fd5b506103e8610ca5565b34801561057457600080fd5b50610419610cbd565b34801561058957600080fd5b506103e8610cc3565b34801561059e57600080fd5b506104be610cd2565b3480156105b357600080fd5b50610419600480360360408110156105ca57600080fd5b506001600160a01b038135169060200135610d2a565b3480156105ec57600080fd5b506103e86004803603602081101561060357600080fd5b5035610ea4565b34801561061657600080fd5b506103e8610eb1565b34801561062b57600080fd5b50610634610ec9565b604080519115158252519081900360200190f35b34801561065457600080fd5b50610419610ed2565b34801561066957600080fd5b506104be610ed8565b34801561067e57600080fd5b50610419610f38565b34801561069357600080fd5b50610419610f3e565b3480156106a857600080fd5b506103e8610f44565b3480156106bd57600080fd5b506104be610f53565b3480156106d257600080fd5b506103e8610ff5565b3480156106e757600080fd5b506103e8610ffb565b3480156106fc57600080fd5b50610419611013565b34801561071157600080fd5b506104be611019565b34801561072657600080fd5b506103e86004803603602081101561073d57600080fd5b5035611069565b34801561075057600080fd5b506104be611076565b34801561076557600080fd5b506104196110c6565b34801561077a57600080fd5b506104196110cc565b34801561078f57600080fd5b506103e8600480360360208110156107a657600080fd5b50356110d2565b3480156107b957600080fd5b506103e86110df565b3480156107ce57600080fd5b506103e86110f7565b3480156107e357600080fd5b50610419611106565b3480156107f857600080fd5b506103e861110c565b34801561080d57600080fd5b5061041961111b565b34801561082257600080fd5b5061041961116b565b34801561083757600080fd5b506103e8611171565b34801561084c57600080fd5b50610419611189565b34801561086157600080fd5b5061041961118f565b34801561087657600080fd5b506104be600480360360e081101561088d57600080fd5b5080359060208101359060408101359060608101359060808101359060a08101356001600160a01b03169060c0013561ffff166111a5565b3480156108d157600080fd5b50610419611405565b3480156108e657600080fd5b5061041961140b565b3480156108fb57600080fd5b50610419611411565b34801561091057600080fd5b506104be6004803603602081101561092757600080fd5b50356001600160a01b0316611417565b34801561094357600080fd5b506104be611481565b34801561095857600080fd5b50610961611815565b6040805161ffff9092168252519081900360200190f35b34801561098457600080fd5b506103e8611826565b34801561099957600080fd5b506104be600480360360408110156109b057600080fd5b508035906020013561183e565b3480156109c957600080fd5b506103e8611978565b3480156109de57600080fd5b506103e8611987565b3480156109f357600080fd5b5061041961199b565b348015610a0857600080fd5b506104be60048036036020811015610a1f57600080fd5b50356001600160a01b03166119ea565b348015610a3b57600080fd5b5061041960048036036040811015610a5257600080fd5b506001600160a01b038135169060200135611ae2565b348015610a7457600080fd5b50610419611dfb565b732791bca1f2de4661ed88a30c99a7a9449aa8417481565b60095481565b6000610abd601454610ab7612710610ab161199b565b90611e01565b90611e63565b905090565b600d5481565b60125481565b73357d51124f59836ded84c8a1730d72b749d8bc2381565b6003546001600160a01b031681565b6007546001600160a01b031681565b6008546001600160a01b03163314610b4c576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610b5461211f565b565b60198181548110610b6357fe5b6000918252602090912001546001600160a01b0316905081565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610bc857600080fd5b505afa158015610bdc573d6000803e3d6000fd5b505050506040513d6020811015610bf257600080fd5b5051905090565b6008546001600160a01b03163314610c41576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610b4c612228565b731cb757f1eb92f25a917ce9a92ed88c1ac073433481565b737551b5d2763519d4e37e8b81929d336de671d46d81565b6000610abd610c8661199b565b610c9f610c91610b7d565b610c9961111b565b906120ae565b906122c6565b734879712c5d1a98c0b88fb700daff5c65d12fd72981565b600a5481565b6008546001600160a01b031681565b6008546001600160a01b03163314610d1a576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610d22612308565b610b54612389565b6000610d346123f8565b6000546001600160a01b03908116911614610d84576040805162461bcd60e51b8152602060048201819052602482015260008051602061331f833981519152604482015290519081900360640190fd5b60026001541415610ddc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555460ff1615610e2c576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6000610e36610c79565b600254909150610e569061010090046001600160a01b03163330866123fc565b6000610e6184612456565b600a5490915015610e8857610e8582610ab7600a5484611e0190919063ffffffff16565b90505b600a54610e9590826120ae565b600a5560018055949350505050565b60178181548110610b6357fe5b738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf81565b60025460ff1690565b60135481565b6008546001600160a01b03163314610f20576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610f28612228565b610b54610f3361111b565b6124a1565b61271081565b600e5481565b6006546001600160a01b031681565b610f5b6123f8565b6000546001600160a01b03908116911614610fab576040805162461bcd60e51b8152602060048201819052602482015260008051602061331f833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b61dead81565b7347231b2ecb18b7724560a78cd7191b121f53fabc81565b600c5481565b6008546001600160a01b03163314611061576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610b54612504565b60168181548110610b6357fe5b6008546001600160a01b031633146110be576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b610b54612308565b600b5481565b6126ac81565b60188181548110610b6357fe5b73917fb15e8aaa12264dcbdc15afef7cd3ce76ba3981565b6000546001600160a01b031690565b6103e881565b6004546001600160a01b031681565b600254604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610bc857600080fd5b60115481565b733a3df212b7aa91aa0402b9035b098891d276572b81565b60145481565b6000610abd601054610ab7612710610ab161199b565b6008546001600160a01b031633146111ed576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6103e86111fe86610c998a8a6120ae565b1115611242576040805162461bcd60e51b815260206004820152600e60248201526d4d617820666565206f662031302560901b604482015290519081900360640190fd5b6126ac841015611299576040805162461bcd60e51b815260206004820152601a60248201527f5f7769746864726177466565466163746f7220746f6f206c6f77000000000000604482015290519081900360640190fd5b6127108411156112f0576040805162461bcd60e51b815260206004820152601b60248201527f5f7769746864726177466565466163746f7220746f6f20686967680000000000604482015290519081900360640190fd5b6103e3831115611347576040805162461bcd60e51b815260206004820152601860248201527f5f736c697070616765466163746f7220746f6f20686967680000000000000000604482015290519081900360640190fd5b600b879055600c869055600d859055600e849055600f839055600680546001600160a01b0319166001600160a01b0384169081179091556005805461ffff60a01b1916600160a01b61ffff851690810291909117909155604080518a8152602081018a9052808201899052606081018890526080810187905260a081019390935260c0830191909152517f2f2d8e57941eb99c211890b9cac03ae5e9ef1791310c0f697900f69071fb79f79160e0908290030190a150505050505050565b60155481565b6103e381565b60105481565b6008546001600160a01b0316331461145f576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600260015414156114d9576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555460ff1615611529576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6008546001600160a01b03163314611571576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156115bc57600080fd5b505afa1580156115d0573d6000803e3d6000fd5b505050506040513d60208110156115e657600080fd5b5051604051633111e7b360e01b8152600019602482018190523060448301819052606060048401908152601680546064860181905295965073357d51124f59836ded84c8a1730d72b749d8bc2395633111e7b395919493929182916084909101908690801561167e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611660575b5050945050505050602060405180830381600087803b1580156116a057600080fd5b505af11580156116b4573d6000803e3d6000fd5b505050506040513d60208110156116ca57600080fd5b5050600554604080516370a0823160e01b815230600482015290516000926117529285926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561172057600080fd5b505afa158015611734573d6000803e3d6000fd5b505050506040513d602081101561174a57600080fd5b5051906122c6565b9050801561180d576117638161254a565b905061176e81612616565b90506117798161282a565b60025460055491925061010090046001600160a01b039081169116146117fe576117fe8160198054806020026020016040519081016040528092919081815260200182805480156117f357602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116117d5575b5050505050306128b7565b4360095561180d610f3361111b565b505060018055565b600554600160a01b900461ffff1681565b730d500b1d8e8ef31e21c99d1db9a6444d3adf127081565b6008546001600160a01b03163314611886576040805162461bcd60e51b8152602060048083019190915260248201526310b3b7bb60e11b604482015290519081900360640190fd5b6013548211156118c5576040805162461bcd60e51b8152602060048201526005602482015264217261746560d81b604482015290519081900360640190fd5b81611917576040805162461bcd60e51b815260206004820152601f60248201527f626f72726f7752617465206973207573656420617320612064697669736f7200604482015290519081900360640190fd5b601554811115611957576040805162461bcd60e51b8152602060048201526006602482015265042c8cae0e8d60d31b604482015290519081900360640190fd5b61195f612389565b60108290556011819055611974610f3361111b565b5050565b6005546001600160a01b031681565b60025461010090046001600160a01b031681565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b158015610bc857600080fd5b6119f26123f8565b6000546001600160a01b03908116911614611a42576040805162461bcd60e51b8152602060048201819052602482015260008051602061331f833981519152604482015290519081900360640190fd5b6001600160a01b038116611a875760405162461bcd60e51b81526004018080602001828103825260268152602001806132a46026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000611aec6123f8565b6000546001600160a01b03908116911614611b3c576040805162461bcd60e51b8152602060048201819052602482015260008051602061331f833981519152604482015290519081900360640190fd5b60026001541415611b94576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015581611bdb576040805162461bcd60e51b815260206004820152600d60248201526c05f77616e74416d74206973203609c1b604482015290519081900360640190fd5b600254604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611c2b57600080fd5b505afa158015611c3f573d6000803e3d6000fd5b505050506040513d6020811015611c5557600080fd5b5051905080831115611ce757611c69612389565b600254604080516370a0823160e01b815230600482015290516101009092046001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611cb857600080fd5b505afa158015611ccc573d6000803e3d6000fd5b505050506040513d6020811015611ce257600080fd5b505190505b80831115611cf3578092505b611cfb610c79565b831115611d0d57611d0a610c79565b92505b6000611d28611d1a610c79565b600a54610ab7908790611e01565b9050600a54811115611d395750600a545b600a54611d4690826122c6565b600a819055506000611d75612710610ab7611d6e600e546127106122c690919063ffffffff16565b8890611e01565b600254909150611da89061010090046001600160a01b0316734879712c5d1a98c0b88fb700daff5c65d12fd72983612bf5565b611db285826122c6565b600754600254919650611dd79161010090046001600160a01b03908116911687612bf5565b611ddf610ec9565b611dee57611dee610f3361111b565b5060018055949350505050565b600f5481565b600082611e1057506000611e5d565b82820282848281611e1d57fe5b0414611e5a5760405162461bcd60e51b81526004018080602001828103825260218152602001806132fe6021913960400191505060405180910390fd5b90505b92915050565b6000611e5a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612c47565b801580611f2b575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611efd57600080fd5b505afa158015611f11573d6000803e3d6000fd5b505050506040513d6020811015611f2757600080fd5b5051155b611f665760405162461bcd60e51b81526004018080602001828103825260368152602001806133696036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611fb8908490612ce9565b505050565b600061205382856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561202157600080fd5b505afa158015612035573d6000803e3d6000fd5b505050506040513d602081101561204b57600080fd5b5051906120ae565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790529091506120a8908590612ce9565b50505050565b600082820183811015611e5a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60606121178484600085612d9a565b949350505050565b6002546121509061010090046001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf6000611ea5565b6002546121829061010090046001600160a01b0316738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf600019611fbd565b6006546005546121a0916001600160a01b0391821691166000611ea5565b6006546005546121bf916001600160a01b039182169116600019611fbd565b6121f3732791bca1f2de4661ed88a30c99a7a9449aa8417473917fb15e8aaa12264dcbdc15afef7cd3ce76ba396000611ea5565b610b54732791bca1f2de4661ed88a30c99a7a9449aa8417473917fb15e8aaa12264dcbdc15afef7cd3ce76ba39600019611fbd565b60025460ff16612276576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122a96123f8565b604080516001600160a01b039092168252519081900360200190a1565b6000611e5a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f07565b60025460ff1615612353576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586122a96123f8565b600061239361111b565b601154909150156123ea575b6123a761199b565b8110156123e1576123b781612f61565b6123d26123cd6123c5610a9b565b610c9f610b7d565b612ff5565b6123da61111b565b905061239f565b6123ea81612f61565b6123f5600019612ff5565b50565b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526120a8908590612ce9565b60008061246161111b565b90508061247257600091505061249c565b600061248084610c9f610c79565b905061248b826124a1565b61249781610c9f610c79565b925050505b919050565b6011546124b6576124b181613064565b6123f5565b6012548111156123f55760005b601154811015611974576124d682613064565b6124f1612710610ab760105485611e0190919063ffffffff16565b91506124fc826130ea565b6001016124c3565b61250c61118f565b612514610b7d565b1161252c576125276123cd6123c5610a9b565b61253a565b61253a6123cd6123c561118f565b610b5461254561111b565b612f61565b600b5460009015612612576000612572612710610ab7600b5486611e0190919063ffffffff16565b9050730d500b1d8e8ef31e21c99d1db9a6444d3adf12706001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156125ce57600080fd5b505af11580156125e2573d6000803e3d6000fd5b50505050612604731cb757f1eb92f25a917ce9a92ed88c1ac073433482613177565b61260e83826122c6565b9250505b5090565b600c546000901561261257600061263e612710610ab7600c5486611e0190919063ffffffff16565b604080516370a0823160e01b81523060048201529051919250600091732791bca1f2de4661ed88a30c99a7a9449aa84174916370a08231916024808301926020929190829003018186803b15801561269557600080fd5b505afa1580156126a9573d6000803e3d6000fd5b505050506040513d60208110156126bf57600080fd5b50516017805460408051602083810282018101909252828152939450612727938693909290918301828280156117f3576020028201919060005260206000209081546001600160a01b031681526001909101906020018083116117d5575050505050306128b7565b600061278e82732791bca1f2de4661ed88a30c99a7a9449aa841746001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561172057600080fd5b905073917fb15e8aaa12264dcbdc15afef7cd3ce76ba396001600160a01b0316631e2720ff826040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156127ea57600080fd5b505af11580156127fe573d6000803e3d6000fd5b505050506040513d602081101561281457600080fd5b50612821905085846122c6565b95945050505050565b600d5460009015612612576000612852612710610ab7600d5486611e0190919063ffffffff16565b90506126048160188054806020026020016040519081016040528092919081815260200182805480156128ae57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612890575b505050505061dead5b6006546040805163d06ca61f60e01b815260048101868152602482019283528551604483015285516060946001600160a01b03169363d06ca61f9389938993909291606401906020808601910280838360005b8381101561292257818101518382015260200161290a565b50505050905001935050505060006040518083038186803b15801561294657600080fd5b505afa15801561295a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561298357600080fd5b81019080805160405193929190846401000000008211156129a357600080fd5b9083019060208201858111156129b857600080fd5b82518660208202830111640100000000821117156129d557600080fd5b82525081516020918201928201910280838360005b83811015612a025781810151838201526020016129ea565b505050509050016040525050509050600081612a29600184516122c690919063ffffffff16565b81518110612a3357fe5b60200260200101519050600660009054906101000a90046001600160a01b03166001600160a01b03166338ed173986612a7d6103e8610ab7600f5487611e0190919063ffffffff16565b8787612a8b426102586120ae565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015612afb578181015183820152602001612ae3565b505050509050019650505050505050600060405180830381600087803b158015612b2457600080fd5b505af1158015612b38573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612b6157600080fd5b8101908080516040519392919084640100000000821115612b8157600080fd5b908301906020820185811115612b9657600080fd5b8251866020820283011164010000000082111715612bb357600080fd5b82525081516020918201928201910280838360005b83811015612be0578181015183820152602001612bc8565b50505050905001604052505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611fb8908490612ce9565b60008183612cd35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c98578181015183820152602001612c80565b50505050905090810190601f168015612cc55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581612cdf57fe5b0495945050505050565b6060612d3e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121089092919063ffffffff16565b805190915015611fb857808060200190516020811015612d5d57600080fd5b5051611fb85760405162461bcd60e51b815260040180806020018281038252602a81526020018061333f602a913960400191505060405180910390fd5b6060612da58561326a565b612df6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612e355780518252601f199092019160209182019101612e16565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612e97576040519150601f19603f3d011682016040523d82523d6000602084013e612e9c565b606091505b50915091508115612eb05791506121179050565b805115612ec05780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612c98578181015183820152602001612c80565b60008184841115612f595760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612c98578181015183820152602001612c80565b505050900390565b600280546040805163573ade8160e01b81526101009092046001600160a01b031660048301526024820184905260448201929092523060648201529051738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9163573ade8191608480830192600092919082900301818387803b158015612fda57600080fd5b505af1158015612fee573d6000803e3d6000fd5b5050505050565b60025460408051631a4ca37b60e21b81526101009092046001600160a01b031660048301526024820183905230604483015251738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf916369328dec91606480830192600092919082900301818387803b158015612fda57600080fd5b6002546005546040805163e8eda9df60e01b81526101009093046001600160a01b031660048401526024830184905230604484015261ffff600160a01b90920491909116606483015251738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9163e8eda9df91608480830192600092919082900301818387803b158015612fda57600080fd5b600280546005546040805163a415bcad60e01b81526101009093046001600160a01b0316600484015260248301859052604483019390935261ffff600160a01b9091041660648201523060848201529051738dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf9163a415bcad9160a480830192600092919082900301818387803b158015612fda57600080fd5b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b602083106131c35780518252601f1990920191602091820191016131a4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613225576040519150601f19603f3d011682016040523d82523d6000602084013e61322a565b606091505b5050905080611fb85760405162461bcd60e51b81526004018080602001828103825260348152602001806132ca6034913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061249757505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735472616e7366657248656c7065723a3a736166655472616e736665724554483a20455448207472616e73666572206661696c6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212200a53eee16cbf8fee947983385b606084e96c3bed4e21caaa848ac460bdce82c164736f6c634300060c00334f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f778be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000bda1f897e851c7ef22cd490d2cf2dace4645a9040000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000008df3aad3a84da6b69a4da8aec3ea40d9091b2ac400000000000000000000000059e8e9100cbfcbcbadf86b9279fa61526bbb87650000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000003a3df212b7aa91aa0402b9035b098891d276572b0000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

338:16422:15:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1091:80;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;1091:80:15;;;;;;;;;;;;;;1685:43;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;12811:140;;;;;;;;;;;;;:::i;1934:32::-;;;;;;;;;;;;;:::i;2873:26::-;;;;;;;;;;;;;:::i;652:85::-;;;;;;;;;;;;;:::i;775:28::-;;;;;;;;;;;;;:::i;1616:31::-;;;;;;;;;;;;;:::i;14012:79::-;;;;;;;;;;;;;:::i;:::-;;3193:33;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3193:33:15;;:::i;12961:123::-;;;;;;;;;;;;;:::i;12431:91::-;;;;;;;;;;;;;:::i;1438:79::-;;;;;;;;;;;;;:::i;469:84::-;;;;;;;;;;;;;:::i;13230:161::-;;;;;;;;;;;;;:::i;1351:81::-;;;;;;;;;;;;;:::i;1734:30::-;;;;;;;;;;;;;:::i;1653:25::-;;;;;;;;;;;;;:::i;14097:82::-;;;;;;;;;;;;;:::i;5209:696::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5209:696:15;;;;;;;;:::i;3115:33::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3115:33:15;;:::i;559:87::-;;;;;;;;;;;;;:::i;1073:78:11:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;2905:30:15;;;;;;;;;;;;;:::i;14185:102::-;;;;;;;;;;;;;:::i;2142:52::-;;;;;;;;;;;;;:::i;2077:40::-;;;;;;;;;;;;;:::i;921:76::-;;;;;;;;;;;;;:::i;1737:148:10:-;;;;;;;;;;;;;:::i;1771:83:15:-;;;;;;;;;;;;;:::i;1523:87::-;;;;;;;;;;;;;:::i;1899:29::-;;;;;;;;;;;;;:::i;8910:77::-;;;;;;;;;;;;;:::i;3081:28::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3081:28:15;;:::i;12347:59::-;;;;;;;;;;;;;:::i;1860:33::-;;;;;;;;;;;;;:::i;2200:50::-;;;;;;;;;;;;;:::i;3154:33::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3154:33:15;;:::i;1263:82::-;;;;;;;;;;;;;:::i;1095:79:10:-;;;;;;;;;;;;;:::i;1972:42:15:-;;;;;;;;;;;;;:::i;809:31::-;;;;;;;;;;;;;:::i;13094:126::-;;;;;;;;;;;;;:::i;2837:30::-;;;;;;;;;;;;;:::i;1177:80::-;;;;;;;;;;;;;:::i;2941:35::-;;;;;;;;;;;;;:::i;12666:135::-;;;;;;;;;;;;;:::i;14716:1160::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14716:1160:15;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;14716:1160:15;;;;;;;;:::i;2982:35::-;;;;;;;;;;;;;:::i;2331:46::-;;;;;;;;;;;;;:::i;2806:25::-;;;;;;;;;;;;;:::i;15882:95::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15882:95:15;-1:-1:-1;;;;;15882:95:15;;:::i;9818:977::-;;;;;;;;;;;;;:::i;880:30::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1003:82;;;;;;;;;;;;;:::i;14298:408::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14298:408:15;;;;;;;:::i;846:28::-;;;;;;;;;;;;;:::i;743:26::-;;;;;;;;;;;;;:::i;12532:124::-;;;;;;;;;;;;;:::i;2040:244:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2040:244:10;-1:-1:-1;;;;;2040:244:10;;:::i;6286:1360:15:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;6286:1360:15;;;;;;;;:::i;2257:35::-;;;;;;;;;;;;;:::i;1091:80::-;1129:42;1091:80;:::o;1685:43::-;;;;:::o;12811:140::-;12856:7;12882:62;12923:20;;12882:36;3069:5;12882:11;:9;:11::i;:::-;:15;;:36::i;:::-;:40;;:62::i;:::-;12875:69;;12811:140;:::o;1934:32::-;;;;:::o;2873:26::-;;;;:::o;652:85::-;695:42;652:85;:::o;775:28::-;;;-1:-1:-1;;;;;775:28:15;;:::o;1616:31::-;;;-1:-1:-1;;;;;1616:31:15;;:::o;14012:79::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;14066:18:::1;:16;:18::i;:::-;14012:79::o:0;3193:33::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3193:33:15;;-1:-1:-1;3193:33:15;:::o;12961:123::-;13038:13;;13031:46;;;-1:-1:-1;;;13031:46:15;;13071:4;13031:46;;;;;;13005:7;;-1:-1:-1;;;;;13038:13:15;;13031:31;;:46;;;;;;;;;;;;;;13038:13;13031:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13031:46:15;;-1:-1:-1;12961:123:15;:::o;12431:91::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;12477:10:::1;:8;:10::i;1438:79::-:0;1475:42;1438:79;:::o;469:84::-;511:42;469:84;:::o;13230:161::-;13278:7;13304:80;13372:11;:9;:11::i;:::-;13304:50;13340:13;:11;:13::i;:::-;13304:18;:16;:18::i;:::-;:35;;:50::i;:::-;:67;;:80::i;1351:81::-;1390:42;1351:81;:::o;1734:30::-;;;;:::o;1653:25::-;;;-1:-1:-1;;;;;1653:25:15;;:::o;14097:82::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;14141:8:::1;:6;:8::i;:::-;14159:13;:11;:13::i;5209:696::-:0;5321:7;1317:12:10;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:10;;;:22;;;1299:67;;;;;-1:-1:-1;;;1299:67:10;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1299:67:10;;;;;;;;;;;;;;;1704:1:12::1;2310:7;;:19;;2302:63;;;::::0;;-1:-1:-1;;;2302:63:12;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1704:1;2443:7;:18:::0;;;1391:7:11;::::2;;1390:8;1382:37;;;::::0;;-1:-1:-1;;;1382:37:11;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;1382:37:11;;;;;;;;;;;;;::::2;;5384:24:15::3;5411:17;:15;:17::i;:::-;5446:11;::::0;5384:44;;-1:-1:-1;5439:128:15::3;::::0;5446:11:::3;::::0;::::3;-1:-1:-1::0;;;;;5446:11:15::3;5497:10;5530:4;5549:8:::0;5439:36:::3;:128::i;:::-;5661:19;5683:15;5689:8;5683:5;:15::i;:::-;5712:11;::::0;5661:37;;-1:-1:-1;5712:15:15;5708:110:::3;;5757:50;5790:16;5757:28;5773:11;;5757;:15;;:28;;;;:::i;:50::-;5743:64;;5708:110;5841:11;::::0;:28:::3;::::0;5857:11;5841:15:::3;:28::i;:::-;5827:11;:42:::0;1660:1:12::1;2622:22:::0;;5887:11:15;5209:696;-1:-1:-1;;;;5209:696:15:o;3115:33::-;;;;;;;;;;559:87;604:42;559:87;:::o;1073:78:11:-;1136:7;;;;1073:78;:::o;2905:30:15:-;;;;:::o;14185:102::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;14231:10:::1;:8;:10::i;:::-;14251:29;14261:18;:16;:18::i;:::-;14251:9;:29::i;2142:52::-:0;2189:5;2142:52;:::o;2077:40::-;;;;:::o;921:76::-;;;-1:-1:-1;;;;;921:76:15;;:::o;1737:148:10:-;1317:12;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:10;;;:22;;;1299:67;;;;;-1:-1:-1;;;1299:67:10;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1299:67:10;;;;;;;;;;;;;;;1844:1:::1;1828:6:::0;;1807:40:::1;::::0;-1:-1:-1;;;;;1828:6:10;;::::1;::::0;1807:40:::1;::::0;1844:1;;1807:40:::1;1875:1;1858:19:::0;;-1:-1:-1;;;;;;1858:19:10::1;::::0;;1737:148::o;1771:83:15:-;1812:42;1771:83;:::o;1523:87::-;1568:42;1523:87;:::o;1899:29::-;;;;:::o;8910:77::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;8963:17:::1;:15;:17::i;3081:28::-:0;;;;;;;;;;12347:59;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;12391:8:::1;:6;:8::i;1860:33::-:0;;;;:::o;2200:50::-;2246:4;2200:50;:::o;3154:33::-;;;;;;;;;;1263:82;1303:42;1263:82;:::o;1095:79:10:-;1133:7;1160:6;-1:-1:-1;;;;;1160:6:10;1095:79;:::o;1972:42:15:-;2010:4;1972:42;:::o;809:31::-;;;-1:-1:-1;;;;;809:31:15;;:::o;13094:126::-;13176:11;;13169:44;;;-1:-1:-1;;;13169:44:15;;13207:4;13169:44;;;;;;-1:-1:-1;;13176:11:15;;;-1:-1:-1;;;;;13176:11:15;;13169:29;;:44;;;;;;;;;;;;;;13176:11;13169:44;;;;;;;;;;2837:30;;;;:::o;1177:80::-;1215:42;1177:80;:::o;2941:35::-;;;;:::o;12666:135::-;12716:7;12742:52;12783:10;;12742:36;3069:5;12742:11;:9;:11::i;14716:1160::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;2010:4:::1;15003:49;15039:12:::0;15003:31:::1;:14:::0;15022:11;15003:18:::1;:31::i;:49::-;:64;;14995:91;;;::::0;;-1:-1:-1;;;14995:91:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14995:91:15;;;;;;;;;;;;;::::1;;2246:4;15104:18;:41;;15096:80;;;::::0;;-1:-1:-1;;;15096:80:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;2189:5;15194:18;:42;;15186:82;;;::::0;;-1:-1:-1;;;15186:82:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;2374:3;15286:15;:35;;15278:72;;;::::0;;-1:-1:-1;;;15278:72:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;15360:13;:30:::0;;;15400:10:::1;:24:::0;;;15434:11:::1;:26:::0;;;15470:17:::1;:38:::0;;;15518:14:::1;:32:::0;;;15560:16:::1;:36:::0;;-1:-1:-1;;;;;;15560:36:15::1;-1:-1:-1::0;;;;;15560:36:15;::::1;::::0;;::::1;::::0;;;-1:-1:-1;15606:28:15;;-1:-1:-1;;;;15606:28:15::1;-1:-1:-1::0;;;15606:28:15::1;::::0;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;15650:219:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;;;;;;;::::1;14716:1160:::0;;;;;;;:::o;2982:35::-;;;;:::o;2331:46::-;2374:3;2331:46;:::o;2806:25::-;;;;:::o;15882:95::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;15946:10:::1;:24:::0;;-1:-1:-1;;;;;;15946:24:15::1;-1:-1:-1::0;;;;;15946:24:15;;;::::1;::::0;;;::::1;::::0;;15882:95::o;9818:977::-;1704:1:12;2310:7;;:19;;2302:63;;;;;-1:-1:-1;;;2302:63:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;1704:1;2443:7;:18;;;1391:7:11;::::1;;1390:8;1382:37;;;::::0;;-1:-1:-1;;;1382:37:11;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;1382:37:11;;;;;;;;;;;;;::::1;;5162:10:15::2;::::0;-1:-1:-1;;;;;5162:10:15::2;5148;:24;5140:41;;;::::0;;-1:-1:-1;;;5140:41:15;;::::2;;::::0;;::::2;::::0;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;::::2;;9913:13:::3;::::0;9906:46:::3;::::0;;-1:-1:-1;;;9906:46:15;;9946:4:::3;9906:46;::::0;::::3;::::0;;;9888:15:::3;::::0;-1:-1:-1;;;;;9913:13:15::3;::::0;9906:31:::3;::::0;:46;;;;;::::3;::::0;;;;;;;;9913:13;9906:46;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;9906:46:15;9994:82:::3;::::0;-1:-1:-1;;;9994:82:15;;-1:-1:-1;;9994:82:15;;;;;;10070:4:::3;9994:82:::0;;;;;;;::::3;::::0;::::3;::::0;;;10036:11:::3;9994:82:::0;;;;;;;;9906:46;;-1:-1:-1;695:42:15::3;::::0;9994:41:::3;::::0;10036:11;;10057:2;10070:4;9994:82;;;;;;;;10036:11;;9994:82;::::3;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;9994:82:15::3;::::0;;;;;::::3;::::0;::::3;;::::0;;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;;10228:13:15::3;::::0;10221:46:::3;::::0;;-1:-1:-1;;;10221:46:15;;10261:4:::3;10221:46;::::0;::::3;::::0;;;10201:17:::3;::::0;10221:59:::3;::::0;10272:7;;-1:-1:-1;;;;;10228:13:15;;::::3;::::0;10221:31:::3;::::0;:46;;;;;9994:82:::3;::::0;10221:46;;;;;;;;10228:13;10221:46;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;::::0;::::3;;-1:-1:-1::0;10221:46:15;;:50:::3;:59::i;:::-;10201:79:::0;-1:-1:-1;10295:13:15;;10291:498:::3;;10336:25;10351:9;10336:14;:25::i;:::-;10324:37;;10387:28;10405:9;10387:17;:28::i;:::-;10375:40;;10441:18;10449:9;10441:7;:18::i;:::-;10507:11;::::0;10490:13:::3;::::0;10429:30;;-1:-1:-1;10507:11:15::3;::::0;::::3;-1:-1:-1::0;;;;;10507:11:15;;::::3;10490:13:::0;::::3;:28;10486:198;;10538:131;10569:9;10600:16;10538:131;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;10538:131:15::3;::::0;;;;;::::3;::::0;::::3;;::::0;;::::3;;;;;;;;;10646:4;10538:9;:131::i;:::-;10718:12;10702:13;:28:::0;10749:29:::3;10759:18;:16;:18::i;10749:29::-;-1:-1:-1::0;;1660:1:12;2622:22;;9818:977:15:o;880:30::-;;;-1:-1:-1;;;880:30:15;;;;;:::o;1003:82::-;1043:42;1003:82;:::o;14298:408::-;5162:10;;-1:-1:-1;;;;;5162:10:15;5148;:24;5140:41;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;-1:-1:-1;;;5140:41:15;;;;;;;;;;;;;;;14410:15:::1;;14395:11;:30;;14387:48;;;::::0;;-1:-1:-1;;;14387:48:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14387:48:15;;;;;;;;;;;;;::::1;;14453:16:::0;14445:60:::1;;;::::0;;-1:-1:-1;;;14445:60:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;14539:16;;14523:12;:32;;14515:51;;;::::0;;-1:-1:-1;;;14515:51:15;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;14515:51:15;;;;;;;;;;;;;::::1;;14577:13;:11;:13::i;:::-;14600:10;:24:::0;;;14634:11:::1;:26:::0;;;14670:29:::1;14680:18;:16;:18::i;14670:29::-;14298:408:::0;;:::o;846:28::-;;;-1:-1:-1;;;;;846:28:15;;:::o;743:26::-;;;;;;-1:-1:-1;;;;;743:26:15;;:::o;12532:124::-;12607:16;;;12600:49;;;-1:-1:-1;;;12600:49:15;;12643:4;12600:49;;;;;;;;12574:7;;-1:-1:-1;;;;;12607:16:15;;;;12600:34;;:49;;;;;;;;;;;;;;12607:16;12600:49;;;;;;;;;;2040:244:10;1317:12;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:10;;;:22;;;1299:67;;;;;-1:-1:-1;;;1299:67:10;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1299:67:10;;;;;;;;;;;;;;;-1:-1:-1;;;;;2129:22:10;::::1;2121:73;;;;-1:-1:-1::0;;;2121:73:10::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2231:6;::::0;;2210:38:::1;::::0;-1:-1:-1;;;;;2210:38:10;;::::1;::::0;2231:6;::::1;::::0;2210:38:::1;::::0;::::1;2259:6;:17:::0;;-1:-1:-1;;;;;;2259:17:10::1;-1:-1:-1::0;;;;;2259:17:10;;;::::1;::::0;;;::::1;::::0;;2040:244::o;6286:1360:15:-;6385:7;1317:12:10;:10;:12::i;:::-;1307:6;;-1:-1:-1;;;;;1307:6:10;;;:22;;;1299:67;;;;;-1:-1:-1;;;1299:67:10;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1299:67:10;;;;;;;;;;;;;;;1704:1:12::1;2310:7;;:19;;2302:63;;;::::0;;-1:-1:-1;;;2302:63:12;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;1704:1;2443:7;:18:::0;6412:12:15;6404:38:::2;;;::::0;;-1:-1:-1;;;6404:38:15;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;6404:38:15;;;;;;;;;;;;;::::2;;6486:11;::::0;6479:44:::2;::::0;;-1:-1:-1;;;6479:44:15;;6517:4:::2;6479:44;::::0;::::2;::::0;;;-1:-1:-1;;6486:11:15::2;::::0;::::2;-1:-1:-1::0;;;;;6486:11:15::2;::::0;6479:29:::2;::::0;:44;;;;;::::2;::::0;;;;;;;;6486:11;6479:44;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;6479:44:15;;-1:-1:-1;6546:18:15;;::::2;6542:180;;;6630:13;:11;:13::i;:::-;6674:11;::::0;6667:44:::2;::::0;;-1:-1:-1;;;6667:44:15;;6705:4:::2;6667:44;::::0;::::2;::::0;;;6674:11:::2;::::0;;::::2;-1:-1:-1::0;;;;;6674:11:15::2;::::0;6667:29:::2;::::0;:44;;;;;::::2;::::0;;;;;;;;;6674:11;6667:44;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;6667:44:15;;-1:-1:-1;6542:180:15::2;6747:7;6736:8;:18;6732:67;;;6781:7;6770:18;;6732:67;6824:17;:15;:17::i;:::-;6813:8;:28;6809:87;;;6868:17;:15;:17::i;:::-;6857:28;;6809:87;6906:21;6930:48;6960:17;:15;:17::i;:::-;6943:11;::::0;6930:25:::2;::::0;:8;;:12:::2;:25::i;:48::-;6906:72;;7008:11;;6992:13;:27;6988:85;;;-1:-1:-1::0;7051:11:15::2;::::0;6988:85:::2;7096:11;::::0;:30:::2;::::0;7112:13;7096:15:::2;:30::i;:::-;7082:11;:44;;;;7169:19;7191:109;2189:5;7191:70;7217:43;7242:17;;2189:5;7217:24;;:43;;;;:::i;:::-;7191:8:::0;;:25:::2;:70::i;:109::-;7317:11;::::0;7169:131;;-1:-1:-1;7310:59:15::2;::::0;7317:11:::2;::::0;::::2;-1:-1:-1::0;;;;;7317:11:15::2;1390:42;7169:131:::0;7310:32:::2;:59::i;:::-;7399:25;:8:::0;7412:11;7399:12:::2;:25::i;:::-;7468:16;::::0;7442:11:::2;::::0;7388:36;;-1:-1:-1;7435:60:15::2;::::0;7468:16:::2;7442:11:::0;::::2;-1:-1:-1::0;;;;;7442:11:15;;::::2;::::0;7468:16:::2;7388:36:::0;7435:32:::2;:60::i;:::-;7511:8;:6;:8::i;:::-;7506:103;;7569:29;7579:18;:16;:18::i;7569:29::-;-1:-1:-1::0;1660:1:12::1;2622:22:::0;;7626:13:15;6286:1360;-1:-1:-1;;;;6286:1360:15:o;2257:35::-;;;;:::o;2256:471:14:-;2314:7;2559:6;2555:47;;-1:-1:-1;2589:1:14;2582:8;;2555:47;2626:5;;;2630:1;2626;:5;:1;2650:5;;;;;:10;2642:56;;;;-1:-1:-1;;;2642:56:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2718:1;-1:-1:-1;2256:471:14;;;;;:::o;3203:132::-;3261:7;3288:39;3292:1;3295;3288:39;;;;;;;;;;;;;;;;;:3;:39::i;1357:622:13:-;1727:10;;;1726:62;;-1:-1:-1;1743:39:13;;;-1:-1:-1;;;1743:39:13;;1767:4;1743:39;;;;-1:-1:-1;;;;;1743:39:13;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1743:39:13;:44;1726:62;1718:152;;;;-1:-1:-1;;;1718:152:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1908:62;;;-1:-1:-1;;;;;1908:62:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1908:62:13;-1:-1:-1;;;1908:62:13;;;1881:90;;1901:5;;1881:19;:90::i;:::-;1357:622;;;:::o;1987:286::-;2084:20;2107:50;2151:5;2107;-1:-1:-1;;;;;2107:15:13;;2131:4;2138:7;2107:39;;;;;;;;;;;;;-1:-1:-1;;;;;2107:39:13;;;;;;-1:-1:-1;;;;;2107:39:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2107:39:13;;:43;:50::i;:::-;2195:69;;;-1:-1:-1;;;;;2195:69:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2195:69:13;-1:-1:-1;;;2195:69:13;;;2084:73;;-1:-1:-1;2168:97:13;;2188:5;;2168:19;:97::i;:::-;1987:286;;;;:::o;902:181:14:-;960:7;992:5;;;1016:6;;;;1008:46;;;;;-1:-1:-1;;;1008:46:14;;;;;;;;;;;;;;;;;;;;;;;;;;;3858:196:0;3961:12;3993:53;4016:6;4024:4;4030:1;4033:12;3993:22;:53::i;:::-;3986:60;3858:196;-1:-1:-1;;;;3858:196:0:o;13397:609:15:-;13451:11;;13444:63;;13451:11;;;-1:-1:-1;;;;;13451:11:15;604:42;13504:1;13444:31;:63::i;:::-;13524:11;;13517:108;;13524:11;;;-1:-1:-1;;;;;13524:11:15;604:42;-1:-1:-1;;13517:41:15;:108::i;:::-;13670:16;;13643:13;;13636:63;;-1:-1:-1;;;;;13643:13:15;;;;13670:16;;13636:33;:63::i;:::-;13766:16;;13716:13;;13709:108;;-1:-1:-1;;;;;13716:13:15;;;;13766:16;-1:-1:-1;;13709:43:15;:108::i;:::-;13828:58;1129:42;1303;13883:1;13828:31;:58::i;:::-;13896:103;1129:42;1303;-1:-1:-1;;13896:41:15;:103::i;2122:120:11:-;1667:7;;;;1659:40;;;;;-1:-1:-1;;;1659:40:11;;;;;;;;;;;;-1:-1:-1;;;1659:40:11;;;;;;;;;;;;;;;2181:7:::1;:15:::0;;-1:-1:-1;;2181:15:11::1;::::0;;2212:22:::1;2221:12;:10;:12::i;:::-;2212:22;::::0;;-1:-1:-1;;;;;2212:22:11;;::::1;::::0;;;;;;;::::1;::::0;;::::1;2122:120::o:0;1366:136:14:-;1424:7;1451:43;1455:1;1458;1451:43;;;;;;;;;;;;;;;;;:3;:43::i;1863:118:11:-;1391:7;;;;1390:8;1382:37;;;;;-1:-1:-1;;;1382:37:11;;;;;;;;;;;;-1:-1:-1;;;1382:37:11;;;;;;;;;;;;;;;1923:7:::1;:14:::0;;-1:-1:-1;;1923:14:11::1;1933:4;1923:14;::::0;;1953:20:::1;1960:12;:10;:12::i;9392:420:15:-:0;9434:15;9452:18;:16;:18::i;:::-;9485:11;;9434:36;;-1:-1:-1;9485:15:15;9481:289;;9516:196;9533:11;:9;:11::i;:::-;9523:7;:21;9516:196;;;9564:21;9577:7;9564:12;:21::i;:::-;9603:48;9617:33;9635:14;:12;:14::i;:::-;9617:13;:11;:13::i;:33::-;9603:13;:48::i;:::-;9679:18;:16;:18::i;:::-;9669:28;;9516:196;;;9738:21;9751:7;9738:12;:21::i;:::-;9779:26;-1:-1:-1;;9779:13:15;:26::i;:::-;9392:420;:::o;605:106:1:-;693:10;605:106;:::o;883:205:13:-;1011:68;;;-1:-1:-1;;;;;1011:68:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1011:68:13;-1:-1:-1;;;1011:68:13;;;984:96;;1004:5;;984:19;:96::i;5911:369:15:-;5962:7;5981:15;5999:18;:16;:18::i;:::-;5981:36;-1:-1:-1;6031:12:15;6027:26;;6052:1;6045:8;;;;;6027:26;6130:20;6153:31;6175:8;6153:17;:15;:17::i;:31::-;6130:54;;6194:18;6204:7;6194:9;:18::i;:::-;6238:35;6260:12;6238:17;:15;:17::i;:35::-;6231:42;;;;5911:369;;;;:::o;8434:382::-;8493:11;;8489:321;;8525:16;8533:7;8525;:16::i;:::-;8489:321;;;8572:11;;8562:7;:21;8558:252;;;8604:9;8599:201;8623:11;;8619:1;:15;8599:201;;;8659:16;8667:7;8659;:16::i;:::-;8703:48;3069:5;8703:23;8715:10;;8703:7;:11;;:23;;;;:::i;:48::-;8693:58;;8769:16;8777:7;8769;:16::i;:::-;8636:3;;8599:201;;8997:294;9064:19;:17;:19::i;:::-;9047:13;:11;:13::i;:::-;:36;9043:199;;9099:48;9113:33;9131:14;:12;:14::i;9099:48::-;9043:199;;;9178:53;9192:38;9210:19;:17;:19::i;9178:53::-;9252:32;9265:18;:16;:18::i;:::-;9252:12;:32::i;10833:384::-;10918:13;;10895:7;;10918:17;10914:269;;10951:11;10965:41;2053:5;10965:29;10980:13;;10965:10;:14;;:29;;;;:::i;:41::-;10951:55;;1043:42;-1:-1:-1;;;;;11033:29:15;;11063:3;11033:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11081:32;1475:42;11109:3;11081:15;:32::i;:::-;11153:19;:10;11168:3;11153:14;:19::i;:::-;11140:32;;10914:269;;-1:-1:-1;11200:10:15;10833:384::o;11223:681::-;11311:10;;11288:7;;11311:14;11307:563;;11341:11;11355:38;2053:5;11355:26;11370:10;;11355;:14;;:26;;;;:::i;:38::-;11433:44;;;-1:-1:-1;;;11433:44:15;;11471:4;11433:44;;;;;;11341:52;;-1:-1:-1;11412:18:15;;1129:42;;11433:29;;:44;;;;;;;;;;;;;;1129:42;11433:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11433:44:15;11552:16;11504:109;;;;;11433:44;11504:109;;;;;;;;;;;;;11433:44;;-1:-1:-1;11504:109:15;;11531:3;;11504:109;;11552:16;;11504:109;;11552:16;11504:109;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11504:109:15;;;;;;;;;;;;;;;;;;;;11594:4;11504:9;:109::i;:::-;11640:17;11660:60;11709:10;1129:42;-1:-1:-1;;;;;11660:29:15;;11698:4;11660:44;;;;;;;;;;;;;-1:-1:-1;;;;;11660:44:15;;;;;;;;;;;;;;;;;;;;;;;;;;:60;11640:80;;1303:42;-1:-1:-1;;;;;11747:42:15;;11790:9;11747:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11840:19:15;;-1:-1:-1;11840:10:15;11855:3;11840:14;:19::i;:::-;11827:32;11223:681;-1:-1:-1;;;;;11223:681:15:o;11910:412::-;11988:11;;11965:7;;11988:15;11984:296;;12019:18;12040:39;2053:5;12040:27;12055:11;;12040:10;:14;;:27;;;;:::i;:39::-;12019:60;;12098:117;12125:10;12153:16;12098:117;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12098:117:15;;;;;;;;;;;;;;;;;;;;;1812:42;15987:494;16151:16;;16138:62;;;-1:-1:-1;;;16138:62:15;;;;;;;;;;;;;;;;;;;;;;16111:24;;-1:-1:-1;;;;;16151:16:15;;16138:44;;16183:9;;16194:5;;16138:62;;;;;;;;;;;;;;;16151:16;16138:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16138:62:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16138:62:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16111:89;;16210:17;16230:7;16238:21;16257:1;16238:7;:14;:18;;:21;;;;:::i;:::-;16230:30;;;;;;;;;;;;;;16210:50;;16284:16;;;;;;;;;-1:-1:-1;;;;;16284:16:15;-1:-1:-1;;;;;16271:55:15;;16340:9;16363:39;16397:4;16363:29;16377:14;;16363:9;:13;;:29;;;;:::i;:39::-;16416:5;16435:3;16452:12;:3;16460;16452:7;:12::i;:::-;16271:203;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16271:203:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16271:203:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16271:203:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15987:494;;;;;:::o;698:177:13:-;808:58;;;-1:-1:-1;;;;;808:58:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;808:58:13;-1:-1:-1;;;808:58:13;;;781:86;;801:5;;781:19;:86::i;3831:278:14:-;3917:7;3952:12;3945:5;3937:28;;;;-1:-1:-1;;;3937:28:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3976:9;3992:1;3988;:5;;;;;;;3831:278;-1:-1:-1;;;;;3831:278:14:o;3003:761:13:-;3427:23;3453:69;3481:4;3453:69;;;;;;;;;;;;;;;;;3461:5;-1:-1:-1;;;;;3453:27:13;;;:69;;;;;:::i;:::-;3537:17;;3427:95;;-1:-1:-1;3537:21:13;3533:224;;3679:10;3668:30;;;;;;;;;;;;;;;-1:-1:-1;3668:30:13;3660:85;;;;-1:-1:-1;;;3660:85:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5235:979:0;5365:12;5398:18;5409:6;5398:10;:18::i;:::-;5390:60;;;;;-1:-1:-1;;;5390:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5524:12;5538:23;5565:6;-1:-1:-1;;;;;5565:11:0;5585:8;5596:4;5565:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5565:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5523:78;;;;5616:7;5612:595;;;5647:10;-1:-1:-1;5640:17:0;;-1:-1:-1;5640:17:0;5612:595;5761:17;;:21;5757:439;;6024:10;6018:17;6085:15;6072:10;6068:2;6064:19;6057:44;5972:148;6160:20;;-1:-1:-1;;;6160:20:0;;;;;;;;;;;;;;;;;6167:12;;6160:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1805:192:14;1891:7;1927:12;1919:6;;;;1911:29;;;;-1:-1:-1;;;1911:29:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1963:5:14;;;1805:192::o;8128:141:15:-;8223:11;;;8186:76;;;-1:-1:-1;;;8186:76:15;;8223:11;;;;-1:-1:-1;;;;;8223:11:15;8186:76;;;;;;;;;;;;;;;;;8256:4;8186:76;;;;;;604:42;;8186:36;;:76;;;;;-1:-1:-1;;8186:76:15;;;;;;;-1:-1:-1;604:42:15;8186:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8128:141;:::o;7815:142::-;7914:11;;7874:76;;;-1:-1:-1;;;7874:76:15;;7914:11;;;;-1:-1:-1;;;;;7914:11:15;7874:76;;;;;;;;;;7944:4;7874:76;;;;;604:42;;7874:39;;:76;;;;;-1:-1:-1;;7874:76:15;;;;;;;-1:-1:-1;604:42:15;7874:76;;;;;;;;;;7656:149;7748:11;;7785:12;;7709:89;;;-1:-1:-1;;;7709:89:15;;7748:11;;;;-1:-1:-1;;;;;7748:11:15;7709:89;;;;;;;;;;7778:4;7709:89;;;;7785:12;-1:-1:-1;;;7785:12:15;;;;;;;7709:89;;;;;604:42;;7709:38;;:89;;;;;-1:-1:-1;;7709:89:15;;;;;;;-1:-1:-1;604:42:15;7709:89;;;;;;;;;;7967:151;8058:11;;;8083:12;;8020:91;;;-1:-1:-1;;;8020:91:15;;8058:11;;;;-1:-1:-1;;;;;8058:11:15;8020:91;;;;;;;;;;;;;;;;;8083:12;-1:-1:-1;;;8083:12:15;;;;8020:91;;;;8105:4;8020:91;;;;;;604:42;;8020:37;;:91;;;;;-1:-1:-1;;8020:91:15;;;;;;;-1:-1:-1;604:42:15;8020:91;;;;;;;;;;16487:214;16599:12;;;16559;16599;;;;;;;;;-1:-1:-1;;;;;16577:7:15;;;16592:5;;16577:35;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16577:35:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16558:54;;;16630:7;16622:72;;;;-1:-1:-1;;;16622:72:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;743:619:0;803:4;1271:20;;1114:66;1311:23;;;;;;:42;;-1:-1:-1;;1338:15:0;;;743:619;-1:-1:-1;;743:619:0:o

Swarm Source

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