ETH Price: $3,380.18 (-0.80%)
Gas: 3 Gwei

Contract

0xc549A5c701cb6E6cbc091007A80c089C49595468
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Swap148724982022-05-30 12:21:48761 days ago1653913308IN
AirSwap: Light
0 ETH0.0048912439.82352654
Swap146301672022-04-21 19:27:48799 days ago1650569268IN
AirSwap: Light
0 ETH0.0069694851.56048406
Swap145820282022-04-14 6:44:22807 days ago1649918662IN
AirSwap: Light
0 ETH0.0035887326.54959011
Swap145758292022-04-13 7:26:22808 days ago1649834782IN
AirSwap: Light
0 ETH0.0040206929.62882665
Swap145710312022-04-12 13:42:56809 days ago1649770976IN
AirSwap: Light
0 ETH0.0080932976.52000242
Swap145574372022-04-10 10:29:44811 days ago1649586584IN
AirSwap: Light
0 ETH0.0017422518.29968682
Swap145574332022-04-10 10:28:48811 days ago1649586528IN
AirSwap: Light
0 ETH0.0022587318.92894224
Swap145574282022-04-10 10:27:35811 days ago1649586455IN
AirSwap: Light
0 ETH0.0022591518.19053056
Swap145574192022-04-10 10:26:12811 days ago1649586372IN
AirSwap: Light
0 ETH0.0030674622.5723459
Swap145249362022-04-05 8:54:12816 days ago1649148852IN
AirSwap: Light
0 ETH0.006508945.18695541
Swap144663572022-03-27 5:25:07825 days ago1648358707IN
AirSwap: Light
0 ETH0.0029548722.31726564
Swap144294102022-03-21 11:28:56831 days ago1647862136IN
AirSwap: Light
0 ETH0.0039482730
Swap143975652022-03-16 12:23:24836 days ago1647433404IN
AirSwap: Light
0 ETH0.003673226.93340579
Swap143445822022-03-08 6:24:28844 days ago1646720668IN
AirSwap: Light
0 ETH0.0032980725.37589363
Swap143292382022-03-05 21:09:02846 days ago1646514542IN
AirSwap: Light
0 ETH0.0018968776.74673674
Swap143066832022-03-02 9:10:35850 days ago1646212235IN
AirSwap: Light
0 ETH0.0025545124.56922082
Swap142707772022-02-24 19:45:23855 days ago1645731923IN
AirSwap: Light
0 ETH0.0101480180.17643138
Swap142631402022-02-23 15:23:37856 days ago1645629817IN
AirSwap: Light
0 ETH0.0078597465.13581825
Swap142626052022-02-23 13:31:04857 days ago1645623064IN
AirSwap: Light
0 ETH0.0038404234.64522546
Swap142561092022-02-22 13:24:36858 days ago1645536276IN
AirSwap: Light
0 ETH0.0039487437.23893252
Swap142330952022-02-18 23:45:49861 days ago1645227949IN
AirSwap: Light
0 ETH0.0103918775.67962091
Swap141791982022-02-10 15:42:47869 days ago1644507767IN
AirSwap: Light
0 ETH0.01561708137.29786617
Swap141598662022-02-07 15:54:22872 days ago1644249262IN
AirSwap: Light
0 ETH0.01637773131.61569981
Swap140529232022-01-22 3:19:13889 days ago1642821553IN
AirSwap: Light
0 ETH0.01411899113.44204434
Swap140494892022-01-21 14:35:26890 days ago1642775726IN
AirSwap: Light
0 ETH0.01512722118.36176502
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Light

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-17
*/

// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
  function _msgSender() internal view virtual returns (address payable) {
    return msg.sender;
  }

  function _msgData() internal view virtual returns (bytes memory) {
    this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
    return msg.data;
  }
}
// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
  address private _owner;
  event OwnershipTransferred(
    address indexed previousOwner,
    address indexed newOwner
  );

  /**
   * @dev Initializes the contract setting the deployer as the initial owner.
   */
  constructor() internal {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(_owner == _msgSender(), "Ownable: caller is not the owner");
    _;
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing any functionality that is only available to the owner.
   */
  function renounceOwnership() public virtual onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Can only be called by the current owner.
   */
  function transferOwnership(address newOwner) public virtual onlyOwner {
    require(newOwner != address(0), "Ownable: new owner is the zero address");
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}
// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);
  /**
   * @dev Emitted when the allowance of a `spender` for an `owner` is set by
   * a call to {approve}. `value` is the new allowance.
   */
  event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

  /**
   * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
   * with `errorMessage` as a fallback revert reason when `target` reverts.
   *
   * _Available since v3.1._
   */
  function functionCallWithValue(
    address target,
    bytes memory data,
    uint256 value,
    string memory errorMessage
  ) internal returns (bytes memory) {
    require(
      address(this).balance >= value,
      "Address: insufficient balance for call"
    );
    require(isContract(target), "Address: call to non-contract");
    // solhint-disable-next-line avoid-low-level-calls
    (bool success, bytes memory returndata) = target.call{value: value}(data);
    return _verifyCallResult(success, returndata, errorMessage);
  }

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

  /**
   * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
   * but performing a static call.
   *
   * _Available since v3.3._
   */
  function functionStaticCall(
    address target,
    bytes memory data,
    string memory errorMessage
  ) internal view returns (bytes memory) {
    require(isContract(target), "Address: static call to non-contract");
    // solhint-disable-next-line avoid-low-level-calls
    (bool success, bytes memory returndata) = target.staticcall(data);
    return _verifyCallResult(success, returndata, errorMessage);
  }

  function _verifyCallResult(
    bool success,
    bytes memory returndata,
    string memory errorMessage
  ) private pure returns (bytes memory) {
    if (success) {
      return returndata;
    } else {
      // Look for revert reason and bubble it up if present
      if (returndata.length > 0) {
        // The easiest way to bubble the revert reason is using memory via assembly
        // solhint-disable-next-line no-inline-assembly
        assembly {
          let returndata_size := mload(returndata)
          revert(add(32, returndata), returndata_size)
        }
      } else {
        revert(errorMessage);
      }
    }
  }
}
// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

