ETH Price: $3,178.50 (-3.27%)

Contract

0x0aC5598DD50c95923FeD44151ec688152cEeAF22
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040109253492020-09-24 12:34:021510 days ago1600950842IN
 Create: StrategyBaselineBenzeneCurveRENwBTC
0 ETH0.174817100

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrategyBaselineBenzeneCurveRENwBTC

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-09-24
*/

// File: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

// File: contracts/interfaces/flamincome/Controller.sol


pragma solidity ^0.6.2;

interface Controller {
    function strategist() external view returns (address);
    function vaults(address) external view returns (address);
    function rewards() external view returns (address);
    function balanceOf(address) external view returns (uint);
    function withdraw(address, uint) external;
    function earn(address, uint) external;
}

// File: contracts/interfaces/flamincome/Vault.sol


pragma solidity ^0.6.2;

interface Vault {
    function token() external view returns (address);
    function priceE18() external view returns (uint);
    function deposit(uint) external;
    function withdraw(uint) external;
    function depositAll() external;
    function withdrawAll() external;
}

// File: contracts/interfaces/external/Curve.sol


pragma solidity ^0.6.2;

interface ICurveFi {
  function coins(int128) external view returns (address);
  function get_virtual_price() external view returns (uint);
  function add_liquidity(uint256[4] calldata amounts, uint256 min_mint_amount) external;
  function remove_liquidity_imbalance(uint256[4] calldata amounts, uint256 max_burn_amount) external;
  function remove_liquidity(uint256 _amount, uint256[4] calldata amounts) external;
  function exchange(int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount) external;
  function exchange_underlying(int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount) external;
}

interface ICurveFiBTC {
  function coins(int128) external view returns (address);
  function get_virtual_price() external view returns (uint);
  function add_liquidity(uint256[3] calldata amounts, uint256 min_mint_amount) external;
  function remove_liquidity_imbalance(uint256[3] calldata amounts, uint256 max_burn_amount) external;
  function remove_liquidity(uint256 _amount, uint256[3] calldata amounts) external;
  function exchange(int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount) external;
  function exchange_underlying(int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount) external;
}

interface ICurveFiREN {
  function coins(int128) external view returns (address);
  function get_virtual_price() external view returns (uint);
  function add_liquidity(uint256[2] calldata amounts, uint256 min_mint_amount) external;
  function remove_liquidity_imbalance(uint256[2] calldata amounts, uint256 max_burn_amount) external;
  function remove_liquidity(uint256 _amount, uint256[2] calldata amounts) external;
  function exchange(int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount) external;
  function exchange_underlying(int128 from, int128 to, uint256 _from_amount, uint256 _min_to_amount) external;
}

// File: contracts/interfaces/external/YFI.sol


pragma solidity ^0.6.2;

interface IYFIVault {
  function token() external view returns (address);
  function deposit(uint256 _amount) external;
  function depositAll() external;
  function withdrawAll() external;
  function withdraw(uint256 _amount) external;
  function getPricePerFullShare() external view returns (uint);
  function earn() external;
}

// File: @openzeppelin/contracts/math/Math.sol



pragma solidity ^0.6.0;

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

// File: contracts/implementations/strategy/StrategyBaseline.sol


pragma solidity ^0.6.2;







abstract contract StrategyBaseline {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address public want;
    address public governance;
    address public controller;

    constructor(address _want, address _controller) public {
        governance = msg.sender;
        controller = _controller;
        want = _want;
    }

    function deposit() public virtual;

    function withdraw(IERC20 _asset) external virtual returns (uint256 balance);

    function withdraw(uint256 _amount) external virtual;

    function withdrawAll() external virtual returns (uint256 balance);

    function balanceOf() public virtual view returns (uint256);

    function SetGovernance(address _governance) external {
        require(msg.sender == governance, "!governance");
        governance = _governance;
    }

    function SetController(address _controller) external {
        require(msg.sender == governance, "!governance");
        controller = _controller;
    }
}

// File: contracts/implementations/strategy/StrategyBaselineBenzene.sol


pragma solidity ^0.6.2;








abstract contract StrategyBaselineBenzene is StrategyBaseline {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address public recv;
    address public fwant;
    address public frecv;

    constructor(address _want, address _controller)
        public
        StrategyBaseline(_want, _controller)
    {}

    function DepositToken(uint256 _amount) internal virtual;

    function WithdrawToken(uint256 _amount) internal virtual;

    function GetPriceE18OfRecvInWant() public virtual view returns (uint256);

    function SetRecv(address _recv) internal {
        recv = _recv;
        frecv = Controller(controller).vaults(recv);
        fwant = Controller(controller).vaults(want);
        require(recv != address(0), "!recv");
        require(fwant != address(0), "!fwant");
        require(frecv != address(0), "!frecv");
    }

    function deposit() public override {
        uint256 _want = IERC20(want).balanceOf(address(this));
        if (_want > 0) {
            DepositToken(_want);
        }
        uint256 _recv = IERC20(recv).balanceOf(address(this));
        if (_recv > 0) {
            IERC20(recv).safeApprove(frecv, 0);
            IERC20(recv).safeApprove(frecv, _recv);
            Vault(frecv).deposit(_recv);
        }
    }

    function withdraw(IERC20 _asset)
        external
        override
        returns (uint256 balance)
    {
        require(msg.sender == controller, "!controller");
        require(want != address(_asset), "want");
        require(recv != address(_asset), "recv");
        require(frecv != address(_asset), "frecv");
        balance = _asset.balanceOf(address(this));
        _asset.safeTransfer(controller, balance);
    }

    function withdraw(uint256 _aw) external override {
        require(msg.sender == controller, "!controller");
        uint256 _w = IERC20(want).balanceOf(address(this));
        if (_w < _aw) {
            uint256 _ar = _aw.sub(_w).mul(1e18).div(GetPriceE18OfRecvInWant());
            uint256 _r = IERC20(recv).balanceOf(address(this));
            if (_r < _ar) {
                uint256 _af = _ar.sub(_r).mul(1e18).div(
                    Vault(frecv).priceE18()
                );
                uint256 _f = IERC20(frecv).balanceOf(address(this));
                Vault(frecv).withdraw(Math.min(_f, _af));
            }
            _r = IERC20(recv).balanceOf(address(this));
            WithdrawToken(Math.min(_r, _ar));
        }
        _w = IERC20(want).balanceOf(address(this));
        IERC20(want).safeTransfer(fwant, Math.min(_aw, _w));
    }

    function withdrawAll() external override returns (uint256 balance) {
        require(msg.sender == controller, "!controller");
        uint256 _frecv = IERC20(frecv).balanceOf(address(this));
        if (_frecv > 0) {
            Vault(frecv).withdraw(_frecv);
        }
        uint256 _recv = IERC20(recv).balanceOf(address(this));
        if (_recv > 0) {
            WithdrawToken(_recv);
        }
        balance = IERC20(want).balanceOf(address(this));
        IERC20(want).safeTransfer(fwant, balance);
    }

    function balanceOf() public override view returns (uint256) {
        uint256 _frecv = IERC20(frecv).balanceOf(address(this));
        uint256 _recv = IERC20(recv).balanceOf(address(this));
        uint256 _want = IERC20(want).balanceOf(address(this));
        if (_frecv > 0) {
            _frecv = Vault(frecv).priceE18().mul(_frecv).div(1e18);
            _recv = _recv.add(_frecv);
        }
        if (_recv > 0) {
            _recv = GetPriceE18OfRecvInWant().mul(_recv).div(1e18);
            _want = _want.add(_recv);
        }
        return _want;
    }
}

