ETH Price: $3,245.76 (-0.14%)

Contract

0x8D90113A1e286a5aB3e496fbD1853F265e5913c6
 

Overview

ETH Balance

2.158589919165504462 ETH

Eth Value

$7,006.26 (@ $3,245.76/ETH)

Token Holdings

Transaction Hash
Method
Block
From
To
Transfer128584922021-07-19 18:01:051270 days ago1626717665IN
Tokenlon: PMM
0.000004 ETH0.000900942.9
Transfer128584822021-07-19 17:58:311270 days ago1626717511IN
Tokenlon: PMM
0.000004 ETH0.00088242
Transfer128584802021-07-19 17:58:001270 days ago1626717480IN
Tokenlon: PMM
0.000009 ETH0.00088242
Transfer128584492021-07-19 17:49:141270 days ago1626716954IN
Tokenlon: PMM
0.000004 ETH0.0008599540.95
Transfer128583982021-07-19 17:36:001270 days ago1626716160IN
Tokenlon: PMM
0.000007 ETH0.00081939
Transfer128580252021-07-19 16:07:261271 days ago1626710846IN
Tokenlon: PMM
0.000009 ETH0.00071434
Transfer128580002021-07-19 16:00:291271 days ago1626710429IN
Tokenlon: PMM
0.000003 ETH0.00060929
Transfer128579942021-07-19 15:58:491271 days ago1626710329IN
Tokenlon: PMM
0.000001 ETH0.0006330
Transfer126356232021-06-14 23:42:381305 days ago1623714158IN
Tokenlon: PMM
0 ETH0.0002526612.00000145
Transfer126353542021-06-14 22:41:441305 days ago1623710504IN
Tokenlon: PMM
0 ETH0.0003158215.00000145
Transfer120882942021-03-22 11:15:131390 days ago1616411713IN
Tokenlon: PMM
2.15858991 ETH0.00263187125.00000145
Transfer Ownersh...114630622020-12-16 8:35:131486 days ago1608107713IN
Tokenlon: PMM
0 ETH0.0014272550

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
215954752025-01-10 17:09:3551 secs ago1736528975
Tokenlon: PMM
2 ETH
215954752025-01-10 17:09:3551 secs ago1736528975
Tokenlon: PMM
2 ETH
215954422025-01-10 17:02:597 mins ago1736528579
Tokenlon: PMM
0.19780793 ETH
215954422025-01-10 17:02:597 mins ago1736528579
Tokenlon: PMM
0.19780793 ETH
215954352025-01-10 17:01:358 mins ago1736528495
Tokenlon: PMM
0.0068 ETH
215954352025-01-10 17:01:358 mins ago1736528495
Tokenlon: PMM
0.0068 ETH
215954012025-01-10 16:54:4715 mins ago1736528087
Tokenlon: PMM
0.7671 ETH
215954012025-01-10 16:54:4715 mins ago1736528087
Tokenlon: PMM
0.7671 ETH
215953692025-01-10 16:48:2322 mins ago1736527703
Tokenlon: PMM
2.23350472 ETH
215953692025-01-10 16:48:2322 mins ago1736527703
Tokenlon: PMM
2.23350472 ETH
215953592025-01-10 16:46:2324 mins ago1736527583
Tokenlon: PMM
0.5852 ETH
215953592025-01-10 16:46:2324 mins ago1736527583
Tokenlon: PMM
0.5852 ETH
215952922025-01-10 16:32:4737 mins ago1736526767
Tokenlon: PMM
0.66068859 ETH
215952922025-01-10 16:32:4737 mins ago1736526767
Tokenlon: PMM
0.66068859 ETH
215952542025-01-10 16:25:1145 mins ago1736526311
Tokenlon: PMM
17.3342 ETH
215952542025-01-10 16:25:1145 mins ago1736526311
Tokenlon: PMM
17.3342 ETH
215952402025-01-10 16:22:2348 mins ago1736526143
Tokenlon: PMM
2.67946295 ETH
215952402025-01-10 16:22:2348 mins ago1736526143
Tokenlon: PMM
2.67946295 ETH
215952372025-01-10 16:21:4748 mins ago1736526107
Tokenlon: PMM
0.3 ETH
215952372025-01-10 16:21:4748 mins ago1736526107
Tokenlon: PMM
0.3 ETH
215951872025-01-10 16:11:4758 mins ago1736525507
Tokenlon: PMM
0.06194719 ETH
215951872025-01-10 16:11:4758 mins ago1736525507
Tokenlon: PMM
0.06194719 ETH
215951862025-01-10 16:11:3558 mins ago1736525495
Tokenlon: PMM
2.995 ETH
215951862025-01-10 16:11:3558 mins ago1736525495
Tokenlon: PMM
2.995 ETH
215951812025-01-10 16:10:351 hrs ago1736525435
Tokenlon: PMM
0.595 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PMM

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-18
*/

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

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


pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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


pragma solidity ^0.6.2;

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

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

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

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

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

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

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

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

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

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

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

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


pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

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


pragma solidity ^0.6.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: contracts/pmm/0xLibs/LibEIP712.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.0;


contract LibEIP712 {

    // EIP191 header for EIP712 prefix
    string constant internal EIP191_HEADER = "\x19\x01";

    // EIP712 Domain Name value
    string constant internal EIP712_DOMAIN_NAME = "0x Protocol";

    // EIP712 Domain Version value
    string constant internal EIP712_DOMAIN_VERSION = "2";

    // Hash of the EIP712 Domain Separator Schema
    bytes32 constant internal EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH = keccak256(abi.encodePacked(
        "EIP712Domain(",
        "string name,",
        "string version,",
        "address verifyingContract",
        ")"
    ));

    // Hash of the EIP712 Domain Separator data
    // solhint-disable-next-line var-name-mixedcase
    bytes32 public EIP712_DOMAIN_HASH;

    constructor ()
        public
    {
        EIP712_DOMAIN_HASH = keccak256(abi.encodePacked(
            EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH,
            keccak256(bytes(EIP712_DOMAIN_NAME)),
            keccak256(bytes(EIP712_DOMAIN_VERSION)),
            bytes12(0),
            address(this)
        ));
    }

    /// @dev Calculates EIP712 encoding for a hash struct in this EIP712 Domain.
    /// @param hashStruct The EIP712 hash struct.
    /// @return result EIP712 hash applied to this EIP712 Domain.
    function hashEIP712Message(bytes32 hashStruct)
        internal
        view
        returns (bytes32 result)
    {
        bytes32 eip712DomainHash = EIP712_DOMAIN_HASH;

        // Assembly for more efficient computing:
        // keccak256(abi.encodePacked(
        //     EIP191_HEADER,
        //     EIP712_DOMAIN_HASH,
        //     hashStruct    
        // ));

        assembly {
            // Load free memory pointer
            let memPtr := mload(64)

            mstore(memPtr, 0x1901000000000000000000000000000000000000000000000000000000000000)  // EIP191 header
            mstore(add(memPtr, 2), eip712DomainHash)                                            // EIP712 domain hash
            mstore(add(memPtr, 34), hashStruct)                                                 // Hash of struct

            // Compute hash
            result := keccak256(memPtr, 66)
        }
        return result;
    }
}

// File: contracts/pmm/0xLibs/LibOrder.sol

/*

  Copyright 2018 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.0;



contract LibOrder is
    LibEIP712
{
    // Hash for the EIP712 Order Schema
    bytes32 constant internal EIP712_ORDER_SCHEMA_HASH = keccak256(abi.encodePacked(
        "Order(",
        "address makerAddress,",
        "address takerAddress,",
        "address feeRecipientAddress,",
        "address senderAddress,",
        "uint256 makerAssetAmount,",
        "uint256 takerAssetAmount,",
        "uint256 makerFee,",
        "uint256 takerFee,",
        "uint256 expirationTimeSeconds,",
        "uint256 salt,",
        "bytes makerAssetData,",
        "bytes takerAssetData",
        ")"
    ));

    // A valid order remains fillable until it is expired, fully filled, or cancelled.
    // An order's state is unaffected by external factors, like account balances.
    enum OrderStatus {
        INVALID,                     // Default value
        INVALID_MAKER_ASSET_AMOUNT,  // Order does not have a valid maker asset amount
        INVALID_TAKER_ASSET_AMOUNT,  // Order does not have a valid taker asset amount
        FILLABLE,                    // Order is fillable
        EXPIRED,                     // Order has already expired
        FULLY_FILLED,                // Order is fully filled
        CANCELLED                    // Order has been cancelled
    }

    // solhint-disable max-line-length
    struct Order {
        address makerAddress;           // Address that created the order.      
        address takerAddress;           // Address that is allowed to fill the order. If set to 0, any address is allowed to fill the order.          
        address feeRecipientAddress;    // Address that will recieve fees when order is filled.      
        address senderAddress;          // Address that is allowed to call Exchange contract methods that affect this order. If set to 0, any address is allowed to call these methods.
        uint256 makerAssetAmount;       // Amount of makerAsset being offered by maker. Must be greater than 0.        
        uint256 takerAssetAmount;       // Amount of takerAsset being bid on by maker. Must be greater than 0.        
        uint256 makerFee;               // Amount of ZRX paid to feeRecipient by maker when order is filled. If set to 0, no transfer of ZRX from maker to feeRecipient will be attempted.
        uint256 takerFee;               // Amount of ZRX paid to feeRecipient by taker when order is filled. If set to 0, no transfer of ZRX from taker to feeRecipient will be attempted.
        uint256 expirationTimeSeconds;  // Timestamp in seconds at which order expires.          
        uint256 salt;                   // Arbitrary number to facilitate uniqueness of the order's hash.     
        bytes makerAssetData;           // Encoded data that can be decoded by a specified proxy contract when transferring makerAsset. The last byte references the id of this proxy.
        bytes takerAssetData;           // Encoded data that can be decoded by a specified proxy contract when transferring takerAsset. The last byte references the id of this proxy.
    }
    // solhint-enable max-line-length

    struct OrderInfo {
        uint8 orderStatus;                    // Status that describes order's validity and fillability.
        bytes32 orderHash;                    // EIP712 hash of the order (see LibOrder.getOrderHash).
        uint256 orderTakerAssetFilledAmount;  // Amount of order that has already been filled.
    }

    /// @dev Calculates Keccak-256 hash of the order.
    /// @param order The order structure.
    /// @return orderHash Keccak-256 EIP712 hash of the order.
    function getOrderHash(Order memory order)
        internal
        view
        returns (bytes32 orderHash)
    {
        orderHash = hashEIP712Message(hashOrder(order));
        return orderHash;
    }

    /// @dev Calculates EIP712 hash of the order.
    /// @param order The order structure.
    /// @return result EIP712 hash of the order.
    function hashOrder(Order memory order)
        internal
        pure
        returns (bytes32 result)
    {
        bytes32 schemaHash = EIP712_ORDER_SCHEMA_HASH;
        bytes32 makerAssetDataHash = keccak256(order.makerAssetData);
        bytes32 takerAssetDataHash = keccak256(order.takerAssetData);

        // Assembly for more efficiently computing:
        // keccak256(abi.encodePacked(
        //     EIP712_ORDER_SCHEMA_HASH,
        //     bytes32(order.makerAddress),
        //     bytes32(order.takerAddress),
        //     bytes32(order.feeRecipientAddress),
        //     bytes32(order.senderAddress),
        //     order.makerAssetAmount,
        //     order.takerAssetAmount,
        //     order.makerFee,
        //     order.takerFee,
        //     order.expirationTimeSeconds,
        //     order.salt,
        //     keccak256(order.makerAssetData),
        //     keccak256(order.takerAssetData)
        // ));

        assembly {
            // Calculate memory addresses that will be swapped out before hashing
            let pos1 := sub(order, 32)
            let pos2 := add(order, 320)
            let pos3 := add(order, 352)

            // Backup
            let temp1 := mload(pos1)
            let temp2 := mload(pos2)
            let temp3 := mload(pos3)
            
            // Hash in place
            mstore(pos1, schemaHash)
            mstore(pos2, makerAssetDataHash)
            mstore(pos3, takerAssetDataHash)
            result := keccak256(pos1, 416)
            
            // Restore
            mstore(pos1, temp1)
            mstore(pos2, temp2)
            mstore(pos3, temp3)
        }
        return result;
    }
}

// File: contracts/utils/LibBytes.sol

/*
  Copyright 2018 ZeroEx Intl.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  This is a truncated version of the original LibBytes.sol library from ZeroEx.
*/

pragma solidity ^0.6.0;


