ETH Price: $1,788.73 (+6.74%)

Contract

0xCf2fe24dEF7141A5BA87597b144817FaDb070E15
Transaction Hash
Method
Block
From
To
Transfer3292728552025-04-23 5:22:098 hrs ago1745385729IN
Love Cheese: CHEESE Token
0 ETH0.00000910.016423
Approve3290984352025-04-22 17:14:3921 hrs ago1745342079IN
Love Cheese: CHEESE Token
0 ETH0.000004850.01
Transfer3270655192025-04-16 19:21:536 days ago1744831313IN
Love Cheese: CHEESE Token
0 ETH0.000002190.01
Transfer3270643352025-04-16 19:16:576 days ago1744831017IN
Love Cheese: CHEESE Token
0 ETH0.000004570.01
Transfer3270630532025-04-16 19:11:356 days ago1744830695IN
Love Cheese: CHEESE Token
0 ETH0.000004660.010093
Transfer3270621762025-04-16 19:07:536 days ago1744830473IN
Love Cheese: CHEESE Token
0 ETH0.000004790.01
Approve3264329572025-04-14 23:11:158 days ago1744672275IN
Love Cheese: CHEESE Token
0 ETH0.000000340.01
Permit3261866822025-04-14 5:58:439 days ago1744610323IN
Love Cheese: CHEESE Token
0 ETH0.000000420.01
Transfer3261467932025-04-14 3:10:439 days ago1744600243IN
Love Cheese: CHEESE Token
0 ETH0.000004310.01
Approve3259825732025-04-13 15:40:219 days ago1744558821IN
Love Cheese: CHEESE Token
0 ETH0.000000490.01
Approve3259067132025-04-13 10:23:2910 days ago1744539809IN
Love Cheese: CHEESE Token
0 ETH0.000000270.01
Approve3250536252025-04-10 22:55:0512 days ago1744325705IN
Love Cheese: CHEESE Token
0 ETH0.000000460.01
Transfer3249793422025-04-10 17:44:4512 days ago1744307085IN
Love Cheese: CHEESE Token
0 ETH0.00000310.02294
Transfer3249600072025-04-10 16:24:1512 days ago1744302255IN
Love Cheese: CHEESE Token
0 ETH0.000041390.100522
Transfer3244835452025-04-09 7:15:0414 days ago1744182904IN
Love Cheese: CHEESE Token
0 ETH0.000004620.032449
Approve3238332652025-04-07 9:58:1116 days ago1744019891IN
Love Cheese: CHEESE Token
0 ETH0.000000780.013204
Approve3229001492025-04-04 16:50:3718 days ago1743785437IN
Love Cheese: CHEESE Token
0 ETH0.00000040.014119
Approve3228961162025-04-04 16:33:4918 days ago1743784429IN
Love Cheese: CHEESE Token
0 ETH0.000001320.027087
Transfer3228686022025-04-04 14:39:0518 days ago1743777545IN
Love Cheese: CHEESE Token
0 ETH0.000003140.021771
Approve3227872772025-04-04 8:59:4919 days ago1743757189IN
Love Cheese: CHEESE Token
0 ETH0.000000280.01
Transfer3220957992025-04-02 8:49:0621 days ago1743583746IN
Love Cheese: CHEESE Token
0 ETH0.000001280.01
Transfer3220945872025-04-02 8:44:0421 days ago1743583444IN
Love Cheese: CHEESE Token
0 ETH0.000004330.01
Transfer3220928922025-04-02 8:37:0121 days ago1743583021IN
Love Cheese: CHEESE Token
0 ETH0.000004320.01
Transfer3220926082025-04-02 8:35:4921 days ago1743582949IN
Love Cheese: CHEESE Token
0 ETH0.000004670.01082
Transfer3220917502025-04-02 8:32:1821 days ago1743582738IN
Love Cheese: CHEESE Token
0 ETH0.000004650.01
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
3292728552025-04-23 5:22:098 hrs ago1745385729
Love Cheese: CHEESE Token
0 ETH
3292728552025-04-23 5:22:098 hrs ago1745385729
Love Cheese: CHEESE Token
0 ETH
3291025272025-04-22 17:31:3720 hrs ago1745343097
Love Cheese: CHEESE Token
0.00000099 ETH
3291025272025-04-22 17:31:3720 hrs ago1745343097
Love Cheese: CHEESE Token
0.00000099 ETH
3270643352025-04-16 19:16:576 days ago1744831017
Love Cheese: CHEESE Token
24 wei
3270643352025-04-16 19:16:576 days ago1744831017
Love Cheese: CHEESE Token
24 wei
3270630532025-04-16 19:11:356 days ago1744830695
Love Cheese: CHEESE Token
0 ETH
3270630532025-04-16 19:11:356 days ago1744830695
Love Cheese: CHEESE Token
0 ETH
3270621762025-04-16 19:07:536 days ago1744830473
Love Cheese: CHEESE Token
0 ETH
3270621762025-04-16 19:07:536 days ago1744830473
Love Cheese: CHEESE Token
0 ETH
3261467932025-04-14 3:10:439 days ago1744600243
Love Cheese: CHEESE Token
0.0000009 ETH
3261467932025-04-14 3:10:439 days ago1744600243
Love Cheese: CHEESE Token
0.0000009 ETH
3259826622025-04-13 15:40:439 days ago1744558843
Love Cheese: CHEESE Token
0 ETH
3259826622025-04-13 15:40:439 days ago1744558843
Love Cheese: CHEESE Token
0 ETH
3259826622025-04-13 15:40:439 days ago1744558843
Love Cheese: CHEESE Token
0 ETH
3259826622025-04-13 15:40:439 days ago1744558843
Love Cheese: CHEESE Token
0 ETH
3259826622025-04-13 15:40:439 days ago1744558843
Love Cheese: CHEESE Token
0.00000357 ETH
3259826622025-04-13 15:40:439 days ago1744558843
Love Cheese: CHEESE Token
0.00000357 ETH
3250536782025-04-10 22:55:1812 days ago1744325718
Love Cheese: CHEESE Token
107 wei
3250536782025-04-10 22:55:1812 days ago1744325718
Love Cheese: CHEESE Token
107 wei
3250536782025-04-10 22:55:1812 days ago1744325718
Love Cheese: CHEESE Token
0 ETH
3250536782025-04-10 22:55:1812 days ago1744325718
Love Cheese: CHEESE Token
0 ETH
3250536782025-04-10 22:55:1812 days ago1744325718
Love Cheese: CHEESE Token
0 ETH
3250536782025-04-10 22:55:1812 days ago1744325718
Love Cheese: CHEESE Token
0 ETH
3250533072025-04-10 22:53:4412 days ago1744325624
Love Cheese: CHEESE Token
0.00000397 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Cheese

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 20 : Cheese.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity 0.8.15;
import '@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';
import './interfaces/ISwapFactory.sol';
import './interfaces/ISwapRouter.sol';
import './interfaces/IWETH.sol';

interface IJackpot {
  function tradeEvent(address sender, uint256 amount) external;
}

