ETH Price: $1,948.51 (-1.25%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate Funds227402172025-06-19 18:08:23248 days ago1750356503IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000199231.98981333
Transfer Out Net...227363852025-06-19 5:17:35248 days ago1750310255IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000061642.40953757
Set Strategist227363812025-06-19 5:16:47248 days ago1750310207IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000068962.36384497
Migrate Funds227330872025-06-18 18:14:59249 days ago1750270499IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000081833.15824708
Unlock Migrate F...227258232025-06-17 17:49:59250 days ago1750182599IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000192113.77700872
Set Pending Stra...227258142025-06-17 17:48:11250 days ago1750182491IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000125914.00087396
Set Treasury Wal...227257422025-06-17 17:33:47250 days ago1750181627IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000139984.4743943
Set Community Wa...227257412025-06-17 17:33:35250 days ago1750181615IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000136994.37546197
Set Admin227257392025-06-17 17:33:11250 days ago1750181591IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.000133084.25371646
Emergency Withdr...227233842025-06-17 9:38:47250 days ago1750153127IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.001461742.28797798
Reinvest227232962025-06-17 9:20:59250 days ago1750152059IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.001618032.25409979
Emergency Withdr...227232472025-06-17 9:11:11250 days ago1750151471IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.002568644.13111307
Invest227232362025-06-17 9:08:59250 days ago1750151339IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.002163424.0449616
Emergency Withdr...227232142025-06-17 9:04:23250 days ago1750151063IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.001655692.49194756
Invest132174942021-09-13 12:57:011623 days ago1631537821IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.0444731139.75726618
Deposit132127022021-09-12 18:58:211624 days ago1631473101IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.01050184
Invest130533512021-08-19 3:56:281648 days ago1629345388IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.0269644221
Deposit129981842021-08-10 15:12:041657 days ago1628608324IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.007560
Withdraw128199232021-07-13 16:39:061685 days ago1626194346IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.0060964927
Deposit128199192021-07-13 16:38:191685 days ago1626194299IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.004298427
Transfer Ownersh...127994732021-07-10 11:51:501688 days ago1625917910IN
0x2AD9F8d4...0a3bE1DFD
0 ETH0.0003099510

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

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

Contract Source Code Verified (Exact Match)

Contract Name:
CubanApeVault

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : CubanApeVault.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;

import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../../libs/BaseRelayRecipient.sol";

interface IStrategy {
    function getTotalPoolInUSD() external view returns (uint256);
    function invest(uint256 _amount) external;
    function withdraw(uint256 _amount) external returns (uint256);
    function releaseETHToVault(uint256 _farmIndex, uint256 _amount) external returns (uint256);
    function emergencyWithdraw() external;
    function reinvest() external;
    function setWeights(uint256[] memory _weights) external;
}

interface ICurveSwap {
    function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external;
}

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

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

contract CubanApeVault is ERC20("DAO Vault Cuban", "daoCUB"), Ownable, BaseRelayRecipient {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    struct Token {
        IERC20 token;
        uint256 decimals;
        uint256 percKeepInVault;
    }

    IStrategy public strategy;
    IERC20 private constant _WETH = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    ICurveSwap private constant _cSwap = ICurveSwap(0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7);
    ISushiSwap private constant _sSwap = ISushiSwap(0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F);
    uint256 private constant _DENOMINATOR = 10000;
    address public admin;

    address public pendingStrategy;
    bool public canSetPendingStrategy;
    uint256 public unlockTime;
    uint256 public constant LOCKTIME = 2 days;

    // Calculation for fees
    uint256[] public networkFeeTier2 = [50000*1e6+1, 100000*1e6]; // 6 decimals
    uint256 public customNetworkFeeTier = 1000000*1e6; // 6 decimals
    uint256[] public networkFeePerc = [100, 75, 50];
    uint256 public customNetworkFeePerc = 25;
    uint256 public profitSharingFeePerc = 2000;
    uint256 private _fees; // 6 decimals

    // Address to collect fees
    address public treasuryWallet;
    address public communityWallet;
    address public strategist;

    mapping(uint256 => Token) public tokens;

    event Deposit(address indexed tokenDeposit, address indexed caller, uint256 amtDeposit, uint256 sharesMint);
    event Withdraw(address indexed tokenWithdraw, address indexed caller, uint256 amtWithdraw, uint256 sharesBurn);
    event TransferredOutFees(uint256 fees);
    event SetNetworkFeeTier2(uint256[] oldNetworkFeeTier2, uint256[] newNetworkFeeTier2);
    event SetNetworkFeePerc(uint256[] oldNetworkFeePerc, uint256[] newNetworkFeePerc);
    event SetCustomNetworkFeeTier(uint256 indexed oldCustomNetworkFeeTier, uint256 indexed newCustomNetworkFeeTier);
    event SetCustomNetworkFeePerc(uint256 indexed oldCustomNetworkFeePerc, uint256 indexed newCustomNetworkFeePerc);
    event SetProfitSharingFeePerc(uint256 indexed oldProfileSharingFeePerc, uint256 indexed newProfileSharingFeePerc);
    event MigrateFunds(address indexed fromStrategy, address indexed toStrategy, uint256 amount);

    modifier onlyAdmin {
        require(msg.sender == address(admin), "Only admin");
        _;
    }

    constructor(
        address _strategy, 
        address _treasuryWallet, address _communityWallet, 
        address _admin, address _strategist, 
        address _biconomy
    ) {
        strategy = IStrategy(_strategy);
        treasuryWallet = _treasuryWallet;
        communityWallet = _communityWallet;
        admin = _admin;
        strategist = _strategist;
        trustedForwarder = _biconomy;

        IERC20 _USDT = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7);
        IERC20 _USDC = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
        IERC20 _DAI = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
        tokens[0] = Token(_USDT, 6, 200);
        tokens[1] = Token(_USDC, 6, 200);
        tokens[2] = Token(_DAI, 18, 200);

        _WETH.safeApprove(_strategy, type(uint256).max);
        _WETH.safeApprove(address(_sSwap), type(uint256).max);
        _USDT.safeApprove(address(_cSwap), type(uint256).max);
        _USDT.safeApprove(address(_sSwap), type(uint256).max);
        _USDC.safeApprove(address(_cSwap), type(uint256).max);
        _USDC.safeApprove(address(_sSwap), type(uint256).max);
        _DAI.safeApprove(address(_cSwap), type(uint256).max);
        _DAI.safeApprove(address(_sSwap), type(uint256).max);

        canSetPendingStrategy = true;
    }

    /// @notice Function that required for inherit BaseRelayRecipient
    function _msgSender() internal override(Context, BaseRelayRecipient) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }
    
    /// @notice Function that required for inherit BaseRelayRecipient
    function versionRecipient() external pure override returns (string memory) {
        return "1";
    }

    /// @notice Function to deposit Stablecoins
    /// @param _amount Amount to deposit in USD (follow Stablecoins decimals)
    /// @param _tokenIndex Type of Stablecoin to deposit (0 for USDT, 1 for USDC, 2 for DAI)
    function deposit(uint256 _amount, uint256 _tokenIndex) external {
        require(msg.sender == tx.origin || isTrustedForwarder(msg.sender), "Only EOA or Biconomy");
        require(_amount > 0, "Amount must > 0");

        address _sender = _msgSender();
        tokens[_tokenIndex].token.safeTransferFrom(_sender, address(this), _amount);
        uint256 _amtDeposit = _amount; // For event purpose
        if (tokens[_tokenIndex].decimals == 18) { // To make consistency of 6 decimals
            _amount = _amount.div(1e12);
        }
        // Calculate network fee
        uint256 _networkFeePerc;
        if (_amount < networkFeeTier2[0]) { // Tier 1
            _networkFeePerc = networkFeePerc[0];
        } else if (_amount <= networkFeeTier2[1]) { // Tier 2
            _networkFeePerc = networkFeePerc[1];
        } else if (_amount < customNetworkFeeTier) { // Tier 3
            _networkFeePerc = networkFeePerc[2];
        } else { // Custom Tier
            _networkFeePerc = customNetworkFeePerc;
        }
        uint256 _fee = _amount.mul(_networkFeePerc).div(_DENOMINATOR);
        _fees = _fees.add(_fee);
        _amount = _amount.sub(_fee);

        uint256 _shares = _amount.mul(1e12);
        _mint(_sender, _shares);
        emit Deposit(address(tokens[_tokenIndex].token), _sender, _amtDeposit, _shares);
    }

    /// @notice Function to withdraw Stablecoins
    /// @param _shares Amount of shares to withdraw (from LP token, 18 decimals)
    /// @param _tokenIndex Type of Stablecoin to withdraw (0 for USDT, 1 for USDC, 2 for DAI)
    function withdraw(uint256 _shares, uint256 _tokenIndex) external {
        require(msg.sender == tx.origin, "Only EOA");
        require(_shares > 0, "Shares must > 0");

        // Calculate withdraw amount
        uint256 _withdrawAmt = getAllPoolInUSD().mul(_shares).div(totalSupply()); // 6 decimals
        _burn(msg.sender, _shares);
        Token memory _token = tokens[_tokenIndex];
        uint256 _balanceOfToken = _token.token.balanceOf(address(this));
        if (_token.decimals == 18) { // To make consistency of 6 decimals
            _withdrawAmt = _withdrawAmt.mul(1e12);
        }
        if (_withdrawAmt > _balanceOfToken) { // Not enough Stablecoin in vault, need to get from strategy
            // Get the amount of ETH needed to withdraw
            uint256[] memory _amountsOutInETH = _sSwap.getAmountsOut(_withdrawAmt, _getPath(address(_token.token), address(_WETH)));
            // Withdraw ETH from strategy
            uint256 _withdrawAmtInETH = strategy.withdraw(_amountsOutInETH[1]);
            // Swap ETH to Stablecoin
            uint256[] memory _amountsOutInUSD = _swapExactTokensForTokens(address(_WETH), address(_token.token), _withdrawAmtInETH);
            _withdrawAmt = _amountsOutInUSD[1];
        }

        // Calculate profit sharing fee
        // Deposit amount (after fees) = shares amount (18 decimals)
        uint256 _depositAmt = _token.decimals == 18 ? _shares : _shares.div(1e12);
        if (_withdrawAmt > _depositAmt) {
            uint256 _profit = _withdrawAmt.sub(_depositAmt);
            uint256 _fee = _profit.mul(profitSharingFeePerc).div(_DENOMINATOR);
            _withdrawAmt = _withdrawAmt.sub(_fee);
            _fees = _token.decimals == 18 ? _fees.add(_fee.div(1e12)) : _fees.add(_fee);
        }

        _token.token.safeTransfer(msg.sender, _withdrawAmt);
        emit Withdraw(address(tokens[_tokenIndex].token), msg.sender, _withdrawAmt, _shares);
    }

    /// @notice Function to invest funds into strategy
    function invest() external onlyAdmin {
        // Transfer out network fees
        transferOutNetworkFees();

        Token memory _USDT = tokens[0];
        Token memory _USDC = tokens[1];
        Token memory _DAI = tokens[2];
        // Calculation for keep portion of Stablecoins and swap balance of Stablecoins to WETH
        uint256 _poolInUSD = getAllPoolInUSD();
        _invest(_USDT.token, _poolInUSD.mul(_USDT.percKeepInVault).div(_DENOMINATOR));
        _invest(_USDC.token, _poolInUSD.mul(_USDC.percKeepInVault).div(_DENOMINATOR));
        _invest(_DAI.token, (_poolInUSD.mul(_DAI.percKeepInVault).div(_DENOMINATOR)).mul(1e12)); // Follow decimals of DAI
        // Invest all swapped WETH to strategy
        uint256 _balanceOfWETH = _WETH.balanceOf(address(this));
        if (_balanceOfWETH > 0) {
            strategy.invest(_balanceOfWETH);
        }
    }

    /// @notice Function to swap Stablecoin to WETH
    /// @param _token Stablecoin to swap
    /// @param _toKeepAmt Amount to keep in vault (decimals follow Stablecoins)
    function _invest(IERC20 _token, uint256 _toKeepAmt) private {
        uint256 _balanceOfToken = _token.balanceOf(address(this));
        if (_balanceOfToken > _toKeepAmt) {
            _swapExactTokensForTokens(address(_token), address(_WETH), _balanceOfToken.sub(_toKeepAmt));
        }
    }

    /// @notice Function to swap Stablecoin within vault with Curve
    /// @param _tokenFrom Type of Stablecoin to be swapped (0 for USDT, 1 for USDC, 2 for DAI)
    /// @param _tokenTo Type of Stablecoin to be received (0 for USDT, 1 for USDC, 2 for DAI)
    /// @param _amount Amount to be swapped (follow Stablecoins decimals)
    function swapTokenWithinVault(uint256 _tokenFrom, uint256 _tokenTo, uint256 _amount) external onlyAdmin {
        require(tokens[_tokenFrom].token.balanceOf(address(this)) > _amount, "Insufficient amount to swap");
        int128 i = _determineCurveIndex(_tokenFrom);
        int128 j = _determineCurveIndex(_tokenTo);
        _cSwap.exchange(i, j, _amount, 0);
    }

    /// @notice Function to determine Curve index for swapTokenWithinVault()
    /// @param _tokenIndex Index of Stablecoin (0 for USDT, 1 for USDC, 2 for DAI)
    /// @return Stablecoin index use in Curve
    function _determineCurveIndex(uint256 _tokenIndex) private pure returns (int128) {
        if (_tokenIndex == 0) {
            return 2;
        } else if (_tokenIndex == 1) {
            return 1;
        } else {
            return 0;
        }
    }

    /// @notice Function to retrieve Stablecoins from strategy
    /// @param _tokenIndex Type of Stablecoin to retrieve (0 for USDT, 1 for USDC, 2 for DAI)
    /// @param _farmIndex Type of farm to swap out (0: renDOGE, 1: MATIC, 2: AAVE, 3: SUSHI, 4: AXS, 5: INJ, 6: ALCX)
    /// @param _amount Amount of Stablecoin to retrieve (decimals follow Stablecoins)
    function retrieveStablecoinsFromStrategy(uint256 _tokenIndex, uint256 _farmIndex, uint256 _amount) external onlyAdmin {
        Token memory _token = tokens[_tokenIndex];
        uint256[] memory _amountInETH = _sSwap.getAmountsOut(_amount, _getPath(address(_token.token), address(_WETH)));
        uint256 _WETHBalance = strategy.releaseETHToVault(_amountInETH[1], _farmIndex);
        _swapExactTokensForTokens(address(_WETH), address(_token.token), _WETHBalance);
    }

    /// @notice Function to withdraw all farms and swap to WETH in strategy
    function emergencyWithdraw() external onlyAdmin {
        strategy.emergencyWithdraw();
    }

    /// @notice Function to reinvest all WETH back to farms in strategy
    function reinvest() external onlyAdmin {
        strategy.reinvest();
    }

    /// @notice Function to transfer out available network fees
    function transferOutNetworkFees() public {
        require(msg.sender == address(this) || msg.sender == admin, "Not authorized");
        if (_fees != 0) {
            bool canTransfer;
            Token memory _token;
            if (tokens[0].token.balanceOf(address(this)) > _fees) {
                _token = tokens[0]; // USDT
                canTransfer = true;
            } else if (tokens[1].token.balanceOf(address(this)) > _fees) {
                _token = tokens[1]; // USDC
                canTransfer = true;
            } else if (tokens[2].token.balanceOf(address(this)) > _fees) {
                _token = tokens[2]; // DAI
                canTransfer = true;
            }
            if (canTransfer) {
                uint256 _fee =  _fees.mul(2).div(5); // 40%
                _token.token.safeTransfer(treasuryWallet, _fee); // 40%
                _token.token.safeTransfer(communityWallet, _fee); // 40%
                _token.token.safeTransfer(strategist, _fees.sub(_fee).sub(_fee)); // 20%
                emit TransferredOutFees(_fees);
                _fees = 0;
            }
        }
    }

    /// @notice Function to unlock migrateFunds()
    function unlockMigrateFunds() external onlyOwner {
        unlockTime = block.timestamp.add(LOCKTIME);
        canSetPendingStrategy = false;
    }

    /// @notice Function to migrate all funds from old strategy contract to new strategy contract
    /// @notice This function only last for 1 days after success unlocked
    function migrateFunds() external onlyOwner {
        require(unlockTime <= block.timestamp && unlockTime.add(1 days) >= block.timestamp, "Function locked");
        uint256 _amount = _WETH.balanceOf(address(strategy));
        require(_amount > 0, "No balance to migrate");
        require(pendingStrategy != address(0), "No pendingStrategy");

        _WETH.safeTransferFrom(address(strategy), pendingStrategy, _amount);

        // Set new strategy
        address oldStrategy = address(strategy);
        strategy = IStrategy(pendingStrategy);
        pendingStrategy = address(0);
        canSetPendingStrategy = true;

        // Approve new strategy
        _WETH.safeApprove(address(strategy), type(uint256).max);
        _WETH.safeApprove(oldStrategy, 0);

        unlockTime = 0; // Lock back this function
        emit MigrateFunds(oldStrategy, address(strategy), _amount);
    }

    /// @notice Function to set new network fee for deposit amount tier 2
    /// @param _networkFeeTier2 Array that contains minimum and maximum amount of tier 2 (6 decimals)
    function setNetworkFeeTier2(uint256[] calldata _networkFeeTier2) external onlyOwner {
        require(_networkFeeTier2[0] != 0, "Minimun amount cannot be 0");
        require(_networkFeeTier2[1] > _networkFeeTier2[0], "Maximun amount must greater than minimun amount");
        /**
         * Network fees have three tier, but it is sufficient to have minimun and maximun amount of tier 2
         * Tier 1: deposit amount < minimun amount of tier 2
         * Tier 2: minimun amount of tier 2 <= deposit amount <= maximun amount of tier 2
         * Tier 3: amount > maximun amount of tier 2
         */
        uint256[] memory oldNetworkFeeTier2 = networkFeeTier2; // For event purpose
        networkFeeTier2 = _networkFeeTier2;
        emit SetNetworkFeeTier2(oldNetworkFeeTier2, _networkFeeTier2);
    }

    /// @notice Function to set new custom network fee tier
    /// @param _customNetworkFeeTier Amount of new custom network fee tier (6 decimals)
    function setCustomNetworkFeeTier(uint256 _customNetworkFeeTier) external onlyOwner {
        require(_customNetworkFeeTier > networkFeeTier2[1], "Custom network fee tier must greater than tier 2");
        uint256 oldCustomNetworkFeeTier = customNetworkFeeTier; // For event purpose
        customNetworkFeeTier = _customNetworkFeeTier;
        emit SetCustomNetworkFeeTier(oldCustomNetworkFeeTier, _customNetworkFeeTier);
    }

    /// @notice Function to set new network fee percentage
    /// @param _networkFeePerc Array that contains new network fee percentage for tier 1, tier 2 and tier 3
    function setNetworkFeePerc(uint256[] calldata _networkFeePerc) external onlyOwner {
        require(_networkFeePerc[0] < 3000 && _networkFeePerc[1] < 3000 && _networkFeePerc[2] < 3000,
            "Network fee percentage cannot be more than 30%");
        /**
         * _networkFeePerc content a array of 3 element, representing network fee of tier 1, tier 2 and tier 3
         * For example networkFeePerc is [100, 75, 50],
         * which mean network fee for Tier 1 = 1%, Tier 2 = 0.75% and Tier 3 = 0.5% (DENOMINATOR = 10000)
         */
        uint256[] memory oldNetworkFeePerc = networkFeePerc; // For event purpose
        networkFeePerc = _networkFeePerc;
        emit SetNetworkFeePerc(oldNetworkFeePerc, _networkFeePerc);
    }

    /// @notice Function to set new custom network fee percentage
    /// @param _percentage Percentage of new custom network fee
    function setCustomNetworkFeePerc(uint256 _percentage) public onlyOwner {
        require(_percentage < networkFeePerc[2], "Custom network fee percentage cannot be more than tier 2");
        uint256 oldCustomNetworkFeePerc = customNetworkFeePerc; // For event purpose
        customNetworkFeePerc = _percentage;
        emit SetCustomNetworkFeePerc(oldCustomNetworkFeePerc, _percentage);
    }

    /// @notice Function to set new profit sharing fee percentage
    /// @param _percentage Percentage of new profit sharing fee
    function setProfitSharingFeePerc(uint256 _percentage) external onlyOwner {
        require(_percentage < 3000, "Profile sharing fee percentage cannot be more than 30%");
        uint256 oldProfitSharingFeePerc = profitSharingFeePerc; // For event purpose
        profitSharingFeePerc = _percentage;
        emit SetProfitSharingFeePerc(oldProfitSharingFeePerc, _percentage);
    }

    /// @notice Function to set new treasury wallet address
    /// @param _treasuryWallet Address of new treasury wallet
    function setTreasuryWallet(address _treasuryWallet) external onlyOwner {
        treasuryWallet = _treasuryWallet;
    }

    /// @notice Function to set new community wallet address
    /// @param _communityWallet Address of new community wallet
    function setCommunityWallet(address _communityWallet) external onlyOwner {
        communityWallet = _communityWallet;
    }

    /// @notice Function to set new admin address
    /// @param _admin Address of new admin
    function setAdmin(address _admin) external onlyOwner {
        admin = _admin;
    }

    /// @notice Function to set new strategist address
    /// @param _strategist Address of new strategist
    function setStrategist(address _strategist) external {
        require(msg.sender == strategist || msg.sender == owner(), "Not authorized");
        strategist = _strategist;
    }

    /// @notice Function to set pending strategy address
    /// @param _pendingStrategy Address of pending strategy
    function setPendingStrategy(address _pendingStrategy) external onlyOwner {
        require(canSetPendingStrategy, "Cannot set pending strategy now");
        pendingStrategy = _pendingStrategy;
    }

    /// @notice Function to set new trusted forwarder address (Biconomy)
    /// @param _biconomy Address of new trusted forwarder
    function setBiconomy(address _biconomy) external onlyOwner {
        trustedForwarder = _biconomy;
    }

    /// @notice Function to set percentage of Stablecoins that keep in vault
    /// @param _percentages Array with new percentages of Stablecoins that keep in vault (3 elements, DENOMINATOR = 10000)
    function setPercTokenKeepInVault(uint256[] memory _percentages) external onlyAdmin {
        tokens[0].percKeepInVault = _percentages[0];
        tokens[1].percKeepInVault = _percentages[1];
        tokens[2].percKeepInVault = _percentages[2];
    }

    /// @notice Function to set weight of farms in strategy
    /// @param _weights Array with new weight(percentage) of farms (7 elements, DENOMINATOR = 10000)
    function setWeights(uint256[] memory _weights) external onlyAdmin {
        strategy.setWeights(_weights);
    }

    /// @notice Function to swap tokens with Sushi
    /// @param _tokenA Token to be swapped
    /// @param _tokenB Token to be received
    /// @param _amountIn Amount of token to be swapped (decimals follow _tokenA)
    /// @return _amounts Array that contains amounts of swapped tokens
    function _swapExactTokensForTokens(address _tokenA, address _tokenB, uint256 _amountIn) private returns (uint256[] memory _amounts) {
        address[] memory _path = _getPath(_tokenA, _tokenB);
        uint256[] memory _amountsOut = _sSwap.getAmountsOut(_amountIn, _path);
        if (_amountsOut[1] > 0) {
            _amounts = _sSwap.swapExactTokensForTokens(_amountIn, 0, _path, address(this), block.timestamp);
        }
    }

    /// @notice Function to get path for Sushi swap functions
    /// @param _tokenA Token to be swapped
    /// @param _tokenB Token to be received
    /// @return Array of address
    function _getPath(address _tokenA, address _tokenB) private pure returns (address[] memory) {
        address[] memory _path = new address[](2);
        _path[0] = _tokenA;
        _path[1] = _tokenB;
        return _path;
    }

    /// @notice Function to get all pool amount(vault+strategy) in USD
    /// @return All pool in USD (6 decimals)
    function getAllPoolInUSD() public view returns (uint256) {
        uint256 _vaultPoolInUSD = (tokens[0].token.balanceOf(address(this)))
            .add(tokens[1].token.balanceOf(address(this)))
            .add(tokens[2].token.balanceOf(address(this)).div(1e12)) // DAI to 6 decimals
            .sub(_fees);
        return strategy.getTotalPoolInUSD().add(_vaultPoolInUSD);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

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

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

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

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

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

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

// SPDX-License-Identifier:MIT
pragma solidity 0.7.6;

import "../interfaces/IRelayRecipient.sol";

/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient is IRelayRecipient {

    /*
     * Forwarder singleton we accept calls from
     */
    address public trustedForwarder;

    /*
     * require a function to be called through GSN only
     */
    modifier trustedForwarderOnly() {
        require(msg.sender == address(trustedForwarder), "Function can only be called through the trusted Forwarder");
        _;
    }

    function isTrustedForwarder(address forwarder) public override view returns(bool) {
        return forwarder == trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal override virtual view returns (address payable ret) {
        if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            assembly {
                ret := shr(96,calldataload(sub(calldatasize(),20)))
            }
        } else {
            return msg.sender;
        }
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

// SPDX-License-Identifier:MIT
pragma solidity 0.7.6;

/**
 * a contract must implement this interface in order to support relayed transaction.
 * It is better to inherit the BaseRelayRecipient as its implementation.
 */
abstract contract IRelayRecipient {

    /**
     * return if the forwarder is trusted to forward relayed transactions to us.
     * the forwarder is required to verify the sender's signature, and verify
     * the call is not a replay.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes
     * of the msg.data.
     * otherwise, return `msg.sender`
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal virtual view returns (address payable);

    function versionRecipient() external virtual view returns (string memory);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_communityWallet","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_strategist","type":"address"},{"internalType":"address","name":"_biconomy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenDeposit","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amtDeposit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesMint","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromStrategy","type":"address"},{"indexed":true,"internalType":"address","name":"toStrategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MigrateFunds","type":"event"},{"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":true,"internalType":"uint256","name":"oldCustomNetworkFeePerc","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newCustomNetworkFeePerc","type":"uint256"}],"name":"SetCustomNetworkFeePerc","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldCustomNetworkFeeTier","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newCustomNetworkFeeTier","type":"uint256"}],"name":"SetCustomNetworkFeeTier","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"oldNetworkFeePerc","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newNetworkFeePerc","type":"uint256[]"}],"name":"SetNetworkFeePerc","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"oldNetworkFeeTier2","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"newNetworkFeeTier2","type":"uint256[]"}],"name":"SetNetworkFeeTier2","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"oldProfileSharingFeePerc","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"newProfileSharingFeePerc","type":"uint256"}],"name":"SetProfitSharingFeePerc","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"fees","type":"uint256"}],"name":"TransferredOutFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"tokenWithdraw","type":"address"},{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amtWithdraw","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesBurn","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"LOCKTIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canSetPendingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customNetworkFeePerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"customNetworkFeeTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllPoolInUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"invest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrateFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"networkFeePerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"networkFeeTier2","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":"pendingStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"profitSharingFeePerc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenIndex","type":"uint256"},{"internalType":"uint256","name":"_farmIndex","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"retrieveStablecoinsFromStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_biconomy","type":"address"}],"name":"setBiconomy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_communityWallet","type":"address"}],"name":"setCommunityWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setCustomNetworkFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_customNetworkFeeTier","type":"uint256"}],"name":"setCustomNetworkFeeTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_networkFeePerc","type":"uint256[]"}],"name":"setNetworkFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_networkFeeTier2","type":"uint256[]"}],"name":"setNetworkFeeTier2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingStrategy","type":"address"}],"name":"setPendingStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_percentages","type":"uint256[]"}],"name":"setPercTokenKeepInVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"}],"name":"setProfitSharingFeePerc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryWallet","type":"address"}],"name":"setTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_weights","type":"uint256[]"}],"name":"setWeights","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract IStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenFrom","type":"uint256"},{"internalType":"uint256","name":"_tokenTo","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"swapTokenWithinVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"},{"internalType":"uint256","name":"percKeepInVault","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferOutNetworkFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockMigrateFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"},{"internalType":"uint256","name":"_tokenIndex","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052640ba43b7401608090815264174876e80060a0526200002890600b90600262000a80565b5064e8d4a51000600c556040805160608101825260648152604b60208201526032918101919091526200006090600d90600362000ad9565b506019600e556107d0600f553480156200007957600080fd5b506040516200579338038062005793833981810160405260c08110156200009f57600080fd5b5080516020808301516040808501516060860151608087015160a09097015183518085018552600f81526e2220a7902b30bab63a1021bab130b760891b818801908152855180870190965260068652653230b7a1aaa160d11b978601979097528051979895979396929594919390926200011d916003919062000b1c565b5080516200013390600490602084019062000b1c565b50506005805460ff191660121790555060006200014f62000605565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600780546001600160a01b03199081166001600160a01b0389811691909117909255601180548216888416179055601280548216878416178155600880548316878516179055601380548316868516179055600680548316858516178155604080516060808201835273dac17f958d2ee523a2206206994597c13d831ec7808352602080840186815260c88587018181526000808052601480865297517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c80548e16918f1691909117905592517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d55517f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e558651808601885273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48808252818501998a528189018381526001855288865291517fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c80548e16918f1691909117905598517fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d55517fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e5586519485018752736b175474e89094c44da98b954eedeac495271d0f808652858401998a52968501908152600290915293815291517fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a805490981698169790971790955592517fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b5591517fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c55916200043d9073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2908b906000199062000622811b620037ad17901c565b6200048073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273d9e1ce17f2641f24ae83637ab66a2cca9c378b9f60001962000622602090811b620037ad17901c565b620004bb73bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019856001600160a01b03166200062260201b620037ad179092919060201c565b620004f673d9e1ce17f2641f24ae83637ab66a2cca9c378b9f600019856001600160a01b03166200062260201b620037ad179092919060201c565b6200053173bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019846001600160a01b03166200062260201b620037ad179092919060201c565b6200056c73d9e1ce17f2641f24ae83637ab66a2cca9c378b9f600019846001600160a01b03166200062260201b620037ad179092919060201c565b620005a773bebc44782c7db0a1a60cb6fe97d0b483032ff1c7600019836001600160a01b03166200062260201b620037ad179092919060201c565b620005e273d9e1ce17f2641f24ae83637ab66a2cca9c378b9f600019836001600160a01b03166200062260201b620037ad179092919060201c565b50506009805460ff60a01b1916600160a01b1790555062000bb695505050505050565b60006200061c6200074660201b620038c51760201c565b90505b90565b801580620006ac575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200067c57600080fd5b505afa15801562000691573d6000803e3d6000fd5b505050506040513d6020811015620006a857600080fd5b5051155b620006e95760405162461bcd60e51b81526004018080602001828103825260368152602001806200575d6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620007419185916200077e16565b505050565b60006018361080159062000760575062000760336200083a565b1562000776575060131936013560601c6200061f565b50336200061f565b6000620007da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200084e60201b620038f7179092919060201c565b8051909150156200074157808060200190516020811015620007fb57600080fd5b5051620007415760405162461bcd60e51b815260040180806020018281038252602a81526020018062005733602a913960400191505060405180910390fd5b6006546001600160a01b0390811691161490565b60606200085f848460008562000869565b90505b9392505050565b606082471015620008ac5760405162461bcd60e51b81526004018080602001828103825260268152602001806200570d6026913960400191505060405180910390fd5b620008b785620009d0565b62000909576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310620009495780518252601f19909201916020918201910162000928565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114620009ad576040519150601f19603f3d011682016040523d82523d6000602084013e620009b2565b606091505b509092509050620009c5828286620009d6565b979650505050505050565b3b151590565b60608315620009e757508162000862565b825115620009f85782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000a4457818101518382015260200162000a2a565b50505050905090810190601f16801562000a725780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b82805482825590600052602060002090810192821562000ac7579160200282015b8281111562000ac7578251829064ffffffffff1690559160200191906001019062000aa1565b5062000ad592915062000b9f565b5090565b82805482825590600052602060002090810192821562000ac7579160200282015b8281111562000ac7578251829060ff1690559160200191906001019062000afa565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000b54576000855562000ac7565b82601f1062000b6f57805160ff191683800117855562000ac7565b8280016001018555821562000ac7579182015b8281111562000ac757825182559160200191906001019062000b82565b5b8082111562000ad5576000815560010162000ba0565b614b478062000bc66000396000f3fe608060405234801561001057600080fd5b50600436106103785760003560e01c8063854ab6df116101d3578063c17b107111610104578063e2bbb158116100a2578063f2fde38b1161007c578063f2fde38b14610adc578063f851a44014610b02578063f99bab2414610b0a578063fdb5a03e14610b1257610378565b8063e2bbb15814610a94578063e5ec14d414610ab7578063e8b5e51f14610ad457610378565b8063ce25aa79116100de578063ce25aa79146109b5578063d0427eb7146109bd578063db2e21bc14610a5e578063dd62ed3e14610a6657610378565b8063c17b10711461096a578063c757483914610987578063c7b9d5301461098f57610378565b8063a457c2d711610171578063a8602fea1161014b578063a8602fea14610908578063a8c62e761461092e578063a9059cbb14610936578063bd244af41461096257610378565b8063a457c2d7146108b7578063a58f22b1146108e3578063a6478c1f146108eb57610378565b80638da5cb5b116101ad5780638da5cb5b146108975780639367b30e1461089f5780639580c4bc146108a757806395d89b41146108af57610378565b8063854ab6df1461084c57806385d6bb81146108545780638ce418f91461087a57610378565b8063441a3e70116102ad578063704b6c021161024b578063733199751161022557806373319975146107a5578063737ea0ad146107ce57806378fe08d51461083c5780637da0a8771461084457610378565b8063704b6c021461075157806370a0823114610777578063715018a61461079d57610378565b8063486ff0cd11610287578063486ff0cd146106b55780634f64b2be146106bd578063572b6c051461070257806358acff8f1461072857610378565b8063441a3e70146106825780634626402b146106a5578063465fc5d2146106ad57610378565b8063238b15981161031a578063251c1aa3116102f4578063251c1aa3146105c2578063313ce567146105ca57806334100fc4146105e8578063395093511461065657610378565b8063238b15981461056757806323b872dd14610584578063242c8e69146105ba57610378565b80631460b505116103565780631460b5051461046257806318160ddd146105035780631a8f0c0a1461051d5780631fe4a6861461054357610378565b806306fdde031461037d578063095ea7b3146103fa5780630d8b76a81461043a575b600080fd5b610385610b1a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bf5781810151838201526020016103a7565b50505050905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104266004803603604081101561041057600080fd5b506001600160a01b038135169060200135610bb1565b604080519115158252519081900360200190f35b6104606004803603602081101561045057600080fd5b50356001600160a01b0316610bcf565b005b6104606004803603602081101561047857600080fd5b810190602081018135600160201b81111561049257600080fd5b8201836020820111156104a457600080fd5b803590602001918460208302840111600160201b831117156104c557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c53945050505050565b61050b610d40565b60408051918252519081900360200190f35b6104606004803603602081101561053357600080fd5b50356001600160a01b0316610d46565b61054b610e28565b604080516001600160a01b039092168252519081900360200190f35b61050b6004803603602081101561057d57600080fd5b5035610e37565b6104266004803603606081101561059a57600080fd5b506001600160a01b03813581169160208101359091169060400135610e58565b61050b610ee0565b61050b610ee7565b6105d2610eed565b6040805160ff9092168252519081900360200190f35b610460600480360360208110156105fe57600080fd5b810190602081018135600160201b81111561061857600080fd5b82018360208201111561062a57600080fd5b803590602001918460208302840111600160201b8311171561064b57600080fd5b509092509050610ef6565b6104266004803603604081101561066c57600080fd5b506001600160a01b03813516906020013561113a565b6104606004803603604081101561069857600080fd5b5080359060200135611188565b61054b611691565b61054b6116a0565b6103856116af565b6106da600480360360208110156106d357600080fd5b50356116ca565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b6104266004803603602081101561071857600080fd5b50356001600160a01b03166116f5565b6104606004803603606081101561073e57600080fd5b508035906020810135906040013561170c565b6104606004803603602081101561076757600080fd5b50356001600160a01b03166118d2565b61050b6004803603602081101561078d57600080fd5b50356001600160a01b0316611956565b610460611971565b610460600480360360608110156107bb57600080fd5b5080359060208101359060400135611a23565b610460600480360360208110156107e457600080fd5b810190602081018135600160201b8111156107fe57600080fd5b82018360208201111561081057600080fd5b803590602001918460208302840111600160201b8311171561083157600080fd5b509092509050611d02565b61050b611ec5565b61054b611ecb565b610426611eda565b6104606004803603602081101561086a57600080fd5b50356001600160a01b0316611eea565b6104606004803603602081101561089057600080fd5b5035611f6e565b61054b61205f565b61050b612073565b610460612079565b61038561236f565b610426600480360360408110156108cd57600080fd5b506001600160a01b0381351690602001356123d0565b610460612438565b6104606004803603602081101561090157600080fd5b50356128cf565b6104606004803603602081101561091e57600080fd5b50356001600160a01b03166129aa565b61054b612a2e565b6104266004803603604081101561094c57600080fd5b506001600160a01b038135169060200135612a3d565b61050b612a51565b6104606004803603602081101561098057600080fd5b5035612c7f565b61054b612d70565b610460600480360360208110156109a557600080fd5b50356001600160a01b0316612d7f565b61050b612e14565b610460600480360360208110156109d357600080fd5b810190602081018135600160201b8111156109ed57600080fd5b8201836020820111156109ff57600080fd5b803590602001918460208302840111600160201b83111715610a2057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612e1a945050505050565b610460612f3b565b61050b60048036036040811015610a7c57600080fd5b506001600160a01b0381358116916020013516612ff1565b61046060048036036040811015610aaa57600080fd5b508035906020013561301c565b61050b60048036036020811015610acd57600080fd5b5035613257565b610460613267565b61046060048036036020811015610af257600080fd5b50356001600160a01b0316613573565b61054b613681565b610460613690565b610460613711565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ba65780601f10610b7b57610100808354040283529160200191610ba6565b820191906000526020600020905b815481529060010190602001808311610b8957829003601f168201915b505050505090505b90565b6000610bc5610bbe61390e565b848461391d565b5060015b92915050565b610bd761390e565b6001600160a01b0316610be861205f565b6001600160a01b031614610c31576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610c9f576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600754604051631460b50560e01b81526020600482018181528451602484015284516001600160a01b0390941693631460b5059386938392604490920191818601910280838360005b83811015610d00578181015183820152602001610ce8565b5050505090500192505050600060405180830381600087803b158015610d2557600080fd5b505af1158015610d39573d6000803e3d6000fd5b5050505050565b60025490565b610d4e61390e565b6001600160a01b0316610d5f61205f565b6001600160a01b031614610da8576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600954600160a01b900460ff16610e06576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207365742070656e64696e67207374726174656779206e6f7700604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b031681565b600d8181548110610e4757600080fd5b600091825260209091200154905081565b6000610e65848484613a09565b610ed584610e7161390e565b610ed0856040518060600160405280602881526020016149a3602891396001600160a01b038a16600090815260016020526040812090610eaf61390e565b6001600160a01b031681526020810191909152604001600020549190613b64565b61391d565b5060015b9392505050565b6202a30081565b600a5481565b60055460ff1690565b610efe61390e565b6001600160a01b0316610f0f61205f565b6001600160a01b031614610f58576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b81816000818110610f6557fe5b9050602002013560001415610fc1576040805162461bcd60e51b815260206004820152601a60248201527f4d696e696d756e20616d6f756e742063616e6e6f742062652030000000000000604482015290519081900360640190fd5b81816000818110610fce57fe5b9050602002013582826001818110610fe257fe5b90506020020135116110255760405162461bcd60e51b815260040180806020018281038252602f815260200180614903602f913960400191505060405180910390fd5b6000600b80548060200260200160405190810160405280929190818152602001828054801561107357602002820191906000526020600020905b81548152602001906001019080831161105f575b505050505090508282600b919061108b9291906146fb565b507f27a98e39e1429b018e9a49265f33c203cb4819c6ce1ab3fcb70815f9d738c15b818484604051808060200180602001838103835286818151815260200191508051906020019060200280838360005b838110156110f45781810151838201526020016110dc565b505050509050018381038252858582818152602001925060200280828437600083820152604051601f909101601f191690920182900397509095505050505050a1505050565b6000610bc561114761390e565b84610ed0856001600061115861390e565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490613bfb565b3332146111c7576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b6000821161120e576040805162461bcd60e51b815260206004820152600f60248201526e0536861726573206d757374203e203608c1b604482015290519081900360640190fd5b600061123361121b610d40565b61122d85611227612a51565b90613c55565b90613cae565b905061123f3384613d15565b6000828152601460209081526040808320815160608101835281546001600160a01b03168082526001830154828601526002909201548184015282516370a0823160e01b8152306004820152925190949391926370a08231926024808301939192829003018186803b1580156112b457600080fd5b505afa1580156112c8573d6000803e3d6000fd5b505050506040513d60208110156112de57600080fd5b5051602083015190915060121415611302576112ff8364e8d4a51000613c55565b92505b8083111561157657600073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b031663d06ca61f85611352866000015173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2613e11565b6040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156113a757818101518382015260200161138f565b50505050905001935050505060006040518083038186803b1580156113cb57600080fd5b505afa1580156113df573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561140857600080fd5b8101908080516040519392919084600160201b82111561142757600080fd5b90830190602082018581111561143c57600080fd5b82518660208202830111600160201b8211171561145857600080fd5b82525081516020918201928201910280838360005b8381101561148557818101518382015260200161146d565b5050505090500160405250505090506000600760009054906101000a90046001600160a01b03166001600160a01b0316632e1a7d4d836001815181106114c757fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561150557600080fd5b505af1158015611519573d6000803e3d6000fd5b505050506040513d602081101561152f57600080fd5b505184519091506000906115599073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29084613e92565b90508060018151811061156857fe5b602002602001015195505050505b60008260200151601214611598576115938664e8d4a51000613cae565b61159a565b855b90508084111561161c5760006115b085836141b5565b905060006115cf61271061122d600f5485613c5590919063ffffffff16565b90506115db86826141b5565b955084602001516012146115fb576010546115f69082613bfb565b611616565b61161661160d8264e8d4a51000613cae565b60105490613bfb565b60105550505b8251611632906001600160a01b03163386614212565b600085815260146020908152604091829020548251878152918201899052825133936001600160a01b03909216927ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb56792908290030190a3505050505050565b6011546001600160a01b031681565b6009546001600160a01b031681565b6040805180820190915260018152603160f81b602082015290565b6014602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b6006546001600160a01b038281169116145b919050565b6008546001600160a01b03163314611758576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000838152601460209081526040918290205482516370a0823160e01b8152306004820152925184936001600160a01b03909216926370a082319260248082019391829003018186803b1580156117ae57600080fd5b505afa1580156117c2573d6000803e3d6000fd5b505050506040513d60208110156117d857600080fd5b50511161182c576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420616d6f756e7420746f20737761700000000000604482015290519081900360640190fd5b600061183784614264565b9050600061184484614264565b60408051630f7c084960e21b8152600f85810b600483015283900b602482015260448101869052600060648201819052915192935073bebc44782c7db0a1a60cb6fe97d0b483032ff1c792633df021249260848084019391929182900301818387803b1580156118b357600080fd5b505af11580156118c7573d6000803e3d6000fd5b505050505050505050565b6118da61390e565b6001600160a01b03166118eb61205f565b6001600160a01b031614611934576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526020819052604090205490565b61197961390e565b6001600160a01b031661198a61205f565b6001600160a01b0316146119d3576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6008546001600160a01b03163314611a6f576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000838152601460209081526040808320815160608101835281546001600160a01b031680825260018301549482019490945260029091015491810191909152919073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f9063d06ca61f908590611aed9073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2613e11565b6040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001935050505060006040518083038186803b158015611b6657600080fd5b505afa158015611b7a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611ba357600080fd5b8101908080516040519392919084600160201b821115611bc257600080fd5b908301906020820185811115611bd757600080fd5b82518660208202830111600160201b82111715611bf357600080fd5b82525081516020918201928201910280838360005b83811015611c20578181015183820152602001611c08565b5050505090500160405250505090506000600760009054906101000a90046001600160a01b03166001600160a01b031663c630bc5683600181518110611c6257fe5b6020026020010151876040518363ffffffff1660e01b81526004018083815260200182815260200192505050602060405180830381600087803b158015611ca857600080fd5b505af1158015611cbc573d6000803e3d6000fd5b505050506040513d6020811015611cd257600080fd5b50518351909150611cf99073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29083613e92565b50505050505050565b611d0a61390e565b6001600160a01b0316611d1b61205f565b6001600160a01b031614611d64576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b610bb882826000818110611d7457fe5b90506020020135108015611d9c5750610bb882826001818110611d9357fe5b90506020020135105b8015611dbc5750610bb882826002818110611db357fe5b90506020020135105b611df75760405162461bcd60e51b815260040180806020018281038252602e8152602001806148af602e913960400191505060405180910390fd5b6000600d805480602002602001604051908101604052809291908181526020018280548015611e4557602002820191906000526020600020905b815481526020019060010190808311611e31575b505050505090508282600d9190611e5d9291906146fb565b507f3227c0eb87cc3f1cd6f5dbf94481c11a412dc6a3fcbaef0a10671bfe878d46a581848460405180806020018060200183810383528681815181526020019150805190602001906020028083836000838110156110f45781810151838201526020016110dc565b600e5481565b6006546001600160a01b031681565b600954600160a01b900460ff1681565b611ef261390e565b6001600160a01b0316611f0361205f565b6001600160a01b031614611f4c576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611f7661390e565b6001600160a01b0316611f8761205f565b6001600160a01b031614611fd0576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600d600281548110611fde57fe5b906000526020600020015481106120265760405162461bcd60e51b8152600401808060200182810382526038815260200180614a0c6038913960400191505060405180910390fd5b600e805490829055604051829082907f88956a36dde8b18c54b71bdb817c8ac920184c2365db87fb7b44c5aecaf738ad90600090a35050565b60055461010090046001600160a01b031690565b600f5481565b61208161390e565b6001600160a01b031661209261205f565b6001600160a01b0316146120db576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b42600a54111580156120fd5750600a5442906120fa9062015180613bfb565b10155b612140576040805162461bcd60e51b815260206004820152600f60248201526e119d5b98dd1a5bdb881b1bd8dad959608a1b604482015290519081900360640190fd5b600754604080516370a0823160e01b81526001600160a01b0390921660048301525160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b1580156121a157600080fd5b505afa1580156121b5573d6000803e3d6000fd5b505050506040513d60208110156121cb57600080fd5b5051905080612219576040805162461bcd60e51b81526020600482015260156024820152744e6f2062616c616e636520746f206d69677261746560581b604482015290519081900360640190fd5b6009546001600160a01b031661226b576040805162461bcd60e51b81526020600482015260126024820152714e6f2070656e64696e67537472617465677960701b604482015290519081900360640190fd5b60075460095461229e9173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916001600160a01b0391821691168461428c565b60078054600980546001600160a01b031983166001600160a01b0382811691909117948590556001600160a81b0319909116600160a01b17909155908116916123009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291166000196137ad565b61232073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28260006137ad565b6000600a556007546040805184815290516001600160a01b03928316928416917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a35050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ba65780601f10610b7b57610100808354040283529160200191610ba6565b6000610bc56123dd61390e565b84610ed085604051806060016040528060258152602001614aed602591396001600061240761390e565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190613b64565b3330148061245057506008546001600160a01b031633145b612492576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601054156128cd5760006124a4614746565b601054600080526014602090815260008051602061488f83398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561250457600080fd5b505afa158015612518573d6000803e3d6000fd5b505050506040513d602081101561252e57600080fd5b505111156125bf57505060008052601460209081526040805160608101825260008051602061488f833981519152546001600160a01b031681527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d54928101929092527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e54908201526001906127f4565b60105460016000526014602090815260008051602061484983398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561262057600080fd5b505afa158015612634573d6000803e3d6000fd5b505050506040513d602081101561264a57600080fd5b505111156126db575050600160008190526014602090815260408051606081018252600080516020614849833981519152546001600160a01b031681527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d54928101929092527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e54908201526127f4565b60105460026000526014602090815260008051602061493283398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561273c57600080fd5b505afa158015612750573d6000803e3d6000fd5b505050506040513d602081101561276657600080fd5b505111156127f457505060026000526014602090815260408051606081018252600080516020614932833981519152546001600160a01b031681527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b54928101929092527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c54908201526001905b81156128ca576000612817600561122d6002601054613c5590919063ffffffff16565b6011548351919250612836916001600160a01b03908116911683614212565b6012548251612852916001600160a01b03918216911683614212565b60135460105461288e916001600160a01b03169061287c90849061287690826141b5565b906141b5565b84516001600160a01b03169190614212565b60105460408051918252517fac666b559266a78134e451d448294dee5b26768856cdc24f37cd43c218ec790a9181900360200190a15060006010555b50505b565b6128d761390e565b6001600160a01b03166128e861205f565b6001600160a01b031614612931576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b610bb881106129715760405162461bcd60e51b81526004018080602001828103825260368152602001806147cb6036913960400191505060405180910390fd5b600f805490829055604051829082907f4c98cf9b88d370c1f7909301995611f647088f4c05d29cb98073fb4e20dcb14790600090a35050565b6129b261390e565b6001600160a01b03166129c361205f565b6001600160a01b031614612a0c576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b6000610bc5612a4a61390e565b8484613a09565b601054600260009081526014602090815260008051602061493283398151915254604080516370a0823160e01b8152306004820152905193948594612c2594919361287693612b019364e8d4a51000936001600160a01b03909316926370a08231926024808201939291829003018186803b158015612acf57600080fd5b505afa158015612ae3573d6000803e3d6000fd5b505050506040513d6020811015612af957600080fd5b505190613cae565b60016000526014602090815260008051602061484983398151915254604080516370a0823160e01b81523060048201529051612c1f936001600160a01b03909316926370a082319260248082019391829003018186803b158015612b6457600080fd5b505afa158015612b78573d6000803e3d6000fd5b505050506040513d6020811015612b8e57600080fd5b5051600080526014602090815260008051602061488f83398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b158015612bed57600080fd5b505afa158015612c01573d6000803e3d6000fd5b505050506040513d6020811015612c1757600080fd5b505190613bfb565b90613bfb565b9050612c7981600760009054906101000a90046001600160a01b03166001600160a01b031663b1d66b426040518163ffffffff1660e01b815260040160206040518083038186803b158015612bed57600080fd5b91505090565b612c8761390e565b6001600160a01b0316612c9861205f565b6001600160a01b031614612ce1576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600b600181548110612cef57fe5b90600052602060002001548111612d375760405162461bcd60e51b81526004018080602001828103825260308152602001806149526030913960400191505060405180910390fd5b600c805490829055604051829082907fef2a4c2ea48c640ebf60d3ed1b6c41747f60e3c5bf7b290e4ad0d156839b643390600090a35050565b6012546001600160a01b031681565b6013546001600160a01b0316331480612db05750612d9b61205f565b6001600160a01b0316336001600160a01b0316145b612df2576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b6008546001600160a01b03163314612e66576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b80600081518110612e7357fe5b6020908102919091018101516000805260149091527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e55805181906001908110612eb957fe5b602090810291909101810151600160005260149091527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e55805181906002908110612f0057fe5b602090810291909101810151600260005260149091527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c5550565b6008546001600160a01b03163314612f87576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663db2e21bc6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612fd757600080fd5b505af1158015612feb573d6000803e3d6000fd5b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3332148061302e575061302e336116f5565b613076576040805162461bcd60e51b81526020600482015260146024820152734f6e6c7920454f41206f72204269636f6e6f6d7960601b604482015290519081900360640190fd5b600082116130bd576040805162461bcd60e51b815260206004820152600f60248201526e0416d6f756e74206d757374203e203608c1b604482015290519081900360640190fd5b60006130c761390e565b6000838152601460205260409020549091506130ee906001600160a01b031682308661428c565b60008281526014602052604090206001015483906012141561311c576131198464e8d4a51000613cae565b93505b6000600b60008154811061312c57fe5b906000526020600020015485101561315e57600d60008154811061314c57fe5b906000526020600020015490506131a8565b600b60018154811061316c57fe5b9060005260206000200154851161318b57600d60018154811061314c57fe5b600c548510156131a357600d60028154811061314c57fe5b50600e545b60006131ba61271061122d8885613c55565b6010549091506131ca9082613bfb565b6010556131d786826141b5565b955060006131ea8764e8d4a51000613c55565b90506131f685826142e6565b60008681526014602090815260409182902054825187815291820184905282516001600160a01b03808a16949216927fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d792908290030190a350505050505050565b600b8181548110610e4757600080fd5b6008546001600160a01b031633146132b3576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6132bb612438565b604080516060808201835260008051602061488f833981519152546001600160a01b0390811683527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d546020848101919091527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e54848601528451808401865260008051602061484983398151915254831681527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d54818301527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e54818701526002600090815260148352865194850187526000805160206149328339815191525490931684527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b54918401919091527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c549483019490945291929161341f612a51565b905061344b846000015161344661271061122d886040015186613c5590919063ffffffff16565b6143d6565b613470836000015161344661271061122d876040015186613c5590919063ffffffff16565b61349e826000015161344664e8d4a5100061122761271061122d886040015188613c5590919063ffffffff16565b604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b1580156134f357600080fd5b505afa158015613507573d6000803e3d6000fd5b505050506040513d602081101561351d57600080fd5b505190508015610d3957600754604080516255f9e960e71b81526004810184905290516001600160a01b0390921691632afcf4809160248082019260009290919082900301818387803b1580156118b357600080fd5b61357b61390e565b6001600160a01b031661358c61205f565b6001600160a01b0316146135d5576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b6001600160a01b03811661361a5760405162461bcd60e51b81526004018080602001828103825260268152602001806148016026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6008546001600160a01b031681565b61369861390e565b6001600160a01b03166136a961205f565b6001600160a01b0316146136f2576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b6136ff426202a300613bfb565b600a556009805460ff60a01b19169055565b6008546001600160a01b0316331461375d576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663fdb5a03e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612fd757600080fd5b801580613833575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561380557600080fd5b505afa158015613819573d6000803e3d6000fd5b505050506040513d602081101561382f57600080fd5b5051155b61386e5760405162461bcd60e51b8152600401808060200182810382526036815260200180614ab76036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526138c0908490614483565b505050565b6000601836108015906138dc57506138dc336116f5565b156138f0575060131936013560601c610bae565b5033610bae565b60606139068484600085614534565b949350505050565b60006139186138c5565b905090565b6001600160a01b0383166139625760405162461bcd60e51b8152600401808060200182810382526024815260200180614a696024913960400191505060405180910390fd5b6001600160a01b0382166139a75760405162461bcd60e51b81526004018080602001828103825260228152602001806148276022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316613a4e5760405162461bcd60e51b8152600401808060200182810382526025815260200180614a446025913960400191505060405180910390fd5b6001600160a01b038216613a935760405162461bcd60e51b81526004018080602001828103825260238152602001806147866023913960400191505060405180910390fd5b613a9e8383836138c0565b613adb81604051806060016040528060268152602001614869602691396001600160a01b0386166000908152602081905260409020549190613b64565b6001600160a01b038085166000908152602081905260408082209390935590841681522054613b0a9082613bfb565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115613bf35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613bb8578181015183820152602001613ba0565b50505050905090810190601f168015613be55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ed9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613c6457506000610bc9565b82820282848281613c7157fe5b0414610ed95760405162461bcd60e51b81526004018080602001828103825260218152602001806149826021913960400191505060405180910390fd5b6000808211613d04576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381613d0d57fe5b049392505050565b6001600160a01b038216613d5a5760405162461bcd60e51b81526004018080602001828103825260218152602001806149eb6021913960400191505060405180910390fd5b613d66826000836138c0565b613da3816040518060600160405280602281526020016147a9602291396001600160a01b0385166000908152602081905260409020549190613b64565b6001600160a01b038316600090815260208190526040902055600254613dc990826141b5565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516002808252606080830184529260009291906020830190803683370190505090508381600081518110613e4457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110613e7257fe5b6001600160a01b0390921660209283029190910190910152905092915050565b60606000613ea08585613e11565b6040805163d06ca61f60e01b8152600481018681526024820192835283516044830152835193945060009373d9e1ce17f2641f24ae83637ab66a2cca9c378b9f9363d06ca61f938993889390929160640190602080860191028083838c5b83811015613f16578181015183820152602001613efe565b50505050905001935050505060006040518083038186803b158015613f3a57600080fd5b505afa158015613f4e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613f7757600080fd5b8101908080516040519392919084600160201b821115613f9657600080fd5b908301906020820185811115613fab57600080fd5b82518660208202830111600160201b82111715613fc757600080fd5b82525081516020918201928201910280838360005b83811015613ff4578181015183820152602001613fdc565b50505050905001604052505050905060008160018151811061401257fe5b602002602001015111156141ac5773d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b03166338ed17398560008530426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156140b95781810151838201526020016140a1565b505050509050019650505050505050600060405180830381600087803b1580156140e257600080fd5b505af11580156140f6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561411f57600080fd5b8101908080516040519392919084600160201b82111561413e57600080fd5b90830190602082018581111561415357600080fd5b82518660208202830111600160201b8211171561416f57600080fd5b82525081516020918201928201910280838360005b8381101561419c578181015183820152602001614184565b5050505090500160405250505092505b50509392505050565b60008282111561420c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526138c0908490614483565b60008161427357506002611707565b816001141561428457506001611707565b506000611707565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612feb908590614483565b6001600160a01b038216614341576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61434d600083836138c0565b60025461435a9082613bfb565b6002556001600160a01b0382166000908152602081905260409020546143809082613bfb565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561442557600080fd5b505afa158015614439573d6000803e3d6000fd5b505050506040513d602081101561444f57600080fd5b50519050818111156138c057612feb8373c02aaa39b223fe8d0a0e5c4f27ead9083c756cc261447e84866141b5565b613e92565b60006144d8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138f79092919063ffffffff16565b8051909150156138c0578080602001905160208110156144f757600080fd5b50516138c05760405162461bcd60e51b815260040180806020018281038252602a815260200180614a8d602a913960400191505060405180910390fd5b6060824710156145755760405162461bcd60e51b81526004018080602001828103825260268152602001806148dd6026913960400191505060405180910390fd5b61457e8561468f565b6145cf576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061460d5780518252601f1990920191602091820191016145ee565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461466f576040519150601f19603f3d011682016040523d82523d6000602084013e614674565b606091505b5091509150614684828286614695565b979650505050505050565b3b151590565b606083156146a4575081610ed9565b8251156146b45782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315613bb8578181015183820152602001613ba0565b828054828255906000526020600020908101928215614736579160200282015b8281111561473657823582559160200191906001019061471b565b50614742929150614770565b5090565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b5b80821115614742576000815560010161477156fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550726f66696c652073686172696e67206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e203330254f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373b6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c4e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e20333025416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d6178696d756e20616d6f756e74206d7573742067726561746572207468616e206d696e696d756e20616d6f756e74a1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a437573746f6d206e6574776f726b206665652074696572206d7573742067726561746572207468616e20746965722032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f2061646472657373437573746f6d206e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e2074696572203245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204a8031d22aac3027acde2692f2ef99c5a45187e8e313f17dc9dae9a7972ed44264736f6c63430007060033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000000007c0f84e9dc6f721de21d51a490de6e370fa01cd600000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d00000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b9900000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe93400000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103785760003560e01c8063854ab6df116101d3578063c17b107111610104578063e2bbb158116100a2578063f2fde38b1161007c578063f2fde38b14610adc578063f851a44014610b02578063f99bab2414610b0a578063fdb5a03e14610b1257610378565b8063e2bbb15814610a94578063e5ec14d414610ab7578063e8b5e51f14610ad457610378565b8063ce25aa79116100de578063ce25aa79146109b5578063d0427eb7146109bd578063db2e21bc14610a5e578063dd62ed3e14610a6657610378565b8063c17b10711461096a578063c757483914610987578063c7b9d5301461098f57610378565b8063a457c2d711610171578063a8602fea1161014b578063a8602fea14610908578063a8c62e761461092e578063a9059cbb14610936578063bd244af41461096257610378565b8063a457c2d7146108b7578063a58f22b1146108e3578063a6478c1f146108eb57610378565b80638da5cb5b116101ad5780638da5cb5b146108975780639367b30e1461089f5780639580c4bc146108a757806395d89b41146108af57610378565b8063854ab6df1461084c57806385d6bb81146108545780638ce418f91461087a57610378565b8063441a3e70116102ad578063704b6c021161024b578063733199751161022557806373319975146107a5578063737ea0ad146107ce57806378fe08d51461083c5780637da0a8771461084457610378565b8063704b6c021461075157806370a0823114610777578063715018a61461079d57610378565b8063486ff0cd11610287578063486ff0cd146106b55780634f64b2be146106bd578063572b6c051461070257806358acff8f1461072857610378565b8063441a3e70146106825780634626402b146106a5578063465fc5d2146106ad57610378565b8063238b15981161031a578063251c1aa3116102f4578063251c1aa3146105c2578063313ce567146105ca57806334100fc4146105e8578063395093511461065657610378565b8063238b15981461056757806323b872dd14610584578063242c8e69146105ba57610378565b80631460b505116103565780631460b5051461046257806318160ddd146105035780631a8f0c0a1461051d5780631fe4a6861461054357610378565b806306fdde031461037d578063095ea7b3146103fa5780630d8b76a81461043a575b600080fd5b610385610b1a565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103bf5781810151838201526020016103a7565b50505050905090810190601f1680156103ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104266004803603604081101561041057600080fd5b506001600160a01b038135169060200135610bb1565b604080519115158252519081900360200190f35b6104606004803603602081101561045057600080fd5b50356001600160a01b0316610bcf565b005b6104606004803603602081101561047857600080fd5b810190602081018135600160201b81111561049257600080fd5b8201836020820111156104a457600080fd5b803590602001918460208302840111600160201b831117156104c557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610c53945050505050565b61050b610d40565b60408051918252519081900360200190f35b6104606004803603602081101561053357600080fd5b50356001600160a01b0316610d46565b61054b610e28565b604080516001600160a01b039092168252519081900360200190f35b61050b6004803603602081101561057d57600080fd5b5035610e37565b6104266004803603606081101561059a57600080fd5b506001600160a01b03813581169160208101359091169060400135610e58565b61050b610ee0565b61050b610ee7565b6105d2610eed565b6040805160ff9092168252519081900360200190f35b610460600480360360208110156105fe57600080fd5b810190602081018135600160201b81111561061857600080fd5b82018360208201111561062a57600080fd5b803590602001918460208302840111600160201b8311171561064b57600080fd5b509092509050610ef6565b6104266004803603604081101561066c57600080fd5b506001600160a01b03813516906020013561113a565b6104606004803603604081101561069857600080fd5b5080359060200135611188565b61054b611691565b61054b6116a0565b6103856116af565b6106da600480360360208110156106d357600080fd5b50356116ca565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b6104266004803603602081101561071857600080fd5b50356001600160a01b03166116f5565b6104606004803603606081101561073e57600080fd5b508035906020810135906040013561170c565b6104606004803603602081101561076757600080fd5b50356001600160a01b03166118d2565b61050b6004803603602081101561078d57600080fd5b50356001600160a01b0316611956565b610460611971565b610460600480360360608110156107bb57600080fd5b5080359060208101359060400135611a23565b610460600480360360208110156107e457600080fd5b810190602081018135600160201b8111156107fe57600080fd5b82018360208201111561081057600080fd5b803590602001918460208302840111600160201b8311171561083157600080fd5b509092509050611d02565b61050b611ec5565b61054b611ecb565b610426611eda565b6104606004803603602081101561086a57600080fd5b50356001600160a01b0316611eea565b6104606004803603602081101561089057600080fd5b5035611f6e565b61054b61205f565b61050b612073565b610460612079565b61038561236f565b610426600480360360408110156108cd57600080fd5b506001600160a01b0381351690602001356123d0565b610460612438565b6104606004803603602081101561090157600080fd5b50356128cf565b6104606004803603602081101561091e57600080fd5b50356001600160a01b03166129aa565b61054b612a2e565b6104266004803603604081101561094c57600080fd5b506001600160a01b038135169060200135612a3d565b61050b612a51565b6104606004803603602081101561098057600080fd5b5035612c7f565b61054b612d70565b610460600480360360208110156109a557600080fd5b50356001600160a01b0316612d7f565b61050b612e14565b610460600480360360208110156109d357600080fd5b810190602081018135600160201b8111156109ed57600080fd5b8201836020820111156109ff57600080fd5b803590602001918460208302840111600160201b83111715610a2057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612e1a945050505050565b610460612f3b565b61050b60048036036040811015610a7c57600080fd5b506001600160a01b0381358116916020013516612ff1565b61046060048036036040811015610aaa57600080fd5b508035906020013561301c565b61050b60048036036020811015610acd57600080fd5b5035613257565b610460613267565b61046060048036036020811015610af257600080fd5b50356001600160a01b0316613573565b61054b613681565b610460613690565b610460613711565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ba65780601f10610b7b57610100808354040283529160200191610ba6565b820191906000526020600020905b815481529060010190602001808311610b8957829003601f168201915b505050505090505b90565b6000610bc5610bbe61390e565b848461391d565b5060015b92915050565b610bd761390e565b6001600160a01b0316610be861205f565b6001600160a01b031614610c31576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b03163314610c9f576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600754604051631460b50560e01b81526020600482018181528451602484015284516001600160a01b0390941693631460b5059386938392604490920191818601910280838360005b83811015610d00578181015183820152602001610ce8565b5050505090500192505050600060405180830381600087803b158015610d2557600080fd5b505af1158015610d39573d6000803e3d6000fd5b5050505050565b60025490565b610d4e61390e565b6001600160a01b0316610d5f61205f565b6001600160a01b031614610da8576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600954600160a01b900460ff16610e06576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207365742070656e64696e67207374726174656779206e6f7700604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6013546001600160a01b031681565b600d8181548110610e4757600080fd5b600091825260209091200154905081565b6000610e65848484613a09565b610ed584610e7161390e565b610ed0856040518060600160405280602881526020016149a3602891396001600160a01b038a16600090815260016020526040812090610eaf61390e565b6001600160a01b031681526020810191909152604001600020549190613b64565b61391d565b5060015b9392505050565b6202a30081565b600a5481565b60055460ff1690565b610efe61390e565b6001600160a01b0316610f0f61205f565b6001600160a01b031614610f58576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b81816000818110610f6557fe5b9050602002013560001415610fc1576040805162461bcd60e51b815260206004820152601a60248201527f4d696e696d756e20616d6f756e742063616e6e6f742062652030000000000000604482015290519081900360640190fd5b81816000818110610fce57fe5b9050602002013582826001818110610fe257fe5b90506020020135116110255760405162461bcd60e51b815260040180806020018281038252602f815260200180614903602f913960400191505060405180910390fd5b6000600b80548060200260200160405190810160405280929190818152602001828054801561107357602002820191906000526020600020905b81548152602001906001019080831161105f575b505050505090508282600b919061108b9291906146fb565b507f27a98e39e1429b018e9a49265f33c203cb4819c6ce1ab3fcb70815f9d738c15b818484604051808060200180602001838103835286818151815260200191508051906020019060200280838360005b838110156110f45781810151838201526020016110dc565b505050509050018381038252858582818152602001925060200280828437600083820152604051601f909101601f191690920182900397509095505050505050a1505050565b6000610bc561114761390e565b84610ed0856001600061115861390e565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490613bfb565b3332146111c7576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b6000821161120e576040805162461bcd60e51b815260206004820152600f60248201526e0536861726573206d757374203e203608c1b604482015290519081900360640190fd5b600061123361121b610d40565b61122d85611227612a51565b90613c55565b90613cae565b905061123f3384613d15565b6000828152601460209081526040808320815160608101835281546001600160a01b03168082526001830154828601526002909201548184015282516370a0823160e01b8152306004820152925190949391926370a08231926024808301939192829003018186803b1580156112b457600080fd5b505afa1580156112c8573d6000803e3d6000fd5b505050506040513d60208110156112de57600080fd5b5051602083015190915060121415611302576112ff8364e8d4a51000613c55565b92505b8083111561157657600073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b031663d06ca61f85611352866000015173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2613e11565b6040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156113a757818101518382015260200161138f565b50505050905001935050505060006040518083038186803b1580156113cb57600080fd5b505afa1580156113df573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561140857600080fd5b8101908080516040519392919084600160201b82111561142757600080fd5b90830190602082018581111561143c57600080fd5b82518660208202830111600160201b8211171561145857600080fd5b82525081516020918201928201910280838360005b8381101561148557818101518382015260200161146d565b5050505090500160405250505090506000600760009054906101000a90046001600160a01b03166001600160a01b0316632e1a7d4d836001815181106114c757fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561150557600080fd5b505af1158015611519573d6000803e3d6000fd5b505050506040513d602081101561152f57600080fd5b505184519091506000906115599073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29084613e92565b90508060018151811061156857fe5b602002602001015195505050505b60008260200151601214611598576115938664e8d4a51000613cae565b61159a565b855b90508084111561161c5760006115b085836141b5565b905060006115cf61271061122d600f5485613c5590919063ffffffff16565b90506115db86826141b5565b955084602001516012146115fb576010546115f69082613bfb565b611616565b61161661160d8264e8d4a51000613cae565b60105490613bfb565b60105550505b8251611632906001600160a01b03163386614212565b600085815260146020908152604091829020548251878152918201899052825133936001600160a01b03909216927ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb56792908290030190a3505050505050565b6011546001600160a01b031681565b6009546001600160a01b031681565b6040805180820190915260018152603160f81b602082015290565b6014602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b6006546001600160a01b038281169116145b919050565b6008546001600160a01b03163314611758576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000838152601460209081526040918290205482516370a0823160e01b8152306004820152925184936001600160a01b03909216926370a082319260248082019391829003018186803b1580156117ae57600080fd5b505afa1580156117c2573d6000803e3d6000fd5b505050506040513d60208110156117d857600080fd5b50511161182c576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e7420616d6f756e7420746f20737761700000000000604482015290519081900360640190fd5b600061183784614264565b9050600061184484614264565b60408051630f7c084960e21b8152600f85810b600483015283900b602482015260448101869052600060648201819052915192935073bebc44782c7db0a1a60cb6fe97d0b483032ff1c792633df021249260848084019391929182900301818387803b1580156118b357600080fd5b505af11580156118c7573d6000803e3d6000fd5b505050505050505050565b6118da61390e565b6001600160a01b03166118eb61205f565b6001600160a01b031614611934576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526020819052604090205490565b61197961390e565b6001600160a01b031661198a61205f565b6001600160a01b0316146119d3576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360058054610100600160a81b0319169055565b6008546001600160a01b03163314611a6f576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6000838152601460209081526040808320815160608101835281546001600160a01b031680825260018301549482019490945260029091015491810191909152919073d9e1ce17f2641f24ae83637ab66a2cca9c378b9f9063d06ca61f908590611aed9073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2613e11565b6040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b83811015611b42578181015183820152602001611b2a565b50505050905001935050505060006040518083038186803b158015611b6657600080fd5b505afa158015611b7a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015611ba357600080fd5b8101908080516040519392919084600160201b821115611bc257600080fd5b908301906020820185811115611bd757600080fd5b82518660208202830111600160201b82111715611bf357600080fd5b82525081516020918201928201910280838360005b83811015611c20578181015183820152602001611c08565b5050505090500160405250505090506000600760009054906101000a90046001600160a01b03166001600160a01b031663c630bc5683600181518110611c6257fe5b6020026020010151876040518363ffffffff1660e01b81526004018083815260200182815260200192505050602060405180830381600087803b158015611ca857600080fd5b505af1158015611cbc573d6000803e3d6000fd5b505050506040513d6020811015611cd257600080fd5b50518351909150611cf99073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29083613e92565b50505050505050565b611d0a61390e565b6001600160a01b0316611d1b61205f565b6001600160a01b031614611d64576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b610bb882826000818110611d7457fe5b90506020020135108015611d9c5750610bb882826001818110611d9357fe5b90506020020135105b8015611dbc5750610bb882826002818110611db357fe5b90506020020135105b611df75760405162461bcd60e51b815260040180806020018281038252602e8152602001806148af602e913960400191505060405180910390fd5b6000600d805480602002602001604051908101604052809291908181526020018280548015611e4557602002820191906000526020600020905b815481526020019060010190808311611e31575b505050505090508282600d9190611e5d9291906146fb565b507f3227c0eb87cc3f1cd6f5dbf94481c11a412dc6a3fcbaef0a10671bfe878d46a581848460405180806020018060200183810383528681815181526020019150805190602001906020028083836000838110156110f45781810151838201526020016110dc565b600e5481565b6006546001600160a01b031681565b600954600160a01b900460ff1681565b611ef261390e565b6001600160a01b0316611f0361205f565b6001600160a01b031614611f4c576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b601280546001600160a01b0319166001600160a01b0392909216919091179055565b611f7661390e565b6001600160a01b0316611f8761205f565b6001600160a01b031614611fd0576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600d600281548110611fde57fe5b906000526020600020015481106120265760405162461bcd60e51b8152600401808060200182810382526038815260200180614a0c6038913960400191505060405180910390fd5b600e805490829055604051829082907f88956a36dde8b18c54b71bdb817c8ac920184c2365db87fb7b44c5aecaf738ad90600090a35050565b60055461010090046001600160a01b031690565b600f5481565b61208161390e565b6001600160a01b031661209261205f565b6001600160a01b0316146120db576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b42600a54111580156120fd5750600a5442906120fa9062015180613bfb565b10155b612140576040805162461bcd60e51b815260206004820152600f60248201526e119d5b98dd1a5bdb881b1bd8dad959608a1b604482015290519081900360640190fd5b600754604080516370a0823160e01b81526001600160a01b0390921660048301525160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b1580156121a157600080fd5b505afa1580156121b5573d6000803e3d6000fd5b505050506040513d60208110156121cb57600080fd5b5051905080612219576040805162461bcd60e51b81526020600482015260156024820152744e6f2062616c616e636520746f206d69677261746560581b604482015290519081900360640190fd5b6009546001600160a01b031661226b576040805162461bcd60e51b81526020600482015260126024820152714e6f2070656e64696e67537472617465677960701b604482015290519081900360640190fd5b60075460095461229e9173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916001600160a01b0391821691168461428c565b60078054600980546001600160a01b031983166001600160a01b0382811691909117948590556001600160a81b0319909116600160a01b17909155908116916123009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291166000196137ad565b61232073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28260006137ad565b6000600a556007546040805184815290516001600160a01b03928316928416917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a35050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610ba65780601f10610b7b57610100808354040283529160200191610ba6565b6000610bc56123dd61390e565b84610ed085604051806060016040528060258152602001614aed602591396001600061240761390e565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190613b64565b3330148061245057506008546001600160a01b031633145b612492576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601054156128cd5760006124a4614746565b601054600080526014602090815260008051602061488f83398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561250457600080fd5b505afa158015612518573d6000803e3d6000fd5b505050506040513d602081101561252e57600080fd5b505111156125bf57505060008052601460209081526040805160608101825260008051602061488f833981519152546001600160a01b031681527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d54928101929092527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e54908201526001906127f4565b60105460016000526014602090815260008051602061484983398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561262057600080fd5b505afa158015612634573d6000803e3d6000fd5b505050506040513d602081101561264a57600080fd5b505111156126db575050600160008190526014602090815260408051606081018252600080516020614849833981519152546001600160a01b031681527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d54928101929092527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e54908201526127f4565b60105460026000526014602090815260008051602061493283398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561273c57600080fd5b505afa158015612750573d6000803e3d6000fd5b505050506040513d602081101561276657600080fd5b505111156127f457505060026000526014602090815260408051606081018252600080516020614932833981519152546001600160a01b031681527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b54928101929092527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c54908201526001905b81156128ca576000612817600561122d6002601054613c5590919063ffffffff16565b6011548351919250612836916001600160a01b03908116911683614212565b6012548251612852916001600160a01b03918216911683614212565b60135460105461288e916001600160a01b03169061287c90849061287690826141b5565b906141b5565b84516001600160a01b03169190614212565b60105460408051918252517fac666b559266a78134e451d448294dee5b26768856cdc24f37cd43c218ec790a9181900360200190a15060006010555b50505b565b6128d761390e565b6001600160a01b03166128e861205f565b6001600160a01b031614612931576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b610bb881106129715760405162461bcd60e51b81526004018080602001828103825260368152602001806147cb6036913960400191505060405180910390fd5b600f805490829055604051829082907f4c98cf9b88d370c1f7909301995611f647088f4c05d29cb98073fb4e20dcb14790600090a35050565b6129b261390e565b6001600160a01b03166129c361205f565b6001600160a01b031614612a0c576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b601180546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031681565b6000610bc5612a4a61390e565b8484613a09565b601054600260009081526014602090815260008051602061493283398151915254604080516370a0823160e01b8152306004820152905193948594612c2594919361287693612b019364e8d4a51000936001600160a01b03909316926370a08231926024808201939291829003018186803b158015612acf57600080fd5b505afa158015612ae3573d6000803e3d6000fd5b505050506040513d6020811015612af957600080fd5b505190613cae565b60016000526014602090815260008051602061484983398151915254604080516370a0823160e01b81523060048201529051612c1f936001600160a01b03909316926370a082319260248082019391829003018186803b158015612b6457600080fd5b505afa158015612b78573d6000803e3d6000fd5b505050506040513d6020811015612b8e57600080fd5b5051600080526014602090815260008051602061488f83398151915254604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b158015612bed57600080fd5b505afa158015612c01573d6000803e3d6000fd5b505050506040513d6020811015612c1757600080fd5b505190613bfb565b90613bfb565b9050612c7981600760009054906101000a90046001600160a01b03166001600160a01b031663b1d66b426040518163ffffffff1660e01b815260040160206040518083038186803b158015612bed57600080fd5b91505090565b612c8761390e565b6001600160a01b0316612c9861205f565b6001600160a01b031614612ce1576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b600b600181548110612cef57fe5b90600052602060002001548111612d375760405162461bcd60e51b81526004018080602001828103825260308152602001806149526030913960400191505060405180910390fd5b600c805490829055604051829082907fef2a4c2ea48c640ebf60d3ed1b6c41747f60e3c5bf7b290e4ad0d156839b643390600090a35050565b6012546001600160a01b031681565b6013546001600160a01b0316331480612db05750612d9b61205f565b6001600160a01b0316336001600160a01b0316145b612df2576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b600c5481565b6008546001600160a01b03163314612e66576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b80600081518110612e7357fe5b6020908102919091018101516000805260149091527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e55805181906001908110612eb957fe5b602090810291909101810151600160005260149091527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e55805181906002908110612f0057fe5b602090810291909101810151600260005260149091527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c5550565b6008546001600160a01b03163314612f87576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663db2e21bc6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612fd757600080fd5b505af1158015612feb573d6000803e3d6000fd5b50505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3332148061302e575061302e336116f5565b613076576040805162461bcd60e51b81526020600482015260146024820152734f6e6c7920454f41206f72204269636f6e6f6d7960601b604482015290519081900360640190fd5b600082116130bd576040805162461bcd60e51b815260206004820152600f60248201526e0416d6f756e74206d757374203e203608c1b604482015290519081900360640190fd5b60006130c761390e565b6000838152601460205260409020549091506130ee906001600160a01b031682308661428c565b60008281526014602052604090206001015483906012141561311c576131198464e8d4a51000613cae565b93505b6000600b60008154811061312c57fe5b906000526020600020015485101561315e57600d60008154811061314c57fe5b906000526020600020015490506131a8565b600b60018154811061316c57fe5b9060005260206000200154851161318b57600d60018154811061314c57fe5b600c548510156131a357600d60028154811061314c57fe5b50600e545b60006131ba61271061122d8885613c55565b6010549091506131ca9082613bfb565b6010556131d786826141b5565b955060006131ea8764e8d4a51000613c55565b90506131f685826142e6565b60008681526014602090815260409182902054825187815291820184905282516001600160a01b03808a16949216927fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d792908290030190a350505050505050565b600b8181548110610e4757600080fd5b6008546001600160a01b031633146132b3576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b6132bb612438565b604080516060808201835260008051602061488f833981519152546001600160a01b0390811683527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99d546020848101919091527f4f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99e54848601528451808401865260008051602061484983398151915254831681527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2d54818301527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2e54818701526002600090815260148352865194850187526000805160206149328339815191525490931684527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7b54918401919091527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7c549483019490945291929161341f612a51565b905061344b846000015161344661271061122d886040015186613c5590919063ffffffff16565b6143d6565b613470836000015161344661271061122d876040015186613c5590919063ffffffff16565b61349e826000015161344664e8d4a5100061122761271061122d886040015188613c5590919063ffffffff16565b604080516370a0823160e01b8152306004820152905160009173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2916370a0823191602480820192602092909190829003018186803b1580156134f357600080fd5b505afa158015613507573d6000803e3d6000fd5b505050506040513d602081101561351d57600080fd5b505190508015610d3957600754604080516255f9e960e71b81526004810184905290516001600160a01b0390921691632afcf4809160248082019260009290919082900301818387803b1580156118b357600080fd5b61357b61390e565b6001600160a01b031661358c61205f565b6001600160a01b0316146135d5576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b6001600160a01b03811661361a5760405162461bcd60e51b81526004018080602001828103825260268152602001806148016026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6008546001600160a01b031681565b61369861390e565b6001600160a01b03166136a961205f565b6001600160a01b0316146136f2576040805162461bcd60e51b815260206004820181905260248201526000805160206149cb833981519152604482015290519081900360640190fd5b6136ff426202a300613bfb565b600a556009805460ff60a01b19169055565b6008546001600160a01b0316331461375d576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9030b236b4b760b11b604482015290519081900360640190fd5b600760009054906101000a90046001600160a01b03166001600160a01b031663fdb5a03e6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612fd757600080fd5b801580613833575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561380557600080fd5b505afa158015613819573d6000803e3d6000fd5b505050506040513d602081101561382f57600080fd5b5051155b61386e5760405162461bcd60e51b8152600401808060200182810382526036815260200180614ab76036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526138c0908490614483565b505050565b6000601836108015906138dc57506138dc336116f5565b156138f0575060131936013560601c610bae565b5033610bae565b60606139068484600085614534565b949350505050565b60006139186138c5565b905090565b6001600160a01b0383166139625760405162461bcd60e51b8152600401808060200182810382526024815260200180614a696024913960400191505060405180910390fd5b6001600160a01b0382166139a75760405162461bcd60e51b81526004018080602001828103825260228152602001806148276022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b038316613a4e5760405162461bcd60e51b8152600401808060200182810382526025815260200180614a446025913960400191505060405180910390fd5b6001600160a01b038216613a935760405162461bcd60e51b81526004018080602001828103825260238152602001806147866023913960400191505060405180910390fd5b613a9e8383836138c0565b613adb81604051806060016040528060268152602001614869602691396001600160a01b0386166000908152602081905260409020549190613b64565b6001600160a01b038085166000908152602081905260408082209390935590841681522054613b0a9082613bfb565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115613bf35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613bb8578181015183820152602001613ba0565b50505050905090810190601f168015613be55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610ed9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613c6457506000610bc9565b82820282848281613c7157fe5b0414610ed95760405162461bcd60e51b81526004018080602001828103825260218152602001806149826021913960400191505060405180910390fd5b6000808211613d04576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381613d0d57fe5b049392505050565b6001600160a01b038216613d5a5760405162461bcd60e51b81526004018080602001828103825260218152602001806149eb6021913960400191505060405180910390fd5b613d66826000836138c0565b613da3816040518060600160405280602281526020016147a9602291396001600160a01b0385166000908152602081905260409020549190613b64565b6001600160a01b038316600090815260208190526040902055600254613dc990826141b5565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516002808252606080830184529260009291906020830190803683370190505090508381600081518110613e4457fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508281600181518110613e7257fe5b6001600160a01b0390921660209283029190910190910152905092915050565b60606000613ea08585613e11565b6040805163d06ca61f60e01b8152600481018681526024820192835283516044830152835193945060009373d9e1ce17f2641f24ae83637ab66a2cca9c378b9f9363d06ca61f938993889390929160640190602080860191028083838c5b83811015613f16578181015183820152602001613efe565b50505050905001935050505060006040518083038186803b158015613f3a57600080fd5b505afa158015613f4e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015613f7757600080fd5b8101908080516040519392919084600160201b821115613f9657600080fd5b908301906020820185811115613fab57600080fd5b82518660208202830111600160201b82111715613fc757600080fd5b82525081516020918201928201910280838360005b83811015613ff4578181015183820152602001613fdc565b50505050905001604052505050905060008160018151811061401257fe5b602002602001015111156141ac5773d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b03166338ed17398560008530426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b838110156140b95781810151838201526020016140a1565b505050509050019650505050505050600060405180830381600087803b1580156140e257600080fd5b505af11580156140f6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561411f57600080fd5b8101908080516040519392919084600160201b82111561413e57600080fd5b90830190602082018581111561415357600080fd5b82518660208202830111600160201b8211171561416f57600080fd5b82525081516020918201928201910280838360005b8381101561419c578181015183820152602001614184565b5050505090500160405250505092505b50509392505050565b60008282111561420c576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526138c0908490614483565b60008161427357506002611707565b816001141561428457506001611707565b506000611707565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612feb908590614483565b6001600160a01b038216614341576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61434d600083836138c0565b60025461435a9082613bfb565b6002556001600160a01b0382166000908152602081905260409020546143809082613bfb565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561442557600080fd5b505afa158015614439573d6000803e3d6000fd5b505050506040513d602081101561444f57600080fd5b50519050818111156138c057612feb8373c02aaa39b223fe8d0a0e5c4f27ead9083c756cc261447e84866141b5565b613e92565b60006144d8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138f79092919063ffffffff16565b8051909150156138c0578080602001905160208110156144f757600080fd5b50516138c05760405162461bcd60e51b815260040180806020018281038252602a815260200180614a8d602a913960400191505060405180910390fd5b6060824710156145755760405162461bcd60e51b81526004018080602001828103825260268152602001806148dd6026913960400191505060405180910390fd5b61457e8561468f565b6145cf576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b6020831061460d5780518252601f1990920191602091820191016145ee565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461466f576040519150601f19603f3d011682016040523d82523d6000602084013e614674565b606091505b5091509150614684828286614695565b979650505050505050565b3b151590565b606083156146a4575081610ed9565b8251156146b45782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315613bb8578181015183820152602001613ba0565b828054828255906000526020600020908101928215614736579160200282015b8281111561473657823582559160200191906001019061471b565b50614742929150614770565b5090565b604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b5b80821115614742576000815560010161477156fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550726f66696c652073686172696e67206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e203330254f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f2061646472657373b6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654f26c3876aa9f4b92579780beea1161a61f87ebf1ec6ee865b299e447ecba99c4e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e20333025416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d6178696d756e20616d6f756e74206d7573742067726561746572207468616e206d696e696d756e20616d6f756e74a1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a437573746f6d206e6574776f726b206665652074696572206d7573742067726561746572207468616e20746965722032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f2061646472657373437573746f6d206e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e2074696572203245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212204a8031d22aac3027acde2692f2ef99c5a45187e8e313f17dc9dae9a7972ed44264736f6c63430007060033

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

0000000000000000000000007c0f84e9dc6f721de21d51a490de6e370fa01cd600000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d00000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b9900000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe93400000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693

-----Decoded View---------------
Arg [0] : _strategy (address): 0x7C0f84E9Dc6F721de21D51A490dE6E370fa01cd6
Arg [1] : _treasuryWallet (address): 0x59E83877bD248cBFe392dbB5A8a29959bcb48592
Arg [2] : _communityWallet (address): 0xdd6c35aFF646B2fB7d8A8955Ccbe0994409348d0
Arg [3] : _admin (address): 0x3f68A3c1023d736D8Be867CA49Cb18c543373B99
Arg [4] : _strategist (address): 0x54D003d451c973AD7693F825D5b78Adfc0efe934
Arg [5] : _biconomy (address): 0x84a0856b038eaAd1cC7E297cF34A7e72685A8693

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000007c0f84e9dc6f721de21d51a490de6e370fa01cd6
Arg [1] : 00000000000000000000000059e83877bd248cbfe392dbb5a8a29959bcb48592
Arg [2] : 000000000000000000000000dd6c35aff646b2fb7d8a8955ccbe0994409348d0
Arg [3] : 0000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b99
Arg [4] : 00000000000000000000000054d003d451c973ad7693f825d5b78adfc0efe934
Arg [5] : 00000000000000000000000084a0856b038eaad1cc7e297cf34a7e72685a8693


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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