ETH Price: $1,789.17 (+9.86%)

Contract

0x6131B5fae19EA4f9D964eAc0408E4408b66337b5

Overview

ETH Balance

0.003921013461994887 ETH

ETH Value

$7.02 (@ $1,789.17/ETH)

Token Holdings

Transaction Hash
Method
Block
From
To
Swap Simple Mode3103276182025-02-27 4:46:5055 days ago1740631610IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000007790.01
Swap Simple Mode3103275542025-02-27 4:46:3455 days ago1740631594IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000012730.01
Swap Simple Mode3103270252025-02-27 4:44:2155 days ago1740631461IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000009070.01
Swap Simple Mode3103262312025-02-27 4:41:0155 days ago1740631261IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000012690.01
Swap3103261972025-02-27 4:40:5355 days ago1740631253IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000012560.01
Swap Simple Mode3103258092025-02-27 4:39:1555 days ago1740631155IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000011330.01
Swap3103252342025-02-27 4:36:5155 days ago1740631011IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000009110.011899
Swap3103251692025-02-27 4:36:3555 days ago1740630995IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000018010.012353
Swap3103247682025-02-27 4:34:5455 days ago1740630894IN
KyberSwap: Meta Aggregation Router v2
10 ETH0.000023410.01
Swap3103246832025-02-27 4:34:3255 days ago1740630872IN
KyberSwap: Meta Aggregation Router v2
10 ETH0.00001520.01
Swap3103244192025-02-27 4:33:2655 days ago1740630806IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000010380.01
Swap3103241532025-02-27 4:32:1955 days ago1740630739IN
KyberSwap: Meta Aggregation Router v2
0.05 ETH0.000010230.01
Swap3103228512025-02-27 4:26:4855 days ago1740630408IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000008660.01
Swap Simple Mode3103226632025-02-27 4:26:0155 days ago1740630361IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000009080.01
Swap3103223242025-02-27 4:24:3455 days ago1740630274IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000020250.01
Swap3103221602025-02-27 4:23:5355 days ago1740630233IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.0000110.01
Swap3103218512025-02-27 4:22:3555 days ago1740630155IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000013890.01
Swap3103215032025-02-27 4:21:0755 days ago1740630067IN
KyberSwap: Meta Aggregation Router v2
0.025 ETH0.000009610.01
Swap3103211922025-02-27 4:19:4955 days ago1740629989IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000008530.01
Swap3103204662025-02-27 4:16:4755 days ago1740629807IN
KyberSwap: Meta Aggregation Router v2
0.2 ETH0.000007180.01
Swap3103201822025-02-27 4:15:3655 days ago1740629736IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000015110.01
Swap3103200092025-02-27 4:14:5255 days ago1740629692IN
KyberSwap: Meta Aggregation Router v2
0.47 ETH0.000008550.01
Swap3103198522025-02-27 4:14:1355 days ago1740629653IN
KyberSwap: Meta Aggregation Router v2
0.09 ETH0.000007210.01
Swap3103196102025-02-27 4:13:1255 days ago1740629592IN
KyberSwap: Meta Aggregation Router v2
0.00125 ETH0.000010670.01
Swap3103185842025-02-27 4:08:5455 days ago1740629334IN
KyberSwap: Meta Aggregation Router v2
0 ETH0.000014140.01
VIEW ADVANCED FILTER

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
3293435032025-04-23 10:16:043 mins ago1745403364
KyberSwap: Meta Aggregation Router v2
0.00299976 ETH
3293435032025-04-23 10:16:043 mins ago1745403364
KyberSwap: Meta Aggregation Router v2
0.00299976 ETH
3293428462025-04-23 10:13:186 mins ago1745403198
KyberSwap: Meta Aggregation Router v2
0.00778183 ETH
3293428462025-04-23 10:13:186 mins ago1745403198
KyberSwap: Meta Aggregation Router v2
0.00778183 ETH
3293426192025-04-23 10:12:227 mins ago1745403142
KyberSwap: Meta Aggregation Router v2
0.0056571 ETH
3293426192025-04-23 10:12:227 mins ago1745403142
KyberSwap: Meta Aggregation Router v2
0.0056571 ETH
3293422342025-04-23 10:10:458 mins ago1745403045
KyberSwap: Meta Aggregation Router v2
0.00054685 ETH
3293422342025-04-23 10:10:458 mins ago1745403045
KyberSwap: Meta Aggregation Router v2
0.00054685 ETH
3293415292025-04-23 10:07:5011 mins ago1745402870
KyberSwap: Meta Aggregation Router v2
0.3 ETH
3293409182025-04-23 10:05:1714 mins ago1745402717
KyberSwap: Meta Aggregation Router v2
0.01268 ETH
3293409182025-04-23 10:05:1714 mins ago1745402717
KyberSwap: Meta Aggregation Router v2
0.01268 ETH
3293407592025-04-23 10:04:3715 mins ago1745402677
KyberSwap: Meta Aggregation Router v2
0.124 ETH
3293407592025-04-23 10:04:3715 mins ago1745402677
KyberSwap: Meta Aggregation Router v2
0.124 ETH
3293403512025-04-23 10:02:5816 mins ago1745402578
KyberSwap: Meta Aggregation Router v2
0.00007233 ETH
3293403512025-04-23 10:02:5816 mins ago1745402578
KyberSwap: Meta Aggregation Router v2
0.00007233 ETH
3293402242025-04-23 10:02:2617 mins ago1745402546
KyberSwap: Meta Aggregation Router v2
0.0011 ETH
3293395952025-04-23 9:59:4819 mins ago1745402388
KyberSwap: Meta Aggregation Router v2
0.00319993 ETH
3293395952025-04-23 9:59:4819 mins ago1745402388
KyberSwap: Meta Aggregation Router v2
0.00319993 ETH
3293385382025-04-23 9:55:2724 mins ago1745402127
KyberSwap: Meta Aggregation Router v2
0.0068 ETH
3293385382025-04-23 9:55:2724 mins ago1745402127
KyberSwap: Meta Aggregation Router v2
0.0068 ETH
3293375052025-04-23 9:51:0728 mins ago1745401867
KyberSwap: Meta Aggregation Router v2
0.0001 ETH
3293375052025-04-23 9:51:0728 mins ago1745401867
KyberSwap: Meta Aggregation Router v2
0.0001 ETH
3293372632025-04-23 9:50:0929 mins ago1745401809
KyberSwap: Meta Aggregation Router v2
0.005 ETH
3293372632025-04-23 9:50:0929 mins ago1745401809
KyberSwap: Meta Aggregation Router v2
0.005 ETH
3293359642025-04-23 9:44:4334 mins ago1745401483
KyberSwap: Meta Aggregation Router v2
0.115 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaAggregationRouterV2

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 13 : MetaAggregationRouterV2.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';

import './dependency/Permitable.sol';
import './interfaces/IAggregationExecutor.sol';
import './interfaces/IAggregationExecutor1Inch.sol';
import './libraries/TransferHelper.sol';
import './libraries/RevertReasonParser.sol';