contract Cheese is ERC20Permit, Ownable {
  using SafeERC20 for IERC20;
  using EnumerableSet for EnumerableSet.AddressSet;

  event SwapBack(uint256 burn, uint256 gov1, uint256 liquidity, uint256 jackpot, uint256 dev, uint timestamp);
  event Trade(address user, address pair, uint256 amount, uint side, uint256 circulatingSupply, uint timestamp);
  event AddLiquidity(uint256 tokenAmount, uint256 ethAmount, uint256 timestamp);

  bool public swapEnabled = true;

  bool public inSwap;
  modifier swapping() {
    inSwap = true;
    _;
    inSwap = false;
  }

  mapping(address => bool) public isFeeExempt;
  mapping(address => bool) public canAddLiquidityBeforeLaunch;

  uint256 public burnFee;
  uint256 public depositFee;
  uint256 public liquidityFee;
  uint256 public jackpotFee;
  uint256 public devFee;
  uint256 public totalFee;
  uint256 public feeDenominator = 10000;

  // Buy Fees
  uint256 public burnFeeBuy = 200;
  uint256 public liquidityFeeBuy = 200;
  uint256 public devFeeBuy = 200;
  uint256 public depositFeeBuy = 200;
  uint256 public jackpotFeeBuy = 200;
  uint256 public totalFeeBuy = 1000;
  // Sell Fees
  uint256 public burnFeeSell = 200;
  uint256 public liquidityFeeSell = 200;
  uint256 public devFeeSell = 200;
  uint256 public depositFeeSell = 200;
  uint256 public jackpotFeeSell = 200;
  uint256 public totalFeeSell = 1000;

  // Fees receivers
  address public depositWallet;
  IJackpot public jackpotWallet;
  address public devWallet;

  IERC20 public backToken;
  uint256 public launchedAt;
  uint256 public launchedAtTimestamp;
  bool public initialized;

  ISwapFactory public immutable factory;
  ISwapRouter public immutable swapRouter;
  IWETH public immutable WETH;
  address public constant DEAD = 0x000000000000000000000000000000000000dEaD;
  address public constant ZERO = 0x0000000000000000000000000000000000000000;

  EnumerableSet.AddressSet private _pairs;

  constructor(IERC20 _backToken, address _factory, address _swapRouter, address _weth) ERC20Permit('CHEESE') ERC20('CHEESE', 'CHEESE') {
    uint256 _totalSupply = 210_000_000_000_000_000 * 1e6;
    backToken = _backToken;
    canAddLiquidityBeforeLaunch[_msgSender()] = true;
    canAddLiquidityBeforeLaunch[address(this)] = true;
    isFeeExempt[msg.sender] = true;
    isFeeExempt[address(this)] = true;
    factory = ISwapFactory(_factory);
    swapRouter = ISwapRouter(_swapRouter);
    WETH = IWETH(_weth);
    _mint(_msgSender(), _totalSupply);
  }

  function initializePair() external onlyOwner {
    require(!initialized, 'CHEESE: Already initialized');
    initialized = true;
    address pair = factory.createPair(address(WETH), address(this));
    _pairs.add(pair);
  }

  function decimals() public view virtual override returns (uint8) {
    return 6;
  }

  function transfer(address to, uint256 amount) public virtual override returns (bool) {
    return _chessesTransfer(_msgSender(), to, amount);
  }

  function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
    address spender = _msgSender();
    _spendAllowance(sender, spender, amount);
    return _chessesTransfer(sender, recipient, amount);
  }

  function _chessesTransfer(address sender, address recipient, uint256 amount) internal returns (bool) {
    if (inSwap) {
      _transfer(sender, recipient, amount);
      return true;
    }
    if (!canAddLiquidityBeforeLaunch[sender]) {
      require(launched(), 'CHEESE: Trading not open yet');
    }

    bool shouldTakeFee = (!isFeeExempt[sender] && !isFeeExempt[recipient]) && launched();
    uint side = 0;
    address user_ = sender;
    address pair_ = recipient;
    // Set Fees
    if (isPair(sender)) {
      buyFees();
      side = 1;
      user_ = recipient;
      pair_ = sender;
      try jackpotWallet.tradeEvent(sender, amount) {} catch {}
    } else if (isPair(recipient)) {
      sellFees();
      side = 2;
    } else {
      shouldTakeFee = false;
    }

    if (shouldSwapBack()) {
      swapBack();
    }

    uint256 amountReceived = shouldTakeFee ? takeFee(sender, amount) : amount;
    _transfer(sender, recipient, amountReceived);

    if (side > 0) {
      emit Trade(user_, pair_, amount, side, getCirculatingSupply(), block.timestamp);
    }
    return true;
  }

  function shouldSwapBack() internal view returns (bool) {
    return !inSwap && swapEnabled && launched() && balanceOf(address(this)) > 0 && !isPair(_msgSender());
  }

  function swapBack() internal swapping {
    uint256 taxAmount = balanceOf(address(this));
    _approve(address(this), address(swapRouter), taxAmount);

    uint256 amountCheeseBurn = (taxAmount * burnFee) / (totalFee);
    uint256 amountCheeseLp = (taxAmount * liquidityFee) / (totalFee);
    taxAmount -= amountCheeseBurn;
    taxAmount -= amountCheeseLp;

    address[] memory path = new address[](3);
    path[0] = address(this);
    path[1] = address(WETH);
    path[2] = address(backToken);

    bool success = false;
    uint256 balanceBefore = backToken.balanceOf(address(this));
    try swapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(taxAmount, 0, path, address(this), address(0), block.timestamp) {
      success = true;
    } catch {
      try swapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(taxAmount, 0, path, address(this), block.timestamp) {
        success = true;
      } catch {}
    }
    if (!success) {
      return;
    }

    _transfer(address(this), DEAD, amountCheeseBurn);

    uint256 amountBackToken = backToken.balanceOf(address(this)) - balanceBefore;
    uint256 backTokenTotalFee = totalFee - burnFee - liquidityFee;
    uint256 amountBackTokenDeposit = (amountBackToken * depositFee) / (backTokenTotalFee);
    uint256 amountBackTokenJackpot = (amountBackToken * jackpotFee) / backTokenTotalFee;
    uint256 amountBackTokenDev = amountBackToken - amountBackTokenDeposit - amountBackTokenJackpot;

    backToken.transfer(depositWallet, amountBackTokenDeposit);
    backToken.transfer(address(jackpotWallet), amountBackTokenJackpot);
    backToken.transfer(devWallet, amountBackTokenDev);

    if (liquidityFee > 0) {
      _doAddLp();
    }

    emit SwapBack(amountCheeseBurn, amountBackTokenDeposit, amountCheeseLp, amountBackTokenJackpot, amountBackTokenDev, block.timestamp);
  }

  function _doAddLp() internal {
    address[] memory pathEth = new address[](2);
    pathEth[0] = address(this);
    pathEth[1] = address(WETH);

    uint256 tokenAmount = balanceOf(address(this));
    uint256 half = tokenAmount / 2;
    if (half < 1000) return;

    uint256 ethAmountBefore = address(this).balance;
    bool success = false;
    try swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(half, 0, pathEth, address(this), address(0), block.timestamp) {
      success = true;
    } catch {
      try swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(half, 0, pathEth, address(this), block.timestamp) {
        success = true;
      } catch {}
    }
    if (!success) {
      return;
    }

    uint256 ethAmount = address(this).balance - ethAmountBefore;
    _addLiquidity(half, ethAmount);
  }

  function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) internal {
    _approve(address(this), address(swapRouter), tokenAmount);
    try swapRouter.addLiquidityETH{ value: ethAmount }(address(this), tokenAmount, 0, 0, address(0), block.timestamp) {
      emit AddLiquidity(tokenAmount, ethAmount, block.timestamp);
    } catch {}
  }

  function doSwapBack() public onlyOwner {
    swapBack();
  }

  function launched() internal view returns (bool) {
    return launchedAt != 0;
  }

  function buyFees() internal {
    burnFee = burnFeeBuy;
    depositFee = depositFeeBuy;
    liquidityFee = liquidityFeeBuy;
    jackpotFee = jackpotFeeBuy;
    devFee = devFeeBuy;
    totalFee = totalFeeBuy;
  }

  function sellFees() internal {
    burnFee = burnFeeSell;
    depositFee = depositFeeSell;
    liquidityFee = liquidityFeeSell;
    jackpotFee = jackpotFeeSell;
    devFee = devFeeSell;
    totalFee = totalFeeSell;
  }

  function takeFee(address sender, uint256 amount) internal returns (uint256) {
    uint256 feeAmount = (amount * totalFee) / feeDenominator;
    _transfer(sender, address(this), feeAmount);
    return amount - feeAmount;
  }

  function withdraw(IERC20 token, address to, uint256 amount) external onlyOwner {
    if (address(token) == address(0)) {
      payable(to).transfer(amount);
    } else {
      token.transfer(to, amount);
    }
  }

  function getCirculatingSupply() public view returns (uint256) {
    return totalSupply() - balanceOf(DEAD) - balanceOf(ZERO);
  }

  /*** ADMIN FUNCTIONS ***/
  function launch() public onlyOwner {
    require(launchedAt == 0, 'CHEESE: Already launched');
    launchedAt = block.number;
    launchedAtTimestamp = block.timestamp;
  }

  function setBuyFees(uint256 _depositFee, uint256 _liquidityFee, uint256 _jackpotFee, uint256 _devFee, uint256 _burnFee) external onlyOwner {
    depositFeeBuy = _depositFee;
    liquidityFeeBuy = _liquidityFee;
    jackpotFeeBuy = _jackpotFee;
    devFeeBuy = _devFee;
    burnFeeBuy = _burnFee;
    totalFeeBuy = _depositFee + _liquidityFee + _jackpotFee + _devFee + _burnFee;
  }

  function setSellFees(uint256 _depositFee, uint256 _liquidityFee, uint256 _jackpotFee, uint256 _devFee, uint256 _burnFee) external onlyOwner {
    depositFeeSell = _depositFee;
    liquidityFeeSell = _liquidityFee;
    jackpotFeeSell = _jackpotFee;
    devFeeSell = _devFee;
    burnFeeSell = _burnFee;
    totalFeeSell = _depositFee + _liquidityFee + _jackpotFee + _devFee + _burnFee;
  }

  function setFeeReceivers(address _depositWallet, address _jackpotWallet, address _devWallet) external onlyOwner {
    depositWallet = _depositWallet;
    jackpotWallet = IJackpot(_jackpotWallet);
    devWallet = _devWallet;
  }

  function setIsFeeExempt(address holder, bool exempt) external onlyOwner {
    isFeeExempt[holder] = exempt;
  }

  function setSwapBackSettings(bool _enabled) external onlyOwner {
    swapEnabled = _enabled;
  }

  function isPair(address account) public view returns (bool) {
    return _pairs.contains(account);
  }

  function addPair(address pair) public onlyOwner returns (bool) {
    require(pair != address(0), 'CHEESE: pair is the zero address');
    return _pairs.add(pair);
  }

  function delPair(address pair) public onlyOwner returns (bool) {
    require(pair != address(0), 'CHEESE: pair is the zero address');
    return _pairs.remove(pair);
  }

  function getMinterLength() public view returns (uint256) {
    return _pairs.length();
  }

  function getPair(uint256 index) public view returns (address) {
    require(index <= _pairs.length() - 1, 'CHEESE: index out of bounds');
    return _pairs.at(index);
  }

  receive() external payable {}
}

