Contract 0x3DB93e95c9881BC7D9f2C845ce12e97130Ebf5f2 3

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xdaffedaba29d2b40d46d80d2407a2defe16d3ea4e2378a1e0420c9a38b948217Deposit218009982021-11-25 23:03:5710 days 12 hrs ago0xb24b188f40062102290db9bf148c3fdcec2d90ad IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.13125924
0x60220a46705f12ef11c7df7d0e650b3b6f2be43fd47dedb5753b8fc2a7805337Yield214174602021-11-16 0:00:1320 days 11 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.05829666
0x36cbef2775bfce825dc14745447e927bd12a54f708681070be4c7cda36ac80d7Yield214158692021-11-15 23:00:1420 days 12 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06152712
0x3eacef3cc35eeea19b0703192ebf254f0a785273f20ebce68189b457e1fdad65Yield213982242021-11-15 12:00:1420 days 23 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.075069228
0xde2a9d02eade676c1e01473e070aedf233b609fc77678c8353bcd0e657d24d32Yield213864232021-11-15 5:00:1221 days 6 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07288512
0x285bca65de1dd598dc16736a8306f8f2730b568a61e39b30f3282f75f20377d6Yield213846922021-11-15 4:00:4221 days 7 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07264362
0xd58d7cb9f168091216272f386b1bb6eb93d73dfb1923d536f4b7d9d3b1d71817Yield213632082021-11-14 15:00:2221 days 20 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06128586
0x0f8591411c904db05059437ede8a106e6441af5d8496bf6aeab5b4c1259d35ffYield213565102021-11-14 11:00:1322 days 29 mins ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06016836
0xa3dfa13ef323313771ed4a6ca3ee50b8659048ae17a11359908a469472a92694Yield213548282021-11-14 10:00:1322 days 1 hr ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06128307
0xf39dffdfeab8d1e514dc4b56042be7f92e06c82be5ef86cda589f8249eb473e0Yield213397552021-11-14 1:00:1222 days 10 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06104181
0x02b0eb1b1560b51dfac922d122b3a8125a252f85e6d3dfd2fb1549ed5d664de8Yield213271872021-11-13 16:00:1422 days 19 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07288917
0x1864f71457dd9a22668f4c6f0aa29752f4fbd48615903f9d6cf3b00d7e2b6e05Yield213193672021-11-13 11:00:1323 days 29 mins ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07258224
0xc063b2ee5c79ab4b94c8fe06faacc6160fc782bfe95d6a6769b1db1d385e5b62Yield213114332021-11-13 6:06:0623 days 5 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06202548
0x1c6e245a84dfe8368e17faf8cbcdceea849e940381117607aa39203c6ea388b6Yield212999792021-11-12 23:00:1323 days 12 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.05841564
0x6c6d4d2645afbdf6d95d29e30a83fd0b77f9152dd13b3c1b65b20eee331cfe3eYield212949662021-11-12 20:00:1123 days 15 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07256109
0x2d5d5ac47bf889172629182e4f2b2ee2a6f52e0575643c8710d1c7d285dc0355Yield212933052021-11-12 19:00:1223 days 16 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06865341
0x55b775ba118cd82e0a8f44875775091cc83e285baf92bde23891e98bf0b5ec3eYield212916272021-11-12 18:00:2423 days 17 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.05882289
0x23848a56a8b989e59c9ca0c7bb07a92d6d101452ce56abf7fee09e65a4af8d9eYield212883612021-11-12 16:01:2423 days 19 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07152681
0x88352218d74746b839ac301c84b767948686d570ca8879a98f978e5438342815Yield212867092021-11-12 15:00:1923 days 20 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.06031137
0xbfafd2fb1fd8236188b829ecc11e2742711fb2727066aa0b0e4a52eb67e6815bYield212816382021-11-12 12:00:1223 days 23 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07272114
0x8faf13572b86a1fa2576842d17c43d4316a312c50f4908651cdd171c70ac4e9cYield212800192021-11-12 11:01:3224 days 28 mins ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.05595372
0x3ff351ca190a7816c0cb4a1a2af4d1fc7f68db0c46dd0c1f33f75d8d9b25efd4Yield212786302021-11-12 10:04:5424 days 1 hr ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.05838408
0x1ee485bad7e5f9d92b9971c74949b1416cbfb6f9b4632c8b8c35a75a3dcd3429Yield212769362021-11-12 9:00:1624 days 2 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07602276
0xb0fb44590221a44af7af5464bb543de0b1da8a7779f34f1a7188d90a0c3abbc5Yield212753742021-11-12 8:01:4024 days 3 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.05835786
0xb2414233afb22bfae1cdf978ff53d13591c2f83f78f6e7b320b643f2428d1421Yield212738582021-11-12 7:05:4424 days 4 hrs ago0x3f68a3c1023d736d8be867ca49cb18c543373b99 IN  0x3db93e95c9881bc7d9f2c845ce12e97130ebf5f20 MATIC0.07126356
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MoneyPrinterVault

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : MoneyPrinterVault.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/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../../interfaces/IUniswapV2Router02.sol";
import "../../libs/BaseRelayRecipient.sol";


interface IStrategy{
    function deposit(uint _amount, IERC20 _token) external ;
    function harvest() external;
    function withdraw(uint _amount, IERC20 _token) external;
    function getValueInPool() external view returns (uint);
    function migrateFunds(IERC20 _withdrawnToken) external ;
    function setVault(address _vault) external ;
    function setTreasuryWallet(address _newTreasury) external;
    function setCommunityWallet(address _communityWallet) external;
    function setStrategist(address _strategist) external;
}