contract MetaAggregationRouterV2 is Permitable, Ownable {
  using SafeERC20 for IERC20;

  address public immutable WETH;
  address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);

  uint256 private constant _PARTIAL_FILL = 0x01;
  uint256 private constant _REQUIRES_EXTRA_ETH = 0x02;
  uint256 private constant _SHOULD_CLAIM = 0x04;
  uint256 private constant _BURN_FROM_MSG_SENDER = 0x08;
  uint256 private constant _BURN_FROM_TX_ORIGIN = 0x10;
  uint256 private constant _SIMPLE_SWAP = 0x20;
  uint256 private constant _FEE_ON_DST = 0x40;
  uint256 private constant _FEE_IN_BPS = 0x80;
  uint256 private constant _APPROVE_FUND = 0x100;

  uint256 private constant BPS = 10000;

  mapping(address => bool) public isWhitelist;

  struct SwapDescriptionV2 {
    IERC20 srcToken;
    IERC20 dstToken;
    address[] srcReceivers; // transfer src token to these addresses, default
    uint256[] srcAmounts;
    address[] feeReceivers;
    uint256[] feeAmounts;
    address dstReceiver;
    uint256 amount;
    uint256 minReturnAmount;
    uint256 flags;
    bytes permit;
  }

  /// @dev  use for swapGeneric and swap to avoid stack too deep
  struct SwapExecutionParams {
    address callTarget; // call this address
    address approveTarget; // approve this address if _APPROVE_FUND set
    bytes targetData;
    SwapDescriptionV2 desc;
    bytes clientData;
  }

  struct SimpleSwapData {
    address[] firstPools;
    uint256[] firstSwapAmounts;
    bytes[] swapDatas;
    uint256 deadline;
    bytes destTokenFeeData;
  }

  event Swapped(
    address sender,
    IERC20 srcToken,
    IERC20 dstToken,
    address dstReceiver,
    uint256 spentAmount,
    uint256 returnAmount
  );

  event ClientData(bytes clientData);

  event Exchange(address pair, uint256 amountOut, address output);

  event Fee(address token, uint256 totalAmount, uint256 totalFee, address[] recipients, uint256[] amounts, bool isBps);

  constructor(address _WETH) {
    WETH = _WETH;
  }

  receive() external payable {}

  function rescueFunds(address token, uint256 amount) external onlyOwner {
    if (_isETH(IERC20(token))) {
      TransferHelper.safeTransferETH(msg.sender, amount);
    } else {
      TransferHelper.safeTransfer(token, msg.sender, amount);
    }
  }

  function updateWhitelist(address[] memory addr, bool[] memory value) external onlyOwner {
    require(addr.length == value.length);
    for (uint256 i; i < addr.length; ++i) {
      isWhitelist[addr[i]] = value[i];
    }
  }

  function swapGeneric(SwapExecutionParams calldata execution)
    external
    payable
    returns (uint256 returnAmount, uint256 gasUsed)
  {
    uint256 gasBefore = gasleft();
    require(isWhitelist[execution.callTarget], 'Address not whitelisted');
    if (execution.approveTarget != execution.callTarget && execution.approveTarget != address(0)) {
      require(isWhitelist[execution.approveTarget], 'Address not whitelisted');
    }
    SwapDescriptionV2 memory desc = execution.desc;
    require(desc.minReturnAmount > 0, 'Invalid min return amount');

    // if extra eth is needed, in case srcToken is ETH
    _collectExtraETHIfNeeded(desc);
    _permit(desc.srcToken, desc.amount, desc.permit);

    bool feeInBps = _flagsChecked(desc.flags, _FEE_IN_BPS);
    uint256 spentAmount;
    address dstReceiver = desc.dstReceiver == address(0) ? msg.sender : desc.dstReceiver;
    if (!_flagsChecked(desc.flags, _FEE_ON_DST)) {
      // fee on src token
      // take fee on srcToken

      // take fee and deduct total amount
      desc.amount = _takeFee(desc.srcToken, msg.sender, desc.feeReceivers, desc.feeAmounts, desc.amount, feeInBps);

      bool collected;
      if (!_isETH(desc.srcToken) && _flagsChecked(desc.flags, _SHOULD_CLAIM)) {
        (collected, desc.amount) = _collectTokenIfNeeded(desc, msg.sender, address(this));
      }

      _transferFromOrApproveTarget(msg.sender, execution.approveTarget, desc, collected);
      // execute swap
      (spentAmount, returnAmount) = _executeSwap(
        execution.callTarget,
        execution.targetData,
        desc,
        _isETH(desc.srcToken) ? desc.amount : 0,
        dstReceiver
      );
    } else {
      bool collected;
      if (!_isETH(desc.srcToken) && _flagsChecked(desc.flags, _SHOULD_CLAIM)) {
        (collected, desc.amount) = _collectTokenIfNeeded(desc, msg.sender, address(this));
      }

      uint256 initialDstReceiverBalance = _getBalance(desc.dstToken, dstReceiver);
      _transferFromOrApproveTarget(msg.sender, execution.approveTarget, desc, collected);
      // fee on dst token
      // router get dst token first
      (spentAmount, returnAmount) = _executeSwap(
        execution.callTarget,
        execution.targetData,
        desc,
        _isETH(desc.srcToken) ? msg.value : 0,
        address(this)
      );
      {
        // then take fee on dst token
        uint256 leftAmount = _takeFee(
          desc.dstToken,
          address(this),
          desc.feeReceivers,
          desc.feeAmounts,
          returnAmount,
          feeInBps
        );
        _doTransferERC20(desc.dstToken, address(this), dstReceiver, leftAmount);
      }

      returnAmount = _getBalance(desc.dstToken, dstReceiver) - initialDstReceiverBalance;
    }
    // check return amount
    _checkReturnAmount(spentAmount, returnAmount, desc);
    //revoke allowance
    if (!_isETH(desc.srcToken) && execution.approveTarget != address(0)) {
      desc.srcToken.safeApprove(execution.approveTarget, 0);
    }

    emit Swapped(msg.sender, desc.srcToken, desc.dstToken, dstReceiver, spentAmount, returnAmount);
    emit Exchange(execution.callTarget, returnAmount, _isETH(desc.dstToken) ? WETH : address(desc.dstToken));
    emit ClientData(execution.clientData);
    unchecked {
      gasUsed = gasBefore - gasleft();
    }
  }

  function swap(SwapExecutionParams calldata execution)
    external
    payable
    returns (uint256 returnAmount, uint256 gasUsed)
  {
    uint256 gasBefore = gasleft();
    SwapDescriptionV2 memory desc = execution.desc;

    require(desc.minReturnAmount > 0, 'Min return should not be 0');
    require(execution.targetData.length > 0, 'executorData should be not zero');

    // simple mode swap
    if (_flagsChecked(desc.flags, _SIMPLE_SWAP)) {
      return
        swapSimpleMode(IAggregationExecutor(execution.callTarget), desc, execution.targetData, execution.clientData);
    }

    _collectExtraETHIfNeeded(desc);
    _permit(desc.srcToken, desc.amount, desc.permit);

    bool feeInBps = _flagsChecked(desc.flags, _FEE_IN_BPS);
    uint256 spentAmount;
    address dstReceiver = desc.dstReceiver == address(0) ? msg.sender : desc.dstReceiver;
    if (!_flagsChecked(desc.flags, _FEE_ON_DST)) {
      // fee on src token
      {
        // take fee on srcToken
        // deduct total swap amount
        desc.amount = _takeFee(
          desc.srcToken,
          msg.sender,
          desc.feeReceivers,
          desc.feeAmounts,
          _isETH(desc.srcToken) ? msg.value : desc.amount,
          feeInBps
        );

        // transfer fund from msg.sender to our executor
        _transferFromOrApproveTarget(msg.sender, address(0), desc, false);

        // execute swap
        (spentAmount, returnAmount) = _executeSwap(
          execution.callTarget,
          abi.encodeWithSelector(IAggregationExecutor.callBytes.selector, execution.targetData),
          desc,
          _isETH(desc.srcToken) ? desc.amount : 0,
          dstReceiver
        );
      }
    } else {
      // fee on dst token
      // router get dst token first
      uint256 initialDstReceiverBalance = _getBalance(desc.dstToken, dstReceiver);

      // transfer fund from msg.sender to our executor
      _transferFromOrApproveTarget(msg.sender, address(0), desc, false);

      // swap to receive dstToken on this router
      (spentAmount, returnAmount) = _executeSwap(
        execution.callTarget,
        abi.encodeWithSelector(IAggregationExecutor.callBytes.selector, execution.targetData),
        desc,
        _isETH(desc.srcToken) ? msg.value : 0,
        address(this)
      );

      {
        // then take fee on dst token
        uint256 leftAmount = _takeFee(
          desc.dstToken,
          address(this),
          desc.feeReceivers,
          desc.feeAmounts,
          returnAmount,
          feeInBps
        );
        _doTransferERC20(desc.dstToken, address(this), dstReceiver, leftAmount);
      }

      returnAmount = _getBalance(desc.dstToken, dstReceiver) - initialDstReceiverBalance;
    }
    _checkReturnAmount(spentAmount, returnAmount, desc);

    emit Swapped(msg.sender, desc.srcToken, desc.dstToken, dstReceiver, spentAmount, returnAmount);
    emit Exchange(execution.callTarget, returnAmount, _isETH(desc.dstToken) ? WETH : address(desc.dstToken));
    emit ClientData(execution.clientData);

    unchecked {
      gasUsed = gasBefore - gasleft();
    }
  }

  function swapSimpleMode(
    IAggregationExecutor caller,
    SwapDescriptionV2 memory desc,
    bytes calldata executorData,
    bytes calldata clientData
  ) public returns (uint256 returnAmount, uint256 gasUsed) {
    uint256 gasBefore = gasleft();

    require(!_isETH(desc.srcToken), 'src is eth, should use normal swap');

    _permit(desc.srcToken, desc.amount, desc.permit);

    address dstReceiver = (desc.dstReceiver == address(0)) ? msg.sender : desc.dstReceiver;
    {
      bool isBps = _flagsChecked(desc.flags, _FEE_IN_BPS);
      if (!_flagsChecked(desc.flags, _FEE_ON_DST)) {
        // take fee and deduct total swap amount
        desc.amount = _takeFee(desc.srcToken, msg.sender, desc.feeReceivers, desc.feeAmounts, desc.amount, isBps);
      } else {
        dstReceiver = address(this);
      }
    }

    uint256 initialDstBalance = _getBalance(desc.dstToken, dstReceiver);
    uint256 initialSrcBalance = _getBalance(desc.srcToken, msg.sender);
    _swapMultiSequencesWithSimpleMode(
      caller,
      address(desc.srcToken),
      desc.amount,
      address(desc.dstToken),
      dstReceiver,
      executorData
    );

    // amount returned to this router
    returnAmount = _getBalance(desc.dstToken, dstReceiver) - initialDstBalance;
    {
      // take fee
      if (_flagsChecked(desc.flags, _FEE_ON_DST)) {
        {
          bool isBps = _flagsChecked(desc.flags, _FEE_IN_BPS);
          returnAmount = _takeFee(
            desc.dstToken,
            address(this),
            desc.feeReceivers,
            desc.feeAmounts,
            returnAmount,
            isBps
          );
        }

        IERC20 dstToken = desc.dstToken;
        dstReceiver = desc.dstReceiver == address(0) ? msg.sender : desc.dstReceiver;
        // dst receiver initial balance
        initialDstBalance = _getBalance(dstToken, dstReceiver);

        // transfer remainning token to dst receiver
        _doTransferERC20(dstToken, address(this), dstReceiver, returnAmount);

        // amount returned to dst receiver
        returnAmount = _getBalance(dstToken, dstReceiver) - initialDstBalance;
      }
    }
    uint256 spentAmount = initialSrcBalance - _getBalance(desc.srcToken, msg.sender);
    _checkReturnAmount(spentAmount, returnAmount, desc);
    emit Swapped(msg.sender, desc.srcToken, desc.dstToken, dstReceiver, spentAmount, returnAmount);
    emit Exchange(address(caller), returnAmount, _isETH(desc.dstToken) ? WETH : address(desc.dstToken));
    emit ClientData(clientData);

    unchecked {
      gasUsed = gasBefore - gasleft();
    }
  }

  function _doTransferERC20(
    IERC20 token,
    address from,
    address to,
    uint256 amount
  ) internal {
    require(from != to, 'sender != recipient');
    if (amount > 0) {
      if (_isETH(token)) {
        if (from == address(this)) TransferHelper.safeTransferETH(to, amount);
      } else {
        if (from == address(this)) {
          TransferHelper.safeTransfer(address(token), to, amount);
        } else {
          TransferHelper.safeTransferFrom(address(token), from, to, amount);
        }
      }
    }
  }

  // Only use this mode if the first pool of each sequence can receive tokenIn directly into the pool
  function _swapMultiSequencesWithSimpleMode(
    IAggregationExecutor caller,
    address tokenIn,
    uint256 totalSwapAmount,
    address tokenOut,
    address dstReceiver,
    bytes calldata data
  ) internal {
    SimpleSwapData memory swapData = abi.decode(data, (SimpleSwapData));
    require(swapData.deadline >= block.timestamp, 'ROUTER: Expired');
    require(
      swapData.firstPools.length == swapData.firstSwapAmounts.length &&
        swapData.firstPools.length == swapData.swapDatas.length,
      'invalid swap data length'
    );
    uint256 numberSeq = swapData.firstPools.length;
    for (uint256 i = 0; i < numberSeq; i++) {
      // collect amount to the first pool
      {
        uint256 balanceBefore = _getBalance(IERC20(tokenIn), msg.sender);
        _doTransferERC20(IERC20(tokenIn), msg.sender, swapData.firstPools[i], swapData.firstSwapAmounts[i]);
        require(swapData.firstSwapAmounts[i] <= totalSwapAmount, 'invalid swap amount');
        uint256 spentAmount = balanceBefore - _getBalance(IERC20(tokenIn), msg.sender);
        totalSwapAmount -= spentAmount;
      }
      {
        // solhint-disable-next-line avoid-low-level-calls
        // may take some native tokens for commission fee
        (bool success, bytes memory result) = address(caller).call(
          abi.encodeWithSelector(caller.swapSingleSequence.selector, swapData.swapDatas[i])
        );
        if (!success) {
          revert(RevertReasonParser.parse(result, 'swapSingleSequence failed: '));
        }
      }
    }
    {
      // solhint-disable-next-line avoid-low-level-calls
      // may take some native tokens for commission fee
      (bool success, bytes memory result) = address(caller).call(
        abi.encodeWithSelector(
          caller.finalTransactionProcessing.selector,
          tokenIn,
          tokenOut,
          dstReceiver,
          swapData.destTokenFeeData
        )
      );
      if (!success) {
        revert(RevertReasonParser.parse(result, 'finalTransactionProcessing failed: '));
      }
    }
  }

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

  function _isETH(IERC20 token) internal pure returns (bool) {
    return (address(token) == ETH_ADDRESS);
  }

  /// @dev this function calls to external contract to execute swap and also validate the returned amounts
  function _executeSwap(
    address callTarget,
    bytes memory targetData,
    SwapDescriptionV2 memory desc,
    uint256 value,
    address dstReceiver
  ) internal returns (uint256 spentAmount, uint256 returnAmount) {
    uint256 initialDstBalance = _getBalance(desc.dstToken, dstReceiver);
    uint256 routerInitialSrcBalance = _getBalance(desc.srcToken, address(this));
    uint256 routerInitialDstBalance = _getBalance(desc.dstToken, address(this));
    {
      // call to external contract
      (bool success, ) = callTarget.call{value: value}(targetData);
      require(success, 'Call failed');
    }

    // if the `callTarget` returns amount to `msg.sender`, meaning this contract
    if (dstReceiver != address(this)) {
      uint256 stuckAmount = _getBalance(desc.dstToken, address(this)) - routerInitialDstBalance;
      _doTransferERC20(desc.dstToken, address(this), dstReceiver, stuckAmount);
    }

    // safe check here
    returnAmount = _getBalance(desc.dstToken, dstReceiver) - initialDstBalance;
    spentAmount = desc.amount;

    //should refund tokens router collected when partial fill
    if (
      _flagsChecked(desc.flags, _PARTIAL_FILL) && (_isETH(desc.srcToken) || _flagsChecked(desc.flags, _SHOULD_CLAIM))
    ) {
      uint256 currBalance = _getBalance(desc.srcToken, address(this));
      if (currBalance != routerInitialSrcBalance) {
        spentAmount = routerInitialSrcBalance - currBalance;
        _doTransferERC20(desc.srcToken, address(this), msg.sender, desc.amount - spentAmount);
      }
    }
  }

  function _collectExtraETHIfNeeded(SwapDescriptionV2 memory desc) internal {
    bool srcETH = _isETH(desc.srcToken);
    if (_flagsChecked(desc.flags, _REQUIRES_EXTRA_ETH)) {
      require(msg.value > (srcETH ? desc.amount : 0), 'Invalid msg.value');
    } else {
      require(msg.value == (srcETH ? desc.amount : 0), 'Invalid msg.value');
    }
  }

  function _collectTokenIfNeeded(
    SwapDescriptionV2 memory desc,
    address from,
    address to
  ) internal returns (bool collected, uint256 amount) {
    require(!_isETH(desc.srcToken), 'Claim token is ETH');
    uint256 initialRouterSrcBalance = _getBalance(desc.srcToken, address(this));
    _doTransferERC20(desc.srcToken, from, to, desc.amount);
    collected = true;
    amount = _getBalance(desc.srcToken, address(this)) - initialRouterSrcBalance;
  }

  /// @dev transfer fund to `callTarget` or approve `approveTarget`
  function _transferFromOrApproveTarget(
    address from,
    address approveTarget,
    SwapDescriptionV2 memory desc,
    bool collected
  ) internal {
    // if token is collected
    require(desc.srcReceivers.length == desc.srcAmounts.length, 'invalid srcReceivers length');
    if (collected) {
      if (_flagsChecked(desc.flags, _APPROVE_FUND) && approveTarget != address(0)) {
        // approve to approveTarget since some systems use an allowance proxy contract
        desc.srcToken.safeIncreaseAllowance(approveTarget, desc.amount);
        return;
      }
    }
    uint256 total;
    for (uint256 i; i < desc.srcReceivers.length; ++i) {
      total += desc.srcAmounts[i];
      _doTransferERC20(desc.srcToken, collected ? address(this) : from, desc.srcReceivers[i], desc.srcAmounts[i]);
    }
    require(total <= desc.amount, 'Exceeded desc.amount');
  }

  /// @dev token transferred from `from` to `feeData.recipients`
  function _takeFee(
    IERC20 token,
    address from,
    address[] memory recipients,
    uint256[] memory amounts,
    uint256 totalAmount,
    bool inBps
  ) internal returns (uint256 leftAmount) {
    leftAmount = totalAmount;
    uint256 recipientsLen = recipients.length;
    if (recipientsLen > 0) {
      bool isETH = _isETH(token);
      uint256 balanceBefore = _getBalance(token, isETH ? address(this) : from);
      require(amounts.length == recipientsLen, 'Invalid length');
      for (uint256 i; i < recipientsLen; ++i) {
        uint256 amount = inBps ? (totalAmount * amounts[i]) / BPS : amounts[i];
        _doTransferERC20(token, isETH ? address(this) : from, recipients[i], amount);
      }
      uint256 totalFee = balanceBefore - _getBalance(token, isETH ? address(this) : from);
      leftAmount = totalAmount - totalFee;
      emit Fee(address(token), totalAmount, totalFee, recipients, amounts, inBps);
    }
  }

  function _checkReturnAmount(
    uint256 spentAmount,
    uint256 returnAmount,
    SwapDescriptionV2 memory desc
  ) internal pure {
    if (_flagsChecked(desc.flags, _PARTIAL_FILL)) {
      require(returnAmount * desc.amount >= desc.minReturnAmount * spentAmount, 'Return amount is not enough');
    } else {
      require(returnAmount >= desc.minReturnAmount, 'Return amount is not enough');
    }
  }

  function _flagsChecked(uint256 number, uint256 flag) internal pure returns (bool) {
    return number & flag != 0;
  }
}