library LibBytes {
  using LibBytes for bytes;

  /***********************************|
  |        Pop Bytes Functions        |
  |__________________________________*/

  /**
   * @dev Pops the last byte off of a byte array by modifying its length.
   * @param b Byte array that will be modified.
   * @return result The byte that was popped off.
   */
  function popLastByte(bytes memory b)
    internal
    pure
    returns (bytes1 result)
  {
    require(
      b.length > 0,
      "LibBytes#popLastByte: greater than zero length required"
    );

    // Store last byte.
    result = b[b.length - 1];

    assembly {
      // Decrement length of byte array.
      let newLen := sub(mload(b), 1)
      mstore(b, newLen)
    }
    return result;
  }

  /// @dev Reads an address from a position in a byte array.
  /// @param b Byte array containing an address.
  /// @param index Index in byte array of address.
  /// @return result address from byte array.
  function readAddress(
    bytes memory b,
    uint256 index
  )
    internal
    pure
    returns (address result)
  {
    require(
      b.length >= index + 20,  // 20 is length of address
      "LibBytes#readAddress greater or equal to 20 length required"
    );

    // Add offset to index:
    // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
    // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
    index += 20;

    // Read address from array memory
    assembly {
      // 1. Add index to address of bytes array
      // 2. Load 32-byte word from memory
      // 3. Apply 20-byte mask to obtain address
      result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff)
    }
    return result;
  }

  /***********************************|
  |        Read Bytes Functions       |
  |__________________________________*/

  /**
   * @dev Reads a bytes32 value from a position in a byte array.
   * @param b Byte array containing a bytes32 value.
   * @param index Index in byte array of bytes32 value.
   * @return result bytes32 value from byte array.
   */
  function readBytes32(
    bytes memory b,
    uint256 index
  )
    internal
    pure
    returns (bytes32 result)
  {
    require(
      b.length >= index + 32,
      "LibBytes#readBytes32 greater or equal to 32 length required"
    );

    // Arrays are prefixed by a 256 bit length parameter
    index += 32;

    // Read the bytes32 from array memory
    assembly {
      result := mload(add(b, index))
    }
    return result;
  }

  /// @dev Reads an unpadded bytes4 value from a position in a byte array.
  /// @param b Byte array containing a bytes4 value.
  /// @param index Index in byte array of bytes4 value.
  /// @return result bytes4 value from byte array.
  function readBytes4(
    bytes memory b,
    uint256 index
  )
    internal
    pure
    returns (bytes4 result)
  {
    require(
      b.length >= index + 4,
      "LibBytes#readBytes4 greater or equal to 4 length required"
    );

    // Arrays are prefixed by a 32 byte length field
    index += 32;

    // Read the bytes4 from array memory
    assembly {
      result := mload(add(b, index))
      // Solidity does not require us to clean the trailing bytes.
      // We do it anyway
      result := and(result, 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000)
    }
    return result;
  }

  function readBytes2(
    bytes memory b,
    uint256 index
  )
    internal
    pure
    returns (bytes2 result)
  {
    require(
      b.length >= index + 2,
      "LibBytes#readBytes2 greater or equal to 2 length required"
    );

    // Arrays are prefixed by a 32 byte length field
    index += 32;

    // Read the bytes4 from array memory
    assembly {
      result := mload(add(b, index))
      // Solidity does not require us to clean the trailing bytes.
      // We do it anyway
      result := and(result, 0xFFFF000000000000000000000000000000000000000000000000000000000000)
    }
    return result;
  }
}

// File: contracts/pmm/0xLibs/LibDecoder.sol

pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;



contract LibDecoder {
    using LibBytes for bytes;

    function decodeFillOrder(bytes memory data) internal pure returns(LibOrder.Order memory order, uint256 takerFillAmount, bytes memory mmSignature) {
        require(
            data.length > 800,
            "LibDecoder: LENGTH_LESS_800"
        );

        // compare method_id
        // 0x64a3bc15 is fillOrKillOrder's method id.
        require(
            data.readBytes4(0) == 0x64a3bc15,
            "LibDecoder: WRONG_METHOD_ID"
        );
        
        bytes memory dataSlice;
        assembly {
            dataSlice := add(data, 4)
        }
        return abi.decode(dataSlice, (LibOrder.Order, uint256, bytes));

    }

    function decodeMmSignature(bytes memory signature) internal pure returns(uint8 v, bytes32 r, bytes32 s) {
        v = uint8(signature[0]);
        r = signature.readBytes32(1);
        s = signature.readBytes32(33);

        return (v, r, s);
    }

    function decodeUserSignatureWithoutSign(bytes memory signature) internal pure returns(address receiver) {
        require(
            signature.length == 85 || signature.length == 86,
            "LibDecoder: LENGTH_85_REQUIRED"
        );
        receiver = signature.readAddress(65);

        return receiver;
    }

    function decodeUserSignature(bytes memory signature) internal pure returns(uint8 v, bytes32 r, bytes32 s, address receiver) {
        receiver = decodeUserSignatureWithoutSign(signature);

        v = uint8(signature[0]);
        r = signature.readBytes32(1);
        s = signature.readBytes32(33);

        return (v, r, s, receiver);
    }

    function decodeERC20Asset(bytes memory assetData) internal pure returns(address) {
        require(
            assetData.length == 36,
            "LibDecoder: LENGTH_36_REQUIRED"
        );

        return assetData.readAddress(16);
    }
}

// File: contracts/pmm/0xLibs/LibEncoder.sol

pragma solidity ^0.6.0;


contract LibEncoder is
    LibEIP712
{
    // Hash for the EIP712 ZeroEx Transaction Schema
    bytes32 constant internal EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH = keccak256(
        abi.encodePacked(
        "ZeroExTransaction(",
        "uint256 salt,",
        "address signerAddress,",
        "bytes data",
        ")"
    ));

    function encodeTransactionHash(
        uint256 salt,
        address signerAddress,
        bytes memory data
    )
        internal
        view 
        returns (bytes32 result)
    {
        bytes32 schemaHash = EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH;
        bytes32 dataHash = keccak256(data);

        // Assembly for more efficiently computing:
        // keccak256(abi.encodePacked(
        //     EIP712_ZEROEX_TRANSACTION_SCHEMA_HASH,
        //     salt,
        //     bytes32(signerAddress),
        //     keccak256(data)
        // ));

        assembly {
            // Load free memory pointer
            let memPtr := mload(64)

            mstore(memPtr, schemaHash)                                                               // hash of schema
            mstore(add(memPtr, 32), salt)                                                            // salt
            mstore(add(memPtr, 64), and(signerAddress, 0xffffffffffffffffffffffffffffffffffffffff))  // signerAddress
            mstore(add(memPtr, 96), dataHash)                                                        // hash of data

            // Compute hash
            result := keccak256(memPtr, 128)
        }
        result = hashEIP712Message(result);
        return result;
    }
}

// File: contracts/interface/ISpender.sol

pragma solidity ^0.6.0;

interface ISpender {
    function spendFromUser(address _user, address _tokenAddr, uint256 _amount) external;
}

// File: contracts/interface/IZeroExchange.sol

/*
  Copyright 2018 ZeroEx Intl.
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

pragma solidity ^0.6.0;

interface IZeroExchange {
    function executeTransaction(
        uint256 salt,
        address signerAddress,
        bytes calldata data,
        bytes calldata signature
    ) external;
}

// File: contracts/interface/IWeth.sol

pragma solidity ^0.6.0;

interface IWETH {
    function deposit() external payable;
    function withdraw(uint256 amount) external;
    function transferFrom(address src, address dst, uint wad) external returns (bool);
}

// File: contracts/interface/ISetAllowance.sol

pragma solidity ^0.6.0;

interface ISetAllowance {
    function setAllowance(address[] memory tokenList, address spender) external;
    function closeAllowance(address[] memory tokenList, address spender) external;
}

// File: contracts/interface/IPMM.sol

pragma solidity ^0.6.0;



interface IPMM is ISetAllowance {
    function fill(
        uint256 userSalt,
        bytes memory data,
        bytes memory userSignature
    ) external payable returns (uint256);
}

// File: contracts/interface/IPermanentStorage.sol

pragma solidity ^0.6.0;

interface IPermanentStorage {
    function wethAddr() external view returns (address);
    function getCurveTokenIndex(address _makerAddr, address _assetAddr) external view returns (int128);
    function setCurveTokenIndex(address _makerAddr, address[] calldata _assetAddrs) external;
    function isTransactionSeen(bytes32 _transactionHash) external view returns (bool);
    function isRelayerValid(address _relayer) external view returns (bool);
    function setTransactionSeen(bytes32 _transactionHash) external;
    function setRelayersValid(address[] memory _relayers, bool[] memory _isValids) external;
}

// File: contracts/interface/IERC1271Wallet.sol

pragma solidity ^0.6.0;


interface  IERC1271Wallet {

  /**
   * @notice Verifies whether the provided signature is valid with respect to the provided data
   * @dev MUST return the correct magic value if the signature provided is valid for the provided data
   *   > The bytes4 magic value to return when signature is valid is 0x20c13b0b : bytes4(keccak256("isValidSignature(bytes,bytes)")
   *   > This function MAY modify Ethereum's state
   * @param _data       Arbitrary length data signed on the behalf of address(this)
   * @param _signature  Signature byte array associated with _data
   * @return magicValue Magic value 0x20c13b0b if the signature is valid and 0x0 otherwise
   *
   */
  function isValidSignature(
    bytes calldata _data,
    bytes calldata _signature)
    external
    view
    returns (bytes4 magicValue);

  /**
   * @notice Verifies whether the provided signature is valid with respect to the provided hash
   * @dev MUST return the correct magic value if the signature provided is valid for the provided hash
   *   > The bytes4 magic value to return when signature is valid is 0x20c13b0b : bytes4(keccak256("isValidSignature(bytes,bytes)")
   *   > This function MAY modify Ethereum's state
   * @param _hash       keccak256 hash that was signed
   * @param _signature  Signature byte array associated with _data
   * @return magicValue Magic value 0x20c13b0b if the signature is valid and 0x0 otherwise
   */
  function isValidSignature(
    bytes32 _hash,
    bytes calldata _signature)
    external
    view
    returns (bytes4 magicValue);
}

// File: contracts/PMM.sol

pragma solidity ^0.6.0;















