ETH Price: $3,438.84 (+4.19%)

Contract

0x96866592ccc2c5950CEE1Ca83685879DB0726150
 

Overview

ETH Balance

0.017528465970658449 ETH

Eth Value

$60.28 (@ $3,438.84/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit212385252024-11-21 20:34:2345 hrs ago1732221263IN
0x96866592...DB0726150
0.02 ETH0.0061832823.24623044
Deposit212336462024-11-21 4:13:112 days ago1732162391IN
0x96866592...DB0726150
0.005 ETH0.0028953210.88362794
Deposit212335512024-11-21 3:53:592 days ago1732161239IN
0x96866592...DB0726150
0.008 ETH0.001490110.30914906
Deposit212315892024-11-20 21:19:352 days ago1732137575IN
0x96866592...DB0726150
0 ETH0.0046262114.10681266
Deposit212310282024-11-20 19:27:112 days ago1732130831IN
0x96866592...DB0726150
0 ETH0.0040438220.34118929
Deposit212246502024-11-19 22:04:353 days ago1732053875IN
0x96866592...DB0726150
0 ETH0.0052204815.91766427
Deposit212162822024-11-18 18:05:354 days ago1731953135IN
0x96866592...DB0726150
0 ETH0.0035899322.3892073
Deposit212147532024-11-18 12:58:235 days ago1731934703IN
0x96866592...DB0726150
0 ETH0.0018857811.76026567
Deposit212069062024-11-17 10:43:476 days ago1731840227IN
0x96866592...DB0726150
0 ETH0.003081689.39650807
Deposit211798872024-11-13 16:12:5910 days ago1731514379IN
0x96866592...DB0726150
0.4 ETH0.0228486885.8827877
Deposit211762892024-11-13 4:09:5910 days ago1731470999IN
0x96866592...DB0726150
0 ETH0.0087060426.54702335
Deposit211723742024-11-12 15:03:2311 days ago1731423803IN
0x96866592...DB0726150
0.5 ETH0.0072437628.31775097
Deposit211705892024-11-12 9:04:4711 days ago1731402287IN
0x96866592...DB0726150
0 ETH0.0055413434.56167074
Deposit211673292024-11-11 22:08:4711 days ago1731362927IN
0x96866592...DB0726150
0 ETH0.0074015646.15563167
Deposit211642892024-11-11 11:57:2312 days ago1731326243IN
0x96866592...DB0726150
0 ETH0.0036821718.52202933
Deposit211641352024-11-11 11:26:2312 days ago1731324383IN
0x96866592...DB0726150
0 ETH0.0038189915.61452168
Deposit211641342024-11-11 11:26:1112 days ago1731324371IN
0x96866592...DB0726150
0 ETH0.0025270915.76062606
Deposit211620572024-11-11 4:29:4712 days ago1731299387IN
0x96866592...DB0726150
0 ETH0.0033500915.62041666
Deposit211608172024-11-11 0:20:3512 days ago1731284435IN
0x96866592...DB0726150
0 ETH0.0028815117.96894281
Deposit211554502024-11-10 6:23:3513 days ago1731219815IN
0x96866592...DB0726150
0 ETH0.0021428413.36339193
Deposit211465272024-11-09 0:31:5914 days ago1731112319IN
0x96866592...DB0726150
0.035 ETH0.002618449.84210728
Deposit211440432024-11-08 16:13:2315 days ago1731082403IN
0x96866592...DB0726150
0 ETH0.0038792624.19220163
Deposit211439962024-11-08 16:03:5915 days ago1731081839IN
0x96866592...DB0726150
0 ETH0.0043824827.32885971
Deposit211399792024-11-08 2:36:3515 days ago1731033395IN
0x96866592...DB0726150
0.321 ETH0.00321112.72248389
Deposit211395152024-11-08 1:01:5915 days ago1731027719IN
0x96866592...DB0726150
0.1933 ETH0.0035941914.03720557
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
212385252024-11-21 20:34:2345 hrs ago1732221263
0x96866592...DB0726150
0.02 ETH
212336462024-11-21 4:13:112 days ago1732162391
0x96866592...DB0726150
0.005 ETH
212335512024-11-21 3:53:592 days ago1732161239
0x96866592...DB0726150
0.008 ETH
211798872024-11-13 16:12:5910 days ago1731514379
0x96866592...DB0726150
0.4 ETH
211723742024-11-12 15:03:2311 days ago1731423803
0x96866592...DB0726150
0.5 ETH
211465272024-11-09 0:31:5914 days ago1731112319
0x96866592...DB0726150
0.035 ETH
211399792024-11-08 2:36:3515 days ago1731033395
0x96866592...DB0726150
0.321 ETH
211395152024-11-08 1:01:5915 days ago1731027719
0x96866592...DB0726150
0.1933 ETH
211338622024-11-07 6:03:4716 days ago1730959427
0x96866592...DB0726150
53 ETH
211317622024-11-06 23:01:5916 days ago1730934119
0x96866592...DB0726150
0.581 ETH
211314842024-11-06 22:06:2316 days ago1730930783
0x96866592...DB0726150
2 ETH
211176592024-11-04 23:46:1118 days ago1730763971
0x96866592...DB0726150
0.036 ETH
211113782024-11-04 2:44:4719 days ago1730688287
0x96866592...DB0726150
0.189 ETH
211043072024-11-03 3:04:1120 days ago1730603051
0x96866592...DB0726150
0.3835 ETH
210913102024-11-01 7:29:5922 days ago1730446199
0x96866592...DB0726150
0.1 ETH
210900592024-11-01 3:18:5922 days ago1730431139
0x96866592...DB0726150
0.0924 ETH
210880712024-10-31 20:39:4722 days ago1730407187
0x96866592...DB0726150
0.1303 ETH
210873362024-10-31 18:12:2322 days ago1730398343
0x96866592...DB0726150
0.0475 ETH
210865592024-10-31 15:36:4723 days ago1730389007
0x96866592...DB0726150
0.008 ETH
210865522024-10-31 15:35:2323 days ago1730388923
0x96866592...DB0726150
0.008 ETH
210858392024-10-31 13:12:3523 days ago1730380355
0x96866592...DB0726150
0.02 ETH
210685942024-10-29 3:25:4725 days ago1730172347
0x96866592...DB0726150
0.02 ETH
210674032024-10-28 23:26:2325 days ago1730157983
0x96866592...DB0726150
0.0059 ETH
210588572024-10-27 18:48:1126 days ago1730054891
0x96866592...DB0726150
0.019 ETH
210588512024-10-27 18:46:5926 days ago1730054819
0x96866592...DB0726150
0.009412 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MultiSigPoolV5

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : MultiSigPoolV5.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

import "../interfaces/IAggregationRouterV5.sol";
import "../interfaces/IWETH.sol";
import "../interfaces/IStarkEx.sol";
import "../interfaces/IFactRegister.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

/**
 *
 * MultiSigPool
 * ============
 *
 * Basic multi-signer wallet designed for use in a co-signing environment where 2 signatures are require to move funds.
 * Typically used in a 2-of-3 signing configuration. Uses ecrecover to allow for 2 signatures in a single transaction.
 *
 * The signatures are created on the operation hash and passed to withdrawETH/withdrawERC20
 * The signer is determined by ECDSA.recover().
 *
 * The signature is created with ethereumjs-util.ecsign(operationHash).
 * Like the eth_sign RPC call, it packs the values as a 65-byte array of [r, s, v].
 * Unlike eth_sign, the message is not prefixed.
 *
 */
contract MultiSigPoolV5 is ReentrancyGuard {
  using SafeERC20 for IERC20;
  using SafeMath for uint256;

  // Events
  event Deposit(address from, address token, uint256 spentAmount, uint256 swapReturnAmount, uint256 starkKey, uint256 positionId);
  event WithdrawETH(uint256 orderId, address to, uint256 amount);
  event WithdrawERC20(uint256 orderId, address token, address to, uint256 amount);

  // Public fields
  address immutable public USDC_ADDRESS;                  // USDC contract address
  address immutable public STARKEX_ADDRESS;               // stark exchange adress
  address immutable public FACT_ADDRESS;                  // stark external fact contract address
  address immutable public AGGREGATION_ROUTER_V5_ADDRESS; // 1inch AggregationRouterV5  address
  address[] public signers;                               // The addresses that can co-sign transactions on the wallet
  mapping(uint256 => order) orders;                       // history orders
  uint256 public ASSET_TYPE;                              // stark exchange defined USDC

  IERC20 private constant ETH_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
  IERC20 private constant ZERO_ADDRESS = IERC20(address(0));

  struct order{
    address to;     // The address the transaction was sent to
    uint256 amount; // Amount of Wei sent to the address
    address token;  // The address of the ERC20 token contract, 0 means ETH
    bool executed;  // If the order was executed
  }

  /**
   * Set up a simple 2-3 multi-sig wallet by specifying the signers allowed to be used on this wallet.
   * 2 signers will be require to send a transaction from this wallet.
   * Note: The sender is NOT automatically added to the list of signers.
   * Signers CANNOT be changed once they are set
   *
   * @param allowedSigners      An array of signers on the wallet
   * @param usdc                The USDC contract address
   * @param aggregationRouterV5 The 1inch exchange router address
   * @param starkex             The stark exchange address
   * @param fact                The stark fact address
   */
  constructor(address[] memory allowedSigners, address usdc,address aggregationRouterV5,address starkex, address fact, uint256 assetType) {
    require(allowedSigners.length == 3, "invalid allSigners length");
    require(allowedSigners[0] != allowedSigners[1], "must be different signers");
    require(allowedSigners[0] != allowedSigners[2], "must be different signers");
    require(allowedSigners[1] != allowedSigners[2], "must be different signers");
    require(usdc != address(0), "invalid usdc address");
    require(aggregationRouterV5 != address(0), "invalid 1inch address");

    signers = allowedSigners;
    USDC_ADDRESS = usdc;
    AGGREGATION_ROUTER_V5_ADDRESS = aggregationRouterV5;
    STARKEX_ADDRESS = starkex;
    FACT_ADDRESS = fact;
    ASSET_TYPE = assetType;
  }

  /**
   * Gets called when a transaction is received without calling a method
   */
  receive() external payable { }

  /**
    * @notice Make a deposit to the Starkware Layer2, after converting funds to USDC.
    *  Funds will be transferred from the sender and USDC will be deposited into this wallet, and 
    *  generate a deposit event specified by the starkKey and positionId.
    *
    * @param  token          The ERC20 token to convert from
    * @param  amount         The amount in Wei to deposit.
    * @param  starkKey       The starkKey of the L2 account to deposit into.
    * @param  positionId     The positionId of the L2 account to deposit into.
    * @param  exchangeData   Trade parameters for the exchange.
    */
  function deposit(
    IERC20 token,
    uint256 amount,
    uint256 starkKey,
    uint256 positionId,
    bytes calldata exchangeData
  ) public payable nonReentrant returns (uint256) {
    uint256 returnAmount;
    uint256 beforeSwapBalance = IERC20(USDC_ADDRESS).balanceOf(address(this));

    if (address(token) == USDC_ADDRESS){   // deposit USDC 
      token.safeTransferFrom(msg.sender, address(this), amount);
      returnAmount = amount;
    } else {
      (, IAggregationRouterV5.SwapDescription memory desc, ,) = abi.decode(exchangeData[4:], (address, IAggregationRouterV5.SwapDescription, bytes, bytes));
      require(token == desc.srcToken, "mismatch token and desc.srcToken");
      require(USDC_ADDRESS == address(desc.dstToken), "invalid desc.dstToken");
      require(amount == desc.amount, "mismatch amount and desc.amount");
      require(address(this) == desc.dstReceiver, "invalid desc.dstReceiver");

      bool isNativeToken = isNative(desc.srcToken);
      if (!isNativeToken) {  // deposit other ERC20 tokens 
        desc.srcToken.safeTransferFrom(msg.sender, address(this), desc.amount);

        // safeApprove requires unsetting the allowance first.
        desc.srcToken.safeApprove(AGGREGATION_ROUTER_V5_ADDRESS, 0);
        desc.srcToken.safeApprove(AGGREGATION_ROUTER_V5_ADDRESS, desc.amount);
      }

      // Swap token
      (bool success, bytes memory returndata)= AGGREGATION_ROUTER_V5_ADDRESS.call{value:msg.value}(exchangeData);
      require(success, "exchange failed");

      (returnAmount, ) = abi.decode(returndata, (uint256, uint256));
      require(returnAmount >= desc.minReturnAmount, "received USDC less than minReturnAmount");
    }

    uint256 afterSwapBalance = IERC20(USDC_ADDRESS).balanceOf(address(this));
    require (afterSwapBalance == beforeSwapBalance.add(returnAmount),"swap incorrect");

    emit Deposit(
      msg.sender,
      address(token),
      amount,
      returnAmount,
      starkKey,
      positionId
    );

    // ethereum deposit to starkex directly
    if (block.chainid == 1 || block.chainid == 5 || block.chainid == 11155111){
      // safeApprove requires unsetting the allowance first.
      IERC20(USDC_ADDRESS).safeApprove(STARKEX_ADDRESS, 0);
      IERC20(USDC_ADDRESS).safeApprove(STARKEX_ADDRESS, returnAmount);

      // deposit to starkex
      IStarkEx starkEx = IStarkEx(STARKEX_ADDRESS);
      starkEx.depositERC20(starkKey, ASSET_TYPE, positionId, returnAmount);
      return returnAmount;
    }

    return returnAmount;
  }

  /**
   * Withdraw ETHER from this wallet using 2 signers.
   *
   * @param  to         the destination address to send an outgoing transaction
   * @param  amount     the amount in Wei to be sent
   * @param  expireTime the number of seconds since 1970 for which this transaction is valid
   * @param  orderId    the unique order id 
   * @param  allSigners all signers who sign the tx
   * @param  signatures the signatures of tx
   */
  function withdrawETH(
    address payable to,
    uint256 amount,
    uint256 expireTime,
    uint256 orderId,
    address[] memory allSigners,
    bytes[] memory signatures
  ) public nonReentrant {
    require(allSigners.length >= 2, "invalid allSigners length");
    require(allSigners.length == signatures.length, "invalid signatures length");
    require(allSigners[0] != allSigners[1],"can not be same signer"); // must be different signer
    require(expireTime >= block.timestamp,"expired transaction");

    bytes32 operationHash = keccak256(abi.encodePacked("ETHER", to, amount, expireTime, orderId, address(this)));
    operationHash = ECDSA.toEthSignedMessageHash(operationHash);
    
    for (uint8 index = 0; index < allSigners.length; index++) {
      address signer = ECDSA.recover(operationHash, signatures[index]);
      require(signer == allSigners[index], "invalid signer");
      require(isAllowedSigner(signer), "not allowed signer");
    }

    // Try to insert the order ID. Will revert if the order id was invalid
    tryInsertOrderId(orderId, to, amount, address(0));

    // send ETHER
    require(address(this).balance >= amount, "Address: insufficient balance");
    (bool success, ) = to.call{value: amount}("");
    require(success, "Address: unable to send value, recipient may have reverted");

    emit WithdrawETH(orderId, to, amount);
  }
  
  /**
   * Withdraw ERC20 from this wallet using 2 signers.
   *
   * @param  to         the destination address to send an outgoing transactioni
   * @param  amount     the amount in Wei to be sent
   * @param  token      the address of the erc20 token contract
   * @param  expireTime the number of seconds since 1970 for which this transaction is valid
   * @param  orderId    the unique order id 
   * @param  allSigners all signer who sign the tx
   * @param  signatures the signatures of tx
   */
  function withdrawErc20(
    address to,
    uint256 amount,
    address token,
    uint256 expireTime,
    uint256 orderId,
    address[] memory allSigners,
    bytes[] memory signatures
  ) public nonReentrant {
    require(allSigners.length >=2, "invalid allSigners length");
    require(allSigners.length == signatures.length, "invalid signatures length");
    require(allSigners[0] != allSigners[1],"can not be same signer"); // must be different signer
    require(expireTime >= block.timestamp,"expired transaction");

    bytes32 operationHash = keccak256(abi.encodePacked("ERC20", to, amount, token, expireTime, orderId, address(this)));
    operationHash = ECDSA.toEthSignedMessageHash(operationHash);

    for (uint8 index = 0; index < allSigners.length; index++) {
      address signer = ECDSA.recover(operationHash, signatures[index]);
      require(signer == allSigners[index], "invalid signer");
      require(isAllowedSigner(signer),"not allowed signer");
    }

    // Try to insert the order ID. Will revert if the order id was invalid
    tryInsertOrderId(orderId, to, amount, token);

    // Success, send ERC20 token
    IERC20(token).safeTransfer(to, amount);
    emit WithdrawERC20(orderId, token, to, amount);
  }

  /**
   * Withdraw ERC20 from this wallet using 2 signers.
   * The function only can be called when user make a fast withdraw in ApexPro.
   *
   * @param  to         the destination address to send an outgoing transaction
   * @param  amount     the amount in wei to be sent
   * @param  token      the address of the erc20 token contract
   * @param  salt       salt amount to generate fact
   * @param  expireTime the number of seconds since 1970 for which this transaction is valid
   * @param  orderId    the unique order id 
   * @param  allSigners all signer who sign the tx
   * @param  signatures the signatures of tx
   */
  function factTransferErc20(
    address to,
    address token,
    uint256 amount,
    uint256 salt,
    uint256 expireTime,
    uint256 orderId,
    address[] memory allSigners,
    bytes[] memory signatures
  ) public nonReentrant {
    require(token == USDC_ADDRESS,"invalid token");
    require(allSigners.length >=2, "invalid allSigners length");
    require(allSigners.length == signatures.length, "invalid signatures length");
    require(allSigners[0] != allSigners[1],"can not be same signer"); // must be different signer
    require(expireTime >= block.timestamp,"expired transaction");

    bytes32 operationHash = keccak256(abi.encodePacked("FAST",to, amount, token, expireTime, salt, orderId, address(this)));
    operationHash = ECDSA.toEthSignedMessageHash(operationHash);

    for (uint8 index = 0; index < allSigners.length; index++) {
      address signer = ECDSA.recover(operationHash, signatures[index]);
      require(signer == allSigners[index], "invalid signer");
      require(isAllowedSigner(signer),"not allowed signer");
    }

    // Try to insert the order ID. Will revert if the order id was invalid
    tryInsertOrderId(orderId, to, amount, token);

    // check fact 
    bytes32 transferFact =  keccak256(abi.encodePacked(to, amount, token, salt));
    IFactRegister factAddress = IFactRegister(FACT_ADDRESS);
    require(!factAddress.isValid(transferFact),"fact already isValid");

    // safeApprove requires unsetting the allowance first.
    IERC20(token).safeApprove(FACT_ADDRESS, 0);
    IERC20(token).safeApprove(FACT_ADDRESS, amount);
  
    factAddress.transferERC20(to, token, amount, salt);
    emit WithdrawERC20(orderId, token, to, amount);
  }

  function isNative(IERC20 token_) internal pure returns (bool) {
    return (token_ == ZERO_ADDRESS || token_ == ETH_ADDRESS);
  }

  /**
   * Determine if an address is a signer on this wallet
   *
   * @param signer address to check
   */
  function isAllowedSigner(address signer) public view returns (bool) {
    // Iterate through all signers on the wallet and
    for (uint i = 0; i < signers.length; i++) {
      if (signers[i] == signer) {
        return true;
      }
    }
    return false;
  }
  
  /**
   * Verify that the order id has not been used before and inserts it. Throws if the order ID was not accepted.
   *
   * @param orderId   the unique order id 
   * @param to        the destination address to send an outgoing transaction
   * @param amount     the amount in Wei to be sent
   * @param token     the address of the ERC20 contract
   */
  function tryInsertOrderId(
      uint256 orderId, 
      address to,
      uint256 amount, 
      address token
    ) internal {
    if (orders[orderId].executed) {
        // This order ID has been excuted before. Disallow!
        revert("repeated order");
    }

    orders[orderId].executed = true;
    orders[orderId].to = to;
    orders[orderId].amount = amount;
    orders[orderId].token = token;
  }

  /**
   * calcSigHash is a helper function that to help you generate the sighash needed for withdrawal.
   *
   * @param to          the destination address
   * @param amount       the amount in Wei to be sent
   * @param token       the address of the ERC20 contract
   * @param expireTime  the number of seconds since 1970 for which this transaction is valid
   * @param orderId     the unique order id 
   * @param isFact      If fact withdraw calc sighash
   * @param salt        Th salt amount to generate fact
   */

  function calcSigHash(
    address to,
    uint256 amount,
    address token,
    uint256 expireTime,
    uint256 orderId,
    bool isFact,
    uint256 salt) public view returns (bytes32) {
    bytes32 operationHash;

    if (isFact) {
      operationHash = keccak256(abi.encodePacked("FAST", to, amount, token, expireTime, salt, orderId, address(this)));
    } else if (token == address(0)) {
      operationHash = keccak256(abi.encodePacked("ETHER", to, amount, expireTime, orderId, address(this)));
    } else {
      operationHash = keccak256(abi.encodePacked("ERC20", to, amount, token, expireTime, orderId, address(this)));
    }
    return operationHash;
  }
}

File 2 of 17 : 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 3 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

File 4 of 17 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/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 5 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 6 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 7 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 8 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32")
            mstore(0x1c, hash)
            message := keccak256(0x00, 0x3c)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

File 9 of 17 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

File 10 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 11 of 17 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 12 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 13 of 17 : IAggregationExecutorV5.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IAggregationExecutor {
    function callBytes(bytes calldata data) external payable;
}

File 14 of 17 : IAggregationRouterV5.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "./IAggregationExecutorV5.sol";

interface IAggregationRouterV5 {
    struct SwapDescription {
      IERC20 srcToken;
      IERC20 dstToken;
      address payable srcReceiver;
      address payable dstReceiver;
      uint256 amount;
      uint256 minReturnAmount;
      uint256 flags;
    }

   function swap(
        IAggregationExecutor executor,
        SwapDescription calldata desc,
        bytes calldata permit,
        bytes calldata data
    )
        external
        payable
        returns (
            uint256 returnAmount,
            uint256 spentAmount
        );
}

File 15 of 17 : IFactRegister.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IFactRegister {
    function isValid(bytes32 fact) external view returns (bool);

    function transferERC20(
        address recipient,
        address erc20,
        uint256 amount,
        uint256 salt
    ) external;
}

File 16 of 17 : IStarkEx.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;

interface IStarkEx  {
    function getEthKey(
        uint256 starkKey
    ) external view returns (address);

    function isMsgSenderKeyOwner(
        uint256 ownerKey
    ) external view returns (bool);

    function registerEthAddress(
        address ethKey,
        uint256 starkKey,
        bytes calldata starkSignature
    ) external;

    function depositERC20(
        uint256 starkKey,
        uint256 assetType,
        uint256 vaultId,
        uint256 quantizedAmount
    ) external;

    function getWithdrawalBalance(
        uint256 starkKey,
        uint256 assetId
    ) external view returns (uint256 balance);

    function withdraw(
        uint256 starkKey, 
        uint256 assetId
    ) external;

    function forcedWithdrawalRequest(
        uint256 starkKey,
        uint256 vaultId,
        uint256 quantizedAmount,
        bool premiumCost
    ) external;
}

File 17 of 17 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IWETH {
    function deposit() external payable;
    function approve(address to, uint256 value) external returns (bool);
    function transfer(address to, uint256 value) external returns (bool);
    function withdraw(uint256) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"allowedSigners","type":"address[]"},{"internalType":"address","name":"usdc","type":"address"},{"internalType":"address","name":"aggregationRouterV5","type":"address"},{"internalType":"address","name":"starkex","type":"address"},{"internalType":"address","name":"fact","type":"address"},{"internalType":"uint256","name":"assetType","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"swapReturnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"starkKey","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"orderId","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"orderId","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawETH","type":"event"},{"inputs":[],"name":"AGGREGATION_ROUTER_V5_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ASSET_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACT_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STARKEX_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"orderId","type":"uint256"},{"internalType":"bool","name":"isFact","type":"bool"},{"internalType":"uint256","name":"salt","type":"uint256"}],"name":"calcSigHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"starkKey","type":"uint256"},{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"bytes","name":"exchangeData","type":"bytes"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"orderId","type":"uint256"},{"internalType":"address[]","name":"allSigners","type":"address[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"factTransferErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"isAllowedSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"signers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"orderId","type":"uint256"},{"internalType":"address[]","name":"allSigners","type":"address[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"expireTime","type":"uint256"},{"internalType":"uint256","name":"orderId","type":"uint256"},{"internalType":"address[]","name":"allSigners","type":"address[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"name":"withdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101006040523480156200001257600080fd5b50604051620053bc380380620053bc8339818101604052810190620000389190620006d5565b6001600081905550600386511462000087576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200007e9062000886565b60405180910390fd5b85600181518110620000c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16866000815181106200011b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156200017d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001749062000864565b60405180910390fd5b85600281518110620001b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168660008151811062000211577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16141562000273576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200026a9062000864565b60405180910390fd5b85600281518110620002ae577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168660018151811062000307577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16141562000369576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003609062000864565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415620003dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d39062000842565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156200044f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004469062000820565b60405180910390fd5b85600190805190602001906200046792919062000557565b508473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508373ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508060038190555050505050505062000a9d565b828054828255906000526020600020908101928215620005d3579160200282015b82811115620005d25782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062000578565b5b509050620005e29190620005e6565b5090565b5b8082111562000601576000816000905550600101620005e7565b5090565b60006200061c6200061684620008d1565b620008a8565b905080838252602082019050828560208602820111156200063c57600080fd5b60005b858110156200067057816200065588826200067a565b8452602084019350602083019250506001810190506200063f565b5050509392505050565b6000815190506200068b8162000a69565b92915050565b600082601f830112620006a357600080fd5b8151620006b584826020860162000605565b91505092915050565b600081519050620006cf8162000a83565b92915050565b60008060008060008060c08789031215620006ef57600080fd5b600087015167ffffffffffffffff8111156200070a57600080fd5b6200071889828a0162000691565b96505060206200072b89828a016200067a565b95505060406200073e89828a016200067a565b94505060606200075189828a016200067a565b93505060806200076489828a016200067a565b92505060a06200077789828a01620006be565b9150509295509295509295565b60006200079360158362000900565b9150620007a082620009c5565b602082019050919050565b6000620007ba60148362000900565b9150620007c782620009ee565b602082019050919050565b6000620007e160198362000900565b9150620007ee8262000a17565b602082019050919050565b60006200080860198362000900565b9150620008158262000a40565b602082019050919050565b600060208201905081810360008301526200083b8162000784565b9050919050565b600060208201905081810360008301526200085d81620007ab565b9050919050565b600060208201905081810360008301526200087f81620007d2565b9050919050565b60006020820190508181036000830152620008a181620007f9565b9050919050565b6000620008b4620008c7565b9050620008c282826200094f565b919050565b6000604051905090565b600067ffffffffffffffff821115620008ef57620008ee62000985565b5b602082029050602081019050919050565b600082825260208201905092915050565b60006200091e8262000925565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6200095a82620009b4565b810181811067ffffffffffffffff821117156200097c576200097b62000985565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f696e76616c69642031696e636820616464726573730000000000000000000000600082015250565b7f696e76616c696420757364632061646472657373000000000000000000000000600082015250565b7f6d75737420626520646966666572656e74207369676e65727300000000000000600082015250565b7f696e76616c696420616c6c5369676e657273206c656e67746800000000000000600082015250565b62000a748162000911565b811462000a8057600080fd5b50565b62000a8e8162000945565b811462000a9a57600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c61486962000b5360003960008181610d24015281816111b301528181611203015261125701526000818161084001528181611ac401528181611bb30152611bff01526000818161081c015281816114f10152818161155d01526115c7015260008181610d4801528181610e4e01528181610ef9015281816110360152818161138d015281816115140152818161157f015261168a01526148696000f3fe6080604052600436106100ab5760003560e01c80638815eb39116100645780638815eb39146101d95780639fdd761d14610204578063bb09d9b71461022f578063cabb9e7a1461025a578063cfe96c8414610297578063f13b4975146102c7576100b2565b806305729d58146100b75780631025e095146100f45780632079fb9a1461011d578063391cdc081461015a578063496eff7b146101855780636b1430d6146101b0576100b2565b366100b257005b600080fd5b3480156100c357600080fd5b506100de60048036038101906100d99190612ec5565b6102f0565b6040516100eb91906139c7565b60405180910390f35b34801561010057600080fd5b5061011b60048036038101906101169190612df7565b6103e2565b005b34801561012957600080fd5b50610144600480360381019061013f919061301e565b6107db565b6040516101519190613862565b60405180910390f35b34801561016657600080fd5b5061016f61081a565b60405161017c9190613862565b60405180910390f35b34801561019157600080fd5b5061019a61083e565b6040516101a79190613862565b60405180910390f35b3480156101bc57600080fd5b506101d760048036038101906101d29190612c5c565b610862565b005b3480156101e557600080fd5b506101ee610d1c565b6040516101fb9190613d89565b60405180910390f35b34801561021057600080fd5b50610219610d22565b6040516102269190613862565b60405180910390f35b34801561023b57600080fd5b50610244610d46565b6040516102519190613862565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190612b9d565b610d6a565b60405161028e91906139ac565b60405180910390f35b6102b160048036038101906102ac9190612f8c565b610e3f565b6040516102be9190613d89565b60405180910390f35b3480156102d357600080fd5b506102ee60048036038101906102e99190612d15565b611680565b005b600080831561033357888888888689306040516020016103169796959493929190613746565b6040516020818303038152906040528051906020012090506103d3565b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561039e5788888787306040516020016103819594939291906136dc565b6040516020818303038152906040528051906020012090506103d2565b8888888888306040516020016103b9969594939291906137d2565b6040516020818303038152906040528051906020012090505b5b80915050979650505050505050565b6103ea611d08565b60028251101561042f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042690613c69565b60405180910390fd5b8051825114610473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046a90613aa9565b60405180910390fd5b816001815181106104ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682600081518110610505577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055b90613d09565b60405180910390fd5b428410156105a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059e90613c89565b60405180910390fd5b60008787878787306040516020016105c4969594939291906137d2565b6040516020818303038152906040528051906020012090506105e581611d58565b905060005b83518160ff16101561075457600061064583858460ff1681518110610638577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611d8e565b9050848260ff1681518110610683577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef90613ae9565b60405180910390fd5b61070181610d6a565b610740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073790613b09565b60405180910390fd5b50808061074c9061414e565b9150506105ea565b5061076184898989611db5565b61078c88888873ffffffffffffffffffffffffffffffffffffffff16611f139092919063ffffffff16565b7ff8eff9ed148da048feccebca2617170aec98bea5840b0b0be8a289ec03c375fd84878a8a6040516107c19493929190613ddb565b60405180910390a1506107d2611f99565b50505050505050565b600181815481106107eb57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61086a611d08565b6002825110156108af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a690613c69565b60405180910390fd5b80518251146108f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ea90613aa9565b60405180910390fd5b8160018151811061092d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682600081518110610985577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156109e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109db90613d09565b60405180910390fd5b42841015610a27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1e90613c89565b60405180910390fd5b60008686868630604051602001610a42959493929190613672565b604051602081830303815290604052805190602001209050610a6381611d58565b905060005b83518160ff161015610bd2576000610ac383858460ff1681518110610ab6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611d8e565b9050848260ff1681518110610b01577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6d90613ae9565b60405180910390fd5b610b7f81610d6a565b610bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb590613b09565b60405180910390fd5b508080610bca9061414e565b915050610a68565b50610be08488886000611db5565b85471015610c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1a90613b89565b60405180910390fd5b60008773ffffffffffffffffffffffffffffffffffffffff1687604051610c499061384d565b60006040518083038185875af1925050503d8060008114610c86576040519150601f19603f3d011682016040523d82523d6000602084013e610c8b565b606091505b5050905080610ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc690613b49565b60405180910390fd5b7f4d7574efc376e1ee5e6eacc9b23ed30ae9f40acfddb028be515fb99a14e2290c858989604051610d0293929190613da4565b60405180910390a15050610d14611f99565b505050505050565b60035481565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600080600090505b600180549050811015610e34578273ffffffffffffffffffffffffffffffffffffffff1660018281548110610dd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610e21576001915050610e3a565b8080610e2c90614105565b915050610d72565b50600090505b919050565b6000610e49611d08565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ea59190613862565b60206040518083038186803b158015610ebd57600080fd5b505afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef59190613047565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff161415610f8057610f7833308a8c73ffffffffffffffffffffffffffffffffffffffff16611fa3909392919063ffffffff16565b879150611389565b600085856004908092610f9593929190613f50565b810190610fa29190612bc6565b5050915050806000015173ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614611019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101090613c09565b60405180910390fd5b806020015173ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16146110ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a290613b29565b60405180910390fd5b806080015189146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890613bc9565b60405180910390fd5b806060015173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a90613a69565b60405180910390fd5b6000611172826000015161202c565b905080611252576111ae33308460800151856000015173ffffffffffffffffffffffffffffffffffffffff16611fa3909392919063ffffffff16565b6111fe7f00000000000000000000000000000000000000000000000000000000000000006000846000015173ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b6112517f00000000000000000000000000000000000000000000000000000000000000008360800151846000015173ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b5b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16348a8a60405161129d929190613642565b60006040518083038185875af1925050503d80600081146112da576040519150601f19603f3d011682016040523d82523d6000602084013e6112df565b606091505b509150915081611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b90613ac9565b60405180910390fd5b808060200190518101906113389190613070565b50809650508360a00151861015611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b90613c49565b60405180910390fd5b505050505b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113e49190613862565b60206040518083038186803b1580156113fc57600080fd5b505afa158015611410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114349190613047565b9050611449838361220c90919063ffffffff16565b811461148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148190613be9565b60405180910390fd5b7f5f971bd00bf3ffbca8a6d72cdd4fd92cfd4f62636161921d1e5a64f0b64ccb6d338b8b868c8c6040516114c396959493929190613922565b60405180910390a160014614806114da5750600546145b806114e7575062aa36a746145b15611667576115587f000000000000000000000000000000000000000000000000000000000000000060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b6115c37f0000000000000000000000000000000000000000000000000000000000000000847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b60007f000000000000000000000000000000000000000000000000000000000000000090508073ffffffffffffffffffffffffffffffffffffffff16639ed170848a6003548b886040518563ffffffff1660e01b81526004016116299493929190613e20565b600060405180830381600087803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b505050508394505050505061166e565b8293505050505b611676611f99565b9695505050505050565b611688611d08565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614611716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170d90613c29565b60405180910390fd5b60028251101561175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290613c69565b60405180910390fd5b805182511461179f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179690613aa9565b60405180910390fd5b816001815181106117d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682600081518110611831577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188790613d09565b60405180910390fd5b428410156118d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ca90613c89565b60405180910390fd5b6000888789878988306040516020016118f29796959493929190613746565b60405160208183030381529060405280519060200120905061191381611d58565b905060005b83518160ff161015611a8257600061197383858460ff1681518110611966577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611d8e565b9050848260ff16815181106119b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1d90613ae9565b60405180910390fd5b611a2f81610d6a565b611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590613b09565b60405180910390fd5b508080611a7a9061414e565b915050611918565b50611a8f848a898b611db5565b600089888a89604051602001611aa894939291906135f4565b60405160208183030381529060405280519060200120905060007f000000000000000000000000000000000000000000000000000000000000000090508073ffffffffffffffffffffffffffffffffffffffff16636a938567836040518263ffffffff1660e01b8152600401611b1e91906139c7565b60206040518083038186803b158015611b3657600080fd5b505afa158015611b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6e9190612f63565b15611bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba590613d49565b60405180910390fd5b611bfa7f000000000000000000000000000000000000000000000000000000000000000060008c73ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b611c457f00000000000000000000000000000000000000000000000000000000000000008a8c73ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff166355a2ba688c8c8c8c6040518563ffffffff1660e01b8152600401611c8494939291906138dd565b600060405180830381600087803b158015611c9e57600080fd5b505af1158015611cb2573d6000803e3d6000fd5b505050507ff8eff9ed148da048feccebca2617170aec98bea5840b0b0be8a289ec03c375fd868b8d8c604051611ceb9493929190613ddb565b60405180910390a1505050611cfe611f99565b5050505050505050565b60026000541415611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4590613d29565b60405180910390fd5b6002600081905550565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000611d9d8585612222565b91509150611daa81612274565b819250505092915050565b6002600085815260200190815260200160002060020160149054906101000a900460ff1615611e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1090613cc9565b60405180910390fd5b60016002600086815260200190815260200160002060020160146101000a81548160ff021916908315150217905550826002600086815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816002600086815260200190815260200160002060010181905550806002600086815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b611f948363a9059cbb60e01b8484604051602401611f32929190613983565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612512565b505050565b6001600081905550565b612026846323b872dd60e01b858585604051602401611fc4939291906138a6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612512565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806120a7575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000811480612147575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016120f592919061387d565b60206040518083038186803b15801561210d57600080fd5b505afa158015612121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121459190613047565b145b612186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217d90613d69565b60405180910390fd5b6122078363095ea7b360e01b84846040516024016121a5929190613983565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612512565b505050565b6000818361221a9190613f83565b905092915050565b6000806041835114156122645760008060006020860151925060408601519150606086015160001a9050612258878285856125da565b9450945050505061226d565b60006002915091505b9250929050565b600060048111156122ae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156122e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156122f25761250f565b6001600481111561232c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612365577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156123a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239d90613a49565b60405180910390fd5b600260048111156123e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612419577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561245a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245190613a89565b60405180910390fd5b60036004811115612494577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156124cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561250e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250590613b69565b60405180910390fd5b5b50565b6000612574826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126bd9092919063ffffffff16565b90506000815114806125965750808060200190518101906125959190612f63565b5b6125d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cc90613ce9565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156126155760006003915091506126b4565b60006001878787876040516000815260200160405260405161263a94939291906139e2565b6020604051602081039080840390855afa15801561265c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126ab576000600192509250506126b4565b80600092509250505b94509492505050565b60606126cc84846000856126d5565b90509392505050565b60608247101561271a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271190613ba9565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612743919061365b565b60006040518083038185875af1925050503d8060008114612780576040519150601f19603f3d011682016040523d82523d6000602084013e612785565b606091505b5091509150612796878383876127a2565b92505050949350505050565b60608315612805576000835114156127fd576127bd85612818565b6127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f390613ca9565b60405180910390fd5b5b829050612810565b61280f838361283b565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561284e5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128829190613a27565b60405180910390fd5b600061289e61289984613e8a565b613e65565b905080838252602082019050828560208602820111156128bd57600080fd5b60005b858110156128ed57816128d38882612992565b8452602084019350602083019250506001810190506128c0565b5050509392505050565b600061290a61290584613eb6565b613e65565b9050808382526020820190508260005b8581101561294a57813585016129308882612a84565b84526020840193506020830192505060018101905061291a565b5050509392505050565b600061296761296284613ee2565b613e65565b90508281526020810184848401111561297f57600080fd5b61298a848285614092565b509392505050565b6000813590506129a1816147c0565b92915050565b6000813590506129b6816147d7565b92915050565b600082601f8301126129cd57600080fd5b81356129dd84826020860161288b565b91505092915050565b600082601f8301126129f757600080fd5b8135612a078482602086016128f7565b91505092915050565b600081359050612a1f816147ee565b92915050565b600081519050612a34816147ee565b92915050565b60008083601f840112612a4c57600080fd5b8235905067ffffffffffffffff811115612a6557600080fd5b602083019150836001820283011115612a7d57600080fd5b9250929050565b600082601f830112612a9557600080fd5b8135612aa5848260208601612954565b91505092915050565b600081359050612abd81614805565b92915050565b600060e08284031215612ad557600080fd5b612adf60e0613e65565b90506000612aef84828501612aae565b6000830152506020612b0384828501612aae565b6020830152506040612b17848285016129a7565b6040830152506060612b2b848285016129a7565b6060830152506080612b3f84828501612b73565b60808301525060a0612b5384828501612b73565b60a08301525060c0612b6784828501612b73565b60c08301525092915050565b600081359050612b828161481c565b92915050565b600081519050612b978161481c565b92915050565b600060208284031215612baf57600080fd5b6000612bbd84828501612992565b91505092915050565b6000806000806101408587031215612bdd57600080fd5b6000612beb878288016129a7565b9450506020612bfc87828801612ac3565b93505061010085013567ffffffffffffffff811115612c1a57600080fd5b612c2687828801612a84565b92505061012085013567ffffffffffffffff811115612c4457600080fd5b612c5087828801612a84565b91505092959194509250565b60008060008060008060c08789031215612c7557600080fd5b6000612c8389828a016129a7565b9650506020612c9489828a01612b73565b9550506040612ca589828a01612b73565b9450506060612cb689828a01612b73565b935050608087013567ffffffffffffffff811115612cd357600080fd5b612cdf89828a016129bc565b92505060a087013567ffffffffffffffff811115612cfc57600080fd5b612d0889828a016129e6565b9150509295509295509295565b600080600080600080600080610100898b031215612d3257600080fd5b6000612d408b828c01612992565b9850506020612d518b828c01612992565b9750506040612d628b828c01612b73565b9650506060612d738b828c01612b73565b9550506080612d848b828c01612b73565b94505060a0612d958b828c01612b73565b93505060c089013567ffffffffffffffff811115612db257600080fd5b612dbe8b828c016129bc565b92505060e089013567ffffffffffffffff811115612ddb57600080fd5b612de78b828c016129e6565b9150509295985092959890939650565b600080600080600080600060e0888a031215612e1257600080fd5b6000612e208a828b01612992565b9750506020612e318a828b01612b73565b9650506040612e428a828b01612992565b9550506060612e538a828b01612b73565b9450506080612e648a828b01612b73565b93505060a088013567ffffffffffffffff811115612e8157600080fd5b612e8d8a828b016129bc565b92505060c088013567ffffffffffffffff811115612eaa57600080fd5b612eb68a828b016129e6565b91505092959891949750929550565b600080600080600080600060e0888a031215612ee057600080fd5b6000612eee8a828b01612992565b9750506020612eff8a828b01612b73565b9650506040612f108a828b01612992565b9550506060612f218a828b01612b73565b9450506080612f328a828b01612b73565b93505060a0612f438a828b01612a10565b92505060c0612f548a828b01612b73565b91505092959891949750929550565b600060208284031215612f7557600080fd5b6000612f8384828501612a25565b91505092915050565b60008060008060008060a08789031215612fa557600080fd5b6000612fb389828a01612aae565b9650506020612fc489828a01612b73565b9550506040612fd589828a01612b73565b9450506060612fe689828a01612b73565b935050608087013567ffffffffffffffff81111561300357600080fd5b61300f89828a01612a3a565b92509250509295509295509295565b60006020828403121561303057600080fd5b600061303e84828501612b73565b91505092915050565b60006020828403121561305957600080fd5b600061306784828501612b88565b91505092915050565b6000806040838503121561308357600080fd5b600061309185828601612b88565b92505060206130a285828601612b88565b9150509250929050565b6130b58161405c565b82525050565b6130cc6130c782613feb565b61418a565b82525050565b6130db81613fd9565b82525050565b6130f26130ed82613fd9565b614178565b82525050565b61310181613ffd565b82525050565b61311081614009565b82525050565b60006131228385613f29565b935061312f838584614092565b82840190509392505050565b600061314682613f13565b6131508185613f29565b93506131608185602086016140a1565b80840191505092915050565b600061317782613f1e565b6131818185613f34565b93506131918185602086016140a1565b61319a81614216565b840191505092915050565b60006131b2601883613f34565b91506131bd82614234565b602082019050919050565b60006131d5601883613f34565b91506131e08261425d565b602082019050919050565b60006131f8600583613f45565b915061320382614286565b600582019050919050565b600061321b601f83613f34565b9150613226826142af565b602082019050919050565b600061323e601983613f34565b9150613249826142d8565b602082019050919050565b6000613261600f83613f34565b915061326c82614301565b602082019050919050565b6000613284600e83613f34565b915061328f8261432a565b602082019050919050565b60006132a7601283613f34565b91506132b282614353565b602082019050919050565b60006132ca601583613f34565b91506132d58261437c565b602082019050919050565b60006132ed603a83613f34565b91506132f8826143a5565b604082019050919050565b6000613310602283613f34565b915061331b826143f4565b604082019050919050565b6000613333601d83613f34565b915061333e82614443565b602082019050919050565b6000613356602683613f34565b91506133618261446c565b604082019050919050565b6000613379601f83613f34565b9150613384826144bb565b602082019050919050565b600061339c600483613f45565b91506133a7826144e4565b600482019050919050565b60006133bf600e83613f34565b91506133ca8261450d565b602082019050919050565b60006133e2602083613f34565b91506133ed82614536565b602082019050919050565b6000613405600583613f45565b91506134108261455f565b600582019050919050565b6000613428600d83613f34565b915061343382614588565b602082019050919050565b600061344b602783613f34565b9150613456826145b1565b604082019050919050565b600061346e601983613f34565b915061347982614600565b602082019050919050565b6000613491600083613f29565b915061349c82614629565b600082019050919050565b60006134b4601383613f34565b91506134bf8261462c565b602082019050919050565b60006134d7601d83613f34565b91506134e282614655565b602082019050919050565b60006134fa600e83613f34565b91506135058261467e565b602082019050919050565b600061351d602a83613f34565b9150613528826146a7565b604082019050919050565b6000613540601683613f34565b915061354b826146f6565b602082019050919050565b6000613563601f83613f34565b915061356e8261471f565b602082019050919050565b6000613586601483613f34565b915061359182614748565b602082019050919050565b60006135a9603683613f34565b91506135b482614771565b604082019050919050565b6135c881614045565b82525050565b6135df6135da82614045565b6141ae565b82525050565b6135ee8161404f565b82525050565b600061360082876130e1565b60148201915061361082866135ce565b60208201915061362082856130e1565b60148201915061363082846135ce565b60208201915081905095945050505050565b600061364f828486613116565b91508190509392505050565b6000613667828461313b565b915081905092915050565b600061367d826131eb565b915061368982886130bb565b60148201915061369982876135ce565b6020820191506136a982866135ce565b6020820191506136b982856135ce565b6020820191506136c982846130e1565b6014820191508190509695505050505050565b60006136e7826131eb565b91506136f382886130e1565b60148201915061370382876135ce565b60208201915061371382866135ce565b60208201915061372382856135ce565b60208201915061373382846130e1565b6014820191508190509695505050505050565b60006137518261338f565b915061375d828a6130e1565b60148201915061376d82896135ce565b60208201915061377d82886130e1565b60148201915061378d82876135ce565b60208201915061379d82866135ce565b6020820191506137ad82856135ce565b6020820191506137bd82846130e1565b60148201915081905098975050505050505050565b60006137dd826133f8565b91506137e982896130e1565b6014820191506137f982886135ce565b60208201915061380982876130e1565b60148201915061381982866135ce565b60208201915061382982856135ce565b60208201915061383982846130e1565b601482019150819050979650505050505050565b600061385882613484565b9150819050919050565b600060208201905061387760008301846130d2565b92915050565b600060408201905061389260008301856130d2565b61389f60208301846130d2565b9392505050565b60006060820190506138bb60008301866130d2565b6138c860208301856130d2565b6138d560408301846135bf565b949350505050565b60006080820190506138f260008301876130d2565b6138ff60208301866130d2565b61390c60408301856135bf565b61391960608301846135bf565b95945050505050565b600060c08201905061393760008301896130d2565b61394460208301886130d2565b61395160408301876135bf565b61395e60608301866135bf565b61396b60808301856135bf565b61397860a08301846135bf565b979650505050505050565b600060408201905061399860008301856130d2565b6139a560208301846135bf565b9392505050565b60006020820190506139c160008301846130f8565b92915050565b60006020820190506139dc6000830184613107565b92915050565b60006080820190506139f76000830187613107565b613a0460208301866135e5565b613a116040830185613107565b613a1e6060830184613107565b95945050505050565b60006020820190508181036000830152613a41818461316c565b905092915050565b60006020820190508181036000830152613a62816131a5565b9050919050565b60006020820190508181036000830152613a82816131c8565b9050919050565b60006020820190508181036000830152613aa28161320e565b9050919050565b60006020820190508181036000830152613ac281613231565b9050919050565b60006020820190508181036000830152613ae281613254565b9050919050565b60006020820190508181036000830152613b0281613277565b9050919050565b60006020820190508181036000830152613b228161329a565b9050919050565b60006020820190508181036000830152613b42816132bd565b9050919050565b60006020820190508181036000830152613b62816132e0565b9050919050565b60006020820190508181036000830152613b8281613303565b9050919050565b60006020820190508181036000830152613ba281613326565b9050919050565b60006020820190508181036000830152613bc281613349565b9050919050565b60006020820190508181036000830152613be28161336c565b9050919050565b60006020820190508181036000830152613c02816133b2565b9050919050565b60006020820190508181036000830152613c22816133d5565b9050919050565b60006020820190508181036000830152613c428161341b565b9050919050565b60006020820190508181036000830152613c628161343e565b9050919050565b60006020820190508181036000830152613c8281613461565b9050919050565b60006020820190508181036000830152613ca2816134a7565b9050919050565b60006020820190508181036000830152613cc2816134ca565b9050919050565b60006020820190508181036000830152613ce2816134ed565b9050919050565b60006020820190508181036000830152613d0281613510565b9050919050565b60006020820190508181036000830152613d2281613533565b9050919050565b60006020820190508181036000830152613d4281613556565b9050919050565b60006020820190508181036000830152613d6281613579565b9050919050565b60006020820190508181036000830152613d828161359c565b9050919050565b6000602082019050613d9e60008301846135bf565b92915050565b6000606082019050613db960008301866135bf565b613dc660208301856130ac565b613dd360408301846135bf565b949350505050565b6000608082019050613df060008301876135bf565b613dfd60208301866130d2565b613e0a60408301856130d2565b613e1760608301846135bf565b95945050505050565b6000608082019050613e3560008301876135bf565b613e4260208301866135bf565b613e4f60408301856135bf565b613e5c60608301846135bf565b95945050505050565b6000613e6f613e80565b9050613e7b82826140d4565b919050565b6000604051905090565b600067ffffffffffffffff821115613ea557613ea46141e7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613ed157613ed06141e7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613efd57613efc6141e7565b5b613f0682614216565b9050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60008085851115613f6057600080fd5b83861115613f6d57600080fd5b6001850283019150848603905094509492505050565b6000613f8e82614045565b9150613f9983614045565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fce57613fcd6141b8565b5b828201905092915050565b6000613fe482614025565b9050919050565b6000613ff682614025565b9050919050565b60008115159050919050565b6000819050919050565b600061401e82613fd9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006140678261406e565b9050919050565b600061407982614080565b9050919050565b600061408b82614025565b9050919050565b82818337600083830152505050565b60005b838110156140bf5780820151818401526020810190506140a4565b838111156140ce576000848401525b50505050565b6140dd82614216565b810181811067ffffffffffffffff821117156140fc576140fb6141e7565b5b80604052505050565b600061411082614045565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614143576141426141b8565b5b600182019050919050565b60006141598261404f565b915060ff82141561416d5761416c6141b8565b5b600182019050919050565b60006141838261419c565b9050919050565b60006141958261419c565b9050919050565b60006141a782614227565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f696e76616c696420646573632e64737452656365697665720000000000000000600082015250565b7f4554484552000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f696e76616c6964207369676e617475726573206c656e67746800000000000000600082015250565b7f65786368616e6765206661696c65640000000000000000000000000000000000600082015250565b7f696e76616c6964207369676e6572000000000000000000000000000000000000600082015250565b7f6e6f7420616c6c6f776564207369676e65720000000000000000000000000000600082015250565b7f696e76616c696420646573632e647374546f6b656e0000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f6d69736d6174636820616d6f756e7420616e6420646573632e616d6f756e7400600082015250565b7f4641535400000000000000000000000000000000000000000000000000000000600082015250565b7f7377617020696e636f7272656374000000000000000000000000000000000000600082015250565b7f6d69736d6174636820746f6b656e20616e6420646573632e737263546f6b656e600082015250565b7f4552433230000000000000000000000000000000000000000000000000000000600082015250565b7f696e76616c696420746f6b656e00000000000000000000000000000000000000600082015250565b7f72656365697665642055534443206c657373207468616e206d696e526574757260008201527f6e416d6f756e7400000000000000000000000000000000000000000000000000602082015250565b7f696e76616c696420616c6c5369676e657273206c656e67746800000000000000600082015250565b50565b7f65787069726564207472616e73616374696f6e00000000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f7265706561746564206f72646572000000000000000000000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f63616e206e6f742062652073616d65207369676e657200000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f6661637420616c726561647920697356616c6964000000000000000000000000600082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6147c981613fd9565b81146147d457600080fd5b50565b6147e081613feb565b81146147eb57600080fd5b50565b6147f781613ffd565b811461480257600080fd5b50565b61480e81614013565b811461481957600080fd5b50565b61482581614045565b811461483057600080fd5b5056fea2646970667358221220a6b511ace7991e67514c85a0d2eb4804f2d46c4ef7da33cc38281a3701d082c264736f6c6343000802003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a02ce625e94458d39dd0bf3b45a843544dd4a14b8169045a3a3d15aa564b936c5000000000000000000000000000000000000000000000000000000000000000300000000000000000000000004b4b6f7a61b121cb4913871e3ab52ce77589128000000000000000000000000c467b0ead34c1115111b13401ec03984160e0e7b00000000000000000000000022c89137525b593dd2a18434348b550ffa5984fe

Deployed Bytecode

0x6080604052600436106100ab5760003560e01c80638815eb39116100645780638815eb39146101d95780639fdd761d14610204578063bb09d9b71461022f578063cabb9e7a1461025a578063cfe96c8414610297578063f13b4975146102c7576100b2565b806305729d58146100b75780631025e095146100f45780632079fb9a1461011d578063391cdc081461015a578063496eff7b146101855780636b1430d6146101b0576100b2565b366100b257005b600080fd5b3480156100c357600080fd5b506100de60048036038101906100d99190612ec5565b6102f0565b6040516100eb91906139c7565b60405180910390f35b34801561010057600080fd5b5061011b60048036038101906101169190612df7565b6103e2565b005b34801561012957600080fd5b50610144600480360381019061013f919061301e565b6107db565b6040516101519190613862565b60405180910390f35b34801561016657600080fd5b5061016f61081a565b60405161017c9190613862565b60405180910390f35b34801561019157600080fd5b5061019a61083e565b6040516101a79190613862565b60405180910390f35b3480156101bc57600080fd5b506101d760048036038101906101d29190612c5c565b610862565b005b3480156101e557600080fd5b506101ee610d1c565b6040516101fb9190613d89565b60405180910390f35b34801561021057600080fd5b50610219610d22565b6040516102269190613862565b60405180910390f35b34801561023b57600080fd5b50610244610d46565b6040516102519190613862565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190612b9d565b610d6a565b60405161028e91906139ac565b60405180910390f35b6102b160048036038101906102ac9190612f8c565b610e3f565b6040516102be9190613d89565b60405180910390f35b3480156102d357600080fd5b506102ee60048036038101906102e99190612d15565b611680565b005b600080831561033357888888888689306040516020016103169796959493929190613746565b6040516020818303038152906040528051906020012090506103d3565b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561039e5788888787306040516020016103819594939291906136dc565b6040516020818303038152906040528051906020012090506103d2565b8888888888306040516020016103b9969594939291906137d2565b6040516020818303038152906040528051906020012090505b5b80915050979650505050505050565b6103ea611d08565b60028251101561042f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042690613c69565b60405180910390fd5b8051825114610473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046a90613aa9565b60405180910390fd5b816001815181106104ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682600081518110610505577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415610564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161055b90613d09565b60405180910390fd5b428410156105a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059e90613c89565b60405180910390fd5b60008787878787306040516020016105c4969594939291906137d2565b6040516020818303038152906040528051906020012090506105e581611d58565b905060005b83518160ff16101561075457600061064583858460ff1681518110610638577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611d8e565b9050848260ff1681518110610683577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146106f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ef90613ae9565b60405180910390fd5b61070181610d6a565b610740576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161073790613b09565b60405180910390fd5b50808061074c9061414e565b9150506105ea565b5061076184898989611db5565b61078c88888873ffffffffffffffffffffffffffffffffffffffff16611f139092919063ffffffff16565b7ff8eff9ed148da048feccebca2617170aec98bea5840b0b0be8a289ec03c375fd84878a8a6040516107c19493929190613ddb565b60405180910390a1506107d2611f99565b50505050505050565b600181815481106107eb57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b81565b7f000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a81565b61086a611d08565b6002825110156108af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a690613c69565b60405180910390fd5b80518251146108f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ea90613aa9565b60405180910390fd5b8160018151811061092d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682600081518110610985577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156109e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109db90613d09565b60405180910390fd5b42841015610a27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1e90613c89565b60405180910390fd5b60008686868630604051602001610a42959493929190613672565b604051602081830303815290604052805190602001209050610a6381611d58565b905060005b83518160ff161015610bd2576000610ac383858460ff1681518110610ab6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611d8e565b9050848260ff1681518110610b01577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6d90613ae9565b60405180910390fd5b610b7f81610d6a565b610bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb590613b09565b60405180910390fd5b508080610bca9061414e565b915050610a68565b50610be08488886000611db5565b85471015610c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1a90613b89565b60405180910390fd5b60008773ffffffffffffffffffffffffffffffffffffffff1687604051610c499061384d565b60006040518083038185875af1925050503d8060008114610c86576040519150601f19603f3d011682016040523d82523d6000602084013e610c8b565b606091505b5050905080610ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc690613b49565b60405180910390fd5b7f4d7574efc376e1ee5e6eacc9b23ed30ae9f40acfddb028be515fb99a14e2290c858989604051610d0293929190613da4565b60405180910390a15050610d14611f99565b505050505050565b60035481565b7f0000000000000000000000001111111254eeb25477b68fb85ed929f73a96058281565b7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec781565b600080600090505b600180549050811015610e34578273ffffffffffffffffffffffffffffffffffffffff1660018281548110610dd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610e21576001915050610e3a565b8080610e2c90614105565b915050610d72565b50600090505b919050565b6000610e49611d08565b6000807f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ea59190613862565b60206040518083038186803b158015610ebd57600080fd5b505afa158015610ed1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef59190613047565b90507f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff161415610f8057610f7833308a8c73ffffffffffffffffffffffffffffffffffffffff16611fa3909392919063ffffffff16565b879150611389565b600085856004908092610f9593929190613f50565b810190610fa29190612bc6565b5050915050806000015173ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614611019576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101090613c09565b60405180910390fd5b806020015173ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff16146110ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a290613b29565b60405180910390fd5b806080015189146110f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e890613bc9565b60405180910390fd5b806060015173ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115a90613a69565b60405180910390fd5b6000611172826000015161202c565b905080611252576111ae33308460800151856000015173ffffffffffffffffffffffffffffffffffffffff16611fa3909392919063ffffffff16565b6111fe7f0000000000000000000000001111111254eeb25477b68fb85ed929f73a9605826000846000015173ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b6112517f0000000000000000000000001111111254eeb25477b68fb85ed929f73a9605828360800151846000015173ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b5b6000807f0000000000000000000000001111111254eeb25477b68fb85ed929f73a96058273ffffffffffffffffffffffffffffffffffffffff16348a8a60405161129d929190613642565b60006040518083038185875af1925050503d80600081146112da576040519150601f19603f3d011682016040523d82523d6000602084013e6112df565b606091505b509150915081611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b90613ac9565b60405180910390fd5b808060200190518101906113389190613070565b50809650508360a00151861015611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b90613c49565b60405180910390fd5b505050505b60007f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113e49190613862565b60206040518083038186803b1580156113fc57600080fd5b505afa158015611410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114349190613047565b9050611449838361220c90919063ffffffff16565b811461148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148190613be9565b60405180910390fd5b7f5f971bd00bf3ffbca8a6d72cdd4fd92cfd4f62636161921d1e5a64f0b64ccb6d338b8b868c8c6040516114c396959493929190613922565b60405180910390a160014614806114da5750600546145b806114e7575062aa36a746145b15611667576115587f000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b60007f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b6115c37f000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b847f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b60007f000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b90508073ffffffffffffffffffffffffffffffffffffffff16639ed170848a6003548b886040518563ffffffff1660e01b81526004016116299493929190613e20565b600060405180830381600087803b15801561164357600080fd5b505af1158015611657573d6000803e3d6000fd5b505050508394505050505061166e565b8293505050505b611676611f99565b9695505050505050565b611688611d08565b7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec773ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1614611716576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170d90613c29565b60405180910390fd5b60028251101561175b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175290613c69565b60405180910390fd5b805182511461179f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179690613aa9565b60405180910390fd5b816001815181106117d9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1682600081518110611831577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188790613d09565b60405180910390fd5b428410156118d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ca90613c89565b60405180910390fd5b6000888789878988306040516020016118f29796959493929190613746565b60405160208183030381529060405280519060200120905061191381611d58565b905060005b83518160ff161015611a8257600061197383858460ff1681518110611966577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151611d8e565b9050848260ff16815181106119b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611a26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1d90613ae9565b60405180910390fd5b611a2f81610d6a565b611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590613b09565b60405180910390fd5b508080611a7a9061414e565b915050611918565b50611a8f848a898b611db5565b600089888a89604051602001611aa894939291906135f4565b60405160208183030381529060405280519060200120905060007f000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a90508073ffffffffffffffffffffffffffffffffffffffff16636a938567836040518263ffffffff1660e01b8152600401611b1e91906139c7565b60206040518083038186803b158015611b3657600080fd5b505afa158015611b4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6e9190612f63565b15611bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba590613d49565b60405180910390fd5b611bfa7f000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a60008c73ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b611c457f000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a8a8c73ffffffffffffffffffffffffffffffffffffffff166120ae9092919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff166355a2ba688c8c8c8c6040518563ffffffff1660e01b8152600401611c8494939291906138dd565b600060405180830381600087803b158015611c9e57600080fd5b505af1158015611cb2573d6000803e3d6000fd5b505050507ff8eff9ed148da048feccebca2617170aec98bea5840b0b0be8a289ec03c375fd868b8d8c604051611ceb9493929190613ddb565b60405180910390a1505050611cfe611f99565b5050505050505050565b60026000541415611d4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4590613d29565b60405180910390fd5b6002600081905550565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b6000806000611d9d8585612222565b91509150611daa81612274565b819250505092915050565b6002600085815260200190815260200160002060020160149054906101000a900460ff1615611e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1090613cc9565b60405180910390fd5b60016002600086815260200190815260200160002060020160146101000a81548160ff021916908315150217905550826002600086815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816002600086815260200190815260200160002060010181905550806002600086815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b611f948363a9059cbb60e01b8484604051602401611f32929190613983565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612512565b505050565b6001600081905550565b612026846323b872dd60e01b858585604051602401611fc4939291906138a6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612512565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806120a7575073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000811480612147575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016120f592919061387d565b60206040518083038186803b15801561210d57600080fd5b505afa158015612121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121459190613047565b145b612186576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217d90613d69565b60405180910390fd5b6122078363095ea7b360e01b84846040516024016121a5929190613983565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612512565b505050565b6000818361221a9190613f83565b905092915050565b6000806041835114156122645760008060006020860151925060408601519150606086015160001a9050612258878285856125da565b9450945050505061226d565b60006002915091505b9250929050565b600060048111156122ae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156122e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156122f25761250f565b6001600481111561232c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612365577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156123a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239d90613a49565b60405180910390fd5b600260048111156123e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115612419577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561245a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245190613a89565b60405180910390fd5b60036004811115612494577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156124cd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561250e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250590613b69565b60405180910390fd5b5b50565b6000612574826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126bd9092919063ffffffff16565b90506000815114806125965750808060200190518101906125959190612f63565b5b6125d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cc90613ce9565b60405180910390fd5b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156126155760006003915091506126b4565b60006001878787876040516000815260200160405260405161263a94939291906139e2565b6020604051602081039080840390855afa15801561265c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126ab576000600192509250506126b4565b80600092509250505b94509492505050565b60606126cc84846000856126d5565b90509392505050565b60608247101561271a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271190613ba9565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051612743919061365b565b60006040518083038185875af1925050503d8060008114612780576040519150601f19603f3d011682016040523d82523d6000602084013e612785565b606091505b5091509150612796878383876127a2565b92505050949350505050565b60608315612805576000835114156127fd576127bd85612818565b6127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f390613ca9565b60405180910390fd5b5b829050612810565b61280f838361283b565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561284e5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128829190613a27565b60405180910390fd5b600061289e61289984613e8a565b613e65565b905080838252602082019050828560208602820111156128bd57600080fd5b60005b858110156128ed57816128d38882612992565b8452602084019350602083019250506001810190506128c0565b5050509392505050565b600061290a61290584613eb6565b613e65565b9050808382526020820190508260005b8581101561294a57813585016129308882612a84565b84526020840193506020830192505060018101905061291a565b5050509392505050565b600061296761296284613ee2565b613e65565b90508281526020810184848401111561297f57600080fd5b61298a848285614092565b509392505050565b6000813590506129a1816147c0565b92915050565b6000813590506129b6816147d7565b92915050565b600082601f8301126129cd57600080fd5b81356129dd84826020860161288b565b91505092915050565b600082601f8301126129f757600080fd5b8135612a078482602086016128f7565b91505092915050565b600081359050612a1f816147ee565b92915050565b600081519050612a34816147ee565b92915050565b60008083601f840112612a4c57600080fd5b8235905067ffffffffffffffff811115612a6557600080fd5b602083019150836001820283011115612a7d57600080fd5b9250929050565b600082601f830112612a9557600080fd5b8135612aa5848260208601612954565b91505092915050565b600081359050612abd81614805565b92915050565b600060e08284031215612ad557600080fd5b612adf60e0613e65565b90506000612aef84828501612aae565b6000830152506020612b0384828501612aae565b6020830152506040612b17848285016129a7565b6040830152506060612b2b848285016129a7565b6060830152506080612b3f84828501612b73565b60808301525060a0612b5384828501612b73565b60a08301525060c0612b6784828501612b73565b60c08301525092915050565b600081359050612b828161481c565b92915050565b600081519050612b978161481c565b92915050565b600060208284031215612baf57600080fd5b6000612bbd84828501612992565b91505092915050565b6000806000806101408587031215612bdd57600080fd5b6000612beb878288016129a7565b9450506020612bfc87828801612ac3565b93505061010085013567ffffffffffffffff811115612c1a57600080fd5b612c2687828801612a84565b92505061012085013567ffffffffffffffff811115612c4457600080fd5b612c5087828801612a84565b91505092959194509250565b60008060008060008060c08789031215612c7557600080fd5b6000612c8389828a016129a7565b9650506020612c9489828a01612b73565b9550506040612ca589828a01612b73565b9450506060612cb689828a01612b73565b935050608087013567ffffffffffffffff811115612cd357600080fd5b612cdf89828a016129bc565b92505060a087013567ffffffffffffffff811115612cfc57600080fd5b612d0889828a016129e6565b9150509295509295509295565b600080600080600080600080610100898b031215612d3257600080fd5b6000612d408b828c01612992565b9850506020612d518b828c01612992565b9750506040612d628b828c01612b73565b9650506060612d738b828c01612b73565b9550506080612d848b828c01612b73565b94505060a0612d958b828c01612b73565b93505060c089013567ffffffffffffffff811115612db257600080fd5b612dbe8b828c016129bc565b92505060e089013567ffffffffffffffff811115612ddb57600080fd5b612de78b828c016129e6565b9150509295985092959890939650565b600080600080600080600060e0888a031215612e1257600080fd5b6000612e208a828b01612992565b9750506020612e318a828b01612b73565b9650506040612e428a828b01612992565b9550506060612e538a828b01612b73565b9450506080612e648a828b01612b73565b93505060a088013567ffffffffffffffff811115612e8157600080fd5b612e8d8a828b016129bc565b92505060c088013567ffffffffffffffff811115612eaa57600080fd5b612eb68a828b016129e6565b91505092959891949750929550565b600080600080600080600060e0888a031215612ee057600080fd5b6000612eee8a828b01612992565b9750506020612eff8a828b01612b73565b9650506040612f108a828b01612992565b9550506060612f218a828b01612b73565b9450506080612f328a828b01612b73565b93505060a0612f438a828b01612a10565b92505060c0612f548a828b01612b73565b91505092959891949750929550565b600060208284031215612f7557600080fd5b6000612f8384828501612a25565b91505092915050565b60008060008060008060a08789031215612fa557600080fd5b6000612fb389828a01612aae565b9650506020612fc489828a01612b73565b9550506040612fd589828a01612b73565b9450506060612fe689828a01612b73565b935050608087013567ffffffffffffffff81111561300357600080fd5b61300f89828a01612a3a565b92509250509295509295509295565b60006020828403121561303057600080fd5b600061303e84828501612b73565b91505092915050565b60006020828403121561305957600080fd5b600061306784828501612b88565b91505092915050565b6000806040838503121561308357600080fd5b600061309185828601612b88565b92505060206130a285828601612b88565b9150509250929050565b6130b58161405c565b82525050565b6130cc6130c782613feb565b61418a565b82525050565b6130db81613fd9565b82525050565b6130f26130ed82613fd9565b614178565b82525050565b61310181613ffd565b82525050565b61311081614009565b82525050565b60006131228385613f29565b935061312f838584614092565b82840190509392505050565b600061314682613f13565b6131508185613f29565b93506131608185602086016140a1565b80840191505092915050565b600061317782613f1e565b6131818185613f34565b93506131918185602086016140a1565b61319a81614216565b840191505092915050565b60006131b2601883613f34565b91506131bd82614234565b602082019050919050565b60006131d5601883613f34565b91506131e08261425d565b602082019050919050565b60006131f8600583613f45565b915061320382614286565b600582019050919050565b600061321b601f83613f34565b9150613226826142af565b602082019050919050565b600061323e601983613f34565b9150613249826142d8565b602082019050919050565b6000613261600f83613f34565b915061326c82614301565b602082019050919050565b6000613284600e83613f34565b915061328f8261432a565b602082019050919050565b60006132a7601283613f34565b91506132b282614353565b602082019050919050565b60006132ca601583613f34565b91506132d58261437c565b602082019050919050565b60006132ed603a83613f34565b91506132f8826143a5565b604082019050919050565b6000613310602283613f34565b915061331b826143f4565b604082019050919050565b6000613333601d83613f34565b915061333e82614443565b602082019050919050565b6000613356602683613f34565b91506133618261446c565b604082019050919050565b6000613379601f83613f34565b9150613384826144bb565b602082019050919050565b600061339c600483613f45565b91506133a7826144e4565b600482019050919050565b60006133bf600e83613f34565b91506133ca8261450d565b602082019050919050565b60006133e2602083613f34565b91506133ed82614536565b602082019050919050565b6000613405600583613f45565b91506134108261455f565b600582019050919050565b6000613428600d83613f34565b915061343382614588565b602082019050919050565b600061344b602783613f34565b9150613456826145b1565b604082019050919050565b600061346e601983613f34565b915061347982614600565b602082019050919050565b6000613491600083613f29565b915061349c82614629565b600082019050919050565b60006134b4601383613f34565b91506134bf8261462c565b602082019050919050565b60006134d7601d83613f34565b91506134e282614655565b602082019050919050565b60006134fa600e83613f34565b91506135058261467e565b602082019050919050565b600061351d602a83613f34565b9150613528826146a7565b604082019050919050565b6000613540601683613f34565b915061354b826146f6565b602082019050919050565b6000613563601f83613f34565b915061356e8261471f565b602082019050919050565b6000613586601483613f34565b915061359182614748565b602082019050919050565b60006135a9603683613f34565b91506135b482614771565b604082019050919050565b6135c881614045565b82525050565b6135df6135da82614045565b6141ae565b82525050565b6135ee8161404f565b82525050565b600061360082876130e1565b60148201915061361082866135ce565b60208201915061362082856130e1565b60148201915061363082846135ce565b60208201915081905095945050505050565b600061364f828486613116565b91508190509392505050565b6000613667828461313b565b915081905092915050565b600061367d826131eb565b915061368982886130bb565b60148201915061369982876135ce565b6020820191506136a982866135ce565b6020820191506136b982856135ce565b6020820191506136c982846130e1565b6014820191508190509695505050505050565b60006136e7826131eb565b91506136f382886130e1565b60148201915061370382876135ce565b60208201915061371382866135ce565b60208201915061372382856135ce565b60208201915061373382846130e1565b6014820191508190509695505050505050565b60006137518261338f565b915061375d828a6130e1565b60148201915061376d82896135ce565b60208201915061377d82886130e1565b60148201915061378d82876135ce565b60208201915061379d82866135ce565b6020820191506137ad82856135ce565b6020820191506137bd82846130e1565b60148201915081905098975050505050505050565b60006137dd826133f8565b91506137e982896130e1565b6014820191506137f982886135ce565b60208201915061380982876130e1565b60148201915061381982866135ce565b60208201915061382982856135ce565b60208201915061383982846130e1565b601482019150819050979650505050505050565b600061385882613484565b9150819050919050565b600060208201905061387760008301846130d2565b92915050565b600060408201905061389260008301856130d2565b61389f60208301846130d2565b9392505050565b60006060820190506138bb60008301866130d2565b6138c860208301856130d2565b6138d560408301846135bf565b949350505050565b60006080820190506138f260008301876130d2565b6138ff60208301866130d2565b61390c60408301856135bf565b61391960608301846135bf565b95945050505050565b600060c08201905061393760008301896130d2565b61394460208301886130d2565b61395160408301876135bf565b61395e60608301866135bf565b61396b60808301856135bf565b61397860a08301846135bf565b979650505050505050565b600060408201905061399860008301856130d2565b6139a560208301846135bf565b9392505050565b60006020820190506139c160008301846130f8565b92915050565b60006020820190506139dc6000830184613107565b92915050565b60006080820190506139f76000830187613107565b613a0460208301866135e5565b613a116040830185613107565b613a1e6060830184613107565b95945050505050565b60006020820190508181036000830152613a41818461316c565b905092915050565b60006020820190508181036000830152613a62816131a5565b9050919050565b60006020820190508181036000830152613a82816131c8565b9050919050565b60006020820190508181036000830152613aa28161320e565b9050919050565b60006020820190508181036000830152613ac281613231565b9050919050565b60006020820190508181036000830152613ae281613254565b9050919050565b60006020820190508181036000830152613b0281613277565b9050919050565b60006020820190508181036000830152613b228161329a565b9050919050565b60006020820190508181036000830152613b42816132bd565b9050919050565b60006020820190508181036000830152613b62816132e0565b9050919050565b60006020820190508181036000830152613b8281613303565b9050919050565b60006020820190508181036000830152613ba281613326565b9050919050565b60006020820190508181036000830152613bc281613349565b9050919050565b60006020820190508181036000830152613be28161336c565b9050919050565b60006020820190508181036000830152613c02816133b2565b9050919050565b60006020820190508181036000830152613c22816133d5565b9050919050565b60006020820190508181036000830152613c428161341b565b9050919050565b60006020820190508181036000830152613c628161343e565b9050919050565b60006020820190508181036000830152613c8281613461565b9050919050565b60006020820190508181036000830152613ca2816134a7565b9050919050565b60006020820190508181036000830152613cc2816134ca565b9050919050565b60006020820190508181036000830152613ce2816134ed565b9050919050565b60006020820190508181036000830152613d0281613510565b9050919050565b60006020820190508181036000830152613d2281613533565b9050919050565b60006020820190508181036000830152613d4281613556565b9050919050565b60006020820190508181036000830152613d6281613579565b9050919050565b60006020820190508181036000830152613d828161359c565b9050919050565b6000602082019050613d9e60008301846135bf565b92915050565b6000606082019050613db960008301866135bf565b613dc660208301856130ac565b613dd360408301846135bf565b949350505050565b6000608082019050613df060008301876135bf565b613dfd60208301866130d2565b613e0a60408301856130d2565b613e1760608301846135bf565b95945050505050565b6000608082019050613e3560008301876135bf565b613e4260208301866135bf565b613e4f60408301856135bf565b613e5c60608301846135bf565b95945050505050565b6000613e6f613e80565b9050613e7b82826140d4565b919050565b6000604051905090565b600067ffffffffffffffff821115613ea557613ea46141e7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613ed157613ed06141e7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613efd57613efc6141e7565b5b613f0682614216565b9050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60008085851115613f6057600080fd5b83861115613f6d57600080fd5b6001850283019150848603905094509492505050565b6000613f8e82614045565b9150613f9983614045565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613fce57613fcd6141b8565b5b828201905092915050565b6000613fe482614025565b9050919050565b6000613ff682614025565b9050919050565b60008115159050919050565b6000819050919050565b600061401e82613fd9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006140678261406e565b9050919050565b600061407982614080565b9050919050565b600061408b82614025565b9050919050565b82818337600083830152505050565b60005b838110156140bf5780820151818401526020810190506140a4565b838111156140ce576000848401525b50505050565b6140dd82614216565b810181811067ffffffffffffffff821117156140fc576140fb6141e7565b5b80604052505050565b600061411082614045565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614143576141426141b8565b5b600182019050919050565b60006141598261404f565b915060ff82141561416d5761416c6141b8565b5b600182019050919050565b60006141838261419c565b9050919050565b60006141958261419c565b9050919050565b60006141a782614227565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f696e76616c696420646573632e64737452656365697665720000000000000000600082015250565b7f4554484552000000000000000000000000000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f696e76616c6964207369676e617475726573206c656e67746800000000000000600082015250565b7f65786368616e6765206661696c65640000000000000000000000000000000000600082015250565b7f696e76616c6964207369676e6572000000000000000000000000000000000000600082015250565b7f6e6f7420616c6c6f776564207369676e65720000000000000000000000000000600082015250565b7f696e76616c696420646573632e647374546f6b656e0000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f6d69736d6174636820616d6f756e7420616e6420646573632e616d6f756e7400600082015250565b7f4641535400000000000000000000000000000000000000000000000000000000600082015250565b7f7377617020696e636f7272656374000000000000000000000000000000000000600082015250565b7f6d69736d6174636820746f6b656e20616e6420646573632e737263546f6b656e600082015250565b7f4552433230000000000000000000000000000000000000000000000000000000600082015250565b7f696e76616c696420746f6b656e00000000000000000000000000000000000000600082015250565b7f72656365697665642055534443206c657373207468616e206d696e526574757260008201527f6e416d6f756e7400000000000000000000000000000000000000000000000000602082015250565b7f696e76616c696420616c6c5369676e657273206c656e67746800000000000000600082015250565b50565b7f65787069726564207472616e73616374696f6e00000000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f7265706561746564206f72646572000000000000000000000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f63616e206e6f742062652073616d65207369676e657200000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f6661637420616c726561647920697356616c6964000000000000000000000000600082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6147c981613fd9565b81146147d457600080fd5b50565b6147e081613feb565b81146147eb57600080fd5b50565b6147f781613ffd565b811461480257600080fd5b50565b61480e81614013565b811461481957600080fd5b50565b61482581614045565b811461483057600080fd5b5056fea2646970667358221220a6b511ace7991e67514c85a0d2eb4804f2d46c4ef7da33cc38281a3701d082c264736f6c63430008020033

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

00000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000001111111254eeb25477b68fb85ed929f73a960582000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a02ce625e94458d39dd0bf3b45a843544dd4a14b8169045a3a3d15aa564b936c5000000000000000000000000000000000000000000000000000000000000000300000000000000000000000004b4b6f7a61b121cb4913871e3ab52ce77589128000000000000000000000000c467b0ead34c1115111b13401ec03984160e0e7b00000000000000000000000022c89137525b593dd2a18434348b550ffa5984fe

-----Decoded View---------------
Arg [0] : allowedSigners (address[]): 0x04b4B6f7a61B121Cb4913871e3aB52Ce77589128,0xc467b0ead34C1115111b13401ec03984160e0e7B,0x22c89137525b593Dd2A18434348b550ffA5984Fe
Arg [1] : usdc (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [2] : aggregationRouterV5 (address): 0x1111111254EEB25477B68fb85Ed929f73A960582
Arg [3] : starkex (address): 0xe53A6eD882Eb3f90cCe0390DDB04c876C5482E6b
Arg [4] : fact (address): 0xBE9a129909EbCb954bC065536D2bfAfBd170d27A
Arg [5] : assetType (uint256): 1269275113502683198091459784363068703822460788394621599952252545182480283333

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [2] : 0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582
Arg [3] : 000000000000000000000000e53a6ed882eb3f90cce0390ddb04c876c5482e6b
Arg [4] : 000000000000000000000000be9a129909ebcb954bc065536d2bfafbd170d27a
Arg [5] : 02ce625e94458d39dd0bf3b45a843544dd4a14b8169045a3a3d15aa564b936c5
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 00000000000000000000000004b4b6f7a61b121cb4913871e3ab52ce77589128
Arg [8] : 000000000000000000000000c467b0ead34c1115111b13401ec03984160e0e7b
Arg [9] : 00000000000000000000000022c89137525b593dd2a18434348b550ffa5984fe


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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