File 2 of 13 : Permitable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol';

import '../libraries/RevertReasonParser.sol';

/*
“Copyright (c) 2019-2021 1inch 
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: 
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software. 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE”.
*/

contract Permitable {
  event Error(string reason);

  function _permit(
    IERC20 token,
    uint256 amount,
    bytes memory permit
  ) internal {
    if (permit.length == 32 * 7) {
      // solhint-disable-next-line avoid-low-level-calls
      (bool success, bytes memory result) = address(token).call(
        abi.encodePacked(IERC20Permit.permit.selector, permit)
      );
      if (!success) {
        string memory reason = RevertReasonParser.parse(result, 'Permit call failed: ');
        if (token.allowance(msg.sender, address(this)) < amount) {
          revert(reason);
        } else {
          emit Error(reason);
        }
      }
    }
  }
}

File 3 of 13 : IAggregationExecutor.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.12;

interface IAggregationExecutor {
  function callBytes(bytes calldata data) external payable; // 0xd9c45357

  // callbytes per swap sequence
  function swapSingleSequence(bytes calldata data) external;

  function finalTransactionProcessing(
    address tokenIn,
    address tokenOut,
    address to,
    bytes calldata destTokenFeeData
  ) external;
}

File 4 of 13 : IAggregationExecutor1Inch.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import '@openzeppelin/contracts/interfaces/IERC20.sol';

interface IAggregationExecutor1Inch {
  function callBytes(address msgSender, bytes calldata data) external payable; // 0x2636f7f8
}

interface IAggregationRouter1InchV4 {
  function swap(
    IAggregationExecutor1Inch caller,
    SwapDescription1Inch calldata desc,
    bytes calldata data
  ) external payable returns (uint256 returnAmount, uint256 gasLeft);
}

struct SwapDescription1Inch {
  IERC20 srcToken;
  IERC20 dstToken;
  address payable srcReceiver;
  address payable dstReceiver;
  uint256 amount;
  uint256 minReturnAmount;
  uint256 flags;
  bytes permit;
}

struct SwapDescriptionExecutor1Inch {
  IERC20 srcToken;
  IERC20 dstToken;
  address payable srcReceiver1Inch;
  address payable dstReceiver;
  address[] srcReceivers;
  uint256[] srcAmounts;
  uint256 amount;
  uint256 minReturnAmount;
  uint256 flags;
  bytes permit;
}

File 5 of 13 : RevertReasonParser.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.7.6;

/*
“Copyright (c) 2019-2021 1inch 
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: 
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software. 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE”.
*/

library RevertReasonParser {
  function parse(bytes memory data, string memory prefix) internal pure returns (string memory) {
    // https://solidity.readthedocs.io/en/latest/control-structures.html#revert
    // We assume that revert reason is abi-encoded as Error(string)

    // 68 = 4-byte selector 0x08c379a0 + 32 bytes offset + 32 bytes length
    if (data.length >= 68 && data[0] == '\x08' && data[1] == '\xc3' && data[2] == '\x79' && data[3] == '\xa0') {
      string memory reason;
      // solhint-disable no-inline-assembly
      assembly {
        // 68 = 32 bytes data length + 4-byte selector + 32 bytes offset
        reason := add(data, 68)
      }
      /*
                revert reason is padded up to 32 bytes with ABI encoder: Error(string)
                also sometimes there is extra 32 bytes of zeros padded in the end:
                https://github.com/ethereum/solidity/issues/10170
                because of that we can't check for equality and instead check
                that string length + extra 68 bytes is less than overall data length
            */
      require(data.length >= 68 + bytes(reason).length, 'Invalid revert reason');
      return string(abi.encodePacked(prefix, 'Error(', reason, ')'));
    }
    // 36 = 4-byte selector 0x4e487b71 + 32 bytes integer
    else if (data.length == 36 && data[0] == '\x4e' && data[1] == '\x48' && data[2] == '\x7b' && data[3] == '\x71') {
      uint256 code;
      // solhint-disable no-inline-assembly
      assembly {
        // 36 = 32 bytes data length + 4-byte selector
        code := mload(add(data, 36))
      }
      return string(abi.encodePacked(prefix, 'Panic(', _toHex(code), ')'));
    }

    return string(abi.encodePacked(prefix, 'Unknown(', _toHex(data), ')'));
  }

  function _toHex(uint256 value) private pure returns (string memory) {
    return _toHex(abi.encodePacked(value));
  }

  function _toHex(bytes memory data) private pure returns (string memory) {
    bytes16 alphabet = 0x30313233343536373839616263646566;
    bytes memory str = new bytes(2 + data.length * 2);
    str[0] = '0';
    str[1] = 'x';
    for (uint256 i = 0; i < data.length; i++) {
      str[2 * i + 2] = alphabet[uint8(data[i] >> 4)];
      str[2 * i + 3] = alphabet[uint8(data[i] & 0x0f)];
    }
    return string(str);
  }
}

File 6 of 13 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.5.16;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
  function safeApprove(
    address token,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('approve(address,uint256)')));
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
  }

  function safeTransfer(
    address token,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('transfer(address,uint256)')));
    if (value == 0) return;
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
  }

  function safeTransferFrom(
    address token,
    address from,
    address to,
    uint256 value
  ) internal {
    // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
    if (value == 0) return;
    (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
    require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
  }

  function safeTransferETH(address to, uint256 value) internal {
    if (value == 0) return;
    (bool success, ) = to.call{value: value}(new bytes(0));
    require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
  }
}