contract PMM is
    ReentrancyGuard,
    IPMM,
    LibOrder,
    LibDecoder,
    LibEncoder
{
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Address for address;

    // Constants do not have storage slot.
    string public constant version = "5.0.0";
    uint256 private constant MAX_UINT = 2**256 - 1;
    string public constant SOURCE = "0x v2";
    uint256 private constant BPS_MAX = 10000;
    bytes4 constant internal ERC1271_MAGICVALUE_BYTES32 = 0x1626ba7e;  // bytes4(keccak256("isValidSignature(bytes32,bytes)"))
    address public immutable userProxy;
    ISpender public immutable spender;
    IPermanentStorage public immutable permStorage;
    IZeroExchange public immutable zeroExchange;
    address public immutable zxERC20Proxy;

    // Below are the variables which consume storage slots.
    address public operator;

    struct TradeInfo {
        address user;
        address receiver;
        uint16 feeFactor;
        address makerAssetAddr;
        address takerAssetAddr;
        bytes32 transactionHash;
        bytes32 orderHash;
    }

    // events
    event FillOrder(
        string source,
        bytes32 indexed transactionHash,
        bytes32 indexed orderHash,
        address indexed userAddr,
        address takerAssetAddr,
        uint256 takerAssetAmount,
        address makerAddr,
        address makerAssetAddr,
        uint256 makerAssetAmount,
        address receiverAddr,
        uint256 settleAmount,
        uint16 feeFactor
    );


    receive() external payable {}


    /************************************************************
    *          Access control and ownership management          *
    *************************************************************/
    modifier onlyOperator {
        require(operator == msg.sender, "PMM: not operator");
        _;
    }

    modifier onlyUserProxy() {
        require(address(userProxy) == msg.sender, "PMM: not the UserProxy contract");
        _;
    }

    function transferOwnership(address _newOperator) external onlyOperator {
        require(_newOperator != address(0), "AMMWrapper: operator can not be zero address");
        operator = _newOperator;
    }


    /************************************************************
    *              Constructor and init functions               *
    *************************************************************/
    constructor (address _operator, address _userProxy, ISpender _spender, IPermanentStorage _permStorage, IZeroExchange _zeroExchange, address _zxERC20Proxy) public {
        operator = _operator;
        userProxy = _userProxy;
        spender = _spender;
        permStorage = _permStorage;
        zeroExchange = _zeroExchange;
        zxERC20Proxy = _zxERC20Proxy;
        // This constant follows ZX_EXCHANGE address
        EIP712_DOMAIN_HASH = keccak256(
            abi.encodePacked(
                EIP712_DOMAIN_SEPARATOR_SCHEMA_HASH,
                keccak256(bytes(EIP712_DOMAIN_NAME)),
                keccak256(bytes(EIP712_DOMAIN_VERSION)),
                bytes12(0),
                address(_zeroExchange)
            )
        );
    }


    /************************************************************
    *           Management functions for Operator               *
    *************************************************************/
    /**
     * @dev approve spender to transfer tokens from this contract. This is used to collect fee.
     */
    function setAllowance(address[] calldata _tokenList, address _spender) override external onlyOperator {
        for (uint256 i = 0 ; i < _tokenList.length; i++) {
            IERC20(_tokenList[i]).safeApprove(_spender, MAX_UINT);
        }
    }

    function closeAllowance(address[] calldata _tokenList, address _spender) override external onlyOperator {
        for (uint256 i = 0 ; i < _tokenList.length; i++) {
            IERC20(_tokenList[i]).safeApprove(_spender, 0);
        }
    }


    /************************************************************
    *                   External functions                      *
    *************************************************************/
    function fill(
        uint256 userSalt,
        bytes memory data,
        bytes memory userSignature
    )
        override
        public
        payable
        onlyUserProxy
        nonReentrant
        returns (uint256)
    {
        // decode & assert
        (LibOrder.Order memory order,
        TradeInfo memory tradeInfo) = _assertTransaction(userSalt, data, userSignature);

        // Deposit to WETH if taker asset is ETH, else transfer from user
        IWETH weth = IWETH(permStorage.wethAddr());
        if (address(weth) == tradeInfo.takerAssetAddr) {
            require(
                msg.value == order.takerAssetAmount,
                "PMM: insufficient ETH"
            );
            weth.deposit{value: msg.value}();
        } else {
            spender.spendFromUser(tradeInfo.user, tradeInfo.takerAssetAddr, order.takerAssetAmount);
        }

        IERC20(tradeInfo.takerAssetAddr).safeIncreaseAllowance(zxERC20Proxy, order.takerAssetAmount);

        // send tx to 0x
        zeroExchange.executeTransaction(
            userSalt,
            address(this),
            data,
            ""
        );

        // settle token/ETH to user
        uint256 settleAmount = _settle(weth, tradeInfo.receiver, tradeInfo.makerAssetAddr, order.makerAssetAmount, tradeInfo.feeFactor);
        IERC20(tradeInfo.takerAssetAddr).safeApprove(zxERC20Proxy, 0);

        emit FillOrder(
            SOURCE,
            tradeInfo.transactionHash,
            tradeInfo.orderHash,
            tradeInfo.user,
            tradeInfo.takerAssetAddr,
            order.takerAssetAmount,
            order.makerAddress,
            tradeInfo.makerAssetAddr,
            order.makerAssetAmount,
            tradeInfo.receiver,
            settleAmount,
            tradeInfo.feeFactor
        );
        return settleAmount;
    }

    /**
     * @dev internal function of `fill`.
     * It decodes and validates transaction data.
     */
    function _assertTransaction(
        uint256 userSalt,
        bytes memory data,
        bytes memory userSignature
    )
        internal
        view
        returns(
            LibOrder.Order memory order,
            TradeInfo memory tradeInfo
        )
    {
        // decode fillOrder data
        uint256 takerFillAmount;
        bytes memory mmSignature;
        (order, takerFillAmount, mmSignature) = decodeFillOrder(data);

        require(
            order.takerAddress == address(this),
            "PMM: incorrect taker"
        );
        require(
            order.takerAssetAmount == takerFillAmount,
            "PMM: incorrect fill amount"
        );

        // generate transactionHash
        tradeInfo.transactionHash = encodeTransactionHash(
            userSalt,
            address(this),
            data
        );

        tradeInfo.orderHash = getOrderHash(order);
        tradeInfo.feeFactor = uint16(order.salt);
        tradeInfo.receiver = decodeUserSignatureWithoutSign(userSignature);
        tradeInfo.user = _ecrecoverAddress(tradeInfo.transactionHash, userSignature);

        if (tradeInfo.user != order.feeRecipientAddress) {
            require(
                order.feeRecipientAddress.isContract(),
                "PMM: invalid contract address"
            );
            // isValidSignature() should return magic value: bytes4(keccak256("isValidSignature(bytes32,bytes)"))
            require(
                ERC1271_MAGICVALUE_BYTES32 == IERC1271Wallet(order.feeRecipientAddress)
                    .isValidSignature(
                        tradeInfo.transactionHash,
                        userSignature
                    ),
                "PMM: invalid ERC1271 signer"
            );
            tradeInfo.user = order.feeRecipientAddress;
        }

        require(
            tradeInfo.feeFactor < 10000,
            "PMM: invalid fee factor"
        );

        require(
            tradeInfo.receiver != address(0),
            "PMM: invalid receiver"
        );

        // decode asset
        // just support ERC20
        tradeInfo.makerAssetAddr = decodeERC20Asset(order.makerAssetData);
        tradeInfo.takerAssetAddr = decodeERC20Asset(order.takerAssetData);
        return (
            order,
            tradeInfo
        );        
    }

    // settle
    function _settle(IWETH weth, address receiver, address makerAssetAddr, uint256 makerAssetAmount, uint16 feeFactor) internal returns(uint256) {
        uint256 settleAmount = makerAssetAmount;
        if (feeFactor > 0) {
            // settleAmount = settleAmount * (10000 - feeFactor) / 10000
            settleAmount = settleAmount.mul((BPS_MAX).sub(feeFactor)).div(BPS_MAX);
        }

        if (makerAssetAddr == address(weth)){
            weth.withdraw(settleAmount);
            payable(receiver).transfer(settleAmount);
        } else {
            IERC20(makerAssetAddr).safeTransfer(receiver, settleAmount);
        }

        return settleAmount;
    }

    function _ecrecoverAddress(bytes32 transactionHash, bytes memory signature) internal pure returns (address){
        (uint8 v, bytes32 r, bytes32 s, address receiver) = decodeUserSignature(signature);
        return ecrecover(
            keccak256(
                abi.encodePacked(
                    transactionHash,
                    receiver
                )),
            v, r, s
        );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"address","name":"_userProxy","type":"address"},{"internalType":"contract ISpender","name":"_spender","type":"address"},{"internalType":"contract IPermanentStorage","name":"_permStorage","type":"address"},{"internalType":"contract IZeroExchange","name":"_zeroExchange","type":"address"},{"internalType":"address","name":"_zxERC20Proxy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"source","type":"string"},{"indexed":true,"internalType":"bytes32","name":"transactionHash","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"userAddr","type":"address"},{"indexed":false,"internalType":"address","name":"takerAssetAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"takerAssetAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"makerAddr","type":"address"},{"indexed":false,"internalType":"address","name":"makerAssetAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"makerAssetAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"receiverAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"settleAmount","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"feeFactor","type":"uint16"}],"name":"FillOrder","type":"event"},{"inputs":[],"name":"EIP712_DOMAIN_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SOURCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokenList","type":"address[]"},{"internalType":"address","name":"_spender","type":"address"}],"name":"closeAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"userSalt","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"userSignature","type":"bytes"}],"name":"fill","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"permStorage","outputs":[{"internalType":"contract IPermanentStorage","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokenList","type":"address[]"},{"internalType":"address","name":"_spender","type":"address"}],"name":"setAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spender","outputs":[{"internalType":"contract ISpender","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOperator","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zeroExchange","outputs":[{"internalType":"contract IZeroExchange","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zxERC20Proxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101206040523480156200001257600080fd5b50604051620028853803806200288583398101604081905262000035916200020f565b60016000556040516200004b90602001620002de565b60408051601f1981840301815282825280516020918201208383018352600b84526a0c1e08141c9bdd1bd8dbdb60aa1b938201939093528151808301835260018152601960f91b908201529051620000dd929160008051602062002865833981519152917fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a591600091309101620002a2565b60408051601f19818403018152908290528051602091820120600155600280546001600160a01b038a166001600160a01b03199091161790556001600160601b0319606088811b821660805287811b821660a05286811b821660c05285811b821660e05284901b1661010052620001559101620002de565b60408051601f1981840301815282825280516020918201208383018352600b84526a0c1e08141c9bdd1bd8dbdb60aa1b938201939093528151808301835260018152601960f91b908201529051620001e7929160008051602062002865833981519152917fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a591600091889101620002a2565b604051602081830303815290604052805190602001206001819055505050505050506200036d565b60008060008060008060c0878903121562000228578182fd5b8651620002358162000354565b6020880151909650620002488162000354565b60408801519095506200025b8162000354565b60608801519094506200026e8162000354565b6080880151909350620002818162000354565b60a0880151909250620002948162000354565b809150509295509295509295565b948552602085019390935260408401919091526001600160a01b0319166060808401919091521b6001600160601b031916606c82015260800190565b6c08a92a06e626488dedac2d2dc5609b1b81526b1cdd1c9a5b99c81b985b594b60a21b600d8201526e1cdd1c9a5b99c81d995c9cda5bdb8b608a1b60198201527f6164647265737320766572696679696e67436f6e7472616374000000000000006028820152602960f81b604182015260420190565b6001600160a01b03811681146200036a57600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c61248b620003da600039806105ef5280610701528061081f52508061066052806107d152508061041852806107f552508061057f52806108435250806102c95280610387525061248b6000f3fe6080604052600436106100d65760003560e01c80638a36486b1161007f578063e7605b7911610059578063e7605b79146101e5578063e8edc816146101fa578063f230b4c21461020f578063f2fde38b14610224576100dd565b80638a36486b146101a6578063c49e4fd9146101bb578063e306f779146101d0576100dd565b806354fd4d50116100b057806354fd4d501461014f578063570ca73514610171578063645a55b614610186576100dd565b806330db4580146100e25780633ec632161461010457806346920bad1461012f576100dd565b366100dd57005b600080fd5b3480156100ee57600080fd5b506101026100fd3660046116cc565b610244565b005b34801561011057600080fd5b506101196102c7565b6040516101269190611c62565b60405180910390f35b34801561013b57600080fd5b5061010261014a3660046116cc565b6102eb565b34801561015b57600080fd5b5061016461033b565b6040516101269190611d0d565b34801561017d57600080fd5b50610119610374565b6101996101943660046118f9565b610383565b6040516101269190611ccd565b3480156101b257600080fd5b506101196107cf565b3480156101c757600080fd5b506101196107f3565b3480156101dc57600080fd5b50610199610817565b3480156101f157600080fd5b5061011961081d565b34801561020657600080fd5b50610119610841565b34801561021b57600080fd5b50610164610865565b34801561023057600080fd5b5061010261023f366004611694565b610886565b6002546001600160a01b031633146102775760405162461bcd60e51b815260040161026e90611e56565b60405180910390fd5b60005b828110156102c1576102b982600086868581811061029457fe5b90506020020160208101906102a99190611694565b6001600160a01b03169190610910565b60010161027a565b50505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6002546001600160a01b031633146103155760405162461bcd60e51b815260040161026e90611e56565b60005b828110156102c1576103338260001986868581811061029457fe5b600101610318565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6002546001600160a01b031681565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146103cd5760405162461bcd60e51b815260040161026e90611ec4565b600260005414156103f05760405162461bcd60e51b815260040161026e906122f2565b60026000556103fd611528565b6104056115ad565b610410868686610a3d565b9150915060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637d5aa5f46040518163ffffffff1660e01b815260040160206040518083038186803b15801561046f57600080fd5b505afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906116b0565b905081608001516001600160a01b0316816001600160a01b03161415610543578260a0015134146104ea5760405162461bcd60e51b815260040161026e90612201565b806001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561052557600080fd5b505af1158015610539573d6000803e3d6000fd5b50505050506105ea565b8151608083015160a08501516040517f3474ad1a0000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001693633474ad1a936105b7939192909190600401611c90565b600060405180830381600087803b1580156105d157600080fd5b505af11580156105e5573d6000803e3d6000fd5b505050505b6106307f00000000000000000000000000000000000000000000000000000000000000008460a0015184608001516001600160a01b0316610cc69092919063ffffffff16565b6040517fbfc8bfce0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063bfc8bfce90610699908a9030908b90600401612386565b600060405180830381600087803b1580156106b357600080fd5b505af11580156106c7573d6000803e3d6000fd5b5050505060006106ea828460200151856060015187608001518760400151610d71565b6080840151909150610727906001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006000610910565b82600001516001600160a01b03168360c001518460a001517f75d58426b26ab641a6a6a46f12fe35e17c570a1cd264c7248a73d90e3a8682ff60405180604001604052806005815260200164183c103b1960d91b81525087608001518960a001518a600001518a606001518c608001518c602001518b8e604001516040516107b799989796959493929190611d20565b60405180910390a46001600055979650505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60015481565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60405180604001604052806005815260200164183c103b1960d91b81525081565b6002546001600160a01b031633146108b05760405162461bcd60e51b815260040161026e90611e56565b6001600160a01b0381166108d65760405162461bcd60e51b815260040161026e90611d8b565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b8015806109b157506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e9061095f9030908690600401611c76565b60206040518083038186803b15801561097757600080fd5b505afa15801561098b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109af91906118e1565b155b6109cd5760405162461bcd60e51b815260040161026e90612329565b610a388363095ea7b360e01b84846040516024016109ec929190611cb4565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152610e90565b505050565b610a45611528565b610a4d6115ad565b60006060610a5a86610f1f565b602083015192965090935091506001600160a01b03163014610a8e5760405162461bcd60e51b815260040161026e90611e8d565b818460a0015114610ab15760405162461bcd60e51b815260040161026e90611f32565b610abc873088610fc3565b60a0840152610aca8461102a565b60c084015261012084015161ffff166040840152610ae785611043565b6001600160a01b0316602084015260a0830151610b04908661107d565b6001600160a01b03908116808552604086015190911614610c3057610b3584604001516001600160a01b0316611119565b610b515760405162461bcd60e51b815260040161026e90611ffd565b83604001516001600160a01b0316631626ba7e8460a00151876040518363ffffffff1660e01b8152600401610b87929190611cd6565b60206040518083038186803b158015610b9f57600080fd5b505afa158015610bb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd7919061176c565b6001600160e01b0319167f1626ba7e0000000000000000000000000000000000000000000000000000000014610c1f5760405162461bcd60e51b815260040161026e90611efb565b60408401516001600160a01b031683525b612710836040015161ffff1610610c595760405162461bcd60e51b815260040161026e906121ca565b60208301516001600160a01b0316610c835760405162461bcd60e51b815260040161026e90611f69565b610c9184610140015161111f565b6001600160a01b03166060840152610160840151610cae9061111f565b6001600160a01b031660808401525050935093915050565b6000610d5082856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401610cfa929190611c76565b60206040518083038186803b158015610d1257600080fd5b505afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a91906118e1565b9061114d565b90506102c18463095ea7b360e01b85846040516024016109ec929190611cb4565b60008261ffff831615610da557610da2612710610d9c610d958261ffff8816611179565b84906111bb565b906111f5565b90505b866001600160a01b0316856001600160a01b03161415610e72576040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526001600160a01b03881690632e1a7d4d90610e04908490600401611ccd565b600060405180830381600087803b158015610e1e57600080fd5b505af1158015610e32573d6000803e3d6000fd5b50506040516001600160a01b038916925083156108fc02915083906000818181858888f19350505050158015610e6c573d6000803e3d6000fd5b50610e86565b610e866001600160a01b0386168783611237565b9695505050505050565b6060610ee5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112569092919063ffffffff16565b805190915015610a385780806020019051810190610f03919061174c565b610a385760405162461bcd60e51b815260040161026e90612295565b610f27611528565b60006060610320845111610f4d5760405162461bcd60e51b815260040161026e90611de8565b610f5884600061126d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166364a3bc1560e01b14610f9c5760405162461bcd60e51b815260040161026e9061206b565b600484018051610fb59086016024908101908701611794565b935093509350509193909250565b600080604051602001610fd590611a20565b6040516020818303038152906040528051906020012090506000838051906020012090506040518281528660208201526001600160a01b038616604082015281606082015260808120935050610e86836112a6565b600061103d611038836112e6565b6112a6565b92915050565b6000815160551480611056575081516056145b6110725760405162461bcd60e51b815260040161026e906120ff565b61103d826041611351565b600080600080600061108e86611389565b9350935093509350600187826040516020016110ab9291906119e4565b60405160208183030381529060405280519060200120858585604051600081526020016040526040516110e19493929190611cef565b6020604051602081039080840390855afa158015611103573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b3b151590565b600081516024146111425760405162461bcd60e51b815260040161026e90612034565b61103d826010611351565b6000828201838110156111725760405162461bcd60e51b815260040161026e90611e1f565b9392505050565b600061117283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506113d2565b6000826111ca5750600061103d565b828202828482816111d757fe5b04146111725760405162461bcd60e51b815260040161026e90611fa0565b600061117283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113fe565b610a388363a9059cbb60e01b84846040516024016109ec929190611cb4565b60606112658484600085611435565b949350505050565b600081600401835110156112935760405162461bcd60e51b815260040161026e90612238565b5001602001516001600160e01b03191690565b6001546040517f19010000000000000000000000000000000000000000000000000000000000008152600281019190915260228101919091526042902090565b6000806040516020016112f890611ab5565b60408051601f19818403810182529290915280516020918201206101408601805180518185012061016089018051805196810196909620968a0180519581529184529586526101a0812093905290529152915050919050565b600081601401835110156113775760405162461bcd60e51b815260040161026e906120a2565b5001601401516001600160a01b031690565b60008060008061139885611043565b9050846000815181106113a757fe5b016020015160f81c93506113bc8560016114f9565b92506113c98560216114f9565b91509193509193565b600081848411156113f65760405162461bcd60e51b815260040161026e9190611d0d565b505050900390565b6000818361141f5760405162461bcd60e51b815260040161026e9190611d0d565b50600083858161142b57fe5b0495945050505050565b606061144085611119565b61145c5760405162461bcd60e51b815260040161026e90612193565b60006060866001600160a01b031685876040516114799190611a04565b60006040518083038185875af1925050503d80600081146114b6576040519150601f19603f3d011682016040523d82523d6000602084013e6114bb565b606091505b509150915081156114cf5791506112659050565b8051156114df5780518082602001fd5b8360405162461bcd60e51b815260040161026e9190611d0d565b6000816020018351101561151f5760405162461bcd60e51b815260040161026e90612136565b50016020015190565b60405180610180016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b805161103d8161243d565b600082601f830112611604578081fd5b8135611617611612826123ed565b6123c6565b915080825283602082850101111561162e57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112611657578081fd5b8151611665611612826123ed565b915080825283602082850101111561167c57600080fd5b61168d816020840160208601612411565b5092915050565b6000602082840312156116a5578081fd5b81356111728161243d565b6000602082840312156116c1578081fd5b81516111728161243d565b6000806000604084860312156116e0578182fd5b833567ffffffffffffffff808211156116f7578384fd5b818601915086601f83011261170a578384fd5b813581811115611718578485fd5b876020808302850101111561172b578485fd5b602092830195509350508401356117418161243d565b809150509250925092565b60006020828403121561175d578081fd5b81518015158114611172578182fd5b60006020828403121561177d578081fd5b81516001600160e01b031981168114611172578182fd5b6000806000606084860312156117a8578283fd5b835167ffffffffffffffff808211156117bf578485fd5b81860191506101808083890312156117d5578586fd5b6117de816123c6565b90506117ea88846115e9565b81526117f988602085016115e9565b602082015261180b88604085016115e9565b604082015261181d88606085016115e9565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015181830152506101408084015183811115611875578788fd5b6118818a828701611647565b828401525050610160808401518381111561189a578788fd5b6118a68a828701611647565b828401525050809550506020860151935060408601519150808211156118ca578283fd5b506118d786828701611647565b9150509250925092565b6000602082840312156118f2578081fd5b5051919050565b60008060006060848603121561190d578283fd5b83359250602084013567ffffffffffffffff8082111561192b578384fd5b611937878388016115f4565b9350604086013591508082111561194c578283fd5b506118d7868287016115f4565b60008151808452611971816020860160208601612411565b601f01601f19169290920160200192915050565b7f6279746573206d616b65724173736574446174612c0000000000000000000000815260150190565b7f62797465732074616b6572417373657444617461000000000000000000000000815260140190565b602960f81b815260010190565b91825260601b6bffffffffffffffffffffffff1916602082015260340190565b60008251611a16818460208701612411565b9190910192915050565b7f5a65726f45785472616e73616374696f6e28000000000000000000000000000081526c1d5a5b9d0c8d4d881cd85b1d0b609a1b60128201527f61646472657373207369676e6572416464726573732c00000000000000000000601f8201527f62797465732064617461000000000000000000000000000000000000000000006035820152602960f81b603f82015260400190565b60007f4f7264657228000000000000000000000000000000000000000000000000000082527f61646472657373206d616b6572416464726573732c000000000000000000000060068301527f616464726573732074616b6572416464726573732c0000000000000000000000601b8301527f6164647265737320666565526563697069656e74416464726573732c0000000060308301527f616464726573732073656e646572416464726573732c00000000000000000000604c8301527f75696e74323536206d616b65724173736574416d6f756e742c0000000000000060628301527f75696e743235362074616b65724173736574416d6f756e742c00000000000000607b8301527f75696e74323536206d616b65724665652c00000000000000000000000000000060948301527f75696e743235362074616b65724665652c00000000000000000000000000000060a58301527f75696e743235362065787069726174696f6e54696d655365636f6e64732c000060b68301526c1d5a5b9d0c8d4d881cd85b1d0b609a1b60d483015261103d611c5d611c5860e18501611985565b6119ae565b6119d7565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6000838252604060208301526112656040830184611959565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526111726020830184611959565b6000610120808352611d348184018d611959565b9150506001600160a01b03808b166020840152896040840152808916606084015280881660808401528660a084015280861660c0840152508360e083015261ffff83166101008301529a9950505050505050505050565b6020808252602c908201527f414d4d577261707065723a206f70657261746f722063616e206e6f742062652060408201527f7a65726f20616464726573730000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4c69624465636f6465723a204c454e4754485f4c4553535f3830300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526011908201527f504d4d3a206e6f74206f70657261746f72000000000000000000000000000000604082015260600190565b60208082526014908201527f504d4d3a20696e636f72726563742074616b6572000000000000000000000000604082015260600190565b6020808252601f908201527f504d4d3a206e6f7420746865205573657250726f787920636f6e747261637400604082015260600190565b6020808252601b908201527f504d4d3a20696e76616c69642045524331323731207369676e65720000000000604082015260600190565b6020808252601a908201527f504d4d3a20696e636f72726563742066696c6c20616d6f756e74000000000000604082015260600190565b60208082526015908201527f504d4d3a20696e76616c69642072656365697665720000000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f504d4d3a20696e76616c696420636f6e74726163742061646472657373000000604082015260600190565b6020808252601e908201527f4c69624465636f6465723a204c454e4754485f33365f52455155495245440000604082015260600190565b6020808252601b908201527f4c69624465636f6465723a2057524f4e475f4d4554484f445f49440000000000604082015260600190565b6020808252603b908201527f4c696242797465732372656164416464726573732067726561746572206f722060408201527f657175616c20746f203230206c656e6774682072657175697265640000000000606082015260800190565b6020808252601e908201527f4c69624465636f6465723a204c454e4754485f38355f52455155495245440000604082015260600190565b6020808252603b908201527f4c696242797465732372656164427974657333322067726561746572206f722060408201527f657175616c20746f203332206c656e6774682072657175697265640000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526017908201527f504d4d3a20696e76616c69642066656520666163746f72000000000000000000604082015260600190565b60208082526015908201527f504d4d3a20696e73756666696369656e74204554480000000000000000000000604082015260600190565b60208082526039908201527f4c6962427974657323726561644279746573342067726561746572206f72206560408201527f7175616c20746f2034206c656e67746820726571756972656400000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60008482526001600160a01b0384166020830152608060408301526123ae6080830184611959565b82810360609093019290925281526020019392505050565b60405181810167ffffffffffffffff811182821017156123e557600080fd5b604052919050565b600067ffffffffffffffff821115612403578081fd5b50601f01601f191660200190565b60005b8381101561242c578181015183820152602001612414565b838111156102c15750506000910152565b6001600160a01b038116811461245257600080fd5b5056fea264697066735822122096a6d559a604470a95fec4cd0f3db116aee599cfe0686671594f670fb5debfaa64736f6c634300060c0033f0f24618f4c4be1e62e026fb039a20ef96f4495294817d1027ffaa6d1f70e61e0000000000000000000000000112b7ced0de10a4a44831e978b810b35f82aaa200000000000000000000000003f34be1bf910116595db1b11e9d1b2ca5d596590000000000000000000000003c68dfc45dc92c9c605d92b49858073e10b857a60000000000000000000000006d9cc14a1d36e6ff13fc6efa9e9326fcd12e7903000000000000000000000000080bf510fcbf18b91105470639e956102293771200000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef

Deployed Bytecode

0x6080604052600436106100d65760003560e01c80638a36486b1161007f578063e7605b7911610059578063e7605b79146101e5578063e8edc816146101fa578063f230b4c21461020f578063f2fde38b14610224576100dd565b80638a36486b146101a6578063c49e4fd9146101bb578063e306f779146101d0576100dd565b806354fd4d50116100b057806354fd4d501461014f578063570ca73514610171578063645a55b614610186576100dd565b806330db4580146100e25780633ec632161461010457806346920bad1461012f576100dd565b366100dd57005b600080fd5b3480156100ee57600080fd5b506101026100fd3660046116cc565b610244565b005b34801561011057600080fd5b506101196102c7565b6040516101269190611c62565b60405180910390f35b34801561013b57600080fd5b5061010261014a3660046116cc565b6102eb565b34801561015b57600080fd5b5061016461033b565b6040516101269190611d0d565b34801561017d57600080fd5b50610119610374565b6101996101943660046118f9565b610383565b6040516101269190611ccd565b3480156101b257600080fd5b506101196107cf565b3480156101c757600080fd5b506101196107f3565b3480156101dc57600080fd5b50610199610817565b3480156101f157600080fd5b5061011961081d565b34801561020657600080fd5b50610119610841565b34801561021b57600080fd5b50610164610865565b34801561023057600080fd5b5061010261023f366004611694565b610886565b6002546001600160a01b031633146102775760405162461bcd60e51b815260040161026e90611e56565b60405180910390fd5b60005b828110156102c1576102b982600086868581811061029457fe5b90506020020160208101906102a99190611694565b6001600160a01b03169190610910565b60010161027a565b50505050565b7f00000000000000000000000003f34be1bf910116595db1b11e9d1b2ca5d5965981565b6002546001600160a01b031633146103155760405162461bcd60e51b815260040161026e90611e56565b60005b828110156102c1576103338260001986868581811061029457fe5b600101610318565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6002546001600160a01b031681565b60007f00000000000000000000000003f34be1bf910116595db1b11e9d1b2ca5d596596001600160a01b031633146103cd5760405162461bcd60e51b815260040161026e90611ec4565b600260005414156103f05760405162461bcd60e51b815260040161026e906122f2565b60026000556103fd611528565b6104056115ad565b610410868686610a3d565b9150915060007f0000000000000000000000006d9cc14a1d36e6ff13fc6efa9e9326fcd12e79036001600160a01b0316637d5aa5f46040518163ffffffff1660e01b815260040160206040518083038186803b15801561046f57600080fd5b505afa158015610483573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a791906116b0565b905081608001516001600160a01b0316816001600160a01b03161415610543578260a0015134146104ea5760405162461bcd60e51b815260040161026e90612201565b806001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561052557600080fd5b505af1158015610539573d6000803e3d6000fd5b50505050506105ea565b8151608083015160a08501516040517f3474ad1a0000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000003c68dfc45dc92c9c605d92b49858073e10b857a61693633474ad1a936105b7939192909190600401611c90565b600060405180830381600087803b1580156105d157600080fd5b505af11580156105e5573d6000803e3d6000fd5b505050505b6106307f00000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef8460a0015184608001516001600160a01b0316610cc69092919063ffffffff16565b6040517fbfc8bfce0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000080bf510fcbf18b91105470639e9561022937712169063bfc8bfce90610699908a9030908b90600401612386565b600060405180830381600087803b1580156106b357600080fd5b505af11580156106c7573d6000803e3d6000fd5b5050505060006106ea828460200151856060015187608001518760400151610d71565b6080840151909150610727906001600160a01b03167f00000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef6000610910565b82600001516001600160a01b03168360c001518460a001517f75d58426b26ab641a6a6a46f12fe35e17c570a1cd264c7248a73d90e3a8682ff60405180604001604052806005815260200164183c103b1960d91b81525087608001518960a001518a600001518a606001518c608001518c602001518b8e604001516040516107b799989796959493929190611d20565b60405180910390a46001600055979650505050505050565b7f000000000000000000000000080bf510fcbf18b91105470639e956102293771281565b7f0000000000000000000000006d9cc14a1d36e6ff13fc6efa9e9326fcd12e790381565b60015481565b7f00000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef81565b7f0000000000000000000000003c68dfc45dc92c9c605d92b49858073e10b857a681565b60405180604001604052806005815260200164183c103b1960d91b81525081565b6002546001600160a01b031633146108b05760405162461bcd60e51b815260040161026e90611e56565b6001600160a01b0381166108d65760405162461bcd60e51b815260040161026e90611d8b565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b8015806109b157506040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063dd62ed3e9061095f9030908690600401611c76565b60206040518083038186803b15801561097757600080fd5b505afa15801561098b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109af91906118e1565b155b6109cd5760405162461bcd60e51b815260040161026e90612329565b610a388363095ea7b360e01b84846040516024016109ec929190611cb4565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152610e90565b505050565b610a45611528565b610a4d6115ad565b60006060610a5a86610f1f565b602083015192965090935091506001600160a01b03163014610a8e5760405162461bcd60e51b815260040161026e90611e8d565b818460a0015114610ab15760405162461bcd60e51b815260040161026e90611f32565b610abc873088610fc3565b60a0840152610aca8461102a565b60c084015261012084015161ffff166040840152610ae785611043565b6001600160a01b0316602084015260a0830151610b04908661107d565b6001600160a01b03908116808552604086015190911614610c3057610b3584604001516001600160a01b0316611119565b610b515760405162461bcd60e51b815260040161026e90611ffd565b83604001516001600160a01b0316631626ba7e8460a00151876040518363ffffffff1660e01b8152600401610b87929190611cd6565b60206040518083038186803b158015610b9f57600080fd5b505afa158015610bb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd7919061176c565b6001600160e01b0319167f1626ba7e0000000000000000000000000000000000000000000000000000000014610c1f5760405162461bcd60e51b815260040161026e90611efb565b60408401516001600160a01b031683525b612710836040015161ffff1610610c595760405162461bcd60e51b815260040161026e906121ca565b60208301516001600160a01b0316610c835760405162461bcd60e51b815260040161026e90611f69565b610c9184610140015161111f565b6001600160a01b03166060840152610160840151610cae9061111f565b6001600160a01b031660808401525050935093915050565b6000610d5082856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b8152600401610cfa929190611c76565b60206040518083038186803b158015610d1257600080fd5b505afa158015610d26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4a91906118e1565b9061114d565b90506102c18463095ea7b360e01b85846040516024016109ec929190611cb4565b60008261ffff831615610da557610da2612710610d9c610d958261ffff8816611179565b84906111bb565b906111f5565b90505b866001600160a01b0316856001600160a01b03161415610e72576040517f2e1a7d4d0000000000000000000000000000000000000000000000000000000081526001600160a01b03881690632e1a7d4d90610e04908490600401611ccd565b600060405180830381600087803b158015610e1e57600080fd5b505af1158015610e32573d6000803e3d6000fd5b50506040516001600160a01b038916925083156108fc02915083906000818181858888f19350505050158015610e6c573d6000803e3d6000fd5b50610e86565b610e866001600160a01b0386168783611237565b9695505050505050565b6060610ee5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112569092919063ffffffff16565b805190915015610a385780806020019051810190610f03919061174c565b610a385760405162461bcd60e51b815260040161026e90612295565b610f27611528565b60006060610320845111610f4d5760405162461bcd60e51b815260040161026e90611de8565b610f5884600061126d565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166364a3bc1560e01b14610f9c5760405162461bcd60e51b815260040161026e9061206b565b600484018051610fb59086016024908101908701611794565b935093509350509193909250565b600080604051602001610fd590611a20565b6040516020818303038152906040528051906020012090506000838051906020012090506040518281528660208201526001600160a01b038616604082015281606082015260808120935050610e86836112a6565b600061103d611038836112e6565b6112a6565b92915050565b6000815160551480611056575081516056145b6110725760405162461bcd60e51b815260040161026e906120ff565b61103d826041611351565b600080600080600061108e86611389565b9350935093509350600187826040516020016110ab9291906119e4565b60405160208183030381529060405280519060200120858585604051600081526020016040526040516110e19493929190611cef565b6020604051602081039080840390855afa158015611103573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b3b151590565b600081516024146111425760405162461bcd60e51b815260040161026e90612034565b61103d826010611351565b6000828201838110156111725760405162461bcd60e51b815260040161026e90611e1f565b9392505050565b600061117283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506113d2565b6000826111ca5750600061103d565b828202828482816111d757fe5b04146111725760405162461bcd60e51b815260040161026e90611fa0565b600061117283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113fe565b610a388363a9059cbb60e01b84846040516024016109ec929190611cb4565b60606112658484600085611435565b949350505050565b600081600401835110156112935760405162461bcd60e51b815260040161026e90612238565b5001602001516001600160e01b03191690565b6001546040517f19010000000000000000000000000000000000000000000000000000000000008152600281019190915260228101919091526042902090565b6000806040516020016112f890611ab5565b60408051601f19818403810182529290915280516020918201206101408601805180518185012061016089018051805196810196909620968a0180519581529184529586526101a0812093905290529152915050919050565b600081601401835110156113775760405162461bcd60e51b815260040161026e906120a2565b5001601401516001600160a01b031690565b60008060008061139885611043565b9050846000815181106113a757fe5b016020015160f81c93506113bc8560016114f9565b92506113c98560216114f9565b91509193509193565b600081848411156113f65760405162461bcd60e51b815260040161026e9190611d0d565b505050900390565b6000818361141f5760405162461bcd60e51b815260040161026e9190611d0d565b50600083858161142b57fe5b0495945050505050565b606061144085611119565b61145c5760405162461bcd60e51b815260040161026e90612193565b60006060866001600160a01b031685876040516114799190611a04565b60006040518083038185875af1925050503d80600081146114b6576040519150601f19603f3d011682016040523d82523d6000602084013e6114bb565b606091505b509150915081156114cf5791506112659050565b8051156114df5780518082602001fd5b8360405162461bcd60e51b815260040161026e9190611d0d565b6000816020018351101561151f5760405162461bcd60e51b815260040161026e90612136565b50016020015190565b60405180610180016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081019190915290565b805161103d8161243d565b600082601f830112611604578081fd5b8135611617611612826123ed565b6123c6565b915080825283602082850101111561162e57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112611657578081fd5b8151611665611612826123ed565b915080825283602082850101111561167c57600080fd5b61168d816020840160208601612411565b5092915050565b6000602082840312156116a5578081fd5b81356111728161243d565b6000602082840312156116c1578081fd5b81516111728161243d565b6000806000604084860312156116e0578182fd5b833567ffffffffffffffff808211156116f7578384fd5b818601915086601f83011261170a578384fd5b813581811115611718578485fd5b876020808302850101111561172b578485fd5b602092830195509350508401356117418161243d565b809150509250925092565b60006020828403121561175d578081fd5b81518015158114611172578182fd5b60006020828403121561177d578081fd5b81516001600160e01b031981168114611172578182fd5b6000806000606084860312156117a8578283fd5b835167ffffffffffffffff808211156117bf578485fd5b81860191506101808083890312156117d5578586fd5b6117de816123c6565b90506117ea88846115e9565b81526117f988602085016115e9565b602082015261180b88604085016115e9565b604082015261181d88606085016115e9565b60608201526080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015181830152506101408084015183811115611875578788fd5b6118818a828701611647565b828401525050610160808401518381111561189a578788fd5b6118a68a828701611647565b828401525050809550506020860151935060408601519150808211156118ca578283fd5b506118d786828701611647565b9150509250925092565b6000602082840312156118f2578081fd5b5051919050565b60008060006060848603121561190d578283fd5b83359250602084013567ffffffffffffffff8082111561192b578384fd5b611937878388016115f4565b9350604086013591508082111561194c578283fd5b506118d7868287016115f4565b60008151808452611971816020860160208601612411565b601f01601f19169290920160200192915050565b7f6279746573206d616b65724173736574446174612c0000000000000000000000815260150190565b7f62797465732074616b6572417373657444617461000000000000000000000000815260140190565b602960f81b815260010190565b91825260601b6bffffffffffffffffffffffff1916602082015260340190565b60008251611a16818460208701612411565b9190910192915050565b7f5a65726f45785472616e73616374696f6e28000000000000000000000000000081526c1d5a5b9d0c8d4d881cd85b1d0b609a1b60128201527f61646472657373207369676e6572416464726573732c00000000000000000000601f8201527f62797465732064617461000000000000000000000000000000000000000000006035820152602960f81b603f82015260400190565b60007f4f7264657228000000000000000000000000000000000000000000000000000082527f61646472657373206d616b6572416464726573732c000000000000000000000060068301527f616464726573732074616b6572416464726573732c0000000000000000000000601b8301527f6164647265737320666565526563697069656e74416464726573732c0000000060308301527f616464726573732073656e646572416464726573732c00000000000000000000604c8301527f75696e74323536206d616b65724173736574416d6f756e742c0000000000000060628301527f75696e743235362074616b65724173736574416d6f756e742c00000000000000607b8301527f75696e74323536206d616b65724665652c00000000000000000000000000000060948301527f75696e743235362074616b65724665652c00000000000000000000000000000060a58301527f75696e743235362065787069726174696f6e54696d655365636f6e64732c000060b68301526c1d5a5b9d0c8d4d881cd85b1d0b609a1b60d483015261103d611c5d611c5860e18501611985565b6119ae565b6119d7565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b90815260200190565b6000838252604060208301526112656040830184611959565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526111726020830184611959565b6000610120808352611d348184018d611959565b9150506001600160a01b03808b166020840152896040840152808916606084015280881660808401528660a084015280861660c0840152508360e083015261ffff83166101008301529a9950505050505050505050565b6020808252602c908201527f414d4d577261707065723a206f70657261746f722063616e206e6f742062652060408201527f7a65726f20616464726573730000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4c69624465636f6465723a204c454e4754485f4c4553535f3830300000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526011908201527f504d4d3a206e6f74206f70657261746f72000000000000000000000000000000604082015260600190565b60208082526014908201527f504d4d3a20696e636f72726563742074616b6572000000000000000000000000604082015260600190565b6020808252601f908201527f504d4d3a206e6f7420746865205573657250726f787920636f6e747261637400604082015260600190565b6020808252601b908201527f504d4d3a20696e76616c69642045524331323731207369676e65720000000000604082015260600190565b6020808252601a908201527f504d4d3a20696e636f72726563742066696c6c20616d6f756e74000000000000604082015260600190565b60208082526015908201527f504d4d3a20696e76616c69642072656365697665720000000000000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f504d4d3a20696e76616c696420636f6e74726163742061646472657373000000604082015260600190565b6020808252601e908201527f4c69624465636f6465723a204c454e4754485f33365f52455155495245440000604082015260600190565b6020808252601b908201527f4c69624465636f6465723a2057524f4e475f4d4554484f445f49440000000000604082015260600190565b6020808252603b908201527f4c696242797465732372656164416464726573732067726561746572206f722060408201527f657175616c20746f203230206c656e6774682072657175697265640000000000606082015260800190565b6020808252601e908201527f4c69624465636f6465723a204c454e4754485f38355f52455155495245440000604082015260600190565b6020808252603b908201527f4c696242797465732372656164427974657333322067726561746572206f722060408201527f657175616c20746f203332206c656e6774682072657175697265640000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526017908201527f504d4d3a20696e76616c69642066656520666163746f72000000000000000000604082015260600190565b60208082526015908201527f504d4d3a20696e73756666696369656e74204554480000000000000000000000604082015260600190565b60208082526039908201527f4c6962427974657323726561644279746573342067726561746572206f72206560408201527f7175616c20746f2034206c656e67746820726571756972656400000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000606082015260800190565b60008482526001600160a01b0384166020830152608060408301526123ae6080830184611959565b82810360609093019290925281526020019392505050565b60405181810167ffffffffffffffff811182821017156123e557600080fd5b604052919050565b600067ffffffffffffffff821115612403578081fd5b50601f01601f191660200190565b60005b8381101561242c578181015183820152602001612414565b838111156102c15750506000910152565b6001600160a01b038116811461245257600080fd5b5056fea264697066735822122096a6d559a604470a95fec4cd0f3db116aee599cfe0686671594f670fb5debfaa64736f6c634300060c0033

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

