ETH Price: $3,362.24 (-0.00%)

Contract

0xCa8C5e51e235EF1018B2488e4e78e9205064D736
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Harvest117122782021-01-23 14:07:251436 days ago1611410845IN
0xCa8C5e51...05064D736
0 ETH0.0832823861.00000145
Set Profit Facto...117031372021-01-22 4:23:081437 days ago1611289388IN
0xCa8C5e51...05064D736
0 ETH0.00330716116
Harvest116985482021-01-21 11:34:011438 days ago1611228841IN
0xCa8C5e51...05064D736
0 ETH0.0622083145
Harvest116908222021-01-20 7:07:071439 days ago1611126427IN
0xCa8C5e51...05064D736
0 ETH0.0567063341.02
Harvest116806492021-01-18 17:37:421440 days ago1610991462IN
0xCa8C5e51...05064D736
0 ETH0.0926212667
Harvest116743982021-01-17 18:42:161441 days ago1610908936IN
0xCa8C5e51...05064D736
0 ETH0.0635639546
Harvest116726562021-01-17 12:19:251442 days ago1610885965IN
0xCa8C5e51...05064D736
0 ETH0.0566786841.00000145
Set Max Report D...116663762021-01-16 12:56:091443 days ago1610801769IN
0xCa8C5e51...05064D736
0 ETH0.001736361.00000145
Harvest116635312021-01-16 2:20:271443 days ago1610763627IN
0xCa8C5e51...05064D736
0 ETH0.0551579240
Harvest116593272021-01-15 11:08:301444 days ago1610708910IN
0xCa8C5e51...05064D736
0 ETH0.0563504840.8964248
Harvest116551282021-01-14 19:38:181444 days ago1610653098IN
0xCa8C5e51...05064D736
0 ETH0.038008559
Set Debt Thresho...116550592021-01-14 19:22:311444 days ago1610652151IN
0xCa8C5e51...05064D736
0 ETH0.002829965
Set Keeper116550342021-01-14 19:15:491444 days ago1610651749IN
0xCa8C5e51...05064D736
0 ETH0.0019324565

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
117123892021-01-23 14:32:341436 days ago1611412354
0xCa8C5e51...05064D736
0.02169782 ETH
117123892021-01-23 14:32:341436 days ago1611412354
0xCa8C5e51...05064D736
0.02169782 ETH
117123892021-01-23 14:32:341436 days ago1611412354
0xCa8C5e51...05064D736
0.01142766 ETH
117123892021-01-23 14:32:341436 days ago1611412354
0xCa8C5e51...05064D736
0.03196797 ETH
117122782021-01-23 14:07:251436 days ago1611410845
0xCa8C5e51...05064D736
0.58774171 ETH
117122782021-01-23 14:07:251436 days ago1611410845
0xCa8C5e51...05064D736
0.58774171 ETH
117122782021-01-23 14:07:251436 days ago1611410845
0xCa8C5e51...05064D736
0.30500905 ETH
117122782021-01-23 14:07:251436 days ago1611410845
0xCa8C5e51...05064D736
0.87047438 ETH
117091802021-01-23 2:45:501436 days ago1611369950
0xCa8C5e51...05064D736
0.62537964 ETH
117091802021-01-23 2:45:501436 days ago1611369950
0xCa8C5e51...05064D736
0.62537964 ETH
117091802021-01-23 2:45:501436 days ago1611369950
0xCa8C5e51...05064D736
0.31143751 ETH
117091802021-01-23 2:45:501436 days ago1611369950
0xCa8C5e51...05064D736
0.93932178 ETH
117083652021-01-22 23:45:201436 days ago1611359120
0xCa8C5e51...05064D736
0.46370987 ETH
117083652021-01-22 23:45:201436 days ago1611359120
0xCa8C5e51...05064D736
0.46370987 ETH
117083652021-01-22 23:45:201436 days ago1611359120
0xCa8C5e51...05064D736
0.22229494 ETH
117083652021-01-22 23:45:201436 days ago1611359120
0xCa8C5e51...05064D736
0.7051248 ETH
117083212021-01-22 23:34:291436 days ago1611358469
0xCa8C5e51...05064D736
0.45480934 ETH
117083212021-01-22 23:34:291436 days ago1611358469
0xCa8C5e51...05064D736
0.45480934 ETH
117083212021-01-22 23:34:291436 days ago1611358469
0xCa8C5e51...05064D736
0.21821495 ETH
117083212021-01-22 23:34:291436 days ago1611358469
0xCa8C5e51...05064D736
0.69140373 ETH
117059082021-01-22 14:45:041437 days ago1611326704
0xCa8C5e51...05064D736
0.61717949 ETH
117059082021-01-22 14:45:041437 days ago1611326704
0xCa8C5e51...05064D736
0.61717949 ETH
117059082021-01-22 14:45:041437 days ago1611326704
0xCa8C5e51...05064D736
0.28540118 ETH
117059082021-01-22 14:45:041437 days ago1611326704
0xCa8C5e51...05064D736
0.9489578 ETH
117027242021-01-22 2:44:571437 days ago1611283497
0xCa8C5e51...05064D736
0.44102496 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Strategy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-14
*/

// SPDX-License-Identifier: AGPL-3.0

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// Global Enums and Structs



struct StrategyParams {
    uint256 performanceFee;
    uint256 activation;
    uint256 debtRatio;
    uint256 rateLimit;
    uint256 lastReport;
    uint256 totalDebt;
    uint256 totalGain;
    uint256 totalLoss;
}

// Part: Gauge

interface Gauge {
    function deposit(uint256) external;

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

    function claim_rewards() external;

    function claimable_reward(address, address) external view returns (uint256);

    function withdraw(uint256) external;
}

// Part: ICurveFi

interface ICurveFi {
    function get_virtual_price() external view returns (uint256);

    function add_liquidity(
        // sBTC pool
        uint256[3] calldata amounts,
        uint256 min_mint_amount
    ) external;

    function add_liquidity(
        // bUSD pool
        uint256[4] calldata amounts,
        uint256 min_mint_amount
    ) external;

    function add_liquidity(
        // stETH pool
        uint256[2] calldata amounts,
        uint256 min_mint_amount
    ) external payable;

    function remove_liquidity_imbalance(uint256[4] calldata amounts, uint256 max_burn_amount) external;

    function remove_liquidity(uint256 _amount, uint256[4] calldata amounts) external;

    function remove_liquidity_one_coin(
        uint256 _token_amount,
        int128 i,
        uint256 min_amount
    ) external;

    function exchange(
        int128 from,
        int128 to,
        uint256 _from_amount,
        uint256 _min_to_amount
    ) external;

    function balances(int128) external view returns (uint256);

    function get_dy(
        int128 from,
        int128 to,
        uint256 _from_amount
    ) external view returns (uint256);
}

// Part: IMinter

interface IMinter {
    function mint(address) external;

}

// Part: IUniswapV2Router01

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

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

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

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

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

    function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

// Part: OpenZeppelin/[email protected]/Address

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// Part: OpenZeppelin/[email protected]/IERC20

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

// Part: OpenZeppelin/[email protected]/Math

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// Part: OpenZeppelin/[email protected]/SafeMath

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

// Part: ICrvV3

interface ICrvV3 is IERC20 {
    function minter() external view returns (address);

}

// Part: ISteth

interface ISteth is IERC20 {
    function submit(address) external payable returns (uint256);

}

// Part: IUniswapV2Router02

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

// Part: OpenZeppelin/[email protected]/SafeERC20

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

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

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

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

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

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

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

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

// Part: iearn-finance/[email protected]/VaultAPI

interface VaultAPI is IERC20 {
    function apiVersion() external view returns (string memory);

    function withdraw(uint256 shares, address recipient) external;

    function token() external view returns (address);

    function strategies(address _strategy) external view returns (StrategyParams memory);

    /**
     * View how much the Vault would increase this Strategy's borrow limit,
     * based on its present performance (since its last report). Can be used to
     * determine expectedReturn in your Strategy.
     */
    function creditAvailable() external view returns (uint256);

    /**
     * View how much the Vault would like to pull back from the Strategy,
     * based on its present performance (since its last report). Can be used to
     * determine expectedReturn in your Strategy.
     */
    function debtOutstanding() external view returns (uint256);

    /**
     * View how much the Vault expect this Strategy to return at the current
     * block, based on its present performance (since its last report). Can be
     * used to determine expectedReturn in your Strategy.
     */
    function expectedReturn() external view returns (uint256);

    /**
     * This is the main contact point where the Strategy interacts with the
     * Vault. It is critical that this call is handled as intended by the
     * Strategy. Therefore, this function will be called by BaseStrategy to
     * make sure the integration is correct.
     */
    function report(
        uint256 _gain,
        uint256 _loss,
        uint256 _debtPayment
    ) external returns (uint256);

    /**
     * This function should only be used in the scenario where the Strategy is
     * being retired but no migration of the positions are possible, or in the
     * extreme scenario that the Strategy needs to be put into "Emergency Exit"
     * mode in order for it to exit as quickly as possible. The latter scenario
     * could be for any reason that is considered "critical" that the Strategy
     * exits its position as fast as possible, such as a sudden change in
     * market conditions leading to losses, or an imminent failure in an
     * external dependency.
     */
    function revokeStrategy() external;

    /**
     * View the governance address of the Vault to assert privileged functions
     * can only be called by governance. The Strategy serves the Vault, so it
     * is subject to governance defined by the Vault.
     */
    function governance() external view returns (address);
}

// Part: iearn-finance/[email protected]/BaseStrategy

/**
 * @title Yearn Base Strategy
 * @author yearn.finance
 * @notice
 *  BaseStrategy implements all of the required functionality to interoperate
 *  closely with the Vault contract. This contract should be inherited and the
 *  abstract methods implemented to adapt the Strategy to the particular needs
 *  it has to create a return.
 *
 *  Of special interest is the relationship between `harvest()` and
 *  `vault.report()'. `harvest()` may be called simply because enough time has
 *  elapsed since the last report, and not because any funds need to be moved
 *  or positions adjusted. This is critical so that the Vault may maintain an
 *  accurate picture of the Strategy's performance. See  `vault.report()`,
 *  `harvest()`, and `harvestTrigger()` for further details.
 */