// File: contracts/interfaces/ILight.sol
/*
  Copyright 2021 Swap Holdings Ltd.
  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.
*/
interface ILight {
  event Swap(
    uint256 indexed nonce,
    uint256 timestamp,
    address indexed signerWallet,
    IERC20 signerToken,
    uint256 signerAmount,
    uint256 signerFee,
    address indexed senderWallet,
    IERC20 senderToken,
    uint256 senderAmount
  );
  event Cancel(uint256 indexed nonce, address indexed signerWallet);
  event Authorize(address indexed signer, address indexed signerWallet);
  event Revoke(address indexed signer, address indexed signerWallet);

  function swapWithRecipient(
    address recipient,
    uint256 nonce,
    uint256 expiry,
    address signerWallet,
    IERC20 signerToken,
    uint256 signerAmount,
    IERC20 senderToken,
    uint256 senderAmount,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  function swap(
    uint256 nonce,
    uint256 expiry,
    address signerWallet,
    IERC20 signerToken,
    uint256 signerAmount,
    IERC20 senderToken,
    uint256 senderAmount,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  function authorize(address sender) external;

  function revoke() external;

  function cancel(uint256[] calldata nonces) external;

  function nonceUsed(address, uint256) external view returns (bool);

  function authorized(address) external view returns (address);
}

// File: contracts/Light.sol
/*
  Copyright 2021 Swap Holdings Ltd.
  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.
*/
/* solhint-disable var-name-mixedcase */
/**
 * @title Light: Simple atomic swap
 * @notice https://www.airswap.io/
 */
contract Light is ILight, Ownable {
  using SafeERC20 for IERC20;
  using SafeMath for uint256;
  bytes32 public constant DOMAIN_TYPEHASH =
    keccak256(
      abi.encodePacked(
        "EIP712Domain(",
        "string name,",
        "string version,",
        "uint256 chainId,",
        "address verifyingContract",
        ")"
      )
    );
  bytes32 public constant ORDER_TYPEHASH =
    keccak256(
      abi.encodePacked(
        "LightOrder(",
        "uint256 nonce,",
        "uint256 expiry,",
        "address signerWallet,",
        "address signerToken,",
        "uint256 signerAmount,",
        "uint256 signerFee,",
        "address senderWallet,",
        "address senderToken,",
        "uint256 senderAmount",
        ")"
      )
    );
  bytes32 public constant DOMAIN_NAME = keccak256("SWAP_LIGHT");
  bytes32 public constant DOMAIN_VERSION = keccak256("3");
  uint256 public immutable DOMAIN_CHAIN_ID;
  bytes32 public immutable DOMAIN_SEPARATOR;
  uint256 public constant FEE_DIVISOR = 10000;
  uint256 public signerFee;
  /**
   * @notice Double mapping of signers to nonce groups to nonce states
   * @dev The nonce group is computed as nonce / 256, so each group of 256 sequential nonces uses the same key
   * @dev The nonce states are encoded as 256 bits, for each nonce in the group 0 means available and 1 means used
   */
  mapping(address => mapping(uint256 => uint256)) internal _nonceGroups;
  mapping(address => address) public override authorized;
  address public feeWallet;

  constructor(address _feeWallet, uint256 _fee) public {
    // Ensure the fee wallet is not null
    require(_feeWallet != address(0), "INVALID_FEE_WALLET");
    // Ensure the fee is less than divisor
    require(_fee < FEE_DIVISOR, "INVALID_FEE");
    uint256 currentChainId = getChainId();
    DOMAIN_CHAIN_ID = currentChainId;
    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        DOMAIN_TYPEHASH,
        DOMAIN_NAME,
        DOMAIN_VERSION,
        currentChainId,
        this
      )
    );
    feeWallet = _feeWallet;
    signerFee = _fee;
  }

