ETH Price: $2,328.76 (+0.92%)

Contract

0xc8DED60086F3d06B8DD67b9bF6Dd9ed7a4204ce8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Swap On Zero Xv4174695892023-06-13 7:28:111008 days ago1686641291
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174665012023-06-12 21:01:111009 days ago1686603671
0xc8DED600...7a4204ce8
2.482 ETH
Swap On Zero Xv4174659942023-06-12 19:17:471009 days ago1686597467
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174652952023-06-12 16:56:471009 days ago1686589007
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174652842023-06-12 16:54:351009 days ago1686588875
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4...174635892023-06-12 11:09:111009 days ago1686568151
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174634002023-06-12 10:30:591009 days ago1686565859
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174631422023-06-12 9:39:111009 days ago1686562751
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174592722023-06-11 20:36:111010 days ago1686515771
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174592682023-06-11 20:35:231010 days ago1686515723
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174546612023-06-11 4:59:591011 days ago1686459599
0xc8DED600...7a4204ce8
0.46813759 ETH
Swap On Zero Xv4...174534012023-06-11 0:44:111011 days ago1686444251
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174487252023-06-10 8:55:591011 days ago1686387359
0xc8DED600...7a4204ce8
0.87 ETH
Swap On Zero Xv4174483252023-06-10 7:34:471011 days ago1686382487
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174482682023-06-10 7:23:231011 days ago1686381803
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4...174481382023-06-10 6:56:591011 days ago1686380219
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174479452023-06-10 6:17:591011 days ago1686377879
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174479362023-06-10 6:16:111011 days ago1686377771
0xc8DED600...7a4204ce8
0.284511 ETH
Swap On Zero Xv4174479092023-06-10 6:10:471011 days ago1686377447
0xc8DED600...7a4204ce8
0.0853287 ETH
Swap On Zero Xv4...174476752023-06-10 5:23:231012 days ago1686374603
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174468122023-06-10 2:28:111012 days ago1686364091
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174464722023-06-10 1:19:471012 days ago1686359987
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174455992023-06-09 22:22:471012 days ago1686349367
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174450282023-06-09 20:26:231012 days ago1686342383
0xc8DED600...7a4204ce8
0 ETH
Swap On Zero Xv4174448822023-06-09 19:56:471012 days ago1686340607
0xc8DED600...7a4204ce8
0 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZeroxV4Router

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 1 : ZeroXV4Router.sol
// File: original_contracts/ITokenTransferProxy.sol

pragma solidity 0.7.5;


interface ITokenTransferProxy {

    function transferFrom(
        address token,
        address from,
        address to,
        uint256 amount
    )
        external;
}

// File: original_contracts/AugustusStorage.sol

pragma solidity 0.7.5;


contract AugustusStorage {

    struct FeeStructure {
        uint256 partnerShare;
        bool noPositiveSlippage;
        bool positiveSlippageToUser;
        uint16 feePercent;
        string partnerId;
        bytes data;
    }

    ITokenTransferProxy internal tokenTransferProxy;
    address payable internal feeWallet;
    
    mapping(address => FeeStructure) internal registeredPartners;

    mapping (bytes4 => address) internal selectorVsRouter;
    mapping (bytes32 => bool) internal adapterInitialized;
    mapping (bytes32 => bytes) internal adapterVsData;

    mapping (bytes32 => bytes) internal routerData;
    mapping (bytes32 => bool) internal routerInitialized;


    bytes32 public constant WHITELISTED_ROLE = keccak256("WHITELISTED_ROLE");

    bytes32 public constant ROUTER_ROLE = keccak256("ROUTER_ROLE");

}

// File: original_contracts/routers/IRouter.sol

pragma solidity 0.7.5;

interface IRouter {

    /**
    * @dev Certain routers/exchanges needs to be initialized.
    * This method will be called from Augustus
    */
    function initialize(bytes calldata data) external;

    /**
    * @dev Returns unique identifier for the router
    */
    function getKey() external pure returns(bytes32);

    event Swapped2(
        bytes16 uuid,
        address partner,
        uint256 feePercent,
        address initiator,
        address indexed beneficiary,
        address indexed srcToken,
        address indexed destToken,
        uint256 srcAmount,
        uint256 receivedAmount,
        uint256 expectedAmount
    );

    event Bought2(
        bytes16 uuid,
        address partner,
        uint256 feePercent,
        address initiator,
        address indexed beneficiary,
        address indexed srcToken,
        address indexed destToken,
        uint256 srcAmount,
        uint256 receivedAmount
    );
}

// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// File: original_contracts/lib/weth/IWETH.sol

pragma solidity 0.7.5;



abstract contract IWETH is IERC20 {
    function deposit() external virtual payable;
    function withdraw(uint256 amount) external virtual;
}