abstract contract BaseStrategy {
    using SafeMath for uint256;

    /**
     * @notice
     *  Used to track which version of `StrategyAPI` this Strategy
     *  implements.
     * @dev The Strategy's version must match the Vault's `API_VERSION`.
     * @return A string which holds the current API version of this contract.
     */
    function apiVersion() public pure returns (string memory) {
        return "0.3.0";
    }

    /**
     * @notice This Strategy's name.
     * @dev
     *  You can use this field to manage the "version" of this Strategy, e.g.
     *  `StrategySomethingOrOtherV1`. However, "API Version" is managed by
     *  `apiVersion()` function above.
     * @return This Strategy's name.
     */
    function name() external virtual view returns (string memory);

    /**
     * @notice
     *  The amount (priced in want) of the total assets managed by this strategy should not count
     *  towards Yearn's TVL calculations.
     * @dev
     *  You can override this field to set it to a non-zero value if some of the assets of this
     *  Strategy is somehow delegated inside another part of of Yearn's ecosystem e.g. another Vault.
     *  Note that this value must be strictly less than or equal to the amount provided by
     *  `estimatedTotalAssets()` below, as the TVL calc will be total assets minus delegated assets.
     * @return
     *  The amount of assets this strategy manages that should not be included in Yearn's Total Value
     *  Locked (TVL) calculation across it's ecosystem.
     */
    function delegatedAssets() external virtual view returns (uint256) {
        return 0;
    }

    VaultAPI public vault;
    address public strategist;
    address public rewards;
    address public keeper;

    IERC20 public want;

    // So indexers can keep track of this
    event Harvested(uint256 profit, uint256 loss, uint256 debtPayment, uint256 debtOutstanding);

    event UpdatedStrategist(address newStrategist);

    event UpdatedKeeper(address newKeeper);

    event UpdatedRewards(address rewards);

    event UpdatedReportDelay(uint256 delay);

    event UpdatedProfitFactor(uint256 profitFactor);

    event UpdatedDebtThreshold(uint256 debtThreshold);

    event EmergencyExitEnabled();

    // The maximum number of seconds between harvest calls. See
    // `setMaxReportDelay()` for more details.
    uint256 public maxReportDelay = 86400; // ~ once a day

    // The minimum multiple that `callCost` must be above the credit/profit to
    // be "justifiable". See `setProfitFactor()` for more details.
    uint256 public profitFactor = 100;

    // Use this to adjust the threshold at which running a debt causes a
    // harvest trigger. See `setDebtThreshold()` for more details.
    uint256 public debtThreshold = 0;

    // See note on `setEmergencyExit()`.
    bool public emergencyExit;

    // modifiers
    modifier onlyAuthorized() {
        require(msg.sender == strategist || msg.sender == governance(), "!authorized");
        _;
    }

    modifier onlyStrategist() {
        require(msg.sender == strategist, "!strategist");
        _;
    }

    modifier onlyGovernance() {
        require(msg.sender == governance(), "!authorized");
        _;
    }

    modifier onlyKeepers() {
        require(msg.sender == keeper || msg.sender == strategist || msg.sender == governance(), "!authorized");
        _;
    }

    /**
     * @notice
     *  Initializes the Strategy, this is called only once, when the
     *  contract is deployed.
     * @dev `_vault` should implement `VaultAPI`.
     * @param _vault The address of the Vault responsible for this Strategy.
     */
    constructor(address _vault) public {
        vault = VaultAPI(_vault);
        want = IERC20(vault.token());
        want.approve(_vault, uint256(-1)); // Give Vault unlimited access (might save gas)
        strategist = msg.sender;
        rewards = msg.sender;
        keeper = msg.sender;
    }

    /**
     * @notice
     *  Used to change `strategist`.
     *
     *  This may only be called by governance or the existing strategist.
     * @param _strategist The new address to assign as `strategist`.
     */
    function setStrategist(address _strategist) external onlyAuthorized {
        require(_strategist != address(0));
        strategist = _strategist;
        emit UpdatedStrategist(_strategist);
    }

    /**
     * @notice
     *  Used to change `keeper`.
     *
     *  `keeper` is the only address that may call `tend()` or `harvest()`,
     *  other than `governance()` or `strategist`. However, unlike
     *  `governance()` or `strategist`, `keeper` may *only* call `tend()`
     *  and `harvest()`, and no other authorized functions, following the
     *  principle of least privilege.
     *
     *  This may only be called by governance or the strategist.
     * @param _keeper The new address to assign as `keeper`.
     */
    function setKeeper(address _keeper) external onlyAuthorized {
        require(_keeper != address(0));
        keeper = _keeper;
        emit UpdatedKeeper(_keeper);
    }

    /**
     * @notice
     *  Used to change `rewards`. Any distributed rewards will cease flowing
     *  to the old address and begin flowing to this address once the change
     *  is in effect.
     *
     *  This may only be called by the strategist.
     * @param _rewards The address to use for collecting rewards.
     */
    function setRewards(address _rewards) external onlyStrategist {
        require(_rewards != address(0));
        rewards = _rewards;
        emit UpdatedRewards(_rewards);
    }

    /**
     * @notice
     *  Used to change `maxReportDelay`. `maxReportDelay` is the maximum number
     *  of blocks that should pass for `harvest()` to be called.
     *
     *  For external keepers (such as the Keep3r network), this is the maximum
     *  time between jobs to wait. (see `harvestTrigger()`
     *  for more details.)
     *
     *  This may only be called by governance or the strategist.
     * @param _delay The maximum number of seconds to wait between harvests.
     */
    function setMaxReportDelay(uint256 _delay) external onlyAuthorized {
        maxReportDelay = _delay;
        emit UpdatedReportDelay(_delay);
    }

    /**
     * @notice
     *  Used to change `profitFactor`. `profitFactor` is used to determine
     *  if it's worthwhile to harvest, given gas costs. (See `harvestTrigger()`
     *  for more details.)
     *
     *  This may only be called by governance or the strategist.
     * @param _profitFactor A ratio to multiply anticipated
     * `harvest()` gas cost against.
     */
    function setProfitFactor(uint256 _profitFactor) external onlyAuthorized {
        profitFactor = _profitFactor;
        emit UpdatedProfitFactor(_profitFactor);
    }

    /**
     * @notice
     *  Sets how far the Strategy can go into loss without a harvest and report
     *  being required.
     *
     *  By default this is 0, meaning any losses would cause a harvest which
     *  will subsequently report the loss to the Vault for tracking. (See
     *  `harvestTrigger()` for more details.)
     *
     *  This may only be called by governance or the strategist.
     * @param _debtThreshold How big of a loss this Strategy may carry without
     * being required to report to the Vault.
     */
    function setDebtThreshold(uint256 _debtThreshold) external onlyAuthorized {
        debtThreshold = _debtThreshold;
        emit UpdatedDebtThreshold(_debtThreshold);
    }

    /**
     * Resolve governance address from Vault contract, used to make assertions
     * on protected functions in the Strategy.
     */
    function governance() internal view returns (address) {
        return vault.governance();
    }

    /**
     * @notice
     *  Provide an accurate estimate for the total amount of assets
     *  (principle + return) that this Strategy is currently managing,
     *  denominated in terms of `want` tokens.
     *
     *  This total should be "realizable" e.g. the total value that could
     *  *actually* be obtained from this Strategy if it were to divest its
     *  entire position based on current on-chain conditions.
     * @dev
     *  Care must be taken in using this function, since it relies on external
     *  systems, which could be manipulated by the attacker to give an inflated
     *  (or reduced) value produced by this function, based on current on-chain
     *  conditions (e.g. this function is possible to influence through
     *  flashloan attacks, oracle manipulations, or other DeFi attack
     *  mechanisms).
     *
     *  It is up to governance to use this function to correctly order this
     *  Strategy relative to its peers in the withdrawal queue to minimize
     *  losses for the Vault based on sudden withdrawals. This value should be
     *  higher than the total debt of the Strategy and higher than its expected
     *  value to be "safe".
     * @return The estimated total assets in this Strategy.
     */
    function estimatedTotalAssets() public virtual view returns (uint256);

    /*
     * @notice
     *  Provide an indication of whether this strategy is currently "active"
     *  in that it is managing an active position, or will manage a position in
     *  the future. This should correlate to `harvest()` activity, so that Harvest
     *  events can be tracked externally by indexing agents.
     * @return True if the strategy is actively managing a position.
     */
    function isActive() public view returns (bool) {
        return vault.strategies(address(this)).debtRatio > 0 || estimatedTotalAssets() > 0;
    }

    /**
     * Perform any Strategy unwinding or other calls necessary to capture the
     * "free return" this Strategy has generated since the last time its core
     * position(s) were adjusted. Examples include unwrapping extra rewards.
     * This call is only used during "normal operation" of a Strategy, and
     * should be optimized to minimize losses as much as possible.
     *
     * This method returns any realized profits and/or realized losses
     * incurred, and should return the total amounts of profits/losses/debt
     * payments (in `want` tokens) for the Vault's accounting (e.g.
     * `want.balanceOf(this) >= _debtPayment + _profit - _loss`).
     *
     * `_debtOutstanding` will be 0 if the Strategy is not past the configured
     * debt limit, otherwise its value will be how far past the debt limit
     * the Strategy is. The Strategy's debt limit is configured in the Vault.
     *
     * NOTE: `_debtPayment` should be less than or equal to `_debtOutstanding`.
     *       It is okay for it to be less than `_debtOutstanding`, as that
     *       should only used as a guide for how much is left to pay back.
     *       Payments should be made to minimize loss from slippage, debt,
     *       withdrawal fees, etc.
     *
     * See `vault.debtOutstanding()`.
     */
    function prepareReturn(uint256 _debtOutstanding)
        internal
        virtual
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        );

    /**
     * Perform any adjustments to the core position(s) of this Strategy given
     * what change the Vault made in the "investable capital" available to the
     * Strategy. Note that all "free capital" in the Strategy after the report
     * was made is available for reinvestment. Also note that this number
     * could be 0, and you should handle that scenario accordingly.
     *
     * See comments regarding `_debtOutstanding` on `prepareReturn()`.
     */
    function adjustPosition(uint256 _debtOutstanding) internal virtual;

    /**
     * Liquidate up to `_amountNeeded` of `want` of this strategy's positions,
     * irregardless of slippage. Any excess will be re-invested with `adjustPosition()`.
     * This function should return the amount of `want` tokens made available by the
     * liquidation. If there is a difference between them, `_loss` indicates whether the
     * difference is due to a realized loss, or if there is some other sitution at play
     * (e.g. locked funds). This function is used during emergency exit instead of
     * `prepareReturn()` to liquidate all of the Strategy's positions back to the Vault.
     *
     * NOTE: The invariant `_amountFreed + _loss <= _amountNeeded` should always be maintained
     */
    function liquidatePosition(uint256 _amountNeeded) internal virtual returns (uint256 _liquidatedAmount, uint256 _loss);

    /**
     *  `Harvest()` calls this function after shares are created during
     *  `vault.report()`. You can customize this function to any share
     *  distribution mechanism you want.
     *
     *   See `vault.report()` for further details.
     */
    function distributeRewards() internal virtual {
        // Transfer 100% of newly-minted shares awarded to this contract to the rewards address.
        uint256 balance = vault.balanceOf(address(this));
        if (balance > 0) {
            vault.transfer(rewards, balance);
        }
    }

    /**
     * @notice
     *  Provide a signal to the keeper that `tend()` should be called. The
     *  keeper will provide the estimated gas cost that they would pay to call
     *  `tend()`, and this function should use that estimate to make a
     *  determination if calling it is "worth it" for the keeper. This is not
     *  the only consideration into issuing this trigger, for example if the
     *  position would be negatively affected if `tend()` is not called
     *  shortly, then this can return `true` even if the keeper might be
     *  "at a loss" (keepers are always reimbursed by Yearn).
     * @dev
     *  `callCost` must be priced in terms of `want`.
     *
     *  This call and `harvestTrigger()` should never return `true` at the same
     *  time.
     * @param callCost The keeper's estimated cast cost to call `tend()`.
     * @return `true` if `tend()` should be called, `false` otherwise.
     */
    function tendTrigger(uint256 callCost) public virtual view returns (bool) {
        // We usually don't need tend, but if there are positions that need
        // active maintainence, overriding this function is how you would
        // signal for that.
        return false;
    }

    /**
     * @notice
     *  Adjust the Strategy's position. The purpose of tending isn't to
     *  realize gains, but to maximize yield by reinvesting any returns.
     *
     *  See comments on `adjustPosition()`.
     *
     *  This may only be called by governance, the strategist, or the keeper.
     */
    function tend() external onlyKeepers {
        // Don't take profits with this call, but adjust for better gains
        adjustPosition(vault.debtOutstanding());
    }

    /**
     * @notice
     *  Provide a signal to the keeper that `harvest()` should be called. The
     *  keeper will provide the estimated gas cost that they would pay to call
     *  `harvest()`, and this function should use that estimate to make a
     *  determination if calling it is "worth it" for the keeper. This is not
     *  the only consideration into issuing this trigger, for example if the
     *  position would be negatively affected if `harvest()` is not called
     *  shortly, then this can return `true` even if the keeper might be "at a
     *  loss" (keepers are always reimbursed by Yearn).
     * @dev
     *  `callCost` must be priced in terms of `want`.
     *
     *  This call and `tendTrigger` should never return `true` at the
     *  same time.
     *
     *  See `maxReportDelay`, `profitFactor`, `debtThreshold` to adjust the
     *  strategist-controlled parameters that will influence whether this call
     *  returns `true` or not. These parameters will be used in conjunction
     *  with the parameters reported to the Vault (see `params`) to determine
     *  if calling `harvest()` is merited.
     *
     *  It is expected that an external system will check `harvestTrigger()`.
     *  This could be a script run off a desktop or cloud bot (e.g.
     *  https://github.com/iearn-finance/yearn-vaults/blob/master/scripts/keep.py),
     *  or via an integration with the Keep3r network (e.g.
     *  https://github.com/Macarse/GenericKeep3rV2/blob/master/contracts/keep3r/GenericKeep3rV2.sol).
     * @param callCost The keeper's estimated cast cost to call `harvest()`.
     * @return `true` if `harvest()` should be called, `false` otherwise.
     */
    function harvestTrigger(uint256 callCost) public virtual view returns (bool) {
        StrategyParams memory params = vault.strategies(address(this));

        // Should not trigger if Strategy is not activated
        if (params.activation == 0) return false;

        // Should trigger if hasn't been called in a while
        if (block.timestamp.sub(params.lastReport) >= maxReportDelay) return true;

        // If some amount is owed, pay it back
        // NOTE: Since debt is based on deposits, it makes sense to guard against large
        //       changes to the value from triggering a harvest directly through user
        //       behavior. This should ensure reasonable resistance to manipulation
        //       from user-initiated withdrawals as the outstanding debt fluctuates.
        uint256 outstanding = vault.debtOutstanding();
        if (outstanding > debtThreshold) return true;

        // Check for profits and losses
        uint256 total = estimatedTotalAssets();
        // Trigger if we have a loss to report
        if (total.add(debtThreshold) < params.totalDebt) return true;

        uint256 profit = 0;
        if (total > params.totalDebt) profit = total.sub(params.totalDebt); // We've earned a profit!

        // Otherwise, only trigger if it "makes sense" economically (gas cost
        // is <N% of value moved)
        uint256 credit = vault.creditAvailable();
        return (profitFactor.mul(callCost) < credit.add(profit));
    }

    /**
     * @notice
     *  Harvests the Strategy, recognizing any profits or losses and adjusting
     *  the Strategy's position.
     *
     *  In the rare case the Strategy is in emergency shutdown, this will exit
     *  the Strategy's position.
     *
     *  This may only be called by governance, the strategist, or the keeper.
     * @dev
     *  When `harvest()` is called, the Strategy reports to the Vault (via
     *  `vault.report()`), so in some cases `harvest()` must be called in order
     *  to take in profits, to borrow newly available funds from the Vault, or
     *  otherwise adjust its position. In other cases `harvest()` must be
     *  called to report to the Vault on the Strategy's position, especially if
     *  any losses have occurred.
     */
    function harvest() external onlyKeepers {
        uint256 profit = 0;
        uint256 loss = 0;
        uint256 debtOutstanding = vault.debtOutstanding();
        uint256 debtPayment = 0;
        if (emergencyExit) {
            // Free up as much capital as possible
            uint256 totalAssets = estimatedTotalAssets();
            // NOTE: use the larger of total assets or debt outstanding to book losses properly
            (debtPayment, loss) = liquidatePosition(totalAssets > debtOutstanding ? totalAssets : debtOutstanding);
            // NOTE: take up any remainder here as profit
            if (debtPayment > debtOutstanding) {
                profit = debtPayment.sub(debtOutstanding);
                debtPayment = debtOutstanding;
            }
        } else {
            // Free up returns for Vault to pull
            (profit, loss, debtPayment) = prepareReturn(debtOutstanding);
        }

        // Allow Vault to take up to the "harvested" balance of this contract,
        // which is the amount it has earned since the last time it reported to
        // the Vault.
        debtOutstanding = vault.report(profit, loss, debtPayment);

        // Distribute any reward shares earned by the strategy on this report
        distributeRewards();

        // Check if free returns are left, and re-invest them
        adjustPosition(debtOutstanding);

        emit Harvested(profit, loss, debtPayment, debtOutstanding);
    }

    /**
     * @notice
     *  Withdraws `_amountNeeded` to `vault`.
     *
     *  This may only be called by the Vault.
     * @param _amountNeeded How much `want` to withdraw.
     * @return _loss Any realized losses
     */
    function withdraw(uint256 _amountNeeded) external returns (uint256 _loss) {
        require(msg.sender == address(vault), "!vault");
        // Liquidate as much as possible to `want`, up to `_amount`
        uint256 amountFreed;
        (amountFreed, _loss) = liquidatePosition(_amountNeeded);
        // Send it directly back (NOTE: Using `msg.sender` saves some gas here)
        want.transfer(msg.sender, amountFreed);
        // NOTE: Reinvest anything leftover on next `tend`/`harvest`
    }

    /**
     * Do anything necessary to prepare this Strategy for migration, such as
     * transferring any reserve or LP tokens, CDPs, or other tokens or stores of
     * value.
     */
    function prepareMigration(address _newStrategy) internal virtual;

    /**
     * @notice
     *  Transfers all `want` from this Strategy to `_newStrategy`.
     *
     *  This may only be called by governance or the Vault.
     * @dev
     *  The new Strategy's Vault must be the same as this Strategy's Vault.
     * @param _newStrategy The Strategy to migrate to.
     */
    function migrate(address _newStrategy) external {
        require(msg.sender == address(vault) || msg.sender == governance());
        require(BaseStrategy(_newStrategy).vault() == vault);
        prepareMigration(_newStrategy);
        want.transfer(_newStrategy, want.balanceOf(address(this)));
    }

    /**
     * @notice
     *  Activates emergency exit. Once activated, the Strategy will exit its
     *  position upon the next harvest, depositing all funds into the Vault as
     *  quickly as is reasonable given on-chain conditions.
     *
     *  This may only be called by governance or the strategist.
     * @dev
     *  See `vault.setEmergencyShutdown()` and `harvest()` for further details.
     */
    function setEmergencyExit() external onlyAuthorized {
        emergencyExit = true;
        vault.revokeStrategy();

        emit EmergencyExitEnabled();
    }

    /**
     * Override this to add all tokens/tokenized positions this contract
     * manages on a *persistent* basis (e.g. not just for swapping back to
     * want ephemerally).
     *
     * NOTE: Do *not* include `want`, already included in `sweep` below.
     *
     * Example:
     *
     *    function protectedTokens() internal override view returns (address[] memory) {
     *      address[] memory protected = new address[](3);
     *      protected[0] = tokenA;
     *      protected[1] = tokenB;
     *      protected[2] = tokenC;
     *      return protected;
     *    }
     */
    function protectedTokens() internal virtual view returns (address[] memory);

    /**
     * @notice
     *  Removes tokens from this Strategy that are not the type of tokens
     *  managed by this Strategy. This may be used in case of accidentally
     *  sending the wrong kind of token to this Strategy.
     *
     *  Tokens will be sent to `governance()`.
     *
     *  This will fail if an attempt is made to sweep `want`, or any tokens
     *  that are protected by this Strategy.
     *
     *  This may only be called by governance.
     * @dev
     *  Implement `protectedTokens()` to specify any additional tokens that
     *  should be protected from sweeping in addition to `want`.
     * @param _token The token to transfer out of this vault.
     */
    function sweep(address _token) external onlyGovernance {
        require(_token != address(want), "!want");
        require(_token != address(vault), "!shares");

        address[] memory _protectedTokens = protectedTokens();
        for (uint256 i; i < _protectedTokens.length; i++) require(_token != _protectedTokens[i], "!protected");

        IERC20(_token).transfer(governance(), IERC20(_token).balanceOf(address(this)));
    }
}