File 2 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev 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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 3 of 20 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead 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 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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, 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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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 += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - 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 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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 20 : draft-ERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/draft-ERC20Permit.sol)

pragma solidity ^0.8.0;

import "./draft-IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/cryptography/EIP712.sol";
import "../../../utils/Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping(address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private constant _PERMIT_TYPEHASH =
        keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    /**
     * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`.
     * However, to ensure consistency with the upgradeable transpiler, we will continue
     * to reserve a slot.
     * @custom:oz-renamed-from _PERMIT_TYPEHASH
     */
    // solhint-disable-next-line var-name-mixedcase
    bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT;

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {}

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual override {
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline));

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

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

pragma solidity ^0.8.0;

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

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

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

File 6 of 20 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @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 7 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 8 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 9 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 11 of 20 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 12 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 13 of 20 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 14 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

File 16 of 20 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
 * unusable.
 * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
 * array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        bytes32[] memory store = _values(set._inner);
        bytes32[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 17 of 20 : ISwapFactory.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity >=0.5.0;

interface ISwapFactory {
  event PairCreated(address indexed token0, address indexed token1, address pair, uint256);

  function owner() external view returns (address);

  function feePercentOwner() external view returns (address);

  function setStableOwner() external view returns (address);

  function feeTo() external view returns (address);

  function ownerFeeShare() external view returns (uint256);

  function referrersFeeShare(address) external view returns (uint256);

  function getPair(address tokenA, address tokenB) external view returns (address pair);

  function allPairs(uint256) external view returns (address pair);

  function allPairsLength() external view returns (uint256);

  function createPair(address tokenA, address tokenB) external returns (address pair);

  function setFeeTo(address) external;

  function feeInfo() external view returns (uint _ownerFeeShare, address _feeTo);
}

File 18 of 20 : ISwapRouter.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';

interface ISwapRouter 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, address referrer, uint deadline) external;

  function swapExactETHForTokensSupportingFeeOnTransferTokens(uint amountOutMin, address[] calldata path, address to, address referrer, uint deadline) external payable;

  function swapExactTokensForETHSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, address referrer, uint deadline) external;

  function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}

File 19 of 20 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity >=0.6.2;

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 quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);

  function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) external;

  function swapExactTokensForETHSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external;
}

File 20 of 20 : IWETH.sol
// SPDX-License-Identifier: MIT LICENSE
pragma solidity >=0.5.0;

interface IWETH {
  function totalSupply() external view returns (uint256);

  function balanceOf(address account) external view returns (uint256);

  function allowance(address owner, address spender) external view returns (uint256);

  function approve(address spender, uint256 amount) external returns (bool);

  function deposit() external payable;

  function transfer(address to, uint256 value) external returns (bool);