contract MoneyPrinterVault is ERC20, Ownable, BaseRelayRecipient {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    IERC20 public DAI = IERC20(0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063); 
    IERC20 public USDC = IERC20(0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174);
    IERC20 public USDT = IERC20(0xc2132D05D31c914a87C6611C10748AEb04B58e8F);
    IERC20 emergencyWithdrawToken; //Tokens are converted to `emergencyWithdrawToken` durin emergency withdraw
    IUniswapV2Router02 public constant QuickSwapRouter = IUniswapV2Router02(0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff);
    IStrategy public strategy;
    address public pendingStrategy;
    address public admin;
    address public treasuryWallet ; 
    address public communityWallet ;
    address public strategist ;
    
    bool public canSetPendingStrategy = true;
    bool public isEmergency = false;

    uint256 public unlockTime;
    uint256 public constant LOCKTIME = 2 days;
    uint256[] public networkFeeTier2 = [50000*1e18+1, 100000*1e18];
    uint256 public customNetworkFeeTier = 1000000*1e18;
    uint256[] public networkFeePerc = [100, 75, 50];
    uint256 public customNetworkFeePerc = 25;
    uint256 public profitSharingFeePerc = 2000;

    mapping(address => uint) public depositedAmount;


    event Deposit(address indexed from, address indexed token, uint amount, uint sharesMinted);
    event Withdraw(address indexed from, address indexed token, uint amount, uint sharesBurned);
    event MigrateFunds(address indexed fromStrategy, address indexed newStrategy, uint amount);
    event SetAdmin(address oldAdmin, address newAdmin);
    event SetCommunityWallet(address oldCommunityWallet, address newCommunityWallet);
    event SetTreasuryWallet(address oldTreasury, address newTreasury);
    event SetPendingStrategy(address oldStrategy, address newStrategy);
    event Yield(uint timestamp);
    event UnlockMigrateFunds(uint unlockTime);
    event SetStrategistWallet(address oldStrategist, address newStrategist);

    constructor(address _strategy, address _admin, address _treasuryWallet, address _communityWallet, address _strategist, address _biconomy)
        ERC20("DAO Vault Money Printer", "daoMPT")
    {
        _setupDecimals(18);
        strategy = IStrategy(_strategy);
        admin = _admin; 
        trustedForwarder = _biconomy;

        treasuryWallet = _treasuryWallet;
        communityWallet = _communityWallet;
        strategist = _strategist;

        DAI.safeApprove(_strategy, type(uint).max);
        USDC.safeApprove(_strategy, type(uint).max);
        USDT.safeApprove(_strategy, type(uint).max);

        DAI.safeApprove(address(QuickSwapRouter), type(uint).max);
        USDC.safeApprove(address(QuickSwapRouter), type(uint).max);
        USDT.safeApprove(address(QuickSwapRouter), type(uint).max);
    }

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

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

    /**
     * @notice Deposit into strategy
     * @param _amount amount to deposit
     * Requirements:
     * - Only EOA account can call this function
     */
    function deposit(uint256 _amount, IERC20 _token) external {
        require(msg.sender == tx.origin || isTrustedForwarder(msg.sender), "Only EOA");
        require(isEmergency == false ,"Cannot deposit during emergency");
        require(_amount > 0, "Invalid amount");

        address _sender = _msgSender();

        uint256 shares;
        uint feeAmount;
        uint _amountAfterFee;
        if (_token == DAI) {
            (_amountAfterFee, feeAmount) = _calcSharesAfterNetworkFee(_amount);

            shares = totalSupply() == 0
                ? _amountAfterFee
                : _amountAfterFee.mul(totalSupply()).div(getValueInPool());

            DAI.safeTransferFrom(_sender, address(this), _amount);
            depositedAmount[_sender] = depositedAmount[_sender].add(_amountAfterFee);
        } else if (_token == USDC) {
            uint _amountMagnified = _amount.mul(1e12);
            (_amountAfterFee, feeAmount) = _calcSharesAfterNetworkFee(_amountMagnified);

            shares = totalSupply() == 0
                ? _amountAfterFee
                : _amountAfterFee.mul(totalSupply()).div(
                    getValueInPool());

            USDC.safeTransferFrom(_sender, address(this), _amount);
            
            depositedAmount[_sender] = depositedAmount[_sender].add(_amountAfterFee);
            feeAmount = feeAmount.div(1e12);
        } else if (_token == USDT) {
            uint _amountMagnified = _amount.mul(1e12);
            (_amountAfterFee, feeAmount) = _calcSharesAfterNetworkFee(_amountMagnified);

            shares = totalSupply() == 0
                ? _amountAfterFee
                : _amountAfterFee.mul(totalSupply()).div(getValueInPool());
            USDT.safeTransferFrom(_sender, address(this), _amount);

            depositedAmount[_sender] = depositedAmount[_sender].add(_amountAfterFee);
            feeAmount = feeAmount.div(1e12);
        } else {
            revert("Invalid deposit Token");
        }

        transferNetworkFee(feeAmount, _token);

        strategy.deposit(_amount.sub(feeAmount), _token);
        
        _mint(_sender, shares);
        emit Deposit(_sender, address(_token), _amount, shares);
    }

    /**
     * @notice Withdraw from strategy
     * @param _shares shares to withdraw
     * Requirements:
     * - Only EOA account can call this function
     */
    function withdraw(uint256 _shares, IERC20 _token) external {
        require(msg.sender == tx.origin, "Only EOA");
        require(_token == DAI || _token == USDC || _token == USDT, "Invalid token");
        require(_shares > 0, "Invalid amount");
        uint256 _totalShares = balanceOf(msg.sender);
        require(_totalShares >= _shares, "Insuffient funds");
        uint _fee;
        uint amountToWithdraw;

        uint amount = getValueInPool().mul(_shares).div(totalSupply());
        uint _depositedAmount = depositedAmount[msg.sender].mul(_shares).div(_totalShares);
        depositedAmount[msg.sender] = depositedAmount[msg.sender].sub(_depositedAmount);

        
        if(amount > _depositedAmount) {
            uint256 _profit = amount.sub(_depositedAmount);
            _fee = _profit.mul(profitSharingFeePerc).div(10000);
            
            _fee = _token == DAI ? _fee : _fee.div(1e12);
        }

        if(isEmergency) {
            //conver to user's token
            if(_token != emergencyWithdrawToken) {
                address[] memory path = new address[](2);
                path[0] = address(emergencyWithdrawToken);
                path[1] = address(_token);
                uint[] memory amounts = QuickSwapRouter.swapExactTokensForTokens(_token == DAI ? amount : amount.div(1e12), 0, path, address(this), block.timestamp);  
                amountToWithdraw = amounts[1].sub(_fee);
            } else {
                //emergency token and user token are same, subtract the fee(if any) and withdraw.
                amountToWithdraw = _token == DAI ? amount.sub(_fee) : amount.sub(_fee).div(1e12); 
            }

        } else {
            //not emergency - withdraw from strategy
            strategy.withdraw(amount, _token);
            amountToWithdraw = _token.balanceOf(address(this)).sub(_fee);
        }
        

        if(_fee != 0) {
            transferNetworkFee(_fee, _token);
        }

        _token.safeTransfer(msg.sender,  amountToWithdraw);

        _burn(msg.sender, _shares);
        emit Withdraw(msg.sender, address(_token), amountToWithdraw, _shares);
    }

    function yield() external onlyAdmin{
        require(isEmergency == false, "Cannot call during emergency");
        strategy.harvest();

        emit Yield(block.timestamp);
    }

    function emergencyWithdraw(IERC20 _token) external onlyAdmin {
        isEmergency = true;
        emergencyWithdrawToken = _token;
        strategy.migrateFunds(_token);
    }

    function reInvest() external onlyOwner {
        isEmergency = false; 

        uint daiBalance = DAI.balanceOf(address(this));
        uint usdcBalance = USDC.balanceOf(address(this));
        uint usdtBalance = USDT.balanceOf(address(this));

        if(daiBalance > 0) {
            strategy.deposit(daiBalance, DAI);
        }

        if(usdcBalance > 0) {
            strategy.deposit(usdcBalance, USDC);
        }

        if(usdtBalance > 0) {
            strategy.deposit(usdtBalance, USDT);
        }
    }

    function setPendingStrategy(address _pendingStrategy) external onlyOwner {
        require(canSetPendingStrategy, "Cannot set strategy");
        require(_pendingStrategy != address(0), "Invalid strategy address");

        address oldStrategy = address(strategy);
        pendingStrategy = _pendingStrategy;
        emit SetPendingStrategy(oldStrategy, _pendingStrategy);
    }

    function unlockMigrateFunds() external onlyOwner{
        unlockTime = block.timestamp.add(LOCKTIME);
        canSetPendingStrategy = false;
        emit UnlockMigrateFunds(unlockTime);
    }

    function migrateFunds(IERC20 _token) external onlyOwner{
        require(unlockTime <= block.timestamp && unlockTime.add(1 days) >= block.timestamp, "Function locked");
        require(isEmergency == false, "Cannot call during emergency");
        
        address oldStrategy = address(strategy);

        strategy.migrateFunds(_token);
        uint amount = _token.balanceOf(address(this));

        strategy = IStrategy(pendingStrategy);
        strategy.setVault(address(this));

        //approve new strategy
        DAI.safeApprove(pendingStrategy, type(uint).max);
        USDC.safeApprove(pendingStrategy, type(uint).max);
        USDT.safeApprove(pendingStrategy, type(uint).max);

        strategy.deposit(amount, _token);

        canSetPendingStrategy = true;
        emit MigrateFunds(oldStrategy, pendingStrategy, amount);
    }

    function setAdmin(address _newAdmin) external onlyOwner {
        address oldAdmin = admin;
        admin = _newAdmin;

        emit SetAdmin(oldAdmin, _newAdmin);
    }

    function setTreasuryWallet(address _treasuryWallet) external onlyOwner {
        require(_treasuryWallet != address(0), "Invalid Address");
        address oldTreasuryWallet = treasuryWallet;
        treasuryWallet = _treasuryWallet;
        strategy.setTreasuryWallet(_treasuryWallet);
        
        emit SetTreasuryWallet(oldTreasuryWallet, _treasuryWallet);
    }

    function setCommunityWallet(address _communityWallet) external onlyOwner{
        require(_communityWallet != address(0), "Invalid Address");

        strategy.setCommunityWallet(_communityWallet);
        address oldCommunityWallet = communityWallet;
        communityWallet = _communityWallet;

        emit SetCommunityWallet(oldCommunityWallet, communityWallet);
    }

    function setStrategist(address _strategist) external {
        require(_strategist != address(0), "Invalid Address");
        require(msg.sender == owner() || msg.sender == strategist, "Only admin");

        strategy.setStrategist(_strategist);
        address oldStrategist = strategist;
        strategist = _strategist;
        emit SetStrategistWallet(oldStrategist, _strategist);
    }

    function setBiconomy(address _biconomy) external onlyOwner {
        trustedForwarder = _biconomy;
    }

    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
         */
        networkFeeTier2 = _networkFeeTier2;
    }

    /// @notice Function to set new custom network fee tier
    /// @param _customNetworkFeeTier Amount of new custom network fee tier (18 decimals)
    function setCustomNetworkFeeTier(uint256 _customNetworkFeeTier) external onlyOwner {
        require(_customNetworkFeeTier > networkFeeTier2[1], "Custom network fee tier must greater than tier 2");

        customNetworkFeeTier = _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%
         */
        networkFeePerc = _networkFeePerc;
    }

    function setCustomNetworkFeePerc(uint256 _percentage) public onlyOwner {
        require(_percentage < networkFeePerc[2], "Custom network fee percentage cannot be more than tier 2");

        customNetworkFeePerc = _percentage;
    }

    function setProfitSharingFeePerc(uint256 _percentage) external onlyOwner {
        require(_percentage < 3000, "Profile sharing fee percentage cannot be more than 30%");

        profitSharingFeePerc = _percentage;
    }


    function getValueInPool() public view returns (uint){
        //returns balance in vault during emergency
        //call strategy.getValueInPool(); if not in emergency
        return isEmergency ? DAI.balanceOf(address(this))
        .add(USDC.balanceOf(address(this)).mul(1e12))
        .add(USDT.balanceOf(address(this)).mul(1e12)) : strategy.getValueInPool();
    }

    function _calcSharesAfterNetworkFee(uint _amount) internal view returns (uint amountAfterFee, uint 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;
        }

        fee = _amount.mul(_networkFeePerc).div(10000);
        amountAfterFee = _amount.sub(fee);

    }

    function transferNetworkFee(uint _fee, IERC20 _token) internal {
        uint _feeSplit = _fee.mul(2).div(5);
        _token.safeTransfer(treasuryWallet, _feeSplit);
        _token.safeTransfer(communityWallet, _feeSplit);
        _token.safeTransfer(strategist, _fee.sub(_feeSplit).sub(_feeSplit));
    }
}

