Contract 0xcfb49550ce8f39c29e73ba0babc16609a63b31b1 1

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8540dee52dcecf5821964f3de607dcb78cf5c7e7565d01332ab0773fc4ce07cbTransfer Ownersh...193673302021-09-22 1:06:2670 days 2 hrs ago0x58b4b6951e9174f153635574076241315d7d3503 IN  0xcfb49550ce8f39c29e73ba0babc16609a63b31b10 MATIC0.000093716438
0xe70b69e3b3a40589172be7b4ecaaf0b10598e370f06638d30bafc1731bc5f48c0x61016060193673012021-09-22 1:05:2870 days 2 hrs ago0x58b4b6951e9174f153635574076241315d7d3503 IN  Contract Creation0 MATIC0.01051162957
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AaveStrategy

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 99999 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : BaseStrategy.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

import "./interfaces/IStrategy.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/IBentoBoxMinimal.sol";
import "./libraries/UniswapV2Library.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

abstract contract BaseStrategy is IStrategy, Ownable {

    using SafeERC20 for IERC20;

    address public immutable strategyToken;
    address public immutable bentoBox;
    address public immutable factory;
    address public immutable bridgeToken;

    bool public exited; /// @dev After bentobox 'exits' the strategy harvest, skim and withdraw functions can no loner be called
    uint256 public maxBentoBoxBalance; /// @dev Slippage protection when calling harvest
    mapping(address => bool) public strategyExecutors; /// @dev EOAs that can execute safeHarvest

    event LogConvert(address indexed server, address indexed token0, address indexed token1, uint256 amount0, uint256 amount1);
    event LogSetStrategyExecutor(address indexed executor, bool allowed);

    /** @param _strategyToken Address of the underlying token the strategy invests.
        @param _bentoBox BentoBox address.
        @param _factory SushiSwap factory.
        @param _bridgeToken An intermedieary token for swapping any rewards into the underlying token.
        @param _strategyExecutor an EOA that will execute the safeHarvest function.
        @dev factory and bridgeToken can be address(0) if we don't expect rewards we would need to swap
    */
    constructor(
        address _strategyToken,
        address _bentoBox,
        address _factory,
        address _bridgeToken,
        address _strategyExecutor
    ) {
        
        strategyToken = _strategyToken;
        bentoBox = _bentoBox;
        factory = _factory;
        bridgeToken = _bridgeToken;
        
        if (_strategyExecutor != address(0)) {
            strategyExecutors[_strategyExecutor] = true;
            emit LogSetStrategyExecutor(_strategyExecutor, true);
        }
    }

    //** Strategy implementation: override the following functions: */

    /// @notice Invests the underlying asset.
    /// @param amount The amount of tokens to invest.
    /// @dev Assume the contract's balance is greater than the amount
    function _skim(uint256 amount) internal virtual;

    /// @notice Harvest any profits made and transfer them to address(this) or report a loss
    /// @param balance The amount of tokens that have been invested.
    /// @return amountAdded The delta (+profit or -loss) that occured in contrast to `balance`.
    /// @dev amountAdded can be left at 0 when reporting profits (gas savings).
    /// amountAdded should not reflect any rewards or tokens the strategy received.
    /// Calcualte the amount added based on what the current deposit is worth.
    /// (The Base Strategy harvest function accounts for rewards).
    function _harvest(uint256 balance) internal virtual returns (int256 amountAdded);

    /// @dev Withdraw the requested amount of the underlying tokens to address(this).
    /// @param amount The requested amount we want to withdraw.
    function _withdraw(uint256 amount) internal virtual;

    /// @notice Withdraw the maximum available amount of the invested assets to address(this).
    /// @dev This shouldn't revert (use try catch).
    function _exit() internal virtual;

    /// @notice Claim any rewards reward tokens and optionally sell them for the underlying token.
    /// @dev Doesn't need to be implemented if we don't expect any rewards.
    function _harvestRewards() internal virtual {}

    //** End strategy implementation */

    modifier isActive() {
        require(!exited, "BentoBox Strategy: exited");
        _;
    }

    modifier onlyBentoBox() {
        require(msg.sender == bentoBox, "BentoBox Strategy: only BentoBox");
        _;
    }

    modifier onlyExecutor() {
        require(strategyExecutors[msg.sender], "BentoBox Strategy: only Executors");
        _;
    }

    function setStrategyExecutor(address executor, bool value) external onlyOwner {
        strategyExecutors[executor] = value;
        emit LogSetStrategyExecutor(executor, value);
    }

    /// @inheritdoc IStrategy
    function skim(uint256 amount) external override {
        _skim(amount);
    }

    /// @notice Harvest profits while preventing a sandwich attack exploit.
    /// @param maxBalance The maximum balance of the underlying token that is allowed to be in BentoBox.
    /// @param rebalance Whether BentoBox should rebalance the strategy assets to acheive it's target allocation.
    /// @param maxChangeAmount When rebalancing - the maximum amount that will be deposited to or withdrawn from a strategy to BentoBox.
    /// @param harvestRewards If we want to claim any accrued reward tokens
    /// @dev maxBalance can be set to 0 to keep the previous value.
    /// @dev maxChangeAmount can be set to 0 to allow for full rebalancing.
    function safeHarvest(
        uint256 maxBalance,
        bool rebalance,
        uint256 maxChangeAmount,
        bool harvestRewards
    ) external onlyExecutor {
        if (harvestRewards) {
            _harvestRewards();
        }

        if (maxBalance > 0) {
            maxBentoBoxBalance = maxBalance;
        }

        IBentoBoxMinimal(bentoBox).harvest(strategyToken, rebalance, maxChangeAmount);
    }

    /** @inheritdoc IStrategy
    @dev Only BentoBox can call harvest on this strategy.
    @dev Ensures that (1) the caller was this contract (called through the safeHarvest function)
        and (2) that we are not being frontrun by a large BentoBox deposit when harvesting profits. */
    function harvest(uint256 balance, address sender) external override isActive onlyBentoBox returns (int256) {
        /** @dev Don't revert if conditions aren't met in order to allow
            BentoBox to continiue execution as it might need to do a rebalance. */

        if (
            sender == address(this) &&
            IBentoBoxMinimal(bentoBox).totals(strategyToken).elastic <= maxBentoBoxBalance &&
            balance > 0
        ) {
            
            int256 amount = _harvest(balance);

            /** @dev Since harvesting of rewards is accounted for seperately we might also have
            some underlying tokens in the contract that the _harvest call doesn't report. 
            E.g. reward tokens that have been sold into the underlying tokens which are now sitting in the contract.
            Meaning the amount returned by the internal _harvest function isn't necessary the final profit/loss amount */

            uint256 contractBalance = IERC20(strategyToken).balanceOf(address(this));

            if (amount >= 0) { // _harvest reported a profit

                if (contractBalance > 0) {
                    IERC20(strategyToken).safeTransfer(bentoBox, contractBalance);
                }

                return int256(contractBalance);

            } else if (contractBalance > 0) { // _harvest reported a loss but we have some tokens sitting in the contract

                int256 diff = amount + int256(contractBalance);

                if (diff > 0) { // we still made some profit

                    /// @dev send the profit to BentoBox and reinvest the rest
                    IERC20(strategyToken).safeTransfer(bentoBox, uint256(diff));
                    _skim(uint256(-amount));

                } else { // we made a loss but we have some tokens we can reinvest

                    _skim(contractBalance);

                }

                return diff;

            } else { // we made a loss

                return amount;

            }

        }

        return int256(0);
    }

    /// @inheritdoc IStrategy
    function withdraw(uint256 amount) external override isActive onlyBentoBox returns (uint256 actualAmount) {
        _withdraw(amount);
        /// @dev Make sure we send and report the exact same amount of tokens by using balanceOf.
        actualAmount = IERC20(strategyToken).balanceOf(address(this));
        IERC20(strategyToken).safeTransfer(bentoBox, actualAmount);
    }

    /// @inheritdoc IStrategy
    /// @dev do not use isActive modifier here; allow bentobox to call strategy.exit() multiple times
    function exit(uint256 balance) external override onlyBentoBox returns (int256 amountAdded) {
        _exit();
        /// @dev Check balance of token on the contract.
        uint256 actualBalance = IERC20(strategyToken).balanceOf(address(this));
        /// @dev Calculate tokens added (or lost).
        amountAdded = int256(actualBalance) - int256(balance);
        /// @dev Transfer all tokens to bentoBox.
        IERC20(strategyToken).safeTransfer(bentoBox, actualBalance);
        /// @dev Flag as exited, allowing the owner to manually deal with any amounts available later.
        exited = true;
    }

    /** @dev After exited, the owner can perform ANY call. This is to rescue any funds that didn't
        get released during exit or got earned afterwards due to vesting or airdrops, etc. */
    function afterExit(
        address to,
        uint256 value,
        bytes memory data
    ) public onlyOwner returns (bool success) {
        require(exited, "BentoBox Strategy: not exited");
        (success, ) = to.call{value: value}(data);
    }

    /// @notice Swap some tokens in the contract for the underlying and deposits them to address(this)
    function swapExactTokensForUnderlying(uint256 amountOutMin, address inputToken) public onlyExecutor returns (uint256 amountOut) {
        require(factory != address(0), "BentoBox Strategy: cannot swap");
        require(inputToken != strategyToken, "BentoBox Strategy: invalid swap");

        ///@dev Construct a path array consisting of the input (reward token),
        /// underlying token and a potential bridge token
        bool useBridge = bridgeToken != address(0);

        address[] memory path = new address[](useBridge ? 3 : 2);

        path[0] = inputToken;

        if (useBridge) {
            path[1] = bridgeToken;
        }

        path[path.length - 1] = strategyToken;

        uint256 amountIn = IERC20(path[0]).balanceOf(address(this));

        uint256[] memory amounts = UniswapV2Library.getAmountsOut(factory, amountIn, path);

        amountOut = amounts[amounts.length - 1];

        require(amountOut >= amountOutMin, "BentoBox Strategy: insufficient output");

        IERC20(path[0]).safeTransfer(UniswapV2Library.pairFor(factory, path[0], path[1]), amounts[0]);

        _swap(amounts, path, address(this));

        emit LogConvert(msg.sender, inputToken, strategyToken, amountIn, amountOut);
    }

    /// @dev requires the initial amount to have already been sent to the first pair
    function _swap(
        uint256[] memory amounts,
        address[] memory path,
        address _to
    ) internal {
        for (uint256 i; i < path.length - 1; i++) {
            (address input, address output) = (path[i], path[i + 1]);
            address token0 = input < output ? input : output;
            uint256 amountOut = amounts[i + 1];
            (uint256 amount0Out, uint256 amount1Out) = input == token0 ? (uint256(0), amountOut) : (amountOut, uint256(0));
            address to = i < path.length - 2 ? UniswapV2Library.pairFor(factory, output, path[i + 2]) : _to;
            IUniswapV2Pair(UniswapV2Library.pairFor(factory, input, output)).swap(amount0Out, amount1Out, to, new bytes(0));
        }
    }

}