File 7 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 8 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 9 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 10 of 13 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 11 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 12 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "remappings": [
    "@ensdomains/=node_modules/@ensdomains/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "@solidity-parser/=node_modules/truffle-flattener/node_modules/@solidity-parser/",
    "contracts/=contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "forge-std/=lib/forge-std/src/",
    "hardhat-deploy/=node_modules/hardhat-deploy/",
    "hardhat/=node_modules/hardhat/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_WETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"clientData","type":"bytes"}],"name":"ClientData","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"Error","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"},{"indexed":false,"internalType":"address","name":"output","type":"address"}],"name":"Exchange","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalFee","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"recipients","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"bool","name":"isBps","type":"bool"}],"name":"Fee","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":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"srcToken","type":"address"},{"indexed":false,"internalType":"contract IERC20","name":"dstToken","type":"address"},{"indexed":false,"internalType":"address","name":"dstReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"}],"name":"Swapped","type":"event"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelist","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":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"callTarget","type":"address"},{"internalType":"address","name":"approveTarget","type":"address"},{"internalType":"bytes","name":"targetData","type":"bytes"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address[]","name":"srcReceivers","type":"address[]"},{"internalType":"uint256[]","name":"srcAmounts","type":"uint256[]"},{"internalType":"address[]","name":"feeReceivers","type":"address[]"},{"internalType":"uint256[]","name":"feeAmounts","type":"uint256[]"},{"internalType":"address","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct MetaAggregationRouterV2.SwapDescriptionV2","name":"desc","type":"tuple"},{"internalType":"bytes","name":"clientData","type":"bytes"}],"internalType":"struct MetaAggregationRouterV2.SwapExecutionParams","name":"execution","type":"tuple"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"callTarget","type":"address"},{"internalType":"address","name":"approveTarget","type":"address"},{"internalType":"bytes","name":"targetData","type":"bytes"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address[]","name":"srcReceivers","type":"address[]"},{"internalType":"uint256[]","name":"srcAmounts","type":"uint256[]"},{"internalType":"address[]","name":"feeReceivers","type":"address[]"},{"internalType":"uint256[]","name":"feeAmounts","type":"uint256[]"},{"internalType":"address","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct MetaAggregationRouterV2.SwapDescriptionV2","name":"desc","type":"tuple"},{"internalType":"bytes","name":"clientData","type":"bytes"}],"internalType":"struct MetaAggregationRouterV2.SwapExecutionParams","name":"execution","type":"tuple"}],"name":"swapGeneric","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IAggregationExecutor","name":"caller","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address[]","name":"srcReceivers","type":"address[]"},{"internalType":"uint256[]","name":"srcAmounts","type":"uint256[]"},{"internalType":"address[]","name":"feeReceivers","type":"address[]"},{"internalType":"uint256[]","name":"feeAmounts","type":"uint256[]"},{"internalType":"address","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct MetaAggregationRouterV2.SwapDescriptionV2","name":"desc","type":"tuple"},{"internalType":"bytes","name":"executorData","type":"bytes"},{"internalType":"bytes","name":"clientData","type":"bytes"}],"name":"swapSimpleMode","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"},{"internalType":"uint256","name":"gasUsed","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"},{"internalType":"bool[]","name":"value","type":"bool[]"}],"name":"updateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b50604051620049d9380380620049d98339810160408190526200003491620000a1565b6200003f3362000051565b6001600160a01b0316608052620000d3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000b457600080fd5b81516001600160a01b0381168114620000cc57600080fd5b9392505050565b6080516148dc620000fd600039600081816101c301528181610af3015261106f01526148dc6000f3fe6080604052600436106100b55760003560e01c80638da5cb5b11610069578063c683630d1161004e578063c683630d146101e5578063e21fd0e914610225578063f2fde38b1461023857600080fd5b80638da5cb5b14610165578063ad5c4648146101b157600080fd5b8063715018a61161009a578063715018a61461011057806378e3214f146101255780638af033fb1461014557600080fd5b806333320de3146100c157806359e50fed146100e357600080fd5b366100bc57005b600080fd5b3480156100cd57600080fd5b506100e16100dc366004613d26565b610258565b005b6100f66100f1366004613dea565b61039a565b604080519283526020830191909152015b60405180910390f35b34801561011c57600080fd5b506100e1610b9d565b34801561013157600080fd5b506100e1610140366004613e25565b610c2a565b34801561015157600080fd5b506100f66101603660046140b7565b610cf6565b34801561017157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610107565b3480156101bd57600080fd5b5061018c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101f157600080fd5b5061021561020036600461415e565b60016020526000908152604090205460ff1681565b6040519015158152602001610107565b6100f6610233366004613dea565b611114565b34801561024457600080fd5b506100e161025336600461415e565b611607565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b80518251146102ec57600080fd5b60005b82518110156103955781818151811061030a5761030a61417b565b6020026020010151600160008584815181106103285761032861417b565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905561038e816141d9565b90506102ef565b505050565b60008060005a9050600160006103b3602087018761415e565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16610443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016102d5565b610450602085018561415e565b73ffffffffffffffffffffffffffffffffffffffff16610476604086016020870161415e565b73ffffffffffffffffffffffffffffffffffffffff16141580156104c0575060006104a7604086016020870161415e565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561056957600160006104d9604087016020880161415e565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16610569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016102d5565b60006105786060860186614212565b61058190614250565b90506000816101000151116105f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496e76616c6964206d696e2072657475726e20616d6f756e740000000000000060448201526064016102d5565b6105fb81611737565b61061381600001518260e0015183610140015161187b565b60006106258261012001516080611aa1565b9050600080600073ffffffffffffffffffffffffffffffffffffffff168460c0015173ffffffffffffffffffffffffffffffffffffffff161461066c578360c0015161066e565b335b90506106808461012001516040611aa1565b6107d4576106a284600001513386608001518760a001518860e0015188611aad565b60e085015283516000906106df9073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b1580156106f757506106f78561012001516004611aa1565b1561070f57610707853330611c88565b60e087015290505b61072a3361072360408c0160208d0161415e565b8784611d77565b6107c961073a60208b018b61415e565b61074760408c018c61425c565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505089518a92506107b2915073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b6107bd5760006107c3565b8860e001515b86611f6e565b9850925061095a9050565b600061080d856000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b15801561082557506108258561012001516004611aa1565b1561083d57610835853330611c88565b60e087015290505b600061084d8660200151846121a5565b905061086a3361086360408d0160208e0161415e565b8885611d77565b61090561087a60208c018c61415e565b61088760408d018d61425c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250508a518b92506108f2915073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b6108fd5760006108ff565b345b30611f6e565b809a508195505050600061092987602001513089608001518a60a001518e8b611aad565b905061093b876020015130868461229d565b508061094b8760200151856121a5565b61095591906142c1565b985050505b6109658288866123c8565b835161099a9073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b1580156109cd575060006109b460408a0160208b0161415e565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610a0557610a056109e560408a0160208b0161415e565b855173ffffffffffffffffffffffffffffffffffffffff169060006124d4565b83516020808601516040805133815273ffffffffffffffffffffffffffffffffffffffff948516938101939093529083169082015290821660608201526080810183905260a081018890527fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f89060c00160405180910390a17fddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48610aab60208a018a61415e565b88610ae3876020015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b610af1578660200151610b13565b7f00000000000000000000000000000000000000000000000000000000000000005b6040805173ffffffffffffffffffffffffffffffffffffffff9485168152602081019390935292168183015290519081900360600190a17f095e66fa4dd6a6f7b43fb8444a7bd0edb870508c7abf639bc216efb0bcff9779610b7860808a018a61425c565b604051610b869291906142d8565b60405180910390a15a850395505050505050915091565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d5565b610c2860006126e3565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d5565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff83161415610ceb57610ce73382612758565b5050565b610ce782338361286b565b60008060005a9050610d35886000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b15610dc2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f737263206973206574682c2073686f756c6420757365206e6f726d616c20737760448201527f617000000000000000000000000000000000000000000000000000000000000060648201526084016102d5565b610dda88600001518960e001518a610140015161187b565b60c088015160009073ffffffffffffffffffffffffffffffffffffffff1615610e07578860c00151610e09565b335b90506000610e1d8a61012001516080611aa1565b9050610e2f8a61012001516040611aa1565b610e5b57610e518a60000151338c608001518d60a001518e60e0015186611aad565b60e08b0152610e5f565b3091505b506000610e708a60200151836121a5565b90506000610e828b60000151336121a5565b9050610e9f8c8c600001518d60e001518e60200151878f8f6129de565b81610eae8c60200151856121a5565b610eb891906142c1565b9550610eca8b61012001516040611aa1565b15610f66576000610ee18c61012001516080611aa1565b9050610efd8c60200151308e608001518f60a001518b86611aad565b60208d015160c08e0151919850915073ffffffffffffffffffffffffffffffffffffffff1615610f31578b60c00151610f33565b335b9350610f3f81856121a5565b9250610f4d8130868a61229d565b82610f5882866121a5565b610f6291906142c1565b9650505b6000610f768c60000151336121a5565b610f8090836142c1565b9050610f8d81888e6123c8565b8b516020808e01516040805133815273ffffffffffffffffffffffffffffffffffffffff948516938101939093529083169082015290851660608201526080810182905260a081018890527fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f89060c00160405180910390a17fddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c488d8861105f8f6020015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b61106d578e6020015161108f565b7f00000000000000000000000000000000000000000000000000000000000000005b6040805173ffffffffffffffffffffffffffffffffffffffff9485168152602081019390935292168183015290519081900360600190a17f095e66fa4dd6a6f7b43fb8444a7bd0edb870508c7abf639bc216efb0bcff977989896040516110f79291906142d8565b60405180910390a15a850395505050505050965096945050505050565b60008060005a9050600061112b6060860186614212565b61113490614250565b90506000816101000151116111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e2072657475726e2073686f756c64206e6f74206265203000000000000060448201526064016102d5565b60006111b4604087018761425c565b90501161121d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6578656375746f72446174612073686f756c64206265206e6f74207a65726f0060448201526064016102d5565b61122d8161012001516020611aa1565b156112685761125d611242602087018761415e565b82611250604089018961425c565b61016060808b018b61425c565b935093505050915091565b61127181611737565b61128981600001518260e0015183610140015161187b565b600061129b8261012001516080611aa1565b9050600080600073ffffffffffffffffffffffffffffffffffffffff168460c0015173ffffffffffffffffffffffffffffffffffffffff16146112e2578360c001516112e4565b335b90506112f68461012001516040611aa1565b611485578351608085015160a08601516113509291339173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff851614611348578860e0015161134a565b345b88611aad565b60e08501526113623360008681611d77565b61147c61137260208a018a61415e565b7fd9c45357000000000000000000000000000000000000000000000000000000006113a060408c018c61425c565b6040516024016113b19291906142d8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152865187906114659073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b611470576000611476565b8760e001515b85611f6e565b975091506115fc565b60006114958560200151836121a5565b90506114a5336000876000611d77565b6115a86114b560208b018b61415e565b7fd9c45357000000000000000000000000000000000000000000000000000000006114e360408d018d61425c565b6040516024016114f49291906142d8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152875188906108f29073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b809950819450505060006115cc86602001513088608001518960a001518d8a611aad565b90506115de866020015130858461229d565b50806115ee8660200151846121a5565b6115f891906142c1565b9750505b610a058288866123c8565b60005473ffffffffffffffffffffffffffffffffffffffff163314611688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d5565b73ffffffffffffffffffffffffffffffffffffffff811661172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102d5565b611734816126e3565b50565b6000611770826000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b90506117828261012001516002611aa1565b156118015780611793576000611799565b8160e001515b3411610ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964206d73672e76616c756500000000000000000000000000000060448201526064016102d5565b8061180d576000611813565b8160e001515b3414610ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964206d73672e76616c756500000000000000000000000000000060448201526064016102d5565b805160e01415610395576000808473ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b846040516020016118b9929190614351565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526118f191614399565b6000604051808303816000865af19150503d806000811461192e576040519150601f19603f3d011682016040523d82523d6000602084013e611933565b606091505b509150915081611a9a57600061197e826040518060400160405280601481526020017f5065726d69742063616c6c206661696c65643a20000000000000000000000000815250612ece565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff88169063dd62ed3e9060440160206040518083038186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2691906143ab565b1015611a6057806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d5919061440e565b7f08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa81604051611a8f919061440e565b60405180910390a15b505b5050505050565b81811615155b92915050565b835182908015611c7d5773ffffffffffffffffffffffffffffffffffffffff881673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146000611afb8a83611af5578a6121a5565b306121a5565b905082875114611b67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c6964206c656e67746800000000000000000000000000000000000060448201526064016102d5565b60005b83811015611c0e57600086611b9857888281518110611b8b57611b8b61417b565b6020026020010151611bca565b612710898381518110611bad57611bad61417b565b602002602001015189611bc09190614421565b611bca919061445e565b9050611bfd8c85611bdb578c611bdd565b305b8c8581518110611bef57611bef61417b565b60200260200101518461229d565b50611c07816141d9565b9050611b6a565b506000611c208b84611af5578b6121a5565b611c2a90836142c1565b9050611c3681886142c1565b94507f4c39b7ce5f4f514f45cb6f82b171b8b0b7f2cbf488ad28e4eff451588e2f014b8b88838c8c8b604051611c7196959493929190614499565b60405180910390a15050505b509695505050505050565b600080611cc2856000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b15611d29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436c61696d20746f6b656e20697320455448000000000000000000000000000060448201526064016102d5565b6000611d398660000151306121a5565b9050611d4f866000015186868960e0015161229d565b6001925080611d628760000151306121a5565b611d6c91906142c1565b915050935093915050565b81606001515182604001515114611dea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f696e76616c696420737263526563656976657273206c656e677468000000000060448201526064016102d5565b8015611e5757611e01826101200151610100611aa1565b8015611e22575073ffffffffffffffffffffffffffffffffffffffff831615155b15611e575760e08201518251611e529173ffffffffffffffffffffffffffffffffffffffff909116908590613306565b611f68565b6000805b836040015151811015611ef95783606001518181518110611e7e57611e7e61417b565b602002602001015182611e919190614550565b9150611ee9846000015184611ea65787611ea8565b305b86604001518481518110611ebe57611ebe61417b565b602002602001015187606001518581518110611edc57611edc61417b565b602002602001015161229d565b611ef2816141d9565b9050611e5b565b508260e00151811115611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f457863656564656420646573632e616d6f756e7400000000000000000000000060448201526064016102d5565b50505050565b6000806000611f818660200151856121a5565b90506000611f938760000151306121a5565b90506000611fa58860200151306121a5565b905060008a73ffffffffffffffffffffffffffffffffffffffff16888b604051611fcf9190614399565b60006040518083038185875af1925050503d806000811461200c576040519150601f19603f3d011682016040523d82523d6000602084013e612011565b606091505b505090508061207c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f43616c6c206661696c656400000000000000000000000000000000000000000060448201526064016102d5565b5073ffffffffffffffffffffffffffffffffffffffff861630146120c9576000816120ab8a60200151306121a5565b6120b591906142c1565b90506120c7896020015130898461229d565b505b826120d88960200151886121a5565b6120e291906142c1565b93508760e0015194506120fb8861012001516001611aa1565b801561214d575087516121379073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b8061214d575061214d8861012001516004611aa1565b156121985760006121628960000151306121a5565b90508281146121965761217581846142c1565b955061219689600001513033898d60e0015161219191906142c1565b61229d565b505b5050509550959350505050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff841614156121f7575073ffffffffffffffffffffffffffffffffffffffff811631611aa7565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a082319060240160206040518083038186803b15801561225e57600080fd5b505afa158015612272573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229691906143ab565b9050611aa7565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f73656e64657220213d20726563697069656e740000000000000000000000000060448201526064016102d5565b8015611f685773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff851614156123935773ffffffffffffffffffffffffffffffffffffffff8316301415611e5257611e528282612758565b73ffffffffffffffffffffffffffffffffffffffff83163014156123bc57611e5284838361286b565b611f6884848484613413565b6123d88161012001516001611aa1565b1561246557828161010001516123ee9190614421565b60e08201516123fd9084614421565b1015610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f756768000000000060448201526064016102d5565b806101000151821015610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f756768000000000060448201526064016102d5565b80158061258357506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561254957600080fd5b505afa15801561255d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061258191906143ab565b155b61260f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016102d5565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526103959084907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526135b3565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80612761575050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516127989190614399565b60006040518083038185875af1925050503d80600081146127d5576040519150601f19603f3d011682016040523d82523d6000602084013e6127da565b606091505b5050905080610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960448201527f4c4544000000000000000000000000000000000000000000000000000000000060648201526084016102d5565b8061287557505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161290c9190614399565b6000604051808303816000865af19150503d8060008114612949576040519150601f19603f3d011682016040523d82523d6000602084013e61294e565b606091505b50915091508180156129785750805115806129785750808060200190518101906129789190614568565b611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c45440060448201526064016102d5565b60006129ec82840184614605565b90504281606001511015612a5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f524f555445523a2045787069726564000000000000000000000000000000000060448201526064016102d5565b602081015151815151148015612a785750604081015151815151145b612ade576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f696e76616c696420737761702064617461206c656e677468000000000000000060448201526064016102d5565b80515160005b81811015612d8c576000612af88a336121a5565b9050612b338a3386600001518581518110612b1557612b1561417b565b602002602001015187602001518681518110611edc57611edc61417b565b8884602001518381518110612b4a57612b4a61417b565b60200260200101511115612bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f696e76616c6964207377617020616d6f756e740000000000000000000000000060448201526064016102d5565b6000612bc68b336121a5565b612bd090836142c1565b9050612bdc818b6142c1565b995050506000808b73ffffffffffffffffffffffffffffffffffffffff16638b674f5d60e01b86604001518581518110612c1857612c1861417b565b6020026020010151604051602401612c30919061440e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612cb99190614399565b6000604051808303816000865af19150503d8060008114612cf6576040519150601f19603f3d011682016040523d82523d6000602084013e612cfb565b606091505b509150915081612d7757612d44816040518060400160405280601b81526020017f7377617053696e676c6553657175656e6365206661696c65643a200000000000815250612ece565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d5919061440e565b50508080612d84906141d9565b915050612ae4565b506000808a73ffffffffffffffffffffffffffffffffffffffff1663774b6b7e60e01b8b8a8a8860800151604051602401612dca94939291906146e8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612e539190614399565b6000604051808303816000865af19150503d8060008114612e90576040519150601f19603f3d011682016040523d82523d6000602084013e612e95565b606091505b509150915081612ec157612d448160405180606001604052806023815260200161488460239139612ece565b5050505050505050505050565b60606044835110158015612f3b575082600081518110612ef057612ef061417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0800000000000000000000000000000000000000000000000000000000000000145b8015612fa0575082600181518110612f5557612f5561417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167fc300000000000000000000000000000000000000000000000000000000000000145b8015613005575082600281518110612fba57612fba61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f7900000000000000000000000000000000000000000000000000000000000000145b801561306a57508260038151811061301f5761301f61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167fa000000000000000000000000000000000000000000000000000000000000000145b15613116576044838101805190916130829190614550565b845110156130ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c69642072657665727420726561736f6e000000000000000000000060448201526064016102d5565b82816040516020016130ff929190614733565b604051602081830303815290604052915050611aa7565b825160241480156131805750826000815181106131355761313561417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f4e00000000000000000000000000000000000000000000000000000000000000145b80156131e557508260018151811061319a5761319a61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f4800000000000000000000000000000000000000000000000000000000000000145b801561324a5750826002815181106131ff576131ff61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f7b00000000000000000000000000000000000000000000000000000000000000145b80156132af5750826003815181106132645761326461417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f7100000000000000000000000000000000000000000000000000000000000000145b156132d4576024830151826132c3826136bf565b6040516020016130ff9291906147b5565b816132de846136e7565b6040516020016132ef929190614801565b604051602081830303815290604052905092915050565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b15801561337857600080fd5b505afa15801561338c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133b091906143ab565b6133ba9190614550565b60405173ffffffffffffffffffffffffffffffffffffffff8516602482015260448101829052909150611f689085907f095ea7b30000000000000000000000000000000000000000000000000000000090606401612661565b8061341d57611f68565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916134bc9190614399565b6000604051808303816000865af19150503d80600081146134f9576040519150601f19603f3d011682016040523d82523d6000602084013e6134fe565b606091505b50915091508180156135285750805115806135285750808060200190518101906135289190614568565b611a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c45440000000000000000000000000000000000000000000000000000000060648201526084016102d5565b6000613615826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661398c9092919063ffffffff16565b80519091501561039557808060200190518101906136339190614568565b610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102d5565b6060611aa7826040516020016136d791815260200190565b6040516020818303038152906040525b80516060907f30313233343536373839616263646566000000000000000000000000000000009060009061371c906002614421565b613727906002614550565b67ffffffffffffffff81111561373f5761373f613b8e565b6040519080825280601f01601f191660200182016040528015613769576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106137a0576137a061417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106138035761380361417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b8451811015613984578260048683815181106138535761385361417b565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016901c60f81c6010811061388f5761388f61417b565b1a60f81b8261389f836002614421565b6138aa906002614550565b815181106138ba576138ba61417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350828582815181106138fc576138fc61417b565b60209101015160f81c600f16601081106139185761391861417b565b1a60f81b82613928836002614421565b613933906003614550565b815181106139435761394361417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508061397c816141d9565b915050613835565b509392505050565b606061399b84846000856139a5565b90505b9392505050565b606082471015613a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102d5565b73ffffffffffffffffffffffffffffffffffffffff85163b613ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102d5565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613ade9190614399565b60006040518083038185875af1925050503d8060008114613b1b576040519150601f19603f3d011682016040523d82523d6000602084013e613b20565b606091505b5091509150613b30828286613b3b565b979650505050505050565b60608315613b4a57508161399e565b825115613b5a5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d5919061440e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610160810167ffffffffffffffff81118282101715613be157613be1613b8e565b60405290565b60405160a0810167ffffffffffffffff81118282101715613be157613be1613b8e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613c5157613c51613b8e565b604052919050565b600067ffffffffffffffff821115613c7357613c73613b8e565b5060051b60200190565b73ffffffffffffffffffffffffffffffffffffffff8116811461173457600080fd5b8035613caa81613c7d565b919050565b600082601f830112613cc057600080fd5b81356020613cd5613cd083613c59565b613c0a565b82815260059290921b84018101918181019086841115613cf457600080fd5b8286015b84811015611c7d578035613d0b81613c7d565b8352918301918301613cf8565b801515811461173457600080fd5b60008060408385031215613d3957600080fd5b823567ffffffffffffffff80821115613d5157600080fd5b613d5d86838701613caf565b9350602091508185013581811115613d7457600080fd5b85019050601f81018613613d8757600080fd5b8035613d95613cd082613c59565b81815260059190911b82018301908381019088831115613db457600080fd5b928401925b82841015613ddb578335613dcc81613d18565b82529284019290840190613db9565b80955050505050509250929050565b600060208284031215613dfc57600080fd5b813567ffffffffffffffff811115613e1357600080fd5b820160a0818503121561399e57600080fd5b60008060408385031215613e3857600080fd5b8235613e4381613c7d565b946020939093013593505050565b600082601f830112613e6257600080fd5b81356020613e72613cd083613c59565b82815260059290921b84018101918181019086841115613e9157600080fd5b8286015b84811015611c7d5780358352918301918301613e95565b600082601f830112613ebd57600080fd5b813567ffffffffffffffff811115613ed757613ed7613b8e565b613f0860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601613c0a565b818152846020838601011115613f1d57600080fd5b816020850160208301376000918101602001919091529392505050565b60006101608284031215613f4d57600080fd5b613f55613bbd565b9050613f6082613c9f565b8152613f6e60208301613c9f565b6020820152604082013567ffffffffffffffff80821115613f8e57600080fd5b613f9a85838601613caf565b60408401526060840135915080821115613fb357600080fd5b613fbf85838601613e51565b60608401526080840135915080821115613fd857600080fd5b613fe485838601613caf565b608084015260a0840135915080821115613ffd57600080fd5b61400985838601613e51565b60a084015261401a60c08501613c9f565b60c084015260e08481013590840152610100808501359084015261012080850135908401526101409150818401358181111561405557600080fd5b61406186828701613eac565b8385015250505092915050565b60008083601f84011261408057600080fd5b50813567ffffffffffffffff81111561409857600080fd5b6020830191508360208285010111156140b057600080fd5b9250929050565b600080600080600080608087890312156140d057600080fd5b86356140db81613c7d565b9550602087013567ffffffffffffffff808211156140f857600080fd5b6141048a838b01613f3a565b9650604089013591508082111561411a57600080fd5b6141268a838b0161406e565b9096509450606089013591508082111561413f57600080fd5b5061414c89828a0161406e565b979a9699509497509295939492505050565b60006020828403121561417057600080fd5b813561399e81613c7d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561420b5761420b6141aa565b5060010190565b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea183360301811261424657600080fd5b9190910192915050565b6000611aa73683613f3a565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261429157600080fd5b83018035915067ffffffffffffffff8211156142ac57600080fd5b6020019150368190038213156140b057600080fd5b6000828210156142d3576142d36141aa565b500390565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b60005b83811015614340578181015183820152602001614328565b83811115611f685750506000910152565b7fffffffff00000000000000000000000000000000000000000000000000000000831681526000825161438b816004850160208701614325565b919091016004019392505050565b60008251614246818460208701614325565b6000602082840312156143bd57600080fd5b5051919050565b600081518084526143dc816020860160208601614325565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061399e60208301846143c4565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614459576144596141aa565b500290565b600082614494577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060c0820173ffffffffffffffffffffffffffffffffffffffff808a1684526020898186015288604086015260c0606086015282885180855260e087019150828a01945060005b818110156144ff5785518516835294830194918301916001016144e1565b5050858103608087015287518082529082019350915080870160005b838110156145375781518552938201939082019060010161451b565b5050505083151560a08401529050979650505050505050565b60008219821115614563576145636141aa565b500190565b60006020828403121561457a57600080fd5b815161399e81613d18565b600082601f83011261459657600080fd5b813560206145a6613cd083613c59565b82815260059290921b840181019181810190868411156145c557600080fd5b8286015b84811015611c7d57803567ffffffffffffffff8111156145e95760008081fd5b6145f78986838b0101613eac565b8452509183019183016145c9565b60006020828403121561461757600080fd5b813567ffffffffffffffff8082111561462f57600080fd5b9083019060a0828603121561464357600080fd5b61464b613be7565b82358281111561465a57600080fd5b61466687828601613caf565b82525060208301358281111561467b57600080fd5b61468787828601613e51565b60208301525060408301358281111561469f57600080fd5b6146ab87828601614585565b604083015250606083013560608201526080830135828111156146cd57600080fd5b6146d987828601613eac565b60808301525095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401528085166040840152506080606083015261472960808301846143c4565b9695505050505050565b60008351614745818460208801614325565b7f4572726f72280000000000000000000000000000000000000000000000000000908301908152835161477f816006840160208801614325565b7f290000000000000000000000000000000000000000000000000000000000000060069290910191820152600701949350505050565b600083516147c7818460208801614325565b7f50616e6963280000000000000000000000000000000000000000000000000000908301908152835161477f816006840160208801614325565b60008351614813818460208801614325565b7f556e6b6e6f776e28000000000000000000000000000000000000000000000000908301908152835161484d816008840160208801614325565b7f29000000000000000000000000000000000000000000000000000000000000006008929091019182015260090194935050505056fe66696e616c5472616e73616374696f6e50726f63657373696e67206661696c65643a20a264697066735822122040b6f6e6e82b71d47574ea2654ad0c0efa66360829929aedf1893e8eb700cb6e64736f6c6343000809003300000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

Deployed Bytecode

0x6080604052600436106100b55760003560e01c80638da5cb5b11610069578063c683630d1161004e578063c683630d146101e5578063e21fd0e914610225578063f2fde38b1461023857600080fd5b80638da5cb5b14610165578063ad5c4648146101b157600080fd5b8063715018a61161009a578063715018a61461011057806378e3214f146101255780638af033fb1461014557600080fd5b806333320de3146100c157806359e50fed146100e357600080fd5b366100bc57005b600080fd5b3480156100cd57600080fd5b506100e16100dc366004613d26565b610258565b005b6100f66100f1366004613dea565b61039a565b604080519283526020830191909152015b60405180910390f35b34801561011c57600080fd5b506100e1610b9d565b34801561013157600080fd5b506100e1610140366004613e25565b610c2a565b34801561015157600080fd5b506100f66101603660046140b7565b610cf6565b34801561017157600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610107565b3480156101bd57600080fd5b5061018c7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181565b3480156101f157600080fd5b5061021561020036600461415e565b60016020526000908152604090205460ff1681565b6040519015158152602001610107565b6100f6610233366004613dea565b611114565b34801561024457600080fd5b506100e161025336600461415e565b611607565b60005473ffffffffffffffffffffffffffffffffffffffff1633146102de576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b80518251146102ec57600080fd5b60005b82518110156103955781818151811061030a5761030a61417b565b6020026020010151600160008584815181106103285761032861417b565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905561038e816141d9565b90506102ef565b505050565b60008060005a9050600160006103b3602087018761415e565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16610443576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016102d5565b610450602085018561415e565b73ffffffffffffffffffffffffffffffffffffffff16610476604086016020870161415e565b73ffffffffffffffffffffffffffffffffffffffff16141580156104c0575060006104a7604086016020870161415e565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561056957600160006104d9604087016020880161415e565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205460ff16610569576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f41646472657373206e6f742077686974656c697374656400000000000000000060448201526064016102d5565b60006105786060860186614212565b61058190614250565b90506000816101000151116105f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f496e76616c6964206d696e2072657475726e20616d6f756e740000000000000060448201526064016102d5565b6105fb81611737565b61061381600001518260e0015183610140015161187b565b60006106258261012001516080611aa1565b9050600080600073ffffffffffffffffffffffffffffffffffffffff168460c0015173ffffffffffffffffffffffffffffffffffffffff161461066c578360c0015161066e565b335b90506106808461012001516040611aa1565b6107d4576106a284600001513386608001518760a001518860e0015188611aad565b60e085015283516000906106df9073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b1580156106f757506106f78561012001516004611aa1565b1561070f57610707853330611c88565b60e087015290505b61072a3361072360408c0160208d0161415e565b8784611d77565b6107c961073a60208b018b61415e565b61074760408c018c61425c565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505089518a92506107b2915073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b6107bd5760006107c3565b8860e001515b86611f6e565b9850925061095a9050565b600061080d856000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b15801561082557506108258561012001516004611aa1565b1561083d57610835853330611c88565b60e087015290505b600061084d8660200151846121a5565b905061086a3361086360408d0160208e0161415e565b8885611d77565b61090561087a60208c018c61415e565b61088760408d018d61425c565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250508a518b92506108f2915073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b6108fd5760006108ff565b345b30611f6e565b809a508195505050600061092987602001513089608001518a60a001518e8b611aad565b905061093b876020015130868461229d565b508061094b8760200151856121a5565b61095591906142c1565b985050505b6109658288866123c8565b835161099a9073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b1580156109cd575060006109b460408a0160208b0161415e565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610a0557610a056109e560408a0160208b0161415e565b855173ffffffffffffffffffffffffffffffffffffffff169060006124d4565b83516020808601516040805133815273ffffffffffffffffffffffffffffffffffffffff948516938101939093529083169082015290821660608201526080810183905260a081018890527fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f89060c00160405180910390a17fddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48610aab60208a018a61415e565b88610ae3876020015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b610af1578660200151610b13565b7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab15b6040805173ffffffffffffffffffffffffffffffffffffffff9485168152602081019390935292168183015290519081900360600190a17f095e66fa4dd6a6f7b43fb8444a7bd0edb870508c7abf639bc216efb0bcff9779610b7860808a018a61425c565b604051610b869291906142d8565b60405180910390a15a850395505050505050915091565b60005473ffffffffffffffffffffffffffffffffffffffff163314610c1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d5565b610c2860006126e3565b565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d5565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff83161415610ceb57610ce73382612758565b5050565b610ce782338361286b565b60008060005a9050610d35886000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b15610dc2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f737263206973206574682c2073686f756c6420757365206e6f726d616c20737760448201527f617000000000000000000000000000000000000000000000000000000000000060648201526084016102d5565b610dda88600001518960e001518a610140015161187b565b60c088015160009073ffffffffffffffffffffffffffffffffffffffff1615610e07578860c00151610e09565b335b90506000610e1d8a61012001516080611aa1565b9050610e2f8a61012001516040611aa1565b610e5b57610e518a60000151338c608001518d60a001518e60e0015186611aad565b60e08b0152610e5f565b3091505b506000610e708a60200151836121a5565b90506000610e828b60000151336121a5565b9050610e9f8c8c600001518d60e001518e60200151878f8f6129de565b81610eae8c60200151856121a5565b610eb891906142c1565b9550610eca8b61012001516040611aa1565b15610f66576000610ee18c61012001516080611aa1565b9050610efd8c60200151308e608001518f60a001518b86611aad565b60208d015160c08e0151919850915073ffffffffffffffffffffffffffffffffffffffff1615610f31578b60c00151610f33565b335b9350610f3f81856121a5565b9250610f4d8130868a61229d565b82610f5882866121a5565b610f6291906142c1565b9650505b6000610f768c60000151336121a5565b610f8090836142c1565b9050610f8d81888e6123c8565b8b516020808e01516040805133815273ffffffffffffffffffffffffffffffffffffffff948516938101939093529083169082015290851660608201526080810182905260a081018890527fd6d4f5681c246c9f42c203e287975af1601f8df8035a9251f79aab5c8f09e2f89060c00160405180910390a17fddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c488d8861105f8f6020015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b61106d578e6020015161108f565b7f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab15b6040805173ffffffffffffffffffffffffffffffffffffffff9485168152602081019390935292168183015290519081900360600190a17f095e66fa4dd6a6f7b43fb8444a7bd0edb870508c7abf639bc216efb0bcff977989896040516110f79291906142d8565b60405180910390a15a850395505050505050965096945050505050565b60008060005a9050600061112b6060860186614212565b61113490614250565b90506000816101000151116111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e2072657475726e2073686f756c64206e6f74206265203000000000000060448201526064016102d5565b60006111b4604087018761425c565b90501161121d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6578656375746f72446174612073686f756c64206265206e6f74207a65726f0060448201526064016102d5565b61122d8161012001516020611aa1565b156112685761125d611242602087018761415e565b82611250604089018961425c565b61016060808b018b61425c565b935093505050915091565b61127181611737565b61128981600001518260e0015183610140015161187b565b600061129b8261012001516080611aa1565b9050600080600073ffffffffffffffffffffffffffffffffffffffff168460c0015173ffffffffffffffffffffffffffffffffffffffff16146112e2578360c001516112e4565b335b90506112f68461012001516040611aa1565b611485578351608085015160a08601516113509291339173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff851614611348578860e0015161134a565b345b88611aad565b60e08501526113623360008681611d77565b61147c61137260208a018a61415e565b7fd9c45357000000000000000000000000000000000000000000000000000000006113a060408c018c61425c565b6040516024016113b19291906142d8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152865187906114659073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b611470576000611476565b8760e001515b85611f6e565b975091506115fc565b60006114958560200151836121a5565b90506114a5336000876000611d77565b6115a86114b560208b018b61415e565b7fd9c45357000000000000000000000000000000000000000000000000000000006114e360408d018d61425c565b6040516024016114f49291906142d8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152875188906108f29073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b809950819450505060006115cc86602001513088608001518960a001518d8a611aad565b90506115de866020015130858461229d565b50806115ee8660200151846121a5565b6115f891906142c1565b9750505b610a058288866123c8565b60005473ffffffffffffffffffffffffffffffffffffffff163314611688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102d5565b73ffffffffffffffffffffffffffffffffffffffff811661172b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102d5565b611734816126e3565b50565b6000611770826000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b90506117828261012001516002611aa1565b156118015780611793576000611799565b8160e001515b3411610ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964206d73672e76616c756500000000000000000000000000000060448201526064016102d5565b8061180d576000611813565b8160e001515b3414610ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964206d73672e76616c756500000000000000000000000000000060448201526064016102d5565b805160e01415610395576000808473ffffffffffffffffffffffffffffffffffffffff1663d505accf60e01b846040516020016118b9929190614351565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290526118f191614399565b6000604051808303816000865af19150503d806000811461192e576040519150601f19603f3d011682016040523d82523d6000602084013e611933565b606091505b509150915081611a9a57600061197e826040518060400160405280601481526020017f5065726d69742063616c6c206661696c65643a20000000000000000000000000815250612ece565b6040517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152909150859073ffffffffffffffffffffffffffffffffffffffff88169063dd62ed3e9060440160206040518083038186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2691906143ab565b1015611a6057806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d5919061440e565b7f08c379a0afcc32b1a39302f7cb8073359698411ab5fd6e3edb2c02c0b5fba8aa81604051611a8f919061440e565b60405180910390a15b505b5050505050565b81811615155b92915050565b835182908015611c7d5773ffffffffffffffffffffffffffffffffffffffff881673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146000611afb8a83611af5578a6121a5565b306121a5565b905082875114611b67576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c6964206c656e67746800000000000000000000000000000000000060448201526064016102d5565b60005b83811015611c0e57600086611b9857888281518110611b8b57611b8b61417b565b6020026020010151611bca565b612710898381518110611bad57611bad61417b565b602002602001015189611bc09190614421565b611bca919061445e565b9050611bfd8c85611bdb578c611bdd565b305b8c8581518110611bef57611bef61417b565b60200260200101518461229d565b50611c07816141d9565b9050611b6a565b506000611c208b84611af5578b6121a5565b611c2a90836142c1565b9050611c3681886142c1565b94507f4c39b7ce5f4f514f45cb6f82b171b8b0b7f2cbf488ad28e4eff451588e2f014b8b88838c8c8b604051611c7196959493929190614499565b60405180910390a15050505b509695505050505050565b600080611cc2856000015173ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b15611d29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f436c61696d20746f6b656e20697320455448000000000000000000000000000060448201526064016102d5565b6000611d398660000151306121a5565b9050611d4f866000015186868960e0015161229d565b6001925080611d628760000151306121a5565b611d6c91906142c1565b915050935093915050565b81606001515182604001515114611dea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f696e76616c696420737263526563656976657273206c656e677468000000000060448201526064016102d5565b8015611e5757611e01826101200151610100611aa1565b8015611e22575073ffffffffffffffffffffffffffffffffffffffff831615155b15611e575760e08201518251611e529173ffffffffffffffffffffffffffffffffffffffff909116908590613306565b611f68565b6000805b836040015151811015611ef95783606001518181518110611e7e57611e7e61417b565b602002602001015182611e919190614550565b9150611ee9846000015184611ea65787611ea8565b305b86604001518481518110611ebe57611ebe61417b565b602002602001015187606001518581518110611edc57611edc61417b565b602002602001015161229d565b611ef2816141d9565b9050611e5b565b508260e00151811115611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f457863656564656420646573632e616d6f756e7400000000000000000000000060448201526064016102d5565b50505050565b6000806000611f818660200151856121a5565b90506000611f938760000151306121a5565b90506000611fa58860200151306121a5565b905060008a73ffffffffffffffffffffffffffffffffffffffff16888b604051611fcf9190614399565b60006040518083038185875af1925050503d806000811461200c576040519150601f19603f3d011682016040523d82523d6000602084013e612011565b606091505b505090508061207c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f43616c6c206661696c656400000000000000000000000000000000000000000060448201526064016102d5565b5073ffffffffffffffffffffffffffffffffffffffff861630146120c9576000816120ab8a60200151306121a5565b6120b591906142c1565b90506120c7896020015130898461229d565b505b826120d88960200151886121a5565b6120e291906142c1565b93508760e0015194506120fb8861012001516001611aa1565b801561214d575087516121379073ffffffffffffffffffffffffffffffffffffffff1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1490565b8061214d575061214d8861012001516004611aa1565b156121985760006121628960000151306121a5565b90508281146121965761217581846142c1565b955061219689600001513033898d60e0015161219191906142c1565b61229d565b505b5050509550959350505050565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff841614156121f7575073ffffffffffffffffffffffffffffffffffffffff811631611aa7565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a082319060240160206040518083038186803b15801561225e57600080fd5b505afa158015612272573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229691906143ab565b9050611aa7565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f73656e64657220213d20726563697069656e740000000000000000000000000060448201526064016102d5565b8015611f685773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff851614156123935773ffffffffffffffffffffffffffffffffffffffff8316301415611e5257611e528282612758565b73ffffffffffffffffffffffffffffffffffffffff83163014156123bc57611e5284838361286b565b611f6884848484613413565b6123d88161012001516001611aa1565b1561246557828161010001516123ee9190614421565b60e08201516123fd9084614421565b1015610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f756768000000000060448201526064016102d5565b806101000151821015610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f52657475726e20616d6f756e74206973206e6f7420656e6f756768000000000060448201526064016102d5565b80158061258357506040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561254957600080fd5b505afa15801561255d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061258191906143ab565b155b61260f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084016102d5565b60405173ffffffffffffffffffffffffffffffffffffffff83166024820152604481018290526103959084907f095ea7b300000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526135b3565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80612761575050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040516127989190614399565b60006040518083038185875af1925050503d80600081146127d5576040519150601f19603f3d011682016040523d82523d6000602084013e6127da565b606091505b5050905080610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960448201527f4c4544000000000000000000000000000000000000000000000000000000000060648201526084016102d5565b8061287557505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052915160009283929087169161290c9190614399565b6000604051808303816000865af19150503d8060008114612949576040519150601f19603f3d011682016040523d82523d6000602084013e61294e565b606091505b50915091508180156129785750805115806129785750808060200190518101906129789190614568565b611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c45440060448201526064016102d5565b60006129ec82840184614605565b90504281606001511015612a5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f524f555445523a2045787069726564000000000000000000000000000000000060448201526064016102d5565b602081015151815151148015612a785750604081015151815151145b612ade576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f696e76616c696420737761702064617461206c656e677468000000000000000060448201526064016102d5565b80515160005b81811015612d8c576000612af88a336121a5565b9050612b338a3386600001518581518110612b1557612b1561417b565b602002602001015187602001518681518110611edc57611edc61417b565b8884602001518381518110612b4a57612b4a61417b565b60200260200101511115612bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f696e76616c6964207377617020616d6f756e740000000000000000000000000060448201526064016102d5565b6000612bc68b336121a5565b612bd090836142c1565b9050612bdc818b6142c1565b995050506000808b73ffffffffffffffffffffffffffffffffffffffff16638b674f5d60e01b86604001518581518110612c1857612c1861417b565b6020026020010151604051602401612c30919061440e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612cb99190614399565b6000604051808303816000865af19150503d8060008114612cf6576040519150601f19603f3d011682016040523d82523d6000602084013e612cfb565b606091505b509150915081612d7757612d44816040518060400160405280601b81526020017f7377617053696e676c6553657175656e6365206661696c65643a200000000000815250612ece565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d5919061440e565b50508080612d84906141d9565b915050612ae4565b506000808a73ffffffffffffffffffffffffffffffffffffffff1663774b6b7e60e01b8b8a8a8860800151604051602401612dca94939291906146e8565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612e539190614399565b6000604051808303816000865af19150503d8060008114612e90576040519150601f19603f3d011682016040523d82523d6000602084013e612e95565b606091505b509150915081612ec157612d448160405180606001604052806023815260200161488460239139612ece565b5050505050505050505050565b60606044835110158015612f3b575082600081518110612ef057612ef061417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0800000000000000000000000000000000000000000000000000000000000000145b8015612fa0575082600181518110612f5557612f5561417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167fc300000000000000000000000000000000000000000000000000000000000000145b8015613005575082600281518110612fba57612fba61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f7900000000000000000000000000000000000000000000000000000000000000145b801561306a57508260038151811061301f5761301f61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167fa000000000000000000000000000000000000000000000000000000000000000145b15613116576044838101805190916130829190614550565b845110156130ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e76616c69642072657665727420726561736f6e000000000000000000000060448201526064016102d5565b82816040516020016130ff929190614733565b604051602081830303815290604052915050611aa7565b825160241480156131805750826000815181106131355761313561417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f4e00000000000000000000000000000000000000000000000000000000000000145b80156131e557508260018151811061319a5761319a61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f4800000000000000000000000000000000000000000000000000000000000000145b801561324a5750826002815181106131ff576131ff61417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f7b00000000000000000000000000000000000000000000000000000000000000145b80156132af5750826003815181106132645761326461417b565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f7100000000000000000000000000000000000000000000000000000000000000145b156132d4576024830151826132c3826136bf565b6040516020016130ff9291906147b5565b816132de846136e7565b6040516020016132ef929190614801565b604051602081830303815290604052905092915050565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152600091839186169063dd62ed3e9060440160206040518083038186803b15801561337857600080fd5b505afa15801561338c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133b091906143ab565b6133ba9190614550565b60405173ffffffffffffffffffffffffffffffffffffffff8516602482015260448101829052909150611f689085907f095ea7b30000000000000000000000000000000000000000000000000000000090606401612661565b8061341d57611f68565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916134bc9190614399565b6000604051808303816000865af19150503d80600081146134f9576040519150601f19603f3d011682016040523d82523d6000602084013e6134fe565b606091505b50915091508180156135285750805115806135285750808060200190518101906135289190614568565b611a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c45440000000000000000000000000000000000000000000000000000000060648201526084016102d5565b6000613615826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661398c9092919063ffffffff16565b80519091501561039557808060200190518101906136339190614568565b610395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102d5565b6060611aa7826040516020016136d791815260200190565b6040516020818303038152906040525b80516060907f30313233343536373839616263646566000000000000000000000000000000009060009061371c906002614421565b613727906002614550565b67ffffffffffffffff81111561373f5761373f613b8e565b6040519080825280601f01601f191660200182016040528015613769576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106137a0576137a061417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106138035761380361417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060005b8451811015613984578260048683815181106138535761385361417b565b01602001517fff0000000000000000000000000000000000000000000000000000000000000016901c60f81c6010811061388f5761388f61417b565b1a60f81b8261389f836002614421565b6138aa906002614550565b815181106138ba576138ba61417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350828582815181106138fc576138fc61417b565b60209101015160f81c600f16601081106139185761391861417b565b1a60f81b82613928836002614421565b613933906003614550565b815181106139435761394361417b565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508061397c816141d9565b915050613835565b509392505050565b606061399b84846000856139a5565b90505b9392505050565b606082471015613a37576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016102d5565b73ffffffffffffffffffffffffffffffffffffffff85163b613ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102d5565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613ade9190614399565b60006040518083038185875af1925050503d8060008114613b1b576040519150601f19603f3d011682016040523d82523d6000602084013e613b20565b606091505b5091509150613b30828286613b3b565b979650505050505050565b60608315613b4a57508161399e565b825115613b5a5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d5919061440e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610160810167ffffffffffffffff81118282101715613be157613be1613b8e565b60405290565b60405160a0810167ffffffffffffffff81118282101715613be157613be1613b8e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613c5157613c51613b8e565b604052919050565b600067ffffffffffffffff821115613c7357613c73613b8e565b5060051b60200190565b73ffffffffffffffffffffffffffffffffffffffff8116811461173457600080fd5b8035613caa81613c7d565b919050565b600082601f830112613cc057600080fd5b81356020613cd5613cd083613c59565b613c0a565b82815260059290921b84018101918181019086841115613cf457600080fd5b8286015b84811015611c7d578035613d0b81613c7d565b8352918301918301613cf8565b801515811461173457600080fd5b60008060408385031215613d3957600080fd5b823567ffffffffffffffff80821115613d5157600080fd5b613d5d86838701613caf565b9350602091508185013581811115613d7457600080fd5b85019050601f81018613613d8757600080fd5b8035613d95613cd082613c59565b81815260059190911b82018301908381019088831115613db457600080fd5b928401925b82841015613ddb578335613dcc81613d18565b82529284019290840190613db9565b80955050505050509250929050565b600060208284031215613dfc57600080fd5b813567ffffffffffffffff811115613e1357600080fd5b820160a0818503121561399e57600080fd5b60008060408385031215613e3857600080fd5b8235613e4381613c7d565b946020939093013593505050565b600082601f830112613e6257600080fd5b81356020613e72613cd083613c59565b82815260059290921b84018101918181019086841115613e9157600080fd5b8286015b84811015611c7d5780358352918301918301613e95565b600082601f830112613ebd57600080fd5b813567ffffffffffffffff811115613ed757613ed7613b8e565b613f0860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601613c0a565b818152846020838601011115613f1d57600080fd5b816020850160208301376000918101602001919091529392505050565b60006101608284031215613f4d57600080fd5b613f55613bbd565b9050613f6082613c9f565b8152613f6e60208301613c9f565b6020820152604082013567ffffffffffffffff80821115613f8e57600080fd5b613f9a85838601613caf565b60408401526060840135915080821115613fb357600080fd5b613fbf85838601613e51565b60608401526080840135915080821115613fd857600080fd5b613fe485838601613caf565b608084015260a0840135915080821115613ffd57600080fd5b61400985838601613e51565b60a084015261401a60c08501613c9f565b60c084015260e08481013590840152610100808501359084015261012080850135908401526101409150818401358181111561405557600080fd5b61406186828701613eac565b8385015250505092915050565b60008083601f84011261408057600080fd5b50813567ffffffffffffffff81111561409857600080fd5b6020830191508360208285010111156140b057600080fd5b9250929050565b600080600080600080608087890312156140d057600080fd5b86356140db81613c7d565b9550602087013567ffffffffffffffff808211156140f857600080fd5b6141048a838b01613f3a565b9650604089013591508082111561411a57600080fd5b6141268a838b0161406e565b9096509450606089013591508082111561413f57600080fd5b5061414c89828a0161406e565b979a9699509497509295939492505050565b60006020828403121561417057600080fd5b813561399e81613c7d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561420b5761420b6141aa565b5060010190565b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea183360301811261424657600080fd5b9190910192915050565b6000611aa73683613f3a565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261429157600080fd5b83018035915067ffffffffffffffff8211156142ac57600080fd5b6020019150368190038213156140b057600080fd5b6000828210156142d3576142d36141aa565b500390565b60208152816020820152818360408301376000818301604090810191909152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160101919050565b60005b83811015614340578181015183820152602001614328565b83811115611f685750506000910152565b7fffffffff00000000000000000000000000000000000000000000000000000000831681526000825161438b816004850160208701614325565b919091016004019392505050565b60008251614246818460208701614325565b6000602082840312156143bd57600080fd5b5051919050565b600081518084526143dc816020860160208601614325565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061399e60208301846143c4565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614459576144596141aa565b500290565b600082614494577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600060c0820173ffffffffffffffffffffffffffffffffffffffff808a1684526020898186015288604086015260c0606086015282885180855260e087019150828a01945060005b818110156144ff5785518516835294830194918301916001016144e1565b5050858103608087015287518082529082019350915080870160005b838110156145375781518552938201939082019060010161451b565b5050505083151560a08401529050979650505050505050565b60008219821115614563576145636141aa565b500190565b60006020828403121561457a57600080fd5b815161399e81613d18565b600082601f83011261459657600080fd5b813560206145a6613cd083613c59565b82815260059290921b840181019181810190868411156145c557600080fd5b8286015b84811015611c7d57803567ffffffffffffffff8111156145e95760008081fd5b6145f78986838b0101613eac565b8452509183019183016145c9565b60006020828403121561461757600080fd5b813567ffffffffffffffff8082111561462f57600080fd5b9083019060a0828603121561464357600080fd5b61464b613be7565b82358281111561465a57600080fd5b61466687828601613caf565b82525060208301358281111561467b57600080fd5b61468787828601613e51565b60208301525060408301358281111561469f57600080fd5b6146ab87828601614585565b604083015250606083013560608201526080830135828111156146cd57600080fd5b6146d987828601613eac565b60808301525095945050505050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401528085166040840152506080606083015261472960808301846143c4565b9695505050505050565b60008351614745818460208801614325565b7f4572726f72280000000000000000000000000000000000000000000000000000908301908152835161477f816006840160208801614325565b7f290000000000000000000000000000000000000000000000000000000000000060069290910191820152600701949350505050565b600083516147c7818460208801614325565b7f50616e6963280000000000000000000000000000000000000000000000000000908301908152835161477f816006840160208801614325565b60008351614813818460208801614325565b7f556e6b6e6f776e28000000000000000000000000000000000000000000000000908301908152835161484d816008840160208801614325565b7f29000000000000000000000000000000000000000000000000000000000000006008929091019182015260090194935050505056fe66696e616c5472616e73616374696f6e50726f63657373696e67206661696c65643a20a264697066735822122040b6f6e6e82b71d47574ea2654ad0c0efa66360829929aedf1893e8eb700cb6e64736f6c63430008090033

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

00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

-----Decoded View---------------
Arg [0] : _WETH (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1


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
ETH7.88%$0.02934152,762.6942$1,548.13
ETH3.53%$0.004963139,671.5613$693.17
ETH2.80%$0.000935587,945.3323$549.5
ETH2.07%$0.0000626,551,639.1832$406.86
ETH1.54%$0.999974303.4839$303.48
ETH1.40%$1.02270.2339$275.64
ETH1.33%$0.02452310,642.0131$260.98
ETH1.04%$1,788.990.1138$203.67
ETH0.71%$0.000313448,399.2861$140.19
ETH0.67%$1,788.990.0734$131.22
ETH0.62%$93,3880.00131101$122.43
ETH0.59%$0.28786400$115.14
ETH0.59%$0.000875131,614.1711$115.11
ETH0.53%$0.000457227,057.7937$103.79
ETH0.44%$0.00364623,710.4727$86.45
ETH0.36%$0.365941191.0366$69.91
ETH0.32%$0.8673.5933$63.29
ETH0.31%$0.000361171,452.2681$61.84
ETH0.28%$155.7736$55.77
ETH0.28%$0.136648398.3237$54.43
ETH0.26%$282.370.1775$50.13
ETH0.22%$0.098756440.1411$43.47
ETH0.22%$42.081.0212$42.97
ETH0.17%$0.2518136.3887$34.34
ETH0.17%$1.1429.9022$34.11
ETH0.17%$1.1429.9022$34.11
ETH0.17%$0.149472223.5943$33.42
ETH0.16%$0.00125724,896.7484$31.29
ETH0.16%$0.87417935.447$30.99
ETH0.15%$0.0003197,558.3026$30.21
ETH0.15%$57.670.4951$28.55
ETH0.13%$0.0033917,748.6648$26.27
ETH0.13%$0.00086929,440.1282$25.58
ETH0.13%$0.000156163,421.7848$25.45
ETH0.13%$125.1499$25.15
ETH0.13%$0.00184613,499.4352$24.92
ETH0.12%$0.00019128,153.3625$24.41
ETH0.12%$0.0179071,358.6897$24.33
ETH0.12%$0.061723379.9923$23.45
ETH0.12%$93,8630.00024158$22.68
ETH0.11%$11.421.9382$22.13
ETH0.11%$107.950.2042$22.05
ETH0.11%<$0.00000160,059,440.6205$21.51
ETH0.10%$0.000173115,982.7343$20.07
ETH0.09%$0.00238,092.9877$18.62
ETH0.09%$0.0115641,559.1211$18.03
ETH0.08%$0.99979416.0974$16.09
ETH0.08%<$0.0000011,516,854,469.3216$15.76
ETH0.08%$0.00059226,172.5942$15.49
ETH0.07%$1.0413.359$13.89
ETH0.07%$1,489.90.00871758$12.99
ETH0.06%$0.00048925,338.0188$12.38
ETH0.06%$0.0003436,290.2445$12.33
ETH0.06%$0.21785956.2389$12.25
ETH0.06%$2,147.740.00567537$12.19
ETH0.06%$0.00076715,195.3427$11.65
ETH0.05%$0.013347807.168$10.77
ETH0.05%$0.0036172,920.2016$10.56
ETH0.05%$0.0034712,935.6777$10.19
ETH0.05%$0.059704163.0843$9.74
ETH0.04%$0.00041221,028.1283$8.67
ETH0.04%$0.060717132.471$8.04
ETH0.04%$0.00019540,043.2192$7.82
ETH0.04%$0.000236,758.2069$7.35
ETH0.03%$0.019804346.3158$6.86
ETH0.03%$163.80.0412$6.75
ETH0.03%$0.13279349.24$6.54
ETH0.03%$18.190.3031$5.51
ETH0.02%$14.860.3273$4.86
ETH0.02%$0.4560049.6238$4.39
ETH0.02%$0.000009438,506.9975$4.02
ETH0.01%$0.017946160.7952$2.89
ETH0.01%$0.001621,421.345$2.3
ETH0.01%$0.04259953.0718$2.26
ETH<0.01%$0.005024337.0401$1.69
ETH<0.01%$0.0086195.7221$1.68
ETH<0.01%$0.002231747.0652$1.67
ETH<0.01%$0.3583234.4919$1.61
ETH<0.01%$0.03250945.4339$1.48
ETH<0.01%$0.6528672.1183$1.38
ETH<0.01%$0.003914318.8695$1.25
ETH<0.01%$0.00002743,965.9003$1.18
ETH<0.01%$0.000006170,498.6714$1.1
ETH<0.01%$0.1104979.8634$1.09
ETH<0.01%$0.05986518.0074$1.08
ETH<0.01%$93,7620.0000094$0.8813
ETH<0.01%$39.20.0214$0.8402
ETH<0.01%$5.970.1361$0.8124
ETH<0.01%$1,953.520.00040947$0.7999
ETH<0.01%$0.0000888,024.2808$0.7035
ETH<0.01%$0.0089473.974$0.6613
ETH<0.01%$0.00596498.9899$0.5903
ETH<0.01%<$0.0000011,027,043,390.0069$0.5744
ETH<0.01%$3,624.750.00012811$0.4643
ETH<0.01%$0.002138202.3481$0.4325
ETH<0.01%<$0.0000011,111,107.1782$0.3899
ETH<0.01%$1,783.850.00018195$0.3245
ETH<0.01%$0.00919434.5956$0.318
ETH<0.01%$0.01354820.293$0.2749
ETH<0.01%$0.000472539.7014$0.2545
ETH<0.01%$92,4300.0000023$0.2122
ETH<0.01%$0.0324396.5037$0.2109
ETH<0.01%$0.3202130.6064$0.1941
ETH<0.01%$0.0631342.1679$0.1368
ETH<0.01%$0.001268106.8661$0.1355
ARB6.86%$93,5630.0144$1,347.3
ARB2.88%$1,789.360.3158$565.12
ARB0.41%$0.0202733,928.1057$79.63
ARB0.39%$0.328297233.4949$76.66
ARB0.37%$92,3820.00078359$72.39
ARB0.29%$93,1800.00061891$57.67
ARB0.17%$0.99997433.1297$33.13
ARB0.16%$0.99997431.053$31.05
ARB0.12%$1,667.380.0141$23.5
ARB0.10%$1,782.180.0107$19.13
ARB0.09%$118.0703$18.07
ARB0.06%$111.0862$11.09
ARB0.05%$0.0070491,346.4753$9.49
ARB0.05%$0.13951564.4519$8.99
ARB0.04%$1.077.8342$8.35
ARB0.04%$0.9979687.9115$7.9
ARB0.04%$0.9999967.8168$7.82
ARB
Ether (ETH)
0.04%$1,789.360.00392101$7.02
ARB0.03%$15.8421$5.87
ARB0.02%$0.9982664.1938$4.19
ARB0.02%$2,143.640.00185378$3.97
ARB0.02%$0.005729690.0194$3.95
ARB0.02%$0.10377635.8461$3.72
ARB0.02%$0.008403374.0105$3.14
ARB0.01%$0.16396616.3099$2.67
ARB0.01%$0.00016812,506.5927$2.1
ARB<0.01%$0.01783387.6855$1.56
ARB<0.01%$0.3646454.1913$1.53
ARB<0.01%$0.003404386.2917$1.31
ARB<0.01%$0.004155283.8641$1.18
ARB<0.01%$1.760.6691$1.18
ARB<0.01%$0.0003033,620.7894$1.1
ARB<0.01%$0.003683261.6522$0.9637
ARB<0.01%$0.0001465,331.2558$0.7792
ARB<0.01%$0.0004191,466.202$0.6141
ARB<0.01%$0.0819276.9404$0.5686
ARB<0.01%$2.080.2531$0.5264
ARB<0.01%$1.20.4089$0.4906
ARB<0.01%$0.986650.3838$0.3787
ARB<0.01%$0.01018235.5342$0.3618
ARB<0.01%$0.00175170.723$0.2988
ARB<0.01%$0.00000932,704.4041$0.2979
ARB<0.01%$1.140.21$0.2393
ARB<0.01%$0.0230737.6787$0.1771
ARB<0.01%$10.1327$0.1327
ARB<0.01%$0.0202745.8529$0.1186
ARB<0.01%$0.2703530.3727$0.1007
SONIC8.07%$1.141,391.6854$1,586.52
SONIC2.40%$0.522517902.3925$471.52
SONIC0.82%$0.999972160.4413$160.44
SONIC0.16%$1,782.450.0174$31.01
SONIC0.06%$3.483.1159$10.84
SONIC0.03%$0.0029722,177.4073$6.47
SONIC<0.01%$0.5154521$0.515452
BASE4.75%$1,789.360.5211$932.43
BASE1.47%$1,789.20.1613$288.56
BASE0.92%$0.999971181.4235$181.42
BASE0.31%$0.97704461.8746$60.45
BASE0.25%$93,4650.00053278$49.8
BASE0.25%$148.191$48.19
BASE0.24%$0.152951314.5$48.1
BASE0.21%<$0.0000012,233,182,268$42.21
BASE0.14%$1,782.180.0154$27.45
BASE0.12%$0.0003962,641.9725$24.46
BASE0.12%$0.015971,512.516$24.15
BASE0.09%$0.00000118,094,087.0692$17.94
BASE0.07%$0.00089215,040.6998$13.42
BASE0.05%$0.0033092,678.1387$8.86
BASE0.02%$0.0014623,116.655$4.56
BASE0.02%$2.731.6646$4.54
BASE0.02%$0.9997693.6252$3.62
BASE0.02%$0.766013.9044$2.99
BASE0.01%$0.000693,831.2664$2.64
BASE0.01%$0.0000021,483,000.001$2.4
BASE0.01%$0.004402493$2.17
BASE<0.01%$3.480.5202$1.81
BASE<0.01%$0.00483275.3681$1.33
BASE<0.01%$0.003926331.7075$1.3
BASE<0.01%<$0.000001348,036,496.8$0.8352
BASE<0.01%$0.003247253.8291$0.8241
BASE<0.01%$0.02314834.9355$0.8086
BASE<0.01%$10.5953$0.5976
BASE<0.01%$0.002389204.7887$0.4893
BASE<0.01%$0.000922525.8807$0.4849
BASE<0.01%$0.4897920.8828$0.4324
BASE<0.01%$0.000564765.5758$0.4316
BASE<0.01%$0.00803425.7358$0.2067
BASE<0.01%$0.00001612,662.6793$0.1979
BASE<0.01%$0.0316065.7644$0.1821
BASE<0.01%$0.1390411$0.139
BASE<0.01%$0.00001112,155.4228$0.1323
AVAX3.62%$22.631.465$710.99
AVAX2.27%$1445.2803$445.32
AVAX1.06%$0.999981207.5141$207.51
AVAX0.36%$1,789.360.0398$71.24
AVAX0.18%$27.191.3251$36.03
AVAX0.17%$22.681.4994$34
AVAX<0.01%$11.1155$1.12
AVAX<0.01%$2.090.1972$0.4127
AVAX<0.01%$0.9999460.3358$0.3358
BSC1.96%$613.130.627$384.41
BSC0.98%$0.710714271.8354$193.2
BSC0.62%$0.0000881,395,258.6583$122.27
BSC0.60%$1118.424$118.48
BSC0.46%$610.220.1491$90.99
BSC0.44%$186.0449$86.04
BSC0.39%$1,789.750.0427$76.45
BSC0.35%$0.092038755.2683$69.51
BSC0.28%$0.000168326,263.4654$54.84
BSC0.16%$2.0315.1484$30.75
BSC0.14%$0.00047557,132.7207$27.13
BSC0.09%$93,3880.00019098$17.84
BSC0.09%$0.1732199.99$17.32
BSC0.08%$14.361.072$15.4
BSC0.05%$0.25933436.3917$9.44
BSC0.05%$0.024868375.674$9.34
BSC0.04%$0.32977726.3736$8.7
BSC0.04%$0.054126135.5496$7.34
BSC0.03%$14.9928$4.99
BSC0.02%$0.00010240,492.5665$4.13
BSC0.02%$14.0371$4.04
BSC0.02%$0.021946157.1023$3.45
BSC0.02%$0.1612420.7997$3.35
BSC0.01%$0.0044504.7369$2.22
BSC0.01%$0.0008942,477.0816$2.22
BSC<0.01%$94,102.070.00001315$1.24
BSC<0.01%$0.00001678,559.3153$1.23
BSC<0.01%<$0.0000018,466,329.9602$1.18
BSC<0.01%<$0.000001195,264,355.0599$1.12
BSC<0.01%$0.001337830.2641$1.11
BSC<0.01%$0.1830985.7798$1.06
BSC<0.01%$0.000001804,828$1.01
BSC<0.01%$0.6389331.3249$0.8464
BSC<0.01%$0.004833151.3845$0.7316
BSC<0.01%<$0.000001250,885,756.6329$0.7079
BSC<0.01%$0.4426331.3461$0.5958
BSC<0.01%$0.0000896,642.539$0.5941
BSC<0.01%$0.001773323.6299$0.5736
BSC<0.01%$0.0001613,238.5943$0.5218
BSC<0.01%$0.00001434,061.6727$0.4693
BSC<0.01%$0.00796750.301$0.4007
BSC<0.01%$1.710.2$0.3418
BSC<0.01%$93,3090.00000231$0.2159
BSC<0.01%$0.000364461.8324$0.1682
BSC<0.01%$0.000452333.4021$0.1506
POL1.38%$0.2198811,233.5548$271.24
POL0.91%$0.00997917,838.9281$178.02
POL0.48%$0.0274053,406.9277$93.37
POL0.47%$0.00904410,220.1214$92.43
POL0.40%$178.5728$78.57
POL0.22%$2.2819.1302$43.69
POL0.17%$0.99999634.0198$34.02
POL0.16%$0.218963139.1855$30.48
POL0.14%$0.0108852,537.6383$27.62
POL0.10%$0.3409758.9044$20.08
POL0.07%$0.00066621,109.8972$14.06
POL0.06%$1,780.630.00666579$11.87
POL0.05%$175.970.0584$10.27
POL0.04%$93,6420.0000834$7.81
POL0.04%$72.730.1034$7.52
POL0.04%$0.0000071,108,929.7123$7.45
POL0.03%$0.9999966.1543$6.15
POL0.03%$0.0017642,868.1169$5.06
POL0.02%$163.30.026$4.24
POL0.02%$0.00066,130.1751$3.68
POL0.01%$0.0003957,456.5473$2.95
POL0.01%$0.4321926.6106$2.86
POL0.01%$12.6535$2.65
POL0.01%$0.09510325.2278$2.4
POL0.01%$0.0725929.452$2.14
POL0.01%$0.05540635.7559$1.98
POL<0.01%$1.141.2932$1.47
POL<0.01%$0.0154991.1494$1.41
POL<0.01%$0.005903213.6124$1.26
POL<0.01%$0.03953927.5828$1.09
POL<0.01%$0.00705883.2266$0.5874
POL<0.01%$0.00749573.0659$0.5476
POL<0.01%$14.780.0345$0.5098
POL<0.01%$1.040.4605$0.4779
POL<0.01%$0.00416395.8779$0.3991
POL<0.01%$0.954130.2934$0.2799
POL<0.01%$0.002505102.4548$0.2566
POL<0.01%$0.0155710.524$0.1638
POL<0.01%$0.8017780.1925$0.1543
POL<0.01%$0.999960.1243$0.1243
POL<0.01%$0.000262402.9213$0.1053
POL<0.01%$0.000971103.9489$0.1009
ZKSYNC4.15%$1,788.90.4558$815.38
LINEA0.96%$1189.4654$189.47
LINEA0.77%$0.999995150.6792$150.68
LINEA0.73%$1,784.020.0802$143.14
LINEA0.32%$1,788.90.035$62.66
LINEA0.28%$0.00482911,298.1108$54.56
LINEA0.25%$0.000184262,146.3385$48.28
LINEA0.22%$142.8795$42.88
LINEA0.13%$0.203001124.0368$25.18
LINEA0.05%$0.000088122,908.6217$10.79
LINEA0.04%$0.021069378.5653$7.98
LINEA0.04%$93,5980.00008308$7.78
LINEA0.03%$0.0015384,396.1826$6.76
LINEA<0.01%$0.1342013.5735$0.4795
LINEA<0.01%$0.00000295,672.5059$0.1808
LINEA<0.01%$5.950.0261$0.1555
BLAST2.87%$1,788.920.3152$563.87
BLAST0.11%$1,789.360.0117$20.92
BLAST0.01%$0.000012211,609.7102$2.44
BLAST<0.01%$0.003268446.8593$1.46
OP0.33%$0.0246732,622.1459$64.69
OP0.23%$146.1287$46.13
OP0.22%$1,789.360.0245$43.92
OP0.18%$1.1730.9297$36.19
OP0.18%$0.99997434.7345$34.73
OP0.13%$0.7513633.3067$25.03
OP0.13%$0.99997424.7928$24.79
OP0.09%$1,789.360.0104$18.65
OP0.08%$93,5630.00016078$15.04
OP0.03%$0.9993726.4551$6.45
OP<0.01%$0.00011914,232.1511$1.69
OP<0.01%$11.6315$1.63
OP<0.01%$7.230.1272$0.9194
OP<0.01%$0.3646450.6742$0.2458
OP<0.01%$0.0492784.658$0.2295
OP<0.01%$0.2001740.6989$0.1399
OP<0.01%$0.000303445.4426$0.1349
MANTLE0.90%$1.11158.7138$176.17
MANTLE0.16%$0.99745731.2275$31.15
MANTLE0.10%$0.70525426.7188$18.84
MANTLE0.08%$1,780.020.00892305$15.88
MANTLE0.02%$0.06943552.0913$3.62
MANTLE0.02%$0.997533.034$3.03
MANTLE<0.01%$0.000146816.8215$0.119
MANTLE<0.01%$0.7044850.003$0.002113
SCROLL0.47%$192.115$92.13
SCROLL0.06%$93,618.220.00013038$12.21
SCROLL0.04%$5.951.4531$8.65
SCROLL0.03%$15.1422$5.14
SCROLL<0.01%$0.06625510.8401$0.7182
SCROLL<0.01%$2,145.860.00032189$0.6907
SCROLL<0.01%$0.3652221.2911$0.4715
SCROLL<0.01%$0.0048365.8824$0.3182
SCROLL<0.01%$0.0185586.8708$0.1275
SCROLL<0.01%$1,905.350.00006459$0.123
SCROLL<0.01%$1,788.90.000000000000000044<$0.000001
ARBNOVA0.17%$1,789.020.0182$32.49
OPBNB0.14%$610.570.045$27.48
ZKEVM0.02%$1,788.990.002$3.58
ZKEVM<0.01%$0.9999811.7393$1.74
ZKEVM<0.01%$0.2194173.063$0.672
ZKEVM<0.01%$0.2498482.5205$0.6297
ZKEVM<0.01%$2.090.2309$0.4832
TAIKO0.03%$1,788.90.0030001$5.37
CRONOS<0.01%<$0.00000161,076,400.8675$1.37
CRONOS<0.01%$0.000001120,120.1201$0.1537
APE<0.01%$0.5060660.1512$0.076541
BERA<0.01%$3.660.000004$0.000015
UNI<0.01%$1,788.860.000000002516$0.000005
BTTC<0.01%$0.0000010.000000000000000004<$0.000001
Loading...
Loading
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.