0000000000000000000000000112b7ced0de10a4a44831e978b810b35f82aaa200000000000000000000000003f34be1bf910116595db1b11e9d1b2ca5d596590000000000000000000000003c68dfc45dc92c9c605d92b49858073e10b857a60000000000000000000000006d9cc14a1d36e6ff13fc6efa9e9326fcd12e7903000000000000000000000000080bf510fcbf18b91105470639e956102293771200000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef

-----Decoded View---------------
Arg [0] : _operator (address): 0x0112b7ceD0DE10A4A44831E978b810B35f82aAA2
Arg [1] : _userProxy (address): 0x03f34bE1BF910116595dB1b11E9d1B2cA5D59659
Arg [2] : _spender (address): 0x3c68dfc45dc92C9c605d92B49858073e10b857A6
Arg [3] : _permStorage (address): 0x6D9Cc14a1d36E6fF13fc6efA9e9326FcD12E7903
Arg [4] : _zeroExchange (address): 0x080bf510FCbF18b91105470639e9561022937712
Arg [5] : _zxERC20Proxy (address): 0x95E6F48254609A6ee006F7D493c8e5fB97094ceF

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000112b7ced0de10a4a44831e978b810b35f82aaa2
Arg [1] : 00000000000000000000000003f34be1bf910116595db1b11e9d1b2ca5d59659
Arg [2] : 0000000000000000000000003c68dfc45dc92c9c605d92b49858073e10b857a6
Arg [3] : 0000000000000000000000006d9cc14a1d36e6ff13fc6efa9e9326fcd12e7903
Arg [4] : 000000000000000000000000080bf510fcbf18b91105470639e9561022937712
Arg [5] : 00000000000000000000000095e6f48254609a6ee006f7d493c8e5fb97094cef