File 2 of 16 : IStrategy.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

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 3 of 16 : IUniswapV2Pair.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

interface IUniswapV2Pair {
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
}

File 4 of 16 : IBentoBoxMinimal.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.7;

/// @notice Minimal interface for BentoBox token vault interactions - `token` is aliased as `address` from `IERC20` for code simplicity.
interface IBentoBoxMinimal {

    struct Rebase {
        uint128 elastic;
        uint128 base;
    }

    /// @notice Balance per ERC-20 token per account in shares.
    function balanceOf(address, address) external view returns (uint256);

    /// @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(
        address token_,
        address from,
        address to,
        uint256 amount,
        uint256 share
    ) external payable returns (uint256 amountOut, uint256 shareOut);

    /// @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(
        address token_,
        address from,
        address to,
        uint256 amount,
        uint256 share
    ) external returns (uint256 amountOut, uint256 shareOut);

    /// @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.
    function transfer(
        address token,
        address from,
        address to,
        uint256 share
    ) external;

    /// @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(
        address token,
        uint256 amount,
        bool roundUp
    ) external view returns (uint256 share);

    /// @dev Helper function to 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(
        address token,
        uint256 share,
        bool roundUp
    ) external view returns (uint256 amount);

    /// @notice Registers this contract so that users can approve it for the BentoBox.
    function registerProtocol() external;

    function totals(address token) external view returns (Rebase memory);

    function harvest(
        address token,
        bool balance,
        uint256 maxChangeAmount
    ) external;
}

File 5 of 16 : UniswapV2Library.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

import '../interfaces/IUniswapV2Pair.sol';

/* 
The following library is modified from @sushiswap/core/contracts/uniswapv2/libraries/UniswapV2Library.sol

changes: 
    - remove SafeMathUniswap library and replace all usage of it with basic operations
    - change casting from uint to bytes20 in pair address calculation and shift by 96 bits before casting
 */

library UniswapV2Library {

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(bytes20(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'e18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303' // init code hash
            )) << 96));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA * reserveB / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn * 997;
        uint numerator = amountInWithFee * reserveOut;
        uint denominator = (reserveIn * 1000) + amountInWithFee;
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn * amountOut * 1000;
        uint denominator = (reserveOut - amountOut) * 997;
        amountIn = (numerator / denominator) + 1;
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 11 of 16 : SushiStrategy.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

import "../BaseStrategy.sol";

interface ISushiBar is IERC20 {
    function enter(uint256 _amount) external;

    function leave(uint256 _share) external;
}

contract SushiStrategy is BaseStrategy {
    ISushiBar public immutable sushiBar;

    constructor(
        address _sushiBar,
        address strategyToken,
        address bentoBox,
        address strategyExecutor
    ) BaseStrategy(strategyToken, bentoBox, strategyExecutor, address(0), address(0)) {
        IERC20(strategyToken).approve(_sushiBar, type(uint256).max);
        sushiBar = ISushiBar(_sushiBar);
    }

    function _skim(uint256 amount) internal override {
        sushiBar.enter(amount);
    }

    function _harvest(uint256 balance) internal override returns (int256) {
        uint256 keep = toShare(balance);
        uint256 total = sushiBar.balanceOf(address(this));
        if (total > keep) sushiBar.leave(total - keep);
        // xSUSHI can't report a loss so no need to check for keep < total case
        // we can return 0 when reporting profits (BaseContract checks balanceOf)
        return int256(0);
    }

    function _withdraw(uint256 amount) internal override {
        uint256 requested = toShare(amount);
        uint256 actual = sushiBar.balanceOf(address(this));
        sushiBar.leave(requested > actual ? actual : requested);
    }

    function _exit() internal override {
        sushiBar.leave(sushiBar.balanceOf(address(this)));
    }

    function toShare(uint256 amount) internal view returns (uint256) {
        uint256 totalShares = sushiBar.totalSupply();
        uint256 totalSushi = IERC20(strategyToken).balanceOf(address(sushiBar));
        return amount * totalShares / totalSushi;
    }
}

File 12 of 16 : AaveStrategy.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

import "../BaseStrategy.sol";

library DataTypes {
    struct ReserveData {
        ReserveConfigurationMap configuration;
        uint128 liquidityIndex;
        uint128 variableBorrowIndex;
        uint128 currentLiquidityRate;
        uint128 currentVariableBorrowRate;
        uint128 currentStableBorrowRate;
        uint40 lastUpdateTimestamp;
        address aTokenAddress;
        address stableDebtTokenAddress;
        address variableDebtTokenAddress;
        address interestRateStrategyAddress;
        uint8 id;
    }
    struct ReserveConfigurationMap {
        uint256 data;
    }
}

interface ILendingPool {
    function deposit(
        address asset,
        uint256 amount,
        address onBehalfOf,
        uint16 referralCode
    ) external;

    function withdraw(
        address asset,
        uint256 amount,
        address to
    ) external returns (uint256);

    function getReserveData(address asset) external view returns (DataTypes.ReserveData memory);
}

interface IAaveIncentivesController {
    function getRewardsBalance(address[] calldata assets, address user) external view returns (uint256);

    function claimRewards(
        address[] calldata assets,
        uint256 amount,
        address to
    ) external returns (uint256);
}

contract AaveStrategy is BaseStrategy {
    ILendingPool public immutable aaveLendingPool;
    IAaveIncentivesController public immutable incentiveController;
    IERC20 public immutable aToken;

    constructor(
        ILendingPool _aaveLendingPool,
        IAaveIncentivesController _incentiveController,
        address strategyToken,
        address bentoBox,
        address strategyExecutor,
        address factory,
        address bridgeToken
    ) BaseStrategy(strategyToken, bentoBox, factory, bridgeToken, strategyExecutor)  {
        aaveLendingPool = _aaveLendingPool;
        incentiveController = _incentiveController;
        aToken = IERC20(_aaveLendingPool.getReserveData(strategyToken).aTokenAddress);
        IERC20(strategyToken).approve(address(_aaveLendingPool), type(uint256).max);
    }

    function _skim(uint256 amount) internal override {
        aaveLendingPool.deposit(address(strategyToken), amount, address(this), 0);
    }

    function _harvest(uint256 balance) internal override returns (int256 amountAdded) {
        uint256 currentBalance = aToken.balanceOf(address(this));
        amountAdded = int256(currentBalance) - int256(balance);
        if (amountAdded > 0) aaveLendingPool.withdraw(address(strategyToken), uint256(amountAdded), address(this));
    }

    function _withdraw(uint256 amount) internal override {
        aaveLendingPool.withdraw(address(strategyToken), amount, address(this));
    }

    function _exit() internal override {
        uint256 tokenBalance = aToken.balanceOf(address(this));
        uint256 available = IERC20(strategyToken).balanceOf(address(aToken));
        if (tokenBalance <= available) {
            /// @dev If there are more tokens available than our full position, take all based on aToken balance (continue if unsuccessful).
            try aaveLendingPool.withdraw(address(strategyToken), tokenBalance, address(this)) {} catch {}
        } else {
            /// @dev Otherwise redeem all available and take a loss on the missing amount (continue if unsuccessful).
            try aaveLendingPool.withdraw(address(strategyToken), available, address(this)) {} catch {}
        }
    }

    function _harvestRewards() internal override {
        address[] memory rewardTokens = new address[](1);
        rewardTokens[0] = address(aToken);
        uint256 reward = incentiveController.getRewardsBalance(rewardTokens, address(this));
        incentiveController.claimRewards(rewardTokens, reward, address(this));
    }
}

File 13 of 16 : ExampleImplementation.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.7;

import "./BaseStrategy.sol";

/*  Example implementation stub to simplify strategy development.
    Please refer to the BaseStrategy contract natspec comments for
    further tips and clarifications. Also see the SushiStrategy and the
    AavePolygonStrategy for reference implementations. */