File 2 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 4 of 12 : ERC20.sol
// 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 { }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

File 6 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 12 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

File 9 of 12 : BaseRelayRecipient.sol
// 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;
        }
    }
}

File 10 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

File 12 of 12 : IRelayRecipient.sol
// 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": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_treasuryWallet","type":"address"},{"internalType":"address","name":"_communityWallet","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesMinted","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromStrategy","type":"address"},{"indexed":true,"internalType":"address","name":"newStrategy","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":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"SetAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldCommunityWallet","type":"address"},{"indexed":false,"internalType":"address","name":"newCommunityWallet","type":"address"}],"name":"SetCommunityWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldStrategy","type":"address"},{"indexed":false,"internalType":"address","name":"newStrategy","type":"address"}],"name":"SetPendingStrategy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldStrategist","type":"address"},{"indexed":false,"internalType":"address","name":"newStrategist","type":"address"}],"name":"SetStrategistWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"newTreasury","type":"address"}],"name":"SetTreasuryWallet","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":"unlockTime","type":"uint256"}],"name":"UnlockMigrateFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesBurned","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Yield","type":"event"},{"inputs":[],"name":"DAI","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCKTIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"QuickSwapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"contract IERC20","name":"_token","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getValueInPool","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":"isEmergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"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":"address","name":"_newAdmin","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":"_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":[],"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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"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":"contract IERC20","name":"_token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yield","outputs":[],"stateMutability":"nonpayable","type":"function"}]