  function withdraw(uint256) external;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_backToken","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_swapRouter","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AddLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"burn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gov1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"jackpot","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dev","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SwapBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"side","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"circulatingSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Trade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"addPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"backToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnFeeBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"canAddLiquidityBeforeLaunch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"}],"name":"delPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositFeeBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFeeBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"doSwapBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract ISwapFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCirculatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinterLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFeeExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jackpotFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jackpotFeeBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jackpotFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jackpotWallet","outputs":[{"internalType":"contract IJackpot","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchedAtTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFeeBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"liquidityFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_jackpotFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_burnFee","type":"uint256"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_depositWallet","type":"address"},{"internalType":"address","name":"_jackpotWallet","type":"address"},{"internalType":"address","name":"_devWallet","type":"address"}],"name":"setFeeReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsFeeExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_jackpotFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_burnFee","type":"uint256"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract ISwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFeeSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6101a06040526001600760146101000a81548160ff02191690831515021790555061271060105560c860115560c860125560c860135560c860145560c86015556103e860165560c860175560c860185560c860195560c8601a5560c8601b556103e8601c553480156200007157600080fd5b50604051620038d5380380620038d58339810160408190526200009491620003d0565b6040518060400160405280600681526020016543484545534560d01b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600681526020016543484545534560d01b8152506040518060400160405280600681526020016543484545534560d01b81525081600390816200011d9190620004dc565b5060046200012c8282620004dc565b5050825160209384012082519284019290922060e08390526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901819052818301979097526060810194909452608080850193909352308483018190528151808603909301835260c0948501909152815191909601209052929092526101205250620001cb9050336200029a565b602080546001600160a01b0319166001600160a01b038616179055692c781f708c509f400000600160096000620001ff3390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff19968716179055308082526009855283822080548716600190811790915533835260089095528382208054871686179055815291909120805490931690911790915584811661014052838116610160528216610180526200028f620002883390565b82620002ec565b5050505050620005cf565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200035b9190620005a8565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6001600160a01b0381168114620003cd57600080fd5b50565b60008060008060808587031215620003e757600080fd5b8451620003f481620003b7565b60208601519094506200040781620003b7565b60408601519093506200041a81620003b7565b60608601519092506200042d81620003b7565b939692955090935050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046357607f821691505b6020821081036200048457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003b257600081815260208120601f850160051c81016020861015620004b35750805b601f850160051c820191505b81811015620004d457828155600101620004bf565b505050505050565b81516001600160401b03811115620004f857620004f862000438565b62000510816200050984546200044e565b846200048a565b602080601f8311600181146200054857600084156200052f5750858301515b600019600386901b1c1916600185901b178555620004d4565b600085815260208120601f198616915b82811015620005795788860151825594840194600190910190840162000558565b5085821015620005985787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115620005ca57634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c05160e05161010051610120516101405161016051610180516132486200068d6000396000818161095c01528181610eed01528181611d6c01526126c9015260008181610a3c01528181611c9601528181611e8301528181611f22015281816127740152818161281201528181612c050152612c7a015260008181610a700152610f1e01526000611b5a01526000611ba901526000611b8401526000611add01526000611b0701526000611b3101526132486000f3fe6080604052600436106104185760003560e01c8063715018a611610228578063bf56b37111610128578063d7c01032116100bb578063e5e31b131161008a578063f2fde38b1161006f578063f2fde38b14610bbb578063fb5f27fb14610bdb578063fce589d814610bf157600080fd5b8063e5e31b1314610b85578063e987443614610ba557600080fd5b8063d7c0103214610ade578063d830678614610afe578063d9caed1214610b1f578063dd62ed3e14610b3f57600080fd5b8063c45a0155116100f7578063c45a015514610a5e578063c6d2577d14610a92578063cdba31fd14610aa8578063d505accf14610abe57600080fd5b8063bf56b371146109d4578063c1cf53c4146109ea578063c2b7bbb614610a0a578063c31c9c0714610a2a57600080fd5b806395d89b41116101bb578063a9059cbb1161018a578063b7eed4c41161016f578063b7eed4c41461097e578063b8c6113014610994578063bdf391cc146109b457600080fd5b8063a9059cbb1461092a578063ad5c46481461094a57600080fd5b806395d89b41146108bf57806398118cb4146108d4578063a457c2d7146108ea578063a5bc50851461090a57600080fd5b8063861faf5f116101f7578063861faf5f1461084c5780638da5cb5b1461086c5780638ea5220f1461088a5780638fbbd750146108aa57600080fd5b8063715018a6146107d15780637ecebe00146107e65780638072250b1461080657806382d201161461083657600080fd5b80632d2f244b1161033357806358fa63ca116102c65780636827e764116102955780636ddd17131161027a5780636ddd17131461076457806370a0823114610785578063710e1c0f146107bb57600080fd5b80636827e764146107385780636c4705951461074e57600080fd5b806358fa63ca146106d7578063652117ee146106ec578063658d4b7f1461070257806367a527931461072257600080fd5b80633f4218e0116103025780633f4218e01461065c57806347a28b791461068c5780634fab9e4c146106ac57806353148416146106c157600080fd5b80632d2f244b146105eb578063313ce5671461060b5780633644e51514610627578063395093511461063c57600080fd5b806315674e8e116103ab5780631df4ccfc1161037a5780631df4ccfc1461058a578063234a2daa146105a057806323b872dd146105b65780632b112e49146105d657600080fd5b806315674e8e1461052f578063158ef93e14610545578063180b0d7e1461055f57806318160ddd1461057557600080fd5b8063095ea7b3116103e7578063095ea7b3146104b357806309904c00146104e35780631107b3a51461050357806312835c5e1461051957600080fd5b806301339c21146104245780630323aac71461043b57806303fd2a451461046357806306fdde031461049157600080fd5b3661041f57005b600080fd5b34801561043057600080fd5b50610439610c07565b005b34801561044757600080fd5b50610450610c6e565b6040519081526020015b60405180910390f35b34801561046f57600080fd5b5061047961dead81565b6040516001600160a01b03909116815260200161045a565b34801561049d57600080fd5b506104a6610c7f565b60405161045a9190612d35565b3480156104bf57600080fd5b506104d36104ce366004612d9f565b610d11565b604051901515815260200161045a565b3480156104ef57600080fd5b50601d54610479906001600160a01b031681565b34801561050f57600080fd5b5061045060185481565b34801561052557600080fd5b5061045060195481565b34801561053b57600080fd5b5061045060115481565b34801561055157600080fd5b506023546104d39060ff1681565b34801561056b57600080fd5b5061045060105481565b34801561058157600080fd5b50600254610450565b34801561059657600080fd5b50610450600f5481565b3480156105ac57600080fd5b5061045060175481565b3480156105c257600080fd5b506104d36105d1366004612dcb565b610d2b565b3480156105e257600080fd5b50610450610d4f565b3480156105f757600080fd5b50601e54610479906001600160a01b031681565b34801561061757600080fd5b506040516006815260200161045a565b34801561063357600080fd5b50610450610db6565b34801561064857600080fd5b506104d3610657366004612d9f565b610dc0565b34801561066857600080fd5b506104d3610677366004612e0c565b60086020526000908152604090205460ff1681565b34801561069857600080fd5b506104396106a7366004612e29565b610dff565b3480156106b857600080fd5b50610439610e55565b3480156106cd57600080fd5b50610450601c5481565b3480156106e357600080fd5b50610479600081565b3480156106f857600080fd5b50610450601a5481565b34801561070e57600080fd5b5061043961071d366004612e72565b610f9e565b34801561072e57600080fd5b50610450600b5481565b34801561074457600080fd5b50610450600e5481565b34801561075a57600080fd5b5061045060155481565b34801561077057600080fd5b506007546104d390600160a01b900460ff1681565b34801561079157600080fd5b506104506107a0366004612e0c565b6001600160a01b031660009081526020819052604090205490565b3480156107c757600080fd5b5061045060145481565b3480156107dd57600080fd5b50610439610fd1565b3480156107f257600080fd5b50610450610801366004612e0c565b610fe5565b34801561081257600080fd5b506104d3610821366004612e0c565b60096020526000908152604090205460ff1681565b34801561084257600080fd5b5061045060125481565b34801561085857600080fd5b50602054610479906001600160a01b031681565b34801561087857600080fd5b506007546001600160a01b0316610479565b34801561089657600080fd5b50601f54610479906001600160a01b031681565b3480156108b657600080fd5b50610439611003565b3480156108cb57600080fd5b506104a6611013565b3480156108e057600080fd5b50610450600c5481565b3480156108f657600080fd5b506104d3610905366004612d9f565b611022565b34801561091657600080fd5b506104d3610925366004612e0c565b6110d7565b34801561093657600080fd5b506104d3610945366004612d9f565b611142565b34801561095657600080fd5b506104797f000000000000000000000000000000000000000000000000000000000000000081565b34801561098a57600080fd5b50610450601b5481565b3480156109a057600080fd5b506104396109af366004612eab565b61114f565b3480156109c057600080fd5b506104796109cf366004612ec8565b611190565b3480156109e057600080fd5b5061045060215481565b3480156109f657600080fd5b50610439610a05366004612e29565b611202565b348015610a1657600080fd5b506104d3610a25366004612e0c565b611258565b348015610a3657600080fd5b506104797f000000000000000000000000000000000000000000000000000000000000000081565b348015610a6a57600080fd5b506104797f000000000000000000000000000000000000000000000000000000000000000081565b348015610a9e57600080fd5b5061045060225481565b348015610ab457600080fd5b5061045060135481565b348015610aca57600080fd5b50610439610ad9366004612ee1565b6112c3565b348015610aea57600080fd5b50610439610af9366004612f58565b611427565b348015610b0a57600080fd5b506007546104d390600160a81b900460ff1681565b348015610b2b57600080fd5b50610439610b3a366004612dcb565b61147b565b348015610b4b57600080fd5b50610450610b5a366004612fa3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b9157600080fd5b506104d3610ba0366004612e0c565b611540565b348015610bb157600080fd5b50610450600d5481565b348015610bc757600080fd5b50610439610bd6366004612e0c565b61154d565b348015610be757600080fd5b5061045060165481565b348015610bfd57600080fd5b50610450600a5481565b610c0f6115dd565b60215415610c645760405162461bcd60e51b815260206004820152601860248201527f4348454553453a20416c7265616479206c61756e63686564000000000000000060448201526064015b60405180910390fd5b4360215542602255565b6000610c7a6024611637565b905090565b606060038054610c8e90612fd1565b80601f0160208091040260200160405190810160405280929190818152602001828054610cba90612fd1565b8015610d075780601f10610cdc57610100808354040283529160200191610d07565b820191906000526020600020905b815481529060010190602001808311610cea57829003601f168201915b5050505050905090565b600033610d1f818585611641565b60019150505b92915050565b600033610d39858285611799565b610d44858585611825565b9150505b9392505050565b600060208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb55461dead82527f44ad89ba62b98ff34f51403ac22759b55759460c0bb5521eb4b6ee3cff49cf8354600254610dac919061301b565b610c7a919061301b565b6000610c7a611ad0565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610d1f9082908690610dfa908790613032565b611641565b610e076115dd565b60148590556012849055601583905560138290556011819055808284610e2d8789613032565b610e379190613032565b610e419190613032565b610e4b9190613032565b6016555050505050565b610e5d6115dd565b60235460ff1615610eb05760405162461bcd60e51b815260206004820152601b60248201527f4348454553453a20416c726561647920696e697469616c697a656400000000006044820152606401610c5b565b6023805460ff191660011790556040517fc9c653960000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301523060248301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063c9c65396906044016020604051808303816000875af1158015610f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8d919061304a565b9050610f9a602482611bf7565b5050565b610fa66115dd565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b610fd96115dd565b610fe36000611c0c565b565b6001600160a01b038116600090815260056020526040812054610d25565b61100b6115dd565b610fe3611c6b565b606060048054610c8e90612fd1565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156110bf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6110cc8286868403611641565b506001949350505050565b60006110e16115dd565b6001600160a01b0382166111375760405162461bcd60e51b815260206004820181905260248201527f4348454553453a207061697220697320746865207a65726f20616464726573736044820152606401610c5b565b610d2560248361229b565b6000610d48338484611825565b6111576115dd565b60078054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000600161119e6024611637565b6111a8919061301b565b8211156111f75760405162461bcd60e51b815260206004820152601b60248201527f4348454553453a20696e646578206f7574206f6620626f756e647300000000006044820152606401610c5b565b610d256024836122b0565b61120a6115dd565b601a8590556018849055601b839055601982905560178190558082846112308789613032565b61123a9190613032565b6112449190613032565b61124e9190613032565b601c555050505050565b60006112626115dd565b6001600160a01b0382166112b85760405162461bcd60e51b815260206004820181905260248201527f4348454553453a207061697220697320746865207a65726f20616464726573736044820152606401610c5b565b610d25602483611bf7565b834211156113135760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610c5b565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113428c6122bc565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061139d826122e4565b905060006113ad8287878761234d565b9050896001600160a01b0316816001600160a01b0316146114105760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610c5b565b61141b8a8a8a611641565b50505050505050505050565b61142f6115dd565b601d80546001600160a01b0394851673ffffffffffffffffffffffffffffffffffffffff1991821617909155601e805493851693821693909317909255601f8054919093169116179055565b6114836115dd565b6001600160a01b0383166114cd576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156114c7573d6000803e3d6000fd5b50505050565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af115801561151c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c79190613067565b6000610d25602483612375565b6115556115dd565b6001600160a01b0381166115d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c5b565b6115da81611c0c565b50565b6007546001600160a01b03163314610fe35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c5b565b6000610d25825490565b6001600160a01b0383166116bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b0382166117385760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146114c757818110156118185760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c5b565b6114c78484848403611641565b600754600090600160a81b900460ff161561184d57611845848484612397565b506001610d48565b6001600160a01b03841660009081526009602052604090205460ff166118bc576021546118bc5760405162461bcd60e51b815260206004820152601c60248201527f4348454553453a2054726164696e67206e6f74206f70656e20796574000000006044820152606401610c5b565b6001600160a01b03841660009081526008602052604081205460ff161580156118fe57506001600160a01b03841660009081526008602052604090205460ff16155b801561190b575060215415155b90506000858561191a82611540565b156119d357611948601154600a55601454600b55601254600c55601554600d55601354600e55601654600f55565b5050601e546040517f67d198a60000000000000000000000000000000000000000000000000000000081526001600160a01b0380891660048301526024820187905260019350879289929116906367d198a690604401600060405180830381600087803b1580156119b857600080fd5b505af19250505080156119c9575060015b15611a1857611a18565b6119dc87611540565b15611a1357611a0a601754600a55601a54600b55601854600c55601b54600d55601954600e55601c54600f55565b60029250611a18565b600093505b611a20612584565b15611a2d57611a2d611c6b565b600084611a3a5786611a44565b611a4489886125e6565b9050611a51898983612397565b8315611ac1577fe6f814da7244d1ae6c61b54b5684858ba39cad7b9a91884be10060664987d75483838987611a84610d4f565b604080516001600160a01b03968716815295909416602086015292840191909152606083015260808201524260a082015260c00160405180910390a15b50600198975050505050505050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015611b2957507f000000000000000000000000000000000000000000000000000000000000000046145b15611b5357507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000610d48836001600160a01b038416612623565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007805460ff60a81b1916600160a81b179055306000908152602081905260408120549050611cbb307f000000000000000000000000000000000000000000000000000000000000000083611641565b6000600f54600a5483611cce9190613084565b611cd891906130a3565b90506000600f54600c5484611ced9190613084565b611cf791906130a3565b9050611d03828461301b565b9250611d0f818461301b565b6040805160038082526080820190925291945060009190602082016060803683370190505090503081600081518110611d4a57611d4a6130c5565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110611d9e57611d9e6130c5565b6001600160a01b0392831660209182029290920181019190915254825191169082906002908110611dd157611dd16130c5565b6001600160a01b03928316602091820292909201810191909152546040516370a0823160e01b8152306004820152600092839216906370a0823190602401602060405180830381865afa158015611e2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5091906130db565b6040517fac3893ba0000000000000000000000000000000000000000000000000000000081529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ac3893ba90611ec39089906000908890309083904290600401613138565b600060405180830381600087803b158015611edd57600080fd5b505af1925050508015611eee575060015b611f9a576040517f5c11d7950000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635c11d79590611f6090899060009088903090429060040161317c565b600060405180830381600087803b158015611f7a57600080fd5b505af1925050508015611f8b575060015b15611f9557600191505b611f9f565b600191505b81611faf5750505050505061228c565b611fbc3061dead87612397565b6020546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612009573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202d91906130db565b612037919061301b565b90506000600c54600a54600f5461204e919061301b565b612058919061301b565b9050600081600b548461206b9190613084565b61207591906130a3565b9050600082600d54856120889190613084565b61209291906130a3565b90506000816120a1848761301b565b6120ab919061301b565b602054601d5460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101879052929350169063a9059cbb906044016020604051808303816000875af1158015612102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121269190613067565b50602054601e5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb906044016020604051808303816000875af115801561217c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a09190613067565b50602054601f5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156121f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221a9190613067565b50600c541561222b5761222b612672565b604080518b8152602081018590529081018a905260608101839052608081018290524260a08201527ffc18969df35ccba802c14035d6d6273bf5bb4d8b9de8faa7aba1044c813b13009060c00160405180910390a150505050505050505050505b6007805460ff60a81b19169055565b6000610d48836001600160a01b0384166128b9565b6000610d4883836129ac565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b6000610d256122f1611ad0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061235e878787876129d6565b9150915061236b81612a9a565b5095945050505050565b6001600160a01b03811660009081526001830160205260408120541515610d48565b6001600160a01b0383166124135760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b03821661248f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b0383166000908152602081905260409020548181101561251e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36114c7565b600754600090600160a81b900460ff161580156125aa5750600754600160a01b900460ff165b80156125b7575060215415155b80156125d0575030600090815260208190526040812054115b8015610c7a57506125e033611540565b15905090565b600080601054600f54846125fa9190613084565b61260491906130a3565b9050612611843083612397565b61261b818461301b565b949350505050565b600081815260018301602052604081205461266a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d25565b506000610d25565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106126a7576126a76130c5565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106126fb576126fb6130c5565b6001600160a01b03929092166020928302919091018201523060009081529081905260408120549061272e6002836130a3565b90506103e881101561273f57505050565b6040517f52aa4c2200000000000000000000000000000000000000000000000000000000815247906000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906352aa4c22906127b390869085908a90309083904290600401613138565b600060405180830381600087803b1580156127cd57600080fd5b505af19250505080156127de575060015b612889576040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906128509086906000908a903090429060040161317c565b600060405180830381600087803b15801561286a57600080fd5b505af192505050801561287b575060015b15612884575060015b61288d565b5060015b80612899575050505050565b60006128a5834761301b565b90506128b18482612bff565b505050505050565b600081815260018301602052604081205480156129a25760006128dd60018361301b565b85549091506000906128f19060019061301b565b9050818114612956576000866000018281548110612911576129116130c5565b9060005260206000200154905080876000018481548110612934576129346130c5565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612967576129676131b8565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610d25565b6000915050610d25565b60008260000182815481106129c3576129c36130c5565b9060005260206000200154905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612a0d5750600090506003612a91565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a61573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a8a57600060019250925050612a91565b9150600090505b94509492505050565b6000816004811115612aae57612aae6131ce565b03612ab65750565b6001816004811115612aca57612aca6131ce565b03612b175760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c5b565b6002816004811115612b2b57612b2b6131ce565b03612b785760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c5b565b6003816004811115612b8c57612b8c6131ce565b036115da5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b612c2a307f000000000000000000000000000000000000000000000000000000000000000084611641565b6040517ff305d719000000000000000000000000000000000000000000000000000000008152306004820152602481018390526000604482018190526064820181905260848201524260a48201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f305d71990839060c40160606040518083038185885af193505050508015612ce9575060408051601f3d908101601f19168201909252612ce6918101906131e4565b60015b15610f9a5750506040805184815260208101849052428183015290517ff75993dbe1645872cbbea6395e1feebee76b435baf0e4d62d7eac269c6f57b2492509081900360600190a15050565b600060208083528351808285015260005b81811015612d6257858101830151858201604001528201612d46565b81811115612d74576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146115da57600080fd5b60008060408385031215612db257600080fd5b8235612dbd81612d8a565b946020939093013593505050565b600080600060608486031215612de057600080fd5b8335612deb81612d8a565b92506020840135612dfb81612d8a565b929592945050506040919091013590565b600060208284031215612e1e57600080fd5b8135610d4881612d8a565b600080600080600060a08688031215612e4157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b80151581146115da57600080fd5b60008060408385031215612e8557600080fd5b8235612e9081612d8a565b91506020830135612ea081612e64565b809150509250929050565b600060208284031215612ebd57600080fd5b8135610d4881612e64565b600060208284031215612eda57600080fd5b5035919050565b600080600080600080600060e0888a031215612efc57600080fd5b8735612f0781612d8a565b96506020880135612f1781612d8a565b95506040880135945060608801359350608088013560ff81168114612f3b57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080600060608486031215612f6d57600080fd5b8335612f7881612d8a565b92506020840135612f8881612d8a565b91506040840135612f9881612d8a565b809150509250925092565b60008060408385031215612fb657600080fd5b8235612fc181612d8a565b91506020830135612ea081612d8a565b600181811c90821680612fe557607f821691505b6020821081036122de57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101561302d5761302d613005565b500390565b6000821982111561304557613045613005565b500190565b60006020828403121561305c57600080fd5b8151610d4881612d8a565b60006020828403121561307957600080fd5b8151610d4881612e64565b600081600019048311821515161561309e5761309e613005565b500290565b6000826130c057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130ed57600080fd5b5051919050565b600081518084526020808501945080840160005b8381101561312d5781516001600160a01b031687529582019590820190600101613108565b509495945050505050565b86815285602082015260c06040820152600061315760c08301876130f4565b6001600160a01b03958616606084015293909416608082015260a00152949350505050565b85815284602082015260a06040820152600061319b60a08301866130f4565b6001600160a01b0394909416606083015250608001529392505050565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b6000806000606084860312156131f957600080fd5b835192506020840151915060408401519050925092509256fea264697066735822122006e1b3186367d84bc961d2423241e4f22de326dfa721b62227b4876a66f5acd664736f6c634300080f0033000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000006eccab422d763ac031210895c81787e87b43a652000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