contract ExampleImplementation is BaseStrategy {
    // BaseStrategy initializes a immutable storage variable 'strategyToken' of type IERC20 we can use

    constructor(
        address investmentContract,
        address strategyToken,
        address bentoBox,
        address strategyExecutor,
        address factory,
        address bridgeToken
    ) BaseStrategy(strategyToken, bentoBox, factory, bridgeToken, strategyExecutor) {
        IERC20(strategyToken).approve(investmentContract, type(uint256).max);
    }

    function _skim(uint256 amount) internal override {
        // assume strategyToken.balanceOf(address(this)) >= amount
        // invest the token
    }

    function _harvest(uint256 investedAmount) internal override returns (int256 delta) {
        // calculate the current amount we get if we withdraw the principal (not accounting for any received rewards)
        // if profitable, withdraw the surplus
        // return the difference between invested and current amount
    }

    function _harvestRewards() internal override {
        // implement the logic for claiming rewards and transfering them to address(this)
        // does not need to report the profits
        // skip if we expect no rewards
    }

    function _withdraw(uint256 amount) internal override {
        // withdraw the requested amount of tokens from the investment to address(this)
    }

    function _exit() internal override {
        // see what the available amount of tokens to withdraw is
        // withdraw as much tokens as possible from the investment to address(this)
        // should not revert
    }
}

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

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

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

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

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

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

        _afterTokenTransfer(account, address(0), amount);
    }

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

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

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

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

File 16 of 16 : ERC20.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.7;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract ERC20Mock is ERC20 {
    constructor() ERC20("","") {
        _mint(msg.sender, 1e20);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ILendingPool","name":"_aaveLendingPool","type":"address"},{"internalType":"contract IAaveIncentivesController","name":"_incentiveController","type":"address"},{"internalType":"address","name":"strategyToken","type":"address"},{"internalType":"address","name":"bentoBox","type":"address"},{"internalType":"address","name":"strategyExecutor","type":"address"},{"internalType":"address","name":"factory","type":"address"},{"internalType":"address","name":"bridgeToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"server","type":"address"},{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"LogConvert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"LogSetStrategyExecutor","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":"aToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaveLendingPool","outputs":[{"internalType":"contract ILendingPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"afterExit","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bentoBox","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"exit","outputs":[{"internalType":"int256","name":"amountAdded","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"name":"harvest","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"incentiveController","outputs":[{"internalType":"contract IAaveIncentivesController","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBentoBoxBalance","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxBalance","type":"uint256"},{"internalType":"bool","name":"rebalance","type":"bool"},{"internalType":"uint256","name":"maxChangeAmount","type":"uint256"},{"internalType":"bool","name":"harvestRewards","type":"bool"}],"name":"safeHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"executor","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setStrategyExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategyExecutors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategyToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address","name":"inputToken","type":"address"}],"name":"swapExactTokensForUnderlying","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"actualAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