// File: Strategy.sol

// Import interfaces for many popular DeFi projects, or add your own!
//import "../interfaces/<protocol>/<Interface>.sol";

contract Strategy is BaseStrategy {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    IUniswapV2Router02 public constant uniswapRouter = IUniswapV2Router02(address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D));
    address public constantCurveContractV3 =  address(0x06325440D014e39736583c165C2963BA99fAf14E);
    Gauge public LiquidityGaugeV2 =  Gauge(address(0x182B723a58739a9c974cFDB385ceaDb237453c28));
    ICurveFi public StableSwapSTETH =  ICurveFi(address(0xDC24316b9AE028F1497c275EB9192a3Ea0f67022));
   // IMinter public CrvMinter = IMinter(address(0xd061D61a4d941c39E5453435B6345Dc261C2fcE0));

    address public constant weth = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);

    ISteth public stETH =  ISteth(address(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84));
    IERC20 public LDO =  IERC20(address(0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32));
    ICrvV3 public CRV =  ICrvV3(address(0xD533a949740bb3306d119CC777fa900bA034cd52));


    constructor(address _vault) public BaseStrategy(_vault) {
        // You can set these parameters on deployment to whatever you want
        // maxReportDelay = 6300;
        // profitFactor = 100;
        // debtThreshold = 0;

        want.safeApprove(address(LiquidityGaugeV2), uint256(-1));
        stETH.approve(address(StableSwapSTETH), uint256(-1));
        LDO.safeApprove(address(uniswapRouter), uint256(-1));
        CRV.approve(address(uniswapRouter), uint256(-1));
    }

    //we get eth
    receive() external payable {}


    // ******** OVERRIDE THESE METHODS FROM BASE CONTRACT ************

    function name() external override view returns (string memory) {
        // Add your own name here, suggestion e.g. "StrategyCreamYFI"
        return "StrategystETHCurve";
    }

    function estimatedTotalAssets() public override view returns (uint256) {
        uint256 currentBal = LiquidityGaugeV2.balanceOf(address(this));

        //uint256 claimableLDO = LiquidityGaugeV2.claimable_reward(address(this), address(LDO));
        //uint256 LDOshaare = _estimateSell(address(LDO), claimableLDO);

        //uint256 claimableCRV = LiquidityGaugeV2.claimable_reward(address(this), address(CRV));
        //uint256 CRVshaare = _estimateSell(address(CRV), claimableCRV);

        //uint256 futureBal = claimableLDO.add(claimableCRV).mul(9).div(10);

        return currentBal;
    }

    function prepareReturn(uint256 _debtOutstanding)
        internal
        override
        returns (
            uint256 _profit,
            uint256 _loss,
            uint256 _debtPayment
        )
    {
        // TODO: Do stuff here to free up any returns back into `want`
        // NOTE: Return `_profit` which is value generated by all positions, priced in `want`
        // NOTE: Should try to free up at least `_debtOutstanding` of underlying position

        uint256 guageTokens = LiquidityGaugeV2.balanceOf(address(this));
        if(guageTokens > 0){
            LiquidityGaugeV2.claim_rewards();
            IMinter(CRV.minter()).mint(address(LiquidityGaugeV2));

           uint256 ldo_balance = LDO.balanceOf(address(this));

            if(ldo_balance > 0){
                _sell(address(LDO), ldo_balance);
            }

            uint256 crv_balance = CRV.balanceOf(address(this));

            if(crv_balance > 0){
                _sell(address(CRV), crv_balance);
            }

            uint256 balance = address(this).balance;
            uint256 balance2 = stETH.submit{value: balance/2}(strategist);
            balance = address(this).balance;
            balance2 = stETH.balanceOf(address(this));

            StableSwapSTETH.add_liquidity{value: balance}([balance, balance2], 0);

            _profit = want.balanceOf(address(this));
        }

        if(_debtOutstanding > 0){
            if(_debtOutstanding > _profit){
                uint256 stakedBal = LiquidityGaugeV2.balanceOf(address(this));
                LiquidityGaugeV2.withdraw(Math.min(stakedBal,_debtOutstanding - _profit));
            }

            _debtPayment = Math.min(_debtOutstanding, want.balanceOf(address(this)).sub(_profit));
        }

        
    }

    function adjustPosition(uint256 _debtOutstanding) internal override {
        // TODO: Do something to invest excess `want` tokens (from the Vault) into your positions
        // NOTE: Try to adjust positions so that `_debtOutstanding` can be freed up on *next* harvest (not immediately)

        uint256 _toInvest = want.balanceOf(address(this));

        if ( _debtOutstanding > _toInvest) {
            return;
        }

        LiquidityGaugeV2.deposit(_toInvest);
    }

    function liquidatePosition(uint256 _amountNeeded)
        internal
        override
        returns (uint256 _liquidatedAmount, uint256 _loss)
    {

        uint256 wantBal = want.balanceOf(address(this));
        uint256 stakedBal = LiquidityGaugeV2.balanceOf(address(this));

        if(_amountNeeded > wantBal){
            LiquidityGaugeV2.withdraw(Math.min(stakedBal, _amountNeeded - wantBal));
        }

        _liquidatedAmount = Math.min(_amountNeeded, want.balanceOf(address(this)));

    }

    // NOTE: Can override `tendTrigger` and `harvestTrigger` if necessary

    function prepareMigration(address _newStrategy) internal override {
        prepareReturn(LiquidityGaugeV2.balanceOf(address(this)));
    }

    //sell all function
    function _sell(address currency, uint256 amount) internal {

        address[] memory path = new address[](2);
        path[0] = currency;
        path[1] = weth;

        uniswapRouter.swapExactTokensForETH(amount, uint256(0), path, address(this), now);

    }

    function _estimateSell(address currency, uint256 amount) internal view returns (uint256 outAmount){

        
        address[] memory path = new address[](2);
        path[0] = currency;
        path[1] = weth;
        uint256[] memory amounts = uniswapRouter.getAmountsOut(amount, path);
        outAmount = amounts[amounts.length - 1];

        return outAmount;

    }

    // Override this to add all tokens/tokenized positions this contract manages
    // on a *persistent* basis (e.g. not just for swapping back to want ephemerally)
    // NOTE: Do *not* include `want`, already included in `sweep` below
    //
    // Example:
    //
    //    function protectedTokens() internal override view returns (address[] memory) {
    //      address[] memory protected = new address[](3);
    //      protected[0] = tokenA;
    //      protected[1] = tokenB;
    //      protected[2] = tokenC;
    //      return protected;
    //    }
    function protectedTokens()
        internal
        override
        view
        returns (address[] memory)
    {

        address[] memory protected = new address[](1);
          protected[0] = address(LiquidityGaugeV2);
    
          return protected;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"EmergencyExitEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loss","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtPayment","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtOutstanding","type":"uint256"}],"name":"Harvested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"debtThreshold","type":"uint256"}],"name":"UpdatedDebtThreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newKeeper","type":"address"}],"name":"UpdatedKeeper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profitFactor","type":"uint256"}],"name":"UpdatedProfitFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"UpdatedReportDelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rewards","type":"address"}],"name":"UpdatedRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newStrategist","type":"address"}],"name":"UpdatedStrategist","type":"event"},{"inputs":[],"name":"CRV","outputs":[{"internalType":"contract ICrvV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LDO","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LiquidityGaugeV2","outputs":[{"internalType":"contract Gauge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"StableSwapSTETH","outputs":[{"internalType":"contract ICurveFi","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apiVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"constantCurveContractV3","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"debtThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegatedAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyExit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"estimatedTotalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCost","type":"uint256"}],"name":"harvestTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxReportDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newStrategy","type":"address"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"profitFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_debtThreshold","type":"uint256"}],"name":"setDebtThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEmergencyExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setMaxReportDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profitFactor","type":"uint256"}],"name":"setProfitFactor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewards","type":"address"}],"name":"setRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategist","type":"address"}],"name":"setStrategist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stETH","outputs":[{"internalType":"contract ISteth","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"callCost","type":"uint256"}],"name":"tendTrigger","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract VaultAPI","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountNeeded","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"_loss","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526201518060055560646006556000600755600880547406325440d014e39736583c165c2963ba99faf14e00610100600160a81b0319909116179055600980546001600160a01b031990811673182b723a58739a9c974cfdb385ceadb237453c2817909155600a8054821673dc24316b9ae028f1497c275eb9192a3ea0f67022179055600b8054821673ae7ab96520de3a18e5e111b5eaab095312d7fe84179055600c80548216735a98fcbea516cf06857215779fd812ca3bef1b32179055600d805490911673d533a949740bb3306d119cc777fa900ba034cd52179055348015620000ee57600080fd5b50604051620036a1380380620036a18339810160408190526200011191620006ec565b600080546001600160a01b0319166001600160a01b03838116919091179182905560408051637e062a3560e11b8152905184939092169163fc0c546a91600480820192602092909190829003018186803b1580156200016f57600080fd5b505afa15801562000184573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001aa9190620006ec565b600480546001600160a01b0319166001600160a01b039283161780825560405163095ea7b360e01b815292169163095ea7b391620001ef91859160001991016200078f565b602060405180830381600087803b1580156200020a57600080fd5b505af11580156200021f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024591906200071c565b505060018054336001600160a01b0319918216811790925560028054821683179055600380549091169091179055600954600454620002a0916001600160a01b03918216911660001962000414602090811b620016bd17901c565b600b54600a5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392620002da92911690600019906004016200078f565b602060405180830381600087803b158015620002f557600080fd5b505af11580156200030a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200033091906200071c565b50600c546200036c906001600160a01b0316737a250d5630b4cf539739df2c5dacb4c659f2488d60001962000414602090811b620016bd17901c565b600d5460405163095ea7b360e01b81526001600160a01b039091169063095ea7b390620003b690737a250d5630b4cf539739df2c5dacb4c659f2488d90600019906004016200078f565b602060405180830381600087803b158015620003d157600080fd5b505af1158015620003e6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200040c91906200071c565b5050620008ee565b801580620004a35750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906200044d903090869060040162000775565b60206040518083038186803b1580156200046657600080fd5b505afa1580156200047b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004a191906200073e565b155b620004cb5760405162461bcd60e51b8152600401620004c2906200085e565b60405180910390fd5b620005268363095ea7b360e01b8484604051602401620004ed9291906200078f565b60408051808303601f190181529190526020810180516001600160e01b0319939093166001600160e01b03938416179052906200052b16565b505050565b606062000587826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620005c760201b620017b7179092919060201c565b805190915015620005265780806020019051810190620005a891906200071c565b620005265760405162461bcd60e51b8152600401620004c29062000814565b6060620005d88484600085620005e0565b949350505050565b6060620005ed85620006b2565b6200060c5760405162461bcd60e51b8152600401620004c290620007dd565b60006060866001600160a01b031685876040516200062b919062000757565b60006040518083038185875af1925050503d80600081146200066a576040519150601f19603f3d011682016040523d82523d6000602084013e6200066f565b606091505b5091509150811562000685579150620005d89050565b805115620006965780518082602001fd5b8360405162461bcd60e51b8152600401620004c29190620007a8565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590620005d8575050151592915050565b600060208284031215620006fe578081fd5b81516001600160a01b038116811462000715578182fd5b9392505050565b6000602082840312156200072e578081fd5b8151801515811462000715578182fd5b60006020828403121562000750578081fd5b5051919050565b600082516200076b818460208701620008bb565b9190910192915050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b03929092168252602082015260400190565b6000602082528251806020840152620007c9816040850160208701620008bb565b601f01601f19169190910160400192915050565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60005b83811015620008d8578181015183820152602001620008be565b83811115620008e8576000848401525b50505050565b612da380620008fe6000396000f3fe6080604052600436106102135760003560e01c8063801492d711610118578063ce5494bb116100a0578063efbb5cb01161006f578063efbb5cb014610557578063f017c92f1461056c578063f06b34ef1461058c578063fbfa77cf146105a1578063fcf2d0ad146105b65761021a565b8063ce5494bb146104e2578063d88bba1114610502578063ec38a86214610517578063ed882c2b146105375761021a565b8063945c9142116100e7578063945c91421461046e5780639ec5a89414610483578063aced166114610498578063c1fe3e48146104ad578063c7b9d530146104c25761021a565b8063801492d71461040f5780638cdfe166146104245780638e6350e21461043957806391397ab41461044e5761021a565b806328b7ccf71161019b5780634641257d1161016a5780634641257d146103905780635641ec03146103a5578063650d1880146103ba578063735de9f7146103da578063748747e6146103ef5761021a565b806328b7ccf7146103315780632e1a7d4d146103465780633fc8cef314610366578063440368a31461037b5761021a565b80631ed042d6116101e25780631ed042d6146102ae5780631f1fcd51146102d05780631fe4a686146102e557806322f3e2d4146102fa578063258294101461031c5761021a565b806301681a621461021f57806306fdde03146102415780630f969b871461026c5780631d12f28b1461028c5761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b5061023f61023a3660046127b6565b6105cb565b005b34801561024d57600080fd5b506102566107d5565b60405161026391906129eb565b60405180910390f35b34801561027857600080fd5b5061023f610287366004612915565b610801565b34801561029857600080fd5b506102a161088e565b6040516102639190612c3b565b3480156102ba57600080fd5b506102c3610894565b6040516102639190612961565b3480156102dc57600080fd5b506102c36108a3565b3480156102f157600080fd5b506102c36108b2565b34801561030657600080fd5b5061030f6108c1565b60405161026391906129e0565b34801561032857600080fd5b5061025661095f565b34801561033d57600080fd5b506102a161097e565b34801561035257600080fd5b506102a1610361366004612915565b610984565b34801561037257600080fd5b506102c3610a4a565b34801561038757600080fd5b5061023f610a62565b34801561039c57600080fd5b5061023f610b49565b3480156103b157600080fd5b5061030f610d78565b3480156103c657600080fd5b5061030f6103d5366004612915565b610d81565b3480156103e657600080fd5b506102c3610d89565b3480156103fb57600080fd5b5061023f61040a3660046127b6565b610da1565b34801561041b57600080fd5b506102c3610e4c565b34801561043057600080fd5b506102a1610e5b565b34801561044557600080fd5b506102a1610e61565b34801561045a57600080fd5b5061023f610469366004612915565b610e66565b34801561047a57600080fd5b506102c3610ee8565b34801561048f57600080fd5b506102c3610ef7565b3480156104a457600080fd5b506102c3610f06565b3480156104b957600080fd5b506102c3610f15565b3480156104ce57600080fd5b5061023f6104dd3660046127b6565b610f24565b3480156104ee57600080fd5b5061023f6104fd3660046127b6565b610fcf565b34801561050e57600080fd5b506102c36111af565b34801561052357600080fd5b5061023f6105323660046127b6565b6111be565b34801561054357600080fd5b5061030f610552366004612915565b611246565b34801561056357600080fd5b506102a16114af565b34801561057857600080fd5b5061023f610587366004612915565b61153a565b34801561059857600080fd5b506102c36115bc565b3480156105ad57600080fd5b506102c36115d0565b3480156105c257600080fd5b5061023f6115df565b6105d36117ce565b6001600160a01b0316336001600160a01b03161461060c5760405162461bcd60e51b815260040161060390612b52565b60405180910390fd5b6004546001600160a01b038281169116141561063a5760405162461bcd60e51b815260040161060390612a43565b6000546001600160a01b03828116911614156106685760405162461bcd60e51b815260040161060390612afa565b6060610672611855565b905060005b81518110156106cd5781818151811061068c57fe5b60200260200101516001600160a01b0316836001600160a01b031614156106c55760405162461bcd60e51b815260040161060390612bc1565b600101610677565b50816001600160a01b031663a9059cbb6106e56117ce565b6040516370a0823160e01b81526001600160a01b038616906370a0823190610711903090600401612961565b60206040518083038186803b15801561072957600080fd5b505afa15801561073d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610761919061292d565b6040518363ffffffff1660e01b815260040161077e929190612975565b602060405180830381600087803b15801561079857600080fd5b505af11580156107ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d09190612883565b505050565b60408051808201909152601281527153747261746567797374455448437572766560701b602082015290565b6001546001600160a01b0316331480610832575061081d6117ce565b6001600160a01b0316336001600160a01b0316145b61084e5760405162461bcd60e51b815260040161060390612b52565b60078190556040517fa68ba126373d04c004c5748c300c9fca12bd444b3d4332e261f3bd2bac4a860090610883908390612c3b565b60405180910390a150565b60075481565b6009546001600160a01b031681565b6004546001600160a01b031681565b6001546001600160a01b031681565b600080546040516339ebf82360e01b815282916001600160a01b0316906339ebf823906108f2903090600401612961565b6101006040518083038186803b15801561090b57600080fd5b505afa15801561091f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094391906128a3565b60400151118061095a575060006109586114af565b115b905090565b6040805180820190915260058152640302e332e360dc1b602082015290565b60055481565b600080546001600160a01b031633146109af5760405162461bcd60e51b815260040161060390612ada565b60006109ba836118b1565b6004805460405163a9059cbb60e01b81529295509293506001600160a01b039092169163a9059cbb916109f1913391869101612975565b602060405180830381600087803b158015610a0b57600080fd5b505af1158015610a1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a439190612883565b5050919050565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6003546001600160a01b0316331480610a8557506001546001600160a01b031633145b80610aa85750610a936117ce565b6001600160a01b0316336001600160a01b0316145b610ac45760405162461bcd60e51b815260040161060390612b52565b6000546040805163bf3759b560e01b81529051610b47926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b158015610b0a57600080fd5b505afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b42919061292d565b611ac4565b565b6003546001600160a01b0316331480610b6c57506001546001600160a01b031633145b80610b8f5750610b7a6117ce565b6001600160a01b0316336001600160a01b0316145b610bab5760405162461bcd60e51b815260040161060390612b52565b60008060008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b158015610bfd57600080fd5b505afa158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c35919061292d565b60085490915060009060ff1615610c8b576000610c506114af565b9050610c69838211610c625783610c64565b815b6118b1565b9450915082821115610c8557610c7f8284611bbd565b94508291505b50610c9c565b610c9482611c08565b919550935090505b6000546040516328766ebf60e21b81526001600160a01b039091169063a1d9bafc90610cd090879087908690600401612cb4565b602060405180830381600087803b158015610cea57600080fd5b505af1158015610cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d22919061292d565b9150610d2c6122da565b610d3582611ac4565b7f4c0f499ffe6befa0ca7c826b0916cf87bea98de658013e76938489368d60d50984848385604051610d6a9493929190612cca565b60405180910390a150505050565b60085460ff1681565b60005b919050565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6001546001600160a01b0316331480610dd25750610dbd6117ce565b6001600160a01b0316336001600160a01b0316145b610dee5760405162461bcd60e51b815260040161060390612b52565b6001600160a01b038116610e0157600080fd5b600380546001600160a01b0319166001600160a01b0383161790556040517f2f202ddb4a2e345f6323ed90f8fc8559d770a7abbbeee84dde8aca3351fe715490610883908390612961565b600a546001600160a01b031681565b60065481565b600090565b6001546001600160a01b0316331480610e975750610e826117ce565b6001600160a01b0316336001600160a01b0316145b610eb35760405162461bcd60e51b815260040161060390612b52565b60068190556040517fd94596337df4c2f0f44d30a7fc5db1c7bb60d9aca4185ed77c6fd96eb45ec29890610883908390612c3b565b600d546001600160a01b031681565b6002546001600160a01b031681565b6003546001600160a01b031681565b600b546001600160a01b031681565b6001546001600160a01b0316331480610f555750610f406117ce565b6001600160a01b0316336001600160a01b0316145b610f715760405162461bcd60e51b815260040161060390612b52565b6001600160a01b038116610f8457600080fd5b600180546001600160a01b0319166001600160a01b0383161790556040517f352ececae6d7d1e6d26bcf2c549dfd55be1637e9b22dc0cf3b71ddb36097a6b490610883908390612961565b6000546001600160a01b03163314806110005750610feb6117ce565b6001600160a01b0316336001600160a01b0316145b61100957600080fd5b60008054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b031663fbfa77cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561105f57600080fd5b505afa158015611073573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109791906127d2565b6001600160a01b0316146110aa57600080fd5b6110b381612399565b600480546040516370a0823160e01b81526001600160a01b039091169163a9059cbb91849184916370a08231916110ec91309101612961565b60206040518083038186803b15801561110457600080fd5b505afa158015611118573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113c919061292d565b6040518363ffffffff1660e01b8152600401611159929190612975565b602060405180830381600087803b15801561117357600080fd5b505af1158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190612883565b5050565b600c546001600160a01b031681565b6001546001600160a01b031633146111e85760405162461bcd60e51b815260040161060390612a1e565b6001600160a01b0381166111fb57600080fd5b600280546001600160a01b0319166001600160a01b0383161790556040517fafbb66abf8f3b719799940473a4052a3717cdd8e40fb6c8a3faadab316b1a06990610883908390612961565b6000611250612771565b6000546040516339ebf82360e01b81526001600160a01b03909116906339ebf82390611280903090600401612961565b6101006040518083038186803b15801561129957600080fd5b505afa1580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d191906128a3565b90508060200151600014156112ea576000915050610d84565b60055460808201516112fd904290611bbd565b1061130c576001915050610d84565b60008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b15801561135b57600080fd5b505afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611393919061292d565b90506007548111156113aa57600192505050610d84565b60006113b46114af565b90508260a001516113d06007548361242690919063ffffffff16565b10156113e25760019350505050610d84565b60008360a001518211156114035760a0840151611400908390611bbd565b90505b60008060009054906101000a90046001600160a01b03166001600160a01b031663112c1f9b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561145257600080fd5b505afa158015611466573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148a919061292d565b90506114968183612426565b6006546114a3908961244b565b10979650505050505050565b6009546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906114e4903090600401612961565b60206040518083038186803b1580156114fc57600080fd5b505afa158015611510573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611534919061292d565b91505090565b6001546001600160a01b031633148061156b57506115566117ce565b6001600160a01b0316336001600160a01b0316145b6115875760405162461bcd60e51b815260040161060390612b52565b60058190556040517f4aaf232568bff365c53cad69bdb6e83014e79df80216ceba8ee01769723dfd6890610883908390612c3b565b60085461010090046001600160a01b031681565b6000546001600160a01b031681565b6001546001600160a01b031633148061161057506115fb6117ce565b6001600160a01b0316336001600160a01b0316145b61162c5760405162461bcd60e51b815260040161060390612b52565b6008805460ff19166001179055600080546040805163507257cd60e11b815290516001600160a01b039092169263a0e4af9a9260048084019382900301818387803b15801561167a57600080fd5b505af115801561168e573d6000803e3d6000fd5b50506040517f97e963041e952738788b9d4871d854d282065b8f90a464928d6528f2e9a4fd0b925060009150a1565b8015806117455750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906116f3903090869060040161298e565b60206040518083038186803b15801561170b57600080fd5b505afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611743919061292d565b155b6117615760405162461bcd60e51b815260040161060390612be5565b6107d08363095ea7b360e01b8484604051602401611780929190612975565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612485565b60606117c68484600085612514565b949350505050565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561181d57600080fd5b505afa158015611831573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095a91906127d2565b60408051600180825281830190925260609182919060208083019080368337505060095482519293506001600160a01b03169183915060009061189457fe5b6001600160a01b0390921660209283029190910190910152905090565b600480546040516370a0823160e01b8152600092839283926001600160a01b03909116916370a08231916118e791309101612961565b60206040518083038186803b1580156118ff57600080fd5b505afa158015611913573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611937919061292d565b6009546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061196d903090600401612961565b60206040518083038186803b15801561198557600080fd5b505afa158015611999573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bd919061292d565b905081851115611a33576009546001600160a01b0316632e1a7d4d6119e4838589036125d8565b6040518263ffffffff1660e01b8152600401611a009190612c3b565b600060405180830381600087803b158015611a1a57600080fd5b505af1158015611a2e573d6000803e3d6000fd5b505050505b600480546040516370a0823160e01b8152611abb9288926001600160a01b0316916370a0823191611a6691309101612961565b60206040518083038186803b158015611a7e57600080fd5b505afa158015611a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab6919061292d565b6125d8565b93505050915091565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a0823191611af691309101612961565b60206040518083038186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b46919061292d565b905080821115611b565750611bba565b60095460405163b6b55f2560e01b81526001600160a01b039091169063b6b55f2590611b86908490600401612c3b565b600060405180830381600087803b158015611ba057600080fd5b505af1158015611bb4573d6000803e3d6000fd5b50505050505b50565b6000611bff83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125ee565b90505b92915050565b6009546040516370a0823160e01b81526000918291829182916001600160a01b03909116906370a0823190611c41903090600401612961565b60206040518083038186803b158015611c5957600080fd5b505afa158015611c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c91919061292d565b9050801561213f57600960009054906101000a90046001600160a01b03166001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ce957600080fd5b505af1158015611cfd573d6000803e3d6000fd5b50505050600d60009054906101000a90046001600160a01b03166001600160a01b031663075461726040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4f57600080fd5b505afa158015611d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8791906127d2565b6009546040516335313c2160e11b81526001600160a01b0392831692636a62784292611db892911690600401612961565b600060405180830381600087803b158015611dd257600080fd5b505af1158015611de6573d6000803e3d6000fd5b5050600c546040516370a0823160e01b8152600093506001600160a01b0390911691506370a0823190611e1d903090600401612961565b60206040518083038186803b158015611e3557600080fd5b505afa158015611e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6d919061292d565b90508015611e8b57600c54611e8b906001600160a01b03168261261a565b600d546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611ebc903090600401612961565b60206040518083038186803b158015611ed457600080fd5b505afa158015611ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0c919061292d565b90508015611f2a57600d54611f2a906001600160a01b03168261261a565b600b5460015460405163a1903eab60e01b815247926000926001600160a01b039182169263a1903eab926002870492611f6892911690600401612961565b6020604051808303818588803b158015611f8157600080fd5b505af1158015611f95573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611fba919061292d565b600b546040516370a0823160e01b81524794509192506001600160a01b0316906370a0823190611fee903090600401612961565b60206040518083038186803b15801561200657600080fd5b505afa15801561201a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203e919061292d565b600a54604080518082018252858152602081018490529051630b4c7e4d60e01b81529293506001600160a01b0390911691630b4c7e4d91859161208791906000906004016129a8565b6000604051808303818588803b1580156120a057600080fd5b505af11580156120b4573d6000803e3d6000fd5b5050600480546040516370a0823160e01b81526001600160a01b0390911694506370a0823193506120e89250309101612961565b60206040518083038186803b15801561210057600080fd5b505afa158015612114573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612138919061292d565b9750505050505b84156122d2578385111561223e576009546040516370a0823160e01b81526000916001600160a01b0316906370a082319061217e903090600401612961565b60206040518083038186803b15801561219657600080fd5b505afa1580156121aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ce919061292d565b6009549091506001600160a01b0316632e1a7d4d6121ee83888a036125d8565b6040518263ffffffff1660e01b815260040161220a9190612c3b565b600060405180830381600087803b15801561222457600080fd5b505af1158015612238573d6000803e3d6000fd5b50505050505b600480546040516370a0823160e01b81526122cf928892611ab69289926001600160a01b03909216916370a082319161227991309101612961565b60206040518083038186803b15801561229157600080fd5b505afa1580156122a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c9919061292d565b90611bbd565b91505b509193909250565b600080546040516370a0823160e01b81526001600160a01b03909116906370a082319061230b903090600401612961565b60206040518083038186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235b919061292d565b90508015611bba5760005460025460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb92611159929116908590600401612975565b6009546040516370a0823160e01b8152612420916001600160a01b0316906370a08231906123cb903090600401612961565b60206040518083038186803b1580156123e357600080fd5b505afa1580156123f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241b919061292d565b611c08565b50505050565b600082820183811015611bff5760405162461bcd60e51b815260040161060390612a62565b60008261245a57506000611c02565b8282028284828161246757fe5b0414611bff5760405162461bcd60e51b815260040161060390612a99565b60606124da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117b79092919063ffffffff16565b8051909150156107d057808060200190518101906124f89190612883565b6107d05760405162461bcd60e51b815260040161060390612b77565b606061251f85612738565b61253b5760405162461bcd60e51b815260040161060390612b1b565b60006060866001600160a01b031685876040516125589190612945565b60006040518083038185875af1925050503d8060008114612595576040519150601f19603f3d011682016040523d82523d6000602084013e61259a565b606091505b509150915081156125ae5791506117c69050565b8051156125be5780518082602001fd5b8360405162461bcd60e51b815260040161060391906129eb565b60008183106125e75781611bff565b5090919050565b600081848411156126125760405162461bcd60e51b815260040161060391906129eb565b505050900390565b6040805160028082526060808301845292602083019080368337019050509050828160008151811061264857fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061268a57fe5b6001600160a01b03909216602092830291909101909101526040516318cbafe560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d906318cbafe5906126e2908590600090869030904290600401612c44565b600060405180830381600087803b1580156126fc57600080fd5b505af1158015612710573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261242091908101906127ee565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906117c6575050151592915050565b60405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000602082840312156127c7578081fd5b8135611bff81612d58565b6000602082840312156127e3578081fd5b8151611bff81612d58565b60006020808385031215612800578182fd5b825167ffffffffffffffff811115612816578283fd5b8301601f81018513612826578283fd5b805161283961283482612d0c565b612ce5565b8181528381019083850185840285018601891015612855578687fd5b8694505b83851015612877578051835260019490940193918501918501612859565b50979650505050505050565b600060208284031215612894578081fd5b81518015158114611bff578182fd5b60006101008083850312156128b6578182fd5b6128bf81612ce5565b9050825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201528091505092915050565b600060208284031215612926578081fd5b5035919050565b60006020828403121561293e578081fd5b5051919050565b60008251612957818460208701612d2c565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b60608101818460005b60028110156129d05781518352602092830192909101906001016129b1565b5050508260408301529392505050565b901515815260200190565b6000602082528251806020840152612a0a816040850160208701612d2c565b601f01601f19169190910160400192915050565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b602080825260059082015264085dd85b9d60da1b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252600790820152662173686172657360c81b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600a9082015269085c1c9bdd1958dd195960b21b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015612c935784516001600160a01b031683529383019391830191600101612c6e565b50506001600160a01b03969096166060850152505050608001529392505050565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b60405181810167ffffffffffffffff81118282101715612d0457600080fd5b604052919050565b600067ffffffffffffffff821115612d22578081fd5b5060209081020190565b60005b83811015612d47578181015183820152602001612d2f565b838111156124205750506000910152565b6001600160a01b0381168114611bba57600080fdfea264697066735822122097c0d6b57d14f4d5da812ab81bcf2def0294ee67339fe6080ad94245dca2b04e64736f6c634300060c0033000000000000000000000000dcd90c7f6324cfa40d7169ef80b12031770b4325

Deployed Bytecode

0x6080604052600436106102135760003560e01c8063801492d711610118578063ce5494bb116100a0578063efbb5cb01161006f578063efbb5cb014610557578063f017c92f1461056c578063f06b34ef1461058c578063fbfa77cf146105a1578063fcf2d0ad146105b65761021a565b8063ce5494bb146104e2578063d88bba1114610502578063ec38a86214610517578063ed882c2b146105375761021a565b8063945c9142116100e7578063945c91421461046e5780639ec5a89414610483578063aced166114610498578063c1fe3e48146104ad578063c7b9d530146104c25761021a565b8063801492d71461040f5780638cdfe166146104245780638e6350e21461043957806391397ab41461044e5761021a565b806328b7ccf71161019b5780634641257d1161016a5780634641257d146103905780635641ec03146103a5578063650d1880146103ba578063735de9f7146103da578063748747e6146103ef5761021a565b806328b7ccf7146103315780632e1a7d4d146103465780633fc8cef314610366578063440368a31461037b5761021a565b80631ed042d6116101e25780631ed042d6146102ae5780631f1fcd51146102d05780631fe4a686146102e557806322f3e2d4146102fa578063258294101461031c5761021a565b806301681a621461021f57806306fdde03146102415780630f969b871461026c5780631d12f28b1461028c5761021a565b3661021a57005b600080fd5b34801561022b57600080fd5b5061023f61023a3660046127b6565b6105cb565b005b34801561024d57600080fd5b506102566107d5565b60405161026391906129eb565b60405180910390f35b34801561027857600080fd5b5061023f610287366004612915565b610801565b34801561029857600080fd5b506102a161088e565b6040516102639190612c3b565b3480156102ba57600080fd5b506102c3610894565b6040516102639190612961565b3480156102dc57600080fd5b506102c36108a3565b3480156102f157600080fd5b506102c36108b2565b34801561030657600080fd5b5061030f6108c1565b60405161026391906129e0565b34801561032857600080fd5b5061025661095f565b34801561033d57600080fd5b506102a161097e565b34801561035257600080fd5b506102a1610361366004612915565b610984565b34801561037257600080fd5b506102c3610a4a565b34801561038757600080fd5b5061023f610a62565b34801561039c57600080fd5b5061023f610b49565b3480156103b157600080fd5b5061030f610d78565b3480156103c657600080fd5b5061030f6103d5366004612915565b610d81565b3480156103e657600080fd5b506102c3610d89565b3480156103fb57600080fd5b5061023f61040a3660046127b6565b610da1565b34801561041b57600080fd5b506102c3610e4c565b34801561043057600080fd5b506102a1610e5b565b34801561044557600080fd5b506102a1610e61565b34801561045a57600080fd5b5061023f610469366004612915565b610e66565b34801561047a57600080fd5b506102c3610ee8565b34801561048f57600080fd5b506102c3610ef7565b3480156104a457600080fd5b506102c3610f06565b3480156104b957600080fd5b506102c3610f15565b3480156104ce57600080fd5b5061023f6104dd3660046127b6565b610f24565b3480156104ee57600080fd5b5061023f6104fd3660046127b6565b610fcf565b34801561050e57600080fd5b506102c36111af565b34801561052357600080fd5b5061023f6105323660046127b6565b6111be565b34801561054357600080fd5b5061030f610552366004612915565b611246565b34801561056357600080fd5b506102a16114af565b34801561057857600080fd5b5061023f610587366004612915565b61153a565b34801561059857600080fd5b506102c36115bc565b3480156105ad57600080fd5b506102c36115d0565b3480156105c257600080fd5b5061023f6115df565b6105d36117ce565b6001600160a01b0316336001600160a01b03161461060c5760405162461bcd60e51b815260040161060390612b52565b60405180910390fd5b6004546001600160a01b038281169116141561063a5760405162461bcd60e51b815260040161060390612a43565b6000546001600160a01b03828116911614156106685760405162461bcd60e51b815260040161060390612afa565b6060610672611855565b905060005b81518110156106cd5781818151811061068c57fe5b60200260200101516001600160a01b0316836001600160a01b031614156106c55760405162461bcd60e51b815260040161060390612bc1565b600101610677565b50816001600160a01b031663a9059cbb6106e56117ce565b6040516370a0823160e01b81526001600160a01b038616906370a0823190610711903090600401612961565b60206040518083038186803b15801561072957600080fd5b505afa15801561073d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610761919061292d565b6040518363ffffffff1660e01b815260040161077e929190612975565b602060405180830381600087803b15801561079857600080fd5b505af11580156107ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d09190612883565b505050565b60408051808201909152601281527153747261746567797374455448437572766560701b602082015290565b6001546001600160a01b0316331480610832575061081d6117ce565b6001600160a01b0316336001600160a01b0316145b61084e5760405162461bcd60e51b815260040161060390612b52565b60078190556040517fa68ba126373d04c004c5748c300c9fca12bd444b3d4332e261f3bd2bac4a860090610883908390612c3b565b60405180910390a150565b60075481565b6009546001600160a01b031681565b6004546001600160a01b031681565b6001546001600160a01b031681565b600080546040516339ebf82360e01b815282916001600160a01b0316906339ebf823906108f2903090600401612961565b6101006040518083038186803b15801561090b57600080fd5b505afa15801561091f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094391906128a3565b60400151118061095a575060006109586114af565b115b905090565b6040805180820190915260058152640302e332e360dc1b602082015290565b60055481565b600080546001600160a01b031633146109af5760405162461bcd60e51b815260040161060390612ada565b60006109ba836118b1565b6004805460405163a9059cbb60e01b81529295509293506001600160a01b039092169163a9059cbb916109f1913391869101612975565b602060405180830381600087803b158015610a0b57600080fd5b505af1158015610a1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a439190612883565b5050919050565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6003546001600160a01b0316331480610a8557506001546001600160a01b031633145b80610aa85750610a936117ce565b6001600160a01b0316336001600160a01b0316145b610ac45760405162461bcd60e51b815260040161060390612b52565b6000546040805163bf3759b560e01b81529051610b47926001600160a01b03169163bf3759b5916004808301926020929190829003018186803b158015610b0a57600080fd5b505afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b42919061292d565b611ac4565b565b6003546001600160a01b0316331480610b6c57506001546001600160a01b031633145b80610b8f5750610b7a6117ce565b6001600160a01b0316336001600160a01b0316145b610bab5760405162461bcd60e51b815260040161060390612b52565b60008060008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b158015610bfd57600080fd5b505afa158015610c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c35919061292d565b60085490915060009060ff1615610c8b576000610c506114af565b9050610c69838211610c625783610c64565b815b6118b1565b9450915082821115610c8557610c7f8284611bbd565b94508291505b50610c9c565b610c9482611c08565b919550935090505b6000546040516328766ebf60e21b81526001600160a01b039091169063a1d9bafc90610cd090879087908690600401612cb4565b602060405180830381600087803b158015610cea57600080fd5b505af1158015610cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d22919061292d565b9150610d2c6122da565b610d3582611ac4565b7f4c0f499ffe6befa0ca7c826b0916cf87bea98de658013e76938489368d60d50984848385604051610d6a9493929190612cca565b60405180910390a150505050565b60085460ff1681565b60005b919050565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6001546001600160a01b0316331480610dd25750610dbd6117ce565b6001600160a01b0316336001600160a01b0316145b610dee5760405162461bcd60e51b815260040161060390612b52565b6001600160a01b038116610e0157600080fd5b600380546001600160a01b0319166001600160a01b0383161790556040517f2f202ddb4a2e345f6323ed90f8fc8559d770a7abbbeee84dde8aca3351fe715490610883908390612961565b600a546001600160a01b031681565b60065481565b600090565b6001546001600160a01b0316331480610e975750610e826117ce565b6001600160a01b0316336001600160a01b0316145b610eb35760405162461bcd60e51b815260040161060390612b52565b60068190556040517fd94596337df4c2f0f44d30a7fc5db1c7bb60d9aca4185ed77c6fd96eb45ec29890610883908390612c3b565b600d546001600160a01b031681565b6002546001600160a01b031681565b6003546001600160a01b031681565b600b546001600160a01b031681565b6001546001600160a01b0316331480610f555750610f406117ce565b6001600160a01b0316336001600160a01b0316145b610f715760405162461bcd60e51b815260040161060390612b52565b6001600160a01b038116610f8457600080fd5b600180546001600160a01b0319166001600160a01b0383161790556040517f352ececae6d7d1e6d26bcf2c549dfd55be1637e9b22dc0cf3b71ddb36097a6b490610883908390612961565b6000546001600160a01b03163314806110005750610feb6117ce565b6001600160a01b0316336001600160a01b0316145b61100957600080fd5b60008054906101000a90046001600160a01b03166001600160a01b0316816001600160a01b031663fbfa77cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561105f57600080fd5b505afa158015611073573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109791906127d2565b6001600160a01b0316146110aa57600080fd5b6110b381612399565b600480546040516370a0823160e01b81526001600160a01b039091169163a9059cbb91849184916370a08231916110ec91309101612961565b60206040518083038186803b15801561110457600080fd5b505afa158015611118573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061113c919061292d565b6040518363ffffffff1660e01b8152600401611159929190612975565b602060405180830381600087803b15801561117357600080fd5b505af1158015611187573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190612883565b5050565b600c546001600160a01b031681565b6001546001600160a01b031633146111e85760405162461bcd60e51b815260040161060390612a1e565b6001600160a01b0381166111fb57600080fd5b600280546001600160a01b0319166001600160a01b0383161790556040517fafbb66abf8f3b719799940473a4052a3717cdd8e40fb6c8a3faadab316b1a06990610883908390612961565b6000611250612771565b6000546040516339ebf82360e01b81526001600160a01b03909116906339ebf82390611280903090600401612961565b6101006040518083038186803b15801561129957600080fd5b505afa1580156112ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d191906128a3565b90508060200151600014156112ea576000915050610d84565b60055460808201516112fd904290611bbd565b1061130c576001915050610d84565b60008060009054906101000a90046001600160a01b03166001600160a01b031663bf3759b56040518163ffffffff1660e01b815260040160206040518083038186803b15801561135b57600080fd5b505afa15801561136f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611393919061292d565b90506007548111156113aa57600192505050610d84565b60006113b46114af565b90508260a001516113d06007548361242690919063ffffffff16565b10156113e25760019350505050610d84565b60008360a001518211156114035760a0840151611400908390611bbd565b90505b60008060009054906101000a90046001600160a01b03166001600160a01b031663112c1f9b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561145257600080fd5b505afa158015611466573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148a919061292d565b90506114968183612426565b6006546114a3908961244b565b10979650505050505050565b6009546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906114e4903090600401612961565b60206040518083038186803b1580156114fc57600080fd5b505afa158015611510573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611534919061292d565b91505090565b6001546001600160a01b031633148061156b57506115566117ce565b6001600160a01b0316336001600160a01b0316145b6115875760405162461bcd60e51b815260040161060390612b52565b60058190556040517f4aaf232568bff365c53cad69bdb6e83014e79df80216ceba8ee01769723dfd6890610883908390612c3b565b60085461010090046001600160a01b031681565b6000546001600160a01b031681565b6001546001600160a01b031633148061161057506115fb6117ce565b6001600160a01b0316336001600160a01b0316145b61162c5760405162461bcd60e51b815260040161060390612b52565b6008805460ff19166001179055600080546040805163507257cd60e11b815290516001600160a01b039092169263a0e4af9a9260048084019382900301818387803b15801561167a57600080fd5b505af115801561168e573d6000803e3d6000fd5b50506040517f97e963041e952738788b9d4871d854d282065b8f90a464928d6528f2e9a4fd0b925060009150a1565b8015806117455750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906116f3903090869060040161298e565b60206040518083038186803b15801561170b57600080fd5b505afa15801561171f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611743919061292d565b155b6117615760405162461bcd60e51b815260040161060390612be5565b6107d08363095ea7b360e01b8484604051602401611780929190612975565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612485565b60606117c68484600085612514565b949350505050565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b15801561181d57600080fd5b505afa158015611831573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095a91906127d2565b60408051600180825281830190925260609182919060208083019080368337505060095482519293506001600160a01b03169183915060009061189457fe5b6001600160a01b0390921660209283029190910190910152905090565b600480546040516370a0823160e01b8152600092839283926001600160a01b03909116916370a08231916118e791309101612961565b60206040518083038186803b1580156118ff57600080fd5b505afa158015611913573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611937919061292d565b6009546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061196d903090600401612961565b60206040518083038186803b15801561198557600080fd5b505afa158015611999573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119bd919061292d565b905081851115611a33576009546001600160a01b0316632e1a7d4d6119e4838589036125d8565b6040518263ffffffff1660e01b8152600401611a009190612c3b565b600060405180830381600087803b158015611a1a57600080fd5b505af1158015611a2e573d6000803e3d6000fd5b505050505b600480546040516370a0823160e01b8152611abb9288926001600160a01b0316916370a0823191611a6691309101612961565b60206040518083038186803b158015611a7e57600080fd5b505afa158015611a92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab6919061292d565b6125d8565b93505050915091565b600480546040516370a0823160e01b81526000926001600160a01b03909216916370a0823191611af691309101612961565b60206040518083038186803b158015611b0e57600080fd5b505afa158015611b22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b46919061292d565b905080821115611b565750611bba565b60095460405163b6b55f2560e01b81526001600160a01b039091169063b6b55f2590611b86908490600401612c3b565b600060405180830381600087803b158015611ba057600080fd5b505af1158015611bb4573d6000803e3d6000fd5b50505050505b50565b6000611bff83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506125ee565b90505b92915050565b6009546040516370a0823160e01b81526000918291829182916001600160a01b03909116906370a0823190611c41903090600401612961565b60206040518083038186803b158015611c5957600080fd5b505afa158015611c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c91919061292d565b9050801561213f57600960009054906101000a90046001600160a01b03166001600160a01b031663e6f1daf26040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ce957600080fd5b505af1158015611cfd573d6000803e3d6000fd5b50505050600d60009054906101000a90046001600160a01b03166001600160a01b031663075461726040518163ffffffff1660e01b815260040160206040518083038186803b158015611d4f57600080fd5b505afa158015611d63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d8791906127d2565b6009546040516335313c2160e11b81526001600160a01b0392831692636a62784292611db892911690600401612961565b600060405180830381600087803b158015611dd257600080fd5b505af1158015611de6573d6000803e3d6000fd5b5050600c546040516370a0823160e01b8152600093506001600160a01b0390911691506370a0823190611e1d903090600401612961565b60206040518083038186803b158015611e3557600080fd5b505afa158015611e49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e6d919061292d565b90508015611e8b57600c54611e8b906001600160a01b03168261261a565b600d546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611ebc903090600401612961565b60206040518083038186803b158015611ed457600080fd5b505afa158015611ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0c919061292d565b90508015611f2a57600d54611f2a906001600160a01b03168261261a565b600b5460015460405163a1903eab60e01b815247926000926001600160a01b039182169263a1903eab926002870492611f6892911690600401612961565b6020604051808303818588803b158015611f8157600080fd5b505af1158015611f95573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611fba919061292d565b600b546040516370a0823160e01b81524794509192506001600160a01b0316906370a0823190611fee903090600401612961565b60206040518083038186803b15801561200657600080fd5b505afa15801561201a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061203e919061292d565b600a54604080518082018252858152602081018490529051630b4c7e4d60e01b81529293506001600160a01b0390911691630b4c7e4d91859161208791906000906004016129a8565b6000604051808303818588803b1580156120a057600080fd5b505af11580156120b4573d6000803e3d6000fd5b5050600480546040516370a0823160e01b81526001600160a01b0390911694506370a0823193506120e89250309101612961565b60206040518083038186803b15801561210057600080fd5b505afa158015612114573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612138919061292d565b9750505050505b84156122d2578385111561223e576009546040516370a0823160e01b81526000916001600160a01b0316906370a082319061217e903090600401612961565b60206040518083038186803b15801561219657600080fd5b505afa1580156121aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121ce919061292d565b6009549091506001600160a01b0316632e1a7d4d6121ee83888a036125d8565b6040518263ffffffff1660e01b815260040161220a9190612c3b565b600060405180830381600087803b15801561222457600080fd5b505af1158015612238573d6000803e3d6000fd5b50505050505b600480546040516370a0823160e01b81526122cf928892611ab69289926001600160a01b03909216916370a082319161227991309101612961565b60206040518083038186803b15801561229157600080fd5b505afa1580156122a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c9919061292d565b90611bbd565b91505b509193909250565b600080546040516370a0823160e01b81526001600160a01b03909116906370a082319061230b903090600401612961565b60206040518083038186803b15801561232357600080fd5b505afa158015612337573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235b919061292d565b90508015611bba5760005460025460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb92611159929116908590600401612975565b6009546040516370a0823160e01b8152612420916001600160a01b0316906370a08231906123cb903090600401612961565b60206040518083038186803b1580156123e357600080fd5b505afa1580156123f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241b919061292d565b611c08565b50505050565b600082820183811015611bff5760405162461bcd60e51b815260040161060390612a62565b60008261245a57506000611c02565b8282028284828161246757fe5b0414611bff5760405162461bcd60e51b815260040161060390612a99565b60606124da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117b79092919063ffffffff16565b8051909150156107d057808060200190518101906124f89190612883565b6107d05760405162461bcd60e51b815260040161060390612b77565b606061251f85612738565b61253b5760405162461bcd60e51b815260040161060390612b1b565b60006060866001600160a01b031685876040516125589190612945565b60006040518083038185875af1925050503d8060008114612595576040519150601f19603f3d011682016040523d82523d6000602084013e61259a565b606091505b509150915081156125ae5791506117c69050565b8051156125be5780518082602001fd5b8360405162461bcd60e51b815260040161060391906129eb565b60008183106125e75781611bff565b5090919050565b600081848411156126125760405162461bcd60e51b815260040161060391906129eb565b505050900390565b6040805160028082526060808301845292602083019080368337019050509050828160008151811061264857fe5b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061268a57fe5b6001600160a01b03909216602092830291909101909101526040516318cbafe560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d906318cbafe5906126e2908590600090869030904290600401612c44565b600060405180830381600087803b1580156126fc57600080fd5b505af1158015612710573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261242091908101906127ee565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906117c6575050151592915050565b60405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000602082840312156127c7578081fd5b8135611bff81612d58565b6000602082840312156127e3578081fd5b8151611bff81612d58565b60006020808385031215612800578182fd5b825167ffffffffffffffff811115612816578283fd5b8301601f81018513612826578283fd5b805161283961283482612d0c565b612ce5565b8181528381019083850185840285018601891015612855578687fd5b8694505b83851015612877578051835260019490940193918501918501612859565b50979650505050505050565b600060208284031215612894578081fd5b81518015158114611bff578182fd5b60006101008083850312156128b6578182fd5b6128bf81612ce5565b9050825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201528091505092915050565b600060208284031215612926578081fd5b5035919050565b60006020828403121561293e578081fd5b5051919050565b60008251612957818460208701612d2c565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b60608101818460005b60028110156129d05781518352602092830192909101906001016129b1565b5050508260408301529392505050565b901515815260200190565b6000602082528251806020840152612a0a816040850160208701612d2c565b601f01601f19169190910160400192915050565b6020808252600b908201526a085cdd1c985d1959da5cdd60aa1b604082015260600190565b602080825260059082015264085dd85b9d60da1b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b602080825260069082015265085d985d5b1d60d21b604082015260600190565b6020808252600790820152662173686172657360c81b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600b908201526a08585d5d1a1bdc9a5e995960aa1b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600a9082015269085c1c9bdd1958dd195960b21b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b90815260200190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015612c935784516001600160a01b031683529383019391830191600101612c6e565b50506001600160a01b03969096166060850152505050608001529392505050565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b60405181810167ffffffffffffffff81118282101715612d0457600080fd5b604052919050565b600067ffffffffffffffff821115612d22578081fd5b5060209081020190565b60005b83811015612d47578181015183820152602001612d2f565b838111156124205750506000910152565b6001600160a01b0381168114611bba57600080fdfea264697066735822122097c0d6b57d14f4d5da812ab81bcf2def0294ee67339fe6080ad94245dca2b04e64736f6c634300060c0033

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

000000000000000000000000dcd90c7f6324cfa40d7169ef80b12031770b4325

-----Decoded View---------------
Arg [0] : _vault (address): 0xdCD90C7f6324cfa40d7169ef80b12031770B4325

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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