Deployed Bytecode

0x6080604052600436106104185760003560e01c8063715018a611610228578063bf56b37111610128578063d7c01032116100bb578063e5e31b131161008a578063f2fde38b1161006f578063f2fde38b14610bbb578063fb5f27fb14610bdb578063fce589d814610bf157600080fd5b8063e5e31b1314610b85578063e987443614610ba557600080fd5b8063d7c0103214610ade578063d830678614610afe578063d9caed1214610b1f578063dd62ed3e14610b3f57600080fd5b8063c45a0155116100f7578063c45a015514610a5e578063c6d2577d14610a92578063cdba31fd14610aa8578063d505accf14610abe57600080fd5b8063bf56b371146109d4578063c1cf53c4146109ea578063c2b7bbb614610a0a578063c31c9c0714610a2a57600080fd5b806395d89b41116101bb578063a9059cbb1161018a578063b7eed4c41161016f578063b7eed4c41461097e578063b8c6113014610994578063bdf391cc146109b457600080fd5b8063a9059cbb1461092a578063ad5c46481461094a57600080fd5b806395d89b41146108bf57806398118cb4146108d4578063a457c2d7146108ea578063a5bc50851461090a57600080fd5b8063861faf5f116101f7578063861faf5f1461084c5780638da5cb5b1461086c5780638ea5220f1461088a5780638fbbd750146108aa57600080fd5b8063715018a6146107d15780637ecebe00146107e65780638072250b1461080657806382d201161461083657600080fd5b80632d2f244b1161033357806358fa63ca116102c65780636827e764116102955780636ddd17131161027a5780636ddd17131461076457806370a0823114610785578063710e1c0f146107bb57600080fd5b80636827e764146107385780636c4705951461074e57600080fd5b806358fa63ca146106d7578063652117ee146106ec578063658d4b7f1461070257806367a527931461072257600080fd5b80633f4218e0116103025780633f4218e01461065c57806347a28b791461068c5780634fab9e4c146106ac57806353148416146106c157600080fd5b80632d2f244b146105eb578063313ce5671461060b5780633644e51514610627578063395093511461063c57600080fd5b806315674e8e116103ab5780631df4ccfc1161037a5780631df4ccfc1461058a578063234a2daa146105a057806323b872dd146105b65780632b112e49146105d657600080fd5b806315674e8e1461052f578063158ef93e14610545578063180b0d7e1461055f57806318160ddd1461057557600080fd5b8063095ea7b3116103e7578063095ea7b3146104b357806309904c00146104e35780631107b3a51461050357806312835c5e1461051957600080fd5b806301339c21146104245780630323aac71461043b57806303fd2a451461046357806306fdde031461049157600080fd5b3661041f57005b600080fd5b34801561043057600080fd5b50610439610c07565b005b34801561044757600080fd5b50610450610c6e565b6040519081526020015b60405180910390f35b34801561046f57600080fd5b5061047961dead81565b6040516001600160a01b03909116815260200161045a565b34801561049d57600080fd5b506104a6610c7f565b60405161045a9190612d35565b3480156104bf57600080fd5b506104d36104ce366004612d9f565b610d11565b604051901515815260200161045a565b3480156104ef57600080fd5b50601d54610479906001600160a01b031681565b34801561050f57600080fd5b5061045060185481565b34801561052557600080fd5b5061045060195481565b34801561053b57600080fd5b5061045060115481565b34801561055157600080fd5b506023546104d39060ff1681565b34801561056b57600080fd5b5061045060105481565b34801561058157600080fd5b50600254610450565b34801561059657600080fd5b50610450600f5481565b3480156105ac57600080fd5b5061045060175481565b3480156105c257600080fd5b506104d36105d1366004612dcb565b610d2b565b3480156105e257600080fd5b50610450610d4f565b3480156105f757600080fd5b50601e54610479906001600160a01b031681565b34801561061757600080fd5b506040516006815260200161045a565b34801561063357600080fd5b50610450610db6565b34801561064857600080fd5b506104d3610657366004612d9f565b610dc0565b34801561066857600080fd5b506104d3610677366004612e0c565b60086020526000908152604090205460ff1681565b34801561069857600080fd5b506104396106a7366004612e29565b610dff565b3480156106b857600080fd5b50610439610e55565b3480156106cd57600080fd5b50610450601c5481565b3480156106e357600080fd5b50610479600081565b3480156106f857600080fd5b50610450601a5481565b34801561070e57600080fd5b5061043961071d366004612e72565b610f9e565b34801561072e57600080fd5b50610450600b5481565b34801561074457600080fd5b50610450600e5481565b34801561075a57600080fd5b5061045060155481565b34801561077057600080fd5b506007546104d390600160a01b900460ff1681565b34801561079157600080fd5b506104506107a0366004612e0c565b6001600160a01b031660009081526020819052604090205490565b3480156107c757600080fd5b5061045060145481565b3480156107dd57600080fd5b50610439610fd1565b3480156107f257600080fd5b50610450610801366004612e0c565b610fe5565b34801561081257600080fd5b506104d3610821366004612e0c565b60096020526000908152604090205460ff1681565b34801561084257600080fd5b5061045060125481565b34801561085857600080fd5b50602054610479906001600160a01b031681565b34801561087857600080fd5b506007546001600160a01b0316610479565b34801561089657600080fd5b50601f54610479906001600160a01b031681565b3480156108b657600080fd5b50610439611003565b3480156108cb57600080fd5b506104a6611013565b3480156108e057600080fd5b50610450600c5481565b3480156108f657600080fd5b506104d3610905366004612d9f565b611022565b34801561091657600080fd5b506104d3610925366004612e0c565b6110d7565b34801561093657600080fd5b506104d3610945366004612d9f565b611142565b34801561095657600080fd5b506104797f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181565b34801561098a57600080fd5b50610450601b5481565b3480156109a057600080fd5b506104396109af366004612eab565b61114f565b3480156109c057600080fd5b506104796109cf366004612ec8565b611190565b3480156109e057600080fd5b5061045060215481565b3480156109f657600080fd5b50610439610a05366004612e29565b611202565b348015610a1657600080fd5b506104d3610a25366004612e0c565b611258565b348015610a3657600080fd5b506104797f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d81565b348015610a6a57600080fd5b506104797f0000000000000000000000006eccab422d763ac031210895c81787e87b43a65281565b348015610a9e57600080fd5b5061045060225481565b348015610ab457600080fd5b5061045060135481565b348015610aca57600080fd5b50610439610ad9366004612ee1565b6112c3565b348015610aea57600080fd5b50610439610af9366004612f58565b611427565b348015610b0a57600080fd5b506007546104d390600160a81b900460ff1681565b348015610b2b57600080fd5b50610439610b3a366004612dcb565b61147b565b348015610b4b57600080fd5b50610450610b5a366004612fa3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b9157600080fd5b506104d3610ba0366004612e0c565b611540565b348015610bb157600080fd5b50610450600d5481565b348015610bc757600080fd5b50610439610bd6366004612e0c565b61154d565b348015610be757600080fd5b5061045060165481565b348015610bfd57600080fd5b50610450600a5481565b610c0f6115dd565b60215415610c645760405162461bcd60e51b815260206004820152601860248201527f4348454553453a20416c7265616479206c61756e63686564000000000000000060448201526064015b60405180910390fd5b4360215542602255565b6000610c7a6024611637565b905090565b606060038054610c8e90612fd1565b80601f0160208091040260200160405190810160405280929190818152602001828054610cba90612fd1565b8015610d075780601f10610cdc57610100808354040283529160200191610d07565b820191906000526020600020905b815481529060010190602001808311610cea57829003601f168201915b5050505050905090565b600033610d1f818585611641565b60019150505b92915050565b600033610d39858285611799565b610d44858585611825565b9150505b9392505050565b600060208190527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb55461dead82527f44ad89ba62b98ff34f51403ac22759b55759460c0bb5521eb4b6ee3cff49cf8354600254610dac919061301b565b610c7a919061301b565b6000610c7a611ad0565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610d1f9082908690610dfa908790613032565b611641565b610e076115dd565b60148590556012849055601583905560138290556011819055808284610e2d8789613032565b610e379190613032565b610e419190613032565b610e4b9190613032565b6016555050505050565b610e5d6115dd565b60235460ff1615610eb05760405162461bcd60e51b815260206004820152601b60248201527f4348454553453a20416c726561647920696e697469616c697a656400000000006044820152606401610c5b565b6023805460ff191660011790556040517fc9c653960000000000000000000000000000000000000000000000000000000081526001600160a01b037f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1811660048301523060248301526000917f0000000000000000000000006eccab422d763ac031210895c81787e87b43a6529091169063c9c65396906044016020604051808303816000875af1158015610f69573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8d919061304a565b9050610f9a602482611bf7565b5050565b610fa66115dd565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b610fd96115dd565b610fe36000611c0c565b565b6001600160a01b038116600090815260056020526040812054610d25565b61100b6115dd565b610fe3611c6b565b606060048054610c8e90612fd1565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156110bf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6110cc8286868403611641565b506001949350505050565b60006110e16115dd565b6001600160a01b0382166111375760405162461bcd60e51b815260206004820181905260248201527f4348454553453a207061697220697320746865207a65726f20616464726573736044820152606401610c5b565b610d2560248361229b565b6000610d48338484611825565b6111576115dd565b60078054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6000600161119e6024611637565b6111a8919061301b565b8211156111f75760405162461bcd60e51b815260206004820152601b60248201527f4348454553453a20696e646578206f7574206f6620626f756e647300000000006044820152606401610c5b565b610d256024836122b0565b61120a6115dd565b601a8590556018849055601b839055601982905560178190558082846112308789613032565b61123a9190613032565b6112449190613032565b61124e9190613032565b601c555050505050565b60006112626115dd565b6001600160a01b0382166112b85760405162461bcd60e51b815260206004820181905260248201527f4348454553453a207061697220697320746865207a65726f20616464726573736044820152606401610c5b565b610d25602483611bf7565b834211156113135760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610c5b565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886113428c6122bc565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061139d826122e4565b905060006113ad8287878761234d565b9050896001600160a01b0316816001600160a01b0316146114105760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610c5b565b61141b8a8a8a611641565b50505050505050505050565b61142f6115dd565b601d80546001600160a01b0394851673ffffffffffffffffffffffffffffffffffffffff1991821617909155601e805493851693821693909317909255601f8054919093169116179055565b6114836115dd565b6001600160a01b0383166114cd576040516001600160a01b0383169082156108fc029083906000818181858888f193505050501580156114c7573d6000803e3d6000fd5b50505050565b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb906044016020604051808303816000875af115801561151c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c79190613067565b6000610d25602483612375565b6115556115dd565b6001600160a01b0381166115d15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c5b565b6115da81611c0c565b50565b6007546001600160a01b03163314610fe35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c5b565b6000610d25825490565b6001600160a01b0383166116bc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b0382166117385760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146114c757818110156118185760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610c5b565b6114c78484848403611641565b600754600090600160a81b900460ff161561184d57611845848484612397565b506001610d48565b6001600160a01b03841660009081526009602052604090205460ff166118bc576021546118bc5760405162461bcd60e51b815260206004820152601c60248201527f4348454553453a2054726164696e67206e6f74206f70656e20796574000000006044820152606401610c5b565b6001600160a01b03841660009081526008602052604081205460ff161580156118fe57506001600160a01b03841660009081526008602052604090205460ff16155b801561190b575060215415155b90506000858561191a82611540565b156119d357611948601154600a55601454600b55601254600c55601554600d55601354600e55601654600f55565b5050601e546040517f67d198a60000000000000000000000000000000000000000000000000000000081526001600160a01b0380891660048301526024820187905260019350879289929116906367d198a690604401600060405180830381600087803b1580156119b857600080fd5b505af19250505080156119c9575060015b15611a1857611a18565b6119dc87611540565b15611a1357611a0a601754600a55601a54600b55601854600c55601b54600d55601954600e55601c54600f55565b60029250611a18565b600093505b611a20612584565b15611a2d57611a2d611c6b565b600084611a3a5786611a44565b611a4489886125e6565b9050611a51898983612397565b8315611ac1577fe6f814da7244d1ae6c61b54b5684858ba39cad7b9a91884be10060664987d75483838987611a84610d4f565b604080516001600160a01b03968716815295909416602086015292840191909152606083015260808201524260a082015260c00160405180910390a15b50600198975050505050505050565b6000306001600160a01b037f000000000000000000000000cf2fe24def7141a5ba87597b144817fadb070e1516148015611b2957507f000000000000000000000000000000000000000000000000000000000000a4b146145b15611b5357507f5185f2e659cf3bb2e5bacfc5c739152581ce7228774bd469e9821e5e646bfd4a90565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fa71d57b33e6435de7069442788131320191d4f3e543e361f11b0f4750a20da68828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6000610d48836001600160a01b038416612623565b600780546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007805460ff60a81b1916600160a81b179055306000908152602081905260408120549050611cbb307f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d83611641565b6000600f54600a5483611cce9190613084565b611cd891906130a3565b90506000600f54600c5484611ced9190613084565b611cf791906130a3565b9050611d03828461301b565b9250611d0f818461301b565b6040805160038082526080820190925291945060009190602082016060803683370190505090503081600081518110611d4a57611d4a6130c5565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab181600181518110611d9e57611d9e6130c5565b6001600160a01b0392831660209182029290920181019190915254825191169082906002908110611dd157611dd16130c5565b6001600160a01b03928316602091820292909201810191909152546040516370a0823160e01b8152306004820152600092839216906370a0823190602401602060405180830381865afa158015611e2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5091906130db565b6040517fac3893ba0000000000000000000000000000000000000000000000000000000081529091506001600160a01b037f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d169063ac3893ba90611ec39089906000908890309083904290600401613138565b600060405180830381600087803b158015611edd57600080fd5b505af1925050508015611eee575060015b611f9a576040517f5c11d7950000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d1690635c11d79590611f6090899060009088903090429060040161317c565b600060405180830381600087803b158015611f7a57600080fd5b505af1925050508015611f8b575060015b15611f9557600191505b611f9f565b600191505b81611faf5750505050505061228c565b611fbc3061dead87612397565b6020546040516370a0823160e01b815230600482015260009183916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612009573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061202d91906130db565b612037919061301b565b90506000600c54600a54600f5461204e919061301b565b612058919061301b565b9050600081600b548461206b9190613084565b61207591906130a3565b9050600082600d54856120889190613084565b61209291906130a3565b90506000816120a1848761301b565b6120ab919061301b565b602054601d5460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101879052929350169063a9059cbb906044016020604051808303816000875af1158015612102573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121269190613067565b50602054601e5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810185905291169063a9059cbb906044016020604051808303816000875af115801561217c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a09190613067565b50602054601f5460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af11580156121f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221a9190613067565b50600c541561222b5761222b612672565b604080518b8152602081018590529081018a905260608101839052608081018290524260a08201527ffc18969df35ccba802c14035d6d6273bf5bb4d8b9de8faa7aba1044c813b13009060c00160405180910390a150505050505050505050505b6007805460ff60a81b19169055565b6000610d48836001600160a01b0384166128b9565b6000610d4883836129ac565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b6000610d256122f1611ad0565b836040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061235e878787876129d6565b9150915061236b81612a9a565b5095945050505050565b6001600160a01b03811660009081526001830160205260408120541515610d48565b6001600160a01b0383166124135760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b03821661248f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b0383166000908152602081905260409020548181101561251e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610c5b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36114c7565b600754600090600160a81b900460ff161580156125aa5750600754600160a01b900460ff165b80156125b7575060215415155b80156125d0575030600090815260208190526040812054115b8015610c7a57506125e033611540565b15905090565b600080601054600f54846125fa9190613084565b61260491906130a3565b9050612611843083612397565b61261b818461301b565b949350505050565b600081815260018301602052604081205461266a57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610d25565b506000610d25565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106126a7576126a76130c5565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1816001815181106126fb576126fb6130c5565b6001600160a01b03929092166020928302919091018201523060009081529081905260408120549061272e6002836130a3565b90506103e881101561273f57505050565b6040517f52aa4c2200000000000000000000000000000000000000000000000000000000815247906000906001600160a01b037f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d16906352aa4c22906127b390869085908a90309083904290600401613138565b600060405180830381600087803b1580156127cd57600080fd5b505af19250505080156127de575060015b612889576040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d169063791ac947906128509086906000908a903090429060040161317c565b600060405180830381600087803b15801561286a57600080fd5b505af192505050801561287b575060015b15612884575060015b61288d565b5060015b80612899575050505050565b60006128a5834761301b565b90506128b18482612bff565b505050505050565b600081815260018301602052604081205480156129a25760006128dd60018361301b565b85549091506000906128f19060019061301b565b9050818114612956576000866000018281548110612911576129116130c5565b9060005260206000200154905080876000018481548110612934576129346130c5565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612967576129676131b8565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610d25565b6000915050610d25565b60008260000182815481106129c3576129c36130c5565b9060005260206000200154905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612a0d5750600090506003612a91565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a61573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a8a57600060019250925050612a91565b9150600090505b94509492505050565b6000816004811115612aae57612aae6131ce565b03612ab65750565b6001816004811115612aca57612aca6131ce565b03612b175760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c5b565b6002816004811115612b2b57612b2b6131ce565b03612b785760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c5b565b6003816004811115612b8c57612b8c6131ce565b036115da5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610c5b565b612c2a307f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d84611641565b6040517ff305d719000000000000000000000000000000000000000000000000000000008152306004820152602481018390526000604482018190526064820181905260848201524260a48201527f000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d6001600160a01b03169063f305d71990839060c40160606040518083038185885af193505050508015612ce9575060408051601f3d908101601f19168201909252612ce6918101906131e4565b60015b15610f9a5750506040805184815260208101849052428183015290517ff75993dbe1645872cbbea6395e1feebee76b435baf0e4d62d7eac269c6f57b2492509081900360600190a15050565b600060208083528351808285015260005b81811015612d6257858101830151858201604001528201612d46565b81811115612d74576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146115da57600080fd5b60008060408385031215612db257600080fd5b8235612dbd81612d8a565b946020939093013593505050565b600080600060608486031215612de057600080fd5b8335612deb81612d8a565b92506020840135612dfb81612d8a565b929592945050506040919091013590565b600060208284031215612e1e57600080fd5b8135610d4881612d8a565b600080600080600060a08688031215612e4157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b80151581146115da57600080fd5b60008060408385031215612e8557600080fd5b8235612e9081612d8a565b91506020830135612ea081612e64565b809150509250929050565b600060208284031215612ebd57600080fd5b8135610d4881612e64565b600060208284031215612eda57600080fd5b5035919050565b600080600080600080600060e0888a031215612efc57600080fd5b8735612f0781612d8a565b96506020880135612f1781612d8a565b95506040880135945060608801359350608088013560ff81168114612f3b57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080600060608486031215612f6d57600080fd5b8335612f7881612d8a565b92506020840135612f8881612d8a565b91506040840135612f9881612d8a565b809150509250925092565b60008060408385031215612fb657600080fd5b8235612fc181612d8a565b91506020830135612ea081612d8a565b600181811c90821680612fe557607f821691505b6020821081036122de57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008282101561302d5761302d613005565b500390565b6000821982111561304557613045613005565b500190565b60006020828403121561305c57600080fd5b8151610d4881612d8a565b60006020828403121561307957600080fd5b8151610d4881612e64565b600081600019048311821515161561309e5761309e613005565b500290565b6000826130c057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130ed57600080fd5b5051919050565b600081518084526020808501945080840160005b8381101561312d5781516001600160a01b031687529582019590820190600101613108565b509495945050505050565b86815285602082015260c06040820152600061315760c08301876130f4565b6001600160a01b03958616606084015293909416608082015260a00152949350505050565b85815284602082015260a06040820152600061319b60a08301866130f4565b6001600160a01b0394909416606083015250608001529392505050565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b6000806000606084860312156131f957600080fd5b835192506020840151915060408401519050925092509256fea264697066735822122006e1b3186367d84bc961d2423241e4f22de326dfa721b62227b4876a66f5acd664736f6c634300080f0033

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

000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000006eccab422d763ac031210895c81787e87b43a652000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1

-----Decoded View---------------
Arg [0] : _backToken (address): 0x912CE59144191C1204E64559FE8253a0e49E6548
Arg [1] : _factory (address): 0x6EcCab422D763aC031210895C81787E87B43A652
Arg [2] : _swapRouter (address): 0xc873fEcbd354f5A56E00E710B90EF4201db2448d
Arg [3] : _weth (address): 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000912ce59144191c1204e64559fe8253a0e49e6548
Arg [1] : 0000000000000000000000006eccab422d763ac031210895c81787e87b43a652
Arg [2] : 000000000000000000000000c873fecbd354f5a56e00e710b90ef4201db2448d
Arg [3] : 00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

CHEESE is a MEME coin that pursues fair airdrops. Use POS, 0ETH Transfer, 0.001 ARB Transfer, 0.001 MAGIC Transfer, 1 any MEMECOIN Transfer, ARB Claimer, Liquid donation and other methods to evenly airdrop.

Loading...
Loading

Validator Index Block Amount
View All Withdrawals

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

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