ETH Price: $3,424.42 (+3.13%)

Contract

0x11C76AD590ABDFFCD980afEC9ad951B160F02797
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Request Swap Exa...188220722023-12-19 19:28:23340 days ago1703014103IN
0x11C76AD5...160F02797
0 ETH0.0096050763.77830203
Request Swap Exa...188219472023-12-19 19:02:47340 days ago1703012567IN
0x11C76AD5...160F02797
0 ETH0.0101404263.28907515
Request Swap Exa...177874252023-07-27 22:37:35484 days ago1690497455IN
0x11C76AD5...160F02797
0 ETH0.0044557627.73671057
Request Swap Exa...177873802023-07-27 22:28:35484 days ago1690496915IN
0x11C76AD5...160F02797
0 ETH0.0045724628.46317001
Request Swap Exa...177873582023-07-27 22:24:11484 days ago1690496651IN
0x11C76AD5...160F02797
0 ETH0.005143229.92530324
Request Swap Exa...177873332023-07-27 22:18:59484 days ago1690496339IN
0x11C76AD5...160F02797
0 ETH0.0053349530.37852747
Request Swap Exa...177855952023-07-27 16:28:11485 days ago1690475291IN
0x11C76AD5...160F02797
0 ETH0.0119829568.23386003
Request Swap Exa...177855362023-07-27 16:16:23485 days ago1690474583IN
0x11C76AD5...160F02797
0 ETH0.0142496676.93537954
Request Swap Exa...177787952023-07-26 17:38:11486 days ago1690393091IN
0x11C76AD5...160F02797
0 ETH0.0073941940.98411708
Request Swap Exa...177656742023-07-24 21:34:11487 days ago1690234451IN
0x11C76AD5...160F02797
0 ETH0.0080227444.4650681
Request Swap Exa...175651272023-06-26 17:38:35516 days ago1687801115IN
0x11C76AD5...160F02797
0 ETH0.0027792817.79527435
Request Swap Exa...175643902023-06-26 15:08:35516 days ago1687792115IN
0x11C76AD5...160F02797
0 ETH0.0042506327.21609159
Request Swap Exa...175640802023-06-26 14:05:47516 days ago1687788347IN
0x11C76AD5...160F02797
0 ETH0.0031196919.97793882
Request Swap Exa...175640382023-06-26 13:57:23516 days ago1687787843IN
0x11C76AD5...160F02797
0 ETH0.0027427317.5639608
Request Swap Exa...175605472023-06-26 2:09:47516 days ago1687745387IN
0x11C76AD5...160F02797
0 ETH0.0025412916.27524899
Request Swap Exa...175602372023-06-26 1:07:11516 days ago1687741631IN
0x11C76AD5...160F02797
0 ETH0.0024423515.63916719
Request Swap Exa...170455462023-04-14 12:55:47589 days ago1681476947IN
0x11C76AD5...160F02797
0 ETH0.0043437827.22521425
Request Swap Exa...170411822023-04-13 22:00:23589 days ago1681423223IN
0x11C76AD5...160F02797
0 ETH0.0042504926.6425088
Request Swap Exa...169974602023-04-07 15:21:23596 days ago1680880883IN
0x11C76AD5...160F02797
0 ETH0.0079833550.04174478
Request Swap Exa...169971772023-04-07 14:23:11596 days ago1680877391IN
0x11C76AD5...160F02797
0 ETH0.0040453425.35919313
Request Swap Exa...165822112023-02-08 6:15:59654 days ago1675836959IN
0x11C76AD5...160F02797
0 ETH0.0036914423.49787228
Request Swap Exa...165820462023-02-08 5:42:47654 days ago1675834967IN
0x11C76AD5...160F02797
0 ETH0.0041349325.27867604
Request Swap Exa...165818252023-02-08 4:58:35654 days ago1675832315IN
0x11C76AD5...160F02797
0 ETH0.003968824.45248051
Request Swap Exa...161244082022-12-06 7:58:35718 days ago1670313515IN
0x11C76AD5...160F02797
0 ETH0.0018871311.25107868
Request Swap Exa...161242442022-12-06 7:25:23718 days ago1670311523IN
0x11C76AD5...160F02797
0 ETH0.0020594213.12301747
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
212382992024-11-21 19:49:112 days ago1732218551
0x11C76AD5...160F02797
 Contract Creation0 ETH
212370372024-11-21 15:35:472 days ago1732203347
0x11C76AD5...160F02797
 Contract Creation0 ETH
212340612024-11-21 5:36:592 days ago1732167419
0x11C76AD5...160F02797
 Contract Creation0 ETH
212095262024-11-17 19:29:596 days ago1731871799
0x11C76AD5...160F02797
 Contract Creation0 ETH
212089162024-11-17 17:27:236 days ago1731864443
0x11C76AD5...160F02797
 Contract Creation0 ETH
212083502024-11-17 15:33:356 days ago1731857615
0x11C76AD5...160F02797
 Contract Creation0 ETH
212045912024-11-17 2:57:596 days ago1731812279
0x11C76AD5...160F02797
 Contract Creation0 ETH
212044852024-11-17 2:36:476 days ago1731811007
0x11C76AD5...160F02797
 Contract Creation0 ETH
212029262024-11-16 21:23:597 days ago1731792239
0x11C76AD5...160F02797
 Contract Creation0 ETH
211910572024-11-15 5:38:238 days ago1731649103
0x11C76AD5...160F02797
 Contract Creation0 ETH
211838962024-11-14 5:38:239 days ago1731562703
0x11C76AD5...160F02797
 Contract Creation0 ETH
211781942024-11-13 10:32:1110 days ago1731493931
0x11C76AD5...160F02797
 Contract Creation0 ETH
211454492024-11-08 20:55:5915 days ago1731099359
0x11C76AD5...160F02797
 Contract Creation0 ETH
211325882024-11-07 1:47:5916 days ago1730944079
0x11C76AD5...160F02797
 Contract Creation0 ETH
211324602024-11-07 1:22:1116 days ago1730942531
0x11C76AD5...160F02797
 Contract Creation0 ETH
211308112024-11-06 19:50:3517 days ago1730922635
0x11C76AD5...160F02797
 Contract Creation0 ETH
211161862024-11-04 18:50:2319 days ago1730746223
0x11C76AD5...160F02797
 Contract Creation0 ETH
211158512024-11-04 17:43:1119 days ago1730742191
0x11C76AD5...160F02797
 Contract Creation0 ETH
211030452024-11-02 22:49:5920 days ago1730587799
0x11C76AD5...160F02797
 Contract Creation0 ETH
210950312024-11-01 19:56:4722 days ago1730491007
0x11C76AD5...160F02797
 Contract Creation0 ETH
210941492024-11-01 16:59:5922 days ago1730480399
0x11C76AD5...160F02797
 Contract Creation0 ETH
210941412024-11-01 16:58:2322 days ago1730480303
0x11C76AD5...160F02797
 Contract Creation0 ETH
210867062024-10-31 16:06:1123 days ago1730390771
0x11C76AD5...160F02797
 Contract Creation0 ETH
210808152024-10-30 20:23:2324 days ago1730319803
0x11C76AD5...160F02797
 Contract Creation0 ETH
210807862024-10-30 20:17:3524 days ago1730319455
0x11C76AD5...160F02797
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Milkman

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU LGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-12-06
*/

// SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity ^0.7.6;
pragma abicoder v2;

// File: Address.sol

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

        uint256 size;
        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: IERC20.sol