// File: original_contracts/lib/zeroxv4/LibOrderV4.sol

/* solium-disable */

pragma solidity 0.7.5;



library LibOrderV4 {
    struct Order {
        IERC20 makerToken;
        IERC20 takerToken;
        uint128 makerAmount;
        uint128 takerAmount;
        address maker;
        address taker;
        address txOrigin;
        bytes32 pool;
        uint64 expiry;
        uint256 salt;
    }

    enum SignatureType {
        ILLEGAL,
        INVALID,
        EIP712,
        ETHSIGN
    }

    struct Signature {
        // How to validate the signature.
        SignatureType signatureType;
        // EC Signature data.
        uint8 v;
        // EC Signature data.
        bytes32 r;
        // EC Signature data.
        bytes32 s;
    }
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.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-solidity/contracts/utils/Address.sol



pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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);
    }

    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: openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol



pragma solidity >=0.6.0 <0.8.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: original_contracts/lib/Utils.sol

pragma solidity 0.7.5;
pragma experimental ABIEncoderV2;





interface IERC20Permit {
    function permit(address owner, address spender, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;
}

interface IERC20PermitLegacy {
    function permit(address holder, address spender, uint256 nonce, uint256 expiry, bool allowed, uint8 v, bytes32 r, bytes32 s) external;
}

library Utils {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address constant ETH_ADDRESS = address(
        0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
    );
    
    uint256 constant MAX_UINT = type(uint256).max;

    /**
   * @param fromToken Address of the source token
   * @param fromAmount Amount of source tokens to be swapped
   * @param toAmount Minimum destination token amount expected out of this swap
   * @param expectedAmount Expected amount of destination tokens without slippage
   * @param beneficiary Beneficiary address
   * 0 then 100% will be transferred to beneficiary. Pass 10000 for 100%
   * @param path Route to be taken for this swap to take place

   */
    struct SellData {
        address fromToken;
        uint256 fromAmount;
        uint256 toAmount;
        uint256 expectedAmount;
        address payable beneficiary;
        Utils.Path[] path;
        address payable partner;
        uint256 feePercent;
        bytes permit;
        uint256 deadline;
        bytes16 uuid;
    }

    struct BuyData {
        address adapter;
        address fromToken;
        address toToken;
        uint256 fromAmount;
        uint256 toAmount;
        address payable beneficiary;
        Utils.Route[] route;
        address payable partner;
        uint256 feePercent;
        bytes permit;
        uint256 deadline;
        bytes16 uuid;
    }

    struct MegaSwapSellData {
        address fromToken;
        uint256 fromAmount;
        uint256 toAmount;
        uint256 expectedAmount;
        address payable beneficiary;
        Utils.MegaSwapPath[] path;
        address payable partner;
        uint256 feePercent;
        bytes permit;
        uint256 deadline;
        bytes16 uuid;
    }

    struct SimpleData {
        address fromToken;
        address toToken;
        uint256 fromAmount;
        uint256 toAmount;
        uint256 expectedAmount;
        address[] callees;
        bytes exchangeData;
        uint256[] startIndexes;
        uint256[] values;
        address payable beneficiary;
        address payable partner;
        uint256 feePercent;
        bytes permit;
        uint256 deadline;
        bytes16 uuid;
    }

    struct Adapter {
        address payable adapter;
        uint256 percent;
        uint256 networkFee;//NOT USED
        Route[] route;
    }

    struct Route {
        uint256 index;//Adapter at which index needs to be used
        address targetExchange;
        uint percent;
        bytes payload;
        uint256 networkFee;//NOT USED - Network fee is associated with 0xv3 trades
    }

    struct MegaSwapPath {
        uint256 fromAmountPercent;
        Path[] path;
    }

    struct Path {
        address to;
        uint256 totalNetworkFee;//NOT USED - Network fee is associated with 0xv3 trades
        Adapter[] adapters;
    }

    function ethAddress() internal pure returns (address) {return ETH_ADDRESS;}

    function maxUint() internal pure returns (uint256) {return MAX_UINT;}

    function approve(
        address addressToApprove,
        address token,
        uint256 amount
    ) internal {
        if (token != ETH_ADDRESS) {
            IERC20 _token = IERC20(token);

            uint allowance = _token.allowance(address(this), addressToApprove);

            if (allowance < amount) {
                _token.safeApprove(addressToApprove, 0);
                _token.safeIncreaseAllowance(addressToApprove, MAX_UINT);
            }
        }
    }

    function transferTokens(
        address token,
        address payable destination,
        uint256 amount
    )
    internal
    {
        if (amount > 0) {
            if (token == ETH_ADDRESS) {
                (bool result, ) = destination.call{value: amount, gas: 10000}("");
                require(result, "Failed to transfer Ether");
            }
            else {
                IERC20(token).safeTransfer(destination, amount);
            }
        }

    }

    function tokenBalance(
        address token,
        address account
    )
    internal
    view
    returns (uint256)
    {
        if (token == ETH_ADDRESS) {
            return account.balance;
        } else {
            return IERC20(token).balanceOf(account);
        }
    }

    function permit(
        address token,
        bytes memory permit
    )
        internal
    {
        if (permit.length == 32 * 7) {
            (bool success,) = token.call(abi.encodePacked(IERC20Permit.permit.selector, permit));
            require(success, "Permit failed");
        }

        if (permit.length == 32 * 8) {
            (bool success,) = token.call(abi.encodePacked(IERC20PermitLegacy.permit.selector, permit));
            require(success, "Permit failed");
        }
    }

}

// File: original_contracts/routers/ZeroXV4Router.sol

pragma solidity 0.7.5;







interface IZeroxV4 {

