Contract 0xe2d7f5dd869fc7c126d21b13a9080e75a4bdb324 8

Contract Overview

SushiSwap: BentoBoxV1
Balance:
0 xDAI

xDAI Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x89bfd4094eca537086c3eea21fe24f83483264df11905d3dd82dd77cfc7249baDeposit320103152024-01-18 18:51:4070 days 6 hrs ago0x8d1509e0240eba23cccd58941fa2b5d7ff1fc70f IN  SushiSwap: BentoBoxV10 xDAI0.000108646219
0x24c41e53725dd9907b052585f657a9dfcf8552bb25f9c9054131741b8e10521dBatch317461842024-01-02 8:44:4586 days 16 hrs ago0x0b58857708a6f84e7ee04beaef069a7e6d1d4a0b IN  SushiSwap: BentoBoxV10 xDAI0.000644807705
0x436a18f3d803dd40a10a5865847801e825f8c5a5f32fe175a5aa424e2f6f004fWithdraw308338112023-11-07 8:48:05142 days 16 hrs ago0x3c30765cae26cc563411e08f3084387bdd557e74 IN  SushiSwap: BentoBoxV10 xDAI0.000167747575
0x5502743ef4a01cb78994a1f6e2f3369d2b4490fca2047cd298864f886e4a2ddaWithdraw308338022023-11-07 8:47:15142 days 16 hrs ago0x3c30765cae26cc563411e08f3084387bdd557e74 IN  SushiSwap: BentoBoxV10 xDAI0.000144861213
0x0b3134c2c796a9f6324c30e67f2c2b0b5dcf3972298445ba6762512eb7143bf1Set Master Contr...303617242023-10-08 20:07:45172 days 5 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000069694629
0xd03976aa4ba39c9686dd2efb589f696a458debd76daaf156ed47f6e12ae8ac0bDeposit303616042023-10-08 19:56:40172 days 5 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000162111243
0x9a1ff63896ef282ee490aff435c1b69ee72243393298e8394378ba672660f31bDeposit303615762023-10-08 19:54:15172 days 5 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10.01 xDAI0.000110302976
0x27c7a87db962eab8599c117c7f395e50d80d0b40d388d69cbde22d6af926e940Deposit303615722023-10-08 19:53:55172 days 5 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10.1 xDAI0.000112127975
0x7af254fe9fee6ca09a1609844e51180ecfc688cb06a6429871c66c61700ee4b6Batch299156302023-09-11 3:54:55199 days 21 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000268448179
0xaf0f0053726be68b86f0a3004057cab735789980c7b86117c2a5dcc12e2e1d9fBatch299152942023-09-11 3:25:45199 days 22 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000174375
0xc211891d86ac61f47917b7cb3d71be2d0aa8a420220d52528aaaacbb7d95bbd0Deposit299148512023-09-11 2:46:00199 days 22 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000251886
0x728c62756a59f3b22b44792bfbda41dbc340597b01883f111dbf037a97204161Deposit299147932023-09-11 2:40:45199 days 22 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.00023745
0x24d5564b57620219f8fb54c32b43c8db8fe9daab18faaedd833442192dcd6f47Deposit299147572023-09-11 2:37:40199 days 23 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000266540664
0xd96257cc6602af940608d3f8c904ddd3cda6777be9dab65690c301ba2a003419Deposit299147442023-09-11 2:36:30199 days 23 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV10 xDAI0.000287282317
0x6a06f17cf0a8c153aa91486d4ca1d500f4055db855982882333eaf89108700b8Deposit299147192023-09-11 2:34:20199 days 23 hrs ago0xdb306e5c24cd28a02b50c6f893d46a3572835195 IN  SushiSwap: BentoBoxV11 xDAI0.00021283469
0xc9ad8b60fd3a6ac4be183d48100e6c8cb1f5ff77104d86de1dfc911aba802d18Withdraw298928322023-09-09 18:43:25201 days 6 hrs ago0x16b2433b9cf5ff87de03ddaeea627c9106ee117a IN  SushiSwap: BentoBoxV10 xDAI0.000084702
0x21fbddea3d5e06e740e8c2c89630cc6f11b3eeb9868a4b5705a2de29b2c38550Withdraw295203492023-08-18 9:39:30223 days 16 hrs ago0x4007ce2083c7f3e18097aeb3a39bb8ec149a341d IN  SushiSwap: BentoBoxV10 xDAI0.000056468
0x91c6f789dfd0b7e5202ba13ad9412679a74e21376dc149672c61928b84613a77Flash Loan292129932023-07-30 16:16:20242 days 9 hrs ago0xd676432a77cfe7bbf5a048e375557cc18e295ae7 IN  SushiSwap: BentoBoxV10 xDAI0.000599792329
0x6b8d7397b7d4f2d7edaab76f2b9d06f2a10f70e1f5eecf1963a5b29bed14dd95Withdraw291292792023-07-25 14:59:25247 days 10 hrs ago0x5da68351bd082abda73e42ac981db51d9364fe69 IN  SushiSwap: BentoBoxV10 xDAI0.00008463
0xf0585ac4dfea9d049f947abc96868efd61df47ddb430dd63036bf1da6e021f17Withdraw287198802023-06-30 21:26:50272 days 4 hrs ago0x59b8c949d5eb9fee0ba981fc3fdaa9e5b64652ce IN  SushiSwap: BentoBoxV10 xDAI0.00017347133
0xa0732dff45d15c66ed1b044294b4f046fd88e3cd9a0d59fdda3770d75080d7fdWithdraw287197132023-06-30 21:12:05272 days 4 hrs ago0x59b8c949d5eb9fee0ba981fc3fdaa9e5b64652ce IN  SushiSwap: BentoBoxV10 xDAI0.000209426508
0x70afacd9761df3cc8a67f1a73fc9ecf00458b3a26a82bb60bdf77d2ac3e26806Deposit286378722023-06-25 21:47:55277 days 3 hrs ago0xb3efdcf165ebf350558f9d1b7d594786aa82cfb3 IN  SushiSwap: BentoBoxV10 xDAI0.0000941434
0x115516b4a9e43189ad9aadfc3caa0eeb3b54298d272dc555096bad15720d7b21Deposit286375922023-06-25 21:23:05277 days 4 hrs ago0xb3efdcf165ebf350558f9d1b7d594786aa82cfb3 IN  SushiSwap: BentoBoxV10.06960063508 xDAI0.0000702273
0x558ca7505b6c14ed06e62612a857ba4bb954b048a029883716c66d0f0e7e2187Deposit286375772023-06-25 21:21:40277 days 4 hrs ago0xb3efdcf165ebf350558f9d1b7d594786aa82cfb3 IN  SushiSwap: BentoBoxV10 xDAI0.000102895
0x65380a2e49a8b62ada84f730be471e89ce022f8dd13c8bf46dc737e8243e8d39Deposit286375652023-06-25 21:20:35277 days 4 hrs ago0xb3efdcf165ebf350558f9d1b7d594786aa82cfb3 IN  SushiSwap: BentoBoxV10 xDAI0.000103025
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x9a1ff63896ef282ee490aff435c1b69ee72243393298e8394378ba672660f31b303615762023-10-08 19:54:15172 days 5 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token0.01 xDAI
0x27c7a87db962eab8599c117c7f395e50d80d0b40d388d69cbde22d6af926e940303615722023-10-08 19:53:55172 days 5 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token0.1 xDAI
0xd4b6b0f49d12e240c13ac1f0dfde4a38d826398017c0eccac26bd9bd0eae3292303615532023-10-08 19:52:10172 days 5 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token0.1 xDAI
0xd4b6b0f49d12e240c13ac1f0dfde4a38d826398017c0eccac26bd9bd0eae3292303615532023-10-08 19:52:10172 days 5 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV10.1 xDAI
0x6a06f17cf0a8c153aa91486d4ca1d500f4055db855982882333eaf89108700b8299147192023-09-11 2:34:20199 days 23 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token1 xDAI
0xc9ad8b60fd3a6ac4be183d48100e6c8cb1f5ff77104d86de1dfc911aba802d18298928322023-09-09 18:43:25201 days 6 hrs ago SushiSwap: BentoBoxV10x16b2433b9cf5ff87de03ddaeea627c9106ee117a3,226.717361243619008586 xDAI
0xc9ad8b60fd3a6ac4be183d48100e6c8cb1f5ff77104d86de1dfc911aba802d18298928322023-09-09 18:43:25201 days 6 hrs ago Gnosis: WXDAI Token SushiSwap: BentoBoxV13,226.717361243619008586 xDAI
0x21fbddea3d5e06e740e8c2c89630cc6f11b3eeb9868a4b5705a2de29b2c38550295203492023-08-18 9:39:30223 days 16 hrs ago SushiSwap: BentoBoxV10x4007ce2083c7f3e18097aeb3a39bb8ec149a341d149.157956480873113982 xDAI
0x21fbddea3d5e06e740e8c2c89630cc6f11b3eeb9868a4b5705a2de29b2c38550295203492023-08-18 9:39:30223 days 16 hrs ago Gnosis: WXDAI Token SushiSwap: BentoBoxV1149.157956480873113982 xDAI
0x6b8d7397b7d4f2d7edaab76f2b9d06f2a10f70e1f5eecf1963a5b29bed14dd95291292792023-07-25 14:59:25247 days 10 hrs ago SushiSwap: BentoBoxV10x5da68351bd082abda73e42ac981db51d9364fe695.000154991283552619 xDAI
0x6b8d7397b7d4f2d7edaab76f2b9d06f2a10f70e1f5eecf1963a5b29bed14dd95291292792023-07-25 14:59:25247 days 10 hrs ago Gnosis: WXDAI Token SushiSwap: BentoBoxV15.000154991283552619 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token1 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV11 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token2,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV12,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token2,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV12,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token4,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV14,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token4,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV14,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token4,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV14,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: BentoBoxV1Gnosis: WXDAI Token4,000 xDAI
0xd610529b277196e923c6c3c72611579dc1ed02375852fbdceb56b737ac089e3f288174102023-07-06 19:14:40266 days 6 hrs ago SushiSwap: Furo Stream Router SushiSwap: BentoBoxV14,000 xDAI
[ Download CSV Export 
Index Block
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
BentoBoxV1

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at gnosisscan.io on 2022-08-04
*/

// SPDX-License-Identifier: UNLICENSED
// The BentoBox

//  ▄▄▄▄· ▄▄▄ . ▐ ▄ ▄▄▄▄▄      ▄▄▄▄·       ▐▄• ▄
//  ▐█ ▀█▪▀▄.▀·█▌▐█•██  ▪     ▐█ ▀█▪▪      █▌█▌▪
//  ▐█▀▀█▄▐▀▀▪▄▐█▐▐▌ ▐█.▪ ▄█▀▄ ▐█▀▀█▄ ▄█▀▄  ·██·
//  ██▄▪▐█▐█▄▄▌██▐█▌ ▐█▌·▐█▌.▐▌██▄▪▐█▐█▌.▐▌▪▐█·█▌
//  ·▀▀▀▀  ▀▀▀ ▀▀ █▪ ▀▀▀  ▀█▄▀▪·▀▀▀▀  ▀█▄▀▪•▀▀ ▀▀

// This contract stores funds, handles their transfers, supports flash loans and strategies.

// Copyright (c) 2021 BoringCrypto - All rights reserved
// Twitter: @Boring_Crypto

// Special thanks to Keno for all his hard work and support

// Version 22-Mar-2021

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// solhint-disable avoid-low-level-calls
// solhint-disable not-rely-on-time
// solhint-disable no-inline-assembly

// File @boringcrypto/boring-solidity/contracts/interfaces/[email protected]
// License-Identifier: MIT

interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /// @notice EIP 2612
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

// File contracts/interfaces/IFlashLoan.sol
// License-Identifier: MIT

interface IFlashBorrower {
    /// @notice The flashloan callback. `amount` + `fee` needs to repayed to msg.sender before this call returns.
    /// @param sender The address of the invoker of this flashloan.
    /// @param token The address of the token that is loaned.
    /// @param amount of the `token` that is loaned.
    /// @param fee The fee that needs to be paid on top for this loan. Needs to be the same as `token`.
    /// @param data Additional data that was passed to the flashloan function.
    function onFlashLoan(
        address sender,
        IERC20 token,
        uint256 amount,
        uint256 fee,
        bytes calldata data
    ) external;
}

interface IBatchFlashBorrower {
    /// @notice The callback for batched flashloans. Every amount + fee needs to repayed to msg.sender before this call returns.
    /// @param sender The address of the invoker of this flashloan.
    /// @param tokens Array of addresses for ERC-20 tokens that is loaned.
    /// @param amounts A one-to-one map to `tokens` that is loaned.
    /// @param fees A one-to-one map to `tokens` that needs to be paid on top for each loan. Needs to be the same token.
    /// @param data Additional data that was passed to the flashloan function.
    function onBatchFlashLoan(
        address sender,
        IERC20[] calldata tokens,
        uint256[] calldata amounts,
        uint256[] calldata fees,
        bytes calldata data
    ) external;
}

// File contracts/interfaces/IWETH.sol
// License-Identifier: MIT

interface IWETH {
    function deposit() external payable;

    function withdraw(uint256) external;
}

// File contracts/interfaces/IStrategy.sol
// License-Identifier: MIT

interface IStrategy {
    /// @notice Send the assets to the Strategy and call skim to invest them.
    /// @param amount The amount of tokens to invest.
    function skim(uint256 amount) external;

    /// @notice Harvest any profits made converted to the asset and pass them to the caller.
    /// @param balance The amount of tokens the caller thinks it has invested.
    /// @param sender The address of the initiator of this transaction. Can be used for reimbursements, etc.
    /// @return amountAdded The delta (+profit or -loss) that occured in contrast to `balance`.
    function harvest(uint256 balance, address sender) external returns (int256 amountAdded);

    /// @notice Withdraw assets. The returned amount can differ from the requested amount due to rounding.
    /// @dev The `actualAmount` should be very close to the amount.
    /// The difference should NOT be used to report a loss. That's what harvest is for.
    /// @param amount The requested amount the caller wants to withdraw.
    /// @return actualAmount The real amount that is withdrawn.
    function withdraw(uint256 amount) external returns (uint256 actualAmount);

    /// @notice Withdraw all assets in the safest way possible. This shouldn't fail.
    /// @param balance The amount of tokens the caller thinks it has invested.
    /// @return amountAdded The delta (+profit or -loss) that occured in contrast to `balance`.
    function exit(uint256 balance) external returns (int256 amountAdded);
}

// File @boringcrypto/boring-solidity/contracts/libraries/[email protected]
// License-Identifier: MIT

library BoringERC20 {
    bytes4 private constant SIG_SYMBOL = 0x95d89b41; // symbol()
    bytes4 private constant SIG_NAME = 0x06fdde03; // name()
    bytes4 private constant SIG_DECIMALS = 0x313ce567; // decimals()
    bytes4 private constant SIG_TRANSFER = 0xa9059cbb; // transfer(address,uint256)
    bytes4 private constant SIG_TRANSFER_FROM = 0x23b872dd; // transferFrom(address,address,uint256)

    /// @notice Provides a safe ERC20.transfer version for different ERC-20 implementations.
    /// Reverts on a failed transfer.
    /// @param token The address of the ERC-20 token.
    /// @param to Transfer tokens to.
    /// @param amount The token amount.
    function safeTransfer(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER, to, amount));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: Transfer failed");
    }

    /// @notice Provides a safe ERC20.transferFrom version for different ERC-20 implementations.
    /// Reverts on a failed transfer.
    /// @param token The address of the ERC-20 token.
    /// @param from Transfer tokens from.
    /// @param to Transfer tokens to.
    /// @param amount The token amount.
    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER_FROM, from, to, amount));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: TransferFrom failed");
    }
}