// File: contracts/implementations/strategy/StrategyBaselineBenzeneCurveREN.sol


pragma solidity ^0.6.2;










contract StrategyBaselineBenzeneCurveREN is StrategyBaselineBenzene {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    address public constant curve = address(
        0x93054188d876f558f4a66B2EF1d97d16eDf0895B
    );
    int128 public index;

    constructor(int128 _index, address _controller)
        public
        StrategyBaselineBenzene(ICurveFiREN(curve).coins(_index), _controller)
    {
        index = _index;
        SetRecv(address(0x49849C98ae39Fff122806C06791Fa73784FB3675));
    }

    function DepositToken(uint256 _amount) internal override {
        IERC20(want).safeApprove(curve, 0);
        IERC20(want).safeApprove(curve, _amount);
        uint256[2] memory vec = [uint256(0), uint256(0)];
        vec[uint256(index)] = _amount;
        ICurveFiREN(curve).add_liquidity(vec, 0);
    }

    function WithdrawToken(uint256 _amount) internal override {
        IERC20(recv).safeApprove(curve, 0);
        IERC20(recv).safeApprove(curve, _amount);
        uint256[2] memory vec = [uint256(0), uint256(0)];
        ICurveFiREN(curve).remove_liquidity(_amount, vec);

        for (int128 i = 0; i < 2; i++) {
            if (i == index) {
                continue;
            }
            address erc20 = ICurveFiREN(curve).coins(i);
            uint256 _bal = IERC20(erc20).balanceOf(address(this));
            if (_bal > 0) {
                IERC20(erc20).safeApprove(curve, 0);
                IERC20(erc20).safeApprove(curve, _bal);
                ICurveFiREN(curve).exchange(i, index, _bal, 0);
            }
        }
    }

    function GetPriceE18OfRecvInWant() public override view returns (uint256) {
        return ICurveFiREN(curve).get_virtual_price().div(1e10);
    }
}

// File: contracts/instances/StrategyBaselineBenzeneCurveRENwBTC.sol


pragma solidity ^0.6.2;


