Contract 0x1922c36f3bc762ca300b4a46bb2102f84b1684ab 14

 

Contract Overview

Umami: cmUMAMI Token
Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x300a156e31fc8c377f0ec326a2821f8b2162aabfe283d44ff5c87bdfd2ec884dApprove1952066182024-03-28 20:33:1550 mins ago0x681d116c3724351094bbed13a7efdb80e947c399 IN  Umami: cmUMAMI Token0 ETH0.000001310.01
0x3cc6dc128f9e3ece9e9918274853de36c056eb44cef0ac5ace28b8fcd294deb0Approve1952065432024-03-28 20:32:5650 mins ago0x681d116c3724351094bbed13a7efdb80e947c399 IN  Umami: cmUMAMI Token0 ETH0.000001490.01
0x4add674b88b7ead8ace719e4a2a63377bf73080b4c9f14318e21de1cd835e618Reinvest1951674132024-03-28 17:48:163 hrs 35 mins ago0xf15e37f217a2eb15f55c9762e4256521e3a72d64 IN  Umami: cmUMAMI Token0 ETH0.00000679 0.01
0x8ce2f44792fc6158f64fdc9198edda4c50462bf8b2223253eace91803bd97ba1Withdraw1950687752024-03-28 10:55:1910 hrs 28 mins ago0xe1efc2dc4805932a87370d423492c9fde26a2278 IN  Umami: cmUMAMI Token0 ETH0.00000418 0.01
0xb198a483cb3ed15f02fd29c846faa593c88d685b4b9647de518c93e482598733Deposit1950026212024-03-28 6:19:3915 hrs 4 mins ago0xccc9ba81cde53e38cd5cf38d635daa8deb9160ec IN  Umami: cmUMAMI Token0 ETH0.00000336 0.01
0x783bebe5b261488bbc7eed93300018f9a50d513599fdeb50469864224b185a85Withdraw1949613132024-03-28 3:27:0717 hrs 56 mins ago0x9b132d5b35be2f6c2a042361def7b457836ec272 IN  Umami: cmUMAMI Token0 ETH0.00000207 0.01
0x95c9b8dcc17342c673114a5347f49c935912ac3b25986189e9595241a51595d4Approve1949385752024-03-28 1:51:5519 hrs 31 mins ago0x3dada60b92650a9d79a97c2ac62d8a908c242779 IN  Umami: cmUMAMI Token0 ETH0.00000498 0.01
0x245585897fbeee0e7c2dd5529f796f93826c69b3a6f86981aeb47717868efcd7Approve1949382222024-03-28 1:50:2819 hrs 33 mins ago0x3dada60b92650a9d79a97c2ac62d8a908c242779 IN  Umami: cmUMAMI Token0 ETH0.00000324 0.01
0x1e24013294d8cf5b9bec947f76d49b58b9611e10fafc322135111462c57dda01Withdraw1948820332024-03-27 21:54:5223 hrs 29 mins ago0x84323c7139af855de059dc08eb4a9a1c94f2b42b IN  Umami: cmUMAMI Token0 ETH0.00000422 0.01
0x11a9e7c82e932b042c25ae8a573f99d536d6a4953d8193bfa70000523e57dc36Approve1948632662024-03-27 20:36:051 day 47 mins ago0x7021d02b2715d6cd146e8eb404a3fd3d23ff1863 IN  Umami: cmUMAMI Token0 ETH0.000001190.01
0x2b72df476bb8a08dd458ebbc53fc90b8d7ad15c6dc9b4b1248f20f2ecb127287Reinvest1948058542024-03-27 16:36:051 day 4 hrs ago0xf15e37f217a2eb15f55c9762e4256521e3a72d64 IN  Umami: cmUMAMI Token0 ETH0.00000434 0.01
0xd1ea1849461dd27105f381378b4390c9758ae55c322e946e78a4dc5b79cfa4fdApprove1947535382024-03-27 12:56:351 day 8 hrs ago0x15358c1bfd36d32a8b687b1f7ebc581f40ac6c3b IN  Umami: cmUMAMI Token0 ETH0.000001480.01
0xd86973442d9b6cbe51158b659dbb1fc23a5e8cb5b3cc7dd9c67666a1261d3333Withdraw1947534312024-03-27 12:56:081 day 8 hrs ago0xf5fe364d18f4a5a53badce9a046ba74cfc97f6fb IN  Umami: cmUMAMI Token0 ETH0.00000236 0.01
0x48469b81e99fd1b4dad9cb2a9269ce05b1f12dd689950ec020164a7e3153da32Approve1947501662024-03-27 12:42:321 day 8 hrs ago0x145d982f3c6583823593c20a280307765d1d7e38 IN  Umami: cmUMAMI Token0 ETH0.00000142 0.01
0xfab5fa67297a4fcb05653aee765cc1e418ecaa1ce8ff41ff976a20820d36ffe1Withdraw1947335812024-03-27 11:33:101 day 9 hrs ago0x53beb1e70d3d051d1e8b061ab93a6212c728317d IN  Umami: cmUMAMI Token0 ETH0.00000247 0.01
0x8dd0c34bb0e1f3001df71744b7b6ea653004138a78f5defaff37a241ef3d749fApprove1947085132024-03-27 9:48:381 day 11 hrs ago0xd1db1b014513ffcc2a3b204a8483d9243d08b684 IN  Umami: cmUMAMI Token0 ETH0.000001180.01
0x7c30fd52203fec46fc69ad5b1c75d22940bfb5e2cfcc9822bf1df2483f65e6b0Deposit1946765062024-03-27 7:34:551 day 13 hrs ago0x0b4abc052bd6ffdcdde4978c344026a8b6f73a76 IN  Umami: cmUMAMI Token0 ETH0.00000238 0.015375
0x7923e9a48a884440ea42f2fe58231c34f40190846b2a790ddd0816981197fb22Approve1946758902024-03-27 7:32:201 day 13 hrs ago0x81a1b8ed2d0449a50168c6b410a4de24cebb9f70 IN  Umami: cmUMAMI Token0 ETH0.00000142 0.01702
0x93a6afa8e11d7579277d2b867363922bd7d08dc951d480c432623f6a6c09c67eDeposit1946735702024-03-27 7:22:401 day 14 hrs ago0x0b4abc052bd6ffdcdde4978c344026a8b6f73a76 IN  Umami: cmUMAMI Token0 ETH0.000002 0.01
0xbb17f4cba9017619301da111e326d5b2f8c077c399db5e03104fdc93d27bc6beDeposit1946184342024-03-27 3:32:361 day 17 hrs ago0xe1faac1c1af3f6ecfba4976f9ffa01cb6d176626 IN  Umami: cmUMAMI Token0 ETH0.00000202 0.01
0x92347cbb80b5576b3a1f5d31b140edc71303f0ea9040c1bd1eb1c7d3f6ac1a46Withdraw1946008142024-03-27 2:18:381 day 19 hrs ago0xebd5f0763d46a9e9f9c82404b6ad3ee0788fd662 IN  Umami: cmUMAMI Token0 ETH0.000002340.01
0xd59e1cab1aaa925401ec90cbb46ec47275b1d9013fcecf3793cd801f86189d59Approve1945881622024-03-27 1:25:471 day 19 hrs ago0x005c93d07f898ad7ed74ca753eb0b295f7a5ef1c IN  Umami: cmUMAMI Token0 ETH0.00000132 0.01
0xb4f23c4064da9d3040802aeabbc27fbdd0d4824e12cab70afdeb0e386b1a6cd4Withdraw1944636902024-03-26 16:46:102 days 4 hrs ago0x3c6092678e8aaa8dcd1d4c3a5833cf4f1c8a9b21 IN  Umami: cmUMAMI Token0 ETH0.00000345 0.011598
0x291c50f5afcfdb593a6530c814a69aaeaae7b0e0ba11bd2c118a19d7d066a438Reinvest1944406912024-03-26 15:09:382 days 6 hrs ago0xf15e37f217a2eb15f55c9762e4256521e3a72d64 IN  Umami: cmUMAMI Token0 ETH0.00000432 0.011207
0x3453a5d37a150858ddff7168dfdf1544277ade42bf721a66d4d6876e3dc1c6d2Deposit1943475772024-03-26 8:41:412 days 12 hrs ago0xa4e057e58a11de90f6e63dc9b6c51025bd2c9646 IN  Umami: cmUMAMI Token0 ETH0.00000171 0.01
[ Download CSV Export 

OVERVIEW

Umami is pioneering the mass adoption of DeFi with its expanding array of DeFi Yield products tailored to institutional investors.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x3dc0b7c4a12cf87aeff74f3cc18481aa2f8e9f25473e19c37e12218dc8e1ddca720673082023-03-21 8:59:10373 days 12 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago 0x1111111254fb6c44bac0bed2854e76f90643097d Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago 0x1111111254fb6c44bac0bed2854e76f90643097d Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago 0x64768a3a2453f1e8de9e43e92d65fc36e4c9872d Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago 0x64768a3a2453f1e8de9e43e92d65fc36e4c9872d Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago Camelot: Router Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago 0x08893e991c262aa01262e64c1f38df816bd6f6b1 Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago 0x08893e991c262aa01262e64c1f38df816bd6f6b1 Umami: cmUMAMI Token0 ETH
0x9a284ecef5d1649ac9ec22065d0ded5a22c0c7effc6cf69a2d57b67d63fdac3d720671852023-03-21 8:58:39373 days 12 hrs ago Camelot: Router Umami: cmUMAMI Token0 ETH
0x8baf87d9c53da47c6d71f4ca1546d41da95bd69ef84c67cb8b0cbc6ba370abac720595842023-03-21 8:27:35373 days 12 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0xbc414b8c4fc3d869f9a1a2e433d87e74b27b21d3065dfd28b9a5abb0222c291c720472472023-03-21 7:37:00373 days 13 hrs ago 0xef66660477450bf6c9e3c6d3ffab469ed2df8d35 Umami: cmUMAMI Token0 ETH
0xbc414b8c4fc3d869f9a1a2e433d87e74b27b21d3065dfd28b9a5abb0222c291c720472472023-03-21 7:37:00373 days 13 hrs ago 0xef66660477450bf6c9e3c6d3ffab469ed2df8d35 Umami: cmUMAMI Token0 ETH
0xbc414b8c4fc3d869f9a1a2e433d87e74b27b21d3065dfd28b9a5abb0222c291c720472472023-03-21 7:37:00373 days 13 hrs ago 0xef66660477450bf6c9e3c6d3ffab469ed2df8d35 Umami: cmUMAMI Token0 ETH
0xbc414b8c4fc3d869f9a1a2e433d87e74b27b21d3065dfd28b9a5abb0222c291c720472472023-03-21 7:37:00373 days 13 hrs ago Camelot: Router Umami: cmUMAMI Token0 ETH
0xbc414b8c4fc3d869f9a1a2e433d87e74b27b21d3065dfd28b9a5abb0222c291c720472472023-03-21 7:37:00373 days 13 hrs ago 0x08893e991c262aa01262e64c1f38df816bd6f6b1 Umami: cmUMAMI Token0 ETH
0xbc414b8c4fc3d869f9a1a2e433d87e74b27b21d3065dfd28b9a5abb0222c291c720472472023-03-21 7:37:00373 days 13 hrs ago 0x08893e991c262aa01262e64c1f38df816bd6f6b1 Umami: cmUMAMI Token0 ETH
0x05320c94b620c32a07c4f4fbd888597a35c1e32ad6b4f6e3acd3132e38147a96720338512023-03-21 6:41:58373 days 14 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0x50bea8d6fb193bcfaacf5e73d40283c394de368b8a028a3d8a336540c925c541720335922023-03-21 6:40:53373 days 14 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token 0x1622bf67e6e5747b81866fe0b85178a93c7f86e30 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token Uniswap V3: Router0 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token Wrapped Ether0 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token 0x2adabd6e8ce3e82f52d9998a7f64a90d294a92a40 ETH
0xa8fb004c2597995b0713c012521eacfe8a55a1ee65248be4604b12afcd011d46720231462023-03-21 5:57:58373 days 15 hrs ago Umami: cmUMAMI Token Wrapped Ether0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MarinateAutoCompounder

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 88888 runs

Other Settings:
default evmVersion
File 1 of 16 : MarinateAutoCompounder.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//                                                                            //
//                              #@@@@@@@@@@@@&,                               //
//                      .@@@@@   .@@@@@@@@@@@@@@@@@@@*                        //
//                  %@@@,    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@                    //
//               @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                 //
//             @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@               //
//           *@@@#    .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             //
//          *@@@%    &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            //
//          @@@@     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//                                                                            //
//          (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,           //
//          (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,           //
//                                                                            //
//          @@@@@   @@@@@@@@@   @@@@@@@@@   @@@@@@@@@   @@@@@@@@@             //
//            &@@@@@@@    #@@@@@@@.   ,@@@@@@@,   .@@@@@@@/    @@@@           //
//                                                                            //
//          @@@@@      @@@%    *@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          @@@@@      @@@@    %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@           //
//          .@@@@      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            //
//            @@@@@  &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@             //
//                (&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&(                 //
//                                                                            //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////

// Libraries
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol";

// Interfaces
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { ISwapRouter } from "./interfaces/ISwapRouter.sol";
import { IStrategy } from "./interfaces/IStrategy.sol";
import { IMarinateV2 } from "./interfaces/IMarinateV2.sol";

/// @title Umami Marinate Auto-Compounder
contract MarinateAutoCompounder is ERC20, AccessControl, IStrategy, ReentrancyGuard {
    using SafeERC20 for IERC20;

    /************************************************
     *  STORAGE
     ***********************************************/

    /// @notice total deposited mUMAMI
    uint256 public totalDeposits;

    /// @notice the destination for admin fees
    address public feeDestination;

    /// @notice the deposit token for the autocompounder
    IERC20 public depositToken;

    /// @notice the univ3 router
    ISwapRouter public router;

    /// @notice reward tokens recieved from marinate
    address[] public rewardTokens;

    /// @notice swap routes for the reward tokens
    bytes[] public routes;

    /// @notice if the token is an approved reward token
    mapping(address => bool) public isRewardToken;

    /// @notice marinateV2 contract address
    IMarinateV2 public marinateContract;

    /// @notice minimum amount of tokens to reinvest
    uint256 public MIN_TOKENS_TO_REINVEST;

    /// @notice  reinvest reward
    uint256 public REINVEST_REWARD_BIPS;

    /// @notice admin fee taken when reinvested
    uint256 public ADMIN_FEE_BIPS;

    /************************************************
     *  CONSTANTS
     ***********************************************/

    /// @notice WETH token
    address constant WETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1;

    /// @notice UMAMI token
    address constant UMAMI = 0x1622bF67e6e5747b81866fE0b85178a93C7F86e3;

    /// @notice divisor for percentage calculations
    uint256 private constant BIPS_DIVISOR = 10000;

    /// @notice admin role hash
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

    /************************************************
     *  EVENTS
     ***********************************************/

    event Claim(address indexed account, uint256 amount);
    event Deposit(address indexed account, uint256 amount);
    event Withdraw(address indexed account, uint256 amount);
    event Reinvest(uint256 newTotalDeposits, uint256 newTotalSupply);
    event Recovered(address token, uint256 amount);
    event UpdateAdminFee(uint256 oldValue, uint256 newValue);
    event UpdateReinvestReward(uint256 oldValue, uint256 newValue);
    event UpdateMinTokensToReinvest(uint256 oldValue, uint256 newValue);
    event UpdateWithdrawFee(uint256 oldValue, uint256 newValue);
    event UpdateRequireReinvestBeforeDeposit(bool newValue);
    event UpdateMinTokensToReinvestBeforeDeposit(uint256 oldValue, uint256 newValue);

    /************************************************
     *  CONSTRUCTOR
     ***********************************************/

    constructor(
        string memory _name,
        string memory _symbol,
        address _depositToken,
        address _marinateContract,
        address _router
    ) ERC20(_name, _symbol) {
        depositToken = IERC20(_depositToken);
        marinateContract = IMarinateV2(_marinateContract);
        router = ISwapRouter(_router);
        rewardTokens = [WETH];
        isRewardToken[WETH] = true;
        uint24 poolFee = 10000;
        routes = [abi.encodePacked(WETH, poolFee, UMAMI)];
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(ADMIN_ROLE, msg.sender);
        feeDestination = msg.sender;
        REINVEST_REWARD_BIPS = 50;
        MIN_TOKENS_TO_REINVEST = 10000;
        ADMIN_FEE_BIPS = 300;
    }

    /************************************************
     *  DEPOSIT & WITHDRAW
     ***********************************************/

    /**
     * @notice Deposit tokens to receive receipt tokens
     * @param amount Amount of tokens to deposit
     */
    function deposit(uint256 amount) external override nonReentrant {
        _deposit(amount);
    }

    /**
     * @notice handle deposit logic
     * @param amount Amount of tokens to deposit
     */
    function _deposit(uint256 amount) internal {
        require(totalDeposits >= totalSupply(), "deposit failed");
        require(depositToken.transferFrom(msg.sender, address(this), amount), "transferFrom failed");

        _mint(msg.sender, getSharesForDepositTokens(amount));
        totalDeposits = totalDeposits + amount;
        emit Deposit(msg.sender, amount);
    }

    /**
     * @notice Withdraw LP tokens by redeeming receipt tokens
     * @param amount Amount of receipt tokens to redeem
     */
    function withdraw(uint256 amount) external override nonReentrant {
        require(balanceOf(msg.sender) >= amount, "insufficent balance to withdraw");
        uint256 depositTokenAmount = getDepositTokensForShares(amount);
        if (depositTokenAmount > 0) {
            require(depositToken.transfer(msg.sender, depositTokenAmount), "transfer failed");
            _burn(msg.sender, amount);
            totalDeposits = totalDeposits - depositTokenAmount;
            emit Withdraw(msg.sender, depositTokenAmount);
        }
    }

    /************************************************
     *  COMPOUND
     ***********************************************/

    /**
     * @notice Reinvest rewards from staking contract to deposit tokens
     * @dev This external function requires minimum tokens to be met
     */
    function reinvest() external override onlyEOA {
        uint256 unclaimedRewards = checkReward();
        require(unclaimedRewards >= MIN_TOKENS_TO_REINVEST, "MIN_TOKENS_TO_REINVEST");
        _reinvest();
    }

    /**
     * @notice Reinvest rewards from staking contract to deposit tokens
     * @dev This internal function does not require mininmum tokens to be met
     */
    function _reinvest() internal {
        marinateContract.claimRewards();
        uint256 umamiClaimed = convertRewardTokensToDepositTokens();
        require(umamiClaimed > 0, "No rewards to reinvest");

        uint256 adminFee = (umamiClaimed * ADMIN_FEE_BIPS) / BIPS_DIVISOR;
        if (adminFee > 0) {
            require(IERC20(UMAMI).transfer(feeDestination, adminFee), "admin fee transfer failed");
        }

        uint256 reinvestFee = (umamiClaimed * REINVEST_REWARD_BIPS) / BIPS_DIVISOR;
        if (reinvestFee > 0) {
            require(IERC20(UMAMI).transfer(msg.sender, reinvestFee), "reinvest fee transfer failed");
        }

        uint256 toRedeposit = (umamiClaimed - adminFee) - reinvestFee;
        _stakeDepositTokens(toRedeposit);
        totalDeposits = totalDeposits + toRedeposit;

        emit Claim(msg.sender, umamiClaimed);
        emit Reinvest(totalDeposits, totalSupply());
    }

    /**
     * @notice Converts all reward tokens to deposit tokens
     * @dev Always converts through router; there are no price checks enabled
     */
    function convertRewardTokensToDepositTokens() private returns (uint256) {
        uint256 totalUmamiReturned = 0;
        // loop over reward tokens
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            uint256 tokenBalance = IERC20(rewardTokens[i]).balanceOf(address(this));
            if (tokenBalance > MIN_TOKENS_TO_REINVEST) {
                // swap to umami
                ISwapRouter.ExactInputParams memory params = ISwapRouter.ExactInputParams({
                    path: routes[i],
                    recipient: address(this),
                    deadline: block.timestamp,
                    amountIn: tokenBalance,
                    amountOutMinimum: 0
                });
                // The call to `exactInput` executes the swap.
                totalUmamiReturned += router.exactInput(params);
            }
        }
        return totalUmamiReturned;
    }

    /**
     * @notice Stakes deposit tokens in Staking Contract
     * @param amount deposit tokens to stake
     */
    function _stakeDepositTokens(uint256 amount) internal {
        require(amount > 0, "amount too low");
        marinateContract.stake(amount);
    }

    /**
     * @notice Max reward token balance that can be reinvested
     * @dev Staking rewards accurue to contract on each deposit/withdrawal
     * @return Unclaimed rewards, plus contract balance
     */
    function checkReward() public returns (uint256) {
        uint256 maxRewards = 0;
        uint256 tokenTotalRewards;
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            tokenTotalRewards =
                marinateContract.getAvailableTokenRewards(address(this), rewardTokens[i]) +
                IERC20(rewardTokens[i]).balanceOf(address(this));
            if (tokenTotalRewards > maxRewards) {
                maxRewards = tokenTotalRewards;
            }
        }
        return maxRewards;
    }

    /************************************************
     *  MUTATORS
     ***********************************************/

    /**
     * @notice add a reward token
     * @param rewardToken the address of the token to add
     * @param swapRoute the swap route to take when reinvesting the token
     */
    function addRewardToken(address rewardToken, bytes calldata swapRoute) external onlyAdmin {
        require(!isRewardToken[rewardToken], "Reward token exists");
        isRewardToken[rewardToken] = true;
        rewardTokens.push(rewardToken);
        routes.push(swapRoute);
    }

    /**
     * @notice remove a reward token
     * @param rewardToken the address of the token to remove
     */
    function removeRewardToken(address rewardToken) public onlyAdmin {
        require(isRewardToken[rewardToken], "Reward token !exists");
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            if (rewardTokens[i] == rewardToken) {
                rewardTokens[i] = rewardTokens[rewardTokens.length - 1];
                routes[i] = routes[routes.length - 1];
                rewardTokens.pop();
                routes.pop();
                isRewardToken[rewardToken] = false;
            }
        }
    }

    /**
     * @notice set desination for admin fees generated by this pool
     * @param newDestination the address to send fees to
     */
    function setFeeDestination(address newDestination) public onlyAdmin {
        feeDestination = newDestination;
    }

    /**
     * @notice Update reinvest minimum threshold for external callers
     * @param newValue min threshold in wei
     */
    function updateMinTokensToReinvest(uint256 newValue) external onlyAdmin {
        emit UpdateMinTokensToReinvest(MIN_TOKENS_TO_REINVEST, newValue);
        MIN_TOKENS_TO_REINVEST = newValue;
    }

    /**
     * @notice Update admin fee
     * @dev Total fees cannot be greater than BIPS_DIVISOR (max 5%)
     * @param newValue specified in BIPS
     */
    function updateAdminFee(uint256 newValue) external onlyAdmin {
        require(newValue + REINVEST_REWARD_BIPS <= BIPS_DIVISOR / 20, "admin fee too high");
        emit UpdateAdminFee(ADMIN_FEE_BIPS, newValue);
        ADMIN_FEE_BIPS = newValue;
    }

    /**
     * @notice Update reinvest reward
     * @dev Total fees cannot be greater than BIPS_DIVISOR (max 5%)
     * @param newValue specified in BIPS
     */
    function updateReinvestReward(uint256 newValue) external onlyAdmin {
        require(newValue + ADMIN_FEE_BIPS <= BIPS_DIVISOR / 20, "reinvest reward too high");
        emit UpdateReinvestReward(REINVEST_REWARD_BIPS, newValue);
        REINVEST_REWARD_BIPS = newValue;
    }

    /************************************************
     *  VIEWS
     ***********************************************/

    /**
     * @notice Calculate receipt tokens for a given amount of deposit tokens
     * @dev If contract is empty, use 1:1 ratio
     * @dev Could return zero shares for very low amounts of deposit tokens
     * @param amount deposit tokens
     * @return receipt tokens
     */
    function getSharesForDepositTokens(uint256 amount) public view returns (uint256) {
        if ((totalSupply() * totalDeposits) == 0) {
            return amount;
        }
        return (amount * totalSupply()) / totalDeposits;
    }

    /**
     * @notice Calculate deposit tokens for a given amount of receipt tokens
     * @param amount receipt tokens
     * @return deposit tokens
     */
    function getDepositTokensForShares(uint256 amount) public view returns (uint256) {
        if ((totalSupply() * totalDeposits) == 0) {
            return 0;
        }
        return (amount * totalDeposits) / totalSupply();
    }

    /**
     * @notice Returns length of reward tokens
     * @return length of reward tokens
     */
    function rewardTokensLength() public view returns (uint256) {
        return rewardTokens.length;
    }

    /************************************************
     *  ADMIN
     ***********************************************/

    /**
     * @notice Recover ether from contract (should never be any in it)
     * @param amount amount
     */
    function recoverETH(uint256 amount) external onlyAdmin {
        require(amount > 0, "amount too low");
        payable(msg.sender).transfer(amount);
        emit Recovered(address(0), amount);
    }

    /**
     * @notice migrate a token to a different address
     * @param token the token address
     * @param destination the token destination
     * @param amount the token amount
     */
    function migrateToken(
        address token,
        address destination,
        uint256 amount
    ) external onlyAdmin {
        uint256 total = 0;
        if (amount == 0) {
            total = IERC20(token).balanceOf(address(this));
        } else {
            total = amount;
        }
        IERC20(token).safeTransfer(destination, total);
    }

    /**
     * @notice Approve tokens for use in Strategy
     * @dev Restricted to avoid griefing attacks
     */
    function setAllowances() public onlyAdmin {
        IERC20(UMAMI).approve(address(marinateContract), IERC20(UMAMI).totalSupply());
        for (uint256 i = 0; i < rewardTokens.length; i++) {
            IERC20(rewardTokens[i]).approve(address(router), IERC20(rewardTokens[i]).totalSupply());
        }
    }

    /**
     * @notice Revoke token allowance
     * @dev Restricted to avoid griefing attacks
     * @param token address
     * @param spender address
     */
    function revokeAllowance(address token, address spender) external onlyAdmin {
        require(IERC20(token).approve(spender, 0));
    }

    /************************************************
     *  MODIFIERS
     ***********************************************/

    /**
     * @dev Throws if called by smart contract
     */
    modifier onlyEOA() {
        require(tx.origin == msg.sender, "onlyEOA");
        _;
    }

    /**
     * @dev Throws if not admin role
     */
    modifier onlyAdmin() {
        require(hasRole(ADMIN_ROLE, msg.sender), "Caller is not an admin");
        _;
    }

    /************************************************
     *  ERC20 OVERRIDES
     ***********************************************/

    /**
     * @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 this function is
     * overridden;
     *
     * 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 override returns (uint8) {
        return 9;
    }
}

File 2 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 16 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.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 Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 override returns (uint8) {
        return 18;
    }

    /**
     * @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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + 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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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 7 of 16 : ISwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface ISwapRouter {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

    struct ExactOutputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}

File 8 of 16 : IStrategy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IStrategy {
    function deposit(uint256 amount) external;

    function reinvest() external;

    function withdraw(uint256 amount) external;
}

File 9 of 16 : IMarinateV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IMarinateV2 is IERC20 {
    function stake(uint256 amount) external;

    function withdraw() external;

    function claimRewards() external;

    function getAvailableTokenRewards(address staker, address token) external returns (uint256 totalRewards);

    function addApprovedRewardToken(address token) external;

    function addToContractWhitelist(address _contract) external returns (bool);

    function addReward(address token, uint256 amount) external;

    function setDepositLimit(uint256 limit) external;

    function totalTokenRewardsPerStake(address a) external;

    function isWhitelisted(address addr) external returns (bool);
}

File 10 of 16 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 11 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 12 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 13 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 15 of 16 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 16 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_depositToken","type":"address"},{"internalType":"address","name":"_marinateContract","type":"address"},{"internalType":"address","name":"_router","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTotalDeposits","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"Reinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateAdminFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateMinTokensToReinvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateMinTokensToReinvestBeforeDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateReinvestReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"UpdateRequireReinvestBeforeDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"UpdateWithdrawFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ADMIN_FEE_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TOKENS_TO_REINVEST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REINVEST_REWARD_BIPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"bytes","name":"swapRoute","type":"bytes"}],"name":"addRewardToken","outputs":[],"stateMutability":"nonpayable","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":"checkReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDepositTokensForShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getSharesForDepositTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"isRewardToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marinateContract","outputs":[{"internalType":"contract IMarinateV2","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrateToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rewardToken","type":"address"}],"name":"removeRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"revokeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract ISwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"routes","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setAllowances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newDestination","type":"address"}],"name":"setFeeDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateAdminFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateMinTokensToReinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"updateReinvestReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004e1938038062004e1983398101604081905262000034916200055e565b8451859085906200004d906003906020850190620002cd565b50805162000063906004906020840190620002cd565b505060016006819055600980546001600160a01b038088166001600160a01b031992831617909255600e8054878416908316179055600a80549286169290911691909117905560408051602081019091527382af49447d8a07e3bd95bd0d56f35241523fbab18152620000da9250600b916200035c565b507382af49447d8a07e3bd95bd0d56f35241523fbab1600052600d60209081527f0d49181b4ae433b921118177ea94e9d76b87e6a3b82caf32d2ed0de8767b7fd7805460ff191660011790556040805191820181527f82af49447d8a07e3bd95bd0d56f35241523fbab10000000000000000000000009082015261027160ec1b60548201527f1622bf67e6e5747b81866fe0b85178a93c7f86e300000000000000000000000060578201526127109080606b810160408051601f198184030181529190529052620001b090600c906001620003b4565b50620001be60003362000219565b620001ea7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753362000219565b5050600880546001600160a01b03191633179055505060326010555050612710600f5561012c60115562000650565b62000225828262000229565b5050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff16620002255760008281526005602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002db90620005fd565b90600052602060002090601f016020900481019282620002ff57600085556200034a565b82601f106200031a57805160ff19168380011785556200034a565b828001600101855582156200034a579182015b828111156200034a5782518255916020019190600101906200032d565b506200035892915062000414565b5090565b8280548282559060005260206000209081019282156200034a579160200282015b828111156200034a57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200037d565b82805482825590600052602060002090810192821562000406579160200282015b82811115620004065782518051620003f5918491602090910190620002cd565b5091602001919060010190620003d5565b50620003589291506200042b565b5b8082111562000358576000815560010162000415565b80821115620003585760006200044282826200044c565b506001016200042b565b5080546200045a90620005fd565b6000825580601f106200046b575050565b601f0160209004906000526020600020908101906200048b919062000414565b50565b80516001600160a01b0381168114620004a657600080fd5b919050565b600082601f830112620004bc578081fd5b81516001600160401b0380821115620004d957620004d96200063a565b604051601f8301601f19908116603f011681019082821181831017156200050457620005046200063a565b8160405283815260209250868385880101111562000520578485fd5b8491505b8382101562000543578582018301518183018401529082019062000524565b838211156200055457848385830101525b9695505050505050565b600080600080600060a0868803121562000576578081fd5b85516001600160401b03808211156200058d578283fd5b6200059b89838a01620004ab565b96506020880151915080821115620005b1578283fd5b50620005c088828901620004ab565b945050620005d1604087016200048e565b9250620005e1606087016200048e565b9150620005f1608087016200048e565b90509295509295909350565b600181811c908216806200061257607f821691505b602082108114156200063457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6147b980620006606000396000f3fe608060405234801561001057600080fd5b50600436106103155760003560e01c806391d14854116101a7578063c89039c5116100ee578063dd8ce4d611610097578063f887ea4011610071578063f887ea4014610720578063fbe5323414610740578063fdb5a03e1461075357600080fd5b8063dd8ce4d6146106da578063de53fcd5146106ed578063eab89a5a1461070d57600080fd5b8063d547741f116100c8578063d547741f14610679578063dbd9a4d41461068c578063dd62ed3e1461069457600080fd5b8063c89039c514610633578063cff1b6ef14610653578063d33355531461066657600080fd5b8063a9059cbb11610150578063bd079f551161012a578063bd079f551461061a578063bf199e6214610623578063c4b24a461461062b57600080fd5b8063a9059cbb146105d1578063b5fd73f8146105e4578063b6b55f251461060757600080fd5b8063a217fddf11610181578063a217fddf146105a3578063a457c2d7146105ab578063a8ae2b7c146105be57600080fd5b806391d148541461054257806393bfa2821461058857806395d89b411461059b57600080fd5b8063395093511161026b5780637ae26773116102145780637d882097116101ee5780637d8820971461051d57806381837230146105265780638aff733d1461053957600080fd5b80637ae26773146104e45780637bb7bed1146104f75780637cd367ec1461050a57600080fd5b806370a082311161024557806370a0823114610474578063726f16d8146104aa57806375b238fc146104bd57600080fd5b806339509351146104095780633d509c971461041c57806358eff6571461042f57600080fd5b806323b872dd116102cd5780632f2ff15d116102a75780632f2ff15d146103d4578063313ce567146103e757806336568abe146103f657600080fd5b806323b872dd14610389578063248a9ca31461039c5780632e1a7d4d146103bf57600080fd5b806307677111116102fe5780630767711114610357578063095ea7b31461036e57806318160ddd1461038157600080fd5b806301ffc9a71461031a57806306fdde0314610342575b600080fd5b61032d61032836600461440f565b61075b565b60405190151581526020015b60405180910390f35b61034a6107f4565b604051610339919061454e565b61036060115481565b604051908152602001610339565b61032d61037c36600461438c565b610886565b600254610360565b61032d6103973660046142d3565b61089e565b6103606103aa3660046143d5565b60009081526005602052604090206001015490565b6103d26103cd3660046143d5565b6108c4565b005b6103d26103e23660046143ed565b610b31565b60405160098152602001610339565b6103d26104043660046143ed565b610b5c565b61032d61041736600461438c565b610c0f565b6103d261042a366004614287565b610c5b565b600e5461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610339565b610360610482366004614287565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61034a6104b83660046143d5565b6110ee565b6103607fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6103d26104f23660046142a1565b61119a565b61044f6105053660046143d5565b6112e3565b6103d261051836600461430e565b61131a565b61036060075481565b6103d26105343660046143d5565b611527565b61036060105481565b61032d6105503660046143ed565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103d26105963660046142d3565b611600565b61034a611767565b610360600081565b61032d6105b936600461438c565b611776565b6103d26105cc3660046143d5565b611852565b61032d6105df36600461438c565b6119ad565b61032d6105f2366004614287565b600d6020526000908152604090205460ff1681565b6103d26106153660046143d5565b6119bb565b610360600f5481565b600b54610360565b610360611a3e565b60095461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b6103d26106613660046143d5565b611c74565b6103d26106743660046143d5565b611dcf565b6103d26106873660046143ed565b611f3c565b6103d2611f62565b6103606106a23660046142a1565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6103606106e83660046143d5565b612396565b60085461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b61036061071b3660046143d5565b6123d0565b600a5461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b6103d261074e366004614287565b612404565b6103d26124e3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806107ee57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610803906146cd565b80601f016020809104026020016040519081016040528092919081815260200182805461082f906146cd565b801561087c5780601f106108515761010080835404028352916020019161087c565b820191906000526020600020905b81548152906001019060200180831161085f57829003601f168201915b5050505050905090565b6000336108948185856125cc565b5060019392505050565b6000336108ac85828561277f565b6108b7858585612850565b60019150505b9392505050565b60026006541415610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600655336000908152602081905260409020548111156109b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f696e737566666963656e742062616c616e636520746f20776974686472617700604482015260640161092d565b60006109bf826123d0565b90508015610b28576009546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810183905273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90604401602060405180830381600087803b158015610a3957600080fd5b505af1158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7191906143b5565b610ad7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c65640000000000000000000000000000000000604482015260640161092d565b610ae13383612b03565b80600754610aef9190614655565b60075560405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25b50506001600655565b600082815260056020526040902060010154610b4d8133612cf0565b610b578383612dc2565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161092d565b610c0b8282612eb6565b5050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906108949082908690610c569087906145c7565b6125cc565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16610cf3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604090205460ff16610d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f52657761726420746f6b656e2021657869737473000000000000000000000000604482015260640161092d565b60005b600b54811015610c0b578173ffffffffffffffffffffffffffffffffffffffff16600b8281548110610de0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156110dc57600b8054610e1890600190614655565b81548110610e4f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154600b805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610eaf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600c8054610f0d90600190614655565b81548110610f44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600c8281548110610f88577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001908054610f9e906146cd565b610fa99291906140f2565b50600b805480610fe2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055019055600c805480611072577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600061108e919061417d565b905573ffffffffffffffffffffffffffffffffffffffff82166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b806110e68161471b565b915050610d85565b600c81815481106110fe57600080fd5b906000526020600020016000915090508054611119906146cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611145906146cd565b80156111925780601f1061116757610100808354040283529160200191611192565b820191906000526020600020905b81548152906001019060200180831161117557829003601f168201915b505050505081565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301526000602483015283169063095ea7b390604401602060405180830381600087803b1580156112a257600080fd5b505af11580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da91906143b5565b610c0b57600080fd5b600b81815481106112f357600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166113b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d602052604090205460ff1615611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f52657761726420746f6b656e2065786973747300000000000000000000000000604482015260640161092d565b73ffffffffffffffffffffffffffffffffffffffff83166000818152600d6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155600b80548083019091557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180547fffffffffffffffffffffffff000000000000000000000000000000000000000016909317909255600c805492830181559052611521907fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70183836141b7565b50505050565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166115bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b600f5460408051918252602082018390527f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef849901100910160405180910390a1600f55565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b600081611743576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b15801561170457600080fd5b505afa158015611718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173c919061444f565b9050611746565b50805b61152173ffffffffffffffffffffffffffffffffffffffff85168483612f71565b606060048054610803906146cd565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161092d565b61184782868684036125cc565b506001949350505050565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166118ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b6118f760146127106145df565b60115461190490836145c7565b111561196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f7265696e766573742072657761726420746f6f20686967680000000000000000604482015260640161092d565b60105460408051918252602082018390527fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f2910160405180910390a1601055565b600033610894818585612850565b60026006541415611a28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161092d565b6002600655611a3681612ffe565b506001600655565b60008080805b600b54811015611c6c57600b8181548110611a88577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b158015611afa57600080fd5b505afa158015611b0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b32919061444f565b600e54600b805473ffffffffffffffffffffffffffffffffffffffff9092169163c5644c8691309186908110611b91577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015460405160e084901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff928316600482015291166024820152604401602060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c42919061444f565b611c4c91906145c7565b915082821115611c5a578192505b80611c648161471b565b915050611a44565b509092915050565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611d0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b611d1960146127106145df565b601054611d2690836145c7565b1115611d8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f61646d696e2066656520746f6f20686967680000000000000000000000000000604482015260640161092d565b60115460408051918252602082018390527f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a910160405180910390a1601155565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611e67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b60008111611ed1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f616d6f756e7420746f6f206c6f77000000000000000000000000000000000000604482015260640161092d565b604051339082156108fc029083906000818181858888f19350505050158015611efe573d6000803e3d6000fd5b506040805160008152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a150565b600082815260056020526040902060010154611f588133612cf0565b610b578383612eb6565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611ffa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b731622bf67e6e5747b81866fe0b85178a93c7f86e373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16731622bf67e6e5747b81866fe0b85178a93c7f86e373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120a757600080fd5b505afa1580156120bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120df919061444f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b15801561214a57600080fd5b505af115801561215e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218291906143b5565b5060005b600b5481101561239357600b81815481106121ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154600a54600b805473ffffffffffffffffffffffffffffffffffffffff9384169363095ea7b39316919085908110612236577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290200154604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff909216926318160ddd92600480840193829003018186803b1580156122a557600080fd5b505afa1580156122b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122dd919061444f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b15801561234857600080fd5b505af115801561235c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238091906143b5565b508061238b8161471b565b915050612186565b50565b60006007546123a460025490565b6123ae9190614618565b6123b6575090565b6007546002546123c69084614618565b6107ee91906145df565b60006007546123de60025490565b6123e89190614618565b6123f457506000919050565b6002546007546123c69084614618565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff1661249c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b32331461254c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f6f6e6c79454f4100000000000000000000000000000000000000000000000000604482015260640161092d565b6000612556611a3e565b9050600f548110156125c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d494e5f544f4b454e535f544f5f5245494e5645535400000000000000000000604482015260640161092d565b6123936131dd565b73ffffffffffffffffffffffffffffffffffffffff831661266e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff8216612711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146115215781811015612843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161092d565b61152184848484036125cc565b73ffffffffffffffffffffffffffffffffffffffff83166128f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff8216612996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015612a4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612a909084906145c7565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612af691815260200190565b60405180910390a3611521565b73ffffffffffffffffffffffffffffffffffffffff8216612ba6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015612c5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120838303905560028054849290612c98908490614655565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610c0b57612d488173ffffffffffffffffffffffffffffffffffffffff166014613600565b612d53836020613600565b604051602001612d649291906144cd565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261092d9160040161454e565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610c0b57600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055612e583390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610c0b57600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b57908490613906565b600254600754101561306c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6465706f736974206661696c6564000000000000000000000000000000000000604482015260640161092d565b6009546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90606401602060405180830381600087803b1580156130e457600080fd5b505af11580156130f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061311c91906143b5565b613182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f7472616e7366657246726f6d206661696c656400000000000000000000000000604482015260640161092d565b6131943361318f83612396565b613a12565b806007546131a291906145c7565b60075560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663372500ab6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561324757600080fd5b505af115801561325b573d6000803e3d6000fd5b505050506000613269613b32565b9050600081116132d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f207265776172647320746f207265696e7665737400000000000000000000604482015260640161092d565b6000612710601154836132e89190614618565b6132f291906145df565b9050801561341e576008546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101829052731622bf67e6e5747b81866fe0b85178a93c7f86e39063a9059cbb90604401602060405180830381600087803b15801561338057600080fd5b505af1158015613394573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133b891906143b5565b61341e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f61646d696e20666565207472616e73666572206661696c656400000000000000604482015260640161092d565b6000612710601054846134319190614618565b61343b91906145df565b9050801561354d576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101829052731622bf67e6e5747b81866fe0b85178a93c7f86e39063a9059cbb90604401602060405180830381600087803b1580156134af57600080fd5b505af11580156134c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134e791906143b5565b61354d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f7265696e7665737420666565207472616e73666572206661696c656400000000604482015260640161092d565b60008161355a8486614655565b6135649190614655565b905061356f81613e01565b8060075461357d91906145c7565b60075560405184815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a27fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2346007546135e260025490565b6040805192835260208301919091520160405180910390a150505050565b6060600061360f836002614618565b61361a9060026145c7565b67ffffffffffffffff811115613659577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613683576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106136e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061376b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006137a7846002614618565b6137b29060016145c7565b90505b600181111561389d577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061381a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613857577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361389681614698565b90506137b5565b5083156108bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161092d565b6000613968826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613ef29092919063ffffffff16565b805190915015610b57578080602001905181019061398691906143b5565b610b57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff8216613a8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161092d565b8060026000828254613aa191906145c7565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290613adb9084906145c7565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080805b600b54811015613dfb576000600b8281548110613b7d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b158015613bef57600080fd5b505afa158015613c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c27919061444f565b9050600f54811115613de85760006040518060a00160405280600c8581548110613c7a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018054613c8f906146cd565b80601f0160208091040260200160405190810160405280929190818152602001828054613cbb906146cd565b8015613d085780601f10613cdd57610100808354040283529160200191613d08565b820191906000526020600020905b815481529060010190602001808311613ceb57829003601f168201915b505050918352505030602082015242604080830191909152606082018590526000608090920191909152600a5490517fc04b8d5900000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063c04b8d5990613d88908490600401614561565b602060405180830381600087803b158015613da257600080fd5b505af1158015613db6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dda919061444f565b613de490856145c7565b9350505b5080613df38161471b565b915050613b37565b50919050565b60008111613e6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f616d6f756e7420746f6f206c6f77000000000000000000000000000000000000604482015260640161092d565b600e546040517fa694fc3a0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff9091169063a694fc3a90602401600060405180830381600087803b158015613ed757600080fd5b505af1158015613eeb573d6000803e3d6000fd5b5050505050565b6060613f018484600085613f09565b949350505050565b606082471015613f9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff85163b614019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161092d565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161404291906144b1565b60006040518083038185875af1925050503d806000811461407f576040519150601f19603f3d011682016040523d82523d6000602084013e614084565b606091505b509150915061409482828661409f565b979650505050505050565b606083156140ae5750816108bd565b8251156140be5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d919061454e565b8280546140fe906146cd565b90600052602060002090601f016020900481019282614120576000855561416d565b82601f10614131578054855561416d565b8280016001018555821561416d57600052602060002091601f016020900482015b8281111561416d578254825591600101919060010190614152565b50614179929150614249565b5090565b508054614189906146cd565b6000825580601f10614199575050565b601f0160209004906000526020600020908101906123939190614249565b8280546141c3906146cd565b90600052602060002090601f0160209004810192826141e5576000855561416d565b82601f1061421c578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561416d565b8280016001018555821561416d579182015b8281111561416d57823582559160200191906001019061422e565b5b80821115614179576000815560010161424a565b803573ffffffffffffffffffffffffffffffffffffffff8116811461428257600080fd5b919050565b600060208284031215614298578081fd5b6108bd8261425e565b600080604083850312156142b3578081fd5b6142bc8361425e565b91506142ca6020840161425e565b90509250929050565b6000806000606084860312156142e7578081fd5b6142f08461425e565b92506142fe6020850161425e565b9150604084013590509250925092565b600080600060408486031215614322578283fd5b61432b8461425e565b9250602084013567ffffffffffffffff80821115614347578384fd5b818601915086601f83011261435a578384fd5b813581811115614368578485fd5b876020828501011115614379578485fd5b6020830194508093505050509250925092565b6000806040838503121561439e578182fd5b6143a78361425e565b946020939093013593505050565b6000602082840312156143c6578081fd5b815180151581146108bd578182fd5b6000602082840312156143e6578081fd5b5035919050565b600080604083850312156143ff578182fd5b823591506142ca6020840161425e565b600060208284031215614420578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146108bd578182fd5b600060208284031215614460578081fd5b5051919050565b6000815180845261447f81602086016020860161466c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516144c381846020870161466c565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161450581601785016020880161466c565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161454281602884016020880161466c565b01602801949350505050565b6020815260006108bd6020830184614467565b602081526000825160a0602084015261457d60c0840182614467565b905073ffffffffffffffffffffffffffffffffffffffff60208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b600082198211156145da576145da614754565b500190565b600082614613577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561465057614650614754565b500290565b60008282101561466757614667614754565b500390565b60005b8381101561468757818101518382015260200161466f565b838111156115215750506000910152565b6000816146a7576146a7614754565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806146e157607f821691505b60208210811415613dfb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561474d5761474d614754565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220ad39f2cfa03150df2f1796c8990f4bfddc1f43e8e565f4645920ad5f9e3518eb64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000002adabd6e8ce3e82f52d9998a7f64a90d294a92a40000000000000000000000002adabd6e8ce3e82f52d9998a7f64a90d294a92a4000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000001a436f6d706f756e646564204d6172696e6174656420554d414d490000000000000000000000000000000000000000000000000000000000000000000000000007636d554d414d4900000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103155760003560e01c806391d14854116101a7578063c89039c5116100ee578063dd8ce4d611610097578063f887ea4011610071578063f887ea4014610720578063fbe5323414610740578063fdb5a03e1461075357600080fd5b8063dd8ce4d6146106da578063de53fcd5146106ed578063eab89a5a1461070d57600080fd5b8063d547741f116100c8578063d547741f14610679578063dbd9a4d41461068c578063dd62ed3e1461069457600080fd5b8063c89039c514610633578063cff1b6ef14610653578063d33355531461066657600080fd5b8063a9059cbb11610150578063bd079f551161012a578063bd079f551461061a578063bf199e6214610623578063c4b24a461461062b57600080fd5b8063a9059cbb146105d1578063b5fd73f8146105e4578063b6b55f251461060757600080fd5b8063a217fddf11610181578063a217fddf146105a3578063a457c2d7146105ab578063a8ae2b7c146105be57600080fd5b806391d148541461054257806393bfa2821461058857806395d89b411461059b57600080fd5b8063395093511161026b5780637ae26773116102145780637d882097116101ee5780637d8820971461051d57806381837230146105265780638aff733d1461053957600080fd5b80637ae26773146104e45780637bb7bed1146104f75780637cd367ec1461050a57600080fd5b806370a082311161024557806370a0823114610474578063726f16d8146104aa57806375b238fc146104bd57600080fd5b806339509351146104095780633d509c971461041c57806358eff6571461042f57600080fd5b806323b872dd116102cd5780632f2ff15d116102a75780632f2ff15d146103d4578063313ce567146103e757806336568abe146103f657600080fd5b806323b872dd14610389578063248a9ca31461039c5780632e1a7d4d146103bf57600080fd5b806307677111116102fe5780630767711114610357578063095ea7b31461036e57806318160ddd1461038157600080fd5b806301ffc9a71461031a57806306fdde0314610342575b600080fd5b61032d61032836600461440f565b61075b565b60405190151581526020015b60405180910390f35b61034a6107f4565b604051610339919061454e565b61036060115481565b604051908152602001610339565b61032d61037c36600461438c565b610886565b600254610360565b61032d6103973660046142d3565b61089e565b6103606103aa3660046143d5565b60009081526005602052604090206001015490565b6103d26103cd3660046143d5565b6108c4565b005b6103d26103e23660046143ed565b610b31565b60405160098152602001610339565b6103d26104043660046143ed565b610b5c565b61032d61041736600461438c565b610c0f565b6103d261042a366004614287565b610c5b565b600e5461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610339565b610360610482366004614287565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b61034a6104b83660046143d5565b6110ee565b6103607fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6103d26104f23660046142a1565b61119a565b61044f6105053660046143d5565b6112e3565b6103d261051836600461430e565b61131a565b61036060075481565b6103d26105343660046143d5565b611527565b61036060105481565b61032d6105503660046143ed565b600091825260056020908152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b6103d26105963660046142d3565b611600565b61034a611767565b610360600081565b61032d6105b936600461438c565b611776565b6103d26105cc3660046143d5565b611852565b61032d6105df36600461438c565b6119ad565b61032d6105f2366004614287565b600d6020526000908152604090205460ff1681565b6103d26106153660046143d5565b6119bb565b610360600f5481565b600b54610360565b610360611a3e565b60095461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b6103d26106613660046143d5565b611c74565b6103d26106743660046143d5565b611dcf565b6103d26106873660046143ed565b611f3c565b6103d2611f62565b6103606106a23660046142a1565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6103606106e83660046143d5565b612396565b60085461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b61036061071b3660046143d5565b6123d0565b600a5461044f9073ffffffffffffffffffffffffffffffffffffffff1681565b6103d261074e366004614287565b612404565b6103d26124e3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806107ee57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610803906146cd565b80601f016020809104026020016040519081016040528092919081815260200182805461082f906146cd565b801561087c5780601f106108515761010080835404028352916020019161087c565b820191906000526020600020905b81548152906001019060200180831161085f57829003601f168201915b5050505050905090565b6000336108948185856125cc565b5060019392505050565b6000336108ac85828561277f565b6108b7858585612850565b60019150505b9392505050565b60026006541415610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600655336000908152602081905260409020548111156109b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f696e737566666963656e742062616c616e636520746f20776974686472617700604482015260640161092d565b60006109bf826123d0565b90508015610b28576009546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526024810183905273ffffffffffffffffffffffffffffffffffffffff9091169063a9059cbb90604401602060405180830381600087803b158015610a3957600080fd5b505af1158015610a4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7191906143b5565b610ad7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f7472616e73666572206661696c65640000000000000000000000000000000000604482015260640161092d565b610ae13383612b03565b80600754610aef9190614655565b60075560405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25b50506001600655565b600082815260056020526040902060010154610b4d8133612cf0565b610b578383612dc2565b505050565b73ffffffffffffffffffffffffffffffffffffffff81163314610c01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161092d565b610c0b8282612eb6565b5050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906108949082908690610c569087906145c7565b6125cc565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16610cf3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604090205460ff16610d82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f52657761726420746f6b656e2021657869737473000000000000000000000000604482015260640161092d565b60005b600b54811015610c0b578173ffffffffffffffffffffffffffffffffffffffff16600b8281548110610de0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156110dc57600b8054610e1890600190614655565b81548110610e4f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154600b805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610eaf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600c8054610f0d90600190614655565b81548110610f44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600c8281548110610f88577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001908054610f9e906146cd565b610fa99291906140f2565b50600b805480610fe2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055019055600c805480611072577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60019003818190600052602060002001600061108e919061417d565b905573ffffffffffffffffffffffffffffffffffffffff82166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b806110e68161471b565b915050610d85565b600c81815481106110fe57600080fd5b906000526020600020016000915090508054611119906146cd565b80601f0160208091040260200160405190810160405280929190818152602001828054611145906146cd565b80156111925780601f1061116757610100808354040283529160200191611192565b820191906000526020600020905b81548152906001019060200180831161117557829003601f168201915b505050505081565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301526000602483015283169063095ea7b390604401602060405180830381600087803b1580156112a257600080fd5b505af11580156112b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112da91906143b5565b610c0b57600080fd5b600b81815481106112f357600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166113b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600d602052604090205460ff1615611442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f52657761726420746f6b656e2065786973747300000000000000000000000000604482015260640161092d565b73ffffffffffffffffffffffffffffffffffffffff83166000818152600d6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001908117909155600b80548083019091557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180547fffffffffffffffffffffffff000000000000000000000000000000000000000016909317909255600c805492830181559052611521907fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70183836141b7565b50505050565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166115bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b600f5460408051918252602082018390527f481f79ac3a523b6d6db3c5a720e190e986d1cc1b41adcdf50f9caef849901100910160405180910390a1600f55565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611698576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b600081611743576040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8516906370a082319060240160206040518083038186803b15801561170457600080fd5b505afa158015611718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173c919061444f565b9050611746565b50805b61152173ffffffffffffffffffffffffffffffffffffffff85168483612f71565b606060048054610803906146cd565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561183a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161092d565b61184782868684036125cc565b506001949350505050565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff166118ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b6118f760146127106145df565b60115461190490836145c7565b111561196c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f7265696e766573742072657761726420746f6f20686967680000000000000000604482015260640161092d565b60105460408051918252602082018390527fe7f97d51d307dc44045597c9978bec0f842e6bb40d19b9444084cfa30d9ed4f2910160405180910390a1601055565b600033610894818585612850565b60026006541415611a28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161092d565b6002600655611a3681612ffe565b506001600655565b60008080805b600b54811015611c6c57600b8181548110611a88577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b158015611afa57600080fd5b505afa158015611b0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b32919061444f565b600e54600b805473ffffffffffffffffffffffffffffffffffffffff9092169163c5644c8691309186908110611b91577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020909120015460405160e084901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff928316600482015291166024820152604401602060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c42919061444f565b611c4c91906145c7565b915082821115611c5a578192505b80611c648161471b565b915050611a44565b509092915050565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611d0c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b611d1960146127106145df565b601054611d2690836145c7565b1115611d8e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f61646d696e2066656520746f6f20686967680000000000000000000000000000604482015260640161092d565b60115460408051918252602082018390527f3cc372f330f95ac9540626dc8a25f5bf21ba607215a5d58304cb804d446f104a910160405180910390a1601155565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611e67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b60008111611ed1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f616d6f756e7420746f6f206c6f77000000000000000000000000000000000000604482015260640161092d565b604051339082156108fc029083906000818181858888f19350505050158015611efe573d6000803e3d6000fd5b506040805160008152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a150565b600082815260056020526040902060010154611f588133612cf0565b610b578383612eb6565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff16611ffa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b731622bf67e6e5747b81866fe0b85178a93c7f86e373ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16731622bf67e6e5747b81866fe0b85178a93c7f86e373ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120a757600080fd5b505afa1580156120bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120df919061444f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b15801561214a57600080fd5b505af115801561215e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218291906143b5565b5060005b600b5481101561239357600b81815481106121ca577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600091825260209091200154600a54600b805473ffffffffffffffffffffffffffffffffffffffff9384169363095ea7b39316919085908110612236577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60009182526020918290200154604080517f18160ddd000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff909216926318160ddd92600480840193829003018186803b1580156122a557600080fd5b505afa1580156122b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122dd919061444f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401602060405180830381600087803b15801561234857600080fd5b505af115801561235c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238091906143b5565b508061238b8161471b565b915050612186565b50565b60006007546123a460025490565b6123ae9190614618565b6123b6575090565b6007546002546123c69084614618565b6107ee91906145df565b60006007546123de60025490565b6123e89190614618565b6123f457506000919050565b6002546007546123c69084614618565b3360009081527fd8ef4509105c3edb0b04658b4528edc5ddd30ea5a81e623a2623c88db1eb54b6602052604090205460ff1661249c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f43616c6c6572206973206e6f7420616e2061646d696e00000000000000000000604482015260640161092d565b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b32331461254c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f6f6e6c79454f4100000000000000000000000000000000000000000000000000604482015260640161092d565b6000612556611a3e565b9050600f548110156125c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d494e5f544f4b454e535f544f5f5245494e5645535400000000000000000000604482015260640161092d565b6123936131dd565b73ffffffffffffffffffffffffffffffffffffffff831661266e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff8216612711576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146115215781811015612843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161092d565b61152184848484036125cc565b73ffffffffffffffffffffffffffffffffffffffff83166128f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff8216612996576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015612a4c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220858503905591851681529081208054849290612a909084906145c7565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612af691815260200190565b60405180910390a3611521565b73ffffffffffffffffffffffffffffffffffffffff8216612ba6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015612c5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120838303905560028054849290612c98908490614655565b909155505060405182815260009073ffffffffffffffffffffffffffffffffffffffff8516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610c0b57612d488173ffffffffffffffffffffffffffffffffffffffff166014613600565b612d53836020613600565b604051602001612d649291906144cd565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261092d9160040161454e565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff16610c0b57600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055612e583390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1615610c0b57600082815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b57908490613906565b600254600754101561306c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f6465706f736974206661696c6564000000000000000000000000000000000000604482015260640161092d565b6009546040517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810183905273ffffffffffffffffffffffffffffffffffffffff909116906323b872dd90606401602060405180830381600087803b1580156130e457600080fd5b505af11580156130f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061311c91906143b5565b613182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f7472616e7366657246726f6d206661696c656400000000000000000000000000604482015260640161092d565b6131943361318f83612396565b613a12565b806007546131a291906145c7565b60075560405181815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a250565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663372500ab6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561324757600080fd5b505af115801561325b573d6000803e3d6000fd5b505050506000613269613b32565b9050600081116132d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f207265776172647320746f207265696e7665737400000000000000000000604482015260640161092d565b6000612710601154836132e89190614618565b6132f291906145df565b9050801561341e576008546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116600482015260248101829052731622bf67e6e5747b81866fe0b85178a93c7f86e39063a9059cbb90604401602060405180830381600087803b15801561338057600080fd5b505af1158015613394573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133b891906143b5565b61341e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f61646d696e20666565207472616e73666572206661696c656400000000000000604482015260640161092d565b6000612710601054846134319190614618565b61343b91906145df565b9050801561354d576040517fa9059cbb00000000000000000000000000000000000000000000000000000000815233600482015260248101829052731622bf67e6e5747b81866fe0b85178a93c7f86e39063a9059cbb90604401602060405180830381600087803b1580156134af57600080fd5b505af11580156134c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134e791906143b5565b61354d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f7265696e7665737420666565207472616e73666572206661696c656400000000604482015260640161092d565b60008161355a8486614655565b6135649190614655565b905061356f81613e01565b8060075461357d91906145c7565b60075560405184815233907f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d49060200160405180910390a27fc7606d21ac05cd309191543e409f0845c016120563783d70e4f41419dc0ef2346007546135e260025490565b6040805192835260208301919091520160405180910390a150505050565b6060600061360f836002614618565b61361a9060026145c7565b67ffffffffffffffff811115613659577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613683576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106136e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061376b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006137a7846002614618565b6137b29060016145c7565b90505b600181111561389d577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061381a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b828281518110613857577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c9361389681614698565b90506137b5565b5083156108bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161092d565b6000613968826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613ef29092919063ffffffff16565b805190915015610b57578080602001905181019061398691906143b5565b610b57576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff8216613a8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161092d565b8060026000828254613aa191906145c7565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604081208054839290613adb9084906145c7565b909155505060405181815273ffffffffffffffffffffffffffffffffffffffff8316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080805b600b54811015613dfb576000600b8281548110613b7d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b158015613bef57600080fd5b505afa158015613c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c27919061444f565b9050600f54811115613de85760006040518060a00160405280600c8581548110613c7a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018054613c8f906146cd565b80601f0160208091040260200160405190810160405280929190818152602001828054613cbb906146cd565b8015613d085780601f10613cdd57610100808354040283529160200191613d08565b820191906000526020600020905b815481529060010190602001808311613ceb57829003601f168201915b505050918352505030602082015242604080830191909152606082018590526000608090920191909152600a5490517fc04b8d5900000000000000000000000000000000000000000000000000000000815291925073ffffffffffffffffffffffffffffffffffffffff169063c04b8d5990613d88908490600401614561565b602060405180830381600087803b158015613da257600080fd5b505af1158015613db6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dda919061444f565b613de490856145c7565b9350505b5080613df38161471b565b915050613b37565b50919050565b60008111613e6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f616d6f756e7420746f6f206c6f77000000000000000000000000000000000000604482015260640161092d565b600e546040517fa694fc3a0000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff9091169063a694fc3a90602401600060405180830381600087803b158015613ed757600080fd5b505af1158015613eeb573d6000803e3d6000fd5b5050505050565b6060613f018484600085613f09565b949350505050565b606082471015613f9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161092d565b73ffffffffffffffffffffffffffffffffffffffff85163b614019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161092d565b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161404291906144b1565b60006040518083038185875af1925050503d806000811461407f576040519150601f19603f3d011682016040523d82523d6000602084013e614084565b606091505b509150915061409482828661409f565b979650505050505050565b606083156140ae5750816108bd565b8251156140be5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d919061454e565b8280546140fe906146cd565b90600052602060002090601f016020900481019282614120576000855561416d565b82601f10614131578054855561416d565b8280016001018555821561416d57600052602060002091601f016020900482015b8281111561416d578254825591600101919060010190614152565b50614179929150614249565b5090565b508054614189906146cd565b6000825580601f10614199575050565b601f0160209004906000526020600020908101906123939190614249565b8280546141c3906146cd565b90600052602060002090601f0160209004810192826141e5576000855561416d565b82601f1061421c578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561416d565b8280016001018555821561416d579182015b8281111561416d57823582559160200191906001019061422e565b5b80821115614179576000815560010161424a565b803573ffffffffffffffffffffffffffffffffffffffff8116811461428257600080fd5b919050565b600060208284031215614298578081fd5b6108bd8261425e565b600080604083850312156142b3578081fd5b6142bc8361425e565b91506142ca6020840161425e565b90509250929050565b6000806000606084860312156142e7578081fd5b6142f08461425e565b92506142fe6020850161425e565b9150604084013590509250925092565b600080600060408486031215614322578283fd5b61432b8461425e565b9250602084013567ffffffffffffffff80821115614347578384fd5b818601915086601f83011261435a578384fd5b813581811115614368578485fd5b876020828501011115614379578485fd5b6020830194508093505050509250925092565b6000806040838503121561439e578182fd5b6143a78361425e565b946020939093013593505050565b6000602082840312156143c6578081fd5b815180151581146108bd578182fd5b6000602082840312156143e6578081fd5b5035919050565b600080604083850312156143ff578182fd5b823591506142ca6020840161425e565b600060208284031215614420578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146108bd578182fd5b600060208284031215614460578081fd5b5051919050565b6000815180845261447f81602086016020860161466c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516144c381846020870161466c565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161450581601785016020880161466c565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161454281602884016020880161466c565b01602801949350505050565b6020815260006108bd6020830184614467565b602081526000825160a0602084015261457d60c0840182614467565b905073ffffffffffffffffffffffffffffffffffffffff60208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b600082198211156145da576145da614754565b500190565b600082614613577f4e487b710000000000000000000000000000000000000000000000000000000081526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561465057614650614754565b500290565b60008282101561466757614667614754565b500390565b60005b8381101561468757818101518382015260200161466f565b838111156115215750506000910152565b6000816146a7576146a7614754565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806146e157607f821691505b60208210811415613dfb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561474d5761474d614754565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea2646970667358221220ad39f2cfa03150df2f1796c8990f4bfddc1f43e8e565f4645920ad5f9e3518eb64736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000002adabd6e8ce3e82f52d9998a7f64a90d294a92a40000000000000000000000002adabd6e8ce3e82f52d9998a7f64a90d294a92a4000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000001a436f6d706f756e646564204d6172696e6174656420554d414d490000000000000000000000000000000000000000000000000000000000000000000000000007636d554d414d4900000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Compounded Marinated UMAMI
Arg [1] : _symbol (string): cmUMAMI
Arg [2] : _depositToken (address): 0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4
Arg [3] : _marinateContract (address): 0x2AdAbD6E8Ce3e82f52d9998a7f64a90d294A92A4
Arg [4] : _router (address): 0xE592427A0AEce92De3Edee1F18E0157C05861564

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000002adabd6e8ce3e82f52d9998a7f64a90d294a92a4
Arg [3] : 0000000000000000000000002adabd6e8ce3e82f52d9998a7f64a90d294a92a4
Arg [4] : 000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564
Arg [5] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [6] : 436f6d706f756e646564204d6172696e6174656420554d414d49000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 636d554d414d4900000000000000000000000000000000000000000000000000


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