ETH Price: $2,005.06 (-2.03%)

Transaction Decoder

Block:
24229970 at Jan-14-2026 02:30:11 AM +UTC
Transaction Fee:
0.000031772234426562 ETH $0.06
Gas Used:
258,598 Gas / 0.122863419 Gwei

Emitted Events:

440 TetherToken.Transfer( from=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, to=0xB31a7d7b8C68b7bB6DF6F07Aaa7Ba488ce63e3bA, value=4999870000 )
441 ERC1967Proxy.0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2( 0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2, 0x000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7, 0x0000000000000000000000009642b23ed1e01df1092b92641051881a322f5d4e, 0x000000000000000000000000b31a7d7b8c68b7bb6df6f07aaa7ba488ce63e3ba, 000000000000000000000000000000000000000000000000000000012a03f630 )
442 TetherToken.Transfer( from=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, to=0x605b9c6D79d6beBCaB36eCBE01FAf120D5B09D80, value=3716870000 )
443 ERC1967Proxy.0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2( 0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2, 0x000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7, 0x0000000000000000000000009642b23ed1e01df1092b92641051881a322f5d4e, 0x000000000000000000000000605b9c6d79d6bebcab36ecbe01faf120d5b09d80, 00000000000000000000000000000000000000000000000000000000dd8aef70 )
444 BXXToken.Transfer( from=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, to=0x9D3eBAA708984BCc0946F1feFB245fB145d2428D, value=39670705454889998221312 )
445 BXXToken.Approval( owner=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, spender=[Receiver] ERC1967Proxy, value=5960329294545110001778688 )
446 ERC1967Proxy.0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2( 0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2, 0x0000000000000000000000006b1a8f210ec6b7b6643cea3583fb0c079f367898, 0x0000000000000000000000009642b23ed1e01df1092b92641051881a322f5d4e, 0x0000000000000000000000009d3ebaa708984bcc0946f1fefb245fb145d2428d, 0000000000000000000000000000000000000000000008668da1ead11d800000 )
447 Contract.Transfer( from=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, to=0x59a38DE422B49612C9fD1edDb7FB3e93148D8776, value=128029510000000003735552 )
448 Contract.Approval( owner=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, spender=[Receiver] ERC1967Proxy, value=69216908299999999978110976 )
449 ERC1967Proxy.0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2( 0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2, 0x000000000000000000000000b8a87405d9a4f2f866319b77004e88dff66c0d92, 0x0000000000000000000000009642b23ed1e01df1092b92641051881a322f5d4e, 0x00000000000000000000000059a38de422b49612c9fd1eddb7fb3e93148d8776, 000000000000000000000000000000000000000000001b1c7e5f77958a000000 )
450 AXSToken.Approval( _owner=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, _spender=[Receiver] ERC1967Proxy, _value=199732780000000000000000 )
451 AXSToken.Transfer( _from=[Sender] 0x9642b23ed1e01df1092b92641051881a322f5d4e, _to=0x18a3a7FBEE2c00D29eB80EbC536b0C4E0714a50f, _value=267220000000000000000 )
452 ERC1967Proxy.0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2( 0xb3349ab5b902cf72320ce6e5e6112326ffdf4011716c381b8820cda70d1f0bc2, 0x000000000000000000000000bb0e17ef65f82ab018d8edd776e8dd940327b28b, 0x0000000000000000000000009642b23ed1e01df1092b92641051881a322f5d4e, 0x00000000000000000000000018a3a7fbee2c00d29eb80ebc536b0c4e0714a50f, 00000000000000000000000000000000000000000000000e7c6c26352fe20000 )

Account State Difference:

  Address   Before After State Difference Code
(Titan Builder)
15.440966951266192395 Eth15.440986290762514701 Eth0.000019339496322306
0x6b1a8f21...79f367898
0x9642b23E...a322F5D4E
(MEXC 16)
1,313.732631004479480176 Eth
Nonce: 2485030
1,313.732599232245053614 Eth
Nonce: 2485031
0.000031772234426562
0xb8a87405...fF66c0d92
0xBB0E17EF...40327B28b
0xdAC17F95...13D831ec7

Execution Trace