6101606040523480156200001257600080fd5b5060405162003df738038062003df7833981016040819052620000359162000341565b8484838386620000453362000223565b6001600160601b0319606086811b821660805285811b821660a05284811b821660c05283901b1660e0526001600160a01b03811615620000da576001600160a01b038116600081815260026020908152604091829020805460ff1916600190811790915591519182527fb08a78f53a7fe017d5ca8c8fcdbf06ffa2c31f2ab668378a17700d9fc558717e910160405180910390a25b5050506001600160601b031960608a811b82166101005289901b166101205250506040516335ea6a7560e01b81526001600160a01b0386811660048301528816906335ea6a75906024016101806040518083038186803b1580156200013e57600080fd5b505afa15801562000153573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001799190620003ec565b60e0015160601b6001600160601b0319166101405260405163095ea7b360e01b81526001600160a01b038881166004830152600019602483015286169063095ea7b390604401602060405180830381600087803b158015620001da57600080fd5b505af1158015620001ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000215919062000316565b505050505050505062000545565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805162000280816200052c565b919050565b6000602082840312156200029857600080fd5b604051602081016001600160401b0381118282101715620002c957634e487b7160e01b600052604160045260246000fd5b6040529151825250919050565b80516001600160801b03811681146200028057600080fd5b805164ffffffffff811681146200028057600080fd5b805160ff811681146200028057600080fd5b6000602082840312156200032957600080fd5b815180151581146200033a57600080fd5b9392505050565b600080600080600080600060e0888a0312156200035d57600080fd5b87516200036a816200052c565b60208901519097506200037d816200052c565b604089015190965062000390816200052c565b6060890151909550620003a3816200052c565b6080890151909450620003b6816200052c565b60a0890151909350620003c9816200052c565b60c0890151909250620003dc816200052c565b8091505092959891949750929550565b600061018082840312156200040057600080fd5b6200040a620004f4565b62000416848462000285565b81526200042660208401620002d6565b60208201526200043960408401620002d6565b60408201526200044c60608401620002d6565b60608201526200045f60808401620002d6565b60808201526200047260a08401620002d6565b60a08201526200048560c08401620002ee565b60c08201526200049860e0840162000273565b60e0820152610100620004ad81850162000273565b90820152610120620004c184820162000273565b90820152610140620004d584820162000273565b90820152610160620004e984820162000304565b908201529392505050565b60405161018081016001600160401b03811182821017156200052657634e487b7160e01b600052604160045260246000fd5b60405290565b6001600160a01b03811681146200054257600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6101405160601c613707620006f06000396000818161030d0152818161198f01528181611e1801528181611ee4015261267b0152600081816101ed015281816126fb01526127c201526000818161039d01528181611a9201528181611c2101528181611cf20152818161200701526121140152600081816103d701528181611054015261113901526000818161035a01528181610f01015281816112e7015281816113d00152818161253201526125750152600081816102730152818161049c015281816105ab01528181610765015281816107ec015281816108ea01528181610a7501528181610c5d01528181610df6015261163f0152600081816102a2015281816105830152818161069f01528181610743015281816107ca015281816109a801528181610a5301528181610d1d01528181610dd401528181610f9e015281816111a8015281816114b50152818161160801528181611a5d01528181611be501528181611cbd01528181611f1201528181611fd201526120df01526137076000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c80637f8661a1116100d8578063c45a01551161008c578063e9d337b811610066578063e9d337b814610398578063f2fde38b146103bf578063f4734b0c146103d257600080fd5b8063c45a015514610355578063d9253c2d1461037c578063e8bd73a51461038f57600080fd5b8063a0c1f15e116100bd578063a0c1f15e14610308578063a7edd48c1461032f578063ba6275ab1461034257600080fd5b80637f8661a1146102d75780638da5cb5b146102ea57600080fd5b80636939aaf51161012f578063715018a611610114578063715018a614610295578063747efea11461029d57806374ceb267146102c457600080fd5b80636939aaf5146102595780636b2ace871461026e57600080fd5b80635066ebdd116101605780635066ebdd146101b55780635b9fe37f146101e85780635ce6c3271461023457600080fd5b806318fccc761461017c5780632e1a7d4d146101a2575b600080fd5b61018f61018a3660046131be565b6103f9565b6040519081526020015b60405180910390f35b61018f6101b036600461318c565b61084c565b6101d86101c3366004612fa5565b60026020526000908152604090205460ff1681565b6040519015158152602001610199565b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610199565b6000546101d89074010000000000000000000000000000000000000000900460ff1681565b61026c61026736600461318c565b610a9f565b005b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b61026c610aab565b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b61026c6102d2366004612fc0565b610b38565b61018f6102e536600461318c565b610c43565b60005473ffffffffffffffffffffffffffffffffffffffff1661020f565b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b61018f61033d3660046131be565b610e60565b61026c6103503660046131ea565b611512565b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b6101d861038a366004612ff7565b6116a1565b61018f60015481565b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b61026c6103cd366004612fa5565b61181a565b61020f7f000000000000000000000000000000000000000000000000000000000000000081565b6000805474010000000000000000000000000000000000000000900460ff1615610484576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f42656e746f426f782053747261746567793a206578697465640000000000000060448201526064015b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610523576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f42656e746f426f782053747261746567793a206f6e6c792042656e746f426f78604482015260640161047b565b73ffffffffffffffffffffffffffffffffffffffff82163014801561063a57506001546040517f4ffe34db00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000001690634ffe34db90602401604080518083038186803b1580156105ec57600080fd5b505afa158015610600573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062491906130e1565b516fffffffffffffffffffffffffffffffff1611155b80156106465750600083115b1561084257600061065684611947565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290915060009073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156106e157600080fd5b505afa1580156106f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071991906131a5565b90506000821261079357801561078a5761078a73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611b16565b91506108469050565b801561083a5760006107a58284613409565b905060008113156108275761081173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611b16565b61082261081d846135fd565b611ba8565b610830565b61083082611ba8565b9250610846915050565b509050610846565b5060005b92915050565b6000805474010000000000000000000000000000000000000000900460ff16156108d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f42656e746f426f782053747261746567793a2065786974656400000000000000604482015260640161047b565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f42656e746f426f782053747261746567793a206f6e6c792042656e746f426f78604482015260640161047b565b61097a82611c80565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b1580156109ff57600080fd5b505afa158015610a13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3791906131a5565b9050610a9a73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611b16565b919050565b610aa881611ba8565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b2c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161047b565b610b366000611d72565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bb9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161047b565b73ffffffffffffffffffffffffffffffffffffffff821660008181526002602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151590811790915591519182527fb08a78f53a7fe017d5ca8c8fcdbf06ffa2c31f2ab668378a17700d9fc558717e910160405180910390a25050565b60003373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610ce4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f42656e746f426f782053747261746567793a206f6e6c792042656e746f426f78604482015260640161047b565b610cec611de7565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015610d7457600080fd5b505afa158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac91906131a5565b9050610db8838261350d565b9150610e1b73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611b16565b50600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055919050565b3360009081526002602052604081205460ff16610eff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f42656e746f426f782053747261746567793a206f6e6c79204578656375746f7260448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161047b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f9c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f42656e746f426f782053747261746567793a2063616e6e6f7420737761700000604482015260640161047b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611052576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f42656e746f426f782053747261746567793a20696e76616c6964207377617000604482015260640161047b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16151560008161109957600261109c565b60035b60ff1667ffffffffffffffff8111156110b7576110b7613694565b6040519080825280602002602001820160405280156110e0578160200160208202803683370190505b50905083816000815181106110f7576110f7613665565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505081156111a6577f00000000000000000000000000000000000000000000000000000000000000008160018151811061116b5761116b613665565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b7f000000000000000000000000000000000000000000000000000000000000000081600183516111d69190613581565b815181106111e6576111e6613665565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008160008151811061123557611235613665565b60209081029190910101516040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a082319060240160206040518083038186803b1580156112a657600080fd5b505afa1580156112ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112de91906131a5565b9050600061130d7f00000000000000000000000000000000000000000000000000000000000000008385612143565b9050806001825161131e9190613581565b8151811061132e5761132e613665565b60200260200101519450868510156113c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f42656e746f426f782053747261746567793a20696e73756666696369656e742060448201527f6f75747075740000000000000000000000000000000000000000000000000000606482015260840161047b565b61148561142a7f00000000000000000000000000000000000000000000000000000000000000008560008151811061140257611402613665565b60200260200101518660018151811061141d5761141d613665565b60200260200101516122e8565b8260008151811061143d5761143d613665565b60200260200101518560008151811061145857611458613665565b602002602001015173ffffffffffffffffffffffffffffffffffffffff16611b169092919063ffffffff16565b611490818430612405565b604080518381526020810187905273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116929089169133917f3b644720db133e4e05b302a56bdb46867109debe30c44b4f25566b3c41ed627b910160405180910390a45050505092915050565b3360009081526002602052604090205460ff166115b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f42656e746f426f782053747261746567793a206f6e6c79204578656375746f7260448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161047b565b80156115bf576115bf612657565b83156115cb5760018490555b6040517f66c6bb0b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301528415156024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906366c6bb0b90606401600060405180830381600087803b15801561168357600080fd5b505af1158015611697573d6000803e3d6000fd5b5050505050505050565b6000805473ffffffffffffffffffffffffffffffffffffffff163314611723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161047b565b60005474010000000000000000000000000000000000000000900460ff166117a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f42656e746f426f782053747261746567793a206e6f7420657869746564000000604482015260640161047b565b8373ffffffffffffffffffffffffffffffffffffffff1683836040516117cd91906132cf565b60006040518083038185875af1925050503d806000811461180a576040519150601f19603f3d011682016040523d82523d6000602084013e61180f565b606091505b509095945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461189b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161047b565b73ffffffffffffffffffffffffffffffffffffffff811661193e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161047b565b610aa881611d72565b6040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600090819073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156119d157600080fd5b505afa1580156119e5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0991906131a5565b9050611a15838261350d565b91506000821315611b10576040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018490523060448301527f000000000000000000000000000000000000000000000000000000000000000016906369328dec90606401602060405180830381600087803b158015611ad657600080fd5b505af1158015611aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0e91906131a5565b505b50919050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052611ba390849061284d565b505050565b6040517fe8eda9df00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116600483015260248201839052306044830152600060648301527f0000000000000000000000000000000000000000000000000000000000000000169063e8eda9df90608401600060405180830381600087803b158015611c6557600080fd5b505af1158015611c79573d6000803e3d6000fd5b5050505050565b6040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390523060448301527f000000000000000000000000000000000000000000000000000000000000000016906369328dec90606401602060405180830381600087803b158015611d3657600080fd5b505af1158015611d4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6e91906131a5565b5050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b158015611e6f57600080fd5b505afa158015611e83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea791906131a5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301529192506000917f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015611f5457600080fd5b505afa158015611f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8c91906131a5565b90508082116120a2576040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018490523060448301527f000000000000000000000000000000000000000000000000000000000000000016906369328dec906064015b602060405180830381600087803b15801561204c57600080fd5b505af192505050801561209a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252612097918101906131a5565b60015b611ba3575050565b6040517f69328dec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018390523060448301527f000000000000000000000000000000000000000000000000000000000000000016906369328dec90606401612032565b60606002825110156121b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015260640161047b565b815167ffffffffffffffff8111156121cb576121cb613694565b6040519080825280602002602001820160405280156121f4578160200160208202803683370190505b509050828160008151811061220b5761220b613665565b60200260200101818152505060005b600183516122289190613581565b8110156122e05760008061227b8786858151811061224857612248613665565b60200260200101518786600161225e919061347d565b8151811061226e5761226e613665565b6020026020010151612959565b915091506122a384848151811061229457612294613665565b60200260200101518383612a67565b846122af85600161347d565b815181106122bf576122bf613665565b602002602001018181525050505080806122d8906135c4565b91505061221a565b509392505050565b60008060006122f78585612be2565b604051606083811b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000908116602084015283821b1660348301529294509092508790604801604051602081830303815290604052805190602001206040516020016123df9291907fff00000000000000000000000000000000000000000000000000000000000000815260609290921b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016600183015260158201527fe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303603582015260550190565b60405160208183030381529060405280519060200120901b60601c925050509392505050565b60005b600183516124169190613581565b8110156126515760008084838151811061243257612432613665565b602002602001015185846001612448919061347d565b8151811061245857612458613665565b60200260200101519150915060008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161061249f57816124a1565b825b90506000876124b186600161347d565b815181106124c1576124c1613665565b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16146125095782600061250d565b6000835b91509150600060028a516125219190613581565b881061252d578861256e565b61256e7f0000000000000000000000000000000000000000000000000000000000000000878c61255e8c600261347d565b8151811061141d5761141d613665565b905061259b7f000000000000000000000000000000000000000000000000000000000000000088886122e8565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f84848460006040519080825280601f01601f1916602001820160405280156125e5576020820181803683370190505b506040518563ffffffff1660e01b81526004016126059493929190613375565b600060405180830381600087803b15801561261f57600080fd5b505af1158015612633573d6000803e3d6000fd5b50505050505050505050508080612649906135c4565b915050612408565b50505050565b604080516001808252818301909252600091602080830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106126ad576126ad613665565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526040517f8b599f260000000000000000000000000000000000000000000000000000000081526000917f00000000000000000000000000000000000000000000000000000000000000001690638b599f269061273290859030906004016132eb565b60206040518083038186803b15801561274a57600080fd5b505afa15801561275e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278291906131a5565b6040517f3111e7b300000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690633111e7b3906127fb90859085903090600401613323565b602060405180830381600087803b15801561281557600080fd5b505af1158015612829573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ba391906131a5565b60006128af826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16612d679092919063ffffffff16565b805190915015611ba357808060200190518101906128cd91906130c4565b611ba3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161047b565b60008060006129688585612be2565b5090506000806129798888886122e8565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156129be57600080fd5b505afa1580156129d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129f6919061313c565b506dffffffffffffffffffffffffffff1691506dffffffffffffffffffffffffffff1691508273ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614612a55578082612a58565b81815b90999098509650505050505050565b6000808411612af8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4960448201527f4e5055545f414d4f554e54000000000000000000000000000000000000000000606482015260840161047b565b600083118015612b085750600082115b612b94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602860248201527f556e697377617056324c6962726172793a20494e53554646494349454e545f4c60448201527f4951554944495459000000000000000000000000000000000000000000000000606482015260840161047b565b6000612ba2856103e56134d0565b90506000612bb084836134d0565b9050600082612bc1876103e86134d0565b612bcb919061347d565b9050612bd78183613495565b979650505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612ca1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f556e697377617056324c6962726172793a204944454e544943414c5f4144445260448201527f4553534553000000000000000000000000000000000000000000000000000000606482015260840161047b565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610612cdb578284612cde565b83835b909250905073ffffffffffffffffffffffffffffffffffffffff8216612d60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015260640161047b565b9250929050565b6060612d768484600085612d80565b90505b9392505050565b606082471015612e12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161047b565b843b612e7a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161047b565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612ea391906132cf565b60006040518083038185875af1925050503d8060008114612ee0576040519150601f19603f3d011682016040523d82523d6000602084013e612ee5565b606091505b5091509150612bd782828660608315612eff575081612d79565b825115612f0f5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161047b9190613362565b803573ffffffffffffffffffffffffffffffffffffffff81168114610a9a57600080fd5b80516dffffffffffffffffffffffffffff81168114610a9a57600080fd5b80516fffffffffffffffffffffffffffffffff81168114610a9a57600080fd5b600060208284031215612fb757600080fd5b612d7982612f43565b60008060408385031215612fd357600080fd5b612fdc83612f43565b91506020830135612fec816136c3565b809150509250929050565b60008060006060848603121561300c57600080fd5b61301584612f43565b92506020808501359250604085013567ffffffffffffffff8082111561303a57600080fd5b818701915087601f83011261304e57600080fd5b81358181111561306057613060613694565b613090847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016133ba565b915080825288848285010111156130a657600080fd5b80848401858401376000848284010152508093505050509250925092565b6000602082840312156130d657600080fd5b8151612d79816136c3565b6000604082840312156130f357600080fd5b6040516040810181811067ffffffffffffffff8211171561311657613116613694565b60405261312283612f85565b815261313060208401612f85565b60208201529392505050565b60008060006060848603121561315157600080fd5b61315a84612f67565b925061316860208501612f67565b9150604084015163ffffffff8116811461318157600080fd5b809150509250925092565b60006020828403121561319e57600080fd5b5035919050565b6000602082840312156131b757600080fd5b5051919050565b600080604083850312156131d157600080fd5b823591506131e160208401612f43565b90509250929050565b6000806000806080858703121561320057600080fd5b843593506020850135613212816136c3565b9250604085013591506060850135613229816136c3565b939692955090935050565b600081518084526020808501945080840160005b8381101561327a57815173ffffffffffffffffffffffffffffffffffffffff1687529582019590820190600101613248565b509495945050505050565b6000815180845261329d816020860160208601613598565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600082516132e1818460208701613598565b9190910192915050565b6040815260006132fe6040830185613234565b905073ffffffffffffffffffffffffffffffffffffffff831660208301529392505050565b6060815260006133366060830186613234565b905083602083015273ffffffffffffffffffffffffffffffffffffffff83166040830152949350505050565b602081526000612d796020830184613285565b84815283602082015273ffffffffffffffffffffffffffffffffffffffff831660408201526080606082015260006133b06080830184613285565b9695505050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561340157613401613694565b604052919050565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561344357613443613636565b827f800000000000000000000000000000000000000000000000000000000000000003841281161561347757613477613636565b50500190565b6000821982111561349057613490613636565b500190565b6000826134cb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561350857613508613636565b500290565b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561354757613547613636565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831381161561357b5761357b613636565b50500390565b60008282101561359357613593613636565b500390565b60005b838110156135b357818101518382015260200161359b565b838111156126515750506000910152565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135f6576135f6613636565b5060010190565b60007f800000000000000000000000000000000000000000000000000000000000000082141561362f5761362f613636565b5060000390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b8015158114610aa857600080fdfea2646970667358221220fdd03bbfbb9d842d249e24205c2849699aba7c02160b412052592b164012d6d564736f6c634300080700330000000000000000000000008dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf000000000000000000000000357d51124f59836ded84c8a1730d72b749d8bc230000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000319000133d3ada02600f0875d2cf03d442c33670000000000000000000000001008eac341da6452384ebadde7655cb418447b4d000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c40000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619

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