600780546001600160a01b0319908116738f3cf7ad23cd3cadbd9735aff958023239c6a06317909155600880548216732791bca1f2de4661ed88a30c99a7a9449aa841741790556009805490911673c2132d05d31c914a87c6611c10748aeb04b58e8f1790556010805460ff60a81b1960ff60a01b19909116600160a01b1716905560c0604052690a968163f0a57b400001608090815269152d02c7e14af680000060a052620000b49060129060026200086a565b5069d3c21bcecceda10000006013556040805160608101825260648152604b6020820152603291810191909152620000f1906014906003620008c5565b5060196015556107d06016553480156200010a57600080fd5b5060405162004d4138038062004d41833981810160405260c08110156200013057600080fd5b5080516020808301516040808501516060860151608087015160a09097015183518085018552601781527f44414f205661756c74204d6f6e6579205072696e7465720000000000000000008188019081528551808701909652600686526519185bd3541560d21b97860197909752805197989597939692959491939092620001bc916003919062000908565b508051620001d290600490602084019062000908565b50506005805460ff19166012179055506000620001ee620003d9565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620002506012620003f6565b600b80546001600160a01b03199081166001600160a01b0389811691909117909255600d80548216888416179055600680548216848416179055600e80548216878416179055600f8054821686841617905560108054909116848316179055600754620002ce9116876000196200040c602090811b620032e517901c565b600854620002f5906001600160a01b0316876000196200040c602090811b620032e517901c565b6009546200031c906001600160a01b0316876000196200040c602090811b620032e517901c565b60075462000357906001600160a01b031673a5e0829caced8ffdd4de3c43696c57f7d7a678ff6000196200040c602090811b620032e517901c565b60085462000392906001600160a01b031673a5e0829caced8ffdd4de3c43696c57f7d7a678ff6000196200040c602090811b620032e517901c565b600954620003cd906001600160a01b031673a5e0829caced8ffdd4de3c43696c57f7d7a678ff6000196200040c602090811b620032e517901c565b505050505050620009a2565b6000620003f06200053060201b6200342a1760201c565b90505b90565b6005805460ff191660ff92909216919091179055565b80158062000496575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156200046657600080fd5b505afa1580156200047b573d6000803e3d6000fd5b505050506040513d60208110156200049257600080fd5b5051155b620004d35760405162461bcd60e51b815260040180806020018281038252603681526020018062004d0b6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b179091526200052b9185916200056816565b505050565b6000601836108015906200054a57506200054a3362000624565b1562000560575060131936013560601c620003f3565b5033620003f3565b6000620005c4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200063860201b6200345c179092919060201c565b8051909150156200052b57808060200190516020811015620005e557600080fd5b50516200052b5760405162461bcd60e51b815260040180806020018281038252602a81526020018062004ce1602a913960400191505060405180910390fd5b6006546001600160a01b0390811691161490565b606062000649848460008562000653565b90505b9392505050565b606082471015620006965760405162461bcd60e51b815260040180806020018281038252602681526020018062004cbb6026913960400191505060405180910390fd5b620006a185620007ba565b620006f3576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310620007335780518252601f19909201916020918201910162000712565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000797576040519150601f19603f3d011682016040523d82523d6000602084013e6200079c565b606091505b509092509050620007af828286620007c0565b979650505050505050565b3b151590565b60608315620007d15750816200064c565b825115620007e25782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200082e57818101518382015260200162000814565b50505050905090810190601f1680156200085c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b828054828255906000526020600020908101928215620008b3579160200282015b82811115620008b357825182906001600160501b03169055916020019190600101906200088b565b50620008c19291506200098b565b5090565b828054828255906000526020600020908101928215620008b3579160200282015b82811115620008b3578251829060ff16905591602001919060010190620008e6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620009405760008555620008b3565b82601f106200095b57805160ff1916838001178555620008b3565b82800160010185558215620008b3579182015b82811115620008b35782518255916020019190600101906200096e565b5b80821115620008c157600081556001016200098c565b61430980620009b26000396000f3fe608060405234801561001057600080fd5b50600436106103775760003560e01c806378fe08d5116101d3578063a9059cbb11610104578063ce25aa79116100a2578063e5ec14d41161007c578063e5ec14d414610985578063f2fde38b146109a2578063f851a440146109c8578063f99bab24146109d057610377565b8063ce25aa7914610947578063dd62ed3e1461094f578063e0bab4c41461097d57610377565b8063c17b1071116100de578063c17b1071146108f4578063c54e44eb14610911578063c757483914610919578063c7b9d5301461092157610377565b8063a9059cbb1461089a578063bde5fc6d146108c6578063bf51929f146108ce57610377565b80638da5cb5b11610171578063a457c2d71161014b578063a457c2d714610823578063a6478c1f1461084f578063a8602fea1461086c578063a8c62e761461089257610377565b80638da5cb5b1461080b5780639367b30e1461081357806395d89b411461081b57610377565b806385d6bb81116101ad57806385d6bb81146107b857806389a30271146107de5780638ce418f9146107e65780638d5b9a361461080357610377565b806378fe08d5146107a05780637da0a877146107a8578063854ab6df146107b057610377565b806339509351116102ad5780635f9e8f821161024b578063704b6c0211610225578063704b6c02146106dc57806370a0823114610702578063715018a614610728578063737ea0ad1461073057610377565b80635f9e8f82146106825780636e553f651461068a5780636ff1c9bc146106b657610377565b8063486ff0cd11610287578063486ff0cd146106265780634a4643f71461062e57806350be99ad14610654578063572b6c051461065c57610377565b806339509351146105ea5780634626402b14610616578063465fc5d21461061e57610377565b8063238b15981161031a578063251c1aa3116102f4578063251c1aa31461054c5780632859398414610554578063313ce5671461055c57806334100fc41461057a57610377565b8063238b1598146104f157806323b872dd1461050e578063242c8e691461054457610377565b80630d8b76a8116103565780630d8b76a81461046757806318160ddd1461048d5780631a8f0c0a146104a75780631fe4a686146104cd57610377565b8062f714ce1461037c57806306fdde03146103aa578063095ea7b314610427575b600080fd5b6103a86004803603604081101561039257600080fd5b50803590602001356001600160a01b03166109d8565b005b6103b2611085565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ec5781810151838201526020016103d4565b50505050905090810190601f1680156104195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104536004803603604081101561043d57600080fd5b506001600160a01b03813516906020013561111c565b604080519115158252519081900360200190f35b6103a86004803603602081101561047d57600080fd5b50356001600160a01b031661113a565b6104956111be565b60408051918252519081900360200190f35b6103a8600480360360208110156104bd57600080fd5b50356001600160a01b03166111c4565b6104d5611344565b604080516001600160a01b039092168252519081900360200190f35b6104956004803603602081101561050757600080fd5b5035611353565b6104536004803603606081101561052457600080fd5b506001600160a01b03813581169160208101359091169060400135611374565b6104956113fc565b610495611403565b6103a8611409565b610564611552565b6040805160ff9092168252519081900360200190f35b6103a86004803603602081101561059057600080fd5b8101906020810181356401000000008111156105ab57600080fd5b8201836020820111156105bd57600080fd5b803590602001918460208302840111640100000000831117156105df57600080fd5b50909250905061155b565b6104536004803603604081101561060057600080fd5b506001600160a01b03813516906020013561169b565b6104d56116e9565b6104d56116f8565b6103b2611707565b6104956004803603602081101561064457600080fd5b50356001600160a01b031661173e565b6103a8611750565b6104536004803603602081101561067257600080fd5b50356001600160a01b0316611a9b565b610453611aaf565b6103a8600480360360408110156106a057600080fd5b50803590602001356001600160a01b0316611abf565b6103a8600480360360208110156106cc57600080fd5b50356001600160a01b0316611f00565b6103a8600480360360208110156106f257600080fd5b50356001600160a01b0316611fde565b6104956004803603602081101561071857600080fd5b50356001600160a01b03166120a3565b6103a86120be565b6103a86004803603602081101561074657600080fd5b81019060208101813564010000000081111561076157600080fd5b82018360208201111561077357600080fd5b8035906020019184602083028401116401000000008311171561079557600080fd5b50909250905061217d565b61049561227e565b6104d5612284565b610453612293565b6103a8600480360360208110156107ce57600080fd5b50356001600160a01b03166122a3565b6104d5612434565b6103a8600480360360208110156107fc57600080fd5b5035612443565b6104d5612500565b6104d5612518565b61049561252c565b6103b2612532565b6104536004803603604081101561083957600080fd5b506001600160a01b038135169060200135612593565b6103a86004803603602081101561086557600080fd5b50356125fb565b6103a86004803603602081101561088257600080fd5b50356001600160a01b03166126a2565b6104d5612832565b610453600480360360408110156108b057600080fd5b506001600160a01b038135169060200135612841565b610495612855565b6103a8600480360360208110156108e457600080fd5b50356001600160a01b0316612a56565b6103a86004803603602081101561090a57600080fd5b5035612e2b565b6104d5612ee8565b6104d5612ef7565b6103a86004803603602081101561093757600080fd5b50356001600160a01b0316612f06565b6104956130b6565b6104956004803603604081101561096557600080fd5b506001600160a01b03813581169160200135166130bc565b6104d56130e7565b6104956004803603602081101561099b57600080fd5b50356130f6565b6103a8600480360360208110156109b857600080fd5b50356001600160a01b0316613106565b6104d5613221565b6103a8613230565b333214610a17576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b6007546001600160a01b0382811691161480610a4057506008546001600160a01b038281169116145b80610a5857506009546001600160a01b038281169116145b610aa9576040805162461bcd60e51b815260206004820152600d60248201527f496e76616c696420746f6b656e00000000000000000000000000000000000000604482015290519081900360640190fd5b60008211610afe576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000610b09336120a3565b905082811015610b60576040805162461bcd60e51b815260206004820152601060248201527f496e7375666669656e742066756e647300000000000000000000000000000000604482015290519081900360640190fd5b6000806000610b88610b706111be565b610b8288610b7c612855565b90613473565b906134cc565b3360009081526017602052604081205491925090610bac908690610b82908a613473565b33600090815260176020526040902054909150610bc99082613533565b3360009081526017602052604090205580821115610c3c576000610bed8383613533565b9050610c0a612710610b826016548461347390919063ffffffff16565b6007549095506001600160a01b03888116911614610c3657610c318564e8d4a510006134cc565b610c38565b845b9450505b601054600160a81b900460ff1615610efc57600a546001600160a01b03878116911614610ebd576040805160028082526060820183526000926020830190803683375050600a5482519293506001600160a01b031691839150600090610c9e57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600181518110610ccc57fe5b6001600160a01b03928316602091820292909201015260075460009173a5e0829caced8ffdd4de3c43696c57f7d7a678ff916338ed1739918b8116911614610d2257610d1d8664e8d4a510006134cc565b610d24565b855b60008530426040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015610d99578181015183820152602001610d81565b505050509050019650505050505050600060405180830381600087803b158015610dc257600080fd5b505af1158015610dd6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610dff57600080fd5b8101908080516040519392919084640100000000821115610e1f57600080fd5b908301906020820185811115610e3457600080fd5b8251866020820283011164010000000082111715610e5157600080fd5b82525081516020918201928201910280838360005b83811015610e7e578181015183820152602001610e66565b505050509050016040525050509050610eb48682600181518110610e9e57fe5b602002602001015161353390919063ffffffff16565b94505050610ef7565b6007546001600160a01b03878116911614610eea57610ee564e8d4a51000610b828487613533565b610ef4565b610ef48285613533565b92505b611006565b600b54604080517ef714ce000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b0389811660248301529151919092169162f714ce91604480830192600092919082900301818387803b158015610f6857600080fd5b505af1158015610f7c573d6000803e3d6000fd5b5050505061100384876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610fd157600080fd5b505afa158015610fe5573d6000803e3d6000fd5b505050506040513d6020811015610ffb57600080fd5b505190613533565b92505b8315611016576110168487613590565b61102a6001600160a01b038716338561360a565b6110343388613675565b604080518481526020810189905281516001600160a01b0389169233927ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567929081900390910190a350505050505050565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156111115780601f106110e657610100808354040283529160200191611111565b820191906000526020600020905b8154815290600101906020018083116110f457829003601f168201915b505050505090505b90565b6000611130611129613771565b848461377b565b5060015b92915050565b611142613771565b6001600160a01b0316611153612518565b6001600160a01b03161461119c576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60025490565b6111cc613771565b6001600160a01b03166111dd612518565b6001600160a01b031614611226576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b601054600160a01b900460ff16611284576040805162461bcd60e51b815260206004820152601360248201527f43616e6e6f742073657420737472617465677900000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0381166112df576040805162461bcd60e51b815260206004820152601860248201527f496e76616c696420737472617465677920616464726573730000000000000000604482015290519081900360640190fd5b600b54600c80546001600160a01b0319166001600160a01b0384811691821790925560408051929093168083526020830191909152825190927f3ac86c17cb1311fc7ea8f4e68dfb74c9c5bba45d075aac667b43c73173ed635b928290030190a15050565b6010546001600160a01b031681565b6014818154811061136357600080fd5b600091825260209091200154905081565b6000611381848484613867565b6113f18461138d613771565b6113ec85604051806060016040528060288152602001614165602891396001600160a01b038a166000908152600160205260408120906113cb613771565b6001600160a01b0316815260208101919091526040016000205491906139c2565b61377b565b5060015b9392505050565b6202a30081565b60115481565b600d546001600160a01b03163314611455576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b601054600160a81b900460ff16156114b4576040805162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742063616c6c20647572696e6720656d657267656e637900000000604482015290519081900360640190fd5b600b60009054906101000a90046001600160a01b03166001600160a01b0316634641257d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561150457600080fd5b505af1158015611518573d6000803e3d6000fd5b50506040805142815290517f913f67bfd2c6ac4a84007665147ed6861715996d03ed38d610c52e28c08838039350908190036020019150a1565b60055460ff1690565b611563613771565b6001600160a01b0316611574612518565b6001600160a01b0316146115bd576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b818160008181106115ca57fe5b9050602002013560001415611626576040805162461bcd60e51b815260206004820152601a60248201527f4d696e696d756e20616d6f756e742063616e6e6f742062652030000000000000604482015290519081900360640190fd5b8181600081811061163357fe5b905060200201358282600181811061164757fe5b905060200201351161168a5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e5602f913960400191505060405180910390fd5b61169660128383613f47565b505050565b60006111306116a8613771565b846113ec85600160006116b9613771565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490613a59565b600e546001600160a01b031681565b600c546001600160a01b031681565b60408051808201909152600181527f3100000000000000000000000000000000000000000000000000000000000000602082015290565b60176020526000908152604090205481565b611758613771565b6001600160a01b0316611769612518565b6001600160a01b0316146117b2576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b6010805460ff60a81b19169055600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561180a57600080fd5b505afa15801561181e573d6000803e3d6000fd5b505050506040513d602081101561183457600080fd5b5051600854604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561188757600080fd5b505afa15801561189b573d6000803e3d6000fd5b505050506040513d60208110156118b157600080fd5b5051600954604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561190457600080fd5b505afa158015611918573d6000803e3d6000fd5b505050506040513d602081101561192e57600080fd5b5051905082156119a957600b5460075460408051636e553f6560e01b8152600481018790526001600160a01b03928316602482015290519190921691636e553f6591604480830192600092919082900301818387803b15801561199057600080fd5b505af11580156119a4573d6000803e3d6000fd5b505050505b8115611a2057600b5460085460408051636e553f6560e01b8152600481018690526001600160a01b03928316602482015290519190921691636e553f6591604480830192600092919082900301818387803b158015611a0757600080fd5b505af1158015611a1b573d6000803e3d6000fd5b505050505b801561169657600b5460095460408051636e553f6560e01b8152600481018590526001600160a01b03928316602482015290519190921691636e553f6591604480830192600092919082900301818387803b158015611a7e57600080fd5b505af1158015611a92573d6000803e3d6000fd5b50505050505050565b6006546001600160a01b0390811691161490565b601054600160a81b900460ff1681565b33321480611ad15750611ad133611a9b565b611b0d576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b601054600160a81b900460ff1615611b6c576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74206465706f73697420647572696e6720656d657267656e637900604482015290519081900360640190fd5b60008211611bc1576040805162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e74000000000000000000000000000000000000604482015290519081900360640190fd5b6000611bcb613771565b600754909150600090819081906001600160a01b0386811691161415611c8557611bf486613ab3565b92509050611c006111be565b15611c2757611c22611c10612855565b610b82611c1b6111be565b8490613473565b611c29565b805b600754909350611c44906001600160a01b0316853089613b66565b6001600160a01b038416600090815260176020526040902054611c679082613a59565b6001600160a01b038516600090815260176020526040902055611e17565b6008546001600160a01b0386811691161415611d5a576000611cac8764e8d4a51000613473565b9050611cb781613ab3565b93509150611cc36111be565b15611cea57611ce5611cd3612855565b610b82611cde6111be565b8590613473565b611cec565b815b600854909450611d07906001600160a01b031686308a613b66565b6001600160a01b038516600090815260176020526040902054611d2a9083613a59565b6001600160a01b038616600090815260176020526040902055611d528364e8d4a510006134cc565b925050611e17565b6009546001600160a01b0386811691161415611dca576000611d818764e8d4a51000613473565b9050611d8c81613ab3565b93509150611d986111be565b15611dad57611da8611cd3612855565b611daf565b815b600954909450611d07906001600160a01b031686308a613b66565b6040805162461bcd60e51b815260206004820152601560248201527f496e76616c6964206465706f73697420546f6b656e0000000000000000000000604482015290519081900360640190fd5b611e218286613590565b600b546001600160a01b0316636e553f65611e3c8885613533565b876040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050600060405180830381600087803b158015611e8357600080fd5b505af1158015611e97573d6000803e3d6000fd5b50505050611ea58484613bdf565b846001600160a01b0316846001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d78886604051808381526020018281526020019250505060405180910390a3505050505050565b600d546001600160a01b03163314611f4c576040805162461bcd60e51b815260206004820152600a60248201526927b7363c9020b236b4b760b11b604482015290519081900360640190fd5b6010805460ff60a81b1916600160a81b179055600a80546001600160a01b038084166001600160a01b03199092168217909255600b546040805163bf51929f60e01b815260048101939093525192169163bf51929f9160248082019260009290919082900301818387803b158015611fc357600080fd5b505af1158015611fd7573d6000803e3d6000fd5b5050505050565b611fe6613771565b6001600160a01b0316611ff7612518565b6001600160a01b031614612040576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b600d80546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517f848ac24ab84501710d6631faab117b66b79aba7ec6f7778cf3bcff428c1a4efc929181900390910190a15050565b6001600160a01b031660009081526020819052604090205490565b6120c6613771565b6001600160a01b03166120d7612518565b6001600160a01b031614612120576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b612185613771565b6001600160a01b0316612196612518565b6001600160a01b0316146121df576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b610bb8828260008181106121ef57fe5b905060200201351080156122175750610bb88282600181811061220e57fe5b90506020020135105b80156122375750610bb88282600281811061222e57fe5b90506020020135105b6122725760405162461bcd60e51b815260040180806020018281038252602e815260200180614091602e913960400191505060405180910390fd5b61169660148383613f47565b60155481565b6006546001600160a01b031681565b601054600160a01b900460ff1681565b6122ab613771565b6001600160a01b03166122bc612518565b6001600160a01b031614612305576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b6001600160a01b038116612352576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204164647265737360881b604482015290519081900360640190fd5b600b54604080517f85d6bb810000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152915191909216916385d6bb8191602480830192600092919082900301818387803b1580156123b957600080fd5b505af11580156123cd573d6000803e3d6000fd5b5050600f80546001600160a01b038581166001600160a01b0319831617928390556040805192821680845293909116602083015280519294507f7c2cfb870a55cea02043717c09aa9837391f1bc8eedb1dbd1a6c1a3ea5232e0a9350908290030190a15050565b6008546001600160a01b031681565b61244b613771565b6001600160a01b031661245c612518565b6001600160a01b0316146124a5576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b60146002815481106124b357fe5b906000526020600020015481106124fb5760405162461bcd60e51b81526004018080602001828103825260388152602001806141ce6038913960400191505060405180910390fd5b601555565b73a5e0829caced8ffdd4de3c43696c57f7d7a678ff81565b60055461010090046001600160a01b031690565b60165481565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156111115780601f106110e657610100808354040283529160200191611111565b60006111306125a0613771565b846113ec856040518060600160405280602581526020016142af60259139600160006125ca613771565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906139c2565b612603613771565b6001600160a01b0316612614612518565b6001600160a01b03161461265d576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b610bb8811061269d5760405162461bcd60e51b8152600401808060200182810382526036815260200180613fed6036913960400191505060405180910390fd5b601655565b6126aa613771565b6001600160a01b03166126bb612518565b6001600160a01b031614612704576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b6001600160a01b038116612751576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204164647265737360881b604482015290519081900360640190fd5b600e80546001600160a01b038381166001600160a01b031983168117909355600b54604080517fa8602fea0000000000000000000000000000000000000000000000000000000081526004810195909552519282169391169163a8602fea9160248082019260009290919082900301818387803b1580156127d157600080fd5b505af11580156127e5573d6000803e3d6000fd5b5050604080516001600160a01b0380861682528616602082015281517febcecb9db04071cf4b4ecc1e2e1e4603e74c9382d6e36c3531f0b62af4c78ed79450908190039091019150a15050565b600b546001600160a01b031681565b600061113061284e613771565b8484613867565b601054600090600160a81b900460ff166128e857600b60009054906101000a90046001600160a01b03166001600160a01b031663bde5fc6d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156128b757600080fd5b505afa1580156128cb573d6000803e3d6000fd5b505050506040513d60208110156128e157600080fd5b5051612a51565b600954604080516370a0823160e01b81523060048201529051612a51926129749264e8d4a51000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561294257600080fd5b505afa158015612956573d6000803e3d6000fd5b505050506040513d602081101561296c57600080fd5b505190613473565b600854604080516370a0823160e01b81523060048201529051612a4b926129ce9264e8d4a51000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561294257600080fd5b600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015612a1957600080fd5b505afa158015612a2d573d6000803e3d6000fd5b505050506040513d6020811015612a4357600080fd5b505190613a59565b90613a59565b905090565b612a5e613771565b6001600160a01b0316612a6f612518565b6001600160a01b031614612ab8576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b4260115411158015612ada57506011544290612ad79062015180613a59565b10155b612b2b576040805162461bcd60e51b815260206004820152600f60248201527f46756e6374696f6e206c6f636b65640000000000000000000000000000000000604482015290519081900360640190fd5b601054600160a81b900460ff1615612b8a576040805162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742063616c6c20647572696e6720656d657267656e637900000000604482015290519081900360640190fd5b600b546040805163bf51929f60e01b81526001600160a01b03848116600483015291519190921691829163bf51929f9160248082019260009290919082900301818387803b158015612bdb57600080fd5b505af1158015612bef573d6000803e3d6000fd5b505050506000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612c4257600080fd5b505afa158015612c56573d6000803e3d6000fd5b505050506040513d6020811015612c6c57600080fd5b5051600c54600b80546001600160a01b0319166001600160a01b039283161790819055604080517f6817031b0000000000000000000000000000000000000000000000000000000081523060048201529051939450911691636817031b9160248082019260009290919082900301818387803b158015612ceb57600080fd5b505af1158015612cff573d6000803e3d6000fd5b5050600c54600754612d2293506001600160a01b039081169250166000196132e5565b600c54600854612d41916001600160a01b0391821691166000196132e5565b600c54600954612d60916001600160a01b0391821691166000196132e5565b600b5460408051636e553f6560e01b8152600481018490526001600160a01b03868116602483015291519190921691636e553f6591604480830192600092919082900301818387803b158015612db557600080fd5b505af1158015612dc9573d6000803e3d6000fd5b50506010805460ff60a01b1916600160a01b1790555050600c546040805183815290516001600160a01b03928316928516917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a3505050565b612e33613771565b6001600160a01b0316612e44612518565b6001600160a01b031614612e8d576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b6012600181548110612e9b57fe5b90600052602060002001548111612ee35760405162461bcd60e51b81526004018080602001828103825260308152602001806141146030913960400191505060405180910390fd5b601355565b6009546001600160a01b031681565b600f546001600160a01b031681565b6001600160a01b038116612f53576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204164647265737360881b604482015290519081900360640190fd5b612f5b612518565b6001600160a01b0316336001600160a01b03161480612f8457506010546001600160a01b031633145b612fd5576040805162461bcd60e51b815260206004820152600a60248201527f4f6e6c792061646d696e00000000000000000000000000000000000000000000604482015290519081900360640190fd5b600b54604080517fc7b9d5300000000000000000000000000000000000000000000000000000000081526001600160a01b0384811660048301529151919092169163c7b9d53091602480830192600092919082900301818387803b15801561303c57600080fd5b505af1158015613050573d6000803e3d6000fd5b5050601080546001600160a01b038581166001600160a01b0319831681179093556040805191909216808252602082019390935281519294507f2535c9dd3f3fd17150d4e30e0c6f7a750497f21431ccbff950ca77042cc7728693508290030190a15050565b60135481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6007546001600160a01b031681565b6012818154811061136357600080fd5b61310e613771565b6001600160a01b031661311f612518565b6001600160a01b031614613168576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b6001600160a01b0381166131ad5760405162461bcd60e51b81526004018080602001828103825260268152602001806140236026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600d546001600160a01b031681565b613238613771565b6001600160a01b0316613249612518565b6001600160a01b031614613292576040805162461bcd60e51b8152602060048201819052602482015260008051602061418d833981519152604482015290519081900360640190fd5b61329f426202a300613a59565b60118190556010805460ff60a01b1916905560408051918252517fff76cf14f454ffa693b9eedc298fb8c0f71d59d16a1df3e1489a8c0a41922efc9181900360200190a1565b8015806133845750604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561335657600080fd5b505afa15801561336a573d6000803e3d6000fd5b505050506040513d602081101561338057600080fd5b5051155b6133bf5760405162461bcd60e51b81526004018080602001828103825260368152602001806142796036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167f095ea7b300000000000000000000000000000000000000000000000000000000179052611696908490613ccf565b600060183610801590613441575061344133611a9b565b15613455575060131936013560601c611119565b5033611119565b606061346b8484600085613d80565b949350505050565b60008261348257506000611134565b8282028284828161348f57fe5b04146113f55760405162461bcd60e51b81526004018080602001828103825260218152602001806141446021913960400191505060405180910390fd5b6000808211613522576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161352b57fe5b049392505050565b60008282111561358a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60006135a26005610b82856002613473565b600e549091506135bf906001600160a01b0384811691168361360a565b600f546135d9906001600160a01b0384811691168361360a565b601054611696906001600160a01b03166135fd836135f78782613533565b90613533565b6001600160a01b03851691905b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b03167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611696908490613ccf565b6001600160a01b0382166136ba5760405162461bcd60e51b81526004018080602001828103825260218152602001806141ad6021913960400191505060405180910390fd5b6136c682600083611696565b61370381604051806060016040528060228152602001613fcb602291396001600160a01b03851660009081526020819052604090205491906139c2565b6001600160a01b0383166000908152602081905260409020556002546137299082613533565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000612a5161342a565b6001600160a01b0383166137c05760405162461bcd60e51b815260040180806020018281038252602481526020018061422b6024913960400191505060405180910390fd5b6001600160a01b0382166138055760405162461bcd60e51b81526004018080602001828103825260228152602001806140496022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166138ac5760405162461bcd60e51b81526004018080602001828103825260258152602001806142066025913960400191505060405180910390fd5b6001600160a01b0382166138f15760405162461bcd60e51b8152600401808060200182810382526023815260200180613fa86023913960400191505060405180910390fd5b6138fc838383611696565b6139398160405180606001604052806026815260200161406b602691396001600160a01b03861660009081526020819052604090205491906139c2565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546139689082613a59565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115613a515760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613a165781810151838201526020016139fe565b50505050905090810190601f168015613a435780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156113f5576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008060006012600081548110613ac657fe5b9060005260206000200154841015613af8576014600081548110613ae657fe5b90600052602060002001549050613b42565b6012600181548110613b0657fe5b90600052602060002001548411613b25576014600181548110613ae657fe5b601354841015613b3d576014600281548110613ae657fe5b506015545b613b52612710610b828684613473565b9150613b5e8483613533565b925050915091565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03167f23b872dd00000000000000000000000000000000000000000000000000000000179052613bd9908590613ccf565b50505050565b6001600160a01b038216613c3a576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b613c4660008383611696565b600254613c539082613a59565b6002556001600160a01b038216600090815260208190526040902054613c799082613a59565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000613d24826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661345c9092919063ffffffff16565b80519091501561169657808060200190516020811015613d4357600080fd5b50516116965760405162461bcd60e51b815260040180806020018281038252602a81526020018061424f602a913960400191505060405180910390fd5b606082471015613dc15760405162461bcd60e51b81526004018080602001828103825260268152602001806140bf6026913960400191505060405180910390fd5b613dca85613edb565b613e1b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310613e595780518252601f199092019160209182019101613e3a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613ebb576040519150601f19603f3d011682016040523d82523d6000602084013e613ec0565b606091505b5091509150613ed0828286613ee1565b979650505050505050565b3b151590565b60608315613ef05750816113f5565b825115613f005782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315613a165781810151838201526020016139fe565b828054828255906000526020600020908101928215613f82579160200282015b82811115613f82578235825591602001919060010190613f67565b50613f8e929150613f92565b5090565b5b80821115613f8e5760008155600101613f9356fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636550726f66696c652073686172696e67206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e203330254f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e20333025416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d6178696d756e20616d6f756e74206d7573742067726561746572207468616e206d696e696d756e20616d6f756e74437573746f6d206e6574776f726b206665652074696572206d7573742067726561746572207468616e20746965722032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e2066726f6d20746865207a65726f2061646472657373437573746f6d206e6574776f726b206665652070657263656e746167652063616e6e6f74206265206d6f7265207468616e2074696572203245524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bb2bd0a6e4d29266b03b26fcbb0f701ec2ef318c7d5ba1d3f561692a1de7432364736f6c63430007060033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000000000822427cd2a5a69e810301626bb355450a47c60ea0000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b99000000000000000000000000adacd247b4b3d873d8b2e664564a52f70907629c00000000000000000000000072520bd6393d6c3bf07a0159c947b98f2b1bd0b0000000000000000000000000897123d92fa17aa911a86f34051a7dc6937f6dbe00000000000000000000000086c80a8aa58e0a4fa09a69624c31ab2a6cad56b8

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