Deployed Bytecode Sourcemap

43050:9827:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46883:244;;;;;;;;;;-1:-1:-1;46883:244:0;;;;;:::i;:::-;;:::i;:::-;;43620:34;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;46626:249;;;;;;;;;;-1:-1:-1;46626:249:0;;;;;:::i;:::-;;:::i;43299:40::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;43911:23::-;;;;;;;;;;;;;:::i;47339:1898::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;43754:43::-;;;;;;;;;;;;;:::i;43701:46::-;;;;;;;;;;;;;:::i;22070:33::-;;;;;;;;;;;;;:::i;43804:37::-;;;;;;;;;;;;;:::i;43661:33::-;;;;;;;;;;;;;:::i;43399:39::-;;;;;;;;;;;;;:::i;45113:207::-;;;;;;;;;;-1:-1:-1;45113:207:0;;;;;:::i;:::-;;:::i;46883:244::-;44901:8;;-1:-1:-1;;;;;44901:8:0;44913:10;44901:22;44893:52;;;;-1:-1:-1;;;44893:52:0;;;;;;;:::i;:::-;;;;;;;;;47003:9:::1;46998:122;47019:21:::0;;::::1;46998:122;;;47062:46;47096:8;47106:1;47069:10;;47080:1;47069:13;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;47062:33:0::1;::::0;:46;:33:::1;:46::i;:::-;47042:3;;46998:122;;;;46883:244:::0;;;:::o;43620:34::-;;;:::o;46626:249::-;44901:8;;-1:-1:-1;;;;;44901:8:0;44913:10;44901:22;44893:52;;;;-1:-1:-1;;;44893:52:0;;;;;;;:::i;:::-;46744:9:::1;46739:129;46760:21:::0;;::::1;46739:129;;;46803:53;46837:8;-1:-1:-1::0;;46810:10:0::1;;46821:1;46810:13;;;;;;46803:53;46783:3;;46739:129;;43299:40:::0;;;;;;;;;;;;;;;;;;;:::o;43911:23::-;;;-1:-1:-1;;;;;43911:23:0;;:::o;47339:1898::-;47566:7;45025:9;-1:-1:-1;;;;;45017:32:0;45039:10;45017:32;45009:76;;;;-1:-1:-1;;;45009:76:0;;;;;;;:::i;:::-;19724:1:::1;20330:7;;:19;;20322:63;;;;-1:-1:-1::0;;;20322:63:0::1;;;;;;;:::i;:::-;19724:1;20463:7;:18:::0;47620:27:::2;;:::i;:::-;47658:26;;:::i;:::-;47688:49;47707:8;47717:4;47723:13;47688:18;:49::i;:::-;47619:118;;;;47825:10;47844:11;-1:-1:-1::0;;;;;47844:20:0::2;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47825:42;;47899:9;:24;;;-1:-1:-1::0;;;;;47882:41:0::2;47890:4;-1:-1:-1::0;;;;;47882:41:0::2;;47878:359;;;47979:5;:22;;;47966:9;:35;47940:118;;;;-1:-1:-1::0;;;47940:118:0::2;;;;;;;:::i;:::-;48073:4;-1:-1:-1::0;;;;;48073:12:0::2;;48093:9;48073:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;47878:359;;;48160:14:::0;;48176:24:::2;::::0;::::2;::::0;48202:22:::2;::::0;::::2;::::0;48138:87:::2;::::0;;;;-1:-1:-1;;;;;48138:7:0::2;:21;::::0;::::2;::::0;:87:::2;::::0;48160:14;;48176:24;;48202:22;48138:87:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;47878:359;48249:92;48304:12;48318:5;:22;;;48256:9;:24;;;-1:-1:-1::0;;;;;48249:54:0::2;;;:92;;;;;:::i;:::-;48380:129;::::0;;;;-1:-1:-1;;;;;48380:12:0::2;:31;::::0;::::2;::::0;:129:::2;::::0;48426:8;;48457:4:::2;::::0;48477;;48380:129:::2;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;48559:20;48582:104;48590:4;48596:9;:18;;;48616:9;:24;;;48642:5;:22;;;48666:9;:19;;;48582:7;:104::i;:::-;48704:24;::::0;::::2;::::0;48559:127;;-1:-1:-1;48697:61:0::2;::::0;-1:-1:-1;;;;;48697:44:0::2;48742:12;48756:1;48697:44;:61::i;:::-;48895:9;:14;;;-1:-1:-1::0;;;;;48776:423:0::2;48861:9;:19;;;48821:9;:25;;;48776:423;48800:6;;;;;;;;;;;;;-1:-1:-1::0;;;48800:6:0::2;;::::0;48924:9:::2;:24;;;48963:5;:22;;;49000:5;:18;;;49033:9;:24;;;49072:5;:22;;;49109:9;:18;;;49142:12;49169:9;:19;;;48776:423;;;;;;;;;;;;;;:::i;:::-;;;;;;;;19680:1:::1;20642:7;:22:::0;49217:12;47339:1898;-1:-1:-1;;;;;;;47339:1898:0:o;43754:43::-;;;:::o;43701:46::-;;;:::o;22070:33::-;;;;:::o;43804:37::-;;;:::o;43661:33::-;;;:::o;43399:39::-;;;;;;;;;;;;;;-1:-1:-1;;;43399:39:0;;;;:::o;45113:207::-;44901:8;;-1:-1:-1;;;;;44901:8:0;44913:10;44901:22;44893:52;;;;-1:-1:-1;;;44893:52:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;45203:26:0;::::1;45195:83;;;;-1:-1:-1::0;;;45195:83:0::1;;;;;;;:::i;:::-;45289:8;:23:::0;;;::::1;-1:-1:-1::0;;;;;45289:23:0;;;::::1;::::0;;;::::1;::::0;;45113:207::o;15577:622::-;15947:10;;;15946:62;;-1:-1:-1;15963:39:0;;;;;-1:-1:-1;;;;;15963:15:0;;;;;:39;;15987:4;;15994:7;;15963:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;15946:62;15938:152;;;;-1:-1:-1;;;15938:152:0;;;;;;;:::i;:::-;16101:90;16121:5;16151:22;;;16175:7;16184:5;16128:62;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;16128:62:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;16128:62:0;;;;;;;;;;16101:19;:90::i;:::-;15577:622;;;:::o;49356:2391::-;49546:27;;:::i;:::-;49588:26;;:::i;:::-;49676:23;49710:24;49785:21;49801:4;49785:15;:21::i;:::-;49841:18;;;;49745:61;;-1:-1:-1;49745:61:0;;-1:-1:-1;49745:61:0;-1:-1:-1;;;;;;49841:35:0;49871:4;49841:35;49819:105;;;;-1:-1:-1;;;49819:105:0;;;;;;;:::i;:::-;49983:15;49957:5;:22;;;:41;49935:117;;;;-1:-1:-1;;;49935:117:0;;;;;;;:::i;:::-;50130:102;50166:8;50197:4;50217;50130:21;:102::i;:::-;50102:25;;;:130;50267:19;50280:5;50267:12;:19::i;:::-;50245;;;:41;50326:10;;;;50297:40;;:19;;;:40;50369:45;50400:13;50369:30;:45::i;:::-;-1:-1:-1;;;;;50348:66:0;:18;;;:66;50460:25;;;;50442:59;;50487:13;50442:17;:59::i;:::-;-1:-1:-1;;;;;50425:76:0;;;;;;50536:25;;;;50518:43;;;;50514:706;;50604:38;:5;:25;;;-1:-1:-1;;;;;50604:36:0;;:38::i;:::-;50578:129;;;;-1:-1:-1;;;50578:129:0;;;;;;;:::i;:::-;50908:5;:25;;;-1:-1:-1;;;;;50893:80:0;;51000:9;:25;;;51052:13;50893:195;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;;50863:225:0;:26;:225;50837:314;;;;-1:-1:-1;;;50837:314:0;;;;;;;:::i;:::-;51183:25;;;;-1:-1:-1;;;;;51166:42:0;;;50514:706;51276:5;51254:9;:19;;;:27;;;51232:100;;;;-1:-1:-1;;;51232:100:0;;;;;;;:::i;:::-;51367:18;;;;-1:-1:-1;;;;;51367:32:0;51345:103;;;;-1:-1:-1;;;51345:103:0;;;;;;;:::i;:::-;51544:38;51561:5;:20;;;51544:16;:38::i;:::-;-1:-1:-1;;;;;51517:65:0;:24;;;:65;51637:20;;;;51620:38;;:16;:38::i;:::-;-1:-1:-1;;;;;51593:65:0;:24;;;:65;-1:-1:-1;;49356:2391:0;;;;;;:::o;16207:286::-;16304:20;16327:50;16371:5;16327;-1:-1:-1;;;;;16327:15:0;;16351:4;16358:7;16327:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:43;;:50::i;:::-;16304:73;;16388:97;16408:5;16438:22;;;16462:7;16471:12;16415:69;;;;;;;;;:::i;51770:680::-;51902:7;51945:16;51976:13;;;;51972:190;;52095:55;43480:5;52095:42;52112:24;43480:5;52112:24;;;:13;:24::i;:::-;52095:12;;:16;:42::i;:::-;:46;;:55::i;:::-;52080:70;;51972:190;52204:4;-1:-1:-1;;;;;52178:31:0;:14;-1:-1:-1;;;;;52178:31:0;;52174:237;;;52225:27;;;;;-1:-1:-1;;;;;52225:13:0;;;;;:27;;52239:12;;52225:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52267:40:0;;-1:-1:-1;;;;;52267:26:0;;;-1:-1:-1;52267:40:0;;;;;-1:-1:-1;52294:12:0;;52267:40;;;;52294:12;52267:26;:40;;;;;;;;;;;;;;;;;;;;;52174:237;;;52340:59;-1:-1:-1;;;;;52340:35:0;;52376:8;52386:12;52340:35;:59::i;:::-;52430:12;51770:680;-1:-1:-1;;;;;;51770:680:0:o;17223:761::-;17647:23;17673:69;17701:4;17673:69;;;;;;;;;;;;;;;;;17681:5;-1:-1:-1;;;;;17673:27:0;;;:69;;;;;:::i;:::-;17757:17;;17647:95;;-1:-1:-1;17757:21:0;17753:224;;17899:10;17888:30;;;;;;;;;;;;:::i;:::-;17880:85;;;;-1:-1:-1;;;17880:85:0;;;;;;;:::i;35119:654::-;35185:27;;:::i;:::-;35214:23;35239:24;35312:3;35298:4;:11;:17;35276:94;;;;-1:-1:-1;;;35276:94:0;;;;;;;:::i;:::-;35490:18;:4;35506:1;35490:15;:18::i;:::-;:32;;;35512:10;35490:32;;;35468:109;;;;-1:-1:-1;;;35468:109:0;;;;;;;:::i;:::-;35678:1;35668:12;;35708:55;;;;;;;;;;;;;;:::i;:::-;35701:62;;;;;;;35119:654;;;;;:::o;37413:1301::-;37585:14;37617:18;37251:152;;;;;;;:::i;:::-;;;;;;;;;;;;;37231:173;;;;;;37617:58;;37686:16;37715:4;37705:15;;;;;;37686:34;;38078:2;38072:9;38112:10;38104:6;38097:26;38241:4;38236:2;38228:6;38224:15;38217:29;-1:-1:-1;;;;;38355:13:0;38351:62;38346:2;38338:6;38334:15;38327:87;38470:8;38465:2;38457:6;38453:15;38446:33;38623:3;38615:6;38605:22;38595:32;;;38657:25;38675:6;38657:17;:25::i;27921:209::-;28013:17;28060:35;28078:16;28088:5;28078:9;:16::i;:::-;28060:17;:35::i;:::-;28048:47;27921:209;-1:-1:-1;;27921:209:0:o;36043:326::-;36129:16;36180:9;:16;36200:2;36180:22;:48;;;;36206:9;:16;36226:2;36206:22;36180:48;36158:128;;;;-1:-1:-1;;;36158:128:0;;;;;;;:::i;:::-;36308:25;:9;36330:2;36308:21;:25::i;52458:416::-;52557:7;52577;52586:9;52597;52608:16;52628:30;52648:9;52628:19;:30::i;:::-;52576:82;;;;;;;;52676:190;52767:15;52805:8;52728:104;;;;;;;;;:::i;:::-;;;;;;;;;;;;;52700:133;;;;;;52848:1;52851;52854;52676:190;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52676:190:0;;-1:-1:-1;;52676:190:0;;;52458:416;-1:-1:-1;;;;;;;;52458:416:0:o;8981:422::-;9348:20;9387:8;;;8981:422::o;36734:247::-;36806:7;36848:9;:16;36868:2;36848:22;36826:102;;;;-1:-1:-1;;;36826:102:0;;;;;;;:::i;:::-;36948:25;:9;36970:2;36948:21;:25::i;3757:181::-;3815:7;3847:5;;;3871:6;;;;3863:46;;;;-1:-1:-1;;;3863:46:0;;;;;;;:::i;:::-;3929:1;3757:181;-1:-1:-1;;;3757:181:0:o;4221:136::-;4279:7;4306:43;4310:1;4313;4306:43;;;;;;;;;;;;;;;;;:3;:43::i;5111:471::-;5169:7;5414:6;5410:47;;-1:-1:-1;5444:1:0;5437:8;;5410:47;5481:5;;;5485:1;5481;:5;:1;5505:5;;;;;:10;5497:56;;;;-1:-1:-1;;;5497:56:0;;;;;;;:::i;6058:132::-;6116:7;6143:39;6147:1;6150;6143:39;;;;;;;;;;;;;;;;;:3;:39::i;14918:177::-;15001:86;15021:5;15051:23;;;15076:2;15080:5;15028:58;;;;;;;;;:::i;11899:196::-;12002:12;12034:53;12057:6;12065:4;12071:1;12074:12;12034:22;:53::i;:::-;12027:60;11899:196;-1:-1:-1;;;;11899:196:0:o;33658:637::-;33762:13;33815:5;33823:1;33815:9;33803:1;:8;:21;;33787:112;;;;-1:-1:-1;;;33787:112:0;;;;;;;:::i;:::-;-1:-1:-1;34058:13:0;33971:2;34058:13;34052:20;-1:-1:-1;;;;;;34184:79:0;;33658:637::o;22642:950::-;22798:18;;23121:2;23115:9;23155:66;23140:82;;23273:1;23261:14;;23254:40;;;;23392:2;23380:15;;23373:35;;;;23547:2;23529:21;;;22642:950::o;28282:1727::-;28371:14;28403:18;24422:472;;;;;;;:::i;:::-;;;;-1:-1:-1;;24422:472:0;;;;;;;;;;;24412:483;;24422:472;24412:483;;;;28498:20;;;;;28488:31;;;;;;28569:20;;;;;28559:31;;;;;;;;;29377:14;;;29525:11;;29670:24;;;29708:32;;;29754;;;29826:3;29810:20;;29882:19;;;29915;;29948;;29810:20;-1:-1:-1;;28282:1727:0;;;:::o;31752:831::-;31857:14;31911:5;31919:2;31911:10;31899:1;:8;:22;;31883:143;;;;-1:-1:-1;;;31883:143:0;;;;;;;:::i;:::-;-1:-1:-1;32492:13:0;32262:2;32492:13;32486:20;-1:-1:-1;;;;;32482:69:0;;31752:831::o;36377:349::-;36452:7;36461:9;36472;36483:16;36523:41;36554:9;36523:30;:41::i;:::-;36512:52;;36587:9;36597:1;36587:12;;;;;;;;;;;;;;;-1:-1:-1;36615:24:0;:9;36637:1;36615:21;:24::i;:::-;36611:28;-1:-1:-1;36654:25:0;:9;36676:2;36654:21;:25::i;:::-;36650:29;;36377:349;;;;;:::o;4660:192::-;4746:7;4782:12;4774:6;;;;4766:29;;;;-1:-1:-1;;;4766:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;4818:5:0;;;4660:192::o;6686:278::-;6772:7;6807:12;6800:5;6792:28;;;;-1:-1:-1;;;6792:28:0;;;;;;;;:::i;:::-;;6831:9;6847:1;6843;:5;;;;;;;6686:278;-1:-1:-1;;;;;6686:278:0:o;13276:979::-;13406:12;13439:18;13450:6;13439:10;:18::i;:::-;13431:60;;;;-1:-1:-1;;;13431:60:0;;;;;;;:::i;:::-;13565:12;13579:23;13606:6;-1:-1:-1;;;;;13606:11:0;13626:8;13637:4;13606:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13564:78;;;;13657:7;13653:595;;;13688:10;-1:-1:-1;13681:17:0;;-1:-1:-1;13681:17:0;13653:595;13802:17;;:21;13798:439;;14065:10;14059:17;14126:15;14113:10;14109:2;14105:19;14098:44;14013:148;14208:12;14201:20;;-1:-1:-1;;;14201:20:0;;;;;;;;:::i;32957:456::-;33062:14;33116:5;33124:2;33116:10;33104:1;:8;:22;;33088:115;;;;-1:-1:-1;;;33088:115:0;;;;;;;:::i;:::-;-1:-1:-1;33367:13:0;33279:2;33367:13;33361:20;;32957:456::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;142:134::-;220:13;;238:33;220:13;238:33;:::i;936:440::-;;1037:3;1030:4;1022:6;1018:17;1014:27;1004:2;;-1:-1;;1045:12;1004:2;1092:6;1079:20;1114:64;1129:48;1170:6;1129:48;:::i;:::-;1114:64;:::i;:::-;1105:73;;1198:6;1191:5;1184:21;1302:3;1234:4;1293:6;1226;1284:16;;1281:25;1278:2;;;1319:1;;1309:12;1278:2;50451:6;1234:4;1226:6;1222:17;1234:4;1260:5;1256:16;50428:30;50507:1;50489:16;;;1234:4;50489:16;50482:27;1260:5;997:379;-1:-1;;997:379::o;1385:442::-;;1497:3;1490:4;1482:6;1478:17;1474:27;1464:2;;-1:-1;;1505:12;1464:2;1545:6;1539:13;1567:64;1582:48;1623:6;1582:48;:::i;1567:64::-;1558:73;;1651:6;1644:5;1637:21;1755:3;1687:4;1746:6;1679;1737:16;;1734:25;1731:2;;;1772:1;;1762:12;1731:2;1782:39;1814:6;1687:4;1713:5;1709:16;1687:4;1679:6;1675:17;1782:39;:::i;:::-;;1457:370;;;;:::o;4500:241::-;;4604:2;4592:9;4583:7;4579:23;4575:32;4572:2;;;-1:-1;;4610:12;4572:2;85:6;72:20;97:33;124:5;97:33;:::i;4748:263::-;;4863:2;4851:9;4842:7;4838:23;4834:32;4831:2;;;-1:-1;;4869:12;4831:2;226:6;220:13;238:33;265:5;238:33;:::i;5018:522::-;;;;5174:2;5162:9;5153:7;5149:23;5145:32;5142:2;;;-1:-1;;5180:12;5142:2;5238:17;5225:31;5276:18;;5268:6;5265:30;5262:2;;;-1:-1;;5298:12;5262:2;5399:6;5388:9;5384:22;;;431:3;424:4;416:6;412:17;408:27;398:2;;-1:-1;;439:12;398:2;482:6;469:20;5276:18;501:6;498:30;495:2;;;-1:-1;;531:12;495:2;626:3;575:4;;610:6;606:17;567:6;592:32;;589:41;586:2;;;-1:-1;;633:12;586:2;575:4;563:17;;;;-1:-1;5318:98;-1:-1;;5492:22;;72:20;97:33;72:20;97:33;:::i;:::-;5461:63;;;;5136:404;;;;;:::o;5547:257::-;;5659:2;5647:9;5638:7;5634:23;5630:32;5627:2;;;-1:-1;;5665:12;5627:2;742:6;736:13;51491:5;48424:13;48417:21;51469:5;51466:32;51456:2;;-1:-1;;51502:12;5811:261;;5925:2;5913:9;5904:7;5900:23;5896:32;5893:2;;;-1:-1;;5931:12;5893:2;879:6;873:13;-1:-1;;;;;;51613:5;48590:78;51589:5;51586:34;51576:2;;-1:-1;;51624:12;6079:755;;;;6259:2;6247:9;6238:7;6234:23;6230:32;6227:2;;;-1:-1;;6265:12;6227:2;6316:17;6310:24;6354:18;;6346:6;6343:30;6340:2;;;-1:-1;;6376:12;6340:2;6475:6;6464:9;6460:22;;;1985:6;;1973:9;1968:3;1964:19;1960:32;1957:2;;;-1:-1;;1995:12;1957:2;2023:22;1985:6;2023:22;:::i;:::-;2014:31;;2135:60;2191:3;2167:22;2135:60;:::i;:::-;2117:16;2110:86;2298:60;2354:3;2265:2;2334:9;2330:22;2298:60;:::i;:::-;2265:2;2284:5;2280:16;2273:86;2468:60;2524:3;2435:2;2504:9;2500:22;2468:60;:::i;:::-;2435:2;2454:5;2450:16;2443:86;2632:60;2688:3;6259:2;2668:9;2664:22;2632:60;:::i;:::-;6259:2;2618:5;2614:16;2607:86;2766:3;2836:9;2832:22;4437:13;2766:3;2786:5;2782:16;2775:86;2934:3;3004:9;3000:22;4437:13;2934:3;2954:5;2950:16;2943:86;3094:3;3164:9;3160:22;4437:13;3094:3;3114:5;3110:16;3103:86;3254:3;3324:9;3320:22;4437:13;3254:3;3274:5;3270:16;3263:86;3427:3;;3499:9;3495:22;4437:13;3427:3;3447:5;3443:18;3436:88;;3585:3;;3657:9;3653:22;4437:13;3585:3;3605:5;3601:18;3594:88;;3774:3;;3763:9;3759:19;3753:26;6354:18;3791:6;3788:30;3785:2;;;-1:-1;;3821:12;3785:2;3868:69;3933:3;3924:6;3913:9;3909:22;3868:69;:::i;:::-;3774:3;3852:5;3848:18;3841:97;;;4030:3;;4019:9;4015:19;4009:26;6354:18;4047:6;4044:30;4041:2;;;-1:-1;;4077:12;4041:2;4124:69;4189:3;4180:6;4169:9;4165:22;4124:69;:::i;:::-;4030:3;4108:5;4104:18;4097:97;;;6396:96;;;;2265:2;6583:9;6579:22;4437:13;6537:74;;2435:2;6658:9;6654:18;6648:25;6634:39;;6354:18;6685:6;6682:30;6679:2;;;-1:-1;;6715:12;6679:2;;6745:73;6810:7;6801:6;6790:9;6786:22;6745:73;:::i;:::-;6735:83;;;6221:613;;;;;:::o;6841:263::-;;6956:2;6944:9;6935:7;6931:23;6927:32;6924:2;;;-1:-1;;6962:12;6924:2;-1:-1;4437:13;;6918:186;-1:-1;6918:186::o;7111:699::-;;;;7267:2;7255:9;7246:7;7242:23;7238:32;7235:2;;;-1:-1;;7273:12;7235:2;4302:6;4289:20;7325:63;;7453:2;7442:9;7438:18;7425:32;7477:18;;7469:6;7466:30;7463:2;;;-1:-1;;7499:12;7463:2;7529:62;7583:7;7574:6;7563:9;7559:22;7529:62;:::i;:::-;7519:72;;7656:2;7645:9;7641:18;7628:32;7614:46;;7477:18;7672:6;7669:30;7666:2;;;-1:-1;;7702:12;7666:2;;7732:62;7786:7;7777:6;7766:9;7762:22;7732:62;:::i;8524:343::-;;8666:5;47440:12;47725:6;47720:3;47713:19;8759:52;8804:6;47762:4;47757:3;47753:14;47762:4;8785:5;8781:16;8759:52;:::i;:::-;51163:7;51147:14;-1:-1;;51143:28;8823:39;;;;47762:4;8823:39;;8614:253;-1:-1;;8614:253::o;12958:357::-;13254:23;13234:44;;13218:2;13297:12;;13122:193::o;13690:356::-;13986:22;13966:43;;13950:2;14028:12;;13854:192::o;14055:335::-;-1:-1;;;14330:24;;14315:1;14373:11;;14219:171::o;25048:392::-;8316:37;;;51258:2;51254:14;-1:-1;;51254:14;25301:2;25292:12;;8175:58;25403:12;;;25192:248::o;25447:271::-;;9034:5;47440:12;9145:52;9190:6;9185:3;9178:4;9171:5;9167:16;9145:52;:::i;:::-;9209:16;;;;;25581:137;-1:-1;;25581:137::o;25725:1449::-;11880:20;11860:41;;-1:-1;;;11844:2;11920:12;;16377:36;22388:24;16432:12;;;22368:45;17085:12;22432;;;17065:33;-1:-1;;;17117:12;;;14330:24;14373:11;;;26318:856::o;27181:3852::-;;12242:8;12229:11;12222:29;13620:23;12207:1;12274:3;12270:11;13600:44;23883:23;13663:12;12274:3;13663:12;23863:44;20343:30;23926:12;12274:3;23926:12;20323:51;11513:24;20393:12;12274:3;20393:12;11493:45;10807:27;11557:12;12274:3;11557:12;10787:48;24624:27;10854:12;12274:3;10854:12;24604:48;18496:19;24671:12;12274:3;24671:12;18476:40;14695:19;18535:12;12274:3;18535:12;14675:40;24249:32;14734:12;12274:3;14734:12;24229:53;-1:-1;;;24301:12;12274:3;24301:12;16377:36;30860:148;30694;30528;16432:12;12274:3;16432:12;30528:148;:::i;:::-;30694;:::i;:::-;30860;:::i;31040:222::-;-1:-1;;;;;48833:54;;;;8037:37;;31167:2;31152:18;;31138:124::o;31269:333::-;-1:-1;;;;;48833:54;;;8037:37;;48833:54;;31588:2;31573:18;;8037:37;31424:2;31409:18;;31395:207::o;31609:444::-;-1:-1;;;;;48833:54;;;8037:37;;48833:54;;;;31956:2;31941:18;;8037:37;32039:2;32024:18;;8316:37;;;;31792:2;31777:18;;31763:290::o;32060:333::-;-1:-1;;;;;48833:54;;;;8037:37;;32379:2;32364:18;;8316:37;32215:2;32200:18;;32186:207::o;32400:222::-;8316:37;;;32527:2;32512:18;;32498:124::o;32629:417::-;;8346:5;8323:3;8316:37;32802:2;32920;32909:9;32905:18;32898:48;32960:76;32802:2;32791:9;32787:18;33022:6;32960:76;:::i;33053:548::-;8316:37;;;49049:4;49038:16;;;;33421:2;33406:18;;25001:35;33504:2;33489:18;;8316:37;33587:2;33572:18;;8316:37;33260:3;33245:19;;33231:370::o;34425:310::-;;34572:2;34593:17;34586:47;34647:78;34572:2;34561:9;34557:18;34711:6;34647:78;:::i;34742:1200::-;;35111:3;;35133:17;35126:47;35187:78;35111:3;35100:9;35096:19;35251:6;35187:78;:::i;:::-;35179:86;;;-1:-1;;;;;48844:42;48340:5;48833:54;35344:2;35333:9;35329:18;8037:37;8346:5;35427:2;35416:9;35412:18;8316:37;48844:42;48340:5;48833:54;35510:2;35499:9;35495:18;8037:37;48844:42;48340:5;48833:54;35593:3;35582:9;35578:19;8037:37;8346:5;35677:3;35666:9;35662:19;8316:37;48844:42;48340:5;48833:54;35761:3;35750:9;35746:19;8037:37;;8346:5;35845:3;35834:9;35830:19;8316:37;48752:6;24795:5;48741:18;35927:3;35916:9;35912:19;24766:36;35082:860;;;;;;;;;;;;:::o;35949:416::-;36149:2;36163:47;;;10345:2;36134:18;;;47713:19;10381:34;47753:14;;;10361:55;10450:14;10436:12;;;10429:36;10484:12;;;36120:245::o;36372:416::-;36572:2;36586:47;;;11105:2;36557:18;;;47713:19;11141:29;47753:14;;;11121:50;11190:12;;;36543:245::o;36795:416::-;36995:2;37009:47;;;12520:2;36980:18;;;47713:19;12556:29;47753:14;;;12536:50;12605:12;;;36966:245::o;37218:416::-;37418:2;37432:47;;;12856:2;37403:18;;;47713:19;12892;47753:14;;;12872:40;12931:12;;;37389:245::o;37641:416::-;37841:2;37855:47;;;14985:2;37826:18;;;47713:19;15021:22;47753:14;;;15001:43;15063:12;;;37812:245::o;38064:416::-;38264:2;38278:47;;;15314:2;38249:18;;;47713:19;15350:33;47753:14;;;15330:54;15403:12;;;38235:245::o;38487:416::-;38687:2;38701:47;;;15654:2;38672:18;;;47713:19;15690:29;47753:14;;;15670:50;15739:12;;;38658:245::o;38910:416::-;39110:2;39124:47;;;15990:2;39095:18;;;47713:19;16026:28;47753:14;;;16006:49;16074:12;;;39081:245::o;39333:416::-;39533:2;39547:47;;;16683:2;39518:18;;;47713:19;16719:23;47753:14;;;16699:44;16762:12;;;39504:245::o;39756:416::-;39956:2;39970:47;;;17368:2;39941:18;;;47713:19;17404:34;47753:14;;;17384:55;17473:3;17459:12;;;17452:25;17496:12;;;39927:245::o;40179:416::-;40379:2;40393:47;;;17747:2;40364:18;;;47713:19;17783:31;47753:14;;;17763:52;17834:12;;;40350:245::o;40602:416::-;40802:2;40816:47;;;18085:2;40787:18;;;47713:19;18121:32;47753:14;;;18101:53;18173:12;;;40773:245::o;41025:416::-;41225:2;41239:47;;;18786:2;41210:18;;;47713:19;18822:29;47753:14;;;18802:50;18871:12;;;41196:245::o;41448:416::-;41648:2;41662:47;;;19122:2;41633:18;;;47713:19;19158:34;47753:14;;;19138:55;19227:29;19213:12;;;19206:51;19276:12;;;41619:245::o;41871:416::-;42071:2;42085:47;;;19527:2;42056:18;;;47713:19;19563:32;47753:14;;;19543:53;19615:12;;;42042:245::o;42294:416::-;42494:2;42508:47;;;19866:2;42479:18;;;47713:19;19902:34;47753:14;;;19882:55;19971:29;19957:12;;;19950:51;20020:12;;;42465:245::o;42717:416::-;42917:2;42931:47;;;20913:2;42902:18;;;47713:19;20949:31;47753:14;;;20929:52;21000:12;;;42888:245::o;43140:416::-;43340:2;43354:47;;;21251:2;43325:18;;;47713:19;21287:25;47753:14;;;21267:46;21332:12;;;43311:245::o;43563:416::-;43763:2;43777:47;;;21583:2;43748:18;;;47713:19;21619:23;47753:14;;;21599:44;21662:12;;;43734:245::o;43986:416::-;44186:2;44200:47;;;21913:2;44171:18;;;47713:19;21949:34;47753:14;;;21929:55;22018:27;22004:12;;;21997:49;22065:12;;;44157:245::o;44409:416::-;44609:2;44623:47;;;22683:2;44594:18;;;47713:19;22719:34;47753:14;;;22699:55;22788:12;22774;;;22767:34;22820:12;;;44580:245::o;44832:416::-;45032:2;45046:47;;;23071:2;45017:18;;;47713:19;23107:33;47753:14;;;23087:54;23160:12;;;45003:245::o;45255:416::-;45455:2;45469:47;;;23411:2;45440:18;;;47713:19;23447:34;47753:14;;;23427:55;23516:24;23502:12;;;23495:46;23560:12;;;45426:245::o;45907:848::-;;8346:5;8323:3;8316:37;-1:-1;;;;;48340:5;48833:54;46389:2;46378:9;46374:18;7896:58;46216:3;46426:2;46415:9;46411:18;46404:48;46466:76;46216:3;46205:9;46201:19;46528:6;46466:76;:::i;:::-;46580:20;;;46575:2;46560:18;;;46553:48;;;;47713:19;;46389:2;47753:14;;46187:568;-1:-1;;;46187:568::o;46762:256::-;46824:2;46818:9;46850:17;;;46925:18;46910:34;;46946:22;;;46907:62;46904:2;;;46982:1;;46972:12;46904:2;46824;46991:22;46802:216;;-1:-1;46802:216::o;47025:321::-;;47168:18;47160:6;47157:30;47154:2;;;-1:-1;;47190:12;47154:2;-1:-1;51163:7;47244:17;-1:-1;;47240:33;47331:4;47321:15;;47091:255::o;50524:268::-;50589:1;50596:101;50610:6;50607:1;50604:13;50596:101;;;50677:11;;;50671:18;50658:11;;;50651:39;50632:2;50625:10;50596:101;;;50712:6;50709:1;50706:13;50703:2;;;-1:-1;;50589:1;50759:16;;50752:27;50573:219::o;51286:117::-;-1:-1;;;;;51373:5;48833:54;51348:5;51345:35;51335:2;;51394:1;;51384:12;51335:2;51329:74;:::o