  /**
   * @notice Atomic Token Swap
   * @param nonce uint256 Unique and should be sequential
   * @param expiry uint256 Expiry in seconds since 1 January 1970
   * @param signerWallet address Wallet of the signer
   * @param signerToken address ERC20 token transferred from the signer
   * @param signerAmount uint256 Amount transferred from the signer
   * @param senderToken address ERC20 token transferred from the sender
   * @param senderAmount uint256 Amount transferred from the sender
   * @param v uint8 "v" value of the ECDSA signature
   * @param r bytes32 "r" value of the ECDSA signature
   * @param s bytes32 "s" value of the ECDSA signature
   */
  function swap(
    uint256 nonce,
    uint256 expiry,
    address signerWallet,
    IERC20 signerToken,
    uint256 signerAmount,
    IERC20 senderToken,
    uint256 senderAmount,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external override {
    swapWithRecipient(
      msg.sender,
      nonce,
      expiry,
      signerWallet,
      signerToken,
      signerAmount,
      senderToken,
      senderAmount,
      v,
      r,
      s
    );
  }

  /**
   * @notice Atomic Token Swap with Recipient
   * @param recipient Wallet of the recipient
   * @param nonce uint256 Unique and should be sequential
   * @param expiry uint256 Expiry in seconds since 1 January 1970
   * @param signerWallet address Wallet of the signer
   * @param signerToken address ERC20 token transferred from the signer
   * @param signerAmount uint256 Amount transferred from the signer
   * @param senderToken address ERC20 token transferred from the sender
   * @param senderAmount uint256 Amount transferred from the sender
   * @param v uint8 "v" value of the ECDSA signature
   * @param r bytes32 "r" value of the ECDSA signature
   * @param s bytes32 "s" value of the ECDSA signature
   */
  function swapWithRecipient(
    address recipient,
    uint256 nonce,
    uint256 expiry,
    address signerWallet,
    IERC20 signerToken,
    uint256 signerAmount,
    IERC20 senderToken,
    uint256 senderAmount,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) public override {
    require(DOMAIN_CHAIN_ID == getChainId(), "CHAIN_ID_CHANGED");
    // Ensure the expiry is not passed
    require(expiry > block.timestamp, "EXPIRY_PASSED");
    bytes32 hashed =
      _getOrderHash(
        nonce,
        expiry,
        signerWallet,
        signerToken,
        signerAmount,
        msg.sender,
        senderToken,
        senderAmount
      );
    // Recover the signatory from the hash and signature
    address signatory = _getSignatory(hashed, v, r, s);
    // Ensure the nonce is not yet used and if not mark it used
    require(_markNonceAsUsed(signatory, nonce), "NONCE_ALREADY_USED");
    // Ensure the signatory is authorized by the signer wallet
    if (signerWallet != signatory) {
      require(authorized[signerWallet] == signatory, "UNAUTHORIZED");
    }
    // Transfer token from sender to signer
    senderToken.safeTransferFrom(msg.sender, signerWallet, senderAmount);
    // Transfer token from signer to recipient
    signerToken.safeTransferFrom(signerWallet, recipient, signerAmount);
    // Transfer fee from signer to feeWallet
    uint256 feeAmount = signerAmount.mul(signerFee).div(FEE_DIVISOR);
    if (feeAmount > 0) {
      signerToken.safeTransferFrom(signerWallet, feeWallet, feeAmount);
    }
    // Emit a Swap event
    emit Swap(
      nonce,
      block.timestamp,
      signerWallet,
      signerToken,
      signerAmount,
      signerFee,
      msg.sender,
      senderToken,
      senderAmount
    );
  }

  /**
   * @notice Set the fee wallet
   * @param newFeeWallet address Wallet to transfer signerFee to
   */
  function setFeeWallet(address newFeeWallet) external onlyOwner {
    // Ensure the new fee wallet is not null
    require(newFeeWallet != address(0), "INVALID_FEE_WALLET");
    feeWallet = newFeeWallet;
  }

  /**
   * @notice Set the fee
   * @param newSignerFee uint256 Value of the fee in basis points
   */
  function setFee(uint256 newSignerFee) external onlyOwner {
    // Ensure the fee is less than divisor
    require(newSignerFee < FEE_DIVISOR, "INVALID_FEE");
    signerFee = newSignerFee;
  }

  /**
   * @notice Authorize a signer
   * @param signer address Wallet of the signer to authorize
   * @dev Emits an Authorize event
   */
  function authorize(address signer) external override {
    authorized[msg.sender] = signer;
    emit Authorize(signer, msg.sender);
  }

  /**
   * @notice Revoke authorization of a signer
   * @dev Emits a Revoke event
   */
  function revoke() external override {
    address tmp = authorized[msg.sender];
    delete authorized[msg.sender];
    emit Revoke(tmp, msg.sender);
  }

  /**
   * @notice Cancel one or more nonces
   * @dev Cancelled nonces are marked as used
   * @dev Emits a Cancel event
   * @dev Out of gas may occur in arrays of length > 400
   * @param nonces uint256[] List of nonces to cancel
   */
  function cancel(uint256[] calldata nonces) external override {
    for (uint256 i = 0; i < nonces.length; i++) {
      uint256 nonce = nonces[i];
      if (_markNonceAsUsed(msg.sender, nonce)) {
        emit Cancel(nonce, msg.sender);
      }
    }
  }

  /**
   * @notice Returns true if the nonce has been used
   * @param signer address Address of the signer
   * @param nonce uint256 Nonce being checked
   */
  function nonceUsed(address signer, uint256 nonce)
    public
    view
    override
    returns (bool)
  {
    uint256 groupKey = nonce / 256;
    uint256 indexInGroup = nonce % 256;
    return (_nonceGroups[signer][groupKey] >> indexInGroup) & 1 == 1;
  }

  /**
   * @notice Returns the current chainId using the chainid opcode
   * @return id uint256 The chain id
   */
  function getChainId() public pure returns (uint256 id) {
    // no-inline-assembly
    assembly {
      id := chainid()
    }
  }

  /**
   * @notice Marks a nonce as used for the given signer
   * @param signer address Address of the signer for which to mark the nonce as used
   * @param nonce uint256 Nonce to be marked as used
   * @return bool True if the nonce was not marked as used already
   */
  function _markNonceAsUsed(address signer, uint256 nonce)
    internal
    returns (bool)
  {
    uint256 groupKey = nonce / 256;
    uint256 indexInGroup = nonce % 256;
    uint256 group = _nonceGroups[signer][groupKey];
    // If it is already used, return false
    if ((group >> indexInGroup) & 1 == 1) {
      return false;
    }
    _nonceGroups[signer][groupKey] = group | (uint256(1) << indexInGroup);
    return true;
  }

  /**
   * @notice Hash order parameters
   * @param nonce uint256
   * @param expiry uint256
   * @param signerWallet address
   * @param signerToken address
   * @param signerAmount uint256
   * @param senderToken address
   * @param senderAmount uint256
   * @return bytes32
   */
  function _getOrderHash(
    uint256 nonce,
    uint256 expiry,
    address signerWallet,
    IERC20 signerToken,
    uint256 signerAmount,
    address senderWallet,
    IERC20 senderToken,
    uint256 senderAmount
  ) internal view returns (bytes32) {
    return
      keccak256(
        abi.encode(
          ORDER_TYPEHASH,
          nonce,
          expiry,
          signerWallet,
          signerToken,
          signerAmount,
          signerFee,
          senderWallet,
          senderToken,
          senderAmount
        )
      );
  }

  /**
   * @notice Recover the signatory from a signature
   * @param hash bytes32
   * @param v uint8
   * @param r bytes32
   * @param s bytes32
   */
  function _getSignatory(
    bytes32 hash,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) internal view returns (address) {
    bytes32 digest =
      keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, hash));
    address signatory = ecrecover(digest, v, r, s);
    // Ensure the signatory is not null
    require(signatory != address(0), "INVALID_SIG");
    return signatory;
  }
}