0000000000000000000000008dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf000000000000000000000000357d51124f59836ded84c8a1730d72b749d8bc230000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000319000133d3ada02600f0875d2cf03d442c33670000000000000000000000001008eac341da6452384ebadde7655cb418447b4d000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c40000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619

-----Decoded View---------------
Arg [0] : _aaveLendingPool (address): 0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf
Arg [1] : _incentiveController (address): 0x357d51124f59836ded84c8a1730d72b749d8bc23
Arg [2] : strategyToken (address): 0x2791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [3] : bentoBox (address): 0x0319000133d3ada02600f0875d2cf03d442c3367
Arg [4] : strategyExecutor (address): 0x1008eac341da6452384ebadde7655cb418447b4d
Arg [5] : factory (address): 0xc35dadb65012ec5796536bd9864ed8773abc74c4
Arg [6] : bridgeToken (address): 0x7ceb23fd6bc0add59e62ac25578270cff1b9f619

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000008dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf
Arg [1] : 000000000000000000000000357d51124f59836ded84c8a1730d72b749d8bc23
Arg [2] : 0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174
Arg [3] : 0000000000000000000000000319000133d3ada02600f0875d2cf03d442c3367
Arg [4] : 0000000000000000000000001008eac341da6452384ebadde7655cb418447b4d
Arg [5] : 000000000000000000000000c35dadb65012ec5796536bd9864ed8773abc74c4
Arg [6] : 0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619


Deployed ByteCode Sourcemap