Swarm Source

ipfs://96a6d559a604470a95fec4cd0f3db116aee599cfe0686671594f670fb5debfaa

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
Chain Token Portfolio % Price Amount Value
ETH78.98%$3,243.9202.5323$656,994.44
ETH10.54%$187,658.0598$87,658.06
ETH3.91%$0.0000171,891,985,003.2328$32,504.3
ETH3.75%$0.99985431,175.0704$31,170.52
ETH
Ether (ETH)
0.84%$3,243.92.1586$7,002.25
ETH0.80%$13.21501.9682$6,631
ETH0.56%$19.87233.9791$4,649.16
ETH0.35%$93,6270.0311$2,908.75
ETH0.08%$1.6430.5377$688.86
ETH0.06%$0.3798061,422.1329$540.13
ETH0.05%$2.05222.3246$455.77
ETH0.02%$0.814559177.7851$144.82
ETH0.01%$0.0967031,230.6409$119.01
ETH0.01%$1.193.0212$102.23
ETH<0.01%$0.99998965.5715$65.57
ETH<0.01%$0.485675113.4823$55.12
ETH<0.01%$98,7290.00048208$47.6
ETH<0.01%$1.4731.6894$46.58
ETH<0.01%$1.7723.7849$42.1
ETH<0.01%$0.67513413.9931$9.45
ETH<0.01%$0.43219817.3903$7.52
ETH<0.01%$0.60373712.1777$7.35
ETH<0.01%$0.61826210.8077$6.68
ETH<0.01%$0.11298745.0206$5.09
ETH<0.01%$0.007903499.3001$3.95
ETH<0.01%$17.690.1773$3.14
ETH<0.01%$0.494755.8924$2.92
ETH<0.01%<$0.00000115,390,027.5315$0.9584
ETH<0.01%$0.02698733.2362$0.8969
ETH<0.01%$0.00368945$0.166
BSC<0.01%$0.000009804,828$7.09
BASE<0.01%$0.01894910$0.1894
POL<0.01%$0.4496590.0011$0.000495
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.