contract StrategyBaselineBenzeneCurveRENwBTC is StrategyBaselineBenzeneCurveREN {
    constructor()
        public
        StrategyBaselineBenzeneCurveREN(
            1,
            address(0xDc03b4900Eff97d997f4B828ae0a45cd48C3b22d)
        )
    {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"GetPriceE18OfRecvInWant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"SetController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"SetGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"frecv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fwant","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"index","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_aw","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50600173dc03b4900eff97d997f4b828ae0a45cd48c3b22d7393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b03166323746eb8836040518263ffffffff1660e01b81526004018082600f0b815260200191505060206040518083038186803b1580156200008557600080fd5b505afa1580156200009a573d6000803e3d6000fd5b505050506040513d6020811015620000b157600080fd5b505160018054336001600160a01b0319918216179091556002805482166001600160a01b0385811691909117909155600080549092169216919091179055600680546001600160801b0319166001600160801b03600f85900b161790556200012d7349849c98ae39fff122806c06791fa73784fb367562000135565b505062000344565b600380546001600160a01b0319166001600160a01b03838116919091179182905560025460408051632988bb9f60e21b815293831660048501525191169163a622ee7c916024808301926020929190829003018186803b1580156200019957600080fd5b505afa158015620001ae573d6000803e3d6000fd5b505050506040513d6020811015620001c557600080fd5b5051600580546001600160a01b0319166001600160a01b0392831617905560025460005460408051632988bb9f60e21b8152918416600483015251919092169163a622ee7c916024808301926020929190829003018186803b1580156200022b57600080fd5b505afa15801562000240573d6000803e3d6000fd5b505050506040513d60208110156200025757600080fd5b5051600480546001600160a01b0319166001600160a01b0392831617905560035416620002b3576040805162461bcd60e51b815260206004820152600560248201526410b932b1bb60d91b604482015290519081900360640190fd5b6004546001600160a01b0316620002fa576040805162461bcd60e51b815260206004820152600660248201526508599dd85b9d60d21b604482015290519081900360640190fd5b6005546001600160a01b031662000341576040805162461bcd60e51b815260206004820152600660248201526510b33932b1bb60d11b604482015290519081900360640190fd5b50565b611b8a80620003546000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806351cff8d911610097578063853828b611610066578063853828b61461021b578063bb1be80d14610223578063d0e30db01461022b578063f77c47911461023357610100565b806351cff8d9146101dd5780635aa6e675146102035780637165485d1461020b578063722713f71461021357610100565b80632986c0e5116100d35780632986c0e5146101735780632e1a7d4d146101925780633b3cdc46146101af5780634ff63845146101b757610100565b80631beb854d146101055780631d0724c8146101295780631f1fcd511461014357806324a8c4801461014b575b600080fd5b61010d61023b565b604080516001600160a01b039092168252519081900360200190f35b61013161024a565b60408051918252519081900360200190f35b61010d6102d9565b6101716004803603602081101561016157600080fd5b50356001600160a01b03166102e8565b005b61017b610357565b60408051600f9290920b8252519081900360200190f35b610171600480360360208110156101a857600080fd5b5035610360565b61010d61079f565b610171600480360360208110156101cd57600080fd5b50356001600160a01b03166107ae565b610131600480360360208110156101f357600080fd5b50356001600160a01b031661081d565b61010d6109e4565b61010d6109f3565b610131610a0b565b610131610c5b565b61010d610eb4565b610171610ec3565b61010d61106f565b6004546001600160a01b031681565b60006102d46402540be4007393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b031663bb7b8b806040518163ffffffff1660e01b815260040160206040518083038186803b1580156102a257600080fd5b505afa1580156102b6573d6000803e3d6000fd5b505050506040513d60208110156102cc57600080fd5b50519061107e565b905090565b6000546001600160a01b031681565b6001546001600160a01b03163314610335576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600654600f0b81565b6002546001600160a01b031633146103ad576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156103f957600080fd5b505afa15801561040d573d6000803e3d6000fd5b505050506040513d602081101561042357600080fd5b50519050818110156106f457600061045e61043c61024a565b610458670de0b6b3a764000061045287876110c9565b9061110b565b9061107e565b600354604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d60208110156104d957600080fd5b505190508181101561066657600061057a600560009054906101000a90046001600160a01b03166001600160a01b0316633a06703c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053857600080fd5b505afa15801561054c573d6000803e3d6000fd5b505050506040513d602081101561056257600080fd5b5051610458670de0b6b3a764000061045287876110c9565b600554604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156105cb57600080fd5b505afa1580156105df573d6000803e3d6000fd5b505050506040513d60208110156105f557600080fd5b50516005549091506001600160a01b0316632e1a7d4d6106158385611164565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561064b57600080fd5b505af115801561065f573d6000803e3d6000fd5b5050505050505b600354604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156106b157600080fd5b505afa1580156106c5573d6000803e3d6000fd5b505050506040513d60208110156106db57600080fd5b505190506106f16106ec8284611164565b61117a565b50505b600054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561073f57600080fd5b505afa158015610753573d6000803e3d6000fd5b505050506040513d602081101561076957600080fd5b505160045490915061079b906001600160a01b03166107888484611164565b6000546001600160a01b031691906114ac565b5050565b6005546001600160a01b031681565b6001546001600160a01b031633146107fb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546000906001600160a01b0316331461086d576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6000546001600160a01b03838116911614156108b9576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b6003546001600160a01b0383811691161415610905576040805162461bcd60e51b815260206004808301919091526024820152633932b1bb60e11b604482015290519081900360640190fd5b6005546001600160a01b0383811691161415610950576040805162461bcd60e51b8152602060048201526005602482015264333932b1bb60d91b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561099657600080fd5b505afa1580156109aa573d6000803e3d6000fd5b505050506040513d60208110156109c057600080fd5b50516002549091506109df906001600160a01b038481169116836114ac565b919050565b6001546001600160a01b031681565b7393054188d876f558f4a66b2ef1d97d16edf0895b81565b600554604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610a5b57600080fd5b505afa158015610a6f573d6000803e3d6000fd5b505050506040513d6020811015610a8557600080fd5b5051600354604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ad857600080fd5b505afa158015610aec573d6000803e3d6000fd5b505050506040513d6020811015610b0257600080fd5b505160008054604080516370a0823160e01b8152306004820152905193945091926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d6020811015610b7e57600080fd5b505190508215610c2757610c18670de0b6b3a764000061045885600560009054906101000a90046001600160a01b03166001600160a01b0316633a06703c6040518163ffffffff1660e01b815260040160206040518083038186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d6020811015610c1057600080fd5b50519061110b565b9250610c2482846114fe565b91505b8115610c5457610c45670de0b6b3a76400006104588461045261024a565b9150610c5181836114fe565b90505b9250505090565b6002546000906001600160a01b03163314610cab576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610cf657600080fd5b505afa158015610d0a573d6000803e3d6000fd5b505050506040513d6020811015610d2057600080fd5b505190508015610d905760055460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015610d7757600080fd5b505af1158015610d8b573d6000803e3d6000fd5b505050505b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ddb57600080fd5b505afa158015610def573d6000803e3d6000fd5b505050506040513d6020811015610e0557600080fd5b505190508015610e1857610e188161117a565b600054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610e6357600080fd5b505afa158015610e77573d6000803e3d6000fd5b505050506040513d6020811015610e8d57600080fd5b5051600454600054919450610eaf916001600160a01b039081169116856114ac565b505090565b6003546001600160a01b031681565b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610f0f57600080fd5b505afa158015610f23573d6000803e3d6000fd5b505050506040513d6020811015610f3957600080fd5b505190508015610f4c57610f4c81611558565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610f9757600080fd5b505afa158015610fab573d6000803e3d6000fd5b505050506040513d6020811015610fc157600080fd5b50519050801561079b57600554600354610fe9916001600160a01b039182169116600061166b565b600554600354611006916001600160a01b0391821691168361166b565b6005546040805163b6b55f2560e01b81526004810184905290516001600160a01b039092169163b6b55f259160248082019260009290919082900301818387803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505050505050565b6002546001600160a01b031681565b60006110c083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061177e565b90505b92915050565b60006110c083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611820565b60008261111a575060006110c3565b8282028284828161112757fe5b04146110c05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ad46021913960400191505060405180910390fd5b600081831061117357816110c0565b5090919050565b6003546111a6906001600160a01b03167393054188d876f558f4a66b2ef1d97d16edf0895b600061166b565b6003546111d1906001600160a01b03167393054188d876f558f4a66b2ef1d97d16edf0895b8361166b565b6111d9611ab5565b604051806040016040528060008152602001600081525090507393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b0316635b36389c83836040518363ffffffff1660e01b81526004018083815260200182600260200280838360005b8381101561125457818101518382015260200161123c565b5050505090500192505050600060405180830381600087803b15801561127957600080fd5b505af115801561128d573d6000803e3d6000fd5b5050505060005b600281600f0b12156114a757600654600f82810b91810b900b14156112b85761149f565b60007393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b03166323746eb8836040518263ffffffff1660e01b81526004018082600f0b815260200191505060206040518083038186803b15801561131557600080fd5b505afa158015611329573d6000803e3d6000fd5b505050506040513d602081101561133f57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561138d57600080fd5b505afa1580156113a1573d6000803e3d6000fd5b505050506040513d60208110156113b757600080fd5b50519050801561149c576113ea6001600160a01b0383167393054188d876f558f4a66b2ef1d97d16edf0895b600061166b565b6114126001600160a01b0383167393054188d876f558f4a66b2ef1d97d16edf0895b8361166b565b60065460408051630f7c084960e21b8152600f86810b600483015292830b90920b60248301526044820183905260006064830181905290517393054188d876f558f4a66b2ef1d97d16edf0895b92633df0212492608480830193919282900301818387803b15801561148357600080fd5b505af1158015611497573d6000803e3d6000fd5b505050505b50505b600101611294565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114a790849061187a565b6000828201838110156110c0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008054611587916001600160a01b03909116907393054188d876f558f4a66b2ef1d97d16edf0895b9061166b565b6000546115b2906001600160a01b03167393054188d876f558f4a66b2ef1d97d16edf0895b8361166b565b6115ba611ab5565b50604080518082019091526000808252602082015260065482908290600f90810b900b600281106115e757fe5b602002015260408051630b4c7e4d60e01b81527393054188d876f558f4a66b2ef1d97d16edf0895b91630b4c7e4d9184916000916004019081908490808383875b83811015611640578181015183820152602001611628565b5050505090500182815260200192505050600060405180830381600087803b15801561105357600080fd5b8015806116f1575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156116c357600080fd5b505afa1580156116d7573d6000803e3d6000fd5b505050506040513d60208110156116ed57600080fd5b5051155b61172c5760405162461bcd60e51b8152600401808060200182810382526036815260200180611b1f6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526114a790849061187a565b6000818361180a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117cf5781810151838201526020016117b7565b50505050905090810190601f1680156117fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161181657fe5b0495945050505050565b600081848411156118725760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117cf5781810151838201526020016117b7565b505050900390565b60606118cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661192b9092919063ffffffff16565b8051909150156114a7578080602001905160208110156118ee57600080fd5b50516114a75760405162461bcd60e51b815260040180806020018281038252602a815260200180611af5602a913960400191505060405180910390fd5b606061193a8484600085611942565b949350505050565b606061194d85611aaf565b61199e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106119dd5780518252601f1990920191602091820191016119be565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a3f576040519150601f19603f3d011682016040523d82523d6000602084013e611a44565b606091505b50915091508115611a5857915061193a9050565b805115611a685780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156117cf5781810151838201526020016117b7565b3b151590565b6040518060400160405280600290602082028036833750919291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220dbbe6e8c61aa941607e56ded7a914214fa7d78e625e18f246267eec28c59163364736f6c634300060c0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c806351cff8d911610097578063853828b611610066578063853828b61461021b578063bb1be80d14610223578063d0e30db01461022b578063f77c47911461023357610100565b806351cff8d9146101dd5780635aa6e675146102035780637165485d1461020b578063722713f71461021357610100565b80632986c0e5116100d35780632986c0e5146101735780632e1a7d4d146101925780633b3cdc46146101af5780634ff63845146101b757610100565b80631beb854d146101055780631d0724c8146101295780631f1fcd511461014357806324a8c4801461014b575b600080fd5b61010d61023b565b604080516001600160a01b039092168252519081900360200190f35b61013161024a565b60408051918252519081900360200190f35b61010d6102d9565b6101716004803603602081101561016157600080fd5b50356001600160a01b03166102e8565b005b61017b610357565b60408051600f9290920b8252519081900360200190f35b610171600480360360208110156101a857600080fd5b5035610360565b61010d61079f565b610171600480360360208110156101cd57600080fd5b50356001600160a01b03166107ae565b610131600480360360208110156101f357600080fd5b50356001600160a01b031661081d565b61010d6109e4565b61010d6109f3565b610131610a0b565b610131610c5b565b61010d610eb4565b610171610ec3565b61010d61106f565b6004546001600160a01b031681565b60006102d46402540be4007393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b031663bb7b8b806040518163ffffffff1660e01b815260040160206040518083038186803b1580156102a257600080fd5b505afa1580156102b6573d6000803e3d6000fd5b505050506040513d60208110156102cc57600080fd5b50519061107e565b905090565b6000546001600160a01b031681565b6001546001600160a01b03163314610335576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600654600f0b81565b6002546001600160a01b031633146103ad576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156103f957600080fd5b505afa15801561040d573d6000803e3d6000fd5b505050506040513d602081101561042357600080fd5b50519050818110156106f457600061045e61043c61024a565b610458670de0b6b3a764000061045287876110c9565b9061110b565b9061107e565b600354604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d60208110156104d957600080fd5b505190508181101561066657600061057a600560009054906101000a90046001600160a01b03166001600160a01b0316633a06703c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053857600080fd5b505afa15801561054c573d6000803e3d6000fd5b505050506040513d602081101561056257600080fd5b5051610458670de0b6b3a764000061045287876110c9565b600554604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156105cb57600080fd5b505afa1580156105df573d6000803e3d6000fd5b505050506040513d60208110156105f557600080fd5b50516005549091506001600160a01b0316632e1a7d4d6106158385611164565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561064b57600080fd5b505af115801561065f573d6000803e3d6000fd5b5050505050505b600354604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156106b157600080fd5b505afa1580156106c5573d6000803e3d6000fd5b505050506040513d60208110156106db57600080fd5b505190506106f16106ec8284611164565b61117a565b50505b600054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561073f57600080fd5b505afa158015610753573d6000803e3d6000fd5b505050506040513d602081101561076957600080fd5b505160045490915061079b906001600160a01b03166107888484611164565b6000546001600160a01b031691906114ac565b5050565b6005546001600160a01b031681565b6001546001600160a01b031633146107fb576040805162461bcd60e51b815260206004820152600b60248201526a21676f7665726e616e636560a81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546000906001600160a01b0316331461086d576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b6000546001600160a01b03838116911614156108b9576040805162461bcd60e51b815260206004808301919091526024820152631dd85b9d60e21b604482015290519081900360640190fd5b6003546001600160a01b0383811691161415610905576040805162461bcd60e51b815260206004808301919091526024820152633932b1bb60e11b604482015290519081900360640190fd5b6005546001600160a01b0383811691161415610950576040805162461bcd60e51b8152602060048201526005602482015264333932b1bb60d91b604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561099657600080fd5b505afa1580156109aa573d6000803e3d6000fd5b505050506040513d60208110156109c057600080fd5b50516002549091506109df906001600160a01b038481169116836114ac565b919050565b6001546001600160a01b031681565b7393054188d876f558f4a66b2ef1d97d16edf0895b81565b600554604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610a5b57600080fd5b505afa158015610a6f573d6000803e3d6000fd5b505050506040513d6020811015610a8557600080fd5b5051600354604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ad857600080fd5b505afa158015610aec573d6000803e3d6000fd5b505050506040513d6020811015610b0257600080fd5b505160008054604080516370a0823160e01b8152306004820152905193945091926001600160a01b03909116916370a08231916024808301926020929190829003018186803b158015610b5457600080fd5b505afa158015610b68573d6000803e3d6000fd5b505050506040513d6020811015610b7e57600080fd5b505190508215610c2757610c18670de0b6b3a764000061045885600560009054906101000a90046001600160a01b03166001600160a01b0316633a06703c6040518163ffffffff1660e01b815260040160206040518083038186803b158015610be657600080fd5b505afa158015610bfa573d6000803e3d6000fd5b505050506040513d6020811015610c1057600080fd5b50519061110b565b9250610c2482846114fe565b91505b8115610c5457610c45670de0b6b3a76400006104588461045261024a565b9150610c5181836114fe565b90505b9250505090565b6002546000906001600160a01b03163314610cab576040805162461bcd60e51b815260206004820152600b60248201526a10b1b7b73a3937b63632b960a91b604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610cf657600080fd5b505afa158015610d0a573d6000803e3d6000fd5b505050506040513d6020811015610d2057600080fd5b505190508015610d905760055460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015610d7757600080fd5b505af1158015610d8b573d6000803e3d6000fd5b505050505b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ddb57600080fd5b505afa158015610def573d6000803e3d6000fd5b505050506040513d6020811015610e0557600080fd5b505190508015610e1857610e188161117a565b600054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610e6357600080fd5b505afa158015610e77573d6000803e3d6000fd5b505050506040513d6020811015610e8d57600080fd5b5051600454600054919450610eaf916001600160a01b039081169116856114ac565b505090565b6003546001600160a01b031681565b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610f0f57600080fd5b505afa158015610f23573d6000803e3d6000fd5b505050506040513d6020811015610f3957600080fd5b505190508015610f4c57610f4c81611558565b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610f9757600080fd5b505afa158015610fab573d6000803e3d6000fd5b505050506040513d6020811015610fc157600080fd5b50519050801561079b57600554600354610fe9916001600160a01b039182169116600061166b565b600554600354611006916001600160a01b0391821691168361166b565b6005546040805163b6b55f2560e01b81526004810184905290516001600160a01b039092169163b6b55f259160248082019260009290919082900301818387803b15801561105357600080fd5b505af1158015611067573d6000803e3d6000fd5b505050505050565b6002546001600160a01b031681565b60006110c083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061177e565b90505b92915050565b60006110c083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611820565b60008261111a575060006110c3565b8282028284828161112757fe5b04146110c05760405162461bcd60e51b8152600401808060200182810382526021815260200180611ad46021913960400191505060405180910390fd5b600081831061117357816110c0565b5090919050565b6003546111a6906001600160a01b03167393054188d876f558f4a66b2ef1d97d16edf0895b600061166b565b6003546111d1906001600160a01b03167393054188d876f558f4a66b2ef1d97d16edf0895b8361166b565b6111d9611ab5565b604051806040016040528060008152602001600081525090507393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b0316635b36389c83836040518363ffffffff1660e01b81526004018083815260200182600260200280838360005b8381101561125457818101518382015260200161123c565b5050505090500192505050600060405180830381600087803b15801561127957600080fd5b505af115801561128d573d6000803e3d6000fd5b5050505060005b600281600f0b12156114a757600654600f82810b91810b900b14156112b85761149f565b60007393054188d876f558f4a66b2ef1d97d16edf0895b6001600160a01b03166323746eb8836040518263ffffffff1660e01b81526004018082600f0b815260200191505060206040518083038186803b15801561131557600080fd5b505afa158015611329573d6000803e3d6000fd5b505050506040513d602081101561133f57600080fd5b5051604080516370a0823160e01b815230600482015290519192506000916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561138d57600080fd5b505afa1580156113a1573d6000803e3d6000fd5b505050506040513d60208110156113b757600080fd5b50519050801561149c576113ea6001600160a01b0383167393054188d876f558f4a66b2ef1d97d16edf0895b600061166b565b6114126001600160a01b0383167393054188d876f558f4a66b2ef1d97d16edf0895b8361166b565b60065460408051630f7c084960e21b8152600f86810b600483015292830b90920b60248301526044820183905260006064830181905290517393054188d876f558f4a66b2ef1d97d16edf0895b92633df0212492608480830193919282900301818387803b15801561148357600080fd5b505af1158015611497573d6000803e3d6000fd5b505050505b50505b600101611294565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114a790849061187a565b6000828201838110156110c0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008054611587916001600160a01b03909116907393054188d876f558f4a66b2ef1d97d16edf0895b9061166b565b6000546115b2906001600160a01b03167393054188d876f558f4a66b2ef1d97d16edf0895b8361166b565b6115ba611ab5565b50604080518082019091526000808252602082015260065482908290600f90810b900b600281106115e757fe5b602002015260408051630b4c7e4d60e01b81527393054188d876f558f4a66b2ef1d97d16edf0895b91630b4c7e4d9184916000916004019081908490808383875b83811015611640578181015183820152602001611628565b5050505090500182815260200192505050600060405180830381600087803b15801561105357600080fd5b8015806116f1575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156116c357600080fd5b505afa1580156116d7573d6000803e3d6000fd5b505050506040513d60208110156116ed57600080fd5b5051155b61172c5760405162461bcd60e51b8152600401808060200182810382526036815260200180611b1f6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526114a790849061187a565b6000818361180a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117cf5781810151838201526020016117b7565b50505050905090810190601f1680156117fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161181657fe5b0495945050505050565b600081848411156118725760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156117cf5781810151838201526020016117b7565b505050900390565b60606118cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661192b9092919063ffffffff16565b8051909150156114a7578080602001905160208110156118ee57600080fd5b50516114a75760405162461bcd60e51b815260040180806020018281038252602a815260200180611af5602a913960400191505060405180910390fd5b606061193a8484600085611942565b949350505050565b606061194d85611aaf565b61199e576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106119dd5780518252601f1990920191602091820191016119be565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a3f576040519150601f19603f3d011682016040523d82523d6000602084013e611a44565b606091505b50915091508115611a5857915061193a9050565b805115611a685780518082602001fd5b60405162461bcd60e51b81526020600482018181528651602484015286518793919283926044019190850190808383600083156117cf5781810151838201526020016117b7565b3b151590565b6040518060400160405280600290602082028036833750919291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a2646970667358221220dbbe6e8c61aa941607e56ded7a914214fa7d78e625e18f246267eec28c59163364736f6c634300060c0033

Deployed Bytecode Sourcemap

29205:261:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23566:20;;;:::i;:::-;;;;-1:-1:-1;;;;;23566:20:0;;;;;;;;;;;;;;28947:148;;;:::i;:::-;;;;;;;;;;;;;;;;22346:19;;;:::i;22928:155::-;;;;;;;;;;;;;;;;-1:-1:-1;22928:155:0;-1:-1:-1;;;;;22928:155:0;;:::i;:::-;;27576:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;25163:874;;;;;;;;;;;;;;;;-1:-1:-1;25163:874:0;;:::i;23593:20::-;;;:::i;23091:155::-;;;;;;;;;;;;;;;;-1:-1:-1;23091:155:0;-1:-1:-1;;;;;23091:155:0;;:::i;24721:434::-;;;;;;;;;;;;;;;;-1:-1:-1;24721:434:0;-1:-1:-1;;;;;24721:434:0;;:::i;22372:25::-;;;:::i;27470:99::-;;;:::i;26581:577::-;;;:::i;26045:528::-;;;:::i;23540:19::-;;;:::i;24290:423::-;;;:::i;22404:25::-;;;:::i;23566:20::-;;;-1:-1:-1;;;;;23566:20:0;;:::o;28947:148::-;29012:7;29039:48;29082:4;27520:42;-1:-1:-1;;;;;29039:36:0;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29039:38:0;;:42;:48::i;:::-;29032:55;;28947:148;:::o;22346:19::-;;;-1:-1:-1;;;;;22346:19:0;;:::o;22928:155::-;23014:10;;-1:-1:-1;;;;;23014:10:0;23000;:24;22992:48;;;;;-1:-1:-1;;;22992:48:0;;;;;;;;;;;;-1:-1:-1;;;22992:48:0;;;;;;;;;;;;;;;23051:10;:24;;-1:-1:-1;;;;;;23051:24:0;-1:-1:-1;;;;;23051:24:0;;;;;;;;;;22928:155::o;27576:19::-;;;;;;:::o;25163:874::-;25245:10;;-1:-1:-1;;;;;25245:10:0;25231;:24;25223:48;;;;;-1:-1:-1;;;25223:48:0;;;;;;;;;;;;-1:-1:-1;;;25223:48:0;;;;;;;;;;;;;;;25282:10;25302:4;;25295:37;;;-1:-1:-1;;;25295:37:0;;25326:4;25295:37;;;;;;-1:-1:-1;;;;;25302:4:0;;;;25295:22;;:37;;;;;;;;;;;;;;;25302:4;25295:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25295:37:0;;-1:-1:-1;25347:8:0;;;25343:572;;;25372:11;25386:52;25412:25;:23;:25::i;:::-;25386:21;25402:4;25386:11;:3;25394:2;25386:7;:11::i;:::-;:15;;:21::i;:::-;:25;;:52::i;:::-;25473:4;;25466:37;;;-1:-1:-1;;;25466:37:0;;25497:4;25466:37;;;;;;25372:66;;-1:-1:-1;25453:10:0;;-1:-1:-1;;;;;25473:4:0;;;;25466:22;;:37;;;;;;;;;;;;;;;25473:4;25466:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25466:37:0;;-1:-1:-1;25522:8:0;;;25518:282;;;25551:11;25565:90;25619:5;;;;;;;;;-1:-1:-1;;;;;25619:5:0;-1:-1:-1;;;;;25613:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25613:23:0;25565:21;25581:4;25565:11;:3;25573:2;25565:7;:11::i;:90::-;25694:5;;25687:38;;;-1:-1:-1;;;25687:38:0;;25719:4;25687:38;;;;;;25551:104;;-1:-1:-1;25674:10:0;;-1:-1:-1;;;;;25694:5:0;;;;25687:23;;:38;;;;;;;;;;;;;;;25694:5;25687:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25687:38:0;25750:5;;25687:38;;-1:-1:-1;;;;;;25750:5:0;25744:21;25766:17;25687:38;25779:3;25766:8;:17::i;:::-;25744:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25518:282;;;25826:4;;25819:37;;;-1:-1:-1;;;25819:37:0;;25850:4;25819:37;;;;;;-1:-1:-1;;;;;25826:4:0;;;;25819:22;;:37;;;;;;;;;;;;;;;25826:4;25819:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25819:37:0;;-1:-1:-1;25871:32:0;25885:17;25819:37;25898:3;25885:8;:17::i;:::-;25871:13;:32::i;:::-;25343:572;;;25937:4;;25930:37;;;-1:-1:-1;;;25930:37:0;;25961:4;25930:37;;;;;;-1:-1:-1;;;;;25937:4:0;;;;25930:22;;:37;;;;;;;;;;;;;;;25937:4;25930:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25930:37:0;26004:5;;25930:37;;-1:-1:-1;25978:51:0;;-1:-1:-1;;;;;26004:5:0;26011:17;26020:3;25930:37;26011:8;:17::i;:::-;25985:4;;-1:-1:-1;;;;;25985:4:0;;25978:51;:25;:51::i;:::-;25163:874;;:::o;23593:20::-;;;-1:-1:-1;;;;;23593:20:0;;:::o;23091:155::-;23177:10;;-1:-1:-1;;;;;23177:10:0;23163;:24;23155:48;;;;;-1:-1:-1;;;23155:48:0;;;;;;;;;;;;-1:-1:-1;;;23155:48:0;;;;;;;;;;;;;;;23214:10;:24;;-1:-1:-1;;;;;;23214:24:0;-1:-1:-1;;;;;23214:24:0;;;;;;;;;;23091:155::o;24721:434::-;24863:10;;24808:15;;-1:-1:-1;;;;;24863:10:0;24849;:24;24841:48;;;;;-1:-1:-1;;;24841:48:0;;;;;;;;;;;;-1:-1:-1;;;24841:48:0;;;;;;;;;;;;;;;24908:4;;-1:-1:-1;;;;;24908:23:0;;;:4;;:23;;24900:40;;;;;-1:-1:-1;;;24900:40:0;;;;;;;;;;;;;;;-1:-1:-1;;;24900:40:0;;;;;;;;;;;;;;;24959:4;;-1:-1:-1;;;;;24959:23:0;;;:4;;:23;;24951:40;;;;;-1:-1:-1;;;24951:40:0;;;;;;;;;;;;;;;-1:-1:-1;;;24951:40:0;;;;;;;;;;;;;;;25010:5;;-1:-1:-1;;;;;25010:24:0;;;:5;;:24;;25002:42;;;;;-1:-1:-1;;;25002:42:0;;;;;;;;;;;;-1:-1:-1;;;25002:42:0;;;;;;;;;;;;;;;25065:31;;;-1:-1:-1;;;25065:31:0;;25090:4;25065:31;;;;;;-1:-1:-1;;;;;25065:16:0;;;;;:31;;;;;;;;;;;;;;:16;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25065:31:0;25127:10;;25065:31;;-1:-1:-1;25107:40:0;;-1:-1:-1;;;;;25107:19:0;;;;25127:10;25065:31;25107:19;:40::i;:::-;24721:434;;;:::o;22372:25::-;;;-1:-1:-1;;;;;22372:25:0;;:::o;27470:99::-;27520:42;27470:99;:::o;26581:577::-;26676:5;;26669:38;;;-1:-1:-1;;;26669:38:0;;26701:4;26669:38;;;;;;26632:7;;;;-1:-1:-1;;;;;26676:5:0;;;;26669:23;;:38;;;;;;;;;;;;;;;26676:5;26669:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26669:38:0;26741:4;;26734:37;;;-1:-1:-1;;;26734:37:0;;26765:4;26734:37;;;;;;26669:38;;-1:-1:-1;26718:13:0;;-1:-1:-1;;;;;26741:4:0;;;;26734:22;;:37;;;;;26669:38;;26734:37;;;;;;;;26741:4;26734:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26734:37:0;26782:13;26805:4;;26798:37;;;-1:-1:-1;;;26798:37:0;;26829:4;26798:37;;;;;;26734;;-1:-1:-1;26782:13:0;;-1:-1:-1;;;;;26805:4:0;;;;26798:22;;:37;;;;;26734;;26798;;;;;;;26805:4;26798:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26798:37:0;;-1:-1:-1;26850:10:0;;26846:137;;26886:45;26926:4;26886:35;26914:6;26892:5;;;;;;;;;-1:-1:-1;;;;;26892:5:0;-1:-1:-1;;;;;26886:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26886:23:0;;:27;:35::i;:45::-;26877:54;-1:-1:-1;26954:17:0;:5;26877:54;26954:9;:17::i;:::-;26946:25;;26846:137;26997:9;;26993:135;;27031:46;27072:4;27031:36;27061:5;27031:25;:23;:25::i;:46::-;27023:54;-1:-1:-1;27100:16:0;:5;27023:54;27100:9;:16::i;:::-;27092:24;;26993:135;27145:5;-1:-1:-1;;;26581:577:0;:::o;26045:528::-;26145:10;;26095:15;;-1:-1:-1;;;;;26145:10:0;26131;:24;26123:48;;;;;-1:-1:-1;;;26123:48:0;;;;;;;;;;;;-1:-1:-1;;;26123:48:0;;;;;;;;;;;;;;;26206:5;;26199:38;;;-1:-1:-1;;;26199:38:0;;26231:4;26199:38;;;;;;26182:14;;-1:-1:-1;;;;;26206:5:0;;26199:23;;:38;;;;;;;;;;;;;;26206:5;26199:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26199:38:0;;-1:-1:-1;26252:10:0;;26248:72;;26285:5;;26279:29;;;-1:-1:-1;;;26279:29:0;;;;;;;;;;-1:-1:-1;;;;;26285:5:0;;;;26279:21;;:29;;;;;26285:5;;26279:29;;;;;;;;26285:5;;26279:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26248:72;26353:4;;26346:37;;;-1:-1:-1;;;26346:37:0;;26377:4;26346:37;;;;;;26330:13;;-1:-1:-1;;;;;26353:4:0;;26346:22;;:37;;;;;;;;;;;;;;26353:4;26346:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26346:37:0;;-1:-1:-1;26398:9:0;;26394:62;;26424:20;26438:5;26424:13;:20::i;:::-;26483:4;;26476:37;;;-1:-1:-1;;;26476:37:0;;26507:4;26476:37;;;;;;-1:-1:-1;;;;;26483:4:0;;;;26476:22;;:37;;;;;;;;;;;;;;;26483:4;26476:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26476:37:0;26550:5;;;26531:4;26476:37;;-1:-1:-1;26524:41:0;;-1:-1:-1;;;;;26531:4:0;;;;26550:5;26476:37;26524:25;:41::i;:::-;26045:528;;;:::o;23540:19::-;;;-1:-1:-1;;;;;23540:19:0;;:::o;24290:423::-;24336:13;24359:4;;24352:37;;;-1:-1:-1;;;24352:37:0;;24383:4;24352:37;;;;;;-1:-1:-1;;;;;24359:4:0;;;;24352:22;;:37;;;;;;;;;;;;;;;24359:4;24352:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24352:37:0;;-1:-1:-1;24404:9:0;;24400:61;;24430:19;24443:5;24430:12;:19::i;:::-;24494:4;;24487:37;;;-1:-1:-1;;;24487:37:0;;24518:4;24487:37;;;;;;24471:13;;-1:-1:-1;;;;;24494:4:0;;24487:22;;:37;;;;;;;;;;;;;;24494:4;24487:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24487:37:0;;-1:-1:-1;24539:9:0;;24535:171;;24590:5;;24572:4;;24565:34;;-1:-1:-1;;;;;24572:4:0;;;;24590:5;;24565:24;:34::i;:::-;24639:5;;24621:4;;24614:38;;-1:-1:-1;;;;;24621:4:0;;;;24639:5;24646;24614:24;:38::i;:::-;24673:5;;24667:27;;;-1:-1:-1;;;24667:27:0;;;;;;;;;;-1:-1:-1;;;;;24673:5:0;;;;24667:20;;:27;;;;;24673:5;;24667:27;;;;;;;;24673:5;;24667:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24290:423;;:::o;22404:25::-;;;-1:-1:-1;;;;;22404:25:0;;:::o;3257:132::-;3315:7;3342:39;3346:1;3349;3342:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3335:46;;3257:132;;;;;:::o;1420:136::-;1478:7;1505:43;1509:1;1512;1505:43;;;;;;;;;;;;;;;;;:3;:43::i;2310:471::-;2368:7;2613:6;2609:47;;-1:-1:-1;2643:1:0;2636:8;;2609:47;2680:5;;;2684:1;2680;:5;:1;2704:5;;;;;:10;2696:56;;;;-1:-1:-1;;;2696:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21670:106;21728:7;21759:1;21755;:5;:13;;21767:1;21755:13;;;-1:-1:-1;21763:1:0;;21670:106;-1:-1:-1;21670:106:0:o;28184:755::-;28260:4;;28253:34;;-1:-1:-1;;;;;28260:4:0;27520:42;28285:1;28253:24;:34::i;:::-;28305:4;;28298:40;;-1:-1:-1;;;;;28305:4:0;27520:42;28330:7;28298:24;:40::i;:::-;28349:21;;:::i;:::-;:48;;;;;;;;28382:1;28349:48;;;;28394:1;28349:48;;;;;27520:42;-1:-1:-1;;;;;28408:35:0;;28444:7;28453:3;28408:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28475:8;28470:462;28493:1;28489;:5;;;28470:462;;;28525:5;;;28520:10;;;28525:5;;;28520:10;;;28516:59;;;28551:8;;28516:59;28589:13;27520:42;-1:-1:-1;;;;;28605:24:0;;28630:1;28605:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28605:27:0;28662:38;;;-1:-1:-1;;;28662:38:0;;28694:4;28662:38;;;;;;28605:27;;-1:-1:-1;28647:12:0;;-1:-1:-1;;;;;28662:23:0;;;;;:38;;;;;28605:27;;28662:38;;;;;;;:23;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28662:38:0;;-1:-1:-1;28719:8:0;;28715:206;;28748:35;-1:-1:-1;;;;;28748:25:0;;27520:42;28781:1;28748:25;:35::i;:::-;28802:38;-1:-1:-1;;;;;28802:25:0;;27520:42;28835:4;28802:25;:38::i;:::-;28890:5;;28859:46;;;-1:-1:-1;;;28859:46:0;;28890:5;28859:46;;;;;;;28890:5;;;28859:46;;;;;;;;;;;;;28890:5;28859:46;;;;;;;;27520:42;;28859:27;;:46;;;;;28890:5;;28859:46;;;;;28890:5;27520:42;28859:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28715:206;28470:462;;;28496:3;;28470:462;;;;28184:755;;:::o;14924:177::-;15034:58;;;-1:-1:-1;;;;;15034:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15034:58:0;-1:-1:-1;;;15034:58:0;;;15007:86;;15027:5;;15007:19;:86::i;956:181::-;1014:7;1046:5;;;1070:6;;;;1062:46;;;;;-1:-1:-1;;;1062:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;27865:311;27965:1;27940:4;;27933:34;;-1:-1:-1;;;;;27940:4:0;;;;27520:42;;27933:24;:34::i;:::-;27985:4;;27978:40;;-1:-1:-1;;;;;27985:4:0;27520:42;28010:7;27978:24;:40::i;:::-;28029:21;;:::i;:::-;-1:-1:-1;28029:48:0;;;;;;;;;-1:-1:-1;28029:48:0;;;;;;;28100:5;;28110:7;;28029:48;;28100:5;;;;28092:14;;28088:19;;;;;;;;;;:29;28128:40;;;-1:-1:-1;;;28128:40:0;;27520:42;;28128:32;;28161:3;;28166:1;;28128:40;;;;;28161:3;;28128:40;;28161:3;28166:1;28128:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15583:622;15953:10;;;15952:62;;-1:-1:-1;15969:39:0;;;-1:-1:-1;;;15969:39:0;;15993:4;15969:39;;;;-1:-1:-1;;;;;15969:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15969:39:0;:44;15952:62;15944:152;;;;-1:-1:-1;;;15944:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16134:62;;;-1:-1:-1;;;;;16134:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16134:62:0;-1:-1:-1;;;16134:62:0;;;16107:90;;16127:5;;16107:19;:90::i;3885:278::-;3971:7;4006:12;3999:5;3991:28;;;;-1:-1:-1;;;3991:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4030:9;4046:1;4042;:5;;;;;;;3885:278;-1:-1:-1;;;;;3885:278:0:o;1859:192::-;1945:7;1981:12;1973:6;;;;1965:29;;;;-1:-1:-1;;;1965:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2017:5:0;;;1859:192::o;17229:761::-;17653:23;17679:69;17707:4;17679:69;;;;;;;;;;;;;;;;;17687:5;-1:-1:-1;;;;;17679:27:0;;;:69;;;;;:::i;:::-;17763:17;;17653:95;;-1:-1:-1;17763:21:0;17759:224;;17905:10;17894:30;;;;;;;;;;;;;;;-1:-1:-1;17894:30:0;17886:85;;;;-1:-1:-1;;;17886:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11903:196;12006:12;12038:53;12061:6;12069:4;12075:1;12078:12;12038:22;:53::i;:::-;12031:60;11903:196;-1:-1:-1;;;;11903:196:0:o;13280:979::-;13410:12;13443:18;13454:6;13443:10;:18::i;:::-;13435:60;;;;;-1:-1:-1;;;13435:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13569:12;13583:23;13610:6;-1:-1:-1;;;;;13610:11:0;13630:8;13641:4;13610:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13610:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13568:78;;;;13661:7;13657:595;;;13692:10;-1:-1:-1;13685:17:0;;-1:-1:-1;13685:17:0;13657:595;13806:17;;:21;13802:439;;14069:10;14063:17;14130:15;14117:10;14113:2;14109:19;14102:44;14017:148;14205:20;;-1:-1:-1;;;14205:20:0;;;;;;;;;;;;;;;;;14212:12;;14205:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8985:422;9352:20;9391:8;;;8985:422::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://dbbe6e8c61aa941607e56ded7a914214fa7d78e625e18f246267eec28c591633

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  ]

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.