/**
 * @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: IPriceChecker.sol

interface IPriceChecker {
    function checkPrice(
        uint256 _amountIn,
        address _fromToken,
        address _toToken,
        uint256 _feeAmount,
        uint256 _minOut,
        bytes calldata _data
    ) external view returns (bool);
}

// File: SafeMath.sol

/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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: GPv2Order.sol

/// @title Gnosis Protocol v2 Order Library
/// @author Gnosis Developers
library GPv2Order {
    /// @dev The complete data for a Gnosis Protocol order. This struct contains
    /// all order parameters that are signed for submitting to GP.
    struct Data {
        IERC20 sellToken;
        IERC20 buyToken;
        address receiver;
        uint256 sellAmount;
        uint256 buyAmount;
        uint32 validTo;
        bytes32 appData;
        uint256 feeAmount;
        bytes32 kind;
        bool partiallyFillable;
        bytes32 sellTokenBalance;
        bytes32 buyTokenBalance;
    }

    /// @dev The order EIP-712 type hash for the [`GPv2Order.Data`] struct.
    ///
    /// This value is pre-computed from the following expression:
    /// ```
    /// keccak256(
    ///     "Order(" +
    ///         "address sellToken," +
    ///         "address buyToken," +
    ///         "address receiver," +
    ///         "uint256 sellAmount," +
    ///         "uint256 buyAmount," +
    ///         "uint32 validTo," +
    ///         "bytes32 appData," +
    ///         "uint256 feeAmount," +
    ///         "string kind," +
    ///         "bool partiallyFillable" +
    ///         "string sellTokenBalance" +
    ///         "string buyTokenBalance" +
    ///     ")"
    /// )
    /// ```
    bytes32 internal constant TYPE_HASH =
        hex"d5a25ba2e97094ad7d83dc28a6572da797d6b3e7fc6663bd93efb789fc17e489";

    /// @dev The marker value for a sell order for computing the order struct
    /// hash. This allows the EIP-712 compatible wallets to display a
    /// descriptive string for the order kind (instead of 0 or 1).
    ///
    /// This value is pre-computed from the following expression:
    /// ```
    /// keccak256("sell")
    /// ```
    bytes32 internal constant KIND_SELL =
        hex"f3b277728b3fee749481eb3e0b3b48980dbbab78658fc419025cb16eee346775";

    /// @dev The OrderKind marker value for a buy order for computing the order
    /// struct hash.
    ///
    /// This value is pre-computed from the following expression:
    /// ```
    /// keccak256("buy")
    /// ```
    bytes32 internal constant KIND_BUY =
        hex"6ed88e868af0a1983e3886d5f3e95a2fafbd6c3450bc229e27342283dc429ccc";

    /// @dev The TokenBalance marker value for using direct ERC20 balances for
    /// computing the order struct hash.
    ///
    /// This value is pre-computed from the following expression:
    /// ```
    /// keccak256("erc20")
    /// ```
    bytes32 internal constant BALANCE_ERC20 =
        hex"5a28e9363bb942b639270062aa6bb295f434bcdfc42c97267bf003f272060dc9";

    /// @dev The TokenBalance marker value for using Balancer Vault external
    /// balances (in order to re-use Vault ERC20 approvals) for computing the
    /// order struct hash.
    ///
    /// This value is pre-computed from the following expression:
    /// ```
    /// keccak256("external")
    /// ```
    bytes32 internal constant BALANCE_EXTERNAL =
        hex"abee3b73373acd583a130924aad6dc38cfdc44ba0555ba94ce2ff63980ea0632";

    /// @dev The TokenBalance marker value for using Balancer Vault internal
    /// balances for computing the order struct hash.
    ///
    /// This value is pre-computed from the following expression:
    /// ```
    /// keccak256("internal")
    /// ```
    bytes32 internal constant BALANCE_INTERNAL =
        hex"4ac99ace14ee0a5ef932dc609df0943ab7ac16b7583634612f8dc35a4289a6ce";

    /// @dev Marker address used to indicate that the receiver of the trade
    /// proceeds should the owner of the order.
    ///
    /// This is chosen to be `address(0)` for gas efficiency as it is expected
    /// to be the most common case.
    address internal constant RECEIVER_SAME_AS_OWNER = address(0);

    /// @dev The byte length of an order unique identifier.
    uint256 internal constant UID_LENGTH = 56;

    /// @dev Returns the actual receiver for an order. This function checks
    /// whether or not the [`receiver`] field uses the marker value to indicate
    /// it is the same as the order owner.
    ///
    /// @return receiver The actual receiver of trade proceeds.
    function actualReceiver(Data memory order, address owner)
        internal
        pure
        returns (address receiver)
    {
        if (order.receiver == RECEIVER_SAME_AS_OWNER) {
            receiver = owner;
        } else {
            receiver = order.receiver;
        }
    }

    /// @dev Return the EIP-712 signing hash for the specified order.
    ///
    /// @param order The order to compute the EIP-712 signing hash for.
    /// @param domainSeparator The EIP-712 domain separator to use.
    /// @return orderDigest The 32 byte EIP-712 struct hash.
    function hash(Data memory order, bytes32 domainSeparator)
        internal
        pure
        returns (bytes32 orderDigest)
    {
        bytes32 structHash;

        // NOTE: Compute the EIP-712 order struct hash in place. As suggested
        // in the EIP proposal, noting that the order struct has 10 fields, and
        // including the type hash `(12 + 1) * 32 = 416` bytes to hash.
        // <https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-encodedata>
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let dataStart := sub(order, 32)
            let temp := mload(dataStart)
            mstore(dataStart, TYPE_HASH)
            structHash := keccak256(dataStart, 416)
            mstore(dataStart, temp)
        }

        // NOTE: Now that we have the struct hash, compute the EIP-712 signing
        // hash using scratch memory past the free memory pointer. The signing
        // hash is computed from `"\x19\x01" || domainSeparator || structHash`.
        // <https://docs.soliditylang.org/en/v0.7.6/internals/layout_in_memory.html#layout-in-memory>
        // <https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#specification>
        // solhint-disable-next-line no-inline-assembly
        assembly {
            let freeMemoryPointer := mload(0x40)
            mstore(freeMemoryPointer, "\x19\x01")
            mstore(add(freeMemoryPointer, 2), domainSeparator)
            mstore(add(freeMemoryPointer, 34), structHash)
            orderDigest := keccak256(freeMemoryPointer, 66)
        }
    }

    /// @dev Packs order UID parameters into the specified memory location. The
    /// result is equivalent to `abi.encodePacked(...)` with the difference that
    /// it allows re-using the memory for packing the order UID.
    ///
    /// This function reverts if the order UID buffer is not the correct size.
    ///
    /// @param orderUid The buffer pack the order UID parameters into.
    /// @param orderDigest The EIP-712 struct digest derived from the order
    /// parameters.
    /// @param owner The address of the user who owns this order.
    /// @param validTo The epoch time at which the order will stop being valid.
    function packOrderUidParams(
        bytes memory orderUid,
        bytes32 orderDigest,
        address owner,
        uint32 validTo
    ) internal pure {
        require(orderUid.length == UID_LENGTH, "GPv2: uid buffer overflow");

        // NOTE: Write the order UID to the allocated memory buffer. The order
        // parameters are written to memory in **reverse order** as memory
        // operations write 32-bytes at a time and we want to use a packed
        // encoding. This means, for example, that after writing the value of
        // `owner` to bytes `20:52`, writing the `orderDigest` to bytes `0:32`
        // will **overwrite** bytes `20:32`. This is desirable as addresses are
        // only 20 bytes and `20:32` should be `0`s:
        //
        //        |           1111111111222222222233333333334444444444555555
        //   byte | 01234567890123456789012345678901234567890123456789012345
        // -------+---------------------------------------------------------
        //  field | [.........orderDigest..........][......owner.......][vT]
        // -------+---------------------------------------------------------
        // mstore |                         [000000000000000000000000000.vT]
        //        |                     [00000000000.......owner.......]
        //        | [.........orderDigest..........]
        //
        // Additionally, since Solidity `bytes memory` are length prefixed,
        // 32 needs to be added to all the offsets.
        //
        // solhint-disable-next-line no-inline-assembly
        assembly {
            mstore(add(orderUid, 56), validTo)
            mstore(add(orderUid, 52), owner)
            mstore(add(orderUid, 32), orderDigest)
        }
    }

    /// @dev Extracts specific order information from the standardized unique
    /// order id of the protocol.
    ///
    /// @param orderUid The unique identifier used to represent an order in
    /// the protocol. This uid is the packed concatenation of the order digest,
    /// the validTo order parameter and the address of the user who created the
    /// order. It is used by the user to interface with the contract directly,
    /// and not by calls that are triggered by the solvers.
    /// @return orderDigest The EIP-712 signing digest derived from the order
    /// parameters.
    /// @return owner The address of the user who owns this order.
    /// @return validTo The epoch time at which the order will stop being valid.
    function extractOrderUidParams(bytes calldata orderUid)
        internal
        pure
        returns (
            bytes32 orderDigest,
            address owner,
            uint32 validTo
        )
    {
        require(orderUid.length == UID_LENGTH, "GPv2: invalid uid");

        // Use assembly to efficiently decode packed calldata.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            orderDigest := calldataload(orderUid.offset)
            owner := shr(96, calldataload(add(orderUid.offset, 32)))
            validTo := shr(224, calldataload(add(orderUid.offset, 52)))
        }
    }
}

// File: SafeERC20.sol

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

/// @title Milkman
/// @author @charlesndalton
/// @notice A layer on top of the CoW Protocol that allows smart contracts (DAOs, Gnosis Safes, protocols, etc.) to submit swaps. Swaps are MEV-protected. Use with atypical tokens (e.g., rebasing tokens) not recommended.
/// @dev For each requested swap, Milkman creates a clone of itself, and moves `amountIn` of `fromToken` into the clone. The clone pre-approves the amount to the CoW settlement contract. The clone also stores a hash of the swap's variables, something like hash({amountIn: 1000, fromToken: USDC, toToken: DAI, etc.}). Then, an off-chain server creates a CoW order on behalf of the clone. Before this CoW order can be 'settled' (before amountIn can be pulled out of the clone), the clone runs checks on the order. These checks include calling a user-provided `priceChecker`, which could for example check SushiSwap to see if what they could get out of SushiSwap was at least 90% of the order's `minOut`.
contract Milkman {
    using SafeERC20 for IERC20;
    using GPv2Order for GPv2Order.Data;
    using SafeMath for uint256;

    event SwapRequested(
        address orderContract,
        address orderCreator,
        uint256 amountIn,
        address fromToken,
        address toToken,
        address to,
        address priceChecker,
        bytes priceCheckerData
    );

    /// @dev The contract Milkman needs to give allowance.
    address internal constant VAULT_RELAYER =
        0xC92E8bdf79f0507f65a392b0ab4667716BFE0110;
    /// @dev The settlement contract's EIP-712 domain separator. Milkman uses this to verify that a provided UID matches provided order parameters.
    bytes32 public constant DOMAIN_SEPARATOR =
        0xc078f884a2676e1345748b1feace7b0abee5d00ecadb6e574dcdd109a63e8943;
    bytes4 internal constant MAGIC_VALUE = 0x1626ba7e;
    bytes4 internal constant NON_MAGIC_VALUE = 0xffffffff;
    bytes32 internal constant ROOT_MILKMAN_SWAP_HASH =
        0xca11ab1efacade00000000000000000000000000000000000000000000000000;

    /// @dev the Milkman deployed by an EOA, in contrast to Milkman 'order contracts' deployed in invocations of requestSwapExactTokensForTokens
    address internal immutable ROOT_MILKMAN;

    /// @dev Hash of the order data, hashed like so:
    ///      kekkak256(abi.encode(orderCreator, receiver, fromToken, toToken, amountIn, priceChecker, priceCheckerData)).
    ///      In the root contract, it's set to `ROOT_MILKMAN_SWAP_HASH`.
    bytes32 public swapHash = ROOT_MILKMAN_SWAP_HASH;

    constructor() {
        ROOT_MILKMAN = address(this);
    }

    /// @notice Asynchronously swap an exact amount of tokenIn for a market-determined amount of tokenOut.
    /// @dev Swaps are usually completed in ~2 minutes.
    /// @param amountIn The number of tokens to sell.
    /// @param fromToken The token that the user wishes to sell.
    /// @param toToken The token that the user wishes to receive.
    /// @param to Who should receive the tokens.
    /// @param priceChecker A contract that verifies an order (mainly its minOut and fee) before Milkman signs it.
    /// @param priceCheckerData Data that gets passed to the price checker.
    function requestSwapExactTokensForTokens(
        uint256 amountIn,
        IERC20 fromToken,
        IERC20 toToken,
        address to,
        address priceChecker,
        bytes calldata priceCheckerData
    ) external {
        require(address(this) == ROOT_MILKMAN, "!root_milkman"); // can't call `requestSwapExactTokensForTokens` from order contracts
        require(priceChecker != address(0), "!price_checker"); // need to supply a valid price checker

        address orderContract = createOrderContract();

        fromToken.safeTransferFrom(msg.sender, orderContract, amountIn);

        bytes32 _swapHash = keccak256(
            abi.encode(
                msg.sender,
                to,
                fromToken,
                toToken,
                amountIn,
                priceChecker,
                priceCheckerData
            )
        );

        Milkman(orderContract).initialize(fromToken, _swapHash);

        emit SwapRequested(
            orderContract,
            msg.sender,
            amountIn,
            address(fromToken),
            address(toToken),
            to,
            priceChecker,
            priceCheckerData
        );
    }

    function initialize(IERC20 fromToken, bytes32 _swapHash) external {
        require(swapHash == bytes32(0) && _swapHash != bytes32(0), "!reinit"); // also prevents root contract from being initialized
        swapHash = _swapHash;

        fromToken.safeApprove(VAULT_RELAYER, type(uint256).max);
    }

    /// @notice Cancel a requested swap, sending the tokens back to the order creator.
    /// @dev `msg.sender` must be the original order creator. The other parameters are required to verify that this is the case (kind of like a merkle proof).
    function cancelSwap(
        uint256 amountIn,
        IERC20 fromToken,
        IERC20 toToken,
        address to,
        address priceChecker,
        bytes calldata priceCheckerData
    ) external {
        bytes32 _storedSwapHash = swapHash;

        require(_storedSwapHash != ROOT_MILKMAN_SWAP_HASH, "!cancel_from_root");

        bytes32 _calculatedSwapHash = keccak256(
            abi.encode(
                msg.sender,
                to,
                fromToken,
                toToken,
                amountIn,
                priceChecker,
                priceCheckerData
            )
        );

        require(_storedSwapHash == _calculatedSwapHash, "!valid_creator_proof");

        fromToken.safeTransfer(msg.sender, amountIn);
    }

    /// @param orderDigest The EIP-712 signing digest derived from the order
    /// @param encodedOrder Bytes-encoded order information, originally created by an off-chain bot. Created by concatening the order data (in the form of GPv2Order.Data), the price checker address, and price checker data.
    function isValidSignature(bytes32 orderDigest, bytes calldata encodedOrder)
        external
        view
        returns (bytes4)
    {
        bytes32 _storedSwapHash = swapHash;

        require(
            _storedSwapHash != ROOT_MILKMAN_SWAP_HASH,
            "!is_valid_sig_from_root"
        );

        (
            GPv2Order.Data memory _order,
            address _orderCreator,
            address _priceChecker,
            bytes memory _priceCheckerData
        ) = decodeOrder(encodedOrder);

        require(_order.hash(DOMAIN_SEPARATOR) == orderDigest, "!match");

        require(_order.kind == GPv2Order.KIND_SELL, "!kind_sell");

        require(
            _order.validTo >= block.timestamp + 5 minutes,
            "expires_too_soon"
        );

        require(!_order.partiallyFillable, "!fill_or_kill");

        require(
            _order.sellTokenBalance == GPv2Order.BALANCE_ERC20,
            "!sell_erc20"
        );

        require(
            _order.buyTokenBalance == GPv2Order.BALANCE_ERC20,
            "!buy_erc20"
        );

        require(
            IPriceChecker(_priceChecker).checkPrice(
                _order.sellAmount.add(_order.feeAmount),
                address(_order.sellToken),
                address(_order.buyToken),
                _order.feeAmount,
                _order.buyAmount,
                _priceCheckerData
            ),
            "invalid_min_out"
        );

        bytes32 _calculatedSwapHash = keccak256(
            abi.encode(
                _orderCreator,
                _order.receiver,
                _order.sellToken,
                _order.buyToken,
                _order.sellAmount.add(_order.feeAmount),
                _priceChecker,
                _priceCheckerData
            )
        );

        if (_calculatedSwapHash == _storedSwapHash) {
            // should be true as long as the keeper isn't submitting bad orders
            return MAGIC_VALUE;
        } else {
            return NON_MAGIC_VALUE;
        }
    }

    function decodeOrder(bytes calldata _encodedOrder)
        internal
        pure
        returns (
            GPv2Order.Data memory _order,
            address _orderCreator,
            address _priceChecker,
            bytes memory _priceCheckerData
        )
    {
        (_order, _orderCreator, _priceChecker, _priceCheckerData) = abi.decode(
            _encodedOrder,
            (GPv2Order.Data, address, address, bytes)
        );
    }

    function createOrderContract() internal returns (address _orderContract) {
        // Copied from https://github.com/optionality/clone-factory/blob/master/contracts/CloneFactory.sol

        bytes20 addressBytes = bytes20(address(this));
        assembly {
            // EIP-1167 bytecode
            let clone_code := mload(0x40)
            mstore(
                clone_code,
                0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000
            )
            mstore(add(clone_code, 0x14), addressBytes)
            mstore(
                add(clone_code, 0x28),
                0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000
            )
            _orderContract := create(0, clone_code, 0x37)
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"orderContract","type":"address"},{"indexed":false,"internalType":"address","name":"orderCreator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address","name":"fromToken","type":"address"},{"indexed":false,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"priceChecker","type":"address"},{"indexed":false,"internalType":"bytes","name":"priceCheckerData","type":"bytes"}],"name":"SwapRequested","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"priceChecker","type":"address"},{"internalType":"bytes","name":"priceCheckerData","type":"bytes"}],"name":"cancelSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"bytes32","name":"_swapHash","type":"bytes32"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderDigest","type":"bytes32"},{"internalType":"bytes","name":"encodedOrder","type":"bytes"}],"name":"isValidSignature","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"priceChecker","type":"address"},{"internalType":"bytes","name":"priceCheckerData","type":"bytes"}],"name":"requestSwapExactTokensForTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]

60a0604052666508d58f7d656f60c91b60005534801561001e57600080fd5b5030606081901b60805261148261003f6000398061053452506114826000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631626ba7e146100675780633644e51514610090578063a47721e3146100a5578063be13f47c146100ba578063de9f0916146100cd578063fa3e759f146100e0575b600080fd5b61007a610075366004610bdb565b6100e8565b6040516100879190611007565b60405180910390f35b610098610403565b6040516100879190610ffe565b6100b86100b3366004610d88565b610427565b005b6100b86100c8366004610c25565b6104cb565b6100b86100db366004610d88565b610529565b6100986106a3565b60008054666508d58f7d656f60c91b81141561011f5760405162461bcd60e51b81526004016101169061102f565b60405180910390fd5b60008060008061012f88886106a9565b9296509094509250905088610164857fc078f884a2676e1345748b1feace7b0abee5d00ecadb6e574dcdd109a63e89436106d2565b146101815760405162461bcd60e51b815260040161011690611223565b7ff3b277728b3fee749481eb3e0b3b48980dbbab78658fc419025cb16eee346775846101000151146101c55760405162461bcd60e51b8152600401610116906111db565b4261012c018460a0015163ffffffff1610156101f35760405162461bcd60e51b81526004016101169061130a565b836101200151156102165760405162461bcd60e51b815260040161011690611163565b7f5a28e9363bb942b639270062aa6bb295f434bcdfc42c97267bf003f272060dc98461014001511461025a5760405162461bcd60e51b815260040161011690611243565b7f5a28e9363bb942b639270062aa6bb295f434bcdfc42c97267bf003f272060dc98461016001511461029e5760405162461bcd60e51b8152600401610116906111ff565b816001600160a01b0316639e2f2b5c6102c88660e00151876060015161072390919063ffffffff16565b866000015187602001518860e001518960800151876040518763ffffffff1660e01b81526004016102fe9695949392919061138a565b60206040518083038186803b15801561031657600080fd5b505afa15801561032a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034e9190610bbf565b61036a5760405162461bcd60e51b81526004016101169061118a565b6000838560400151866000015187602001516103978960e001518a6060015161072390919063ffffffff16565b87876040516020016103af9796959493929190610f69565b604051602081830303815290604052805190602001209050858114156103e55750630b135d3f60e11b95506103fc945050505050565b506001600160e01b031995506103fc945050505050565b9392505050565b7fc078f884a2676e1345748b1feace7b0abee5d00ecadb6e574dcdd109a63e894381565b600054666508d58f7d656f60c91b8114156104545760405162461bcd60e51b81526004016101169061109d565b6000338689898c898989604051602001610475989796959493929190610e90565b6040516020818303038152906040528051906020012090508082146104ac5760405162461bcd60e51b8152600401610116906110c8565b6104c06001600160a01b038916338b610748565b505050505050505050565b6000541580156104da57508015155b6104f65760405162461bcd60e51b815260040161011690611268565b60008190556105256001600160a01b03831673c92e8bdf79f0507f65a392b0ab4667716bfe01106000196107a3565b5050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105715760405162461bcd60e51b8152600401610116906110f6565b6001600160a01b0383166105975760405162461bcd60e51b8152600401610116906111b3565b60006105a1610866565b90506105b86001600160a01b03881633838b6108b5565b6000338689898c8989896040516020016105d9989796959493929190610e90565b60408051601f19818403018152908290528051602090910120632f84fd1f60e21b825291506001600160a01b0383169063be13f47c9061061f908b908590600401610fe5565b600060405180830381600087803b15801561063957600080fd5b505af115801561064d573d6000803e3d6000fd5b505050507fb4577dfc919050a8d18bf47e4068f238a7263a5d22efef88b4d5bb62838a339482338b8b8b8b8b8b8b60405161069099989796959493929190610f04565b60405180910390a1505050505050505050565b60005481565b6106b1610a85565b60008060606106c285870187610c50565b9299919850965090945092505050565b601f1990910180517fd5a25ba2e97094ad7d83dc28a6572da797d6b3e7fc6663bd93efb789fc17e48982526101a08220915260405161190160f01b8152600281019290925260228201526042902090565b6000828201838110156103fc5760405162461bcd60e51b815260040161011690611066565b61079e8363a9059cbb60e01b8484604051602401610767929190610fe5565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526108dc565b505050565b80158061082b5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906107d99030908690600401610eea565b60206040518083038186803b1580156107f157600080fd5b505afa158015610805573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108299190610d70565b155b6108475760405162461bcd60e51b815260040161011690611334565b61079e8363095ea7b360e01b8484604051602401610767929190610fe5565b604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81523060601b601482018190526e5af43d82803e903d91602b57fd5bf360881b602883015260009160378184f09250505090565b6108d6846323b872dd60e01b85858560405160240161076793929190610fc1565b50505050565b6000610931826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661096b9092919063ffffffff16565b80519091501561079e578080602001905181019061094f9190610bbf565b61079e5760405162461bcd60e51b8152600401610116906112c0565b606061097a8484600085610982565b949350505050565b6060824710156109a45760405162461bcd60e51b81526004016101169061111d565b6109ad85610a42565b6109c95760405162461bcd60e51b815260040161011690611289565b600080866001600160a01b031685876040516109e59190610e74565b60006040518083038185875af1925050503d8060008114610a22576040519150601f19603f3d011682016040523d82523d6000602084013e610a27565b606091505b5091509150610a37828286610a4c565b979650505050505050565b803b15155b919050565b60608315610a5b5750816103fc565b825115610a6b5782518084602001fd5b8160405162461bcd60e51b8152600401610116919061101c565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905261016081019190915290565b8035610a4781611426565b8035610a478161143e565b60008083601f840112610b10578182fd5b50813567ffffffffffffffff811115610b27578182fd5b602083019150836020828501011115610b3f57600080fd5b9250929050565b600082601f830112610b56578081fd5b813567ffffffffffffffff811115610b6a57fe5b610b7d601f8201601f19166020016113d6565b818152846020838601011115610b91578283fd5b816020850160208301379081016020019190915292915050565b803563ffffffff81168114610a4757600080fd5b600060208284031215610bd0578081fd5b81516103fc8161143e565b600080600060408486031215610bef578182fd5b83359250602084013567ffffffffffffffff811115610c0c578283fd5b610c1886828701610aff565b9497909650939450505050565b60008060408385031215610c37578182fd5b8235610c4281611426565b946020939093013593505050565b6000806000808486036101e0811215610c67578182fd5b61018080821215610c76578283fd5b610c7f816113d6565b9150610c8a87610ae9565b8252610c9860208801610ae9565b6020830152610ca960408801610ae9565b60408301526060870135606083015260808701356080830152610cce60a08801610bab565b60a083015260c087013560c083015260e087013560e0830152610100808801358184015250610120610d01818901610af4565b90830152610140878101359083015261016080880135908301529094508490610d2b818801610ae9565b94505050610d3c6101a08601610ae9565b91506101c085013567ffffffffffffffff811115610d58578182fd5b610d6487828801610b46565b91505092959194509250565b600060208284031215610d81578081fd5b5051919050565b600080600080600080600060c0888a031215610da2578283fd5b873596506020880135610db481611426565b95506040880135610dc481611426565b94506060880135610dd481611426565b93506080880135610de481611426565b925060a088013567ffffffffffffffff811115610dff578283fd5b610e0b8a828b01610aff565b989b979a50959850939692959293505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452610e608160208601602086016113fa565b601f01601f19169290920160200192915050565b60008251610e868184602087016113fa565b9190910192915050565b6001600160a01b03898116825288811660208301528781166040830152868116606083015260808201869052841660a082015260e060c08201819052600090610edc9083018486610e1e565b9a9950505050505050505050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038a811682528981166020830152604082018990528781166060830152868116608083015285811660a0830152841660c082015261010060e08201819052600090610f598382018587610e1e565b9c9b505050505050505050505050565b6001600160a01b03888116825287811660208301528681166040830152858116606083015260808201859052831660a082015260e060c08201819052600090610fb490830184610e48565b9998505050505050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6001600160e01b031991909116815260200190565b6000602082526103fc6020830184610e48565b60208082526017908201527f2169735f76616c69645f7369675f66726f6d5f726f6f74000000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601190820152700858d85b98d95b17d99c9bdb57dc9bdbdd607a1b604082015260600190565b60208082526014908201527310bb30b634b22fb1b932b0ba37b92fb83937b7b360611b604082015260600190565b6020808252600d908201526c10b937b7ba2fb6b4b635b6b0b760991b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252600d908201526c08599a5b1b17dbdc97dada5b1b609a1b604082015260600190565b6020808252600f908201526e1a5b9d985b1a5917db5a5b97dbdd5d608a1b604082015260600190565b6020808252600e908201526d10b83934b1b2afb1b432b1b5b2b960911b604082015260600190565b6020808252600a9082015269085ada5b9917dcd95b1b60b21b604082015260600190565b6020808252600a90820152690216275795f65726332360b41b604082015260600190565b602080825260069082015265042dac2e8c6d60d31b604082015260600190565b6020808252600b908201526a02173656c6c5f65726332360ac1b604082015260600190565b602080825260079082015266085c995a5b9a5d60ca1b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526010908201526f32bc3834b932b9afba37b7afb9b7b7b760811b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b8681526001600160a01b03868116602083015285166040820152606081018490526080810183905260c060a082018190526000906113ca90830184610e48565b98975050505050505050565b60405181810167ffffffffffffffff811182821017156113f257fe5b604052919050565b60005b838110156114155781810151838201526020016113fd565b838111156108d65750506000910152565b6001600160a01b038116811461143b57600080fd5b50565b801515811461143b57600080fdfea2646970667358221220bf61b2e9a4e4d0d9dc5ea9bdc1aea5a839144a8c0bb58ed8d26f9ebceaec941c64736f6c63430007060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631626ba7e146100675780633644e51514610090578063a47721e3146100a5578063be13f47c146100ba578063de9f0916146100cd578063fa3e759f146100e0575b600080fd5b61007a610075366004610bdb565b6100e8565b6040516100879190611007565b60405180910390f35b610098610403565b6040516100879190610ffe565b6100b86100b3366004610d88565b610427565b005b6100b86100c8366004610c25565b6104cb565b6100b86100db366004610d88565b610529565b6100986106a3565b60008054666508d58f7d656f60c91b81141561011f5760405162461bcd60e51b81526004016101169061102f565b60405180910390fd5b60008060008061012f88886106a9565b9296509094509250905088610164857fc078f884a2676e1345748b1feace7b0abee5d00ecadb6e574dcdd109a63e89436106d2565b146101815760405162461bcd60e51b815260040161011690611223565b7ff3b277728b3fee749481eb3e0b3b48980dbbab78658fc419025cb16eee346775846101000151146101c55760405162461bcd60e51b8152600401610116906111db565b4261012c018460a0015163ffffffff1610156101f35760405162461bcd60e51b81526004016101169061130a565b836101200151156102165760405162461bcd60e51b815260040161011690611163565b7f5a28e9363bb942b639270062aa6bb295f434bcdfc42c97267bf003f272060dc98461014001511461025a5760405162461bcd60e51b815260040161011690611243565b7f5a28e9363bb942b639270062aa6bb295f434bcdfc42c97267bf003f272060dc98461016001511461029e5760405162461bcd60e51b8152600401610116906111ff565b816001600160a01b0316639e2f2b5c6102c88660e00151876060015161072390919063ffffffff16565b866000015187602001518860e001518960800151876040518763ffffffff1660e01b81526004016102fe9695949392919061138a565b60206040518083038186803b15801561031657600080fd5b505afa15801561032a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034e9190610bbf565b61036a5760405162461bcd60e51b81526004016101169061118a565b6000838560400151866000015187602001516103978960e001518a6060015161072390919063ffffffff16565b87876040516020016103af9796959493929190610f69565b604051602081830303815290604052805190602001209050858114156103e55750630b135d3f60e11b95506103fc945050505050565b506001600160e01b031995506103fc945050505050565b9392505050565b7fc078f884a2676e1345748b1feace7b0abee5d00ecadb6e574dcdd109a63e894381565b600054666508d58f7d656f60c91b8114156104545760405162461bcd60e51b81526004016101169061109d565b6000338689898c898989604051602001610475989796959493929190610e90565b6040516020818303038152906040528051906020012090508082146104ac5760405162461bcd60e51b8152600401610116906110c8565b6104c06001600160a01b038916338b610748565b505050505050505050565b6000541580156104da57508015155b6104f65760405162461bcd60e51b815260040161011690611268565b60008190556105256001600160a01b03831673c92e8bdf79f0507f65a392b0ab4667716bfe01106000196107a3565b5050565b306001600160a01b037f00000000000000000000000011c76ad590abdffcd980afec9ad951b160f0279716146105715760405162461bcd60e51b8152600401610116906110f6565b6001600160a01b0383166105975760405162461bcd60e51b8152600401610116906111b3565b60006105a1610866565b90506105b86001600160a01b03881633838b6108b5565b6000338689898c8989896040516020016105d9989796959493929190610e90565b60408051601f19818403018152908290528051602090910120632f84fd1f60e21b825291506001600160a01b0383169063be13f47c9061061f908b908590600401610fe5565b600060405180830381600087803b15801561063957600080fd5b505af115801561064d573d6000803e3d6000fd5b505050507fb4577dfc919050a8d18bf47e4068f238a7263a5d22efef88b4d5bb62838a339482338b8b8b8b8b8b8b60405161069099989796959493929190610f04565b60405180910390a1505050505050505050565b60005481565b6106b1610a85565b60008060606106c285870187610c50565b9299919850965090945092505050565b601f1990910180517fd5a25ba2e97094ad7d83dc28a6572da797d6b3e7fc6663bd93efb789fc17e48982526101a08220915260405161190160f01b8152600281019290925260228201526042902090565b6000828201838110156103fc5760405162461bcd60e51b815260040161011690611066565b61079e8363a9059cbb60e01b8484604051602401610767929190610fe5565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526108dc565b505050565b80158061082b5750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e906107d99030908690600401610eea565b60206040518083038186803b1580156107f157600080fd5b505afa158015610805573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108299190610d70565b155b6108475760405162461bcd60e51b815260040161011690611334565b61079e8363095ea7b360e01b8484604051602401610767929190610fe5565b604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81523060601b601482018190526e5af43d82803e903d91602b57fd5bf360881b602883015260009160378184f09250505090565b6108d6846323b872dd60e01b85858560405160240161076793929190610fc1565b50505050565b6000610931826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661096b9092919063ffffffff16565b80519091501561079e578080602001905181019061094f9190610bbf565b61079e5760405162461bcd60e51b8152600401610116906112c0565b606061097a8484600085610982565b949350505050565b6060824710156109a45760405162461bcd60e51b81526004016101169061111d565b6109ad85610a42565b6109c95760405162461bcd60e51b815260040161011690611289565b600080866001600160a01b031685876040516109e59190610e74565b60006040518083038185875af1925050503d8060008114610a22576040519150601f19603f3d011682016040523d82523d6000602084013e610a27565b606091505b5091509150610a37828286610a4c565b979650505050505050565b803b15155b919050565b60608315610a5b5750816103fc565b825115610a6b5782518084602001fd5b8160405162461bcd60e51b8152600401610116919061101c565b6040805161018081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101829052610140810182905261016081019190915290565b8035610a4781611426565b8035610a478161143e565b60008083601f840112610b10578182fd5b50813567ffffffffffffffff811115610b27578182fd5b602083019150836020828501011115610b3f57600080fd5b9250929050565b600082601f830112610b56578081fd5b813567ffffffffffffffff811115610b6a57fe5b610b7d601f8201601f19166020016113d6565b818152846020838601011115610b91578283fd5b816020850160208301379081016020019190915292915050565b803563ffffffff81168114610a4757600080fd5b600060208284031215610bd0578081fd5b81516103fc8161143e565b600080600060408486031215610bef578182fd5b83359250602084013567ffffffffffffffff811115610c0c578283fd5b610c1886828701610aff565b9497909650939450505050565b60008060408385031215610c37578182fd5b8235610c4281611426565b946020939093013593505050565b6000806000808486036101e0811215610c67578182fd5b61018080821215610c76578283fd5b610c7f816113d6565b9150610c8a87610ae9565b8252610c9860208801610ae9565b6020830152610ca960408801610ae9565b60408301526060870135606083015260808701356080830152610cce60a08801610bab565b60a083015260c087013560c083015260e087013560e0830152610100808801358184015250610120610d01818901610af4565b90830152610140878101359083015261016080880135908301529094508490610d2b818801610ae9565b94505050610d3c6101a08601610ae9565b91506101c085013567ffffffffffffffff811115610d58578182fd5b610d6487828801610b46565b91505092959194509250565b600060208284031215610d81578081fd5b5051919050565b600080600080600080600060c0888a031215610da2578283fd5b873596506020880135610db481611426565b95506040880135610dc481611426565b94506060880135610dd481611426565b93506080880135610de481611426565b925060a088013567ffffffffffffffff811115610dff578283fd5b610e0b8a828b01610aff565b989b979a50959850939692959293505050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008151808452610e608160208601602086016113fa565b601f01601f19169290920160200192915050565b60008251610e868184602087016113fa565b9190910192915050565b6001600160a01b03898116825288811660208301528781166040830152868116606083015260808201869052841660a082015260e060c08201819052600090610edc9083018486610e1e565b9a9950505050505050505050565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038a811682528981166020830152604082018990528781166060830152868116608083015285811660a0830152841660c082015261010060e08201819052600090610f598382018587610e1e565b9c9b505050505050505050505050565b6001600160a01b03888116825287811660208301528681166040830152858116606083015260808201859052831660a082015260e060c08201819052600090610fb490830184610e48565b9998505050505050505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6001600160e01b031991909116815260200190565b6000602082526103fc6020830184610e48565b60208082526017908201527f2169735f76616c69645f7369675f66726f6d5f726f6f74000000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601190820152700858d85b98d95b17d99c9bdb57dc9bdbdd607a1b604082015260600190565b60208082526014908201527310bb30b634b22fb1b932b0ba37b92fb83937b7b360611b604082015260600190565b6020808252600d908201526c10b937b7ba2fb6b4b635b6b0b760991b604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b6020808252600d908201526c08599a5b1b17dbdc97dada5b1b609a1b604082015260600190565b6020808252600f908201526e1a5b9d985b1a5917db5a5b97dbdd5d608a1b604082015260600190565b6020808252600e908201526d10b83934b1b2afb1b432b1b5b2b960911b604082015260600190565b6020808252600a9082015269085ada5b9917dcd95b1b60b21b604082015260600190565b6020808252600a90820152690216275795f65726332360b41b604082015260600190565b602080825260069082015265042dac2e8c6d60d31b604082015260600190565b6020808252600b908201526a02173656c6c5f65726332360ac1b604082015260600190565b602080825260079082015266085c995a5b9a5d60ca1b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526010908201526f32bc3834b932b9afba37b7afb9b7b7b760811b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b8681526001600160a01b03868116602083015285166040820152606081018490526080810183905260c060a082018190526000906113ca90830184610e48565b98975050505050505050565b60405181810167ffffffffffffffff811182821017156113f257fe5b604052919050565b60005b838110156114155781810151838201526020016113fd565b838111156108d65750506000910152565b6001600160a01b038116811461143b57600080fd5b50565b801515811461143b57600080fdfea2646970667358221220bf61b2e9a4e4d0d9dc5ea9bdc1aea5a839144a8c0bb58ed8d26f9ebceaec941c64736f6c63430007060033

Deployed Bytecode Sourcemap

33456:8498:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38599:2095;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;34162:118;;;:::i;:::-;;;;;;;:::i;37502:787::-;;;;;;:::i;:::-;;:::i;:::-;;36939:307;;;;;;:::i;:::-;;:::i;35705:1226::-;;;;;;:::i;:::-;;:::i;34983:48::-;;;:::i;38599:2095::-;38725:6;38775:8;;-1:-1:-1;;;38818:41:0;;;38796:114;;;;-1:-1:-1;;;38796:114:0;;;;;;;:::i;:::-;;;;;;;;;38938:28;38981:21;39017;39053:30;39097:25;39109:12;;39097:11;:25::i;:::-;38923:199;;-1:-1:-1;38923:199:0;;-1:-1:-1;38923:199:0;-1:-1:-1;38923:199:0;-1:-1:-1;39176:11:0;39143:29;38923:199;34214:66;39143:11;:29::i;:::-;:44;39135:63;;;;-1:-1:-1;;;39135:63:0;;;;;;;:::i;:::-;39234:19;39219:6;:11;;;:34;39211:57;;;;-1:-1:-1;;;39211:57:0;;;;;;;:::i;:::-;39321:15;39339:9;39321:27;39303:6;:14;;;:45;;;;39281:111;;;;-1:-1:-1;;;39281:111:0;;;;;;;:::i;:::-;39414:6;:24;;;39413:25;39405:51;;;;-1:-1:-1;;;39405:51:0;;;;;;;:::i;:::-;39518:23;39491:6;:23;;;:50;39469:111;;;;-1:-1:-1;;;39469:111:0;;;;;;;:::i;:::-;39641:23;39615:6;:22;;;:49;39593:109;;;;-1:-1:-1;;;39593:109:0;;;;;;;:::i;:::-;39751:13;-1:-1:-1;;;;;39737:39:0;;39795;39817:6;:16;;;39795:6;:17;;;:21;;:39;;;;:::i;:::-;39861:6;:16;;;39905:6;:15;;;39940:6;:16;;;39975:6;:16;;;40010:17;39737:305;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;39715:370;;;;-1:-1:-1;;;39715:370:0;;;;;;;:::i;:::-;40098:27;40181:13;40213:6;:15;;;40247:6;:16;;;40282:6;:15;;;40316:39;40338:6;:16;;;40316:6;:17;;;:21;;:39;;;;:::i;:::-;40374:13;40406:17;40152:286;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;40128:321;;;;;;40098:351;;40489:15;40466:19;:38;40462:225;;;-1:-1:-1;;;;40609:11:0;-1:-1:-1;40602:18:0;;-1:-1:-1;;;;;40602:18:0;40462:225;-1:-1:-1;;;;;;;40660:15:0;-1:-1:-1;40653:22:0;;-1:-1:-1;;;;;40653:22:0;38599:2095;;;;;;:::o;34162:118::-;34214:66;34162:118;:::o;37502:787::-;37722:23;37748:8;-1:-1:-1;;;37777:41:0;;;37769:71;;;;-1:-1:-1;;;37769:71:0;;;;;;;:::i;:::-;37853:27;37936:10;37965:2;37986:9;38014:7;38040:8;38067:12;38098:16;;37907:222;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;37883:257;;;;;;37853:287;;38180:19;38161:15;:38;38153:71;;;;-1:-1:-1;;;38153:71:0;;;;;;;:::i;:::-;38237:44;-1:-1:-1;;;;;38237:22:0;;38260:10;38272:8;38237:22;:44::i;:::-;37502:787;;;;;;;;;:::o;36939:307::-;37044:1;37024:8;:22;:49;;;;-1:-1:-1;37050:23:0;;;37024:49;37016:69;;;;-1:-1:-1;;;37016:69:0;;;;;;;:::i;:::-;37150:8;:20;;;37183:55;-1:-1:-1;;;;;37183:21:0;;33964:42;-1:-1:-1;;37183:21:0;:55::i;:::-;36939:307;;:::o;35705:1226::-;35962:4;-1:-1:-1;;;;;35971:12:0;35954:29;;35946:55;;;;-1:-1:-1;;;35946:55:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;36089:26:0;;36081:53;;;;-1:-1:-1;;;36081:53:0;;;;;;;:::i;:::-;36187:21;36211;:19;:21::i;:::-;36187:45;-1:-1:-1;36245:63:0;-1:-1:-1;;;;;36245:26:0;;36272:10;36187:45;36299:8;36245:26;:63::i;:::-;36321:17;36394:10;36423:2;36444:9;36472:7;36498:8;36525:12;36556:16;;36365:222;;;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;36365:222:0;;;;;;;;;;36341:257;;36365:222;36341:257;;;;-1:-1:-1;;;36611:55:0;;36341:257;-1:-1:-1;;;;;;36611:33:0;;;;;:55;;36645:9;;36341:257;;36611:55;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36684:239;36712:13;36740:10;36765:8;36796:9;36829:7;36852:2;36869:12;36896:16;;36684:239;;;;;;;;;;;;;;:::i;:::-;;;;;;;;35705:1226;;;;;;;;;:::o;34983:48::-;;;;:::o;40702:461::-;40817:28;;:::i;:::-;40860:21;;40932:30;41050:105;;;;41075:13;41050:105;:::i;:::-;40990:165;;;;-1:-1:-1;40990:165:0;-1:-1:-1;40990:165:0;;-1:-1:-1;40702:461:0;-1:-1:-1;;;40702:461:0:o;23341:1622::-;-1:-1:-1;;23948:14:0;;;23988:16;;24036:9;24018:28;;24095:3;24074:25;;24113:23;;24704:4;24698:11;-1:-1:-1;;;24723:37:0;;24804:1;24781:25;;24774:50;;;;24868:2;24845:26;;24838:46;24942:2;24913:32;;;24658:298::o;13818:179::-;13876:7;13908:5;;;13932:6;;;;13924:46;;;;-1:-1:-1;;;13924:46:0;;;;;;;:::i;29385:177::-;29468:86;29488:5;29518:23;;;29543:2;29547:5;29495:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;29495:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;29495:58:0;-1:-1:-1;;;;;;29495:58:0;;;;;;;;;;29468:19;:86::i;:::-;29385:177;;;:::o;30044:622::-;30414:10;;;30413:62;;-1:-1:-1;30430:39:0;;-1:-1:-1;;;30430:39:0;;-1:-1:-1;;;;;30430:15:0;;;;;:39;;30454:4;;30461:7;;30430:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;30413:62;30405:152;;;;-1:-1:-1;;;30405:152:0;;;;;;;:::i;:::-;30568:90;30588:5;30618:22;;;30642:7;30651:5;30595:62;;;;;;;;;:::i;41171:780::-;41503:4;41497:11;-1:-1:-1;;;41522:135:0;;41404:4;41388:22;;41694:4;41678:21;;41671:43;;;-1:-1:-1;;;41769:4:0;41753:21;;41728:146;41220:22;;41928:4;41497:11;41220:22;41906:27;41888:45;;;41430:514;;:::o;29570:205::-;29671:96;29691:5;29721:27;;;29750:4;29756:2;29760:5;29698:68;;;;;;;;;;:::i;29671:96::-;29570:205;;;;:::o;31690:761::-;32114:23;32140:69;32168:4;32140:69;;;;;;;;;;;;;;;;;32148:5;-1:-1:-1;;;;;32140:27:0;;;:69;;;;;:::i;:::-;32224:17;;32114:95;;-1:-1:-1;32224:21:0;32220:224;;32366:10;32355:30;;;;;;;;;;;;:::i;:::-;32347:85;;;;-1:-1:-1;;;32347:85:0;;;;;;;:::i;3718:195::-;3821:12;3853:52;3875:6;3883:4;3889:1;3892:12;3853:21;:52::i;:::-;3846:59;3718:195;-1:-1:-1;;;;3718:195:0:o;4770:530::-;4897:12;4955:5;4930:21;:30;;4922:81;;;;-1:-1:-1;;;4922:81:0;;;;;;;:::i;:::-;5022:18;5033:6;5022:10;:18::i;:::-;5014:60;;;;-1:-1:-1;;;5014:60:0;;;;;;;:::i;:::-;5148:12;5162:23;5189:6;-1:-1:-1;;;;;5189:11:0;5209:5;5217:4;5189:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5147:75;;;;5240:52;5258:7;5267:10;5279:12;5240:17;:52::i;:::-;5233:59;4770:530;-1:-1:-1;;;;;;;4770:530:0:o;800:422::-;1167:20;;1206:8;;800:422;;;;:::o;7310:742::-;7425:12;7454:7;7450:595;;;-1:-1:-1;7485:10:0;7478:17;;7450:595;7599:17;;:21;7595:439;;7862:10;7856:17;7923:15;7910:10;7906:2;7902:19;7895:44;7810:148;8005:12;7998:20;;-1:-1:-1;;;7998:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:138:1:-;84:20;;113:33;84:20;113:33;:::i;157:132::-;224:20;;253:30;224:20;253:30;:::i;294:377::-;;;411:3;404:4;396:6;392:17;388:27;378:2;;436:8;426;419:26;378:2;-1:-1:-1;466:20:1;;509:18;498:30;;495:2;;;548:8;538;531:26;495:2;592:4;584:6;580:17;568:29;;644:3;637:4;628:6;620;616:19;612:30;609:39;606:2;;;661:1;658;651:12;606:2;368:303;;;;;:::o;676:542::-;;773:3;766:4;758:6;754:17;750:27;740:2;;795:5;788;781:20;740:2;835:6;822:20;861:18;857:2;854:26;851:2;;;883:9;851:2;918:54;960:2;941:13;;-1:-1:-1;;937:27:1;966:4;933:38;918:54;:::i;:::-;997:2;988:7;981:19;1043:3;1036:4;1031:2;1023:6;1019:15;1015:26;1012:35;1009:2;;;1064:5;1057;1050:20;1009:2;1133;1126:4;1118:6;1114:17;1107:4;1098:7;1094:18;1081:55;1156:16;;;1174:4;1152:27;1145:42;;;;1160:7;730:488;-1:-1:-1;;730:488:1:o;1223:165::-;1292:20;;1352:10;1341:22;;1331:33;;1321:2;;1378:1;1375;1368:12;1393:257;;1513:2;1501:9;1492:7;1488:23;1484:32;1481:2;;;1534:6;1526;1519:22;1481:2;1571:9;1565:16;1590:30;1614:5;1590:30;:::i;1655:499::-;;;;1803:2;1791:9;1782:7;1778:23;1774:32;1771:2;;;1824:6;1816;1809:22;1771:2;1865:9;1852:23;1842:33;;1926:2;1915:9;1911:18;1898:32;1953:18;1945:6;1942:30;1939:2;;;1990:6;1982;1975:22;1939:2;2034:60;2086:7;2077:6;2066:9;2062:22;2034:60;:::i;:::-;1761:393;;2113:8;;-1:-1:-1;2008:86:1;;-1:-1:-1;;;;1761:393:1:o;2159:341::-;;;2302:2;2290:9;2281:7;2277:23;2273:32;2270:2;;;2323:6;2315;2308:22;2270:2;2367:9;2354:23;2386:33;2413:5;2386:33;:::i;:::-;2438:5;2490:2;2475:18;;;;2462:32;;-1:-1:-1;;;2260:240:1:o;2505:1614::-;;;;;2705:9;2696:7;2692:23;2735:3;2731:2;2727:12;2724:2;;;2757:6;2749;2742:22;2724:2;2785:6;2811:2;2807;2803:11;2800:2;;;2832:6;2824;2817:22;2800:2;2863:18;2878:2;2863:18;:::i;:::-;2850:31;;2904;2925:9;2904:31;:::i;:::-;2897:5;2890:46;2968:40;3004:2;2993:9;2989:18;2968:40;:::i;:::-;2963:2;2956:5;2952:14;2945:64;3041:40;3077:2;3066:9;3062:18;3041:40;:::i;:::-;3036:2;3029:5;3025:14;3018:64;3142:2;3131:9;3127:18;3114:32;3109:2;3102:5;3098:14;3091:56;3208:3;3197:9;3193:19;3180:33;3174:3;3167:5;3163:15;3156:58;3247:40;3282:3;3271:9;3267:19;3247:40;:::i;:::-;3241:3;3234:5;3230:15;3223:65;3349:3;3338:9;3334:19;3321:33;3315:3;3308:5;3304:15;3297:58;3416:3;3405:9;3401:19;3388:33;3382:3;3375:5;3371:15;3364:58;3441:3;3504:2;3493:9;3489:18;3476:32;3471:2;3464:5;3460:14;3453:56;;3528:3;3563:37;3596:2;3585:9;3581:18;3563:37;:::i;:::-;3547:14;;;3540:61;3620:3;3668:18;;;3655:32;3639:14;;;3632:56;3707:3;3755:18;;;3742:32;3726:14;;;3719:56;3551:5;;-1:-1:-1;3551:5:1;;3818:40;3839:18;;;3818:40;:::i;:::-;3808:50;;;;3877:41;3913:3;3902:9;3898:19;3877:41;:::i;:::-;3867:51;;3969:3;3958:9;3954:19;3941:33;3997:18;3989:6;3986:30;3983:2;;;4034:6;4026;4019:22;3983:2;4062:51;4105:7;4096:6;4085:9;4081:22;4062:51;:::i;:::-;4052:61;;;2672:1447;;;;;;;:::o;4124:194::-;;4247:2;4235:9;4226:7;4222:23;4218:32;4215:2;;;4268:6;4260;4253:22;4215:2;-1:-1:-1;4296:16:1;;4205:113;-1:-1:-1;4205:113:1:o;4323:1096::-;;;;;;;;4567:3;4555:9;4546:7;4542:23;4538:33;4535:2;;;4589:6;4581;4574:22;4535:2;4630:9;4617:23;4607:33;;4690:2;4679:9;4675:18;4662:32;4703:33;4730:5;4703:33;:::i;:::-;4755:5;-1:-1:-1;4812:2:1;4797:18;;4784:32;4825:35;4784:32;4825:35;:::i;:::-;4879:7;-1:-1:-1;4938:2:1;4923:18;;4910:32;4951:35;4910:32;4951:35;:::i;:::-;5005:7;-1:-1:-1;5064:3:1;5049:19;;5036:33;5078:35;5036:33;5078:35;:::i;:::-;5132:7;-1:-1:-1;5190:3:1;5175:19;;5162:33;5218:18;5207:30;;5204:2;;;5255:6;5247;5240:22;5204:2;5299:60;5351:7;5342:6;5331:9;5327:22;5299:60;:::i;:::-;4525:894;;;;-1:-1:-1;4525:894:1;;-1:-1:-1;4525:894:1;;;;5273:86;;-1:-1:-1;;;4525:894:1:o;5424:270::-;;5514:6;5509:3;5502:19;5566:6;5559:5;5552:4;5547:3;5543:14;5530:43;5618:3;5611:4;5602:6;5597:3;5593:16;5589:27;5582:40;5683:4;5676:2;5672:7;5667:2;5659:6;5655:15;5651:29;5646:3;5642:39;5638:50;5631:57;;5492:202;;;;;:::o;5699:259::-;;5780:5;5774:12;5807:6;5802:3;5795:19;5823:63;5879:6;5872:4;5867:3;5863:14;5856:4;5849:5;5845:16;5823:63;:::i;:::-;5940:2;5919:15;-1:-1:-1;;5915:29:1;5906:39;;;;5947:4;5902:50;;5750:208;-1:-1:-1;;5750:208:1:o;5963:274::-;;6130:6;6124:13;6146:53;6192:6;6187:3;6180:4;6172:6;6168:17;6146:53;:::i;:::-;6215:16;;;;;6100:137;-1:-1:-1;;6100:137:1:o;6242:804::-;-1:-1:-1;;;;;6649:15:1;;;6631:34;;6701:15;;;6696:2;6681:18;;6674:43;6753:15;;;6748:2;6733:18;;6726:43;6805:15;;;6800:2;6785:18;;6778:43;6852:3;6837:19;;6830:35;;;6902:15;;6611:3;6881:19;;6874:44;6955:3;6949;6934:19;;6927:32;;;6242:804;;6976:64;;7020:19;;7012:6;7004;6976:64;:::i;:::-;6968:72;6583:463;-1:-1:-1;;;;;;;;;;6583:463:1:o;7051:304::-;-1:-1:-1;;;;;7281:15:1;;;7263:34;;7333:15;;7328:2;7313:18;;7306:43;7213:2;7198:18;;7180:175::o;7360:869::-;-1:-1:-1;;;;;7781:15:1;;;7763:34;;7833:15;;;7828:2;7813:18;;7806:43;7880:2;7865:18;;7858:34;;;7928:15;;;7923:2;7908:18;;7901:43;7981:15;;;7975:3;7960:19;;7953:44;8034:15;;;7743:3;8013:19;;8006:44;8087:15;;8081:3;8066:19;;8059:44;7713:3;8134;8119:19;;8112:31;;;7360:869;;8160:63;8204:18;;;8196:6;8188;8160:63;:::i;:::-;8152:71;7693:536;-1:-1:-1;;;;;;;;;;;;7693:536:1:o;8234:761::-;-1:-1:-1;;;;;8615:15:1;;;8597:34;;8667:15;;;8662:2;8647:18;;8640:43;8719:15;;;8714:2;8699:18;;8692:43;8771:15;;;8766:2;8751:18;;8744:43;8818:3;8803:19;;8796:35;;;8868:15;;8577:3;8847:19;;8840:44;8921:3;8915;8900:19;;8893:32;;;8234:761;;8942:47;;8969:19;;8961:6;8942:47;:::i;:::-;8934:55;8549:446;-1:-1:-1;;;;;;;;;8549:446:1:o;9000:375::-;-1:-1:-1;;;;;9258:15:1;;;9240:34;;9310:15;;;;9305:2;9290:18;;9283:43;9357:2;9342:18;;9335:34;;;;9190:2;9175:18;;9157:218::o;9380:274::-;-1:-1:-1;;;;;9572:32:1;;;;9554:51;;9636:2;9621:18;;9614:34;9542:2;9527:18;;9509:145::o;9659:177::-;9805:25;;;9793:2;9778:18;;9760:76::o;9841:202::-;-1:-1:-1;;;;;;10003:33:1;;;;9985:52;;9973:2;9958:18;;9940:103::o;10341:221::-;;10490:2;10479:9;10472:21;10510:46;10552:2;10541:9;10537:18;10529:6;10510:46;:::i;10567:347::-;10769:2;10751:21;;;10808:2;10788:18;;;10781:30;10847:25;10842:2;10827:18;;10820:53;10905:2;10890:18;;10741:173::o;10919:351::-;11121:2;11103:21;;;11160:2;11140:18;;;11133:30;11199:29;11194:2;11179:18;;11172:57;11261:2;11246:18;;11093:177::o;11275:341::-;11477:2;11459:21;;;11516:2;11496:18;;;11489:30;-1:-1:-1;;;11550:2:1;11535:18;;11528:47;11607:2;11592:18;;11449:167::o;11621:344::-;11823:2;11805:21;;;11862:2;11842:18;;;11835:30;-1:-1:-1;;;11896:2:1;11881:18;;11874:50;11956:2;11941:18;;11795:170::o;11970:337::-;12172:2;12154:21;;;12211:2;12191:18;;;12184:30;-1:-1:-1;;;12245:2:1;12230:18;;12223:43;12298:2;12283:18;;12144:163::o;12312:402::-;12514:2;12496:21;;;12553:2;12533:18;;;12526:30;12592:34;12587:2;12572:18;;12565:62;-1:-1:-1;;;12658:2:1;12643:18;;12636:36;12704:3;12689:19;;12486:228::o;12719:337::-;12921:2;12903:21;;;12960:2;12940:18;;;12933:30;-1:-1:-1;;;12994:2:1;12979:18;;12972:43;13047:2;13032:18;;12893:163::o;13061:339::-;13263:2;13245:21;;;13302:2;13282:18;;;13275:30;-1:-1:-1;;;13336:2:1;13321:18;;13314:45;13391:2;13376:18;;13235:165::o;13405:338::-;13607:2;13589:21;;;13646:2;13626:18;;;13619:30;-1:-1:-1;;;13680:2:1;13665:18;;13658:44;13734:2;13719:18;;13579:164::o;13748:334::-;13950:2;13932:21;;;13989:2;13969:18;;;13962:30;-1:-1:-1;;;14023:2:1;14008:18;;14001:40;14073:2;14058:18;;13922:160::o;14087:334::-;14289:2;14271:21;;;14328:2;14308:18;;;14301:30;-1:-1:-1;;;14362:2:1;14347:18;;14340:40;14412:2;14397:18;;14261:160::o;14426:329::-;14628:2;14610:21;;;14667:1;14647:18;;;14640:29;-1:-1:-1;;;14700:2:1;14685:18;;14678:36;14746:2;14731:18;;14600:155::o;14760:335::-;14962:2;14944:21;;;15001:2;14981:18;;;14974:30;-1:-1:-1;;;15035:2:1;15020:18;;15013:41;15086:2;15071:18;;14934:161::o;15100:330::-;15302:2;15284:21;;;15341:1;15321:18;;;15314:29;-1:-1:-1;;;15374:2:1;15359:18;;15352:37;15421:2;15406:18;;15274:156::o;15435:353::-;15637:2;15619:21;;;15676:2;15656:18;;;15649:30;15715:31;15710:2;15695:18;;15688:59;15779:2;15764:18;;15609:179::o;15793:406::-;15995:2;15977:21;;;16034:2;16014:18;;;16007:30;16073:34;16068:2;16053:18;;16046:62;-1:-1:-1;;;16139:2:1;16124:18;;16117:40;16189:3;16174:19;;15967:232::o;16204:340::-;16406:2;16388:21;;;16445:2;16425:18;;;16418:30;-1:-1:-1;;;16479:2:1;16464:18;;16457:46;16535:2;16520:18;;16378:166::o;16549:418::-;16751:2;16733:21;;;16790:2;16770:18;;;16763:30;16829:34;16824:2;16809:18;;16802:62;-1:-1:-1;;;16895:2:1;16880:18;;16873:52;16957:3;16942:19;;16723:244::o;16972:634::-;17241:25;;;-1:-1:-1;;;;;17340:15:1;;;17335:2;17320:18;;17313:43;17392:15;;17387:2;17372:18;;17365:43;17439:2;17424:18;;17417:34;;;17482:3;17467:19;;17460:35;;;17532:3;17293;17511:19;;17504:32;;;16972:634;;17553:47;;17580:19;;17572:6;17553:47;:::i;:::-;17545:55;17231:375;-1:-1:-1;;;;;;;;17231:375:1:o;17611:242::-;17681:2;17675:9;17711:17;;;17758:18;17743:34;;17779:22;;;17740:62;17737:2;;;17805:9;17737:2;17832;17825:22;17655:198;;-1:-1:-1;17655:198:1:o;17858:258::-;17930:1;17940:113;17954:6;17951:1;17948:13;17940:113;;;18030:11;;;18024:18;18011:11;;;18004:39;17976:2;17969:10;17940:113;;;18071:6;18068:1;18065:13;18062:2;;;-1:-1:-1;;18106:1:1;18088:16;;18081:27;17911:205::o;18121:133::-;-1:-1:-1;;;;;18198:31:1;;18188:42;;18178:2;;18244:1;18241;18234:12;18178:2;18168:86;:::o;18259:120::-;18347:5;18340:13;18333:21;18326:5;18323:32;18313:2;;18369:1;18366;18359:12

Swarm Source

ipfs://bf61b2e9a4e4d0d9dc5ea9bdc1aea5a839144a8c0bb58ed8d26f9ebceaec941c

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.