000000000000000000000000822427cd2a5a69e810301626bb355450a47c60ea0000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b99000000000000000000000000adacd247b4b3d873d8b2e664564a52f70907629c00000000000000000000000072520bd6393d6c3bf07a0159c947b98f2b1bd0b0000000000000000000000000897123d92fa17aa911a86f34051a7dc6937f6dbe00000000000000000000000086c80a8aa58e0a4fa09a69624c31ab2a6cad56b8

-----Decoded View---------------
Arg [0] : _strategy (address): 0x822427cd2a5a69e810301626bb355450a47c60ea
Arg [1] : _admin (address): 0x3f68a3c1023d736d8be867ca49cb18c543373b99
Arg [2] : _treasuryWallet (address): 0xadacd247b4b3d873d8b2e664564a52f70907629c
Arg [3] : _communityWallet (address): 0x72520bd6393d6c3bf07a0159c947b98f2b1bd0b0
Arg [4] : _strategist (address): 0x897123d92fa17aa911a86f34051a7dc6937f6dbe
Arg [5] : _biconomy (address): 0x86c80a8aa58e0a4fa09a69624c31ab2a6cad56b8

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000822427cd2a5a69e810301626bb355450a47c60ea
Arg [1] : 0000000000000000000000003f68a3c1023d736d8be867ca49cb18c543373b99
Arg [2] : 000000000000000000000000adacd247b4b3d873d8b2e664564a52f70907629c
Arg [3] : 00000000000000000000000072520bd6393d6c3bf07a0159c947b98f2b1bd0b0
Arg [4] : 000000000000000000000000897123d92fa17aa911a86f34051a7dc6937f6dbe
Arg [5] : 00000000000000000000000086c80a8aa58e0a4fa09a69624c31ab2a6cad56b8


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