// File @boringcrypto/boring-solidity/contracts/libraries/[email protected]
// License-Identifier: MIT

/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
library BoringMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require(b == 0 || (c = a * b) / b == a, "BoringMath: Mul Overflow");
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= uint128(-1), "BoringMath: uint128 Overflow");
        c = uint128(a);
    }

    function to64(uint256 a) internal pure returns (uint64 c) {
        require(a <= uint64(-1), "BoringMath: uint64 Overflow");
        c = uint64(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= uint32(-1), "BoringMath: uint32 Overflow");
        c = uint32(a);
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint128.
library BoringMath128 {
    function add(uint128 a, uint128 b) internal pure returns (uint128 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint128 a, uint128 b) internal pure returns (uint128 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint64.
library BoringMath64 {
    function add(uint64 a, uint64 b) internal pure returns (uint64 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint64 a, uint64 b) internal pure returns (uint64 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32.
library BoringMath32 {
    function add(uint32 a, uint32 b) internal pure returns (uint32 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }
}

// File @boringcrypto/boring-solidity/contracts/libraries/[email protected]
// License-Identifier: MIT

struct Rebase {
    uint128 elastic;
    uint128 base;
}

/// @notice A rebasing library using overflow-/underflow-safe math.
library RebaseLibrary {
    using BoringMath for uint256;
    using BoringMath128 for uint128;

    /// @notice Calculates the base value in relationship to `elastic` and `total`.
    function toBase(
        Rebase memory total,
        uint256 elastic,
        bool roundUp
    ) internal pure returns (uint256 base) {
        if (total.elastic == 0) {
            base = elastic;
        } else {
            base = elastic.mul(total.base) / total.elastic;
            if (roundUp && base.mul(total.elastic) / total.base < elastic) {
                base = base.add(1);
            }
        }
    }

    /// @notice Calculates the elastic value in relationship to `base` and `total`.
    function toElastic(
        Rebase memory total,
        uint256 base,
        bool roundUp
    ) internal pure returns (uint256 elastic) {
        if (total.base == 0) {
            elastic = base;
        } else {
            elastic = base.mul(total.elastic) / total.base;
            if (roundUp && elastic.mul(total.base) / total.elastic < base) {
                elastic = elastic.add(1);
            }
        }
    }

    /// @notice Add `elastic` to `total` and doubles `total.base`.
    /// @return (Rebase) The new total.
    /// @return base in relationship to `elastic`.
    function add(
        Rebase memory total,
        uint256 elastic,
        bool roundUp
    ) internal pure returns (Rebase memory, uint256 base) {
        base = toBase(total, elastic, roundUp);
        total.elastic = total.elastic.add(elastic.to128());
        total.base = total.base.add(base.to128());
        return (total, base);
    }

    /// @notice Sub `base` from `total` and update `total.elastic`.
    /// @return (Rebase) The new total.
    /// @return elastic in relationship to `base`.
    function sub(
        Rebase memory total,
        uint256 base,
        bool roundUp
    ) internal pure returns (Rebase memory, uint256 elastic) {
        elastic = toElastic(total, base, roundUp);
        total.elastic = total.elastic.sub(elastic.to128());
        total.base = total.base.sub(base.to128());
        return (total, elastic);
    }

    /// @notice Add `elastic` and `base` to `total`.
    function add(
        Rebase memory total,
        uint256 elastic,
        uint256 base
    ) internal pure returns (Rebase memory) {
        total.elastic = total.elastic.add(elastic.to128());
        total.base = total.base.add(base.to128());
        return total;
    }

    /// @notice Subtract `elastic` and `base` to `total`.
    function sub(
        Rebase memory total,
        uint256 elastic,
        uint256 base
    ) internal pure returns (Rebase memory) {
        total.elastic = total.elastic.sub(elastic.to128());
        total.base = total.base.sub(base.to128());
        return total;
    }

    /// @notice Add `elastic` to `total` and update storage.
    /// @return newElastic Returns updated `elastic`.
    function addElastic(Rebase storage total, uint256 elastic) internal returns (uint256 newElastic) {
        newElastic = total.elastic = total.elastic.add(elastic.to128());
    }

    /// @notice Subtract `elastic` from `total` and update storage.
    /// @return newElastic Returns updated `elastic`.
    function subElastic(Rebase storage total, uint256 elastic) internal returns (uint256 newElastic) {
        newElastic = total.elastic = total.elastic.sub(elastic.to128());
    }
}

// File @boringcrypto/boring-solidity/contracts/[email protected]
// License-Identifier: MIT

// Source: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol + Claimable.sol
// Edited by BoringCrypto

contract BoringOwnableData {
    address public owner;
    address public pendingOwner;
}

contract BoringOwnable is BoringOwnableData {
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /// @notice `owner` defaults to msg.sender on construction.
    constructor() public {
        owner = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }

    /// @notice Transfers ownership to `newOwner`. Either directly or claimable by the new pending owner.
    /// Can only be invoked by the current `owner`.
    /// @param newOwner Address of the new owner.
    /// @param direct True if `newOwner` should be set immediately. False if `newOwner` needs to use `claimOwnership`.
    /// @param renounce Allows the `newOwner` to be `address(0)` if `direct` and `renounce` is True. Has no effect otherwise.
    function transferOwnership(
        address newOwner,
        bool direct,
        bool renounce
    ) public onlyOwner {
        if (direct) {
            // Checks
            require(newOwner != address(0) || renounce, "Ownable: zero address");

            // Effects
            emit OwnershipTransferred(owner, newOwner);
            owner = newOwner;
            pendingOwner = address(0);
        } else {
            // Effects
            pendingOwner = newOwner;
        }
    }

    /// @notice Needs to be called by `pendingOwner` to claim ownership.
    function claimOwnership() public {
        address _pendingOwner = pendingOwner;

        // Checks
        require(msg.sender == _pendingOwner, "Ownable: caller != pending owner");

        // Effects
        emit OwnershipTransferred(owner, _pendingOwner);
        owner = _pendingOwner;
        pendingOwner = address(0);
    }

    /// @notice Only allows the `owner` to execute the function.
    modifier onlyOwner() {
        require(msg.sender == owner, "Ownable: caller is not the owner");
        _;
    }
}

// File @boringcrypto/boring-solidity/contracts/interfaces/[email protected]
// License-Identifier: MIT

interface IMasterContract {
    /// @notice Init function that gets called from `BoringFactory.deploy`.
    /// Also kown as the constructor for cloned contracts.
    /// Any ETH send to `BoringFactory.deploy` ends up here.
    /// @param data Can be abi encoded arguments or anything else.
    function init(bytes calldata data) external payable;
}

// File @boringcrypto/boring-solidity/contracts/[email protected]
// License-Identifier: MIT

contract BoringFactory {
    event LogDeploy(address indexed masterContract, bytes data, address indexed cloneAddress);

    /// @notice Mapping from clone contracts to their masterContract.
    mapping(address => address) public masterContractOf;

    /// @notice Deploys a given master Contract as a clone.
    /// Any ETH transferred with this call is forwarded to the new clone.
    /// Emits `LogDeploy`.
    /// @param masterContract The address of the contract to clone.
    /// @param data Additional abi encoded calldata that is passed to the new clone via `IMasterContract.init`.
    /// @param useCreate2 Creates the clone by using the CREATE2 opcode, in this case `data` will be used as salt.
    /// @return cloneAddress Address of the created clone contract.
    function deploy(
        address masterContract,
        bytes calldata data,
        bool useCreate2
    ) public payable returns (address cloneAddress) {
        require(masterContract != address(0), "BoringFactory: No masterContract");
        bytes20 targetBytes = bytes20(masterContract); // Takes the first 20 bytes of the masterContract's address

        if (useCreate2) {
            // each masterContract has different code already. So clones are distinguished by their data only.
            bytes32 salt = keccak256(data);

            // Creates clone, more info here: https://blog.openzeppelin.com/deep-dive-into-the-minimal-proxy-contract/
            assembly {
                let clone := mload(0x40)
                mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
                mstore(add(clone, 0x14), targetBytes)
                mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
                cloneAddress := create2(0, clone, 0x37, salt)
            }
        } else {
            assembly {
                let clone := mload(0x40)
                mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
                mstore(add(clone, 0x14), targetBytes)
                mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
                cloneAddress := create(0, clone, 0x37)
            }
        }
        masterContractOf[cloneAddress] = masterContract;

        IMasterContract(cloneAddress).init{value: msg.value}(data);

        emit LogDeploy(masterContract, data, cloneAddress);
    }
}

// File contracts/MasterContractManager.sol
// License-Identifier: UNLICENSED

contract MasterContractManager is BoringOwnable, BoringFactory {
    event LogWhiteListMasterContract(address indexed masterContract, bool approved);
    event LogSetMasterContractApproval(address indexed masterContract, address indexed user, bool approved);
    event LogRegisterProtocol(address indexed protocol);

    /// @notice masterContract to user to approval state
    mapping(address => mapping(address => bool)) public masterContractApproved;
    /// @notice masterContract to whitelisted state for approval without signed message
    mapping(address => bool) public whitelistedMasterContracts;
    /// @notice user nonces for masterContract approvals
    mapping(address => uint256) public nonces;

    bytes32 private constant DOMAIN_SEPARATOR_SIGNATURE_HASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");
    // See https://eips.ethereum.org/EIPS/eip-191
    string private constant EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA = "\x19\x01";
    bytes32 private constant APPROVAL_SIGNATURE_HASH =
        keccak256("SetMasterContractApproval(string warning,address user,address masterContract,bool approved,uint256 nonce)");

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _DOMAIN_SEPARATOR;
    // solhint-disable-next-line var-name-mixedcase
    uint256 private immutable DOMAIN_SEPARATOR_CHAIN_ID;

    constructor() public {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        _DOMAIN_SEPARATOR = _calculateDomainSeparator(DOMAIN_SEPARATOR_CHAIN_ID = chainId);
    }

    function _calculateDomainSeparator(uint256 chainId) private view returns (bytes32) {
        return keccak256(abi.encode(DOMAIN_SEPARATOR_SIGNATURE_HASH, keccak256("BentoBox V1"), chainId, address(this)));
    }

    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        uint256 chainId;
        assembly {
            chainId := chainid()
        }
        return chainId == DOMAIN_SEPARATOR_CHAIN_ID ? _DOMAIN_SEPARATOR : _calculateDomainSeparator(chainId);
    }

    /// @notice Other contracts need to register with this master contract so that users can approve them for the BentoBox.
    function registerProtocol() public {
        masterContractOf[msg.sender] = msg.sender;
        emit LogRegisterProtocol(msg.sender);
    }

    /// @notice Enables or disables a contract for approval without signed message.
    function whitelistMasterContract(address masterContract, bool approved) public onlyOwner {
        // Checks
        require(masterContract != address(0), "MasterCMgr: Cannot approve 0");

        // Effects
        whitelistedMasterContracts[masterContract] = approved;
        emit LogWhiteListMasterContract(masterContract, approved);
    }

    /// @notice Approves or revokes a `masterContract` access to `user` funds.
    /// @param user The address of the user that approves or revokes access.
    /// @param masterContract The address who gains or loses access.
    /// @param approved If True approves access. If False revokes access.
    /// @param v Part of the signature. (See EIP-191)
    /// @param r Part of the signature. (See EIP-191)
    /// @param s Part of the signature. (See EIP-191)
    // F4 - Check behaviour for all function arguments when wrong or extreme
    // F4: Don't allow masterContract 0 to be approved. Unknown contracts will have a masterContract of 0.
    // F4: User can't be 0 for signed approvals because the recoveredAddress will be 0 if ecrecover fails
    function setMasterContractApproval(
        address user,
        address masterContract,
        bool approved,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        // Checks
        require(masterContract != address(0), "MasterCMgr: masterC not set"); // Important for security

        // If no signature is provided, the fallback is executed
        if (r == 0 && s == 0 && v == 0) {
            require(user == msg.sender, "MasterCMgr: user not sender");
            require(masterContractOf[user] == address(0), "MasterCMgr: user is clone");
            require(whitelistedMasterContracts[masterContract], "MasterCMgr: not whitelisted");
        } else {
            // Important for security - any address without masterContract has address(0) as masterContract
            // So approving address(0) would approve every address, leading to full loss of funds
            // Also, ecrecover returns address(0) on failure. So we check this:
            require(user != address(0), "MasterCMgr: User cannot be 0");

            // C10 - Protect signatures against replay, use nonce and chainId (SWC-121)
            // C10: nonce + chainId are used to prevent replays
            // C11 - All signatures strictly EIP-712 (SWC-117 SWC-122)
            // C11: signature is EIP-712 compliant
            // C12 - abi.encodePacked can't contain variable length user input (SWC-133)
            // C12: abi.encodePacked has fixed length parameters
            bytes32 digest =
                keccak256(
                    abi.encodePacked(
                        EIP191_PREFIX_FOR_EIP712_STRUCTURED_DATA,
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                APPROVAL_SIGNATURE_HASH,
                                approved
                                    ? keccak256("Give FULL access to funds in (and approved to) BentoBox?")
                                    : keccak256("Revoke access to BentoBox?"),
                                user,
                                masterContract,
                                approved,
                                nonces[user]++
                            )
                        )
                    )
                );
            address recoveredAddress = ecrecover(digest, v, r, s);
            require(recoveredAddress == user, "MasterCMgr: Invalid Signature");
        }

        // Effects
        masterContractApproved[masterContract][user] = approved;
        emit LogSetMasterContractApproval(masterContract, user, approved);
    }
}

// File @boringcrypto/boring-solidity/contracts/[email protected]
// License-Identifier: MIT

contract BaseBoringBatchable {
    /// @dev Helper function to extract a useful revert message from a failed call.
    /// If the returned data is malformed or not correctly abi encoded then this call can fail itself.
    function _getRevertMsg(bytes memory _returnData) internal pure returns (string memory) {
        // If the _res length is less than 68, then the transaction failed silently (without a revert message)
        if (_returnData.length < 68) return "Transaction reverted silently";

        assembly {
            // Slice the sighash.
            _returnData := add(_returnData, 0x04)
        }
        return abi.decode(_returnData, (string)); // All that remains is the revert string
    }

    /// @notice Allows batched call to self (this contract).
    /// @param calls An array of inputs for each call.
    /// @param revertOnFail If True then reverts after a failed call and stops doing further calls.
    /// @return successes An array indicating the success of a call, mapped one-to-one to `calls`.
    /// @return results An array with the returned data of each function call, mapped one-to-one to `calls`.
    // F1: External is ok here because this is the batch function, adding it to a batch makes no sense
    // F2: Calls in the batch may be payable, delegatecall operates in the same context, so each call in the batch has access to msg.value
    // C3: The length of the loop is fully under user control, so can't be exploited
    // C7: Delegatecall is only used on the same contract, so it's safe
    function batch(bytes[] calldata calls, bool revertOnFail) external payable returns (bool[] memory successes, bytes[] memory results) {
        successes = new bool[](calls.length);
        results = new bytes[](calls.length);
        for (uint256 i = 0; i < calls.length; i++) {
            (bool success, bytes memory result) = address(this).delegatecall(calls[i]);
            require(success || !revertOnFail, _getRevertMsg(result));
            successes[i] = success;
            results[i] = result;
        }
    }
}

contract BoringBatchable is BaseBoringBatchable {
    /// @notice Call wrapper that performs `ERC20.permit` on `token`.
    /// Lookup `IERC20.permit`.
    // F6: Parameters can be used front-run the permit and the user's permit will fail (due to nonce or other revert)
    //     if part of a batch this could be used to grief once as the second call would not need the permit
    function permitToken(
        IERC20 token,
        address from,
        address to,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public {
        token.permit(from, to, amount, deadline, v, r, s);
    }
}

// File contracts/BentoBox.sol
// License-Identifier: UNLICENSED

/// @title BentoBox
/// @author BoringCrypto, Keno
/// @notice The BentoBox is a vault for tokens. The stored tokens can be flash loaned and used in strategies.
/// Yield from this will go to the token depositors.
/// Rebasing tokens ARE NOT supported and WILL cause loss of funds.
/// Any funds transfered directly onto the BentoBox will be lost, use the deposit function instead.
contract BentoBoxV1 is MasterContractManager, BoringBatchable {
    using BoringMath for uint256;
    using BoringMath128 for uint128;
    using BoringERC20 for IERC20;
    using RebaseLibrary for Rebase;

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

    event LogDeposit(IERC20 indexed token, address indexed from, address indexed to, uint256 amount, uint256 share);
    event LogWithdraw(IERC20 indexed token, address indexed from, address indexed to, uint256 amount, uint256 share);
    event LogTransfer(IERC20 indexed token, address indexed from, address indexed to, uint256 share);

    event LogFlashLoan(address indexed borrower, IERC20 indexed token, uint256 amount, uint256 feeAmount, address indexed receiver);

    event LogStrategyTargetPercentage(IERC20 indexed token, uint256 targetPercentage);
    event LogStrategyQueued(IERC20 indexed token, IStrategy indexed strategy);
    event LogStrategySet(IERC20 indexed token, IStrategy indexed strategy);
    event LogStrategyInvest(IERC20 indexed token, uint256 amount);
    event LogStrategyDivest(IERC20 indexed token, uint256 amount);
    event LogStrategyProfit(IERC20 indexed token, uint256 amount);
    event LogStrategyLoss(IERC20 indexed token, uint256 amount);

    // *************** //
    // *** STRUCTS *** //
    // *************** //

    struct StrategyData {
        uint64 strategyStartDate;
        uint64 targetPercentage;
        uint128 balance; // the balance of the strategy that BentoBox thinks is in there
    }

    // ******************************** //
    // *** CONSTANTS AND IMMUTABLES *** //
    // ******************************** //

    // V2 - Can they be private?
    // V2: Private to save gas, to verify it's correct, check the constructor arguments
    IERC20 private immutable wethToken;

    IERC20 private constant USE_ETHEREUM = IERC20(0);
    uint256 private constant FLASH_LOAN_FEE = 50; // 0.05%
    uint256 private constant FLASH_LOAN_FEE_PRECISION = 1e5;
    uint256 private constant STRATEGY_DELAY = 2 weeks;
    uint256 private constant MAX_TARGET_PERCENTAGE = 95; // 95%
    uint256 private constant MINIMUM_SHARE_BALANCE = 1000; // To prevent the ratio going off

    // ***************** //
    // *** VARIABLES *** //
    // ***************** //

    // Balance per token per address/contract in shares
    mapping(IERC20 => mapping(address => uint256)) public balanceOf;

    // Rebase from amount to share
    mapping(IERC20 => Rebase) public totals;

    mapping(IERC20 => IStrategy) public strategy;
    mapping(IERC20 => IStrategy) public pendingStrategy;
    mapping(IERC20 => StrategyData) public strategyData;

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

    constructor(IERC20 wethToken_) public {
        wethToken = wethToken_;
    }

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

    /// Modifier to check if the msg.sender is allowed to use funds belonging to the 'from' address.
    /// If 'from' is msg.sender, it's allowed.
    /// If 'from' is the BentoBox itself, it's allowed. Any ETH, token balances (above the known balances) or BentoBox balances
    /// can be taken by anyone.
    /// This is to enable skimming, not just for deposits, but also for withdrawals or transfers, enabling better composability.
    /// If 'from' is a clone of a masterContract AND the 'from' address has approved that masterContract, it's allowed.
    modifier allowed(address from) {
        if (from != msg.sender && from != address(this)) {
            // From is sender or you are skimming
            address masterContract = masterContractOf[msg.sender];
            require(masterContract != address(0), "BentoBox: no masterContract");
            require(masterContractApproved[masterContract][from], "BentoBox: Transfer not approved");
        }
        _;
    }

    // ************************** //
    // *** INTERNAL FUNCTIONS *** //
    // ************************** //

    /// @dev Returns the total balance of `token` this contracts holds,
    /// plus the total amount this contract thinks the strategy holds.
    function _tokenBalanceOf(IERC20 token) internal view returns (uint256 amount) {
        amount = token.balanceOf(address(this)).add(strategyData[token].balance);
    }

    // ************************ //
    // *** PUBLIC FUNCTIONS *** //
    // ************************ //

    /// @dev Helper function to represent an `amount` of `token` in shares.
    /// @param token The ERC-20 token.
    /// @param amount The `token` amount.
    /// @param roundUp If the result `share` should be rounded up.
    /// @return share The token amount represented in shares.
    function toShare(
        IERC20 token,
        uint256 amount,
        bool roundUp
    ) external view returns (uint256 share) {
        share = totals[token].toBase(amount, roundUp);
    }

    /// @dev Helper function represent shares back into the `token` amount.
    /// @param token The ERC-20 token.
    /// @param share The amount of shares.
    /// @param roundUp If the result should be rounded up.
    /// @return amount The share amount back into native representation.
    function toAmount(
        IERC20 token,
        uint256 share,
        bool roundUp
    ) external view returns (uint256 amount) {
        amount = totals[token].toElastic(share, roundUp);
    }

    /// @notice Deposit an amount of `token` represented in either `amount` or `share`.
    /// @param token_ The ERC-20 token to deposit.
    /// @param from which account to pull the tokens.
    /// @param to which account to push the tokens.
    /// @param amount Token amount in native representation to deposit.
    /// @param share Token amount represented in shares to deposit. Takes precedence over `amount`.
    /// @return amountOut The amount deposited.
    /// @return shareOut The deposited amount repesented in shares.
    function deposit(
        IERC20 token_,
        address from,
        address to,
        uint256 amount,
        uint256 share
    ) public payable allowed(from) returns (uint256 amountOut, uint256 shareOut) {
        // Checks
        require(to != address(0), "BentoBox: to not set"); // To avoid a bad UI from burning funds

        // Effects
        IERC20 token = token_ == USE_ETHEREUM ? wethToken : token_;
        Rebase memory total = totals[token];

        // If a new token gets added, the tokenSupply call checks that this is a deployed contract. Needed for security.
        require(total.elastic != 0 || token.totalSupply() > 0, "BentoBox: No tokens");
        if (share == 0) {
            // value of the share may be lower than the amount due to rounding, that's ok
            share = total.toBase(amount, false);
            // Any deposit should lead to at least the minimum share balance, otherwise it's ignored (no amount taken)
            if (total.base.add(share.to128()) < MINIMUM_SHARE_BALANCE) {
                return (0, 0);
            }
        } else {
            // amount may be lower than the value of share due to rounding, in that case, add 1 to amount (Always round up)
            amount = total.toElastic(share, true);
        }

        // In case of skimming, check that only the skimmable amount is taken.
        // For ETH, the full balance is available, so no need to check.
        // During flashloans the _tokenBalanceOf is lower than 'reality', so skimming deposits will mostly fail during a flashloan.
        require(
            from != address(this) || token_ == USE_ETHEREUM || amount <= _tokenBalanceOf(token).sub(total.elastic),
            "BentoBox: Skim too much"
        );

        balanceOf[token][to] = balanceOf[token][to].add(share);
        total.base = total.base.add(share.to128());
        total.elastic = total.elastic.add(amount.to128());
        totals[token] = total;

        // Interactions
        // During the first deposit, we check that this token is 'real'
        if (token_ == USE_ETHEREUM) {
            // X2 - If there is an error, could it cause a DoS. Like balanceOf causing revert. (SWC-113)
            // X2: If the WETH implementation is faulty or malicious, it will block adding ETH (but we know the WETH implementation)
            IWETH(address(wethToken)).deposit{value: amount}();
        } else if (from != address(this)) {
            // X2 - If there is an error, could it cause a DoS. Like balanceOf causing revert. (SWC-113)
            // X2: If the token implementation is faulty or malicious, it may block adding tokens. Good.
            token.safeTransferFrom(from, address(this), amount);
        }
        emit LogDeposit(token, from, to, amount, share);
        amountOut = amount;
        shareOut = share;
    }

    /// @notice Withdraws an amount of `token` from a user account.
    /// @param token_ The ERC-20 token to withdraw.
    /// @param from which user to pull the tokens.
    /// @param to which user to push the tokens.
    /// @param amount of tokens. Either one of `amount` or `share` needs to be supplied.
    /// @param share Like above, but `share` takes precedence over `amount`.
    function withdraw(
        IERC20 token_,
        address from,
        address to,
        uint256 amount,
        uint256 share
    ) public allowed(from) returns (uint256 amountOut, uint256 shareOut) {
        // Checks
        require(to != address(0), "BentoBox: to not set"); // To avoid a bad UI from burning funds

        // Effects
        IERC20 token = token_ == USE_ETHEREUM ? wethToken : token_;
        Rebase memory total = totals[token];
        if (share == 0) {
            // value of the share paid could be lower than the amount paid due to rounding, in that case, add a share (Always round up)
            share = total.toBase(amount, true);
        } else {
            // amount may be lower than the value of share due to rounding, that's ok
            amount = total.toElastic(share, false);
        }

        balanceOf[token][from] = balanceOf[token][from].sub(share);
        total.elastic = total.elastic.sub(amount.to128());
        total.base = total.base.sub(share.to128());
        // There have to be at least 1000 shares left to prevent reseting the share/amount ratio (unless it's fully emptied)
        require(total.base >= MINIMUM_SHARE_BALANCE || total.base == 0, "BentoBox: cannot empty");
        totals[token] = total;

        // Interactions
        if (token_ == USE_ETHEREUM) {
            // X2, X3: A revert or big gas usage in the WETH contract could block withdrawals, but WETH9 is fine.
            IWETH(address(wethToken)).withdraw(amount);
            // X2, X3: A revert or big gas usage could block, however, the to address is under control of the caller.
            (bool success, ) = to.call{value: amount}("");
            require(success, "BentoBox: ETH transfer failed");
        } else {
            // X2, X3: A malicious token could block withdrawal of just THAT token.
            //         masterContracts may want to take care not to rely on withdraw always succeeding.
            token.safeTransfer(to, amount);
        }
        emit LogWithdraw(token, from, to, amount, share);
        amountOut = amount;
        shareOut = share;
    }

    /// @notice Transfer shares from a user account to another one.
    /// @param token The ERC-20 token to transfer.
    /// @param from which user to pull the tokens.
    /// @param to which user to push the tokens.
    /// @param share The amount of `token` in shares.
    // Clones of master contracts can transfer from any account that has approved them
    // F3 - Can it be combined with another similar function?
    // F3: This isn't combined with transferMultiple for gas optimization
    function transfer(
        IERC20 token,
        address from,
        address to,
        uint256 share
    ) public allowed(from) {
        // Checks
        require(to != address(0), "BentoBox: to not set"); // To avoid a bad UI from burning funds

        // Effects
        balanceOf[token][from] = balanceOf[token][from].sub(share);
        balanceOf[token][to] = balanceOf[token][to].add(share);

        emit LogTransfer(token, from, to, share);
    }

    /// @notice Transfer shares from a user account to multiple other ones.
    /// @param token The ERC-20 token to transfer.
    /// @param from which user to pull the tokens.
    /// @param tos The receivers of the tokens.
    /// @param shares The amount of `token` in shares for each receiver in `tos`.
    // F3 - Can it be combined with another similar function?
    // F3: This isn't combined with transfer for gas optimization
    function transferMultiple(
        IERC20 token,
        address from,
        address[] calldata tos,
        uint256[] calldata shares
    ) public allowed(from) {
        // Checks
        require(tos[0] != address(0), "BentoBox: to[0] not set"); // To avoid a bad UI from burning funds

        // Effects
        uint256 totalAmount;
        uint256 len = tos.length;
        for (uint256 i = 0; i < len; i++) {
            address to = tos[i];
            balanceOf[token][to] = balanceOf[token][to].add(shares[i]);
            totalAmount = totalAmount.add(shares[i]);
            emit LogTransfer(token, from, to, shares[i]);
        }
        balanceOf[token][from] = balanceOf[token][from].sub(totalAmount);
    }

    /// @notice Flashloan ability.
    /// @param borrower The address of the contract that implements and conforms to `IFlashBorrower` and handles the flashloan.
    /// @param receiver Address of the token receiver.
    /// @param token The address of the token to receive.
    /// @param amount of the tokens to receive.
    /// @param data The calldata to pass to the `borrower` contract.
    // F5 - Checks-Effects-Interactions pattern followed? (SWC-107)
    // F5: Not possible to follow this here, reentrancy has been reviewed
    // F6 - Check for front-running possibilities, such as the approve function (SWC-114)
    // F6: Slight grieving possible by withdrawing an amount before someone tries to flashloan close to the full amount.
    function flashLoan(
        IFlashBorrower borrower,
        address receiver,
        IERC20 token,
        uint256 amount,
        bytes calldata data
    ) public {
        uint256 fee = amount.mul(FLASH_LOAN_FEE) / FLASH_LOAN_FEE_PRECISION;
        token.safeTransfer(receiver, amount);

        borrower.onFlashLoan(msg.sender, token, amount, fee, data);

        require(_tokenBalanceOf(token) >= totals[token].addElastic(fee.to128()), "BentoBox: Wrong amount");
        emit LogFlashLoan(address(borrower), token, amount, fee, receiver);
    }

    /// @notice Support for batched flashloans. Useful to request multiple different `tokens` in a single transaction.
    /// @param borrower The address of the contract that implements and conforms to `IBatchFlashBorrower` and handles the flashloan.
    /// @param receivers An array of the token receivers. A one-to-one mapping with `tokens` and `amounts`.
    /// @param tokens The addresses of the tokens.
    /// @param amounts of the tokens for each receiver.
    /// @param data The calldata to pass to the `borrower` contract.
    // F5 - Checks-Effects-Interactions pattern followed? (SWC-107)
    // F5: Not possible to follow this here, reentrancy has been reviewed
    // F6 - Check for front-running possibilities, such as the approve function (SWC-114)
    // F6: Slight grieving possible by withdrawing an amount before someone tries to flashloan close to the full amount.
    function batchFlashLoan(
        IBatchFlashBorrower borrower,
        address[] calldata receivers,
        IERC20[] calldata tokens,
        uint256[] calldata amounts,
        bytes calldata data
    ) public {
        uint256[] memory fees = new uint256[](tokens.length);

        uint256 len = tokens.length;
        for (uint256 i = 0; i < len; i++) {
            uint256 amount = amounts[i];
            fees[i] = amount.mul(FLASH_LOAN_FEE) / FLASH_LOAN_FEE_PRECISION;

            tokens[i].safeTransfer(receivers[i], amounts[i]);
        }

        borrower.onBatchFlashLoan(msg.sender, tokens, amounts, fees, data);

        for (uint256 i = 0; i < len; i++) {
            IERC20 token = tokens[i];
            require(_tokenBalanceOf(token) >= totals[token].addElastic(fees[i].to128()), "BentoBox: Wrong amount");
            emit LogFlashLoan(address(borrower), token, amounts[i], fees[i], receivers[i]);
        }
    }

    /// @notice Sets the target percentage of the strategy for `token`.
    /// @dev Only the owner of this contract is allowed to change this.
    /// @param token The address of the token that maps to a strategy to change.
    /// @param targetPercentage_ The new target in percent. Must be lesser or equal to `MAX_TARGET_PERCENTAGE`.
    function setStrategyTargetPercentage(IERC20 token, uint64 targetPercentage_) public onlyOwner {
        // Checks
        require(targetPercentage_ <= MAX_TARGET_PERCENTAGE, "StrategyManager: Target too high");

        // Effects
        strategyData[token].targetPercentage = targetPercentage_;
        emit LogStrategyTargetPercentage(token, targetPercentage_);
    }

    /// @notice Sets the contract address of a new strategy that conforms to `IStrategy` for `token`.
    /// Must be called twice with the same arguments.
    /// A new strategy becomes pending first and can be activated once `STRATEGY_DELAY` is over.
    /// @dev Only the owner of this contract is allowed to change this.
    /// @param token The address of the token that maps to a strategy to change.
    /// @param newStrategy The address of the contract that conforms to `IStrategy`.
    // F5 - Checks-Effects-Interactions pattern followed? (SWC-107)
    // F5: Total amount is updated AFTER interaction. But strategy is under our control.
    // C4 - Use block.timestamp only for long intervals (SWC-116)
    // C4: block.timestamp is used for a period of 2 weeks, which is long enough
    function setStrategy(IERC20 token, IStrategy newStrategy) public onlyOwner {
        StrategyData memory data = strategyData[token];
        IStrategy pending = pendingStrategy[token];
        if (data.strategyStartDate == 0 || pending != newStrategy) {
            pendingStrategy[token] = newStrategy;
            // C1 - All math done through BoringMath (SWC-101)
            // C1: Our sun will swallow the earth well before this overflows
            data.strategyStartDate = (block.timestamp + STRATEGY_DELAY).to64();
            emit LogStrategyQueued(token, newStrategy);
        } else {
            require(data.strategyStartDate != 0 && block.timestamp >= data.strategyStartDate, "StrategyManager: Too early");
            if (address(strategy[token]) != address(0)) {
                int256 balanceChange = strategy[token].exit(data.balance);
                // Effects
                if (balanceChange > 0) {
                    uint256 add = uint256(balanceChange);
                    totals[token].addElastic(add);
                    emit LogStrategyProfit(token, add);
                } else if (balanceChange < 0) {
                    uint256 sub = uint256(-balanceChange);
                    totals[token].subElastic(sub);
                    emit LogStrategyLoss(token, sub);
                }

                emit LogStrategyDivest(token, data.balance);
            }
            strategy[token] = pending;
            data.strategyStartDate = 0;
            data.balance = 0;
            pendingStrategy[token] = IStrategy(0);
            emit LogStrategySet(token, newStrategy);
        }
        strategyData[token] = data;
    }

    /// @notice The actual process of yield farming. Executes the strategy of `token`.
    /// Optionally does housekeeping if `balance` is true.
    /// `maxChangeAmount` is relevant for skimming or withdrawing if `balance` is true.
    /// @param token The address of the token for which a strategy is deployed.
    /// @param balance True if housekeeping should be done.
    /// @param maxChangeAmount The maximum amount for either pulling or pushing from/to the `IStrategy` contract.
    // F5 - Checks-Effects-Interactions pattern followed? (SWC-107)
    // F5: Total amount is updated AFTER interaction. But strategy is under our control.
    // F5: Not followed to prevent reentrancy issues with flashloans and BentoBox skims?
    function harvest(
        IERC20 token,
        bool balance,
        uint256 maxChangeAmount
    ) public {
        StrategyData memory data = strategyData[token];
        IStrategy _strategy = strategy[token];
        int256 balanceChange = _strategy.harvest(data.balance, msg.sender);
        if (balanceChange == 0 && !balance) {
            return;
        }

        uint256 totalElastic = totals[token].elastic;

        if (balanceChange > 0) {
            uint256 add = uint256(balanceChange);
            totalElastic = totalElastic.add(add);
            totals[token].elastic = totalElastic.to128();
            emit LogStrategyProfit(token, add);
        } else if (balanceChange < 0) {
            // C1 - All math done through BoringMath (SWC-101)
            // C1: balanceChange could overflow if it's max negative int128.
            // But tokens with balances that large are not supported by the BentoBox.
            uint256 sub = uint256(-balanceChange);
            totalElastic = totalElastic.sub(sub);
            totals[token].elastic = totalElastic.to128();
            data.balance = data.balance.sub(sub.to128());
            emit LogStrategyLoss(token, sub);
        }

        if (balance) {
            uint256 targetBalance = totalElastic.mul(data.targetPercentage) / 100;
            // if data.balance == targetBalance there is nothing to update
            if (data.balance < targetBalance) {
                uint256 amountOut = targetBalance.sub(data.balance);
                if (maxChangeAmount != 0 && amountOut > maxChangeAmount) {
                    amountOut = maxChangeAmount;
                }
                token.safeTransfer(address(_strategy), amountOut);
                data.balance = data.balance.add(amountOut.to128());
                _strategy.skim(amountOut);
                emit LogStrategyInvest(token, amountOut);
            } else if (data.balance > targetBalance) {
                uint256 amountIn = data.balance.sub(targetBalance.to128());
                if (maxChangeAmount != 0 && amountIn > maxChangeAmount) {
                    amountIn = maxChangeAmount;
                }

                uint256 actualAmountIn = _strategy.withdraw(amountIn);

                data.balance = data.balance.sub(actualAmountIn.to128());
                emit LogStrategyDivest(token, actualAmountIn);
            }
        }

        strategyData[token] = data;
    }

    // Contract should be able to receive ETH deposits to support deposit & skim
    // solhint-disable-next-line no-empty-blocks
    receive() external payable {}
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"wethToken_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"masterContract","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":true,"internalType":"address","name":"cloneAddress","type":"address"}],"name":"LogDeploy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"LogDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"borrower","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"}],"name":"LogFlashLoan","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"protocol","type":"address"}],"name":"LogRegisterProtocol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"masterContract","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"LogSetMasterContractApproval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogStrategyDivest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogStrategyInvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogStrategyLoss","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogStrategyProfit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"contract IStrategy","name":"strategy","type":"address"}],"name":"LogStrategyQueued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"contract IStrategy","name":"strategy","type":"address"}],"name":"LogStrategySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"targetPercentage","type":"uint256"}],"name":"LogStrategyTargetPercentage","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"LogTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"masterContract","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"LogWhiteListMasterContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"share","type":"uint256"}],"name":"LogWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"calls","type":"bytes[]"},{"internalType":"bool","name":"revertOnFail","type":"bool"}],"name":"batch","outputs":[{"internalType":"bool[]","name":"successes","type":"bool[]"},{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IBatchFlashBorrower","name":"borrower","type":"address"},{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"contract IERC20[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"batchFlashLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"masterContract","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"useCreate2","type":"bool"}],"name":"deploy","outputs":[{"internalType":"address","name":"cloneAddress","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"shareOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IFlashBorrower","name":"borrower","type":"address"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"flashLoan","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"bool","name":"balance","type":"bool"},{"internalType":"uint256","name":"maxChangeAmount","type":"uint256"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"masterContractApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"masterContractOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"pendingStrategy","outputs":[{"internalType":"contract IStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permitToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"registerProtocol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"masterContract","type":"address"},{"internalType":"bool","name":"approved","type":"bool"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"setMasterContractApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"contract IStrategy","name":"newStrategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint64","name":"targetPercentage_","type":"uint64"}],"name":"setStrategyTargetPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"strategy","outputs":[{"internalType":"contract IStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"strategyData","outputs":[{"internalType":"uint64","name":"strategyStartDate","type":"uint64"},{"internalType":"uint64","name":"targetPercentage","type":"uint64"},{"internalType":"uint128","name":"balance","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"},{"internalType":"bool","name":"roundUp","type":"bool"}],"name":"toAmount","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"roundUp","type":"bool"}],"name":"toShare","outputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"totals","outputs":[{"internalType":"uint128","name":"elastic","type":"uint128"},{"internalType":"uint128","name":"base","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"}],"name":"transferMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"renounce","type":"bool"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"masterContract","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"whitelistMasterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedMasterContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"shareOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b5060405162005ae638038062005ae6833981016040819052620000349162000116565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a34660a081905262000084816200009e565b6080525060601b6001600160601b03191660c0526200016a565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667fd7df266aff736d415a9dc14b4158201d612e70d75b9c7f4e375ccfd20aa5166f8330604051602001620000f9949392919062000146565b604051602081830303815290604052805190602001209050919050565b60006020828403121562000128578081fd5b81516001600160a01b03811681146200013f578182fd5b9392505050565b938452602084019290925260408301526001600160a01b0316606082015260800190565b60805160a05160c05160601c61593d620001a9600039806107615280610b3752806129155280612bdb5250806114845250806114b9525061593d6000f3fe6080604052600436106101dc5760003560e01c80637c516e9411610102578063d2423b5111610095578063f1676d3711610064578063f1676d3714610555578063f18d03cc14610575578063f483b3da14610595578063f7888aec146105b5576101e3565b8063d2423b51146104d0578063da5139ca146104f1578063df23b45b14610511578063e30c397814610540576101e3565b806397da6d30116100d157806397da6d301461045b578063aee4d1b21461047b578063bafe4f1414610490578063c0a47c93146104b0576101e3565b80637c516e94146103e65780637ecebe00146104065780638da5cb5b1461042657806391e0eab51461043b576101e3565b80633e2a9d4e1161017a5780635662311811610149578063566231181461036657806366c6bb0b1461038657806372cb5d97146103a6578063733a9d7c146103c6576101e3565b80633e2a9d4e146102e35780634e71e0c8146103035780634ffe34db146103185780635108a55814610346576101e3565b806312a90c8a116101b657806312a90c8a146102545780631f54245b14610281578063228bfd9f146102a15780633644e515146102c1576101e3565b806302b9446c146101e8578063078dfbe7146102125780630fca884314610234576101e3565b366101e357005b600080fd5b6101fb6101f636600461492e565b6105d5565b6040516102099291906157dc565b60405180910390f35b34801561021e57600080fd5b5061023261022d3660046146e2565b610c8c565b005b34801561024057600080fd5b5061023261024f366004614a09565b610e17565b34801561026057600080fd5b5061027461026f3660046145f5565b6111d9565b6040516102099190615068565b61029461028f36600461472c565b6111ee565b6040516102099190614dcc565b3480156102ad57600080fd5b506102946102bc3660046145f5565b611457565b3480156102cd57600080fd5b506102d661147f565b6040516102099190615073565b3480156102ef57600080fd5b506102326102fe366004614b11565b6114df565b34801561030f57600080fd5b50610232611613565b34801561032457600080fd5b506103386103333660046145f5565b6116f9565b6040516102099291906157b9565b34801561035257600080fd5b506102946103613660046145f5565b611735565b34801561037257600080fd5b506102d6610381366004614adb565b61175d565b34801561039257600080fd5b506102326103a1366004614a9b565b6117d4565b3480156103b257600080fd5b506102326103c13660046148cc565b611f89565b3480156103d257600080fd5b506102326103e13660046146b5565b61258d565b3480156103f257600080fd5b50610232610401366004614988565b6126aa565b34801561041257600080fd5b506102d66104213660046145f5565b612744565b34801561043257600080fd5b50610294612756565b34801561044757600080fd5b50610274610456366004614611565b612772565b34801561046757600080fd5b506101fb61047636600461492e565b612792565b34801561048757600080fd5b50610232612d82565b34801561049c57600080fd5b506102946104ab3660046145f5565b612de1565b3480156104bc57600080fd5b506102326104cb366004614649565b612e09565b6104e36104de366004614792565b613262565b604051610209929190614fce565b3480156104fd57600080fd5b506102d661050c366004614adb565b61340e565b34801561051d57600080fd5b5061053161052c3660046145f5565b61347d565b604051610209939291906157ff565b34801561054c57600080fd5b506102946134d2565b34801561056157600080fd5b50610232610570366004614b4a565b6134ee565b34801561058157600080fd5b506102326105903660046148de565b6136c9565b3480156105a157600080fd5b506102326105b03660046147f8565b613923565b3480156105c157600080fd5b506102d66105d03660046148cc565b613c6e565b6000808573ffffffffffffffffffffffffffffffffffffffff81163314801590610615575073ffffffffffffffffffffffffffffffffffffffff81163014155b156106ee573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610680576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff166106ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b73ffffffffffffffffffffffffffffffffffffffff861661073b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615390565b600073ffffffffffffffffffffffffffffffffffffffff89161561075f5788610781565b7f00000000000000000000000000000000000000000000000000000000000000005b905061078b614519565b5073ffffffffffffffffffffffffffffffffffffffff81166000908152600760209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915215158061087c575060008273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a9190614bbb565b115b6108b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906152b4565b8561091c576108c381886000613c8b565b95506103e86108f16108d488613d49565b60208401516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff16101561091757600080945094505050610c81565b61092b565b61092881876001613df1565b96505b73ffffffffffffffffffffffffffffffffffffffff891630141580610964575073ffffffffffffffffffffffffffffffffffffffff8a16155b8061099557508051610991906fffffffffffffffffffffffffffffffff1661098b84613e94565b90613f78565b8711155b6109cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061516a565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600660209081526040808320938c1683529290522054610a089087613fb5565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600660209081526040808320938d1683529290522055610a64610a4787613d49565b60208301516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff166020820152610aa1610a8788613d49565b82516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff908116825273ffffffffffffffffffffffffffffffffffffffff808416600090815260076020908152604090912084518154928601518516700100000000000000000000000000000000029085167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090931692909217909316179091558a16610bbb577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b158015610b9d57600080fd5b505af1158015610bb1573d6000803e3d6000fd5b5050505050610bfa565b73ffffffffffffffffffffffffffffffffffffffff89163014610bfa57610bfa73ffffffffffffffffffffffffffffffffffffffff83168a308a613ff2565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fb2346165e782564f17f5b7e555c21f4fd96fbc93458572bf0113ea35a958fc558a8a604051610c709291906157dc565b60405180910390a486945085935050505b509550959350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b8115610dd15773ffffffffffffffffffffffffffffffffffffffff8316151580610d045750805b610d3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061527d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff85167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155600180549091169055610e12565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555b505050565b8473ffffffffffffffffffffffffffffffffffffffff81163314801590610e54575073ffffffffffffffffffffffffffffffffffffffff81163014155b15610f24573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff16610f22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b600085858281610f3057fe5b9050602002016020810190610f4591906145f5565b73ffffffffffffffffffffffffffffffffffffffff161415610f93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615359565b600084815b81811015611157576000888883818110610fae57fe5b9050602002016020810190610fc391906145f5565b9050611066878784818110610fd457fe5b90506020020135600660008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613fb590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff808d166000908152600660209081526040808320938616835292905220556110be8787848181106110a857fe5b9050602002013585613fb590919063ffffffff16565b93508073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167f6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a8a8a8781811061113257fe5b905060200201356040516111469190615073565b60405180910390a450600101610f98565b5073ffffffffffffffffffffffffffffffffffffffff808a166000908152600660209081526040808320938c16835292905220546111959083613f78565b73ffffffffffffffffffffffffffffffffffffffff998a1660009081526006602090815260408083209b909c16825299909952989097209790975550505050505050565b60046020526000908152604090205460ff1681565b600073ffffffffffffffffffffffffffffffffffffffff851661123d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615544565b606085901b82156112c6576000858560405161125a929190614d76565b604051809103902090506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152816037826000f593505050611322565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528160148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f09250505b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600260205260409081902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938a169390931790925590517f4ddf47d4000000000000000000000000000000000000000000000000000000008152634ddf47d49034906113b5908990899060040161510c565b6000604051808303818588803b1580156113ce57600080fd5b505af11580156113e2573d6000803e3d6000fd5b50505050508173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fd62166f3c2149208e51788b1401cc356bf5da1fc6c7886a32e18570f57d88b3b878760405161144692919061510c565b60405180910390a350949350505050565b60086020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6000467f000000000000000000000000000000000000000000000000000000000000000081146114b7576114b28161415d565b6114d9565b7f00000000000000000000000000000000000000000000000000000000000000005b91505090565b60005473ffffffffffffffffffffffffffffffffffffffff163314611530576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b605f8167ffffffffffffffff161115611575576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061572f565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600a60205260409081902080547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff166801000000000000000067ffffffffffffffff861602179055517f7543af99b5602c06e62da0631b5308489a5ff859150105a623b6eb15e8deae0b906116079084906157ea565b60405180910390a25050565b60015473ffffffffffffffffffffffffffffffffffffffff16338114611665576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061546a565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179055600180549091169055565b6007602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b60096020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff808216835270010000000000000000000000000000000090910416918101919091526117cc908484613df1565b949350505050565b6117dc614530565b5073ffffffffffffffffffffffffffffffffffffffff8381166000818152600a602090815260408083208151606081018352905467ffffffffffffffff8082168352680100000000000000008204168285015270010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16818301908152948452600890925280832054935190517f18fccc760000000000000000000000000000000000000000000000000000000081529194939093169283916318fccc76916118ab913390600401615781565b602060405180830381600087803b1580156118c557600080fd5b505af11580156118d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118fd9190614bbb565b90508015801561190b575084155b1561191857505050610e12565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600760205260408120546fffffffffffffffffffffffffffffffff1690821315611a1257816119638282613fb5565b915061196e82613d49565b73ffffffffffffffffffffffffffffffffffffffff89166000818152600760205260409081902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff949094169390931790925590517f911c9f20a03edabcbcbd18dca1174cce47a91b234ced7a5a3c60ba0d5b56c5d290611a04908490615073565b60405180910390a250611b2d565b6000821215611b2d576000829003611a2a8282613f78565b9150611a3582613d49565b73ffffffffffffffffffffffffffffffffffffffff8916600090815260076020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055611ac2611aa582613d49565b60408701516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff166040808701919091525173ffffffffffffffffffffffffffffffffffffffff8916907f8f1f26eb9b6aa8689dbdd519ead1999d9c8819d4738e403b2003b18197d9cf9790611b23908490615073565b60405180910390a2505b8515611eb15760006064611b58866020015167ffffffffffffffff168461422690919063ffffffff16565b81611b5f57fe5b0490508085604001516fffffffffffffffffffffffffffffffff161015611cfe576000611bab86604001516fffffffffffffffffffffffffffffffff1683613f7890919063ffffffff16565b90508615801590611bbb57508681115b15611bc35750855b611be473ffffffffffffffffffffffffffffffffffffffff8a168683614277565b611c0d611bf082613d49565b60408801516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff16604080880191909152517f6939aaf500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff861690636939aaf590611c78908490600401615073565b600060405180830381600087803b158015611c9257600080fd5b505af1158015611ca6573d6000803e3d6000fd5b505050508873ffffffffffffffffffffffffffffffffffffffff167fb18e7e4f6eac147a63a3bb6beb2d9039c88698623aff3efc4febbc20b0164ee582604051611cf09190615073565b60405180910390a250611eaf565b8085604001516fffffffffffffffffffffffffffffffff161115611eaf576000611d47611d2a83613d49565b60408801516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff1690508615801590611d6957508681115b15611d715750855b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff871690632e1a7d4d90611dc6908590600401615073565b602060405180830381600087803b158015611de057600080fd5b505af1158015611df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e189190614bbb565b9050611e43611e2682613d49565b60408901516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff166040808901919091525173ffffffffffffffffffffffffffffffffffffffff8b16907f39aa22060f8dd4d291720311feedf3b72fef47c06c66ccf5c22b502c62e7550a90611ea4908490615073565b60405180910390a250505b505b50505073ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020908152604091829020835181549285015193909401516fffffffffffffffffffffffffffffffff9081167001000000000000000000000000000000000267ffffffffffffffff94851668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff959096167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941693909317939093169390931791909116179055505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b611fe2614530565b5073ffffffffffffffffffffffffffffffffffffffff8281166000818152600a602090815260408083208151606081018352905467ffffffffffffffff80821683526801000000000000000082048116838601527001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16828401529484526009909252909120548151919316911615806120ac57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156121695773ffffffffffffffffffffffffffffffffffffffff848116600090815260096020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169185169190911790556121126212750042016143df565b67ffffffffffffffff16825260405173ffffffffffffffffffffffffffffffffffffffff80851691908616907f6f7ccdf3f86039e5a1dcf6028bf7b4773cbf7a234716ba2e5392b12bb0f8558f90600090a36124b9565b815167ffffffffffffffff161580159061218e5750815167ffffffffffffffff164210155b6121c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153c7565b73ffffffffffffffffffffffffffffffffffffffff848116600090815260086020526040902054161561241d5773ffffffffffffffffffffffffffffffffffffffff808516600090815260086020526040808220548582015191517f7f8661a100000000000000000000000000000000000000000000000000000000815292931691637f8661a19161225891600401615764565b602060405180830381600087803b15801561227257600080fd5b505af1158015612286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122aa9190614bbb565b9050600081131561233b5773ffffffffffffffffffffffffffffffffffffffff8516600090815260076020526040902081906122e69082614423565b508573ffffffffffffffffffffffffffffffffffffffff167f911c9f20a03edabcbcbd18dca1174cce47a91b234ced7a5a3c60ba0d5b56c5d28260405161232d9190615073565b60405180910390a2506123c9565b60008112156123c95773ffffffffffffffffffffffffffffffffffffffff8516600090815260076020526040812090829003906123789082614491565b508573ffffffffffffffffffffffffffffffffffffffff167f8f1f26eb9b6aa8689dbdd519ead1999d9c8819d4738e403b2003b18197d9cf97826040516123bf9190615073565b60405180910390a2505b8473ffffffffffffffffffffffffffffffffffffffff167f39aa22060f8dd4d291720311feedf3b72fef47c06c66ccf5c22b502c62e7550a84604001516040516124139190615764565b60405180910390a2505b73ffffffffffffffffffffffffffffffffffffffff808516600081815260086020908152604080832080548688167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091558388528782018490528484526009909252808320805490921690915551928616927f03e6352a885adc4cc54767592939c3b1bbd65685658c3beaaba66a888120e2179190a35b5073ffffffffffffffffffffffffffffffffffffffff929092166000908152600a6020908152604091829020845181549286015193909501517fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090921667ffffffffffffffff958616177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000009590931694909402919091176fffffffffffffffffffffffffffffffff90811670010000000000000000000000000000000091909216021790915550565b60005473ffffffffffffffffffffffffffffffffffffffff1633146125de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b73ffffffffffffffffffffffffffffffffffffffff821661262b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906151a1565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600460205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016841515179055517f31a1e0eac44b54ac6c2a2efa87e92c83405ffcf33fceef02a7bca695130e260090611607908490615068565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169063d505accf90612708908a908a908a908a908a908a908a90600401614f5a565b600060405180830381600087803b15801561272257600080fd5b505af1158015612736573d6000803e3d6000fd5b505050505050505050505050565b60056020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600360209081526000928352604080842090915290825290205460ff1681565b6000808573ffffffffffffffffffffffffffffffffffffffff811633148015906127d2575073ffffffffffffffffffffffffffffffffffffffff81163014155b156128a2573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680612834576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff166128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b73ffffffffffffffffffffffffffffffffffffffff86166128ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615390565b600073ffffffffffffffffffffffffffffffffffffffff8916156129135788612935565b7f00000000000000000000000000000000000000000000000000000000000000005b905061293f614519565b5073ffffffffffffffffffffffffffffffffffffffff81166000908152600760209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff80821684527001000000000000000000000000000000009091041690820152856129ba576129b381886001613c8b565b95506129c9565b6129c681876000613df1565b96505b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600660209081526040808320938d1683529290522054612a069087613f78565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600660209081526040808320938e1683529290522055612a5f612a4588613d49565b82516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff168152612a9c612a7f87613d49565b60208301516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff16602082018190526103e8111580612ad9575060208101516fffffffffffffffffffffffffffffffff16155b612b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615246565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260076020908152604090912083518154928501517fffffffffffffffffffffffffffffffff000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff91821617811670010000000000000000000000000000000091909316029190911790558a16612ceb576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90612c10908a90600401615073565b600060405180830381600087803b158015612c2a57600080fd5b505af1158015612c3e573d6000803e3d6000fd5b5050505060008873ffffffffffffffffffffffffffffffffffffffff1688604051612c6890614dc9565b60006040518083038185875af1925050503d8060008114612ca5576040519150601f19603f3d011682016040523d82523d6000602084013e612caa565b606091505b5050905080612ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906156c1565b50612d0c565b612d0c73ffffffffffffffffffffffffffffffffffffffff83168989614277565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fad9ab9ee6953d4d177f4a03b3a3ac3178ffcb9816319f348060194aa76b144868a8a604051610c709291906157dc565b3360008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055517fdfb44ffabf0d3a8f650d3ce43eff98f6d050e7ea1a396d5794f014e7dadabacb9190a2565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff8516612e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615579565b81158015612e62575080155b8015612e6f575060ff8316155b15612f865773ffffffffffffffffffffffffffffffffffffffff86163314612ec3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906151d8565b73ffffffffffffffffffffffffffffffffffffffff8681166000908152600260205260409020541615612f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906154d6565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604090205460ff16612f81576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061568a565b6131c3565b73ffffffffffffffffffffffffffffffffffffffff8616612fd3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061561c565b60006040518060400160405280600281526020017f190100000000000000000000000000000000000000000000000000000000000081525061301361147f565b7f1962bc9f5484cb7a998701b81090e966ee1fce5771af884cceee7c081b14ade28761305f577fb426802f1f7dc850a7b6b38805edea2442f3992878a9ab985abfe8091d95d0b1613081565b7f422ac5323fe049241dee67716229a1cc1bc7b313b23dfe3ef6d42ab177a3b2845b73ffffffffffffffffffffffffffffffffffffffff8b1660009081526005602090815260409182902080546001810190915591516130c89493928e928e928e92910161507c565b604051602081830303815290604052805190602001206040516020016130f093929190614da2565b60405160208183030381529060405280519060200120905060006001828686866040516000815260200160405260405161312d94939291906150ee565b6020604051602081039080840390855afa15801561314f573d6000803e3d6000fd5b5050506020604051035190508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146131c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061550d565b50505b73ffffffffffffffffffffffffffffffffffffffff8581166000818152600360209081526040808320948b16808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016881515179055517f5f6ebb64ba012a851c6f014e6cad458ddf213d1512049b31cd06365c2b05925790613252908890615068565b60405180910390a3505050505050565b6060808367ffffffffffffffff8111801561327c57600080fd5b506040519080825280602002602001820160405280156132a6578160200160208202803683370190505b5091508367ffffffffffffffff811180156132c057600080fd5b506040519080825280602002602001820160405280156132f457816020015b60608152602001906001900390816132df5790505b50905060005b8481101561340557600060603088888581811061331357fe5b90506020028101906133259190615835565b604051613333929190614d76565b600060405180830381855af49150503d806000811461336e576040519150601f19603f3d011682016040523d82523d6000602084013e613373565b606091505b50915091508180613382575085155b61338b826144b9565b906133c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779190615120565b50818584815181106133d157fe5b602002602001019015159081151581525050808484815181106133f057fe5b602090810291909101015250506001016132fa565b50935093915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff808216835270010000000000000000000000000000000090910416918101919091526117cc908484613c8b565b600a6020526000908152604090205467ffffffffffffffff808216916801000000000000000081049091169070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1683565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000620186a06134ff856032614226565b8161350657fe5b04905061352a73ffffffffffffffffffffffffffffffffffffffff86168786614277565b6040517f23e30c8b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8816906323e30c8b906135869033908990899087908a908a90600401614ed7565b600060405180830381600087803b1580156135a057600080fd5b505af11580156135b4573d6000803e3d6000fd5b505050506136016135c482613d49565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600760205260409020906fffffffffffffffffffffffffffffffff16614423565b61360a86613e94565b1015613642576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615653565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167f3be9b85936d5d30a1655ea116a17ee3d827b2cd428cc026ce5bf2ac46a22320487856040516136b89291906157dc565b60405180910390a450505050505050565b8273ffffffffffffffffffffffffffffffffffffffff81163314801590613706575073ffffffffffffffffffffffffffffffffffffffff81163014155b156137d6573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680613768576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff166137d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b73ffffffffffffffffffffffffffffffffffffffff8316613823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615390565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600660209081526040808320938816835292905220546138609083613f78565b73ffffffffffffffffffffffffffffffffffffffff8681166000908152600660209081526040808320898516845290915280822093909355908516815220546138a99083613fb5565b73ffffffffffffffffffffffffffffffffffffffff80871660008181526006602090815260408083208986168085529252918290209490945551918716917f6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a90613914908790615073565b60405180910390a45050505050565b60608567ffffffffffffffff8111801561393c57600080fd5b50604051908082528060200260200182016040528015613966578160200160208202803683370190505b5090508560005b81811015613a4257600087878381811061398357fe5b905060200201359050620186a06139a460328361422690919063ffffffff16565b816139ab57fe5b048483815181106139b857fe5b602002602001018181525050613a398c8c848181106139d357fe5b90506020020160208101906139e891906145f5565b8989858181106139f457fe5b905060200201358c8c86818110613a0757fe5b9050602002016020810190613a1c91906145f5565b73ffffffffffffffffffffffffffffffffffffffff169190614277565b5060010161396d565b506040517fd9d1762300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c169063d9d1762390613aa39033908c908c908c908c908a908d908d90600401614ded565b600060405180830381600087803b158015613abd57600080fd5b505af1158015613ad1573d6000803e3d6000fd5b5050505060005b81811015612736576000898983818110613aee57fe5b9050602002016020810190613b0391906145f5565b9050613b61613b24858481518110613b1757fe5b6020026020010151613d49565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600760205260409020906fffffffffffffffffffffffffffffffff16614423565b613b6a82613e94565b1015613ba2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615653565b8b8b83818110613bae57fe5b9050602002016020810190613bc391906145f5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168e73ffffffffffffffffffffffffffffffffffffffff167f3be9b85936d5d30a1655ea116a17ee3d827b2cd428cc026ce5bf2ac46a2232048b8b87818110613c3457fe5b90506020020135888781518110613c4757fe5b6020026020010151604051613c5d9291906157dc565b60405180910390a450600101613ad8565b600660209081526000928352604080842090915290825290205481565b82516000906fffffffffffffffffffffffffffffffff16613cad575081613d42565b835160208501516fffffffffffffffffffffffffffffffff91821691613cd591869116614226565b81613cdc57fe5b049050818015613d3257508284602001516fffffffffffffffffffffffffffffffff16613d2886600001516fffffffffffffffffffffffffffffffff168461422690919063ffffffff16565b81613d2f57fe5b04105b15613d42576117cc816001613fb5565b9392505050565b60006fffffffffffffffffffffffffffffffff821115613d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906152eb565b5090565b8181016fffffffffffffffffffffffffffffffff8083169082161015613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615322565b92915050565b600083602001516fffffffffffffffffffffffffffffffff1660001415613e19575081613d42565b602084015184516fffffffffffffffffffffffffffffffff91821691613e4191869116614226565b81613e4857fe5b049050818015613d3257508284600001516fffffffffffffffffffffffffffffffff16613d2886602001516fffffffffffffffffffffffffffffffff168461422690919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff81166000818152600a60205260408082205490517f70a082310000000000000000000000000000000000000000000000000000000081529192613deb927001000000000000000000000000000000009092046fffffffffffffffffffffffffffffffff16916370a0823190613f22903090600401614dcc565b60206040518083038186803b158015613f3a57600080fd5b505afa158015613f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f729190614bbb565b90613fb5565b80820382811115613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615133565b81810181811015613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615322565b600060608573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b86868660405160240161402a93929190614f29565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516140b39190614d86565b6000604051808303816000865af19150503d80600081146140f0576040519150601f19603f3d011682016040523d82523d6000602084013e6140f5565b606091505b509150915081801561411f57508051158061411f57508080602001905181019061411f91906147dc565b614155576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155e7565b505050505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667fd7df266aff736d415a9dc14b4158201d612e70d75b9c7f4e375ccfd20aa5166f83306040516020016141b694939291906150bd565b6040516020818303038152906040528051906020012090505b919050565b8082036fffffffffffffffffffffffffffffffff8084169082161115613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615133565b60008115806142415750508082028282828161423e57fe5b04145b613deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906156f8565b600060608473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b85856040516024016142ad929190614fa8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516143369190614d86565b6000604051808303816000865af19150503d8060008114614373576040519150601f19603f3d011682016040523d82523d6000602084013e614378565b606091505b50915091508180156143a25750805115806143a25750808060200190518101906143a291906147dc565b6143d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061520f565b5050505050565b600067ffffffffffffffff821115613d95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061549f565b600061444b61443183613d49565b84546fffffffffffffffffffffffffffffffff1690613d99565b83547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff919091169081179093555090919050565b600061444b61449f83613d49565b84546fffffffffffffffffffffffffffffffff16906141d4565b60606044825110156144ff575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c7900000060208201526141cf565b60048201915081806020019051810190613deb9190614bd3565b604080518082019091526000808252602082015290565b604080516060810182526000808252602082018190529181019190915290565b60008083601f840112614561578182fd5b50813567ffffffffffffffff811115614578578182fd5b602083019150836020808302850101111561459257600080fd5b9250929050565b60008083601f8401126145aa578182fd5b50813567ffffffffffffffff8111156145c1578182fd5b60208301915083602082850101111561459257600080fd5b8035613deb816158d4565b803560ff81168114613deb57600080fd5b600060208284031215614606578081fd5b8135613d42816158d4565b60008060408385031215614623578081fd5b823561462e816158d4565b9150602083013561463e816158d4565b809150509250929050565b60008060008060008060c08789031215614661578182fd5b863561466c816158d4565b9550602087013561467c816158d4565b9450604087013561468c816158f9565b935061469b88606089016145e4565b92506080870135915060a087013590509295509295509295565b600080604083850312156146c7578182fd5b82356146d2816158d4565b9150602083013561463e816158f9565b6000806000606084860312156146f6578283fd5b8335614701816158d4565b92506020840135614711816158f9565b91506040840135614721816158f9565b809150509250925092565b60008060008060608587031215614741578384fd5b843561474c816158d4565b9350602085013567ffffffffffffffff811115614767578384fd5b61477387828801614599565b9094509250506040850135614787816158f9565b939692955090935050565b6000806000604084860312156147a6578081fd5b833567ffffffffffffffff8111156147bc578182fd5b6147c886828701614550565b9094509250506020840135614721816158f9565b6000602082840312156147ed578081fd5b8151613d42816158f9565b600080600080600080600080600060a08a8c031215614815578687fd5b8935614820816158d4565b985060208a013567ffffffffffffffff8082111561483c578889fd5b6148488d838e01614550565b909a50985060408c0135915080821115614860578485fd5b61486c8d838e01614550565b909850965060608c0135915080821115614884578485fd5b6148908d838e01614550565b909650945060808c01359150808211156148a8578384fd5b506148b58c828d01614599565b915080935050809150509295985092959850929598565b60008060408385031215614623578182fd5b600080600080608085870312156148f3578182fd5b84356148fe816158d4565b9350602085013561490e816158d4565b9250604085013561491e816158d4565b9396929550929360600135925050565b600080600080600060a08688031215614945578283fd5b8535614950816158d4565b94506020860135614960816158d4565b93506040860135614970816158d4565b94979396509394606081013594506080013592915050565b600080600080600080600080610100898b0312156149a4578182fd5b88356149af816158d4565b975060208901356149bf816158d4565b965060408901356149cf816158d4565b955060608901359450608089013593506149ec8a60a08b016145e4565b925060c0890135915060e089013590509295985092959890939650565b60008060008060008060808789031215614a21578384fd5b8635614a2c816158d4565b95506020870135614a3c816158d4565b9450604087013567ffffffffffffffff80821115614a58578586fd5b614a648a838b01614550565b90965094506060890135915080821115614a7c578384fd5b50614a8989828a01614550565b979a9699509497509295939492505050565b600080600060608486031215614aaf578081fd5b8335614aba816158d4565b92506020840135614aca816158f9565b929592945050506040919091013590565b600080600060608486031215614aef578081fd5b8335614afa816158d4565b9250602084013591506040840135614721816158f9565b60008060408385031215614b23578182fd5b8235614b2e816158d4565b9150602083013567ffffffffffffffff8116811461463e578182fd5b60008060008060008060a08789031215614b62578384fd5b8635614b6d816158d4565b95506020870135614b7d816158d4565b94506040870135614b8d816158d4565b935060608701359250608087013567ffffffffffffffff811115614baf578283fd5b614a8989828a01614599565b600060208284031215614bcc578081fd5b5051919050565b600060208284031215614be4578081fd5b815167ffffffffffffffff80821115614bfb578283fd5b818401915084601f830112614c0e578283fd5b815181811115614c1c578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715614c5a578586fd5b604052818152838201602001871015614c71578485fd5b614c828260208301602087016158a4565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff16815260200190565b6000815180845260208085019450808401835b83811015614cd957815187529582019590820190600101614cbd565b509495945050505050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60008151808452614d448160208601602086016158a4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000828483379101908152919050565b60008251614d988184602087016158a4565b9190910192915050565b60008451614db48184602089016158a4565b91909101928352506020820152604001919050565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600060a0820173ffffffffffffffffffffffffffffffffffffffff8b168352602060a08185015281614e1f8b84615073565b90508b9250835b8b811015614e5157828401614e4483614e3f83886145d9565b614c8c565b9094509150600101614e26565b508481036040860152614e648982615073565b9250507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff881115614e93578283fd5b8702614ea081838b615898565b018281036060840152614eb38187614caa565b90508281036080840152614ec8818587614ce4565b9b9a5050505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808916835280881660208401525085604083015284606083015260a06080830152614f1d60a083018486614ce4565b98975050505050505050565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff97881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b82811015615009578151151584529284019290840190600101614feb565b505050838103828501528085516150208184615073565b91508192508381028201848801865b83811015615059578583038552615047838351614d2c565b9487019492509086019060010161502f565b50909998505050505050505050565b901515815260200190565b90815260200190565b958652602086019490945273ffffffffffffffffffffffffffffffffffffffff9283166040860152911660608401521515608083015260a082015260c00190565b9384526020840192909252604083015273ffffffffffffffffffffffffffffffffffffffff16606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526117cc602083018486614ce4565b600060208252613d426020830184614d2c565b60208082526015908201527f426f72696e674d6174683a20556e646572666c6f770000000000000000000000604082015260600190565b60208082526017908201527f42656e746f426f783a20536b696d20746f6f206d756368000000000000000000604082015260600190565b6020808252601c908201527f4d6173746572434d67723a2043616e6e6f7420617070726f7665203000000000604082015260600190565b6020808252601b908201527f4d6173746572434d67723a2075736572206e6f742073656e6465720000000000604082015260600190565b6020808252601c908201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604082015260600190565b60208082526016908201527f42656e746f426f783a2063616e6e6f7420656d70747900000000000000000000604082015260600190565b60208082526015908201527f4f776e61626c653a207a65726f20616464726573730000000000000000000000604082015260600190565b60208082526013908201527f42656e746f426f783a204e6f20746f6b656e7300000000000000000000000000604082015260600190565b6020808252601c908201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604082015260600190565b60208082526018908201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604082015260600190565b60208082526017908201527f42656e746f426f783a20746f5b305d206e6f7420736574000000000000000000604082015260600190565b60208082526014908201527f42656e746f426f783a20746f206e6f7420736574000000000000000000000000604082015260600190565b6020808252601a908201527f53747261746567794d616e616765723a20546f6f206561726c79000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f42656e746f426f783a205472616e73666572206e6f7420617070726f76656400604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604082015260600190565b6020808252601b908201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604082015260600190565b60208082526019908201527f4d6173746572434d67723a207573657220697320636c6f6e6500000000000000604082015260600190565b6020808252601d908201527f4d6173746572434d67723a20496e76616c6964205369676e6174757265000000604082015260600190565b6020808252818101527f426f72696e67466163746f72793a204e6f206d6173746572436f6e7472616374604082015260600190565b6020808252601b908201527f4d6173746572434d67723a206d617374657243206e6f74207365740000000000604082015260600190565b6020808252601b908201527f42656e746f426f783a206e6f206d6173746572436f6e74726163740000000000604082015260600190565b6020808252818101527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604082015260600190565b6020808252601c908201527f4d6173746572434d67723a20557365722063616e6e6f74206265203000000000604082015260600190565b60208082526016908201527f42656e746f426f783a2057726f6e6720616d6f756e7400000000000000000000604082015260600190565b6020808252601b908201527f4d6173746572434d67723a206e6f742077686974656c69737465640000000000604082015260600190565b6020808252601d908201527f42656e746f426f783a20455448207472616e73666572206661696c6564000000604082015260600190565b60208082526018908201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604082015260600190565b6020808252818101527f53747261746567794d616e616765723a2054617267657420746f6f2068696768604082015260600190565b6fffffffffffffffffffffffffffffffff91909116815260200190565b6fffffffffffffffffffffffffffffffff92909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6fffffffffffffffffffffffffffffffff92831681529116602082015260400190565b918252602082015260400190565b67ffffffffffffffff91909116815260200190565b67ffffffffffffffff93841681529190921660208201526fffffffffffffffffffffffffffffffff909116604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615869578283fd5b83018035915067ffffffffffffffff821115615883578283fd5b60200191503681900382131561459257600080fd5b82818337506000910152565b60005b838110156158bf5781810151838201526020016158a7565b838111156158ce576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff811681146158f657600080fd5b50565b80151581146158f657600080fdfea26469706673582212205bbcf1ebeff11b17baa42fd02fda16d98bfe0bee5e52a5d3661b8cfc72b81ec964736f6c634300060c0033000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d

Deployed Bytecode

0x6080604052600436106101dc5760003560e01c80637c516e9411610102578063d2423b5111610095578063f1676d3711610064578063f1676d3714610555578063f18d03cc14610575578063f483b3da14610595578063f7888aec146105b5576101e3565b8063d2423b51146104d0578063da5139ca146104f1578063df23b45b14610511578063e30c397814610540576101e3565b806397da6d30116100d157806397da6d301461045b578063aee4d1b21461047b578063bafe4f1414610490578063c0a47c93146104b0576101e3565b80637c516e94146103e65780637ecebe00146104065780638da5cb5b1461042657806391e0eab51461043b576101e3565b80633e2a9d4e1161017a5780635662311811610149578063566231181461036657806366c6bb0b1461038657806372cb5d97146103a6578063733a9d7c146103c6576101e3565b80633e2a9d4e146102e35780634e71e0c8146103035780634ffe34db146103185780635108a55814610346576101e3565b806312a90c8a116101b657806312a90c8a146102545780631f54245b14610281578063228bfd9f146102a15780633644e515146102c1576101e3565b806302b9446c146101e8578063078dfbe7146102125780630fca884314610234576101e3565b366101e357005b600080fd5b6101fb6101f636600461492e565b6105d5565b6040516102099291906157dc565b60405180910390f35b34801561021e57600080fd5b5061023261022d3660046146e2565b610c8c565b005b34801561024057600080fd5b5061023261024f366004614a09565b610e17565b34801561026057600080fd5b5061027461026f3660046145f5565b6111d9565b6040516102099190615068565b61029461028f36600461472c565b6111ee565b6040516102099190614dcc565b3480156102ad57600080fd5b506102946102bc3660046145f5565b611457565b3480156102cd57600080fd5b506102d661147f565b6040516102099190615073565b3480156102ef57600080fd5b506102326102fe366004614b11565b6114df565b34801561030f57600080fd5b50610232611613565b34801561032457600080fd5b506103386103333660046145f5565b6116f9565b6040516102099291906157b9565b34801561035257600080fd5b506102946103613660046145f5565b611735565b34801561037257600080fd5b506102d6610381366004614adb565b61175d565b34801561039257600080fd5b506102326103a1366004614a9b565b6117d4565b3480156103b257600080fd5b506102326103c13660046148cc565b611f89565b3480156103d257600080fd5b506102326103e13660046146b5565b61258d565b3480156103f257600080fd5b50610232610401366004614988565b6126aa565b34801561041257600080fd5b506102d66104213660046145f5565b612744565b34801561043257600080fd5b50610294612756565b34801561044757600080fd5b50610274610456366004614611565b612772565b34801561046757600080fd5b506101fb61047636600461492e565b612792565b34801561048757600080fd5b50610232612d82565b34801561049c57600080fd5b506102946104ab3660046145f5565b612de1565b3480156104bc57600080fd5b506102326104cb366004614649565b612e09565b6104e36104de366004614792565b613262565b604051610209929190614fce565b3480156104fd57600080fd5b506102d661050c366004614adb565b61340e565b34801561051d57600080fd5b5061053161052c3660046145f5565b61347d565b604051610209939291906157ff565b34801561054c57600080fd5b506102946134d2565b34801561056157600080fd5b50610232610570366004614b4a565b6134ee565b34801561058157600080fd5b506102326105903660046148de565b6136c9565b3480156105a157600080fd5b506102326105b03660046147f8565b613923565b3480156105c157600080fd5b506102d66105d03660046148cc565b613c6e565b6000808573ffffffffffffffffffffffffffffffffffffffff81163314801590610615575073ffffffffffffffffffffffffffffffffffffffff81163014155b156106ee573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610680576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff166106ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b73ffffffffffffffffffffffffffffffffffffffff861661073b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615390565b600073ffffffffffffffffffffffffffffffffffffffff89161561075f5788610781565b7f000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d5b905061078b614519565b5073ffffffffffffffffffffffffffffffffffffffff81166000908152600760209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff808216808552700100000000000000000000000000000000909204169183019190915215158061087c575060008273ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084257600080fd5b505afa158015610856573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087a9190614bbb565b115b6108b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906152b4565b8561091c576108c381886000613c8b565b95506103e86108f16108d488613d49565b60208401516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff16101561091757600080945094505050610c81565b61092b565b61092881876001613df1565b96505b73ffffffffffffffffffffffffffffffffffffffff891630141580610964575073ffffffffffffffffffffffffffffffffffffffff8a16155b8061099557508051610991906fffffffffffffffffffffffffffffffff1661098b84613e94565b90613f78565b8711155b6109cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061516a565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600660209081526040808320938c1683529290522054610a089087613fb5565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600660209081526040808320938d1683529290522055610a64610a4787613d49565b60208301516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff166020820152610aa1610a8788613d49565b82516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff908116825273ffffffffffffffffffffffffffffffffffffffff808416600090815260076020908152604090912084518154928601518516700100000000000000000000000000000000029085167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090931692909217909316179091558a16610bbb577f000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b158015610b9d57600080fd5b505af1158015610bb1573d6000803e3d6000fd5b5050505050610bfa565b73ffffffffffffffffffffffffffffffffffffffff89163014610bfa57610bfa73ffffffffffffffffffffffffffffffffffffffff83168a308a613ff2565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fb2346165e782564f17f5b7e555c21f4fd96fbc93458572bf0113ea35a958fc558a8a604051610c709291906157dc565b60405180910390a486945085935050505b509550959350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b8115610dd15773ffffffffffffffffffffffffffffffffffffffff8316151580610d045750805b610d3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061527d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808716939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff85167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155600180549091169055610e12565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85161790555b505050565b8473ffffffffffffffffffffffffffffffffffffffff81163314801590610e54575073ffffffffffffffffffffffffffffffffffffffff81163014155b15610f24573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680610eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff16610f22576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b600085858281610f3057fe5b9050602002016020810190610f4591906145f5565b73ffffffffffffffffffffffffffffffffffffffff161415610f93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615359565b600084815b81811015611157576000888883818110610fae57fe5b9050602002016020810190610fc391906145f5565b9050611066878784818110610fd457fe5b90506020020135600660008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613fb590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff808d166000908152600660209081526040808320938616835292905220556110be8787848181106110a857fe5b9050602002013585613fb590919063ffffffff16565b93508073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167f6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a8a8a8781811061113257fe5b905060200201356040516111469190615073565b60405180910390a450600101610f98565b5073ffffffffffffffffffffffffffffffffffffffff808a166000908152600660209081526040808320938c16835292905220546111959083613f78565b73ffffffffffffffffffffffffffffffffffffffff998a1660009081526006602090815260408083209b909c16825299909952989097209790975550505050505050565b60046020526000908152604090205460ff1681565b600073ffffffffffffffffffffffffffffffffffffffff851661123d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615544565b606085901b82156112c6576000858560405161125a929190614d76565b604051809103902090506040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152816037826000f593505050611322565b6040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528160148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f09250505b73ffffffffffffffffffffffffffffffffffffffff8281166000818152600260205260409081902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938a169390931790925590517f4ddf47d4000000000000000000000000000000000000000000000000000000008152634ddf47d49034906113b5908990899060040161510c565b6000604051808303818588803b1580156113ce57600080fd5b505af11580156113e2573d6000803e3d6000fd5b50505050508173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fd62166f3c2149208e51788b1401cc356bf5da1fc6c7886a32e18570f57d88b3b878760405161144692919061510c565b60405180910390a350949350505050565b60086020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6000467f000000000000000000000000000000000000000000000000000000000000006481146114b7576114b28161415d565b6114d9565b7f4874b80ea7e58e13eeca779aa561dcf0428f1e0e079d0d53bbecdce8bb4a87885b91505090565b60005473ffffffffffffffffffffffffffffffffffffffff163314611530576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b605f8167ffffffffffffffff161115611575576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061572f565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600a60205260409081902080547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff166801000000000000000067ffffffffffffffff861602179055517f7543af99b5602c06e62da0631b5308489a5ff859150105a623b6eb15e8deae0b906116079084906157ea565b60405180910390a25050565b60015473ffffffffffffffffffffffffffffffffffffffff16338114611665576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061546a565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff9092167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179055600180549091169055565b6007602052600090815260409020546fffffffffffffffffffffffffffffffff8082169170010000000000000000000000000000000090041682565b60096020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff808216835270010000000000000000000000000000000090910416918101919091526117cc908484613df1565b949350505050565b6117dc614530565b5073ffffffffffffffffffffffffffffffffffffffff8381166000818152600a602090815260408083208151606081018352905467ffffffffffffffff8082168352680100000000000000008204168285015270010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff16818301908152948452600890925280832054935190517f18fccc760000000000000000000000000000000000000000000000000000000081529194939093169283916318fccc76916118ab913390600401615781565b602060405180830381600087803b1580156118c557600080fd5b505af11580156118d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118fd9190614bbb565b90508015801561190b575084155b1561191857505050610e12565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600760205260408120546fffffffffffffffffffffffffffffffff1690821315611a1257816119638282613fb5565b915061196e82613d49565b73ffffffffffffffffffffffffffffffffffffffff89166000818152600760205260409081902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff949094169390931790925590517f911c9f20a03edabcbcbd18dca1174cce47a91b234ced7a5a3c60ba0d5b56c5d290611a04908490615073565b60405180910390a250611b2d565b6000821215611b2d576000829003611a2a8282613f78565b9150611a3582613d49565b73ffffffffffffffffffffffffffffffffffffffff8916600090815260076020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055611ac2611aa582613d49565b60408701516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff166040808701919091525173ffffffffffffffffffffffffffffffffffffffff8916907f8f1f26eb9b6aa8689dbdd519ead1999d9c8819d4738e403b2003b18197d9cf9790611b23908490615073565b60405180910390a2505b8515611eb15760006064611b58866020015167ffffffffffffffff168461422690919063ffffffff16565b81611b5f57fe5b0490508085604001516fffffffffffffffffffffffffffffffff161015611cfe576000611bab86604001516fffffffffffffffffffffffffffffffff1683613f7890919063ffffffff16565b90508615801590611bbb57508681115b15611bc35750855b611be473ffffffffffffffffffffffffffffffffffffffff8a168683614277565b611c0d611bf082613d49565b60408801516fffffffffffffffffffffffffffffffff1690613d99565b6fffffffffffffffffffffffffffffffff16604080880191909152517f6939aaf500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff861690636939aaf590611c78908490600401615073565b600060405180830381600087803b158015611c9257600080fd5b505af1158015611ca6573d6000803e3d6000fd5b505050508873ffffffffffffffffffffffffffffffffffffffff167fb18e7e4f6eac147a63a3bb6beb2d9039c88698623aff3efc4febbc20b0164ee582604051611cf09190615073565b60405180910390a250611eaf565b8085604001516fffffffffffffffffffffffffffffffff161115611eaf576000611d47611d2a83613d49565b60408801516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff1690508615801590611d6957508681115b15611d715750855b6040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815260009073ffffffffffffffffffffffffffffffffffffffff871690632e1a7d4d90611dc6908590600401615073565b602060405180830381600087803b158015611de057600080fd5b505af1158015611df4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e189190614bbb565b9050611e43611e2682613d49565b60408901516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff166040808901919091525173ffffffffffffffffffffffffffffffffffffffff8b16907f39aa22060f8dd4d291720311feedf3b72fef47c06c66ccf5c22b502c62e7550a90611ea4908490615073565b60405180910390a250505b505b50505073ffffffffffffffffffffffffffffffffffffffff84166000908152600a6020908152604091829020835181549285015193909401516fffffffffffffffffffffffffffffffff9081167001000000000000000000000000000000000267ffffffffffffffff94851668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff959096167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941693909317939093169390931791909116179055505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b611fe2614530565b5073ffffffffffffffffffffffffffffffffffffffff8281166000818152600a602090815260408083208151606081018352905467ffffffffffffffff80821683526801000000000000000082048116838601527001000000000000000000000000000000009091046fffffffffffffffffffffffffffffffff16828401529484526009909252909120548151919316911615806120ac57508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b156121695773ffffffffffffffffffffffffffffffffffffffff848116600090815260096020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169185169190911790556121126212750042016143df565b67ffffffffffffffff16825260405173ffffffffffffffffffffffffffffffffffffffff80851691908616907f6f7ccdf3f86039e5a1dcf6028bf7b4773cbf7a234716ba2e5392b12bb0f8558f90600090a36124b9565b815167ffffffffffffffff161580159061218e5750815167ffffffffffffffff164210155b6121c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153c7565b73ffffffffffffffffffffffffffffffffffffffff848116600090815260086020526040902054161561241d5773ffffffffffffffffffffffffffffffffffffffff808516600090815260086020526040808220548582015191517f7f8661a100000000000000000000000000000000000000000000000000000000815292931691637f8661a19161225891600401615764565b602060405180830381600087803b15801561227257600080fd5b505af1158015612286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122aa9190614bbb565b9050600081131561233b5773ffffffffffffffffffffffffffffffffffffffff8516600090815260076020526040902081906122e69082614423565b508573ffffffffffffffffffffffffffffffffffffffff167f911c9f20a03edabcbcbd18dca1174cce47a91b234ced7a5a3c60ba0d5b56c5d28260405161232d9190615073565b60405180910390a2506123c9565b60008112156123c95773ffffffffffffffffffffffffffffffffffffffff8516600090815260076020526040812090829003906123789082614491565b508573ffffffffffffffffffffffffffffffffffffffff167f8f1f26eb9b6aa8689dbdd519ead1999d9c8819d4738e403b2003b18197d9cf97826040516123bf9190615073565b60405180910390a2505b8473ffffffffffffffffffffffffffffffffffffffff167f39aa22060f8dd4d291720311feedf3b72fef47c06c66ccf5c22b502c62e7550a84604001516040516124139190615764565b60405180910390a2505b73ffffffffffffffffffffffffffffffffffffffff808516600081815260086020908152604080832080548688167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091558388528782018490528484526009909252808320805490921690915551928616927f03e6352a885adc4cc54767592939c3b1bbd65685658c3beaaba66a888120e2179190a35b5073ffffffffffffffffffffffffffffffffffffffff929092166000908152600a6020908152604091829020845181549286015193909501517fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090921667ffffffffffffffff958616177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000009590931694909402919091176fffffffffffffffffffffffffffffffff90811670010000000000000000000000000000000091909216021790915550565b60005473ffffffffffffffffffffffffffffffffffffffff1633146125de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906153fe565b73ffffffffffffffffffffffffffffffffffffffff821661262b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906151a1565b73ffffffffffffffffffffffffffffffffffffffff82166000818152600460205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016841515179055517f31a1e0eac44b54ac6c2a2efa87e92c83405ffcf33fceef02a7bca695130e260090611607908490615068565b6040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169063d505accf90612708908a908a908a908a908a908a908a90600401614f5a565b600060405180830381600087803b15801561272257600080fd5b505af1158015612736573d6000803e3d6000fd5b505050505050505050505050565b60056020526000908152604090205481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600360209081526000928352604080842090915290825290205460ff1681565b6000808573ffffffffffffffffffffffffffffffffffffffff811633148015906127d2575073ffffffffffffffffffffffffffffffffffffffff81163014155b156128a2573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680612834576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff166128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b73ffffffffffffffffffffffffffffffffffffffff86166128ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615390565b600073ffffffffffffffffffffffffffffffffffffffff8916156129135788612935565b7f000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d5b905061293f614519565b5073ffffffffffffffffffffffffffffffffffffffff81166000908152600760209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff80821684527001000000000000000000000000000000009091041690820152856129ba576129b381886001613c8b565b95506129c9565b6129c681876000613df1565b96505b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600660209081526040808320938d1683529290522054612a069087613f78565b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600660209081526040808320938e1683529290522055612a5f612a4588613d49565b82516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff168152612a9c612a7f87613d49565b60208301516fffffffffffffffffffffffffffffffff16906141d4565b6fffffffffffffffffffffffffffffffff16602082018190526103e8111580612ad9575060208101516fffffffffffffffffffffffffffffffff16155b612b0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615246565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260076020908152604090912083518154928501517fffffffffffffffffffffffffffffffff000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff91821617811670010000000000000000000000000000000091909316029190911790558a16612ceb576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d1690632e1a7d4d90612c10908a90600401615073565b600060405180830381600087803b158015612c2a57600080fd5b505af1158015612c3e573d6000803e3d6000fd5b5050505060008873ffffffffffffffffffffffffffffffffffffffff1688604051612c6890614dc9565b60006040518083038185875af1925050503d8060008114612ca5576040519150601f19603f3d011682016040523d82523d6000602084013e612caa565b606091505b5050905080612ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906156c1565b50612d0c565b612d0c73ffffffffffffffffffffffffffffffffffffffff83168989614277565b8773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fad9ab9ee6953d4d177f4a03b3a3ac3178ffcb9816319f348060194aa76b144868a8a604051610c709291906157dc565b3360008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055517fdfb44ffabf0d3a8f650d3ce43eff98f6d050e7ea1a396d5794f014e7dadabacb9190a2565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b73ffffffffffffffffffffffffffffffffffffffff8516612e56576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615579565b81158015612e62575080155b8015612e6f575060ff8316155b15612f865773ffffffffffffffffffffffffffffffffffffffff86163314612ec3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906151d8565b73ffffffffffffffffffffffffffffffffffffffff8681166000908152600260205260409020541615612f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906154d6565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604090205460ff16612f81576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061568a565b6131c3565b73ffffffffffffffffffffffffffffffffffffffff8616612fd3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061561c565b60006040518060400160405280600281526020017f190100000000000000000000000000000000000000000000000000000000000081525061301361147f565b7f1962bc9f5484cb7a998701b81090e966ee1fce5771af884cceee7c081b14ade28761305f577fb426802f1f7dc850a7b6b38805edea2442f3992878a9ab985abfe8091d95d0b1613081565b7f422ac5323fe049241dee67716229a1cc1bc7b313b23dfe3ef6d42ab177a3b2845b73ffffffffffffffffffffffffffffffffffffffff8b1660009081526005602090815260409182902080546001810190915591516130c89493928e928e928e92910161507c565b604051602081830303815290604052805190602001206040516020016130f093929190614da2565b60405160208183030381529060405280519060200120905060006001828686866040516000815260200160405260405161312d94939291906150ee565b6020604051602081039080840390855afa15801561314f573d6000803e3d6000fd5b5050506020604051035190508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146131c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061550d565b50505b73ffffffffffffffffffffffffffffffffffffffff8581166000818152600360209081526040808320948b16808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016881515179055517f5f6ebb64ba012a851c6f014e6cad458ddf213d1512049b31cd06365c2b05925790613252908890615068565b60405180910390a3505050505050565b6060808367ffffffffffffffff8111801561327c57600080fd5b506040519080825280602002602001820160405280156132a6578160200160208202803683370190505b5091508367ffffffffffffffff811180156132c057600080fd5b506040519080825280602002602001820160405280156132f457816020015b60608152602001906001900390816132df5790505b50905060005b8481101561340557600060603088888581811061331357fe5b90506020028101906133259190615835565b604051613333929190614d76565b600060405180830381855af49150503d806000811461336e576040519150601f19603f3d011682016040523d82523d6000602084013e613373565b606091505b50915091508180613382575085155b61338b826144b9565b906133c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779190615120565b50818584815181106133d157fe5b602002602001019015159081151581525050808484815181106133f057fe5b602090810291909101015250506001016132fa565b50935093915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff808216835270010000000000000000000000000000000090910416918101919091526117cc908484613c8b565b600a6020526000908152604090205467ffffffffffffffff808216916801000000000000000081049091169070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1683565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6000620186a06134ff856032614226565b8161350657fe5b04905061352a73ffffffffffffffffffffffffffffffffffffffff86168786614277565b6040517f23e30c8b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8816906323e30c8b906135869033908990899087908a908a90600401614ed7565b600060405180830381600087803b1580156135a057600080fd5b505af11580156135b4573d6000803e3d6000fd5b505050506136016135c482613d49565b73ffffffffffffffffffffffffffffffffffffffff87166000908152600760205260409020906fffffffffffffffffffffffffffffffff16614423565b61360a86613e94565b1015613642576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615653565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167f3be9b85936d5d30a1655ea116a17ee3d827b2cd428cc026ce5bf2ac46a22320487856040516136b89291906157dc565b60405180910390a450505050505050565b8273ffffffffffffffffffffffffffffffffffffffff81163314801590613706575073ffffffffffffffffffffffffffffffffffffffff81163014155b156137d6573360009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1680613768576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155b0565b73ffffffffffffffffffffffffffffffffffffffff80821660009081526003602090815260408083209386168352929052205460ff166137d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615433565b505b73ffffffffffffffffffffffffffffffffffffffff8316613823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615390565b73ffffffffffffffffffffffffffffffffffffffff8086166000908152600660209081526040808320938816835292905220546138609083613f78565b73ffffffffffffffffffffffffffffffffffffffff8681166000908152600660209081526040808320898516845290915280822093909355908516815220546138a99083613fb5565b73ffffffffffffffffffffffffffffffffffffffff80871660008181526006602090815260408083208986168085529252918290209490945551918716917f6eabe333476233fd382224f233210cb808a7bc4c4de64f9d76628bf63c677b1a90613914908790615073565b60405180910390a45050505050565b60608567ffffffffffffffff8111801561393c57600080fd5b50604051908082528060200260200182016040528015613966578160200160208202803683370190505b5090508560005b81811015613a4257600087878381811061398357fe5b905060200201359050620186a06139a460328361422690919063ffffffff16565b816139ab57fe5b048483815181106139b857fe5b602002602001018181525050613a398c8c848181106139d357fe5b90506020020160208101906139e891906145f5565b8989858181106139f457fe5b905060200201358c8c86818110613a0757fe5b9050602002016020810190613a1c91906145f5565b73ffffffffffffffffffffffffffffffffffffffff169190614277565b5060010161396d565b506040517fd9d1762300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c169063d9d1762390613aa39033908c908c908c908c908a908d908d90600401614ded565b600060405180830381600087803b158015613abd57600080fd5b505af1158015613ad1573d6000803e3d6000fd5b5050505060005b81811015612736576000898983818110613aee57fe5b9050602002016020810190613b0391906145f5565b9050613b61613b24858481518110613b1757fe5b6020026020010151613d49565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600760205260409020906fffffffffffffffffffffffffffffffff16614423565b613b6a82613e94565b1015613ba2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615653565b8b8b83818110613bae57fe5b9050602002016020810190613bc391906145f5565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff168e73ffffffffffffffffffffffffffffffffffffffff167f3be9b85936d5d30a1655ea116a17ee3d827b2cd428cc026ce5bf2ac46a2232048b8b87818110613c3457fe5b90506020020135888781518110613c4757fe5b6020026020010151604051613c5d9291906157dc565b60405180910390a450600101613ad8565b600660209081526000928352604080842090915290825290205481565b82516000906fffffffffffffffffffffffffffffffff16613cad575081613d42565b835160208501516fffffffffffffffffffffffffffffffff91821691613cd591869116614226565b81613cdc57fe5b049050818015613d3257508284602001516fffffffffffffffffffffffffffffffff16613d2886600001516fffffffffffffffffffffffffffffffff168461422690919063ffffffff16565b81613d2f57fe5b04105b15613d42576117cc816001613fb5565b9392505050565b60006fffffffffffffffffffffffffffffffff821115613d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906152eb565b5090565b8181016fffffffffffffffffffffffffffffffff8083169082161015613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615322565b92915050565b600083602001516fffffffffffffffffffffffffffffffff1660001415613e19575081613d42565b602084015184516fffffffffffffffffffffffffffffffff91821691613e4191869116614226565b81613e4857fe5b049050818015613d3257508284600001516fffffffffffffffffffffffffffffffff16613d2886602001516fffffffffffffffffffffffffffffffff168461422690919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff81166000818152600a60205260408082205490517f70a082310000000000000000000000000000000000000000000000000000000081529192613deb927001000000000000000000000000000000009092046fffffffffffffffffffffffffffffffff16916370a0823190613f22903090600401614dcc565b60206040518083038186803b158015613f3a57600080fd5b505afa158015613f4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f729190614bbb565b90613fb5565b80820382811115613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615133565b81810181811015613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615322565b600060608573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b86868660405160240161402a93929190614f29565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516140b39190614d86565b6000604051808303816000865af19150503d80600081146140f0576040519150601f19603f3d011682016040523d82523d6000602084013e6140f5565b606091505b509150915081801561411f57508051158061411f57508080602001905181019061411f91906147dc565b614155576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906155e7565b505050505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a8667fd7df266aff736d415a9dc14b4158201d612e70d75b9c7f4e375ccfd20aa5166f83306040516020016141b694939291906150bd565b6040516020818303038152906040528051906020012090505b919050565b8082036fffffffffffffffffffffffffffffffff8084169082161115613deb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067790615133565b60008115806142415750508082028282828161423e57fe5b04145b613deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610677906156f8565b600060608473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b85856040516024016142ad929190614fa8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009094169390931790925290516143369190614d86565b6000604051808303816000865af19150503d8060008114614373576040519150601f19603f3d011682016040523d82523d6000602084013e614378565b606091505b50915091508180156143a25750805115806143a25750808060200190518101906143a291906147dc565b6143d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061520f565b5050505050565b600067ffffffffffffffff821115613d95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106779061549f565b600061444b61443183613d49565b84546fffffffffffffffffffffffffffffffff1690613d99565b83547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff919091169081179093555090919050565b600061444b61449f83613d49565b84546fffffffffffffffffffffffffffffffff16906141d4565b60606044825110156144ff575060408051808201909152601d81527f5472616e73616374696f6e2072657665727465642073696c656e746c7900000060208201526141cf565b60048201915081806020019051810190613deb9190614bd3565b604080518082019091526000808252602082015290565b604080516060810182526000808252602082018190529181019190915290565b60008083601f840112614561578182fd5b50813567ffffffffffffffff811115614578578182fd5b602083019150836020808302850101111561459257600080fd5b9250929050565b60008083601f8401126145aa578182fd5b50813567ffffffffffffffff8111156145c1578182fd5b60208301915083602082850101111561459257600080fd5b8035613deb816158d4565b803560ff81168114613deb57600080fd5b600060208284031215614606578081fd5b8135613d42816158d4565b60008060408385031215614623578081fd5b823561462e816158d4565b9150602083013561463e816158d4565b809150509250929050565b60008060008060008060c08789031215614661578182fd5b863561466c816158d4565b9550602087013561467c816158d4565b9450604087013561468c816158f9565b935061469b88606089016145e4565b92506080870135915060a087013590509295509295509295565b600080604083850312156146c7578182fd5b82356146d2816158d4565b9150602083013561463e816158f9565b6000806000606084860312156146f6578283fd5b8335614701816158d4565b92506020840135614711816158f9565b91506040840135614721816158f9565b809150509250925092565b60008060008060608587031215614741578384fd5b843561474c816158d4565b9350602085013567ffffffffffffffff811115614767578384fd5b61477387828801614599565b9094509250506040850135614787816158f9565b939692955090935050565b6000806000604084860312156147a6578081fd5b833567ffffffffffffffff8111156147bc578182fd5b6147c886828701614550565b9094509250506020840135614721816158f9565b6000602082840312156147ed578081fd5b8151613d42816158f9565b600080600080600080600080600060a08a8c031215614815578687fd5b8935614820816158d4565b985060208a013567ffffffffffffffff8082111561483c578889fd5b6148488d838e01614550565b909a50985060408c0135915080821115614860578485fd5b61486c8d838e01614550565b909850965060608c0135915080821115614884578485fd5b6148908d838e01614550565b909650945060808c01359150808211156148a8578384fd5b506148b58c828d01614599565b915080935050809150509295985092959850929598565b60008060408385031215614623578182fd5b600080600080608085870312156148f3578182fd5b84356148fe816158d4565b9350602085013561490e816158d4565b9250604085013561491e816158d4565b9396929550929360600135925050565b600080600080600060a08688031215614945578283fd5b8535614950816158d4565b94506020860135614960816158d4565b93506040860135614970816158d4565b94979396509394606081013594506080013592915050565b600080600080600080600080610100898b0312156149a4578182fd5b88356149af816158d4565b975060208901356149bf816158d4565b965060408901356149cf816158d4565b955060608901359450608089013593506149ec8a60a08b016145e4565b925060c0890135915060e089013590509295985092959890939650565b60008060008060008060808789031215614a21578384fd5b8635614a2c816158d4565b95506020870135614a3c816158d4565b9450604087013567ffffffffffffffff80821115614a58578586fd5b614a648a838b01614550565b90965094506060890135915080821115614a7c578384fd5b50614a8989828a01614550565b979a9699509497509295939492505050565b600080600060608486031215614aaf578081fd5b8335614aba816158d4565b92506020840135614aca816158f9565b929592945050506040919091013590565b600080600060608486031215614aef578081fd5b8335614afa816158d4565b9250602084013591506040840135614721816158f9565b60008060408385031215614b23578182fd5b8235614b2e816158d4565b9150602083013567ffffffffffffffff8116811461463e578182fd5b60008060008060008060a08789031215614b62578384fd5b8635614b6d816158d4565b95506020870135614b7d816158d4565b94506040870135614b8d816158d4565b935060608701359250608087013567ffffffffffffffff811115614baf578283fd5b614a8989828a01614599565b600060208284031215614bcc578081fd5b5051919050565b600060208284031215614be4578081fd5b815167ffffffffffffffff80821115614bfb578283fd5b818401915084601f830112614c0e578283fd5b815181811115614c1c578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715614c5a578586fd5b604052818152838201602001871015614c71578485fd5b614c828260208301602087016158a4565b9695505050505050565b73ffffffffffffffffffffffffffffffffffffffff16815260200190565b6000815180845260208085019450808401835b83811015614cd957815187529582019590820190600101614cbd565b509495945050505050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60008151808452614d448160208601602086016158a4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000828483379101908152919050565b60008251614d988184602087016158a4565b9190910192915050565b60008451614db48184602089016158a4565b91909101928352506020820152604001919050565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600060a0820173ffffffffffffffffffffffffffffffffffffffff8b168352602060a08185015281614e1f8b84615073565b90508b9250835b8b811015614e5157828401614e4483614e3f83886145d9565b614c8c565b9094509150600101614e26565b508481036040860152614e648982615073565b9250507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff881115614e93578283fd5b8702614ea081838b615898565b018281036060840152614eb38187614caa565b90508281036080840152614ec8818587614ce4565b9b9a5050505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff808916835280881660208401525085604083015284606083015260a06080830152614f1d60a083018486614ce4565b98975050505050505050565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff97881681529590961660208601526040850193909352606084019190915260ff16608083015260a082015260c081019190915260e00190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b604080825283519082018190526000906020906060840190828701845b82811015615009578151151584529284019290840190600101614feb565b505050838103828501528085516150208184615073565b91508192508381028201848801865b83811015615059578583038552615047838351614d2c565b9487019492509086019060010161502f565b50909998505050505050505050565b901515815260200190565b90815260200190565b958652602086019490945273ffffffffffffffffffffffffffffffffffffffff9283166040860152911660608401521515608083015260a082015260c00190565b9384526020840192909252604083015273ffffffffffffffffffffffffffffffffffffffff16606082015260800190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526117cc602083018486614ce4565b600060208252613d426020830184614d2c565b60208082526015908201527f426f72696e674d6174683a20556e646572666c6f770000000000000000000000604082015260600190565b60208082526017908201527f42656e746f426f783a20536b696d20746f6f206d756368000000000000000000604082015260600190565b6020808252601c908201527f4d6173746572434d67723a2043616e6e6f7420617070726f7665203000000000604082015260600190565b6020808252601b908201527f4d6173746572434d67723a2075736572206e6f742073656e6465720000000000604082015260600190565b6020808252601c908201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604082015260600190565b60208082526016908201527f42656e746f426f783a2063616e6e6f7420656d70747900000000000000000000604082015260600190565b60208082526015908201527f4f776e61626c653a207a65726f20616464726573730000000000000000000000604082015260600190565b60208082526013908201527f42656e746f426f783a204e6f20746f6b656e7300000000000000000000000000604082015260600190565b6020808252601c908201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604082015260600190565b60208082526018908201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604082015260600190565b60208082526017908201527f42656e746f426f783a20746f5b305d206e6f7420736574000000000000000000604082015260600190565b60208082526014908201527f42656e746f426f783a20746f206e6f7420736574000000000000000000000000604082015260600190565b6020808252601a908201527f53747261746567794d616e616765723a20546f6f206561726c79000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f42656e746f426f783a205472616e73666572206e6f7420617070726f76656400604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c657220213d2070656e64696e67206f776e6572604082015260600190565b6020808252601b908201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604082015260600190565b60208082526019908201527f4d6173746572434d67723a207573657220697320636c6f6e6500000000000000604082015260600190565b6020808252601d908201527f4d6173746572434d67723a20496e76616c6964205369676e6174757265000000604082015260600190565b6020808252818101527f426f72696e67466163746f72793a204e6f206d6173746572436f6e7472616374604082015260600190565b6020808252601b908201527f4d6173746572434d67723a206d617374657243206e6f74207365740000000000604082015260600190565b6020808252601b908201527f42656e746f426f783a206e6f206d6173746572436f6e74726163740000000000604082015260600190565b6020808252818101527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604082015260600190565b6020808252601c908201527f4d6173746572434d67723a20557365722063616e6e6f74206265203000000000604082015260600190565b60208082526016908201527f42656e746f426f783a2057726f6e6720616d6f756e7400000000000000000000604082015260600190565b6020808252601b908201527f4d6173746572434d67723a206e6f742077686974656c69737465640000000000604082015260600190565b6020808252601d908201527f42656e746f426f783a20455448207472616e73666572206661696c6564000000604082015260600190565b60208082526018908201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604082015260600190565b6020808252818101527f53747261746567794d616e616765723a2054617267657420746f6f2068696768604082015260600190565b6fffffffffffffffffffffffffffffffff91909116815260200190565b6fffffffffffffffffffffffffffffffff92909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6fffffffffffffffffffffffffffffffff92831681529116602082015260400190565b918252602082015260400190565b67ffffffffffffffff91909116815260200190565b67ffffffffffffffff93841681529190921660208201526fffffffffffffffffffffffffffffffff909116604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615869578283fd5b83018035915067ffffffffffffffff821115615883578283fd5b60200191503681900382131561459257600080fd5b82818337506000910152565b60005b838110156158bf5781810151838201526020016158a7565b838111156158ce576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff811681146158f657600080fd5b50565b80151581146158f657600080fdfea26469706673582212205bbcf1ebeff11b17baa42fd02fda16d98bfe0bee5e52a5d3661b8cfc72b81ec964736f6c634300060c0033

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

000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d

-----Decoded View---------------
Arg [0] : wethToken_ (address): 0xe91d153e0b41518a2ce8dd3d7944fa863463a97d

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e91d153e0b41518a2ce8dd3d7944fa863463a97d


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