ERC1967Proxy.6b13fcb1( )
  • 0xece3315a09b17d04ab8f8639913a0248d168b562.6b13fcb1( )
    • TetherToken.transferFrom( _from=0x9642b23Ed1E01Df1092B92641051881a322F5D4E, _to=0xB31a7d7b8C68b7bB6DF6F07Aaa7Ba488ce63e3bA, _value=4999870000 )
    • TetherToken.transferFrom( _from=0x9642b23Ed1E01Df1092B92641051881a322F5D4E, _to=0x605b9c6D79d6beBCaB36eCBE01FAf120D5B09D80, _value=3716870000 )
    • BXXToken.transferFrom( sender=0x9642b23Ed1E01Df1092B92641051881a322F5D4E, recipient=0x9D3eBAA708984BCc0946F1feFB245fB145d2428D, amount=39670705454889998221312 ) => ( True )
    • Contract.transferFrom( sender=0x9642b23Ed1E01Df1092B92641051881a322F5D4E, recipient=0x59a38DE422B49612C9fD1edDb7FB3e93148D8776, amount=128029510000000003735552 ) => ( True )
    • AXSToken.transferFrom( _from=0x9642b23Ed1E01Df1092B92641051881a322F5D4E, _to=0x18a3a7FBEE2c00D29eB80EbC536b0C4E0714a50f, _value=267220000000000000000 ) => ( _success=True )
      File 1 of 5: ERC1967Proxy
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
      pragma solidity ^0.8.20;
      import {Context} from "../utils/Context.sol";
      /**
       * @dev Contract module which provides a basic access control mechanism, where
       * there is an account (an owner) that can be granted exclusive access to
       * specific functions.
       *
       * The initial owner is set to the address provided by the deployer. This can
       * later be changed with {transferOwnership}.
       *
       * This module is used through inheritance. It will make available the modifier
       * `onlyOwner`, which can be applied to your functions to restrict their use to
       * the owner.
       */
      abstract contract Ownable is Context {
          address private _owner;
          /**
           * @dev The caller account is not authorized to perform an operation.
           */
          error OwnableUnauthorizedAccount(address account);
          /**
           * @dev The owner is not a valid owner account. (eg. `address(0)`)
           */
          error OwnableInvalidOwner(address owner);
          event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
          /**
           * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
           */
          constructor(address initialOwner) {
              if (initialOwner == address(0)) {
                  revert OwnableInvalidOwner(address(0));
              }
              _transferOwnership(initialOwner);
          }
          /**
           * @dev Throws if called by any account other than the owner.
           */
          modifier onlyOwner() {
              _checkOwner();
              _;
          }
          /**
           * @dev Returns the address of the current owner.
           */
          function owner() public view virtual returns (address) {
              return _owner;
          }
          /**
           * @dev Throws if the sender is not the owner.
           */
          function _checkOwner() internal view virtual {
              if (owner() != _msgSender()) {
                  revert OwnableUnauthorizedAccount(_msgSender());
              }
          }
          /**
           * @dev Leaves the contract without owner. It will not be possible to call
           * `onlyOwner` functions. Can only be called by the current owner.
           *
           * NOTE: Renouncing ownership will leave the contract without an owner,
           * thereby disabling any functionality that is only available to the owner.
           */
          function renounceOwnership() public virtual onlyOwner {
              _transferOwnership(address(0));
          }
          /**
           * @dev Transfers ownership of the contract to a new account (`newOwner`).
           * Can only be called by the current owner.
           */
          function transferOwnership(address newOwner) public virtual onlyOwner {
              if (newOwner == address(0)) {
                  revert OwnableInvalidOwner(address(0));
              }
              _transferOwnership(newOwner);
          }
          /**
           * @dev Transfers ownership of the contract to a new account (`newOwner`).
           * Internal function without access restriction.
           */
          function _transferOwnership(address newOwner) internal virtual {
              address oldOwner = _owner;
              _owner = newOwner;
              emit OwnershipTransferred(oldOwner, newOwner);
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1967.sol)
      pragma solidity ^0.8.20;
      /**
       * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
       */
      interface IERC1967 {
          /**
           * @dev Emitted when the implementation is upgraded.
           */
          event Upgraded(address indexed implementation);
          /**
           * @dev Emitted when the admin account has changed.
           */
          event AdminChanged(address previousAdmin, address newAdmin);
          /**
           * @dev Emitted when the beacon is changed.
           */
          event BeaconUpgraded(address indexed beacon);
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/BeaconProxy.sol)
      pragma solidity ^0.8.20;
      import {IBeacon} from "./IBeacon.sol";
      import {Proxy} from "../Proxy.sol";
      import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
      /**
       * @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.
       *
       * The beacon address can only be set once during construction, and cannot be changed afterwards. It is stored in an
       * immutable variable to avoid unnecessary storage reads, and also in the beacon storage slot specified by
       * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] so that it can be accessed externally.
       *
       * CAUTION: Since the beacon address can never be changed, you must ensure that you either control the beacon, or trust
       * the beacon to not upgrade the implementation maliciously.
       *
       * IMPORTANT: Do not use the implementation logic to modify the beacon storage slot. Doing so would leave the proxy in
       * an inconsistent state where the beacon storage slot does not match the beacon address.
       */
      contract BeaconProxy is Proxy {
          // An immutable address for the beacon to avoid unnecessary SLOADs before each delegate call.
          address private immutable _beacon;
          /**
           * @dev Initializes the proxy with `beacon`.
           *
           * If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This
           * will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity
           * constructor.
           *
           * Requirements:
           *
           * - `beacon` must be a contract with the interface {IBeacon}.
           * - If `data` is empty, `msg.value` must be zero.
           */
          constructor(address beacon, bytes memory data) payable {
              ERC1967Utils.upgradeBeaconToAndCall(beacon, data);
              _beacon = beacon;
          }
          /**
           * @dev Returns the current implementation address of the associated beacon.
           */
          function _implementation() internal view virtual override returns (address) {
              return IBeacon(_getBeacon()).implementation();
          }
          /**
           * @dev Returns the beacon.
           */
          function _getBeacon() internal view virtual returns (address) {
              return _beacon;
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)
      pragma solidity ^0.8.20;
      /**
       * @dev This is the interface that {BeaconProxy} expects of its beacon.
       */
      interface IBeacon {
          /**
           * @dev Must return an address that can be used as a delegate call target.
           *
           * {UpgradeableBeacon} will check that this address is a contract.
           */
          function implementation() external view returns (address);
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/UpgradeableBeacon.sol)
      pragma solidity ^0.8.20;
      import {IBeacon} from "./IBeacon.sol";
      import {Ownable} from "../../access/Ownable.sol";
      /**
       * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their
       * implementation contract, which is where they will delegate all function calls.
       *
       * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.
       */
      contract UpgradeableBeacon is IBeacon, Ownable {
          address private _implementation;
          /**
           * @dev The `implementation` of the beacon is invalid.
           */
          error BeaconInvalidImplementation(address implementation);
          /**
           * @dev Emitted when the implementation returned by the beacon is changed.
           */
          event Upgraded(address indexed implementation);
          /**
           * @dev Sets the address of the initial implementation, and the initial owner who can upgrade the beacon.
           */
          constructor(address implementation_, address initialOwner) Ownable(initialOwner) {
              _setImplementation(implementation_);
          }
          /**
           * @dev Returns the current implementation address.
           */
          function implementation() public view virtual returns (address) {
              return _implementation;
          }
          /**
           * @dev Upgrades the beacon to a new implementation.
           *
           * Emits an {Upgraded} event.
           *
           * Requirements:
           *
           * - msg.sender must be the owner of the contract.
           * - `newImplementation` must be a contract.
           */
          function upgradeTo(address newImplementation) public virtual onlyOwner {
              _setImplementation(newImplementation);
          }
          /**
           * @dev Sets the implementation contract address for this beacon
           *
           * Requirements:
           *
           * - `newImplementation` must be a contract.
           */
          function _setImplementation(address newImplementation) private {
              if (newImplementation.code.length == 0) {
                  revert BeaconInvalidImplementation(newImplementation);
              }
              _implementation = newImplementation;
              emit Upgraded(newImplementation);
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)
      pragma solidity ^0.8.20;
      import {Proxy} from "../Proxy.sol";
      import {ERC1967Utils} from "./ERC1967Utils.sol";
      /**
       * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an
       * implementation address that can be changed. This address is stored in storage in the location specified by
       * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the
       * implementation behind the proxy.
       */
      contract ERC1967Proxy is Proxy {
          /**
           * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.
           *
           * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an
           * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.
           *
           * Requirements:
           *
           * - If `data` is empty, `msg.value` must be zero.
           */
          constructor(address implementation, bytes memory _data) payable {
              ERC1967Utils.upgradeToAndCall(implementation, _data);
          }
          /**
           * @dev Returns the current implementation address.
           *
           * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
           * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
           * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
           */
          function _implementation() internal view virtual override returns (address) {
              return ERC1967Utils.getImplementation();
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)
      pragma solidity ^0.8.20;
      import {IBeacon} from "../beacon/IBeacon.sol";
      import {Address} from "../../utils/Address.sol";
      import {StorageSlot} from "../../utils/StorageSlot.sol";
      /**
       * @dev This abstract contract provides getters and event emitting update functions for
       * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
       */
      library ERC1967Utils {
          // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.
          // This will be fixed in Solidity 0.8.21. At that point we should remove these events.
          /**
           * @dev Emitted when the implementation is upgraded.
           */
          event Upgraded(address indexed implementation);
          /**
           * @dev Emitted when the admin account has changed.
           */
          event AdminChanged(address previousAdmin, address newAdmin);
          /**
           * @dev Emitted when the beacon is changed.
           */
          event BeaconUpgraded(address indexed beacon);
          /**
           * @dev Storage slot with the address of the current implementation.
           * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
           */
          // solhint-disable-next-line private-vars-leading-underscore
          bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
          /**
           * @dev The `implementation` of the proxy is invalid.
           */
          error ERC1967InvalidImplementation(address implementation);
          /**
           * @dev The `admin` of the proxy is invalid.
           */
          error ERC1967InvalidAdmin(address admin);
          /**
           * @dev The `beacon` of the proxy is invalid.
           */
          error ERC1967InvalidBeacon(address beacon);
          /**
           * @dev An upgrade function sees `msg.value > 0` that may be lost.
           */
          error ERC1967NonPayable();
          /**
           * @dev Returns the current implementation address.
           */
          function getImplementation() internal view returns (address) {
              return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;
          }
          /**
           * @dev Stores a new address in the EIP1967 implementation slot.
           */
          function _setImplementation(address newImplementation) private {
              if (newImplementation.code.length == 0) {
                  revert ERC1967InvalidImplementation(newImplementation);
              }
              StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
          }
          /**
           * @dev Performs implementation upgrade with additional setup call if data is nonempty.
           * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
           * to avoid stuck value in the contract.
           *
           * Emits an {IERC1967-Upgraded} event.
           */
          function upgradeToAndCall(address newImplementation, bytes memory data) internal {
              _setImplementation(newImplementation);
              emit Upgraded(newImplementation);
              if (data.length > 0) {
                  Address.functionDelegateCall(newImplementation, data);
              } else {
                  _checkNonPayable();
              }
          }
          /**
           * @dev Storage slot with the admin of the contract.
           * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
           */
          // solhint-disable-next-line private-vars-leading-underscore
          bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
          /**
           * @dev Returns the current admin.
           *
           * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
           * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
           * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
           */
          function getAdmin() internal view returns (address) {
              return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
          }
          /**
           * @dev Stores a new address in the EIP1967 admin slot.
           */
          function _setAdmin(address newAdmin) private {
              if (newAdmin == address(0)) {
                  revert ERC1967InvalidAdmin(address(0));
              }
              StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
          }
          /**
           * @dev Changes the admin of the proxy.
           *
           * Emits an {IERC1967-AdminChanged} event.
           */
          function changeAdmin(address newAdmin) internal {
              emit AdminChanged(getAdmin(), newAdmin);
              _setAdmin(newAdmin);
          }
          /**
           * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
           * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
           */
          // solhint-disable-next-line private-vars-leading-underscore
          bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
          /**
           * @dev Returns the current beacon.
           */
          function getBeacon() internal view returns (address) {
              return StorageSlot.getAddressSlot(BEACON_SLOT).value;
          }
          /**
           * @dev Stores a new beacon in the EIP1967 beacon slot.
           */
          function _setBeacon(address newBeacon) private {
              if (newBeacon.code.length == 0) {
                  revert ERC1967InvalidBeacon(newBeacon);
              }
              StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;
              address beaconImplementation = IBeacon(newBeacon).implementation();
              if (beaconImplementation.code.length == 0) {
                  revert ERC1967InvalidImplementation(beaconImplementation);
              }
          }
          /**
           * @dev Change the beacon and trigger a setup call if data is nonempty.
           * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
           * to avoid stuck value in the contract.
           *
           * Emits an {IERC1967-BeaconUpgraded} event.
           *
           * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
           * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
           * efficiency.
           */
          function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
              _setBeacon(newBeacon);
              emit BeaconUpgraded(newBeacon);
              if (data.length > 0) {
                  Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
              } else {
                  _checkNonPayable();
              }
          }
          /**
           * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
           * if an upgrade doesn't perform an initialization call.
           */
          function _checkNonPayable() private {
              if (msg.value > 0) {
                  revert ERC1967NonPayable();
              }
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)
      pragma solidity ^0.8.20;
      /**
       * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
       * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
       * be specified by overriding the virtual {_implementation} function.
       *
       * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
       * different contract through the {_delegate} function.
       *
       * The success and return data of the delegated call will be returned back to the caller of the proxy.
       */
      abstract contract Proxy {
          /**
           * @dev Delegates the current call to `implementation`.
           *
           * This function does not return to its internal call site, it will return directly to the external caller.
           */
          function _delegate(address implementation) internal virtual {
              assembly {
                  // Copy msg.data. We take full control of memory in this inline assembly
                  // block because it will not return to Solidity code. We overwrite the
                  // Solidity scratch pad at memory position 0.
                  calldatacopy(0, 0, calldatasize())
                  // Call the implementation.
                  // out and outsize are 0 because we don't know the size yet.
                  let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
                  // Copy the returned data.
                  returndatacopy(0, 0, returndatasize())
                  switch result
                  // delegatecall returns 0 on error.
                  case 0 {
                      revert(0, returndatasize())
                  }
                  default {
                      return(0, returndatasize())
                  }
              }
          }
          /**
           * @dev This is a virtual function that should be overridden so it returns the address to which the fallback
           * function and {_fallback} should delegate.
           */
          function _implementation() internal view virtual returns (address);
          /**
           * @dev Delegates the current call to the address returned by `_implementation()`.
           *
           * This function does not return to its internal call site, it will return directly to the external caller.
           */
          function _fallback() internal virtual {
              _delegate(_implementation());
          }
          /**
           * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
           * function in the contract matches the call data.
           */
          fallback() external payable virtual {
              _fallback();
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/transparent/ProxyAdmin.sol)
      pragma solidity ^0.8.20;
      import {ITransparentUpgradeableProxy} from "./TransparentUpgradeableProxy.sol";
      import {Ownable} from "../../access/Ownable.sol";
      /**
       * @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an
       * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}.
       */
      contract ProxyAdmin is Ownable {
          /**
           * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgrade(address)`
           * and `upgradeAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,
           * while `upgradeAndCall` will invoke the `receive` function if the second argument is the empty byte string.
           * If the getter returns `"5.0.0"`, only `upgradeAndCall(address,bytes)` is present, and the second argument must
           * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function
           * during an upgrade.
           */
          string public constant UPGRADE_INTERFACE_VERSION = "5.0.0";
          /**
           * @dev Sets the initial owner who can perform upgrades.
           */
          constructor(address initialOwner) Ownable(initialOwner) {}
          /**
           * @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation.
           * See {TransparentUpgradeableProxy-_dispatchUpgradeToAndCall}.
           *
           * Requirements:
           *
           * - This contract must be the admin of `proxy`.
           * - If `data` is empty, `msg.value` must be zero.
           */
          function upgradeAndCall(
              ITransparentUpgradeableProxy proxy,
              address implementation,
              bytes memory data
          ) public payable virtual onlyOwner {
              proxy.upgradeToAndCall{value: msg.value}(implementation, data);
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (proxy/transparent/TransparentUpgradeableProxy.sol)
      pragma solidity ^0.8.20;
      import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
      import {ERC1967Proxy} from "../ERC1967/ERC1967Proxy.sol";
      import {IERC1967} from "../../interfaces/IERC1967.sol";
      import {ProxyAdmin} from "./ProxyAdmin.sol";
      /**
       * @dev Interface for {TransparentUpgradeableProxy}. In order to implement transparency, {TransparentUpgradeableProxy}
       * does not implement this interface directly, and its upgradeability mechanism is implemented by an internal dispatch
       * mechanism. The compiler is unaware that these functions are implemented by {TransparentUpgradeableProxy} and will not
       * include them in the ABI so this interface must be used to interact with it.
       */
      interface ITransparentUpgradeableProxy is IERC1967 {
          function upgradeToAndCall(address, bytes calldata) external payable;
      }
      /**
       * @dev This contract implements a proxy that is upgradeable through an associated {ProxyAdmin} instance.
       *
       * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
       * clashing], which can potentially be used in an attack, this contract uses the
       * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two
       * things that go hand in hand:
       *
       * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if
       * that call matches the {ITransparentUpgradeableProxy-upgradeToAndCall} function exposed by the proxy itself.
       * 2. If the admin calls the proxy, it can call the `upgradeToAndCall` function but any other call won't be forwarded to
       * the implementation. If the admin tries to call a function on the implementation it will fail with an error indicating
       * the proxy admin cannot fallback to the target implementation.
       *
       * These properties mean that the admin account can only be used for upgrading the proxy, so it's best if it's a
       * dedicated account that is not used for anything else. This will avoid headaches due to sudden errors when trying to
       * call a function from the proxy implementation. For this reason, the proxy deploys an instance of {ProxyAdmin} and
       * allows upgrades only if they come through it. You should think of the `ProxyAdmin` instance as the administrative
       * interface of the proxy, including the ability to change who can trigger upgrades by transferring ownership.
       *
       * NOTE: The real interface of this proxy is that defined in `ITransparentUpgradeableProxy`. This contract does not
       * inherit from that interface, and instead `upgradeToAndCall` is implicitly implemented using a custom dispatch
       * mechanism in `_fallback`. Consequently, the compiler will not produce an ABI for this contract. This is necessary to
       * fully implement transparency without decoding reverts caused by selector clashes between the proxy and the
       * implementation.
       *
       * NOTE: This proxy does not inherit from {Context} deliberately. The {ProxyAdmin} of this contract won't send a
       * meta-transaction in any way, and any other meta-transaction setup should be made in the implementation contract.
       *
       * IMPORTANT: This contract avoids unnecessary storage reads by setting the admin only during construction as an
       * immutable variable, preventing any changes thereafter. However, the admin slot defined in ERC-1967 can still be
       * overwritten by the implementation logic pointed to by this proxy. In such cases, the contract may end up in an
       * undesirable state where the admin slot is different from the actual admin.
       *
       * WARNING: It is not recommended to extend this contract to add additional external functions. If you do so, the
       * compiler will not check that there are no selector conflicts, due to the note above. A selector clash between any new
       * function and the functions declared in {ITransparentUpgradeableProxy} will be resolved in favor of the new one. This
       * could render the `upgradeToAndCall` function inaccessible, preventing upgradeability and compromising transparency.
       */
      contract TransparentUpgradeableProxy is ERC1967Proxy {
          // An immutable address for the admin to avoid unnecessary SLOADs before each call
          // at the expense of removing the ability to change the admin once it's set.
          // This is acceptable if the admin is always a ProxyAdmin instance or similar contract
          // with its own ability to transfer the permissions to another account.
          address private immutable _admin;
          /**
           * @dev The proxy caller is the current admin, and can't fallback to the proxy target.
           */
          error ProxyDeniedAdminAccess();
          /**
           * @dev Initializes an upgradeable proxy managed by an instance of a {ProxyAdmin} with an `initialOwner`,
           * backed by the implementation at `_logic`, and optionally initialized with `_data` as explained in
           * {ERC1967Proxy-constructor}.
           */
          constructor(address _logic, address initialOwner, bytes memory _data) payable ERC1967Proxy(_logic, _data) {
              _admin = address(new ProxyAdmin(initialOwner));
              // Set the storage value and emit an event for ERC-1967 compatibility
              ERC1967Utils.changeAdmin(_proxyAdmin());
          }
          /**
           * @dev Returns the admin of this proxy.
           */
          function _proxyAdmin() internal virtual returns (address) {
              return _admin;
          }
          /**
           * @dev If caller is the admin process the call internally, otherwise transparently fallback to the proxy behavior.
           */
          function _fallback() internal virtual override {
              if (msg.sender == _proxyAdmin()) {
                  if (msg.sig != ITransparentUpgradeableProxy.upgradeToAndCall.selector) {
                      revert ProxyDeniedAdminAccess();
                  } else {
                      _dispatchUpgradeToAndCall();
                  }
              } else {
                  super._fallback();
              }
          }
          /**
           * @dev Upgrade the implementation of the proxy. See {ERC1967Utils-upgradeToAndCall}.
           *
           * Requirements:
           *
           * - If `data` is empty, `msg.value` must be zero.
           */
          function _dispatchUpgradeToAndCall() private {
              (address newImplementation, bytes memory data) = abi.decode(msg.data[4:], (address, bytes));
              ERC1967Utils.upgradeToAndCall(newImplementation, data);
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
      pragma solidity ^0.8.20;
      /**
       * @dev Collection of functions related to the address type
       */
      library Address {
          /**
           * @dev The ETH balance of the account is not enough to perform the operation.
           */
          error AddressInsufficientBalance(address account);
          /**
           * @dev There's no code at `target` (it is not a contract).
           */
          error AddressEmptyCode(address target);
          /**
           * @dev A call to an address target failed. The target may have reverted.
           */
          error FailedInnerCall();
          /**
           * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
           */
          function sendValue(address payable recipient, uint256 amount) internal {
              if (address(this).balance < amount) {
                  revert AddressInsufficientBalance(address(this));
              }
              (bool success, ) = recipient.call{value: amount}("");
              if (!success) {
                  revert FailedInnerCall();
              }
          }
          /**
           * @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 or custom error, it is bubbled
           * up by this function (like regular Solidity function calls). However, if
           * the call reverted with no returned reason, this function reverts with a
           * {FailedInnerCall} error.
           *
           * 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.
           */
          function functionCall(address target, bytes memory data) internal returns (bytes memory) {
              return functionCallWithValue(target, data, 0);
          }
          /**
           * @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`.
           */
          function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
              if (address(this).balance < value) {
                  revert AddressInsufficientBalance(address(this));
              }
              (bool success, bytes memory returndata) = target.call{value: value}(data);
              return verifyCallResultFromTarget(target, success, returndata);
          }
          /**
           * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
           * but performing a static call.
           */
          function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
              (bool success, bytes memory returndata) = target.staticcall(data);
              return verifyCallResultFromTarget(target, success, returndata);
          }
          /**
           * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
           * but performing a delegate call.
           */
          function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
              (bool success, bytes memory returndata) = target.delegatecall(data);
              return verifyCallResultFromTarget(target, success, returndata);
          }
          /**
           * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
           * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
           * unsuccessful call.
           */
          function verifyCallResultFromTarget(
              address target,
              bool success,
              bytes memory returndata
          ) internal view returns (bytes memory) {
              if (!success) {
                  _revert(returndata);
              } else {
                  // only check if target is a contract if the call was successful and the return data is empty
                  // otherwise we already know that it was a contract
                  if (returndata.length == 0 && target.code.length == 0) {
                      revert AddressEmptyCode(target);
                  }
                  return returndata;
              }
          }
          /**
           * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
           * revert reason or with a default {FailedInnerCall} error.
           */
          function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
              if (!success) {
                  _revert(returndata);
              } else {
                  return returndata;
              }
          }
          /**
           * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
           */
          function _revert(bytes memory returndata) 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 FailedInnerCall();
              }
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
      pragma solidity ^0.8.20;
      /**
       * @dev Provides information about the current execution context, including the
       * sender of the transaction and its data. While these are generally available
       * via msg.sender and msg.data, they should not be accessed in such a direct
       * manner, since when dealing with meta-transactions the account sending and
       * paying for execution may not be the actual sender (as far as an application
       * is concerned).
       *
       * This contract is only required for intermediate, library-like contracts.
       */
      abstract contract Context {
          function _msgSender() internal view virtual returns (address) {
              return msg.sender;
          }
          function _msgData() internal view virtual returns (bytes calldata) {
              return msg.data;
          }
          function _contextSuffixLength() internal view virtual returns (uint256) {
              return 0;
          }
      }
      // SPDX-License-Identifier: MIT
      // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
      // This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
      pragma solidity ^0.8.20;
      /**
       * @dev Library for reading and writing primitive types to specific storage slots.
       *
       * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
       * This library helps with reading and writing to such slots without the need for inline assembly.
       *
       * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
       *
       * Example usage to set ERC1967 implementation slot:
       * ```solidity
       * contract ERC1967 {
       *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
       *
       *     function _getImplementation() internal view returns (address) {
       *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
       *     }
       *
       *     function _setImplementation(address newImplementation) internal {
       *         require(newImplementation.code.length > 0);
       *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
       *     }
       * }
       * ```
       */
      library StorageSlot {
          struct AddressSlot {
              address value;
          }
          struct BooleanSlot {
              bool value;
          }
          struct Bytes32Slot {
              bytes32 value;
          }
          struct Uint256Slot {
              uint256 value;
          }
          struct StringSlot {
              string value;
          }
          struct BytesSlot {
              bytes value;
          }
          /**
           * @dev Returns an `AddressSlot` with member `value` located at `slot`.
           */
          function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := slot
              }
          }
          /**
           * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
           */
          function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := slot
              }
          }
          /**
           * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
           */
          function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := slot
              }
          }
          /**
           * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
           */
          function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := slot
              }
          }
          /**
           * @dev Returns an `StringSlot` with member `value` located at `slot`.
           */
          function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := slot
              }
          }
          /**
           * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
           */
          function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := store.slot
              }
          }
          /**
           * @dev Returns an `BytesSlot` with member `value` located at `slot`.
           */
          function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := slot
              }
          }
          /**
           * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
           */
          function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
              /// @solidity memory-safe-assembly
              assembly {
                  r.slot := store.slot
              }
          }
      }
      

      File 2 of 5: TetherToken
      pragma solidity ^0.4.17;
      
      /**
       * @title SafeMath
       * @dev Math operations with safety checks that throw on error
       */
      library SafeMath {
          function mul(uint256 a, uint256 b) internal pure returns (uint256) {
              if (a == 0) {
                  return 0;
              }
              uint256 c = a * b;
              assert(c / a == b);
              return c;
          }
      
          function div(uint256 a, uint256 b) internal pure returns (uint256) {
              // assert(b > 0); // Solidity automatically throws when dividing by 0
              uint256 c = a / b;
              // assert(a == b * c + a % b); // There is no case in which this doesn't hold
              return c;
          }
      
          function sub(uint256 a, uint256 b) internal pure returns (uint256) {
              assert(b <= a);
              return a - b;
          }
      
          function add(uint256 a, uint256 b) internal pure returns (uint256) {
              uint256 c = a + b;
              assert(c >= a);
              return c;
          }
      }
      
      /**
       * @title Ownable
       * @dev The Ownable contract has an owner address, and provides basic authorization control
       * functions, this simplifies the implementation of "user permissions".
       */
      contract Ownable {
          address public owner;
      
          /**
            * @dev The Ownable constructor sets the original `owner` of the contract to the sender
            * account.
            */
          function Ownable() public {
              owner = msg.sender;
          }
      
          /**
            * @dev Throws if called by any account other than the owner.
            */
          modifier onlyOwner() {
              require(msg.sender == owner);
              _;
          }
      
          /**
          * @dev Allows the current owner to transfer control of the contract to a newOwner.
          * @param newOwner The address to transfer ownership to.
          */
          function transferOwnership(address newOwner) public onlyOwner {
              if (newOwner != address(0)) {
                  owner = newOwner;
              }
          }
      
      }
      
      /**
       * @title ERC20Basic
       * @dev Simpler version of ERC20 interface
       * @dev see https://github.com/ethereum/EIPs/issues/20
       */
      contract ERC20Basic {
          uint public _totalSupply;
          function totalSupply() public constant returns (uint);
          function balanceOf(address who) public constant returns (uint);
          function transfer(address to, uint value) public;
          event Transfer(address indexed from, address indexed to, uint value);
      }
      
      /**
       * @title ERC20 interface
       * @dev see https://github.com/ethereum/EIPs/issues/20
       */
      contract ERC20 is ERC20Basic {
          function allowance(address owner, address spender) public constant returns (uint);
          function transferFrom(address from, address to, uint value) public;
          function approve(address spender, uint value) public;
          event Approval(address indexed owner, address indexed spender, uint value);
      }
      
      /**
       * @title Basic token
       * @dev Basic version of StandardToken, with no allowances.
       */
      contract BasicToken is Ownable, ERC20Basic {
          using SafeMath for uint;
      
          mapping(address => uint) public balances;
      
          // additional variables for use if transaction fees ever became necessary
          uint public basisPointsRate = 0;
          uint public maximumFee = 0;
      
          /**
          * @dev Fix for the ERC20 short address attack.
          */
          modifier onlyPayloadSize(uint size) {
              require(!(msg.data.length < size + 4));
              _;
          }
      
          /**
          * @dev transfer token for a specified address
          * @param _to The address to transfer to.
          * @param _value The amount to be transferred.
          */
          function transfer(address _to, uint _value) public onlyPayloadSize(2 * 32) {
              uint fee = (_value.mul(basisPointsRate)).div(10000);
              if (fee > maximumFee) {
                  fee = maximumFee;
              }
              uint sendAmount = _value.sub(fee);
              balances[msg.sender] = balances[msg.sender].sub(_value);
              balances[_to] = balances[_to].add(sendAmount);
              if (fee > 0) {
                  balances[owner] = balances[owner].add(fee);
                  Transfer(msg.sender, owner, fee);
              }
              Transfer(msg.sender, _to, sendAmount);
          }
      
          /**
          * @dev Gets the balance of the specified address.
          * @param _owner The address to query the the balance of.
          * @return An uint representing the amount owned by the passed address.
          */
          function balanceOf(address _owner) public constant returns (uint balance) {
              return balances[_owner];
          }
      
      }
      
      /**
       * @title Standard ERC20 token
       *
       * @dev Implementation of the basic standard token.
       * @dev https://github.com/ethereum/EIPs/issues/20
       * @dev Based oncode by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
       */
      contract StandardToken is BasicToken, ERC20 {
      
          mapping (address => mapping (address => uint)) public allowed;
      
          uint public constant MAX_UINT = 2**256 - 1;
      
          /**
          * @dev Transfer tokens from one address to another
          * @param _from address The address which you want to send tokens from
          * @param _to address The address which you want to transfer to
          * @param _value uint the amount of tokens to be transferred
          */
          function transferFrom(address _from, address _to, uint _value) public onlyPayloadSize(3 * 32) {
              var _allowance = allowed[_from][msg.sender];
      
              // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
              // if (_value > _allowance) throw;
      
              uint fee = (_value.mul(basisPointsRate)).div(10000);
              if (fee > maximumFee) {
                  fee = maximumFee;
              }
              if (_allowance < MAX_UINT) {
                  allowed[_from][msg.sender] = _allowance.sub(_value);
              }
              uint sendAmount = _value.sub(fee);
              balances[_from] = balances[_from].sub(_value);
              balances[_to] = balances[_to].add(sendAmount);
              if (fee > 0) {
                  balances[owner] = balances[owner].add(fee);
                  Transfer(_from, owner, fee);
              }
              Transfer(_from, _to, sendAmount);
          }
      
          /**
          * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
          * @param _spender The address which will spend the funds.
          * @param _value The amount of tokens to be spent.
          */
          function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) {
      
              // To change the approve amount you first have to reduce the addresses`
              //  allowance to zero by calling `approve(_spender, 0)` if it is not
              //  already 0 to mitigate the race condition described here:
              //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
              require(!((_value != 0) && (allowed[msg.sender][_spender] != 0)));
      
              allowed[msg.sender][_spender] = _value;
              Approval(msg.sender, _spender, _value);
          }
      
          /**
          * @dev Function to check the amount of tokens than an owner allowed to a spender.
          * @param _owner address The address which owns the funds.
          * @param _spender address The address which will spend the funds.
          * @return A uint specifying the amount of tokens still available for the spender.
          */
          function allowance(address _owner, address _spender) public constant returns (uint remaining) {
              return allowed[_owner][_spender];
          }
      
      }
      
      
      /**
       * @title Pausable
       * @dev Base contract which allows children to implement an emergency stop mechanism.
       */
      contract Pausable is Ownable {
        event Pause();
        event Unpause();
      
        bool public paused = false;
      
      
        /**
         * @dev Modifier to make a function callable only when the contract is not paused.
         */
        modifier whenNotPaused() {
          require(!paused);
          _;
        }
      
        /**
         * @dev Modifier to make a function callable only when the contract is paused.
         */
        modifier whenPaused() {
          require(paused);
          _;
        }
      
        /**
         * @dev called by the owner to pause, triggers stopped state
         */
        function pause() onlyOwner whenNotPaused public {
          paused = true;
          Pause();
        }
      
        /**
         * @dev called by the owner to unpause, returns to normal state
         */
        function unpause() onlyOwner whenPaused public {
          paused = false;
          Unpause();
        }
      }
      
      contract BlackList is Ownable, BasicToken {
      
          /////// Getters to allow the same blacklist to be used also by other contracts (including upgraded Tether) ///////
          function getBlackListStatus(address _maker) external constant returns (bool) {
              return isBlackListed[_maker];
          }
      
          function getOwner() external constant returns (address) {
              return owner;
          }
      
          mapping (address => bool) public isBlackListed;
          
          function addBlackList (address _evilUser) public onlyOwner {
              isBlackListed[_evilUser] = true;
              AddedBlackList(_evilUser);
          }
      
          function removeBlackList (address _clearedUser) public onlyOwner {
              isBlackListed[_clearedUser] = false;
              RemovedBlackList(_clearedUser);
          }
      
          function destroyBlackFunds (address _blackListedUser) public onlyOwner {
              require(isBlackListed[_blackListedUser]);
              uint dirtyFunds = balanceOf(_blackListedUser);
              balances[_blackListedUser] = 0;
              _totalSupply -= dirtyFunds;
              DestroyedBlackFunds(_blackListedUser, dirtyFunds);
          }
      
          event DestroyedBlackFunds(address _blackListedUser, uint _balance);
      
          event AddedBlackList(address _user);
      
          event RemovedBlackList(address _user);
      
      }
      
      contract UpgradedStandardToken is StandardToken{
          // those methods are called by the legacy contract
          // and they must ensure msg.sender to be the contract address
          function transferByLegacy(address from, address to, uint value) public;
          function transferFromByLegacy(address sender, address from, address spender, uint value) public;
          function approveByLegacy(address from, address spender, uint value) public;
      }
      
      contract TetherToken is Pausable, StandardToken, BlackList {
      
          string public name;
          string public symbol;
          uint public decimals;
          address public upgradedAddress;
          bool public deprecated;
      
          //  The contract can be initialized with a number of tokens
          //  All the tokens are deposited to the owner address
          //
          // @param _balance Initial supply of the contract
          // @param _name Token Name
          // @param _symbol Token symbol
          // @param _decimals Token decimals
          function TetherToken(uint _initialSupply, string _name, string _symbol, uint _decimals) public {
              _totalSupply = _initialSupply;
              name = _name;
              symbol = _symbol;
              decimals = _decimals;
              balances[owner] = _initialSupply;
              deprecated = false;
          }
      
          // Forward ERC20 methods to upgraded contract if this one is deprecated
          function transfer(address _to, uint _value) public whenNotPaused {
              require(!isBlackListed[msg.sender]);
              if (deprecated) {
                  return UpgradedStandardToken(upgradedAddress).transferByLegacy(msg.sender, _to, _value);
              } else {
                  return super.transfer(_to, _value);
              }
          }
      
          // Forward ERC20 methods to upgraded contract if this one is deprecated
          function transferFrom(address _from, address _to, uint _value) public whenNotPaused {
              require(!isBlackListed[_from]);
              if (deprecated) {
                  return UpgradedStandardToken(upgradedAddress).transferFromByLegacy(msg.sender, _from, _to, _value);
              } else {
                  return super.transferFrom(_from, _to, _value);
              }
          }
      
          // Forward ERC20 methods to upgraded contract if this one is deprecated
          function balanceOf(address who) public constant returns (uint) {
              if (deprecated) {
                  return UpgradedStandardToken(upgradedAddress).balanceOf(who);
              } else {
                  return super.balanceOf(who);
              }
          }
      
          // Forward ERC20 methods to upgraded contract if this one is deprecated
          function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) {
              if (deprecated) {
                  return UpgradedStandardToken(upgradedAddress).approveByLegacy(msg.sender, _spender, _value);
              } else {
                  return super.approve(_spender, _value);
              }
          }
      
          // Forward ERC20 methods to upgraded contract if this one is deprecated
          function allowance(address _owner, address _spender) public constant returns (uint remaining) {
              if (deprecated) {
                  return StandardToken(upgradedAddress).allowance(_owner, _spender);
              } else {
                  return super.allowance(_owner, _spender);
              }
          }
      
          // deprecate current contract in favour of a new one
          function deprecate(address _upgradedAddress) public onlyOwner {
              deprecated = true;
              upgradedAddress = _upgradedAddress;
              Deprecate(_upgradedAddress);
          }
      
          // deprecate current contract if favour of a new one
          function totalSupply() public constant returns (uint) {
              if (deprecated) {
                  return StandardToken(upgradedAddress).totalSupply();
              } else {
                  return _totalSupply;
              }
          }
      
          // Issue a new amount of tokens
          // these tokens are deposited into the owner address
          //
          // @param _amount Number of tokens to be issued
          function issue(uint amount) public onlyOwner {
              require(_totalSupply + amount > _totalSupply);
              require(balances[owner] + amount > balances[owner]);
      
              balances[owner] += amount;
              _totalSupply += amount;
              Issue(amount);
          }
      
          // Redeem tokens.
          // These tokens are withdrawn from the owner address
          // if the balance must be enough to cover the redeem
          // or the call will fail.
          // @param _amount Number of tokens to be issued
          function redeem(uint amount) public onlyOwner {
              require(_totalSupply >= amount);
              require(balances[owner] >= amount);
      
              _totalSupply -= amount;
              balances[owner] -= amount;
              Redeem(amount);
          }
      
          function setParams(uint newBasisPoints, uint newMaxFee) public onlyOwner {
              // Ensure transparency by hardcoding limit beyond which fees can never be added
              require(newBasisPoints < 20);
              require(newMaxFee < 50);
      
              basisPointsRate = newBasisPoints;
              maximumFee = newMaxFee.mul(10**decimals);
      
              Params(basisPointsRate, maximumFee);
          }
      
          // Called when new token are issued
          event Issue(uint amount);
      
          // Called when tokens are redeemed
          event Redeem(uint amount);
      
          // Called when contract is deprecated
          event Deprecate(address newAddress);
      
          // Called if contract ever adds fees
          event Params(uint feeBasisPoints, uint maxFee);
      }

      File 3 of 5: BXXToken
      // File: @openzeppelin/contracts/token/ERC20/IERC20.sol
      
      pragma solidity ^0.8.0;
      
      /**
       * @dev Interface of the ERC20 standard as defined in the EIP.
       */
      interface IERC20 {
          /**
           * @dev Returns the amount of tokens in existence.
           */
          function totalSupply() external view returns (uint256);
      
          /**
           * @dev Returns the amount of tokens owned by `account`.
           */
          function balanceOf(address account) external view returns (uint256);
      
          /**
           * @dev Moves `amount` tokens from the caller's account to `recipient`.
           *
           * Returns a boolean value indicating whether the operation succeeded.
           *
           * Emits a {Transfer} event.
           */
          function transfer(address recipient, uint256 amount) external returns (bool);
      
          /**
           * @dev Returns the remaining number of tokens that `spender` will be
           * allowed to spend on behalf of `owner` through {transferFrom}. This is
           * zero by default.
           *
           * This value changes when {approve} or {transferFrom} are called.
           */
          function allowance(address owner, address spender) external view returns (uint256);
      
          /**
           * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
           *
           * Returns a boolean value indicating whether the operation succeeded.
           *
           * IMPORTANT: Beware that changing an allowance with this method brings the risk
           * that someone may use both the old and the new allowance by unfortunate
           * transaction ordering. One possible solution to mitigate this race
           * condition is to first reduce the spender's allowance to 0 and set the
           * desired value afterwards:
           * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
           *
           * Emits an {Approval} event.
           */
          function approve(address spender, uint256 amount) external returns (bool);
      
          /**
           * @dev Moves `amount` tokens from `sender` to `recipient` using the
           * allowance mechanism. `amount` is then deducted from the caller's
           * allowance.
           *
           * Returns a boolean value indicating whether the operation succeeded.
           *
           * Emits a {Transfer} event.
           */
          function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
      
          /**
           * @dev Emitted when `value` tokens are moved from one account (`from`) to
           * another (`to`).
           *
           * Note that `value` may be zero.
           */
          event Transfer(address indexed from, address indexed to, uint256 value);
      
          /**
           * @dev Emitted when the allowance of a `spender` for an `owner` is set by
           * a call to {approve}. `value` is the new allowance.
           */
          event Approval(address indexed owner, address indexed spender, uint256 value);
      }
      
      // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
      
      pragma solidity ^0.8.0;
      
      
      /**
       * @dev Interface for the optional metadata functions from the ERC20 standard.
       *
       * _Available since v4.1._
       */
      interface IERC20Metadata is IERC20 {
          /**
           * @dev Returns the name of the token.
           */
          function name() external view returns (string memory);
      
          /**
           * @dev Returns the symbol of the token.
           */
          function symbol() external view returns (string memory);
      
          /**
           * @dev Returns the decimals places of the token.
           */
          function decimals() external view returns (uint8);
      }
      
      // File: @openzeppelin/contracts/utils/Context.sol
      
      pragma solidity ^0.8.0;
      
      /*
       * @dev Provides information about the current execution context, including the
       * sender of the transaction and its data. While these are generally available
       * via msg.sender and msg.data, they should not be accessed in such a direct
       * manner, since when dealing with meta-transactions the account sending and
       * paying for execution may not be the actual sender (as far as an application
       * is concerned).
       *
       * This contract is only required for intermediate, library-like contracts.
       */
      abstract contract Context {
          function _msgSender() internal view virtual returns (address) {
              return msg.sender;
          }
      
          function _msgData() internal view virtual returns (bytes calldata) {
              this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
              return msg.data;
          }
      }
      
      // File: @openzeppelin/contracts/token/ERC20/ERC20.sol
      
      
      pragma solidity ^0.8.0;
      
      
      
      
      /**
       * @dev Implementation of the {IERC20} interface.
       *
       * This implementation is agnostic to the way tokens are created. This means
       * that a supply mechanism has to be added in a derived contract using {_mint}.
       * For a generic mechanism see {ERC20PresetMinterPauser}.
       *
       * TIP: For a detailed writeup see our guide
       * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
       * to implement supply mechanisms].
       *
       * We have followed general OpenZeppelin guidelines: functions revert instead
       * of returning `false` on failure. This behavior is nonetheless conventional
       * and does not conflict with the expectations of ERC20 applications.
       *
       * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
       * This allows applications to reconstruct the allowance for all accounts just
       * by listening to said events. Other implementations of the EIP may not emit
       * these events, as it isn't required by the specification.
       *
       * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
       * functions have been added to mitigate the well-known issues around setting
       * allowances. See {IERC20-approve}.
       */
      contract ERC20 is Context, IERC20, IERC20Metadata {
          mapping (address => uint256) private _balances;
      
          mapping (address => mapping (address => uint256)) private _allowances;
      
          uint256 private _totalSupply;
      
          string private _name;
          string private _symbol;
      
          /**
           * @dev Sets the values for {name} and {symbol}.
           *
           * The defaut value of {decimals} is 18. To select a different value for
           * {decimals} you should overload it.
           *
           * All two of these values are immutable: they can only be set once during
           * construction.
           */
          constructor (string memory name_, string memory symbol_) {
              _name = name_;
              _symbol = symbol_;
          }
      
          /**
           * @dev Returns the name of the token.
           */
          function name() public view virtual override returns (string memory) {
              return _name;
          }
      
          /**
           * @dev Returns the symbol of the token, usually a shorter version of the
           * name.
           */
          function symbol() public view virtual override returns (string memory) {
              return _symbol;
          }
      
          /**
           * @dev Returns the number of decimals used to get its user representation.
           * For example, if `decimals` equals `2`, a balance of `505` tokens should
           * be displayed to a user as `5,05` (`505 / 10 ** 2`).
           *
           * Tokens usually opt for a value of 18, imitating the relationship between
           * Ether and Wei. This is the value {ERC20} uses, unless this function is
           * overridden;
           *
           * NOTE: This information is only used for _display_ purposes: it in
           * no way affects any of the arithmetic of the contract, including
           * {IERC20-balanceOf} and {IERC20-transfer}.
           */
          function decimals() public view virtual override returns (uint8) {
              return 18;
          }
      
          /**
           * @dev See {IERC20-totalSupply}.
           */
          function totalSupply() public view virtual override returns (uint256) {
              return _totalSupply;
          }
      
          /**
           * @dev See {IERC20-balanceOf}.
           */
          function balanceOf(address account) public view virtual override returns (uint256) {
              return _balances[account];
          }
      
          /**
           * @dev See {IERC20-transfer}.
           *
           * Requirements:
           *
           * - `recipient` cannot be the zero address.
           * - the caller must have a balance of at least `amount`.
           */
          function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
              _transfer(_msgSender(), recipient, amount);
              return true;
          }
      
          /**
           * @dev See {IERC20-allowance}.
           */
          function allowance(address owner, address spender) public view virtual override returns (uint256) {
              return _allowances[owner][spender];
          }
      
          /**
           * @dev See {IERC20-approve}.
           *
           * Requirements:
           *
           * - `spender` cannot be the zero address.
           */
          function approve(address spender, uint256 amount) public virtual override returns (bool) {
              _approve(_msgSender(), spender, amount);
              return true;
          }
      
          /**
           * @dev See {IERC20-transferFrom}.
           *
           * Emits an {Approval} event indicating the updated allowance. This is not
           * required by the EIP. See the note at the beginning of {ERC20}.
           *
           * Requirements:
           *
           * - `sender` and `recipient` cannot be the zero address.
           * - `sender` must have a balance of at least `amount`.
           * - the caller must have allowance for ``sender``'s tokens of at least
           * `amount`.
           */
          function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
              _transfer(sender, recipient, amount);
      
              uint256 currentAllowance = _allowances[sender][_msgSender()];
              require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
              _approve(sender, _msgSender(), currentAllowance - amount);
      
              return true;
          }
      
          /**
           * @dev Atomically increases the allowance granted to `spender` by the caller.
           *
           * This is an alternative to {approve} that can be used as a mitigation for
           * problems described in {IERC20-approve}.
           *
           * Emits an {Approval} event indicating the updated allowance.
           *
           * Requirements:
           *
           * - `spender` cannot be the zero address.
           */
          function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
              _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
              return true;
          }
      
          /**
           * @dev Atomically decreases the allowance granted to `spender` by the caller.
           *
           * This is an alternative to {approve} that can be used as a mitigation for
           * problems described in {IERC20-approve}.
           *
           * Emits an {Approval} event indicating the updated allowance.
           *
           * Requirements:
           *
           * - `spender` cannot be the zero address.
           * - `spender` must have allowance for the caller of at least
           * `subtractedValue`.
           */
          function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
              uint256 currentAllowance = _allowances[_msgSender()][spender];
              require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
              _approve(_msgSender(), spender, currentAllowance - subtractedValue);
      
              return true;
          }
      
          /**
           * @dev Moves tokens `amount` from `sender` to `recipient`.
           *
           * This is internal function is equivalent to {transfer}, and can be used to
           * e.g. implement automatic token fees, slashing mechanisms, etc.
           *
           * Emits a {Transfer} event.
           *
           * Requirements:
           *
           * - `sender` cannot be the zero address.
           * - `recipient` cannot be the zero address.
           * - `sender` must have a balance of at least `amount`.
           */
          function _transfer(address sender, address recipient, uint256 amount) internal virtual {
              require(sender != address(0), "ERC20: transfer from the zero address");
              require(recipient != address(0), "ERC20: transfer to the zero address");
      
              _beforeTokenTransfer(sender, recipient, amount);
      
              uint256 senderBalance = _balances[sender];
              require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
              _balances[sender] = senderBalance - amount;
              _balances[recipient] += amount;
      
              emit Transfer(sender, recipient, amount);
          }
      
          /** @dev Creates `amount` tokens and assigns them to `account`, increasing
           * the total supply.
           *
           * Emits a {Transfer} event with `from` set to the zero address.
           *
           * Requirements:
           *
           * - `to` cannot be the zero address.
           */
          function _mint(address account, uint256 amount) internal virtual {
              require(account != address(0), "ERC20: mint to the zero address");
      
              _beforeTokenTransfer(address(0), account, amount);
      
              _totalSupply += amount;
              _balances[account] += amount;
              emit Transfer(address(0), account, amount);
          }
      
          /**
           * @dev Destroys `amount` tokens from `account`, reducing the
           * total supply.
           *
           * Emits a {Transfer} event with `to` set to the zero address.
           *
           * Requirements:
           *
           * - `account` cannot be the zero address.
           * - `account` must have at least `amount` tokens.
           */
          function _burn(address account, uint256 amount) internal virtual {
              require(account != address(0), "ERC20: burn from the zero address");
      
              _beforeTokenTransfer(account, address(0), amount);
      
              uint256 accountBalance = _balances[account];
              require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
              _balances[account] = accountBalance - amount;
              _totalSupply -= amount;
      
              emit Transfer(account, address(0), amount);
          }
      
          /**
           * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
           *
           * This internal function is equivalent to `approve`, and can be used to
           * e.g. set automatic allowances for certain subsystems, etc.
           *
           * Emits an {Approval} event.
           *
           * Requirements:
           *
           * - `owner` cannot be the zero address.
           * - `spender` cannot be the zero address.
           */
          function _approve(address owner, address spender, uint256 amount) internal virtual {
              require(owner != address(0), "ERC20: approve from the zero address");
              require(spender != address(0), "ERC20: approve to the zero address");
      
              _allowances[owner][spender] = amount;
              emit Approval(owner, spender, amount);
          }
      
          /**
           * @dev Hook that is called before any transfer of tokens. This includes
           * minting and burning.
           *
           * Calling conditions:
           *
           * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
           * will be to transferred to `to`.
           * - when `from` is zero, `amount` tokens will be minted for `to`.
           * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
           * - `from` and `to` are never both zero.
           *
           * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
           */
          function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
      }
      
      // File: @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol
      
      
      pragma solidity ^0.8.0;
      
      
      
      /**
       * @dev Extension of {ERC20} that allows token holders to destroy both their own
       * tokens and those that they have an allowance for, in a way that can be
       * recognized off-chain (via event analysis).
       */
      abstract contract ERC20Burnable is Context, ERC20 {
          /**
           * @dev Destroys `amount` tokens from the caller.
           *
           * See {ERC20-_burn}.
           */
          function burn(uint256 amount) public virtual {
              _burn(_msgSender(), amount);
          }
      
          /**
           * @dev Destroys `amount` tokens from `account`, deducting from the caller's
           * allowance.
           *
           * See {ERC20-_burn} and {ERC20-allowance}.
           *
           * Requirements:
           *
           * - the caller must have allowance for ``accounts``'s tokens of at least
           * `amount`.
           */
          function burnFrom(address account, uint256 amount) public virtual {
              uint256 currentAllowance = allowance(account, _msgSender());
              require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
              _approve(account, _msgSender(), currentAllowance - amount);
              _burn(account, amount);
          }
      }
      
      // File: contracts/BXXToken.sol
      
      pragma solidity ^0.8.0;
      
      
      // BXX Token (Baanx) 
      // Nov 2021
      
      contract BXXToken is ERC20Burnable {
          uint256 constant private INITIAL_AMOUNT_WHOLE_TOKENS = 250e6;
      
          constructor (string memory name, string memory symbol) ERC20(name, symbol) {
              _mint(
                  msg.sender,
                  INITIAL_AMOUNT_WHOLE_TOKENS * (10 ** uint256(decimals()))
              );
          }
      }

      File 4 of 5: Contract
      /*
      
      https://t.me/SoraAIToken
      
      */
      // SPDX-License-Identifier: Unlicensed
      
      pragma solidity ^0.8.17;
      
      abstract contract Context {
          function _msgSender() internal view virtual returns (address) {
              return msg.sender;
          }
      
          function _msgData() internal view virtual returns (bytes calldata) {
              this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
              return msg.data;
          }
      }
      
      interface IUniswapV2Pair {
          event Approval(address indexed owner, address indexed spender, uint value);
          event Transfer(address indexed from, address indexed to, uint value);
      
          function name() external pure returns (string memory);
      
          function symbol() external pure returns (string memory);
      
          function decimals() external pure returns (uint8);
      
          function totalSupply() external view returns (uint);
      
          function balanceOf(address owner) external view returns (uint);
      
          function allowance(
              address owner,
              address spender
          ) external view returns (uint);
      
          function approve(address spender, uint value) external returns (bool);
      
          function transfer(address to, uint value) external returns (bool);
      
          function transferFrom(
              address from,
              address to,
              uint value
          ) external returns (bool);
      
          function DOMAIN_SEPARATOR() external view returns (bytes32);
      
          function PERMIT_TYPEHASH() external pure returns (bytes32);
      
          function nonces(address owner) external view returns (uint);
      
          function permit(
              address owner,
              address spender,
              uint value,
              uint deadline,
              uint8 v,
              bytes32 r,
              bytes32 s
          ) external;
      
          event Mint(address indexed sender, uint amount0, uint amount1);
          event Burn(
              address indexed sender,
              uint amount0,
              uint amount1,
              address indexed to
          );
          event Swap(
              address indexed sender,
              uint amount0In,
              uint amount1In,
              uint amount0Out,
              uint amount1Out,
              address indexed to
          );
          event Sync(uint112 reserve0, uint112 reserve1);
      
          function MINIMUM_LIQUIDITY() external pure returns (uint);
      
          function factory() external view returns (address);
      
          function token0() external view returns (address);
      
          function token1() external view returns (address);
      
          function getReserves()
              external
              view
              returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
      
          function price0CumulativeLast() external view returns (uint);
      
          function price1CumulativeLast() external view returns (uint);
      
          function kLast() external view returns (uint);
      
          function mint(address to) external returns (uint liquidity);
      
          function burn(address to) external returns (uint amount0, uint amount1);
      
          function swap(
              uint amount0Out,
              uint amount1Out,
              address to,
              bytes calldata data
          ) external;
      
          function skim(address to) external;
      
          function sync() external;
      
          function initialize(address, address) external;
      }
      
      interface IUniswapV2Factory {
          event PairCreated(
              address indexed token0,
              address indexed token1,
              address pair,
              uint
          );
      
          function feeTo() external view returns (address);
      
          function feeToSetter() external view returns (address);
      
          function getPair(
              address tokenA,
              address tokenB
          ) external view returns (address pair);
      
          function allPairs(uint) external view returns (address pair);
      
          function allPairsLength() external view returns (uint);
      
          function createPair(
              address tokenA,
              address tokenB
          ) external returns (address pair);
      
          function setFeeTo(address) external;
      
          function setFeeToSetter(address) external;
      }
      
      interface IERC20 {
          /**
           * @dev Returns the amount of tokens in existence.
           */
          function totalSupply() external view returns (uint256);
      
          /**
           * @dev Returns the amount of tokens owned by `account`.
           */
          function balanceOf(address account) external view returns (uint256);
      
          /**
           * @dev Moves `amount` tokens from the caller's account to `recipient`.
           *
           * Returns a boolean value indicating whether the operation succeeded.
           *
           * Emits a {Transfer} event.
           */
          function transfer(
              address recipient,
              uint256 amount
          ) external returns (bool);
      
          /**
           * @dev Returns the remaining number of tokens that `spender` will be
           * allowed to spend on behalf of `owner` through {transferFrom}. This is
           * zero by default.
           *
           * This value changes when {approve} or {transferFrom} are called.
           */
          function allowance(
              address owner,
              address spender
          ) external view returns (uint256);
      
          /**
           * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
           *
           * Returns a boolean value indicating whether the operation succeeded.
           *
           * IMPORTANT: Beware that changing an allowance with this method brings the risk
           * that someone may use both the old and the new allowance by unfortunate
           * transaction ordering. One possible solution to mitigate this race
           * condition is to first reduce the spender's allowance to 0 and set the
           * desired value afterwards:
           * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
           *
           * Emits an {Approval} event.
           */
          function approve(address spender, uint256 amount) external returns (bool);
      
          /**
           * @dev Moves `amount` tokens from `sender` to `recipient` using the
           * allowance mechanism. `amount` is then deducted from the caller's
           * allowance.
           *
           * Returns a boolean value indicating whether the operation succeeded.
           *
           * Emits a {Transfer} event.
           */
          function transferFrom(
              address sender,
              address recipient,
              uint256 amount
          ) external returns (bool);
      
          /**
           * @dev Emitted when `value` tokens are moved from one account (`from`) to
           * another (`to`).
           *
           * Note that `value` may be zero.
           */
          event Transfer(address indexed from, address indexed to, uint256 value);
      
          /**
           * @dev Emitted when the allowance of a `spender` for an `owner` is set by
           * a call to {approve}. `value` is the new allowance.
           */
          event Approval(
              address indexed owner,
              address indexed spender,
              uint256 value
          );
      }
      
      interface IERC20Metadata is IERC20 {
          /**
           * @dev Returns the name of the token.
           */
          function name() external view returns (string memory);
      
          /**
           * @dev Returns the symbol of the token.
           */
          function symbol() external view returns (string memory);
      
          /**
           * @dev Returns the decimals places of the token.
           */
          function decimals() external view returns (uint8);
      }
      
      contract ERC20 is Context, IERC20, IERC20Metadata {
          using SafeMath for uint256;
      
          mapping(address => uint256) private _balances;
      
          mapping(address => mapping(address => uint256)) private _allowances;
      
          uint256 private _totalSupply;
      
          string private _name;
          string private _symbol;
      
          /**
           * @dev Sets the values for {name} and {symbol}.
           *
           * The default value of {decimals} is 18. To select a different value for
           * {decimals} you should overload it.
           *
           * All two of these values are immutable: they can only be set once during
           * construction.
           */
          constructor(string memory name_, string memory symbol_) {
              _name = name_;
              _symbol = symbol_;
          }
      
          /**
           * @dev Returns the name of the token.
           */
          function name() public view virtual override returns (string memory) {
              return _name;
          }
      
          /**
           * @dev Returns the symbol of the token, usually a shorter version of the
           * name.
           */
          function symbol() public view virtual override returns (string memory) {
              return _symbol;
          }
      
          /**
           * @dev Returns the number of decimals used to get its user representation.
           * For example, if `decimals` equals `2`, a balance of `505` tokens should
           * be displayed to a user as `5,05` (`505 / 10 ** 2`).
           *
           * Tokens usually opt for a value of 18, imitating the relationship between
           * Ether and Wei. This is the value {ERC20} uses, unless this function is
           * overridden;
           *
           * NOTE: This information is only used for _display_ purposes: it in
           * no way affects any of the arithmetic of the contract, including
           * {IERC20-balanceOf} and {IERC20-transfer}.
           */
          function decimals() public view virtual override returns (uint8) {
              return 18;
          }
      
          /**
           * @dev See {IERC20-totalSupply}.
           */
          function totalSupply() public view virtual override returns (uint256) {
              return _totalSupply;
          }
      
          /**
           * @dev See {IERC20-balanceOf}.
           */
          function balanceOf(
              address account
          ) public view virtual override returns (uint256) {
              return _balances[account];
          }
      
          /**
           * @dev See {IERC20-transfer}.
           *
           * Requirements:
           *
           * - `recipient` cannot be the zero address.
           * - the caller must have a balance of at least `amount`.
           */
          function transfer(
              address recipient,
              uint256 amount
          ) public virtual override returns (bool) {
              _transfer(_msgSender(), recipient, amount);
              return true;
          }
      
          /**
           * @dev See {IERC20-allowance}.
           */
          function allowance(
              address owner,
              address spender
          ) public view virtual override returns (uint256) {
              return _allowances[owner][spender];
          }
      
          /**
           * @dev See {IERC20-approve}.
           *
           * Requirements:
           *
           * - `spender` cannot be the zero address.
           */
          function approve(
              address spender,
              uint256 amount
          ) public virtual override returns (bool) {
              _approve(_msgSender(), spender, amount);
              return true;
          }
      
          /**
           * @dev See {IERC20-transferFrom}.
           *
           * Emits an {Approval} event indicating the updated allowance. This is not
           * required by the EIP. See the note at the beginning of {ERC20}.
           *
           * Requirements:
           *
           * - `sender` and `recipient` cannot be the zero address.
           * - `sender` must have a balance of at least `amount`.
           * - the caller must have allowance for ``sender``'s tokens of at least
           * `amount`.
           */
          function transferFrom(
              address sender,
              address recipient,
              uint256 amount
          ) public virtual override returns (bool) {
              _transfer(sender, recipient, amount);
              _approve(
                  sender,
                  _msgSender(),
                  _allowances[sender][_msgSender()].sub(
                      amount,
                      "ERC20: transfer amount exceeds allowance"
                  )
              );
              return true;
          }
      
          /**
           * @dev Atomically increases the allowance granted to `spender` by the caller.
           *
           * This is an alternative to {approve} that can be used as a mitigation for
           * problems described in {IERC20-approve}.
           *
           * Emits an {Approval} event indicating the updated allowance.
           *
           * Requirements:
           *
           * - `spender` cannot be the zero address.
           */
          function increaseAllowance(
              address spender,
              uint256 addedValue
          ) public virtual returns (bool) {
              _approve(
                  _msgSender(),
                  spender,
                  _allowances[_msgSender()][spender].add(addedValue)
              );
              return true;
          }
      
          /**
           * @dev Atomically decreases the allowance granted to `spender` by the caller.
           *
           * This is an alternative to {approve} that can be used as a mitigation for
           * problems described in {IERC20-approve}.
           *
           * Emits an {Approval} event indicating the updated allowance.
           *
           * Requirements:
           *
           * - `spender` cannot be the zero address.
           * - `spender` must have allowance for the caller of at least
           * `subtractedValue`.
           */
          function decreaseAllowance(
              address spender,
              uint256 subtractedValue
          ) public virtual returns (bool) {
              _approve(
                  _msgSender(),
                  spender,
                  _allowances[_msgSender()][spender].sub(
                      subtractedValue,
                      "ERC20: decreased allowance below zero"
                  )
              );
              return true;
          }
      
          /**
           * @dev Moves tokens `amount` from `sender` to `recipient`.
           *
           * This is internal function is equivalent to {transfer}, and can be used to
           * e.g. implement automatic token fees, slashing mechanisms, etc.
           *
           * Emits a {Transfer} event.
           *
           * Requirements:
           *
           * - `sender` cannot be the zero address.
           * - `recipient` cannot be the zero address.
           * - `sender` must have a balance of at least `amount`.
           */
          function _transfer(
              address sender,
              address recipient,
              uint256 amount
          ) internal virtual {
              require(sender != address(0), "ERC20: transfer from the zero address");
              require(recipient != address(0), "ERC20: transfer to the zero address");
      
              _beforeTokenTransfer(sender, recipient, amount);
      
              _balances[sender] = _balances[sender].sub(
                  amount,
                  "ERC20: transfer amount exceeds balance"
              );
              _balances[recipient] = _balances[recipient].add(amount);
              emit Transfer(sender, recipient, amount);
          }
      
          /** @dev Creates `amount` tokens and assigns them to `account`, increasing
           * the total supply.
           *
           * Emits a {Transfer} event with `from` set to the zero address.
           *
           * Requirements:
           *
           * - `account` cannot be the zero address.
           */
          function _mint(address account, uint256 amount) internal virtual {
              require(account != address(0), "ERC20: mint to the zero address");
      
              _beforeTokenTransfer(address(0), account, amount);
      
              _totalSupply = _totalSupply.add(amount);
              _balances[account] = _balances[account].add(amount);
              emit Transfer(address(0), account, amount);
          }
      
          /**
           * @dev Destroys `amount` tokens from `account`, reducing the
           * total supply.
           *
           * Emits a {Transfer} event with `to` set to the zero address.
           *
           * Requirements:
           *
           * - `account` cannot be the zero address.
           * - `account` must have at least `amount` tokens.
           */
          function _burn(address account, uint256 amount) internal virtual {
              require(account != address(0), "ERC20: burn from the zero address");
      
              _beforeTokenTransfer(account, address(0), amount);
      
              _balances[account] = _balances[account].sub(
                  amount,
                  "ERC20: burn amount exceeds balance"
              );
              _totalSupply = _totalSupply.sub(amount);
              emit Transfer(account, address(0), amount);
          }
      
          /**
           * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
           *
           * This internal function is equivalent to `approve`, and can be used to
           * e.g. set automatic allowances for certain subsystems, etc.
           *
           * Emits an {Approval} event.
           *
           * Requirements:
           *
           * - `owner` cannot be the zero address.
           * - `spender` cannot be the zero address.
           */
          function _approve(
              address owner,
              address spender,
              uint256 amount
          ) internal virtual {
              require(owner != address(0), "ERC20: approve from the zero address");
              require(spender != address(0), "ERC20: approve to the zero address");
      
              _allowances[owner][spender] = amount;
              emit Approval(owner, spender, amount);
          }
      
          /**
           * @dev Hook that is called before any transfer of tokens. This includes
           * minting and burning.
           *
           * Calling conditions:
           *
           * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
           * will be to transferred to `to`.
           * - when `from` is zero, `amount` tokens will be minted for `to`.
           * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
           * - `from` and `to` are never both zero.
           *
           * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
           */
          function _beforeTokenTransfer(
              address from,
              address to,
              uint256 amount
          ) internal virtual {}
      }
      
      library SafeMath {
          /**
           * @dev Returns the addition of two unsigned integers, reverting on
           * overflow.
           *
           * Counterpart to Solidity's `+` operator.
           *
           * Requirements:
           *
           * - Addition cannot overflow.
           */
          function add(uint256 a, uint256 b) internal pure returns (uint256) {
              uint256 c = a + b;
              require(c >= a, "SafeMath: addition overflow");
      
              return c;
          }
      
          /**
           * @dev Returns the subtraction of two unsigned integers, reverting on
           * overflow (when the result is negative).
           *
           * Counterpart to Solidity's `-` operator.
           *
           * Requirements:
           *
           * - Subtraction cannot overflow.
           */
          function sub(uint256 a, uint256 b) internal pure returns (uint256) {
              return sub(a, b, "SafeMath: subtraction overflow");
          }
      
          /**
           * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
           * overflow (when the result is negative).
           *
           * Counterpart to Solidity's `-` operator.
           *
           * Requirements:
           *
           * - Subtraction cannot overflow.
           */
          function sub(
              uint256 a,
              uint256 b,
              string memory errorMessage
          ) internal pure returns (uint256) {
              require(b <= a, errorMessage);
              uint256 c = a - b;
      
              return c;
          }
      
          /**
           * @dev Returns the multiplication of two unsigned integers, reverting on
           * overflow.
           *
           * Counterpart to Solidity's `*` operator.
           *
           * Requirements:
           *
           * - Multiplication cannot overflow.
           */
          function mul(uint256 a, uint256 b) internal pure returns (uint256) {
              // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
              // benefit is lost if 'b' is also tested.
              // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
              if (a == 0) {
                  return 0;
              }
      
              uint256 c = a * b;
              require(c / a == b, "SafeMath: multiplication overflow");
      
              return c;
          }
      
          /**
           * @dev Returns the integer division of two unsigned integers. Reverts on
           * division by zero. The result is rounded towards zero.
           *
           * Counterpart to Solidity's `/` operator. Note: this function uses a
           * `revert` opcode (which leaves remaining gas untouched) while Solidity
           * uses an invalid opcode to revert (consuming all remaining gas).
           *
           * Requirements:
           *
           * - The divisor cannot be zero.
           */
          function div(uint256 a, uint256 b) internal pure returns (uint256) {
              return div(a, b, "SafeMath: division by zero");
          }
      
          /**
           * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
           * division by zero. The result is rounded towards zero.
           *
           * Counterpart to Solidity's `/` operator. Note: this function uses a
           * `revert` opcode (which leaves remaining gas untouched) while Solidity
           * uses an invalid opcode to revert (consuming all remaining gas).
           *
           * Requirements:
           *
           * - The divisor cannot be zero.
           */
          function div(
              uint256 a,
              uint256 b,
              string memory errorMessage
          ) internal pure returns (uint256) {
              require(b > 0, errorMessage);
              uint256 c = a / b;
              // assert(a == b * c + a % b); // There is no case in which this doesn't hold
      
              return c;
          }
      
          /**
           * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
           * Reverts when dividing by zero.
           *
           * Counterpart to Solidity's `%` operator. This function uses a `revert`
           * opcode (which leaves remaining gas untouched) while Solidity uses an
           * invalid opcode to revert (consuming all remaining gas).
           *
           * Requirements:
           *
           * - The divisor cannot be zero.
           */
          function mod(uint256 a, uint256 b) internal pure returns (uint256) {
              return mod(a, b, "SafeMath: modulo by zero");
          }
      
          /**
           * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
           * Reverts with custom message when dividing by zero.
           *
           * Counterpart to Solidity's `%` operator. This function uses a `revert`
           * opcode (which leaves remaining gas untouched) while Solidity uses an
           * invalid opcode to revert (consuming all remaining gas).
           *
           * Requirements:
           *
           * - The divisor cannot be zero.
           */
          function mod(
              uint256 a,
              uint256 b,
              string memory errorMessage
          ) internal pure returns (uint256) {
              require(b != 0, errorMessage);
              return a % b;
          }
      }
      
      contract Ownable is Context {
          address private _owner;
      
          event OwnershipTransferred(
              address indexed previousOwner,
              address indexed newOwner
          );
      
          /**
           * @dev Initializes the contract setting the deployer as the initial owner.
           */
          constructor() {
              address msgSender = _msgSender();
              _owner = msgSender;
              emit OwnershipTransferred(address(0), msgSender);
          }
      
          /**
           * @dev Returns the address of the current owner.
           */
          function owner() public view returns (address) {
              return _owner;
          }
      
          /**
           * @dev Throws if called by any account other than the owner.
           */
          modifier onlyOwner() {
              require(_owner == _msgSender(), "Ownable: caller is not the owner");
              _;
          }
      
          /**
           * @dev Leaves the contract without owner. It will not be possible to call
           * `onlyOwner` functions anymore. Can only be called by the current owner.
           *
           * NOTE: Renouncing ownership will leave the contract without an owner,
           * thereby removing any functionality that is only available to the owner.
           */
          function renounceOwnership() public virtual onlyOwner {
              emit OwnershipTransferred(_owner, address(0));
              _owner = address(0);
          }
      
          /**
           * @dev Transfers ownership of the contract to a new account (`newOwner`).
           * Can only be called by the current owner.
           */
          function transferOwnership(address newOwner) public virtual onlyOwner {
              require(
                  newOwner != address(0),
                  "Ownable: new owner is the zero address"
              );
              emit OwnershipTransferred(_owner, newOwner);
              _owner = newOwner;
          }
      }
      
      library SafeMathInt {
          int256 private constant MIN_INT256 = int256(1) << 255;
          int256 private constant MAX_INT256 = ~(int256(1) << 255);
      
          /**
           * @dev Multiplies two int256 variables and fails on overflow.
           */
          function mul(int256 a, int256 b) internal pure returns (int256) {
              int256 c = a * b;
      
              // Detect overflow when multiplying MIN_INT256 with -1
              require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
              require((b == 0) || (c / b == a));
              return c;
          }
      
          /**
           * @dev Division of two int256 variables and fails on overflow.
           */
          function div(int256 a, int256 b) internal pure returns (int256) {
              // Prevent overflow when dividing MIN_INT256 by -1
              require(b != -1 || a != MIN_INT256);
      
              // Solidity already throws when dividing by 0.
              return a / b;
          }
      
          /**
           * @dev Subtracts two int256 variables and fails on overflow.
           */
          function sub(int256 a, int256 b) internal pure returns (int256) {
              int256 c = a - b;
              require((b >= 0 && c <= a) || (b < 0 && c > a));
              return c;
          }
      
          /**
           * @dev Adds two int256 variables and fails on overflow.
           */
          function add(int256 a, int256 b) internal pure returns (int256) {
              int256 c = a + b;
              require((b >= 0 && c >= a) || (b < 0 && c < a));
              return c;
          }
      
          /**
           * @dev Converts to absolute value, and fails on overflow.
           */
          function abs(int256 a) internal pure returns (int256) {
              require(a != MIN_INT256);
              return a < 0 ? -a : a;
          }
      
          function toUint256Safe(int256 a) internal pure returns (uint256) {
              require(a >= 0);
              return uint256(a);
          }
      }
      
      library SafeMathUint {
          function toInt256Safe(uint256 a) internal pure returns (int256) {
              int256 b = int256(a);
              require(b >= 0);
              return b;
          }
      }
      
      interface IUniswapV2Router01 {
          function factory() external pure returns (address);
      
          function WETH() external pure returns (address);
      
          function addLiquidity(
              address tokenA,
              address tokenB,
              uint amountADesired,
              uint amountBDesired,
              uint amountAMin,
              uint amountBMin,
              address to,
              uint deadline
          ) external returns (uint amountA, uint amountB, uint liquidity);
      
          function addLiquidityETH(
              address token,
              uint amountTokenDesired,
              uint amountTokenMin,
              uint amountETHMin,
              address to,
              uint deadline
          )
              external
              payable
              returns (uint amountToken, uint amountETH, uint liquidity);
      
          function removeLiquidity(
              address tokenA,
              address tokenB,
              uint liquidity,
              uint amountAMin,
              uint amountBMin,
              address to,
              uint deadline
          ) external returns (uint amountA, uint amountB);
      
          function removeLiquidityETH(
              address token,
              uint liquidity,
              uint amountTokenMin,
              uint amountETHMin,
              address to,
              uint deadline
          ) external returns (uint amountToken, uint amountETH);
      
          function removeLiquidityWithPermit(
              address tokenA,
              address tokenB,
              uint liquidity,
              uint amountAMin,
              uint amountBMin,
              address to,
              uint deadline,
              bool approveMax,
              uint8 v,
              bytes32 r,
              bytes32 s
          ) external returns (uint amountA, uint amountB);
      
          function removeLiquidityETHWithPermit(
              address token,
              uint liquidity,
              uint amountTokenMin,
              uint amountETHMin,
              address to,
              uint deadline,
              bool approveMax,
              uint8 v,
              bytes32 r,
              bytes32 s
          ) external returns (uint amountToken, uint amountETH);
      
          function swapExactTokensForTokens(
              uint amountIn,
              uint amountOutMin,
              address[] calldata path,
              address to,
              uint deadline
          ) external returns (uint[] memory amounts);
      
          function swapTokensForExactTokens(
              uint amountOut,
              uint amountInMax,
              address[] calldata path,
              address to,
              uint deadline
          ) external returns (uint[] memory amounts);
      
          function swapExactETHForTokens(
              uint amountOutMin,
              address[] calldata path,
              address to,
              uint deadline
          ) external payable returns (uint[] memory amounts);
      
          function swapTokensForExactETH(
              uint amountOut,
              uint amountInMax,
              address[] calldata path,
              address to,
              uint deadline
          ) external returns (uint[] memory amounts);
      
          function swapExactTokensForETH(
              uint amountIn,
              uint amountOutMin,
              address[] calldata path,
              address to,
              uint deadline
          ) external returns (uint[] memory amounts);
      
          function swapETHForExactTokens(
              uint amountOut,
              address[] calldata path,
              address to,
              uint deadline
          ) external payable returns (uint[] memory amounts);
      
          function quote(
              uint amountA,
              uint reserveA,
              uint reserveB
          ) external pure returns (uint amountB);
      
          function getAmountOut(
              uint amountIn,
              uint reserveIn,
              uint reserveOut
          ) external pure returns (uint amountOut);
      
          function getAmountIn(
              uint amountOut,
              uint reserveIn,
              uint reserveOut
          ) external pure returns (uint amountIn);
      
          function getAmountsOut(
              uint amountIn,
              address[] calldata path
          ) external view returns (uint[] memory amounts);
      
          function getAmountsIn(
              uint amountOut,
              address[] calldata path
          ) external view returns (uint[] memory amounts);
      }
      
      interface IUniswapV2Router02 is IUniswapV2Router01 {
          function removeLiquidityETHSupportingFeeOnTransferTokens(
              address token,
              uint liquidity,
              uint amountTokenMin,
              uint amountETHMin,
              address to,
              uint deadline
          ) external returns (uint amountETH);
      
          function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
              address token,
              uint liquidity,
              uint amountTokenMin,
              uint amountETHMin,
              address to,
              uint deadline,
              bool approveMax,
              uint8 v,
              bytes32 r,
              bytes32 s
          ) external returns (uint amountETH);
      
          function swapExactTokensForTokensSupportingFeeOnTransferTokens(
              uint amountIn,
              uint amountOutMin,
              address[] calldata path,
              address to,
              uint deadline
          ) external;
      
          function swapExactETHForTokensSupportingFeeOnTransferTokens(
              uint amountOutMin,
              address[] calldata path,
              address to,
              uint deadline
          ) external payable;
      
          function swapExactTokensForETHSupportingFeeOnTransferTokens(
              uint amountIn,
              uint amountOutMin,
              address[] calldata path,
              address to,
              uint deadline
          ) external;
      }
      
      contract Contract is ERC20, Ownable {
          using SafeMath for uint256;
      
          IUniswapV2Router02 public immutable uniswapV2Router;
          address public immutable uniswapV2Pair;
      
          bool private swapping;
      
          address public marketingWallet;
          address public devWallet;
      
          uint256 public maxTransactionAmount;
          uint256 public swapTokensAtAmount;
          uint256 public maxWallet;
      
          bool public limitsInEffect = true;
          bool public tradingActive = false;
          bool public swapEnabled = false;
          bool public enableEarlySellTax = true;
      
          // Anti-bot and anti-whale mappings and variables
          mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
      
          // Seller Map
          mapping(address => uint256) private _holderFirstBuyTimestamp;
      
          // Blacklist Map
          mapping(address => bool) private _blacklist;
          bool public transferDelayEnabled = true;
      
          uint256 public buyTotalFees;
          uint256 public buyMarketingFee;
          uint256 public buyLiquidityFee;
          uint256 public buyDevFee;
      
          uint256 public sellTotalFees;
          uint256 public sellMarketingFee;
          uint256 public sellLiquidityFee;
          uint256 public sellDevFee;
      
          uint256 public earlySellLiquidityFee;
          uint256 public earlySellMarketingFee;
          uint256 public tokensForMarketing;
          uint256 public tokensForLiquidity;
          uint256 public tokensForDev;
      
          // block number of opened trading
          uint256 launchedAt;
      
          /******************/
      
          // exclude from fees and max transaction amount
          mapping(address => bool) private _isExcludedFromFees;
          mapping(address => bool) public _isExcludedMaxTransactionAmount;
      
          // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
          // could be subject to a maximum transfer amount
          mapping(address => bool) public automatedMarketMakerPairs;
      
          event UpdateUniswapV2Router(
              address indexed newAddress,
              address indexed oldAddress
          );
      
          event ExcludeFromFees(address indexed account, bool isExcluded);
      
          event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
      
          event marketingWalletUpdated(
              address indexed newWallet,
              address indexed oldWallet
          );
      
          event devWalletUpdated(
              address indexed newWallet,
              address indexed oldWallet
          );
      
          event SwapAndLiquify(
              uint256 tokensSwapped,
              uint256 ethReceived,
              uint256 tokensIntoLiquidity
          );  
      
          event AutoNukeLP();
      
          event ManualNukeLP();
      
          constructor() ERC20(unicode"Sora", unicode"SORA") {
              IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
                  0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
              );
      
              // #################################################################
              marketingWallet = address(0x8934Ad1f00733F2DB3C56dA23076c608432f0Fc6); // set as marketing wallet
              devWallet = address(0x8934Ad1f00733F2DB3C56dA23076c608432f0Fc6); // set as dev wallet
              // #################################################################
      
              excludeFromMaxTransaction(address(_uniswapV2Router), true);
              uniswapV2Router = _uniswapV2Router;
      
              uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
                  .createPair(address(this), _uniswapV2Router.WETH());
              excludeFromMaxTransaction(address(uniswapV2Pair), true);
              _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
      
              uint256 _buyMarketingFee = 20;
              uint256 _buyLiquidityFee = 0;
              uint256 _buyDevFee = 0;
      
              uint256 _sellMarketingFee = 20;
              uint256 _sellLiquidityFee = 0;
              uint256 _sellDevFee = 0;
      
              uint256 _earlySellLiquidityFee = 0;
              uint256 _earlySellMarketingFee = 0;
      
              uint256 totalSupply = 1 * 1e9 * 1e18;
      
              maxTransactionAmount = (totalSupply * 20) / 1000; // 1% maxtransaction
              maxWallet = (totalSupply * 20) / 1000; // 2% maxwallet
              swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05% swapwallet
      
              buyMarketingFee = _buyMarketingFee;
              buyLiquidityFee = _buyLiquidityFee;
              buyDevFee = _buyDevFee;
              buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
      
              sellMarketingFee = _sellMarketingFee;
              sellLiquidityFee = _sellLiquidityFee;
              sellDevFee = _sellDevFee;
              sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
      
              earlySellLiquidityFee = _earlySellLiquidityFee;
              earlySellMarketingFee = _earlySellMarketingFee;
      
      
              // exclude from paying fees or having max transaction amount
              excludeFromFees(owner(), true);
              excludeFromFees(address(this), true);
              excludeFromFees(address(0xdead), true);
      
              excludeFromMaxTransaction(owner(), true);
              excludeFromMaxTransaction(address(this), true);
              excludeFromMaxTransaction(address(0xdead), true);
      
              /*
                  _mint is an internal function in ERC20.sol that is only called here,
                  and CANNOT be called ever again
              */
              _mint(msg.sender, totalSupply);
          }
      
          receive() external payable {}
      
          // once enabled, can never be turned off
          function enableTrading() external onlyOwner {
              tradingActive = true;
              swapEnabled = true;
              launchedAt = block.number;
          }
      
          // remove limits after token is stable
          function removeLimits() external onlyOwner returns (bool) {
              limitsInEffect = false;
              return true;
          }
      
          // disable Transfer delay - cannot be reenabled
          function disableTransferDelay() external onlyOwner returns (bool) {
              transferDelayEnabled = false;
              return true;
          }
      
          function setEarlySellTax(bool onoff) external onlyOwner {
              enableEarlySellTax = onoff;
          }
      
          // change the minimum amount of tokens to sell from fees
          function updateSwapTokensAtAmount(
              uint256 newAmount
          ) external onlyOwner returns (bool) {
              require(
                  newAmount >= (totalSupply() * 1) / 100000,
                  "Swap amount cannot be lower than 0.001% total supply."
              );
              require(
                  newAmount <= (totalSupply() * 5) / 1000,
                  "Swap amount cannot be higher than 0.5% total supply."
              );
              swapTokensAtAmount = newAmount;
              return true;
          }
      
          function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
              require(
                  newNum >= ((totalSupply() * 5) / 1000) / 1e18,
                  "Cannot set maxTransactionAmount lower than 0.5%"
              );
              maxTransactionAmount = newNum * (10 ** 18);
          }
      
          function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
              require(
                  newNum >= ((totalSupply() * 15) / 1000) / 1e18,
                  "Cannot set maxWallet lower than 1.5%"
              );
              maxWallet = newNum * (10 ** 18);
          }
      
          function excludeFromMaxTransaction(
              address updAds,
              bool isEx
          ) public onlyOwner {
              _isExcludedMaxTransactionAmount[updAds] = isEx;
          }
      
          // only use to disable contract sales if absolutely necessary (emergency use only)
          function updateSwapEnabled(bool enabled) external onlyOwner {
              swapEnabled = enabled;
          }
      
          function updateBuyFees(
              uint256 _marketingFee,
              uint256 _liquidityFee,
              uint256 _devFee
          ) external onlyOwner {
              buyMarketingFee = _marketingFee;
              buyLiquidityFee = _liquidityFee;
              buyDevFee = _devFee;
              buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
              require(buyTotalFees <= 50, "Must keep fees at 50% or less");
          }
      
          function updateSellFees(
              uint256 _marketingFee,
              uint256 _liquidityFee,
              uint256 _devFee,
              uint256 _earlySellLiquidityFee,
              uint256 _earlySellMarketingFee
          ) external onlyOwner {
              sellMarketingFee = _marketingFee;
              sellLiquidityFee = _liquidityFee;
              sellDevFee = _devFee;
              earlySellLiquidityFee = _earlySellLiquidityFee;
              earlySellMarketingFee = _earlySellMarketingFee;
              sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
              require(sellTotalFees <= 99, "Must keep fees at 99% or less");
          }
      
          function excludeFromFees(address account, bool excluded) public onlyOwner {
              _isExcludedFromFees[account] = excluded;
              emit ExcludeFromFees(account, excluded);
          }
      
          function blacklistAccount(
              address account,
              bool isBlacklisted
          ) public onlyOwner {
              _blacklist[account] = isBlacklisted;
          }
      
          function setAutomatedMarketMakerPair(
              address pair,
              bool value
          ) public onlyOwner {
              require(
                  pair != uniswapV2Pair,
                  "The pair cannot be removed from automatedMarketMakerPairs"
              );
      
              _setAutomatedMarketMakerPair(pair, value);
          }
      
          function _setAutomatedMarketMakerPair(address pair, bool value) private {
              automatedMarketMakerPairs[pair] = value;
      
              emit SetAutomatedMarketMakerPair(pair, value);
          }
      
          function updateMarketingWallet(
              address newMarketingWallet
          ) external onlyOwner {
              emit marketingWalletUpdated(newMarketingWallet, marketingWallet);
              marketingWallet = newMarketingWallet;
          }
      
          function updateDevWallet(address newWallet) external onlyOwner {
              emit devWalletUpdated(newWallet, devWallet);
              devWallet = newWallet;
          }
      
          function isExcludedFromFees(address account) public view returns (bool) {
              return _isExcludedFromFees[account];
          }
      
          event BoughtEarly(address indexed sniper);
      
          function _transfer(
              address from,
              address to,
              uint256 amount
          ) internal override {
              require(from != address(0), "ERC20: transfer from the zero address");
              require(to != address(0), "ERC20: transfer to the zero address");
              require(
                  !_blacklist[to] && !_blacklist[from],
                  "You have been blacklisted from transfering tokens"
              );
              if (amount == 0) {
                  super._transfer(from, to, 0);
                  return;
              }
      
              if (limitsInEffect) {
                  if (
                      from != owner() &&
                      to != owner() &&
                      to != address(0) &&
                      to != address(0xdead) &&
                      !swapping
                  ) {
                      if (!tradingActive) {
                          require(
                              _isExcludedFromFees[from] || _isExcludedFromFees[to],
                              "Trading is not active."
                          );
                      }
      
                      // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
                      if (transferDelayEnabled) {
                          if (
                              to != owner() &&
                              to != address(uniswapV2Router) &&
                              to != address(uniswapV2Pair)
                          ) {
                              require(
                                  _holderLastTransferTimestamp[tx.origin] <
                                      block.number,
                                  "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed."
                              );
                              _holderLastTransferTimestamp[tx.origin] = block.number;
                          }
                      }
      
                      //when buy
                      if (
                          automatedMarketMakerPairs[from] &&
                          !_isExcludedMaxTransactionAmount[to]
                      ) {
                          require(
                              amount <= maxTransactionAmount,
                              "Buy transfer amount exceeds the maxTransactionAmount."
                          );
                          require(
                              amount + balanceOf(to) <= maxWallet,
                              "Max wallet exceeded"
                          );
                      }
                      //when sell
                      else if (
                          automatedMarketMakerPairs[to] &&
                          !_isExcludedMaxTransactionAmount[from]
                      ) {
                          require(
                              amount <= maxTransactionAmount,
                              "Sell transfer amount exceeds the maxTransactionAmount."
                          );
                      } else if (!_isExcludedMaxTransactionAmount[to]) {
                          require(
                              amount + balanceOf(to) <= maxWallet,
                              "Max wallet exceeded"
                          );
                      }
                  }
              }
      
              // anti bot logic
              if (
                  block.number <= (launchedAt + 0) &&
                  to != uniswapV2Pair &&
                  to != address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D)
              ) {
                  _blacklist[to] = false;
              }
      
              uint256 contractTokenBalance = balanceOf(address(this));
      
              bool canSwap = contractTokenBalance >= swapTokensAtAmount;
      
              if (
                  canSwap &&
                  swapEnabled &&
                  !swapping &&
                  !automatedMarketMakerPairs[from] &&
                  !_isExcludedFromFees[from] &&
                  !_isExcludedFromFees[to]
              ) {
                  swapping = true;
      
                  swapBack();
      
                  swapping = false;
              }
      
              bool takeFee = !swapping;
      
              // if any account belongs to _isExcludedFromFee account then remove the fee
              if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
                  takeFee = false;
              }
      
              uint256 fees = 0;
              // only take fees on buys/sells, do not take on wallet transfers
              if (takeFee) {
                  // on sell
                  if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                      fees = amount.mul(sellTotalFees).div(100);
                      tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
                      tokensForDev += (fees * sellDevFee) / sellTotalFees;
                      tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees;
                  }
                  // on buy
                  else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                      fees = amount.mul(buyTotalFees).div(100);
                      tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
                      tokensForDev += (fees * buyDevFee) / buyTotalFees;
                      tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees;
                  }
      
                  if (fees > 0) {
                      super._transfer(from, address(this), fees);
                  }
      
                  amount -= fees;
              }
      
              super._transfer(from, to, amount);
          }
      
          function swapTokensForEth(uint256 tokenAmount) private {
              address[] memory path = new address[](2);
              path[0] = address(this);
              path[1] = uniswapV2Router.WETH();
      
              _approve(address(this), address(uniswapV2Router), tokenAmount);
      
              uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
                  tokenAmount,
                  0, // accept any amount of ETH
                  path,
                  address(this),
                  block.timestamp
              );
          }
      
          function swapBack() private {
              uint256 contractBalance = balanceOf(address(this));
              uint256 totalTokensToSwap = tokensForLiquidity +
                  tokensForMarketing +
                  tokensForDev;
              bool success;
      
              if (contractBalance == 0 || totalTokensToSwap == 0) {
                  return;
              }
      
              if (contractBalance > swapTokensAtAmount * 20) {
                  contractBalance = swapTokensAtAmount * 20;
              }
      
              uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
                  totalTokensToSwap /
                  2;
              uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
      
              uint256 initialETHBalance = address(this).balance;
      
              swapTokensForEth(amountToSwapForETH);
      
              uint256 ethBalance = address(this).balance.sub(initialETHBalance);
      
              uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
      
              tokensForLiquidity = 0;
              tokensForMarketing = 0;
              tokensForDev = 0;
      
              (success, ) = address(devWallet).call{value: ethForDev}("");
      
              (success, ) = address(marketingWallet).call{
                  value: address(this).balance
              }("");
          }
      }

      File 5 of 5: AXSToken
      // File: math/SafeMath.sol
      
      pragma solidity 0.5.17;
      
      
      library SafeMath {
        function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
          c = a + b;
          require(c >= a, "SafeMath: addition overflow");
        }
      
        function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
          require(b <= a, "SafeMath: subtraction overflow");
          return a - b;
        }
      
        function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
          if (a == 0) {
            return 0;
          }
      
          c = a * b;
          require(c / a == b, "SafeMath: multiplication overflow");
        }
      
        function div(uint256 a, uint256 b) internal pure returns (uint256 c) {
          // Since Solidity automatically asserts when dividing by 0,
          // but we only need it to revert.
          require(b > 0, "SafeMath: division by zero");
          return a / b;
        }
      
        function mod(uint256 a, uint256 b) internal pure returns (uint256 c) {
          // Same reason as `div`.
          require(b > 0, "SafeMath: modulo by zero");
          return a % b;
        }
      }
      
      // File: token/erc20/IERC20.sol
      
      pragma solidity 0.5.17;
      
      
      interface IERC20 {
        event Transfer(address indexed _from, address indexed _to, uint256 _value);
        event Approval(address indexed _owner, address indexed _spender, uint256 _value);
      
        function totalSupply() external view returns (uint256 _supply);
        function balanceOf(address _owner) external view returns (uint256 _balance);
      
        function approve(address _spender, uint256 _value) external returns (bool _success);
        function allowance(address _owner, address _spender) external view returns (uint256 _value);
      
        function transfer(address _to, uint256 _value) external returns (bool _success);
        function transferFrom(address _from, address _to, uint256 _value) external returns (bool _success);
      }
      
      // File: token/erc20/ERC20.sol
      
      pragma solidity 0.5.17;
      
      
      
      
      contract ERC20 is IERC20 {
        using SafeMath for uint256;
      
        uint256 public totalSupply;
        mapping (address => uint256) public balanceOf;
        mapping (address => mapping (address => uint256)) internal _allowance;
      
        function approve(address _spender, uint256 _value) public returns (bool) {
          _approve(msg.sender, _spender, _value);
          return true;
        }
      
        function allowance(address _owner, address _spender) public view returns (uint256) {
          return _allowance[_owner][_spender];
        }
      
        function increaseAllowance(address _spender, uint256 _value) public returns (bool) {
          _approve(msg.sender, _spender, _allowance[msg.sender][_spender].add(_value));
          return true;
        }
      
        function decreaseAllowance(address _spender, uint256 _value) public returns (bool) {
          _approve(msg.sender, _spender, _allowance[msg.sender][_spender].sub(_value));
          return true;
        }
      
        function transfer(address _to, uint256 _value) public returns (bool _success) {
          _transfer(msg.sender, _to, _value);
          return true;
        }
      
        function transferFrom(address _from, address _to, uint256 _value) public returns (bool _success) {
          _transfer(_from, _to, _value);
          _approve(_from, msg.sender, _allowance[_from][msg.sender].sub(_value));
          return true;
        }
      
        function _approve(address _owner, address _spender, uint256 _amount) internal {
          require(_owner != address(0), "ERC20: approve from the zero address");
          require(_spender != address(0), "ERC20: approve to the zero address");
      
          _allowance[_owner][_spender] = _amount;
          emit Approval(_owner, _spender, _amount);
        }
      
        function _transfer(address _from, address _to, uint256 _value) internal {
          require(_from != address(0), "ERC20: transfer from the zero address");
          require(_to != address(0), "ERC20: transfer to the zero address");
          require(_to != address(this), "ERC20: transfer to this contract address");
      
          balanceOf[_from] = balanceOf[_from].sub(_value);
          balanceOf[_to] = balanceOf[_to].add(_value);
          emit Transfer(_from, _to, _value);
        }
      }
      
      // File: token/erc20/IERC20Detailed.sol
      
      pragma solidity 0.5.17;
      
      
      interface IERC20Detailed {
        function name() external view returns (string memory _name);
        function symbol() external view returns (string memory _symbol);
        function decimals() external view returns (uint8 _decimals);
      }
      
      // File: token/erc20/ERC20Detailed.sol
      
      pragma solidity 0.5.17;
      
      
      
      
      contract ERC20Detailed is ERC20, IERC20Detailed {
        string public name;
        string public symbol;
        uint8 public decimals;
      
        constructor(string memory _name, string memory _symbol, uint8 _decimals) public {
          name = _name;
          symbol = _symbol;
          decimals = _decimals;
        }
      }
      
      // File: token/erc20/ERC20GatewayWhitelist.sol
      
      pragma solidity 0.5.17;
      
      
      contract ERC20GatewayWhitelist is ERC20 {
        address public mainchainGateway;
      
        function allowance(address _owner, address _spender)
          public
          view
          returns (uint256 _value)
        {
          if (_spender == mainchainGateway) return uint256(-1);
      
          return _allowance[_owner][_spender];
        }
      
        function transferFrom(
          address _from,
          address _to,
          uint256 _value
        )
          public
          returns (bool _success)
        {
          if (allowance(_from, msg.sender) != uint256(-1)) {
            super._approve(_from, msg.sender, _allowance[_from][msg.sender].sub(_value));
          }
      
          _transfer(_from, _to, _value);
          return true;
        }
      
        function _setGateway(address _mainchainGateway) internal {
          require(
            _mainchainGateway != address(0),
            "ERC20GatewayWhitelist: setting gateway to the zero address"
          );
          mainchainGateway = _mainchainGateway;
        }
      }
      
      // File: AXSToken.sol
      
      pragma solidity 0.5.17;
      
      
      
      
      contract AXSToken is ERC20Detailed, ERC20GatewayWhitelist {
        constructor(address _mainchainGateway)
          public
          ERC20Detailed("Axie Infinity Shard", "AXS", 18)
        {
          totalSupply = uint256(270000000).mul(uint256(10)**18);
          balanceOf[msg.sender] = totalSupply;
          emit Transfer(address(0), msg.sender, totalSupply);
      
          _setGateway(_mainchainGateway);
        }
      }