1347:2504:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5807:2042:7;;;;;;:::i;:::-;;:::i;:::-;;;10440:25:16;;;10428:2;10413:18;5807:2042:7;;;;;;;;7885:376;;;;;;:::i;:::-;;:::i;888:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;9507:14:16;;9500:22;9482:41;;9470:2;9455:18;888:49:7;9342:187:16;1442:62:14;;;;;;;;6861:42:16;6849:55;;;6831:74;;6819:2;6804:18;1442:62:14;6685:226:16;670:18:7;;;;;;;;;;;;4362:78;;;;;;:::i;:::-;;:::i;:::-;;550:33;;;;;1605:92:0;;;:::i;506:38:7:-;;;;;4142:184;;;;;;:::i;:::-;;:::i;8399:611::-;;;;;;:::i;:::-;;:::i;973:85:0:-;1019:7;1045:6;;;973:85;;1510:30:14;;;;;9569:1233:7;;;;;;:::i;:::-;;:::i;5098:415::-;;;;;;:::i;:::-;;:::i;589:32::-;;;;;9209:251;;;;;;:::i;:::-;;:::i;799:33::-;;;;;;1391:45:14;;;;;1846:189:0;;;;;;:::i;:::-;;:::i;627:36:7:-;;;;;5807:2042;5906:6;3824;;;;;;;3823:7;3815:45;;;;;;;14736:2:16;3815:45:7;;;14718:21:16;14775:2;14755:18;;;14748:30;14814:27;14794:18;;;14787:55;14859:18;;3815:45:7;;;;;;;;;3926:10:::1;:22;3940:8;3926:22;;3918:67;;;::::0;::::1;::::0;;11309:2:16;3918:67:7::1;::::0;::::1;11291:21:16::0;;;11328:18;;;11321:30;11387:34;11367:18;;;11360:62;11439:18;;3918:67:7::1;11107:356:16::0;3918:67:7::1;6098:23:::2;::::0;::::2;6116:4;6098:23;:117:::0;::::2;;;-1:-1:-1::0;6197:18:7::2;::::0;6137:48:::2;::::0;;;;:33:::2;6171:13;6849:55:16::0;;6137:48:7::2;::::0;::::2;6831:74:16::0;6154:8:7::2;6137:33;::::0;::::2;::::0;6804:18:16;;6137:48:7::2;::::0;::::2;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:56:::0;:78:::2;;;;6098:117;:144;;;;;6241:1;6231:7;:11;6098:144;6081:1735;;;6280:13;6296:17;6305:7;6296:8;:17::i;:::-;6781:46;::::0;;;;6821:4:::2;6781:46;::::0;::::2;6831:74:16::0;6280:33:7;;-1:-1:-1;6755:23:7::2;::::0;6781:31:::2;6788:13;6781:31;::::0;::::2;::::0;6804:18:16;;6781:46:7::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6755:72;;6856:1;6846:6;:11;6842:963;;6912:19:::0;;6908:127:::2;;6955:61;:34;6962:13;6955:34;6990:8;7000:15:::0;6955:34:::2;:61::i;:::-;7067:15:::0;-1:-1:-1;7053:30:7::2;::::0;-1:-1:-1;7053:30:7::2;6842:963;7109:19:::0;;7105:700:::2;;7225:11;7239:32;7255:15:::0;7239:6;:32:::2;:::i;:::-;7225:46;;7301:1;7294:4;:8;7290:398;;;7435:59;:34;7442:13;7435:34;7470:8;7488:4:::0;7435:34:::2;:59::i;:::-;7516:23;7530:7;7531:6:::0;7530:7:::2;:::i;:::-;7516:5;:23::i;:::-;7290:398;;;7646:22;7652:15;7646:5;:22::i;:::-;7713:4:::0;-1:-1:-1;7706:11:7::2;::::0;-1:-1:-1;;7706:11:7::2;7105:700;-1:-1:-1::0;7783:6:7;-1:-1:-1;7776:13:7::2;;6081:1735;-1:-1:-1::0;7840:1:7::2;3995;5807:2042:::0;;;;:::o;7885:376::-;7968:20;3824:6;;;;;;;3823:7;3815:45;;;;;;;14736:2:16;3815:45:7;;;14718:21:16;14775:2;14755:18;;;14748:30;14814:27;14794:18;;;14787:55;14859:18;;3815:45:7;14534:349:16;3815:45:7;3926:10:::1;:22;3940:8;3926:22;;3918:67;;;::::0;::::1;::::0;;11309:2:16;3918:67:7::1;::::0;::::1;11291:21:16::0;;;11328:18;;;11321:30;11387:34;11367:18;;;11360:62;11439:18;;3918:67:7::1;11107:356:16::0;3918:67:7::1;8000:17:::2;8010:6;8000:9;:17::i;:::-;8140:46;::::0;;;;8180:4:::2;8140:46;::::0;::::2;6831:74:16::0;8147:13:7::2;8140:31;;::::0;::::2;::::0;6804:18:16;;8140:46:7::2;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8125:61:::0;-1:-1:-1;8196:58:7::2;:34;8203:13;8196:34;8231:8;8125:61:::0;8196:34:::2;:58::i;:::-;7885:376:::0;;;:::o;4362:78::-;4420:13;4426:6;4420:5;:13::i;:::-;4362:78;:::o;1605:92:0:-;1019:7;1045:6;1185:23;1045:6;666:10:6;1185:23:0;1177:68;;;;;;;14017:2:16;1177:68:0;;;13999:21:16;;;14036:18;;;14029:30;14095:34;14075:18;;;14068:62;14147:18;;1177:68:0;13815:356:16;1177:68:0;1669:21:::1;1687:1;1669:9;:21::i;:::-;1605:92::o:0;4142:184:7:-;1019:7:0;1045:6;1185:23;1045:6;666:10:6;1185:23:0;1177:68;;;;;;;14017:2:16;1177:68:0;;;13999:21:16;;;14036:18;;;14029:30;14095:34;14075:18;;;14068:62;14147:18;;1177:68:0;13815:356:16;1177:68:0;4230:27:7::1;::::0;::::1;;::::0;;;:17:::1;:27;::::0;;;;;;;;:35;;;::::1;::::0;::::1;;::::0;;::::1;::::0;;;4280:39;;9482:41:16;;;4280:39:7::1;::::0;9455:18:16;4280:39:7::1;;;;;;;4142:184:::0;;:::o;8399:611::-;8470:18;3926:10;:22;3940:8;3926:22;;3918:67;;;;;;;11309:2:16;3918:67:7;;;11291:21:16;;;11328:18;;;11321:30;11387:34;11367:18;;;11360:62;11439:18;;3918:67:7;11107:356:16;3918:67:7;8500:7:::1;:5;:7::i;:::-;8598:46;::::0;;;;8638:4:::1;8598:46;::::0;::::1;6831:74:16::0;8574:21:7::1;::::0;8605:13:::1;8598:31;;::::0;::::1;::::0;6804:18:16;;8598:46:7::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8574:70:::0;-1:-1:-1;8719:39:7::1;8750:7:::0;8574:70;8719:39:::1;:::i;:::-;8705:53:::0;-1:-1:-1;8818:59:7::1;:34;8825:13;8818:34;8853:8;8863:13:::0;8818:34:::1;:59::i;:::-;-1:-1:-1::0;8990:6:7::1;:13:::0;;;::::1;::::0;::::1;::::0;;8399:611;;-1:-1:-1;8399:611:7:o;9569:1233::-;4069:10;9678:17;4051:29;;;:17;:29;;;;;;;;4043:75;;;;;;;15090:2:16;4043:75:7;;;15072:21:16;15129:2;15109:18;;;15102:30;15168:34;15148:18;;;15141:62;15239:3;15219:18;;;15212:31;15260:19;;4043:75:7;14888:397:16;4043:75:7;9715:7:::1;:21;;9707:64;;;::::0;::::1;::::0;;13658:2:16;9707:64:7::1;::::0;::::1;13640:21:16::0;13697:2;13677:18;;;13670:30;13736:32;13716:18;;;13709:60;13786:18;;9707:64:7::1;13456:354:16::0;9707:64:7::1;9803:13;9789:27;;:10;:27;;;;9781:71;;;::::0;::::1;::::0;;15492:2:16;9781:71:7::1;::::0;::::1;15474:21:16::0;15531:2;15511:18;;;15504:30;15570:33;15550:18;;;15543:61;15621:18;;9781:71:7::1;15290:355:16::0;9781:71:7::1;10017:11;:25;;::::0;::::1;10000:14;10017:25:::0;10091:17:::1;;10107:1;10091:17;;;10103:1;10091:17;10077:32;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;10077:32:7::1;;10053:56;;10130:10;10120:4;10125:1;10120:7;;;;;;;;:::i;:::-;;;;;;:20;;;;;;;;;::::0;::::1;10155:9;10151:61;;;10190:11;10180:4;10185:1;10180:7;;;;;;;;:::i;:::-;;;;;;:21;;;;;;;;;::::0;::::1;10151:61;10246:13;10222:4;10241:1;10227:4;:11;:15;;;;:::i;:::-;10222:21;;;;;;;;:::i;:::-;;;;;;:37;;;;;;;;;::::0;::::1;10270:16;10296:4;10301:1;10296:7;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;10289:40:::1;::::0;;;;10323:4:::1;10289:40;::::0;::::1;6831:74:16::0;10289:25:7::1;::::0;;::::1;::::0;::::1;::::0;6804:18:16;;10289:40:7::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10270:59;;10340:24;10367:55;10398:7;10407:8;10417:4;10367:30;:55::i;:::-;10340:82;;10445:7;10470:1;10453:7;:14;:18;;;;:::i;:::-;10445:27;;;;;;;;:::i;:::-;;;;;;;10433:39;;10504:12;10491:9;:25;;10483:76;;;::::0;::::1;::::0;;10902:2:16;10483:76:7::1;::::0;::::1;10884:21:16::0;10941:2;10921:18;;;10914:30;10980:34;10960:18;;;10953:62;11051:8;11031:18;;;11024:36;11077:19;;10483:76:7::1;10700:402:16::0;10483:76:7::1;10570:93;10599:51;10624:7;10633:4;10638:1;10633:7;;;;;;;;:::i;:::-;;;;;;;10642:4;10647:1;10642:7;;;;;;;;:::i;:::-;;;;;;;10599:24;:51::i;:::-;10652:7;10660:1;10652:10;;;;;;;;:::i;:::-;;;;;;;10577:4;10582:1;10577:7;;;;;;;;:::i;:::-;;;;;;;10570:28;;;;:93;;;;;:::i;:::-;10674:35;10680:7;10689:4;10703;10674:5;:35::i;:::-;10725:70;::::0;;17546:25:16;;;17602:2;17587:18;;17580:34;;;10725:70:7::1;10760:13;10725:70:::0;::::1;::::0;;;::::1;::::0;10736:10:::1;::::0;10725:70:::1;::::0;17519:18:16;10725:70:7::1;;;;;;;9697:1105;;;;9569:1233:::0;;;;:::o;5098:415::-;4069:10;4051:29;;;;:17;:29;;;;;;;;4043:75;;;;;;;15090:2:16;4043:75:7;;;15072:21:16;15129:2;15109:18;;;15102:30;15168:34;15148:18;;;15141:62;15239:3;15219:18;;;15212:31;15260:19;;4043:75:7;14888:397:16;4043:75:7;5275:14:::1;5271:62;;;5305:17;:15;:17::i;:::-;5347:14:::0;;5343:76:::1;;5377:18;:31:::0;;;5343:76:::1;5429:77;::::0;;;;:34:::1;5464:13;7130:55:16::0;;5429:77:7::1;::::0;::::1;7112:74:16::0;7229:14;;7222:22;7202:18;;;7195:50;7261:18;;;7254:34;;;5446:8:7::1;5429:34;::::0;::::1;::::0;7085:18:16;;5429:77:7::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;5098:415:::0;;;;:::o;9209:251::-;9330:12;1045:6:0;;1185:23;1045:6;666:10:6;1185:23:0;1177:68;;;;;;;14017:2:16;1177:68:0;;;13999:21:16;;;14036:18;;;14029:30;14095:34;14075:18;;;14068:62;14147:18;;1177:68:0;13815:356:16;1177:68:0;9362:6:7::1;::::0;;;::::1;;;9354:48;;;::::0;::::1;::::0;;14378:2:16;9354:48:7::1;::::0;::::1;14360:21:16::0;14417:2;14397:18;;;14390:30;14456:31;14436:18;;;14429:59;14505:18;;9354:48:7::1;14176:353:16::0;9354:48:7::1;9426:2;:7;;9441:5;9448:4;9426:27;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;9412:41:7;;9209:251;-1:-1:-1;;;;;9209:251:7:o;1846:189:0:-;1019:7;1045:6;1185:23;1045:6;666:10:6;1185:23:0;1177:68;;;;;;;14017:2:16;1177:68:0;;;13999:21:16;;;14036:18;;;14029:30;14095:34;14075:18;;;14068:62;14147:18;;1177:68:0;13815:356:16;1177:68:0;1934:22:::1;::::0;::::1;1926:73;;;::::0;::::1;::::0;;11670:2:16;1926:73:0::1;::::0;::::1;11652:21:16::0;11709:2;11689:18;;;11682:30;11748:34;11728:18;;;11721:62;11819:8;11799:18;;;11792:36;11845:19;;1926:73:0::1;11468:402:16::0;1926:73:0::1;2009:19;2019:8;2009:9;:19::i;2310:335:14:-:0;2427:31;;;;;2452:4;2427:31;;;6831:74:16;2372:18:14;;;;2427:16;:6;:16;;;;6804:18:16;;2427:31:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2402:56;-1:-1:-1;2482:40:14;2514:7;2402:56;2482:40;:::i;:::-;2468:54;;2550:1;2536:11;:15;2532:106;;;2553:85;;;;;:24;2586:13;7882:15:16;;2553:85:14;;;7864:34:16;7914:18;;;7907:34;;;2632:4:14;7957:18:16;;;7950:43;2553:15:14;:24;;;;7776:18:16;;2553:85:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2532:106;2392:253;2310:335;;;:::o;634:205:4:-;773:58;;;7503:42:16;7491:55;;773:58:4;;;7473:74:16;7563:18;;;;7556:34;;;773:58:4;;;;;;;;;;7446:18:16;;;;773:58:4;;;;;;;;;;796:23;773:58;;;746:86;;766:5;;746:19;:86::i;:::-;634:205;;;:::o;2165:139:14:-;2224:73;;;;;:23;2256:13;8321:15:16;;2224:73:14;;;8303:34:16;8353:18;;;8346:34;;;2288:4:14;8396:18:16;;;8389:43;-1:-1:-1;8448:18:16;;;8441:47;2224:15:14;:23;;;;8214:19:16;;2224:73:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2165:139;:::o;2651:141::-;2714:71;;;;;:24;2747:13;7882:15:16;;2714:71:14;;;7864:34:16;7914:18;;;7907:34;;;2779:4:14;7957:18:16;;;7950:43;2714:15:14;:24;;;;7776:18:16;;2714:71:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2651:141;:::o;2041:169:0:-;2096:16;2115:6;;;2131:17;;;;;;;;;;2163:40;;2115:6;;;;;;;2163:40;;2096:16;2163:40;2086:124;2041:169;:::o;2798:720:14:-;2866:31;;;;;2891:4;2866:31;;;6831:74:16;2843:20:14;;2866:6;:16;;;;;6804:18:16;;2866:31:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2927:48;;;;;:31;2967:6;6849:55:16;;2927:48:14;;;6831:74:16;2843:54:14;;-1:-1:-1;;;2934:13:14;2927:31;;;;6804:18:16;;2927:48:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2907:68;;3005:9;2989:12;:25;2985:527;;3175:77;;;;;:24;3208:13;7882:15:16;;3175:77:14;;;7864:34:16;7914:18;;;7907:34;;;3246:4:14;7957:18:16;;;7950:43;3175:15:14;:24;;;;7776:18:16;;3175:77:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3175:77:14;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;3171:93;;2714:71;2651:141;:::o;2985:527::-;3416:74;;;;;:24;3449:13;7882:15:16;;3416:74:14;;;7864:34:16;7914:18;;;7907:34;;;3484:4:14;7957:18:16;;;7950:43;3416:15:14;:24;;;;7776:18:16;;3416:74:14;7601:398:16;3613:503:12;3714:21;3770:1;3755:4;:11;:16;;3747:59;;;;;;;12890:2:16;3747:59:12;;;12872:21:16;12929:2;12909:18;;;12902:30;12968:32;12948:18;;;12941:60;13018:18;;3747:59:12;12688:354:16;3747:59:12;3837:4;:11;3826:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3826:23:12;;3816:33;;3872:8;3859:7;3867:1;3859:10;;;;;;;;:::i;:::-;;;;;;:21;;;;;3895:6;3890:220;3921:1;3907:4;:11;:15;;;;:::i;:::-;3903:1;:19;3890:220;;;3944:14;3960:15;3979:42;3991:7;4000:4;4005:1;4000:7;;;;;;;;:::i;:::-;;;;;;;4009:4;4014:1;4018;4014:5;;;;:::i;:::-;4009:11;;;;;;;;:::i;:::-;;;;;;;3979;:42::i;:::-;3943:78;;;;4052:47;4065:7;4073:1;4065:10;;;;;;;;:::i;:::-;;;;;;;4077:9;4088:10;4052:12;:47::i;:::-;4035:7;4043:5;:1;4047;4043:5;:::i;:::-;4035:14;;;;;;;;:::i;:::-;;;;;;:64;;;;;3929:181;;3924:3;;;;;:::i;:::-;;;;3890:220;;;;3613:503;;;;;:::o;999:479::-;1088:12;1113:14;1129;1147:26;1158:6;1166;1147:10;:26::i;:::-;1310:32;;1467:2;5562:15:16;;;5471:66;5558:24;;;1310:32:12;;;5546:37:16;5617:15;;;5613:24;5599:12;;;5592:46;5562:15;;-1:-1:-1;5617:15:16;;-1:-1:-1;1275:7:12;;5654:12:16;;1310:32:12;;;;;;;;;;;;1300:43;;;;;;1216:246;;;;;;;;6327:66:16;6315:79;;6431:2;6427:15;;;;6444:66;6423:88;6419:1;6410:11;;6403:109;6537:2;6528:12;;6521:28;6579:66;6574:2;6565:12;;6558:88;6671:2;6662:12;;5956:724;1216:246:12;;;;;;;;;;;;;1206:257;;;;;;:263;;1190:281;;1183:288;;1102:376;;999:479;;;;;:::o;10893:723:7:-;11024:9;11019:591;11053:1;11039:4;:11;:15;;;;:::i;:::-;11035:1;:19;11019:591;;;11076:13;11091:14;11110:4;11115:1;11110:7;;;;;;;;:::i;:::-;;;;;;;11119:4;11124:1;11128;11124:5;;;;:::i;:::-;11119:11;;;;;;;;:::i;:::-;;;;;;;11075:56;;;;11145:14;11170:6;11162:14;;:5;:14;;;:31;;11187:6;11162:31;;;11179:5;11162:31;11145:48;-1:-1:-1;11207:17:7;11227:7;11235:5;:1;11239;11235:5;:::i;:::-;11227:14;;;;;;;;:::i;:::-;;;;;;;11207:34;;11256:18;11276;11307:6;11298:15;;:5;:15;;;:67;;11343:9;11362:1;11298:67;;;11325:1;11329:9;11298:67;11255:110;;;;11379:10;11410:1;11396:4;:11;:15;;;;:::i;:::-;11392:1;:19;:82;;11471:3;11392:82;;;11414:54;11439:7;11448:6;11456:4;11461:5;:1;11465;11461:5;:::i;:::-;11456:11;;;;;;;;:::i;11414:54::-;11379:95;;11503:48;11528:7;11537:5;11544:6;11503:24;:48::i;:::-;11488:69;;;11558:10;11570;11582:2;11596:1;11586:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11586:12:7;;11488:111;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11061:549;;;;;;;11056:3;;;;;:::i;:::-;;;;11019:591;;;;10893:723;;;:::o;3524:325:14:-;3611:16;;;3625:1;3611:16;;;;;;;;;3579:29;;3611:16;;;;;;;;;;;-1:-1:-1;3611:16:14;3579:48;;3663:6;3637:12;3650:1;3637:15;;;;;;;;:::i;:::-;:33;;;;:15;;;;;;;;;:33;3697:66;;;;;3680:14;;3697:19;:37;;;;:66;;3735:12;;3757:4;;3697:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3773:69;;;;;3680:83;;-1:-1:-1;3773:32:14;:19;:32;;;;:69;;3806:12;;3680:83;;3836:4;;3773:69;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;3140:706:4:-;3559:23;3585:69;3613:4;3585:69;;;;;;;;;;;;;;;;;3593:5;3585:27;;;;:69;;;;;:::i;:::-;3668:17;;3559:95;;-1:-1:-1;3668:21:4;3664:176;;3763:10;3752:30;;;;;;;;;;;;:::i;:::-;3744:85;;;;;;;16569:2:16;3744:85:4;;;16551:21:16;16608:2;16588:18;;;16581:30;16647:34;16627:18;;;16620:62;16718:12;16698:18;;;16691:40;16748:19;;3744:85:4;16367:406:16;1533:387:12;1626:13;1641;1667:14;1686:26;1697:6;1705;1686:10;:26::i;:::-;1666:46;;;1723:13;1738;1771:32;1779:7;1788:6;1796;1771:7;:32::i;:::-;1756:60;;;:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1722:96;;;;;;;;;1861:6;1851:16;;:6;:16;;;:62;;1894:8;1904;1851:62;;;1871:8;1881;1851:62;1828:85;;;;-1:-1:-1;1533:387:12;-1:-1:-1;;;;;;;1533:387:12:o;2463:500::-;2556:14;2601:1;2590:8;:12;2582:68;;;;;;;16980:2:16;2582:68:12;;;16962:21:16;17019:2;16999:18;;;16992:30;17058:34;17038:18;;;17031:62;17129:13;17109:18;;;17102:41;17160:19;;2582:68:12;16778:407:16;2582:68:12;2680:1;2668:9;:13;:31;;;;;2698:1;2685:10;:14;2668:31;2660:84;;;;;;;13249:2:16;2660:84:12;;;13231:21:16;13288:2;13268:18;;;13261:30;13327:34;13307:18;;;13300:62;13398:10;13378:18;;;13371:38;13426:19;;2660:84:12;13047:404:16;2660:84:12;2754:20;2777:14;:8;2788:3;2777:14;:::i;:::-;2754:37;-1:-1:-1;2801:14:12;2818:28;2836:10;2754:37;2818:28;:::i;:::-;2801:45;-1:-1:-1;2856:16:12;2896:15;2876:16;:9;2888:4;2876:16;:::i;:::-;2875:36;;;;:::i;:::-;2856:55;-1:-1:-1;2933:23:12;2856:55;2933:9;:23;:::i;:::-;2921:35;2463:500;-1:-1:-1;;;;;;;2463:500:12:o;565:345::-;640:14;656;700:6;690:16;;:6;:16;;;;682:66;;;;;;;12077:2:16;682:66:12;;;12059:21:16;12116:2;12096:18;;;12089:30;12155:34;12135:18;;;12128:62;12226:7;12206:18;;;12199:35;12251:19;;682:66:12;11875:401:16;682:66:12;786:6;777:15;;:6;:15;;;:53;;815:6;823;777:53;;;796:6;804;777:53;758:72;;-1:-1:-1;758:72:12;-1:-1:-1;848:20:12;;;840:63;;;;;;;16210:2:16;840:63:12;;;16192:21:16;16249:2;16229:18;;;16222:30;16288:32;16268:18;;;16261:60;16338:18;;840:63:12;16008:354:16;840:63:12;565:345;;;;;:::o;3461:223:5:-;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3625:21;:52::i;:::-;3618:59;;3461:223;;;;;;:::o;4548:499::-;4713:12;4770:5;4745:21;:30;;4737:81;;;;;;;12483:2:16;4737:81:5;;;12465:21:16;12522:2;12502:18;;;12495:30;12561:34;12541:18;;;12534:62;12632:8;12612:18;;;12605:36;12658:19;;4737:81:5;12281:402:16;4737:81:5;1034:20;;4828:60;;;;;;;15852:2:16;4828:60:5;;;15834:21:16;15891:2;15871:18;;;15864:30;15930:31;15910:18;;;15903:59;15979:18;;4828:60:5;15650:353:16;4828:60:5;4900:12;4914:23;4941:6;:11;;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:51;5006:7;5015:10;5027:12;7307;7335:7;7331:516;;;-1:-1:-1;7365:10:5;7358:17;;7331:516;7476:17;;:21;7472:365;;7670:10;7664:17;7730:15;7717:10;7713:2;7709:19;7702:44;7472:365;7809:12;7802:20;;;;;;;;;;;:::i;14:196:16:-;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;215:188;294:13;;347:30;336:42;;326:53;;316:81;;393:1;390;383:12;408:192;487:13;;540:34;529:46;;519:57;;509:85;;590:1;587;580:12;605:186;664:6;717:2;705:9;696:7;692:23;688:32;685:52;;;733:1;730;723:12;685:52;756:29;775:9;756:29;:::i;796:315::-;861:6;869;922:2;910:9;901:7;897:23;893:32;890:52;;;938:1;935;928:12;890:52;961:29;980:9;961:29;:::i;:::-;951:39;;1040:2;1029:9;1025:18;1012:32;1053:28;1075:5;1053:28;:::i;:::-;1100:5;1090:15;;;796:315;;;;;:::o;1116:964::-;1202:6;1210;1218;1271:2;1259:9;1250:7;1246:23;1242:32;1239:52;;;1287:1;1284;1277:12;1239:52;1310:29;1329:9;1310:29;:::i;:::-;1300:39;;1358:2;1407;1396:9;1392:18;1379:32;1369:42;;1462:2;1451:9;1447:18;1434:32;1485:18;1526:2;1518:6;1515:14;1512:34;;;1542:1;1539;1532:12;1512:34;1580:6;1569:9;1565:22;1555:32;;1625:7;1618:4;1614:2;1610:13;1606:27;1596:55;;1647:1;1644;1637:12;1596:55;1683:2;1670:16;1705:2;1701;1698:10;1695:36;;;1711:18;;:::i;:::-;1753:112;1861:2;1792:66;1785:4;1781:2;1777:13;1773:86;1769:95;1753:112;:::i;:::-;1740:125;;1888:2;1881:5;1874:17;1928:7;1923:2;1918;1914;1910:11;1906:20;1903:33;1900:53;;;1949:1;1946;1939:12;1900:53;2004:2;1999;1995;1991:11;1986:2;1979:5;1975:14;1962:45;2048:1;2043:2;2038;2031:5;2027:14;2023:23;2016:34;;2069:5;2059:15;;;;;1116:964;;;;;:::o;2085:245::-;2152:6;2205:2;2193:9;2184:7;2180:23;2176:32;2173:52;;;2221:1;2218;2211:12;2173:52;2253:9;2247:16;2272:28;2294:5;2272:28;:::i;2335:548::-;2429:6;2482:2;2470:9;2461:7;2457:23;2453:32;2450:52;;;2498:1;2495;2488:12;2450:52;2531:2;2525:9;2573:2;2565:6;2561:15;2642:6;2630:10;2627:22;2606:18;2594:10;2591:34;2588:62;2585:88;;;2653:18;;:::i;:::-;2689:2;2682:22;2728:40;2758:9;2728:40;:::i;:::-;2720:6;2713:56;2802:49;2847:2;2836:9;2832:18;2802:49;:::i;:::-;2797:2;2785:15;;2778:74;2789:6;2335:548;-1:-1:-1;;;2335:548:16:o;2888:450::-;2975:6;2983;2991;3044:2;3032:9;3023:7;3019:23;3015:32;3012:52;;;3060:1;3057;3050:12;3012:52;3083:40;3113:9;3083:40;:::i;:::-;3073:50;;3142:49;3187:2;3176:9;3172:18;3142:49;:::i;:::-;3132:59;;3234:2;3223:9;3219:18;3213:25;3278:10;3271:5;3267:22;3260:5;3257:33;3247:61;;3304:1;3301;3294:12;3247:61;3327:5;3317:15;;;2888:450;;;;;:::o;3343:180::-;3402:6;3455:2;3443:9;3434:7;3430:23;3426:32;3423:52;;;3471:1;3468;3461:12;3423:52;-1:-1:-1;3494:23:16;;3343:180;-1:-1:-1;3343:180:16:o;3528:184::-;3598:6;3651:2;3639:9;3630:7;3626:23;3622:32;3619:52;;;3667:1;3664;3657:12;3619:52;-1:-1:-1;3690:16:16;;3528:184;-1:-1:-1;3528:184:16:o;3717:254::-;3785:6;3793;3846:2;3834:9;3825:7;3821:23;3817:32;3814:52;;;3862:1;3859;3852:12;3814:52;3898:9;3885:23;3875:33;;3927:38;3961:2;3950:9;3946:18;3927:38;:::i;:::-;3917:48;;3717:254;;;;;:::o;3976:513::-;4056:6;4064;4072;4080;4133:3;4121:9;4112:7;4108:23;4104:33;4101:53;;;4150:1;4147;4140:12;4101:53;4186:9;4173:23;4163:33;;4246:2;4235:9;4231:18;4218:32;4259:28;4281:5;4259:28;:::i;:::-;4306:5;-1:-1:-1;4358:2:16;4343:18;;4330:32;;-1:-1:-1;4414:2:16;4399:18;;4386:32;4427:30;4386:32;4427:30;:::i;:::-;3976:513;;;;-1:-1:-1;3976:513:16;;-1:-1:-1;;3976:513:16:o;4494:484::-;4547:3;4585:5;4579:12;4612:6;4607:3;4600:19;4638:4;4667:2;4662:3;4658:12;4651:19;;4704:2;4697:5;4693:14;4725:1;4735:218;4749:6;4746:1;4743:13;4735:218;;;4814:13;;4829:42;4810:62;4798:75;;4893:12;;;;4928:15;;;;4771:1;4764:9;4735:218;;;-1:-1:-1;4969:3:16;;4494:484;-1:-1:-1;;;;;4494:484:16:o;4983:316::-;5024:3;5062:5;5056:12;5089:6;5084:3;5077:19;5105:63;5161:6;5154:4;5149:3;5145:14;5138:4;5131:5;5127:16;5105:63;:::i;:::-;5213:2;5201:15;5218:66;5197:88;5188:98;;;;5288:4;5184:109;;4983:316;-1:-1:-1;;4983:316:16:o;5677:274::-;5806:3;5844:6;5838:13;5860:53;5906:6;5901:3;5894:4;5886:6;5882:17;5860:53;:::i;:::-;5929:16;;;;;5677:274;-1:-1:-1;;5677:274:16:o;8499:381::-;8706:2;8695:9;8688:21;8669:4;8726:56;8778:2;8767:9;8763:18;8755:6;8726:56;:::i;:::-;8718:64;;8830:42;8822:6;8818:55;8813:2;8802:9;8798:18;8791:83;8499:381;;;;;:::o;8885:452::-;9120:2;9109:9;9102:21;9083:4;9140:56;9192:2;9181:9;9177:18;9169:6;9140:56;:::i;:::-;9132:64;;9232:6;9227:2;9216:9;9212:18;9205:34;9287:42;9279:6;9275:55;9270:2;9259:9;9255:18;9248:83;8885:452;;;;;;:::o;10476:219::-;10625:2;10614:9;10607:21;10588:4;10645:44;10685:2;10674:9;10670:18;10662:6;10645:44;:::i;17625:481::-;17856:6;17845:9;17838:25;17899:6;17894:2;17883:9;17879:18;17872:34;17954:42;17946:6;17942:55;17937:2;17926:9;17922:18;17915:83;18034:3;18029:2;18018:9;18014:18;18007:31;17819:4;18055:45;18095:3;18084:9;18080:19;18072:6;18055:45;:::i;:::-;18047:53;17625:481;-1:-1:-1;;;;;;17625:481:16:o;18111:334::-;18182:2;18176:9;18238:2;18228:13;;18243:66;18224:86;18212:99;;18341:18;18326:34;;18362:22;;;18323:62;18320:88;;;18388:18;;:::i;:::-;18424:2;18417:22;18111:334;;-1:-1:-1;18111:334:16:o;18450:367::-;18489:3;18524:1;18521;18517:9;18633:1;18565:66;18561:74;18558:1;18554:82;18549:2;18542:10;18538:99;18535:125;;;18640:18;;:::i;:::-;18759:1;18691:66;18687:74;18684:1;18680:82;18676:2;18672:91;18669:117;;;18766:18;;:::i;:::-;-1:-1:-1;;18802:9:16;;18450:367::o;18822:128::-;18862:3;18893:1;18889:6;18886:1;18883:13;18880:39;;;18899:18;;:::i;:::-;-1:-1:-1;18935:9:16;;18822:128::o;18955:274::-;18995:1;19021;19011:189;;19056:77;19053:1;19046:88;19157:4;19154:1;19147:15;19185:4;19182:1;19175:15;19011:189;-1:-1:-1;19214:9:16;;18955:274::o;19234:228::-;19274:7;19400:1;19332:66;19328:74;19325:1;19322:81;19317:1;19310:9;19303:17;19299:105;19296:131;;;19407:18;;:::i;:::-;-1:-1:-1;19447:9:16;;19234:228::o;19467:369::-;19506:4;19542:1;19539;19535:9;19651:1;19583:66;19579:74;19576:1;19572:82;19567:2;19560:10;19556:99;19553:125;;;19658:18;;:::i;:::-;19777:1;19709:66;19705:74;19702:1;19698:82;19694:2;19690:91;19687:117;;;19784:18;;:::i;:::-;-1:-1:-1;;19821:9:16;;19467:369::o;19841:125::-;19881:4;19909:1;19906;19903:8;19900:34;;;19914:18;;:::i;:::-;-1:-1:-1;19951:9:16;;19841:125::o;19971:258::-;20043:1;20053:113;20067:6;20064:1;20061:13;20053:113;;;20143:11;;;20137:18;20124:11;;;20117:39;20089:2;20082:10;20053:113;;;20184:6;20181:1;20178:13;20175:48;;;-1:-1:-1;;20219:1:16;20201:16;;20194:27;19971:258::o;20234:195::-;20273:3;20304:66;20297:5;20294:77;20291:103;;;20374:18;;:::i;:::-;-1:-1:-1;20421:1:16;20410:13;;20234:195::o;20434:191::-;20469:3;20500:66;20493:5;20490:77;20487:103;;;20570:18;;:::i;:::-;-1:-1:-1;20610:1:16;20606:13;;20434:191::o;20630:184::-;20682:77;20679:1;20672:88;20779:4;20776:1;20769:15;20803:4;20800:1;20793:15;20819:184;20871:77;20868:1;20861:88;20968:4;20965:1;20958:15;20992:4;20989:1;20982:15;21008:184;21060:77;21057:1;21050:88;21157:4;21154:1;21147:15;21181:4;21178:1;21171:15;21197:118;21283:5;21276:13;21269:21;21262:5;21259:32;21249:60;;21305:1;21302;21295:12

Swarm Source

ipfs://fdd03bbfbb9d842d249e24205c2849699aba7c02160b412052592b164012d6d5
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.