// File: contracts/Imports.sol
// import "@gnosis.pm/mock-contract/contracts/MockContract.sol";
contract Imports {

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_feeWallet","type":"address"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":true,"internalType":"address","name":"signerWallet","type":"address"}],"name":"Authorize","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":true,"internalType":"address","name":"signerWallet","type":"address"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":true,"internalType":"address","name":"signerWallet","type":"address"}],"name":"Revoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"signerWallet","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"signerToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"signerAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"signerFee","type":"uint256"},{"indexed":true,"internalType":"address","name":"senderWallet","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"senderToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"senderAmount","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[],"name":"DOMAIN_CHAIN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_NAME","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_VERSION","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORDER_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"nonces","type":"uint256[]"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"nonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSignerFee","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeWallet","type":"address"}],"name":"setFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"address","name":"signerWallet","type":"address"},{"internalType":"contract IERC20","name":"signerToken","type":"address"},{"internalType":"uint256","name":"signerAmount","type":"uint256"},{"internalType":"contract IERC20","name":"senderToken","type":"address"},{"internalType":"uint256","name":"senderAmount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"address","name":"signerWallet","type":"address"},{"internalType":"contract IERC20","name":"signerToken","type":"address"},{"internalType":"uint256","name":"signerAmount","type":"uint256"},{"internalType":"contract IERC20","name":"senderToken","type":"address"},{"internalType":"uint256","name":"senderAmount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"swapWithRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b506040516200205b3803806200205b833981810160405260408110156200003757600080fd5b50805160209091015160006200004c62000291565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038216620000e7576040805162461bcd60e51b81526020600482015260126024820152711253959053125117d1915157d5d05313115560721b604482015290519081900360640190fd5b61271081106200012c576040805162461bcd60e51b815260206004820152600b60248201526a494e56414c49445f46454560a81b604482015290519081900360640190fd5b60006200013862000295565b6080819052604080516c08a92a06e626488dedac2d2dc5609b1b6020808301919091526b1cdd1c9a5b99c81b985b594b60a21b602d8301526e1cdd1c9a5b99c81d995c9cda5bdb8b608a1b60398301526f1d5a5b9d0c8d4d8818da185a5b92590b60821b60488301527f6164647265737320766572696679696e67436f6e7472616374000000000000006058830152602960f81b60718301528251808303605201815260728301845280519082012060928301527f5ee68cfe911d7a09ed88dfad92a17e2cdfa393d35f3f543c0cc3f150481df80760b28301527f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de60d283015260f2820193909352306101128083019190915282518083039091018152610132909101909152805191012060a05250600480546001600160a01b0319166001600160a01b03939093169290921790915560015562000299565b3390565b4690565b60805160a051611d94620002c76000398061068352806115f65250806106a752806106d35250611d946000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c80638da5cb5b116100d8578063b6549f751161008c578063f25f4b5611610066578063f25f4b5614610480578063f2fde38b14610488578063f973a209146104bb57610182565b8063b6549f7514610412578063b6a5d7de1461041a578063b91816111461044d57610182565b806390d49b9d116100bd57806390d49b9d146103cf5780639e93ad8e14610402578063acb8cc491461040a57610182565b80638da5cb5b146103295780638f8c57fe1461035a57610182565b8063416f281d1161013a578063715018a611610114578063715018a61461031157806375030f9c14610319578063796f077b1461032157610182565b8063416f281d146102705780636951cb7e1461027857806369fe0e2d146102f457610182565b80632e3408231161016b5780632e340823146101ee5780633408e470146102605780633644e5151461026857610182565b80631647795e1461018757806320606b70146101d4575b600080fd5b6101c06004803603604081101561019d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356104c3565b604080519115158252519081900360200190f35b6101dc61050a565b60408051918252519081900360200190f35b61025e6004803603602081101561020457600080fd5b81019060208101813564010000000081111561021f57600080fd5b82018360208201111561023157600080fd5b8035906020019184602083028401116401000000008311171561025357600080fd5b509092509050610610565b005b6101dc61067d565b6101dc610681565b6101dc6106a5565b61025e600480360361016081101561028f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135821691608082013581169160a08101359160c0820135169060e08101359060ff61010082013516906101208101359061014001356106c9565b61025e6004803603602081101561030a57600080fd5b5035610a94565b61025e610b9a565b6101dc610c9a565b6101dc610ca0565b610331610cc4565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61025e600480360361014081101561037157600080fd5b5080359060208101359073ffffffffffffffffffffffffffffffffffffffff6040820135811691606081013582169160808201359160a08101359091169060c08101359060ff60e08201351690610100810135906101200135610ce0565b61025e600480360360208110156103e557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610cff565b6101dc610e59565b6101dc610e5f565b61025e610e83565b61025e6004803603602081101561043057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f00565b6103316004803603602081101561046357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f7b565b610331610fa3565b61025e6004803603602081101561049e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fbf565b6101dc611149565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602090815260408083206101008504845290915290205460ff82161c6001908116145b92915050565b604080517f454950373132446f6d61696e28000000000000000000000000000000000000006020808301919091527f737472696e67206e616d652c0000000000000000000000000000000000000000602d8301527f737472696e672076657273696f6e2c000000000000000000000000000000000060398301527f75696e7432353620636861696e49642c0000000000000000000000000000000060488301527f6164647265737320766572696679696e67436f6e74726163740000000000000060588301527f29000000000000000000000000000000000000000000000000000000000000006071830152825160528184030181526072909201909252805191012081565b60005b8181101561067857600083838381811061062957fe5b90506020020135905061063c338261130d565b1561066f57604051339082907f8dd3c361eb2366ff27c2db0eb07b9261f1d052570742ab8c9a0c326f37aa576d90600090a35b50600101610613565b505050565b4690565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6106d161067d565b7f00000000000000000000000000000000000000000000000000000000000000001461075e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f434841494e5f49445f4348414e47454400000000000000000000000000000000604482015290519081900360640190fd5b4289116107cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4558504952595f50415353454400000000000000000000000000000000000000604482015290519081900360640190fd5b60006107de8b8b8b8b8b338c8c6113a7565b905060006107ee828686866115f1565b90506107fa818d61130d565b61086557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4e4f4e43455f414c52454144595f555345440000000000000000000000000000604482015290519081900360640190fd5b8073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16146109305773ffffffffffffffffffffffffffffffffffffffff8a811660009081526003602052604090205481169082161461093057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015290519081900360640190fd5b61095273ffffffffffffffffffffffffffffffffffffffff8816338c89611780565b61097473ffffffffffffffffffffffffffffffffffffffff8a168b8f8b611780565b60006109976127106109916001548c61181b90919063ffffffff16565b90611895565b905080156109c8576004546109c89073ffffffffffffffffffffffffffffffffffffffff8c8116918e911684611780565b3373ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff168e7f06dfeb25e76d44e08965b639a9d9307df8e1c3dbe2a6364194895e9c3992f033428e8e6001548f8f604051808781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001965050505050505060405180910390a45050505050505050505050505050565b610a9c6118d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610b2557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6127108110610b9557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f494e56414c49445f464545000000000000000000000000000000000000000000604482015290519081900360640190fd5b600155565b610ba26118d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610c2b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60015481565b7f5ee68cfe911d7a09ed88dfad92a17e2cdfa393d35f3f543c0cc3f150481df80781565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b610cf3338b8b8b8b8b8b8b8b8b8b6106c9565b50505050505050505050565b610d076118d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610d9057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610e1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f494e56414c49445f4645455f57414c4c45540000000000000000000000000000604482015290519081900360640190fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61271081565b7f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de81565b3360008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000008116909155905173ffffffffffffffffffffffffffffffffffffffff909116929183917fd7426110292f20fe59e73ccf52124e0f5440a756507c91c7b0a6c50e1eb1a23a9190a350565b3360008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616908117909155905190917f30468de898bda644e26bab66e5a2241a3aa6aaf527257f5ca54e0f65204ba14a91a350565b60036020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b610fc76118d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461105057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166110bc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611cc86026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b604080517f4c696768744f72646572280000000000000000000000000000000000000000006020808301919091527f75696e74323536206e6f6e63652c000000000000000000000000000000000000602b8301527f75696e74323536206578706972792c000000000000000000000000000000000060398301527f61646472657373207369676e657257616c6c65742c000000000000000000000060488301527f61646472657373207369676e6572546f6b656e2c000000000000000000000000605d8301527f75696e74323536207369676e6572416d6f756e742c000000000000000000000060718301527f75696e74323536207369676e65724665652c000000000000000000000000000060868301527f616464726573732073656e64657257616c6c65742c000000000000000000000060988301527f616464726573732073656e646572546f6b656e2c00000000000000000000000060ad8301527f75696e743235362073656e646572416d6f756e7400000000000000000000000060c18301527f290000000000000000000000000000000000000000000000000000000000000060d5830152825160b681840301815260d6909201909252805191012081565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602090815260408083206101008504808552925282205460ff841690600181831c811614156113605760009350505050610504565b73ffffffffffffffffffffffffffffffffffffffff861660009081526002602090815260408083209583529490529290922060019182901b92909217909155905092915050565b604080517f4c696768744f72646572280000000000000000000000000000000000000000006020808301919091527f75696e74323536206e6f6e63652c000000000000000000000000000000000000602b8301527f75696e74323536206578706972792c000000000000000000000000000000000060398301527f61646472657373207369676e657257616c6c65742c000000000000000000000060488301527f61646472657373207369676e6572546f6b656e2c000000000000000000000000605d8301527f75696e74323536207369676e6572416d6f756e742c000000000000000000000060718301527f75696e74323536207369676e65724665652c000000000000000000000000000060868301527f616464726573732073656e64657257616c6c65742c000000000000000000000060988301527f616464726573732073656e646572546f6b656e2c00000000000000000000000060ad8301527f75696e743235362073656e646572416d6f756e7400000000000000000000000060c18301527f290000000000000000000000000000000000000000000000000000000000000060d5830152825180830360b601815260d68301845280519082012060015460f684019190915261011683019b909b5261013682019990995273ffffffffffffffffffffffffffffffffffffffff9788166101568201529587166101768701526101968601949094526101b68501979097529084166101d68401529092166101f68201526102168082019490945281518082039094018452610236019052815191012090565b6000807f00000000000000000000000000000000000000000000000000000000000000008660405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156116c9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661177657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f494e56414c49445f534947000000000000000000000000000000000000000000604482015290519081900360640190fd5b9695505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526118159085906118db565b50505050565b60008261182a57506000610504565b8282028284828161183757fe5b041461188e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611d146021913960400191505060405180910390fd5b9392505050565b600061188e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119b3565b3390565b606061193d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a6f9092919063ffffffff16565b8051909150156106785780806020019051602081101561195c57600080fd5b5051610678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611d35602a913960400191505060405180910390fd5b60008183611a59576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a1e578181015183820152602001611a06565b50505050905090810190601f168015611a4b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611a6557fe5b0495945050505050565b6060611a7e8484600085611a86565b949350505050565b606082471015611ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611cee6026913960400191505060405180910390fd5b611aea85611c41565b611b5557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611bbf57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611b82565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c21576040519150601f19603f3d011682016040523d82523d6000602084013e611c26565b606091505b5091509150611c36828286611c47565b979650505050505050565b3b151590565b60608315611c5657508161188e565b825115611c665782518084602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152845160248401528451859391928392604401919085019080838360008315611a1e578181015183820152602001611a0656fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212201157e3611eadb6556e0dd231d691eec8b56626c74ab9381e8f07552d98cae3a864736f6c634300060c00330000000000000000000000007296333e1615721f4bd9df1a3070537484a50cf8000000000000000000000000000000000000000000000000000000000000001e

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101825760003560e01c80638da5cb5b116100d8578063b6549f751161008c578063f25f4b5611610066578063f25f4b5614610480578063f2fde38b14610488578063f973a209146104bb57610182565b8063b6549f7514610412578063b6a5d7de1461041a578063b91816111461044d57610182565b806390d49b9d116100bd57806390d49b9d146103cf5780639e93ad8e14610402578063acb8cc491461040a57610182565b80638da5cb5b146103295780638f8c57fe1461035a57610182565b8063416f281d1161013a578063715018a611610114578063715018a61461031157806375030f9c14610319578063796f077b1461032157610182565b8063416f281d146102705780636951cb7e1461027857806369fe0e2d146102f457610182565b80632e3408231161016b5780632e340823146101ee5780633408e470146102605780633644e5151461026857610182565b80631647795e1461018757806320606b70146101d4575b600080fd5b6101c06004803603604081101561019d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356104c3565b604080519115158252519081900360200190f35b6101dc61050a565b60408051918252519081900360200190f35b61025e6004803603602081101561020457600080fd5b81019060208101813564010000000081111561021f57600080fd5b82018360208201111561023157600080fd5b8035906020019184602083028401116401000000008311171561025357600080fd5b509092509050610610565b005b6101dc61067d565b6101dc610681565b6101dc6106a5565b61025e600480360361016081101561028f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135821691608082013581169160a08101359160c0820135169060e08101359060ff61010082013516906101208101359061014001356106c9565b61025e6004803603602081101561030a57600080fd5b5035610a94565b61025e610b9a565b6101dc610c9a565b6101dc610ca0565b610331610cc4565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61025e600480360361014081101561037157600080fd5b5080359060208101359073ffffffffffffffffffffffffffffffffffffffff6040820135811691606081013582169160808201359160a08101359091169060c08101359060ff60e08201351690610100810135906101200135610ce0565b61025e600480360360208110156103e557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610cff565b6101dc610e59565b6101dc610e5f565b61025e610e83565b61025e6004803603602081101561043057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f00565b6103316004803603602081101561046357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610f7b565b610331610fa3565b61025e6004803603602081101561049e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610fbf565b6101dc611149565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602090815260408083206101008504845290915290205460ff82161c6001908116145b92915050565b604080517f454950373132446f6d61696e28000000000000000000000000000000000000006020808301919091527f737472696e67206e616d652c0000000000000000000000000000000000000000602d8301527f737472696e672076657273696f6e2c000000000000000000000000000000000060398301527f75696e7432353620636861696e49642c0000000000000000000000000000000060488301527f6164647265737320766572696679696e67436f6e74726163740000000000000060588301527f29000000000000000000000000000000000000000000000000000000000000006071830152825160528184030181526072909201909252805191012081565b60005b8181101561067857600083838381811061062957fe5b90506020020135905061063c338261130d565b1561066f57604051339082907f8dd3c361eb2366ff27c2db0eb07b9261f1d052570742ab8c9a0c326f37aa576d90600090a35b50600101610613565b505050565b4690565b7f6da47b5edd385845b53995f22567bc41350bab3e49aef0d2ed5c95693f5e5ac781565b7f000000000000000000000000000000000000000000000000000000000000000181565b6106d161067d565b7f00000000000000000000000000000000000000000000000000000000000000011461075e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f434841494e5f49445f4348414e47454400000000000000000000000000000000604482015290519081900360640190fd5b4289116107cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4558504952595f50415353454400000000000000000000000000000000000000604482015290519081900360640190fd5b60006107de8b8b8b8b8b338c8c6113a7565b905060006107ee828686866115f1565b90506107fa818d61130d565b61086557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4e4f4e43455f414c52454144595f555345440000000000000000000000000000604482015290519081900360640190fd5b8073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16146109305773ffffffffffffffffffffffffffffffffffffffff8a811660009081526003602052604090205481169082161461093057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a45440000000000000000000000000000000000000000604482015290519081900360640190fd5b61095273ffffffffffffffffffffffffffffffffffffffff8816338c89611780565b61097473ffffffffffffffffffffffffffffffffffffffff8a168b8f8b611780565b60006109976127106109916001548c61181b90919063ffffffff16565b90611895565b905080156109c8576004546109c89073ffffffffffffffffffffffffffffffffffffffff8c8116918e911684611780565b3373ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff168e7f06dfeb25e76d44e08965b639a9d9307df8e1c3dbe2a6364194895e9c3992f033428e8e6001548f8f604051808781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001965050505050505060405180910390a45050505050505050505050505050565b610a9c6118d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610b2557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6127108110610b9557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f494e56414c49445f464545000000000000000000000000000000000000000000604482015290519081900360640190fd5b600155565b610ba26118d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610c2b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60015481565b7f5ee68cfe911d7a09ed88dfad92a17e2cdfa393d35f3f543c0cc3f150481df80781565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b610cf3338b8b8b8b8b8b8b8b8b8b6106c9565b50505050505050505050565b610d076118d7565b60005473ffffffffffffffffffffffffffffffffffffffff908116911614610d9057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610e1257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f494e56414c49445f4645455f57414c4c45540000000000000000000000000000604482015290519081900360640190fd5b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61271081565b7f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de81565b3360008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000008116909155905173ffffffffffffffffffffffffffffffffffffffff909116929183917fd7426110292f20fe59e73ccf52124e0f5440a756507c91c7b0a6c50e1eb1a23a9190a350565b3360008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616908117909155905190917f30468de898bda644e26bab66e5a2241a3aa6aaf527257f5ca54e0f65204ba14a91a350565b60036020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b610fc76118d7565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461105057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166110bc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611cc86026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b604080517f4c696768744f72646572280000000000000000000000000000000000000000006020808301919091527f75696e74323536206e6f6e63652c000000000000000000000000000000000000602b8301527f75696e74323536206578706972792c000000000000000000000000000000000060398301527f61646472657373207369676e657257616c6c65742c000000000000000000000060488301527f61646472657373207369676e6572546f6b656e2c000000000000000000000000605d8301527f75696e74323536207369676e6572416d6f756e742c000000000000000000000060718301527f75696e74323536207369676e65724665652c000000000000000000000000000060868301527f616464726573732073656e64657257616c6c65742c000000000000000000000060988301527f616464726573732073656e646572546f6b656e2c00000000000000000000000060ad8301527f75696e743235362073656e646572416d6f756e7400000000000000000000000060c18301527f290000000000000000000000000000000000000000000000000000000000000060d5830152825160b681840301815260d6909201909252805191012081565b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602090815260408083206101008504808552925282205460ff841690600181831c811614156113605760009350505050610504565b73ffffffffffffffffffffffffffffffffffffffff861660009081526002602090815260408083209583529490529290922060019182901b92909217909155905092915050565b604080517f4c696768744f72646572280000000000000000000000000000000000000000006020808301919091527f75696e74323536206e6f6e63652c000000000000000000000000000000000000602b8301527f75696e74323536206578706972792c000000000000000000000000000000000060398301527f61646472657373207369676e657257616c6c65742c000000000000000000000060488301527f61646472657373207369676e6572546f6b656e2c000000000000000000000000605d8301527f75696e74323536207369676e6572416d6f756e742c000000000000000000000060718301527f75696e74323536207369676e65724665652c000000000000000000000000000060868301527f616464726573732073656e64657257616c6c65742c000000000000000000000060988301527f616464726573732073656e646572546f6b656e2c00000000000000000000000060ad8301527f75696e743235362073656e646572416d6f756e7400000000000000000000000060c18301527f290000000000000000000000000000000000000000000000000000000000000060d5830152825180830360b601815260d68301845280519082012060015460f684019190915261011683019b909b5261013682019990995273ffffffffffffffffffffffffffffffffffffffff9788166101568201529587166101768701526101968601949094526101b68501979097529084166101d68401529092166101f68201526102168082019490945281518082039094018452610236019052815191012090565b6000807f6da47b5edd385845b53995f22567bc41350bab3e49aef0d2ed5c95693f5e5ac78660405160200180807f190100000000000000000000000000000000000000000000000000000000000081525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050600060018287878760405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa1580156116c9573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661177657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f494e56414c49445f534947000000000000000000000000000000000000000000604482015290519081900360640190fd5b9695505050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526118159085906118db565b50505050565b60008261182a57506000610504565b8282028284828161183757fe5b041461188e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611d146021913960400191505060405180910390fd5b9392505050565b600061188e83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119b3565b3390565b606061193d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611a6f9092919063ffffffff16565b8051909150156106785780806020019051602081101561195c57600080fd5b5051610678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611d35602a913960400191505060405180910390fd5b60008183611a59576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a1e578181015183820152602001611a06565b50505050905090810190601f168015611a4b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611a6557fe5b0495945050505050565b6060611a7e8484600085611a86565b949350505050565b606082471015611ae1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611cee6026913960400191505060405180910390fd5b611aea85611c41565b611b5557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611bbf57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611b82565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611c21576040519150601f19603f3d011682016040523d82523d6000602084013e611c26565b606091505b5091509150611c36828286611c47565b979650505050505050565b3b151590565b60608315611c5657508161188e565b825115611c665782518084602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152845160248401528451859391928392604401919085019080838360008315611a1e578181015183820152602001611a0656fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212201157e3611eadb6556e0dd231d691eec8b56626c74ab9381e8f07552d98cae3a864736f6c634300060c0033

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

0000000000000000000000007296333e1615721f4bd9df1a3070537484a50cf8000000000000000000000000000000000000000000000000000000000000001e

-----Decoded View---------------
Arg [0] : _feeWallet (address): 0x7296333e1615721f4Bd9Df1a3070537484A50CF8
Arg [1] : _fee (uint256): 30

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007296333e1615721f4bd9df1a3070537484a50cf8
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001e


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

AirSwap is a peer-to-peer token trading network.

Validator Index Block Amount
View All Withdrawals

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

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