    function fillRfqOrder(
        // The order
        LibOrderV4.Order calldata order,
        // The signature
        LibOrderV4.Signature calldata signature,
        // How much taker token to fill the order with
        uint128 takerTokenFillAmount
    )
        external
        payable
        // How much maker token from the order the taker received.
        returns (uint128, uint128);
}

contract ZeroxV4Router is AugustusStorage, IRouter {

    address public immutable weth;

    struct ZeroxV4Data {
        LibOrderV4.Order order;
        LibOrderV4.Signature signature;
    }

    constructor(address _weth) public {
        weth = _weth;
    }

    function initialize(bytes calldata data) override external {
        revert("METHOD NOT IMPLEMENTED");
    }

    function getKey() override external pure returns(bytes32) {
        return keccak256(abi.encodePacked("ZEROX_V4_ROUTER", "1.0.0"));
    }

     function swapOnZeroXv4(
        IERC20 fromToken,
        IERC20 toToken,
        uint256 fromAmount,
        uint256 amountOutMin,
        address exchange,
        bytes calldata payload
    )
        external
        payable
    {
        address _fromToken = address(fromToken);
        address _toToken = address(toToken);

        if (address(fromToken) == Utils.ethAddress()) {
            require(fromAmount == msg.value, "Incorrect msg.value");
            IWETH(weth).deposit{value: fromAmount}();
            _fromToken = weth;
        } else {
            require(msg.value == 0, "Incorrect msg.value");
            transferTokensFromProxy(_fromToken, fromAmount);
        } 

        if (address(toToken) == Utils.ethAddress()) {
            _toToken = weth;
        }

        ZeroxV4Data memory data = abi.decode(payload, (ZeroxV4Data));
        require(address(data.order.takerToken) == address(_fromToken), "Invalid from token!!");
        require(address(data.order.makerToken) == address(_toToken), "Invalid to token!!");


        Utils.approve(exchange, address(_fromToken), fromAmount);
        IZeroxV4(exchange).fillRfqOrder(
            data.order,
            data.signature,
            uint128(fromAmount)
        );

        uint256 receivedAmount = Utils.tokenBalance(address(_toToken), address(this));
        require(receivedAmount >= amountOutMin, "Slippage check failed");

        if (address(toToken) == Utils.ethAddress()) {
            IWETH(weth).withdraw(receivedAmount);
        }

        Utils.transferTokens(address(toToken), msg.sender, receivedAmount);
    }

    function swapOnZeroXv4WithPermit(
        IERC20 fromToken,
        IERC20 toToken,
        uint256 fromAmount,
        uint256 amountOutMin,
        address exchange,
        bytes calldata payload,
        bytes calldata permit
    )
        external
        payable
    {
        address _fromToken = address(fromToken);
        address _toToken = address(toToken);

        if (address(fromToken) == Utils.ethAddress()) {
            require(fromAmount == msg.value, "Incorrect msg.value");
            IWETH(weth).deposit{value: fromAmount}();
            _fromToken = weth;
        } else {
            require(msg.value == 0, "Incorrect msg.value");
            Utils.permit(_fromToken, permit);
            transferTokensFromProxy(_fromToken, fromAmount);
        } 

        if (address(toToken) == Utils.ethAddress()) {
            _toToken = weth;
        }

        ZeroxV4Data memory data = abi.decode(payload, (ZeroxV4Data));
        require(address(data.order.takerToken) == address(_fromToken), "Invalid from token!!");
        require(address(data.order.makerToken) == address(_toToken), "Invalid to token!!");


        Utils.approve(exchange, address(_fromToken), fromAmount);
        IZeroxV4(exchange).fillRfqOrder(
            data.order,
            data.signature,
            uint128(fromAmount)
        );

        uint256 receivedAmount = Utils.tokenBalance(address(_toToken), address(this));
        require(receivedAmount >= amountOutMin, "Slippage check failed");

        if (address(toToken) == Utils.ethAddress()) {
            IWETH(weth).withdraw(receivedAmount);
        }

        Utils.transferTokens(address(toToken), msg.sender, receivedAmount);
    }

    function transferTokensFromProxy(
        address token,
        uint256 amount
    )
      private
    {
        if (token != Utils.ethAddress()) {
            tokenTransferProxy.transferFrom(
                token,
                msg.sender,
                address(this),
                amount
            );
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes16","name":"uuid","type":"bytes16"},{"indexed":false,"internalType":"address","name":"partner","type":"address"},{"indexed":false,"internalType":"uint256","name":"feePercent","type":"uint256"},{"indexed":false,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"}],"name":"Bought2","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes16","name":"uuid","type":"bytes16"},{"indexed":false,"internalType":"address","name":"partner","type":"address"},{"indexed":false,"internalType":"uint256","name":"feePercent","type":"uint256"},{"indexed":false,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"srcToken","type":"address"},{"indexed":true,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"receivedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expectedAmount","type":"uint256"}],"name":"Swapped2","type":"event"},{"inputs":[],"name":"ROUTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELISTED_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"}],"name":"swapOnZeroXv4","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"fromToken","type":"address"},{"internalType":"contract IERC20","name":"toToken","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address","name":"exchange","type":"address"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"swapOnZeroXv4WithPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a060405234801561001057600080fd5b50604051620022573803806200225783398101604081905261003191610046565b60601b6001600160601b031916608052610074565b600060208284031215610057578081fd5b81516001600160a01b038116811461006d578182fd5b9392505050565b60805160601c61219d620000ba6000398061015a528061022f52806102b0528061035652806105c452806106bc528061073d52806108235280610a91525061219d6000f3fe6080604052600436106100705760003560e01c8063644668051161004e57806364466805146100e45780636b4109d3146100f75780637a3226ec1461010a57806382678dd61461011f57610070565b806330d643b5146100755780633fc8cef3146100a0578063439fab91146100c2575b600080fd5b34801561008157600080fd5b5061008a610134565b6040516100979190611ca8565b60405180910390f35b3480156100ac57600080fd5b506100b5610158565b6040516100979190611c03565b3480156100ce57600080fd5b506100e26100dd366004611805565b61017c565b005b6100e26100f2366004611845565b6101b7565b6100e26101053660046118d2565b610644565b34801561011657600080fd5b5061008a610b13565b34801561012b57600080fd5b5061008a610b37565b7f7a05a596cb0ce7fdea8a1e1ec73be300bdb35097c944ce1897202f7a13122eb281565b7f000000000000000000000000000000000000000000000000000000000000000081565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e72565b60405180910390fd5b86866101c1610b63565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614156102d65734871461022d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b15801561029557600080fd5b505af11580156102a9573d6000803e3d6000fd5b50505050507f00000000000000000000000000000000000000000000000000000000000000009150610318565b341561030e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b6103188288610b7b565b610320610b63565b73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16141561037657507f00000000000000000000000000000000000000000000000000000000000000005b61037e611653565b61038a8486018661198c565b90508273ffffffffffffffffffffffffffffffffffffffff1681600001516020015173ffffffffffffffffffffffffffffffffffffffff16146103f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e04565b80515173ffffffffffffffffffffffffffffffffffffffff83811691161461044d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ea9565b61045886848a610c48565b805160208201516040517faa77476c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169263aa77476c926104b1928d90600401612008565b6040805180830381600087803b1580156104ca57600080fd5b505af11580156104de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105029190611a8e565b505060006105108330610d97565b90508781101561054c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d70565b610554610b63565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16141561062c576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d906105f9908490600401611ca8565b600060405180830381600087803b15801561061357600080fd5b505af1158015610627573d6000803e3d6000fd5b505050505b6106378a3383610e94565b5050505050505050505050565b888861064e610b63565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161415610763573489146106ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561072257600080fd5b505af1158015610736573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000091506107e5565b341561079b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b6107db8285858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610f9b92505050565b6107e5828a610b7b565b6107ed610b63565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16141561084357507f00000000000000000000000000000000000000000000000000000000000000005b61084b611653565b6108578688018861198c565b90508273ffffffffffffffffffffffffffffffffffffffff1681600001516020015173ffffffffffffffffffffffffffffffffffffffff16146108c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e04565b80515173ffffffffffffffffffffffffffffffffffffffff83811691161461091a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ea9565b61092588848c610c48565b805160208201516040517faa77476c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b169263aa77476c9261097e928f90600401612008565b6040805180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190611a8e565b505060006109dd8330610d97565b905089811015610a19576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d70565b610a21610b63565b73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610af9576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690632e1a7d4d90610ac6908490600401611ca8565b600060405180830381600087803b158015610ae057600080fd5b505af1158015610af4573d6000803e3d6000fd5b505050505b610b048c3383610e94565b50505050505050505050505050565b7f8429d542926e6695b59ac6fbdcd9b37e8b1aeb757afab06ab60b1bb5878c3b4981565b6000604051602001610b4890611bb1565b60405160208183030381529060405280519060200120905090565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b610b83610b63565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610c44576000546040517f15dacbea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906315dacbea90610c11908590339030908790600401611c4b565b600060405180830381600087803b158015610c2b57600080fd5b505af1158015610c3f573d6000803e3d6000fd5b505050505b5050565b73ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610d92576040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152829060009073ffffffffffffffffffffffffffffffffffffffff83169063dd62ed3e90610cd29030908990600401611c24565b60206040518083038186803b158015610cea57600080fd5b505afa158015610cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d229190611ac7565b905082811015610d8f57610d4e73ffffffffffffffffffffffffffffffffffffffff8316866000611182565b610d8f73ffffffffffffffffffffffffffffffffffffffff8316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611307565b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610de9575073ffffffffffffffffffffffffffffffffffffffff811631610e8e565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190610e3b908590600401611c03565b60206040518083038186803b158015610e5357600080fd5b505afa158015610e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8b9190611ac7565b90505b92915050565b8015610d925773ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f7a5760008273ffffffffffffffffffffffffffffffffffffffff168261271090604051610ef690611c00565b600060405180830381858888f193505050503d8060008114610f34576040519150601f19603f3d011682016040523d82523d6000602084013e610f39565b606091505b5050905080610f74576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d02565b50610d92565b610d9273ffffffffffffffffffffffffffffffffffffffff841683836113c5565b805160e0141561108f5760008273ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001610fd8929190611b4d565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261101091611b95565b6000604051808303816000865af19150503d806000811461104d576040519150601f19603f3d011682016040523d82523d6000602084013e611052565b606091505b505090508061108d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e3b565b505b80516101001415610c445760008273ffffffffffffffffffffffffffffffffffffffff16638fcbaf0c60e01b836040516020016110cd929190611b4d565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261110591611b95565b6000604051808303816000865af19150503d8060008114611142576040519150601f19603f3d011682016040523d82523d6000602084013e611147565b606091505b5050905080610d92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e3b565b80158061123057506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84169063dd62ed3e906111de9030908690600401611c24565b60206040518083038186803b1580156111f657600080fd5b505afa15801561120a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122e9190611ac7565b155b611266576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611fab565b610d928363095ea7b360e01b8484604051602401611285929190611c82565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526113e4565b600061139e828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401611348929190611c24565b60206040518083038186803b15801561136057600080fd5b505afa158015611374573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113989190611ac7565b9061149a565b90506113bf8463095ea7b360e01b8584604051602401611285929190611c82565b50505050565b610d928363a9059cbb60e01b8484604051602401611285929190611c82565b6060611446826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114d99092919063ffffffff16565b805190915015610d92578080602001905181019061146491906117e5565b610d92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611f4e565b600082820183811015610e8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d39565b60606114e884846000856114f2565b90505b9392505050565b60608247101561152e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611da7565b611537856115f6565b61156d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611f17565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516115979190611b95565b60006040518083038185875af1925050503d80600081146115d4576040519150601f19603f3d011682016040523d82523d6000602084013e6115d9565b606091505b50915091506115e9828286611600565b925050505b949350505050565b803b15155b919050565b6060831561160f5750816114eb565b82511561161f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae9190611cb1565b6040518060400160405280611666611678565b81526020016116736116cc565b905290565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b604080516080810190915280600081526000602082018190526040820181905260609091015290565b80356115fb81612124565b60008083601f840112611711578182fd5b50813567ffffffffffffffff811115611728578182fd5b60208301915083602082850101111561174057600080fd5b9250929050565b600060808284031215611758578081fd5b6040516080810181811067ffffffffffffffff8211171561177557fe5b60405290508082356004811061178a57600080fd5b8152602083013560ff811681146117a057600080fd5b8060208301525060408301356040820152606083013560608201525092915050565b80356115fb81612149565b803567ffffffffffffffff811681146115fb57600080fd5b6000602082840312156117f6578081fd5b81518015158114610e8b578182fd5b60008060208385031215611817578081fd5b823567ffffffffffffffff81111561182d578182fd5b61183985828601611700565b90969095509350505050565b600080600080600080600060c0888a03121561185f578283fd5b873561186a81612124565b9650602088013561187a81612124565b95506040880135945060608801359350608088013561189881612124565b925060a088013567ffffffffffffffff8111156118b3578283fd5b6118bf8a828b01611700565b989b979a50959850939692959293505050565b600080600080600080600080600060e08a8c0312156118ef578182fd5b89356118fa81612124565b985060208a013561190a81612124565b975060408a0135965060608a0135955060808a013561192881612124565b945060a08a013567ffffffffffffffff80821115611944578384fd5b6119508d838e01611700565b909650945060c08c0135915080821115611968578384fd5b506119758c828d01611700565b915080935050809150509295985092959850929598565b60008183036101c081121561199f578182fd5b6040516040810181811067ffffffffffffffff821117156119bc57fe5b604052610140808312156119ce578384fd5b6119d7816120d4565b92506119e2856116f5565b83526119f0602086016116f5565b6020840152611a01604086016117c2565b6040840152611a12606086016117c2565b6060840152611a23608086016116f5565b6080840152611a3460a086016116f5565b60a0840152611a4560c086016116f5565b60c084015260e085013560e0840152610100611a628187016117cd565b908401526101208581013590840152828252611a8086828701611747565b602083015250949350505050565b60008060408385031215611aa0578182fd5b8251611aab81612149565b6020840151909250611abc81612149565b809150509250929050565b600060208284031215611ad8578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff169052565b805160048110611b0557fe5b825260208181015160ff169083015260408082015190830152606090810151910152565b6fffffffffffffffffffffffffffffffff169052565b67ffffffffffffffff169052565b60007fffffffff00000000000000000000000000000000000000000000000000000000841682528251611b878160048501602087016120f8565b919091016004019392505050565b60008251611ba78184602087016120f8565b9190910192915050565b7f5a45524f585f56345f524f55544552000000000000000000000000000000000081527f312e302e30000000000000000000000000000000000000000000000000000000600f82015260140190565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015292166040820152606081019190915260800190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b90815260200190565b6000602082528251806020840152611cd08160408501602087016120f8565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526018908201527f4661696c656420746f207472616e736665722045746865720000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526015908201527f536c69707061676520636865636b206661696c65640000000000000000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f496e76616c69642066726f6d20746f6b656e2121000000000000000000000000604082015260600190565b6020808252600d908201527f5065726d6974206661696c656400000000000000000000000000000000000000604082015260600190565b60208082526016908201527f4d4554484f44204e4f5420494d504c454d454e54454400000000000000000000604082015260600190565b60208082526012908201527f496e76616c696420746f20746f6b656e21210000000000000000000000000000604082015260600190565b60208082526013908201527f496e636f7272656374206d73672e76616c756500000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60006101e08201905061201c828651611adf565b602085015161202e6020840182611adf565b5060408501516120416040840182611b29565b5060608501516120546060840182611b29565b5060808501516120676080840182611adf565b5060a085015161207a60a0840182611adf565b5060c085015161208d60c0840182611adf565b5060e085015160e0830152610100808601516120ab82850182611b3f565b505061012085810151908301526120c6610140830185611af9565b6115ee6101c0830184611b29565b60405181810167ffffffffffffffff811182821017156120f057fe5b604052919050565b60005b838110156121135781810151838201526020016120fb565b838111156113bf5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461214657600080fd5b50565b6fffffffffffffffffffffffffffffffff8116811461214657600080fdfea2646970667358221220a26e79299db4aec8208bbb8dcc0210075d6e3215841a2e42eb8c7ff77065e83c64736f6c63430007050033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x6080604052600436106100705760003560e01c8063644668051161004e57806364466805146100e45780636b4109d3146100f75780637a3226ec1461010a57806382678dd61461011f57610070565b806330d643b5146100755780633fc8cef3146100a0578063439fab91146100c2575b600080fd5b34801561008157600080fd5b5061008a610134565b6040516100979190611ca8565b60405180910390f35b3480156100ac57600080fd5b506100b5610158565b6040516100979190611c03565b3480156100ce57600080fd5b506100e26100dd366004611805565b61017c565b005b6100e26100f2366004611845565b6101b7565b6100e26101053660046118d2565b610644565b34801561011657600080fd5b5061008a610b13565b34801561012b57600080fd5b5061008a610b37565b7f7a05a596cb0ce7fdea8a1e1ec73be300bdb35097c944ce1897202f7a13122eb281565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e72565b60405180910390fd5b86866101c1610b63565b73ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614156102d65734871461022d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0886040518263ffffffff1660e01b81526004016000604051808303818588803b15801561029557600080fd5b505af11580156102a9573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29150610318565b341561030e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b6103188288610b7b565b610320610b63565b73ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16141561037657507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b61037e611653565b61038a8486018661198c565b90508273ffffffffffffffffffffffffffffffffffffffff1681600001516020015173ffffffffffffffffffffffffffffffffffffffff16146103f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e04565b80515173ffffffffffffffffffffffffffffffffffffffff83811691161461044d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ea9565b61045886848a610c48565b805160208201516040517faa77476c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169263aa77476c926104b1928d90600401612008565b6040805180830381600087803b1580156104ca57600080fd5b505af11580156104de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105029190611a8e565b505060006105108330610d97565b90508781101561054c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d70565b610554610b63565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16141561062c576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21690632e1a7d4d906105f9908490600401611ca8565b600060405180830381600087803b15801561061357600080fd5b505af1158015610627573d6000803e3d6000fd5b505050505b6106378a3383610e94565b5050505050505050505050565b888861064e610b63565b73ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161415610763573489146106ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b15801561072257600080fd5b505af1158015610736573d6000803e3d6000fd5b50505050507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc291506107e5565b341561079b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ee0565b6107db8285858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610f9b92505050565b6107e5828a610b7b565b6107ed610b63565b73ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16141561084357507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25b61084b611653565b6108578688018861198c565b90508273ffffffffffffffffffffffffffffffffffffffff1681600001516020015173ffffffffffffffffffffffffffffffffffffffff16146108c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e04565b80515173ffffffffffffffffffffffffffffffffffffffff83811691161461091a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611ea9565b61092588848c610c48565b805160208201516040517faa77476c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b169263aa77476c9261097e928f90600401612008565b6040805180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190611a8e565b505060006109dd8330610d97565b905089811015610a19576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d70565b610a21610b63565b73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff161415610af9576040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21690632e1a7d4d90610ac6908490600401611ca8565b600060405180830381600087803b158015610ae057600080fd5b505af1158015610af4573d6000803e3d6000fd5b505050505b610b048c3383610e94565b50505050505050505050505050565b7f8429d542926e6695b59ac6fbdcd9b37e8b1aeb757afab06ab60b1bb5878c3b4981565b6000604051602001610b4890611bb1565b60405160208183030381529060405280519060200120905090565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee90565b610b83610b63565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610c44576000546040517f15dacbea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906315dacbea90610c11908590339030908790600401611c4b565b600060405180830381600087803b158015610c2b57600080fd5b505af1158015610c3f573d6000803e3d6000fd5b505050505b5050565b73ffffffffffffffffffffffffffffffffffffffff821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610d92576040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152829060009073ffffffffffffffffffffffffffffffffffffffff83169063dd62ed3e90610cd29030908990600401611c24565b60206040518083038186803b158015610cea57600080fd5b505afa158015610cfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d229190611ac7565b905082811015610d8f57610d4e73ffffffffffffffffffffffffffffffffffffffff8316866000611182565b610d8f73ffffffffffffffffffffffffffffffffffffffff8316867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611307565b50505b505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610de9575073ffffffffffffffffffffffffffffffffffffffff811631610e8e565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906370a0823190610e3b908590600401611c03565b60206040518083038186803b158015610e5357600080fd5b505afa158015610e67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8b9190611ac7565b90505b92915050565b8015610d925773ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610f7a5760008273ffffffffffffffffffffffffffffffffffffffff168261271090604051610ef690611c00565b600060405180830381858888f193505050503d8060008114610f34576040519150601f19603f3d011682016040523d82523d6000602084013e610f39565b606091505b5050905080610f74576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d02565b50610d92565b610d9273ffffffffffffffffffffffffffffffffffffffff841683836113c5565b805160e0141561108f5760008273ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b83604051602001610fd8929190611b4d565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261101091611b95565b6000604051808303816000865af19150503d806000811461104d576040519150601f19603f3d011682016040523d82523d6000602084013e611052565b606091505b505090508061108d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e3b565b505b80516101001415610c445760008273ffffffffffffffffffffffffffffffffffffffff16638fcbaf0c60e01b836040516020016110cd929190611b4d565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261110591611b95565b6000604051808303816000865af19150503d8060008114611142576040519150601f19603f3d011682016040523d82523d6000602084013e611147565b606091505b5050905080610d92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611e3b565b80158061123057506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84169063dd62ed3e906111de9030908690600401611c24565b60206040518083038186803b1580156111f657600080fd5b505afa15801561120a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122e9190611ac7565b155b611266576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611fab565b610d928363095ea7b360e01b8484604051602401611285929190611c82565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526113e4565b600061139e828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401611348929190611c24565b60206040518083038186803b15801561136057600080fd5b505afa158015611374573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113989190611ac7565b9061149a565b90506113bf8463095ea7b360e01b8584604051602401611285929190611c82565b50505050565b610d928363a9059cbb60e01b8484604051602401611285929190611c82565b6060611446826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114d99092919063ffffffff16565b805190915015610d92578080602001905181019061146491906117e5565b610d92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611f4e565b600082820183811015610e8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611d39565b60606114e884846000856114f2565b90505b9392505050565b60608247101561152e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611da7565b611537856115f6565b61156d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae90611f17565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516115979190611b95565b60006040518083038185875af1925050503d80600081146115d4576040519150601f19603f3d011682016040523d82523d6000602084013e6115d9565b606091505b50915091506115e9828286611600565b925050505b949350505050565b803b15155b919050565b6060831561160f5750816114eb565b82511561161f5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ae9190611cb1565b6040518060400160405280611666611678565b81526020016116736116cc565b905290565b6040805161014081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b604080516080810190915280600081526000602082018190526040820181905260609091015290565b80356115fb81612124565b60008083601f840112611711578182fd5b50813567ffffffffffffffff811115611728578182fd5b60208301915083602082850101111561174057600080fd5b9250929050565b600060808284031215611758578081fd5b6040516080810181811067ffffffffffffffff8211171561177557fe5b60405290508082356004811061178a57600080fd5b8152602083013560ff811681146117a057600080fd5b8060208301525060408301356040820152606083013560608201525092915050565b80356115fb81612149565b803567ffffffffffffffff811681146115fb57600080fd5b6000602082840312156117f6578081fd5b81518015158114610e8b578182fd5b60008060208385031215611817578081fd5b823567ffffffffffffffff81111561182d578182fd5b61183985828601611700565b90969095509350505050565b600080600080600080600060c0888a03121561185f578283fd5b873561186a81612124565b9650602088013561187a81612124565b95506040880135945060608801359350608088013561189881612124565b925060a088013567ffffffffffffffff8111156118b3578283fd5b6118bf8a828b01611700565b989b979a50959850939692959293505050565b600080600080600080600080600060e08a8c0312156118ef578182fd5b89356118fa81612124565b985060208a013561190a81612124565b975060408a0135965060608a0135955060808a013561192881612124565b945060a08a013567ffffffffffffffff80821115611944578384fd5b6119508d838e01611700565b909650945060c08c0135915080821115611968578384fd5b506119758c828d01611700565b915080935050809150509295985092959850929598565b60008183036101c081121561199f578182fd5b6040516040810181811067ffffffffffffffff821117156119bc57fe5b604052610140808312156119ce578384fd5b6119d7816120d4565b92506119e2856116f5565b83526119f0602086016116f5565b6020840152611a01604086016117c2565b6040840152611a12606086016117c2565b6060840152611a23608086016116f5565b6080840152611a3460a086016116f5565b60a0840152611a4560c086016116f5565b60c084015260e085013560e0840152610100611a628187016117cd565b908401526101208581013590840152828252611a8086828701611747565b602083015250949350505050565b60008060408385031215611aa0578182fd5b8251611aab81612149565b6020840151909250611abc81612149565b809150509250929050565b600060208284031215611ad8578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff169052565b805160048110611b0557fe5b825260208181015160ff169083015260408082015190830152606090810151910152565b6fffffffffffffffffffffffffffffffff169052565b67ffffffffffffffff169052565b60007fffffffff00000000000000000000000000000000000000000000000000000000841682528251611b878160048501602087016120f8565b919091016004019392505050565b60008251611ba78184602087016120f8565b9190910192915050565b7f5a45524f585f56345f524f55544552000000000000000000000000000000000081527f312e302e30000000000000000000000000000000000000000000000000000000600f82015260140190565b90565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9485168152928416602084015292166040820152606081019190915260800190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b90815260200190565b6000602082528251806020840152611cd08160408501602087016120f8565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526018908201527f4661696c656420746f207472616e736665722045746865720000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526015908201527f536c69707061676520636865636b206661696c65640000000000000000000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f496e76616c69642066726f6d20746f6b656e2121000000000000000000000000604082015260600190565b6020808252600d908201527f5065726d6974206661696c656400000000000000000000000000000000000000604082015260600190565b60208082526016908201527f4d4554484f44204e4f5420494d504c454d454e54454400000000000000000000604082015260600190565b60208082526012908201527f496e76616c696420746f20746f6b656e21210000000000000000000000000000604082015260600190565b60208082526013908201527f496e636f7272656374206d73672e76616c756500000000000000000000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60006101e08201905061201c828651611adf565b602085015161202e6020840182611adf565b5060408501516120416040840182611b29565b5060608501516120546060840182611b29565b5060808501516120676080840182611adf565b5060a085015161207a60a0840182611adf565b5060c085015161208d60c0840182611adf565b5060e085015160e0830152610100808601516120ab82850182611b3f565b505061012085810151908301526120c6610140830185611af9565b6115ee6101c0830184611b29565b60405181810167ffffffffffffffff811182821017156120f057fe5b604052919050565b60005b838110156121135781810151838201526020016120fb565b838111156113bf5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461214657600080fd5b50565b6fffffffffffffffffffffffffffffffff8116811461214657600080fdfea2646970667358221220a26e79299db4aec8208bbb8dcc0210075d6e3215841a2e42eb8c7ff77065e83c64736f6c63430007050033

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

000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

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


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

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.