ETH Price: $3,229.09 (+1.06%)
 

Overview

Max Total Supply

438,157.794111111111111112 EGG

Holders

7

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
9ersfan.eth
Balance
10,000 EGG

Value
$0.00
0x563153823D702516F92fc24edD9358D6973f60F9
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
EGGToken

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : EGGToken.sol
// SPDX-License-Identifier: MIT

/*

&_--~- ,_                     /""\      ,
{        ",       THE       <>^  L____/|
(  )_ ,{ ,_@       FARM	     `) /`   , /
 |/  {|\{           GAME       \ `---' /
 ""   " "                       `'";\)`
W: https://thefarm.game           _/_Y
T: @The_Farm_Game

 * Howdy folks! Thanks for glancing over our contracts
 * If you're interested in working with us, you can email us at [email protected]
 * Found a broken egg in our contracts? We have a bug bounty program [email protected]
 * Y'all have a nice day

*/

pragma solidity ^0.8.17;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import './interfaces/IEGGToken.sol';
import './interfaces/IEGGTaxCalc.sol';
import './interfaces/IRandomizer.sol';
import './external/UniSwapV2/IUniswapV2Factory.sol';
import './external/UniSwapV2/IUniswapV2Router02.sol';

contract EGGToken is Context, ERC20, Ownable {
  // Events
  event SwapAndLiquifyEnabledUpdated(bool enabled);
  event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity);
  event InitializedContract(address thisContract);

  struct TaxFeeStructure {
    address recipientAddress; // address to send fee to
    bool sendToContract; // This enables sending to above contract or not
    uint256 fee; // Percentage of tax fee
    uint256 previousFee; // Previous fee
    bool swapForEth; // if true then run swapTokensForEth
  }

  /**
   * 0 => Liquidity Fee Tax structure
   * 1 => Auto Burn Fee Tax structure
   * 2 => Dev Fee Tax structure
   * 3 => HenHouse Contract Fee Tax structure
   * 4 => DAO Fee Tax structure
   */

  TaxFeeStructure[] public taxFeeStructures;

  mapping(address => bool) private controllers; // address => allowedToCallFunctions

  mapping(address => bool) private _isExcludedFee; // Address list to exculde the tax fee when EGG transfer
  mapping(address => bool) private _isExcludedReward; // Address list to exculde the reflection reward
  address[] private _excluded; // Address array excluded from reflection

  // References
  IRandomizer public randomizer; // Reference to Randomizer
  IEGGTaxCalc public eggTaxCalc; // Reference to EGGTaxCalc
  IUniswapV2Router02 public immutable uniswapV2Router; // Ref to Router

  uint256 public totalMinted = 0; // Track the total minted amount

  uint256 public totalBurned = 0; // Track the total burned amount

  uint256 public _maxTxAmount = 4000000000 * 10**18; // Max amount avaialble for a single tx
  uint256 private numTokensSellToAddToLiquidity = 500000 * 10**18; // Minimum amount to add EGG to liquidity pool
  uint256 private globalMutiplier = 4;

  uint256 private accruedSwapTax = 0;
  address public immutable uniswapV2Pair;

  address public liquidityTokenRecipient; // Recipient Address to get liquidityToken while swapping

  // Dev wallet
  uint256 public emissionPercent = 909; // Rate for the dev emission => 9.09%. 10000 = 100%, 500 = 5%
  address public emissionsAddress; // Dev emission address to receive 9.09% of mint $EGG

  bool inSwapAndLiquify;
  bool public swapAndLiquifyEnabled = false;

  /**
   * @dev Modifer to require the swap and liquify is alloed or not
   */

  modifier lockTheSwap() {
    inSwapAndLiquify = true;
    _;
    inSwapAndLiquify = false;
  }

  /**
   * @dev Modifer to require _msgSender() to be a controller
   */
  modifier onlyController() {
    _isController();
    _;
  }

  // Optimize for bytecode size
  function _isController() internal view {
    require(controllers[_msgSender()], 'Only controllers');
  }

  // Tracks the last block that a caller has written to state.
  // Disallow some access to functions if they occur while a change is being written.
  mapping(address => uint256) private lastWrite;

  uint256 taxDivisor = 10; // Tax rate
  address public burnAddress = 0x000000000000000000000000000000000000dEaD;

  constructor(
    IRandomizer _randomizer,
    address sushiswapRouter,
    IEGGTaxCalc _eggTaxCalc
  ) ERC20('TFG: EGG Token', 'EGG') {
    controllers[_msgSender()] = true;
    randomizer = _randomizer;
    eggTaxCalc = _eggTaxCalc;
    emissionsAddress = _msgSender();

    IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(sushiswapRouter);
    // Set the rest of the contract variables
    uniswapV2Router = _uniswapV2Router;

    // Create a sushiswap pair for this new token
    uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());

    // Exclude owner and this contract from fee
    _isExcludedFee[owner()] = true;
    _isExcludedFee[address(this)] = true;
    controllers[_msgSender()] = true;

    emit InitializedContract(address(this));
  }

  /**
   * @notice Mints EGG to a recipient.
   * @param to the recipient of the EGG
   * @param amount Amount of EGG to mint
   */

  function mint(address to, uint256 amount) external onlyController {
    uint256 tDevEmissionFee = calculateDevEmission(amount);
    _mint(to, amount);

    _mint(emissionsAddress, tDevEmissionFee);

    totalMinted = totalMinted + (amount + tDevEmissionFee);
  }

  /**
   * @notice Burn the EGG tokens from the address
   * @param _from Receipt address to mint the tokens
   * @param _amount The amount of tokens to burn
   */

  function burn(address _from, uint256 _amount) public onlyController {
    _burn(_from, _amount);
    totalBurned = totalBurned + _amount;
  }

  function transfer(address to, uint256 amount) public override returns (bool) {
    require(amount > 0, 'Transfer amount must be greater than zero');

    uint256 balanceSender = balanceOf(msg.sender);
    require(balanceSender >= amount, 'ERC20: Not enought balance for transfer');
    if (msg.sender != owner() && to != owner()) require(amount <= _maxTxAmount, 'Transfer amount exceeds maxTxAmount');

    // Is the token balance of this contract address over the min number of
    // tokens that we need to initiate a swap + liquidity lock?
    // also, don't get caught in a circular liquidity event.
    // also, don't swap & liquify if sender is uniswap pair.
    uint256 contractTokenBalance = balanceOf(address(this));
    contractTokenBalance = contractTokenBalance - accruedSwapTax;

    if (contractTokenBalance >= _maxTxAmount) {
      contractTokenBalance = _maxTxAmount;
    }

    bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;

    if (overMinTokenBalance && !inSwapAndLiquify && msg.sender != uniswapV2Pair && swapAndLiquifyEnabled) {
      contractTokenBalance = numTokensSellToAddToLiquidity;
      // Add liquidity
      swapAndLiquify(contractTokenBalance);
    }

    // Indicates if fee should be deducted from transfer

    uint256 transferAmount = amount;
    uint256 taxAmount = 0;
    // If any account belongs to _isExcludedFromFee account then remove the fee
    if (_isExcludedFee[msg.sender] || _isExcludedFee[to]) {
      _transfer(msg.sender, to, transferAmount);
    } else {
      // Transfer Tax is applied by 50% chance
      (uint256 randomTaxRate, uint256 taxChance) = eggTaxCalc.getTaxRate(msg.sender);

      uint256 randomChance = randomizer.random() % 10000;

      if (randomChance > taxChance) {
        _transfer(msg.sender, to, transferAmount);
      } else {
        taxAmount = (amount * randomTaxRate) / 10**globalMutiplier;

        transferAmount = transferAmount - taxAmount;
        _transfer(msg.sender, to, transferAmount);
        uint256[] memory _taxFees = calculateTaxFees(taxAmount);
        distributeTax(_taxFees);
      }
    }

    // _transfer(msg.sender, burnAddress, taxAmount);

    return true;
  }

  /**
   * ██ ███    ██ ████████
   * ██ ████   ██    ██
   * ██ ██ ██  ██    ██
   * ██ ██  ██ ██    ██
   * ██ ██   ████    ██
   * This section has internal only functions
   */

  /**
   * @notice Internal call to enable an address to call controller only functions
   * @param _address the address to enable
   */
  function _addController(address _address) internal {
    controllers[_address] = true;
  }

  /**
   * @notice Exclude the account from the tax fee
   * @dev Only callable by an existing controller
   * @param account Address to exclude the tax fee
   */

  function _excludeFromFee(address account) internal {
    require(!_isExcludedFee[account], 'Account already excluded');
    _isExcludedFee[account] = true;
  }

  /**
   * ██████  ██████  ██ ██    ██  █████  ████████ ███████
   * ██   ██ ██   ██ ██ ██    ██ ██   ██    ██    ██
   * ██████  ██████  ██ ██    ██ ███████    ██    █████
   * ██      ██   ██ ██  ██  ██  ██   ██    ██    ██
   * ██      ██   ██ ██   ████   ██   ██    ██    ███████
   * This section is for private fucntions
   */

  /**
   * @notice Calculate the dev emission fee when the tokens mint
   * @param _amount EGG token tax amount
   */

  function calculateDevEmission(uint256 _amount) private view returns (uint256) {
    uint256 emission = (_amount * emissionPercent) / 10**globalMutiplier;
    return emission;
  }

  /**
   * @notice Calculate the all taxFees (liquidity, autoburn, dev, henhouse, dao)
   * @param _amount EGG token tax amount
   */

  function calculateTaxFees(uint256 _amount) private view returns (uint256[] memory) {
    uint256[] memory _taxFees = new uint256[](taxFeeStructures.length);
    uint256 max = taxFeeStructures.length;
    for (uint8 i = 0; i < max; ) {
      TaxFeeStructure memory taxFeeStructure = taxFeeStructures[i];
      uint256 taxFeeCalc = (_amount * taxFeeStructure.fee) / 10**globalMutiplier;
      _taxFees[i] = taxFeeCalc;
      unchecked {
        i++;
      }
    }
    return _taxFees;
  }

  /**
   * @notice Transfer all tax fees to specific address regarding TaxFeeStructure data
   * @param _tAmounts Array of tax fees (0 => liquidity, 1 => autoburn, 2 => dev, 3 => henhouse, 4 => dao)
   */

  function distributeTax(uint256[] memory _tAmounts) private {
    uint256 max = _tAmounts.length;
    for (uint8 i = 0; i < max; ) {
      if (_tAmounts[i] == 0) continue;
      TaxFeeStructure memory taxFeeStructure = taxFeeStructures[i];

      address recipientAddress = taxFeeStructure.recipientAddress;

      require(address(recipientAddress) != address(0), "Recipient address isn't set yet!");

      uint256 tAmount = _tAmounts[i];

      if (taxFeeStructure.swapForEth) {
        if (swapAndLiquifyEnabled) {
          // 1. Transfer full EGG amount from msg.sender to this contract
          // 2. Add any accrued taxes to tAmount
          // 3. Divide EGG amount in half
          // 4. swapTokensForEth half EGG amount to ETH & transfer to recipient
          // 5. Transfer EGg to recpient
          _transfer(msg.sender, address(this), tAmount);
          accruedSwapTax += tAmount;

          accruedSwapTax = accruedSwapTax / 2;

          swapTokensForEth(accruedSwapTax, recipientAddress);

          _transfer(address(this), recipientAddress, accruedSwapTax);
          accruedSwapTax = 0;
        } else {
          accruedSwapTax += tAmount;

          _transfer(msg.sender, address(this), tAmount);
        }
      } else {
        _transfer(msg.sender, recipientAddress, tAmount);
      }
      unchecked {
        i++;
      }
    }
  }

  /**
   * @notice Swap the half amount of contract balance to WETH and add to liquidity pool
   * @param _amount Amount of the EggToken to swap
   */

  function swapAndLiquify(uint256 _amount) private lockTheSwap {
    // Split the contract token balance into halves
    uint256 half = _amount / 2;
    uint256 otherHalf = _amount - half;

    // Capture the contract's current ETH balance.
    // This is so that we can capture exactly the amount of ETH that the
    // swap creates, and not make the liquidity event include any ETH that
    // has been manually sent to the contract
    uint256 initialBalance = address(this).balance - accruedSwapTax;

    // Swap tokens for ETH
    swapTokensForEth(half, address(this)); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

    // Calculate how much ETH was just swapped into this contract
    uint256 newBalance = address(this).balance - initialBalance;

    // Add liquidity to sushiswap
    addLiquidity(otherHalf, newBalance);

    emit SwapAndLiquify(half, newBalance, otherHalf);
  }

  /**
   * @notice Swap the EGG amount to WETH
   * @dev This is used to convert EGG to ETH. The ETH is added this contract, which then gets used by swapAndLiquify to add LP
   * @param tokenAmount EGG token amount to swap ETH
   *
   */

  function swapTokensForEth(uint256 tokenAmount, address recipient) private {
    // Generate the sushiswap pair path of token -> weth
    address[] memory path = new address[](2);
    path[0] = address(this);
    path[1] = uniswapV2Router.WETH();
    _approve(address(this), address(uniswapV2Router), tokenAmount);

    // Make the swap
    uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
      tokenAmount,
      0, // Accept any amount of ETH
      path,
      recipient,
      block.timestamp
    );
  }

  /**
   * @notice Swap the EGG amount to WETH
   * @param tokenAmount EGG token amount to add liquidity pool
   * @param ethAmount ETH amount to add liquidity pool
   */

  function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
    // Approve token transfer to cover all possible scenarios
    _approve(address(this), address(uniswapV2Router), tokenAmount);
    _approve(address(this), address(uniswapV2Pair), tokenAmount);

    // Add the liquidity
    uniswapV2Router.addLiquidityETH{ value: ethAmount }(
      address(this),
      tokenAmount,
      0, // Slippage is unavoidable
      0, // Slippage is unavoidable
      liquidityTokenRecipient,
      block.timestamp
    );
  }

  /**
   * @notice Swap the EGG amount to WETH
   * @param tokenAmount EGG token amount to add liquidity pool
   * @param _ethAmount ETH amount to add liquidity pool
   */

  function addLiquidityETH(uint256 tokenAmount, uint256 _ethAmount)
    external
    payable
    onlyController
    returns (
      uint256 _amountToken,
      uint256 _amountETH,
      uint256 _liquidity
    )
  {
    _mint(address(this), tokenAmount);

    // Approve token transfer to cover all possible scenarios
    _approve(address(this), address(uniswapV2Router), tokenAmount);
    uint256 allowanceNow = allowance(address(this), address(uniswapV2Router));

    _approve(_msgSender(), address(uniswapV2Router), tokenAmount);
    allowanceNow = allowance(_msgSender(), address(uniswapV2Router));

    // Add the liquidity
    (uint256 amountToken, uint256 amountETH, uint256 liquidity) = uniswapV2Router.addLiquidityETH{ value: _ethAmount }(
      address(this),
      tokenAmount,
      0, // Slippage is unavoidable
      0, // Slippage is unavoidable
      liquidityTokenRecipient,
      block.timestamp
    );
    return (amountToken, amountETH, liquidity);
  }

  /**
   * ███████ ██   ██ ████████
   * ██       ██ ██     ██
   * █████     ███      ██
   * ██       ██ ██     ██
   * ███████ ██   ██    ██
   * This section has external functions
   */

  /**
   * @dev See {IERC20-transferFrom}.
   *
   * Emits an {Approval} event indicating the updated allowance. This is not
   * required by the EIP. See the note at the beginning of {ERC20}.
   *
   * Requirements:
   *
   * - `sender` and `recipient` cannot be the zero address.
   * - `sender` must have a balance of at least `amount`.
   * - the caller must have allowance for ``sender``'s tokens of at least
   * `amount`.
   */
  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) public virtual override(ERC20) disallowIfStateIsChanging returns (bool) {
    require(controllers[_msgSender()] || lastWrite[sender] < block.number, 'Not allowed');
    // If the entity invoking this transfer is an admin (i.e. the gameContract)
    // allow the transfer without approval. This saves gas and a transaction.
    // The sender address will still need to actually have the amount being attempted to send.
    if (controllers[_msgSender()]) {
      // NOTE: This will omit any events from being written. This saves additional gas,
      // and the event emission is not a requirement by the EIP
      // (read this function summary / ERC20 summary for more details)
      _transfer(sender, recipient, amount);
      return true;
    }

    // If it's not an admin entity (game contract, tower, etc)
    // The entity will need to be given permission to transfer these funds
    return super.transferFrom(sender, recipient, amount);
  }

  /** SECURITEEEEEEEEEEEEEEEEE */

  modifier disallowIfStateIsChanging() {
    // frens can always call whenever they want :)
    require(controllers[_msgSender()] || lastWrite[tx.origin] < block.number, 'Not allowed');
    _;
  }

  /**
   *  ██████  ██████  ███    ██ ████████ ██████   ██████  ██      ██      ███████ ██████
   * ██      ██    ██ ████   ██    ██    ██   ██ ██    ██ ██      ██      ██      ██   ██
   * ██      ██    ██ ██ ██  ██    ██    ██████  ██    ██ ██      ██      █████   ██████
   * ██      ██    ██ ██  ██ ██    ██    ██   ██ ██    ██ ██      ██      ██      ██   ██
   *  ██████  ██████  ██   ████    ██    ██   ██  ██████  ███████ ███████ ███████ ██   ██
   * This section if for controllers (possibly Owner) only functions
   */

  /**
   * @notice enables multiple addresses to call controller only functions
   * @dev Only callable by an existing controller
   * @param _addresses array of the address to enable
   */
  function addManyControllers(address[] memory _addresses) external onlyController {
    for (uint256 i = 0; i < _addresses.length; i++) {
      _addController(_addresses[i]);
    }
  }

  /**
   * @notice removes an address from controller list and ability to call controller only functions
   * @dev Only callable by an existing controller
   * @param _address the address to disable
   */
  function removeController(address _address) external onlyController {
    controllers[_address] = false;
  }

  /**
   * @notice Add the tax data into TaxFeeStructure
   * @param _recipientAddress Recipient address to get EGG tokens
   * @param _sendToContract If _recipientAddress is Deployed contract address, _sendToContract => true. If no, _sendToContract => false
   * @param _fee Tax Fee value of this TaxFeeStructure 10000 = 100%, 1010 = 10.10%
   * @param _previousFee Previous Tax Fee value of this TaxFeeStructure
   * @param _swapForEth If true then run swapTokensForEth
   */

  function addTaxFeeStructure(
    address _recipientAddress,
    bool _sendToContract,
    uint256 _fee,
    uint256 _previousFee,
    bool _swapForEth
  ) external onlyController {
    require(_recipientAddress != address(0), 'Recipient zero address.');
    taxFeeStructures.push(
      TaxFeeStructure({
        recipientAddress: _recipientAddress,
        sendToContract: _sendToContract,
        fee: _fee,
        previousFee: _previousFee,
        swapForEth: _swapForEth
      })
    );
  }

  /**
   * @notice Update the TaxFeeStructure regarding TaxFeeStructure id
   * @dev Only callable by an existing controller
   * @param _recipientAddress Recipient address to get EGG tokens
   * @param _sendToContract If _recipientAddress is Deployed contract address, _sendToContract => true. If no, _sendToContract => false
   * @param _fee Tax Fee value of this TaxFeeStructure. 10000 = 100%, 1010 = 10.10%
   * @param _previousFee Previous Tax Fee value of this TaxFeeStructure
   * @param _swapForEth If true then run swapTokensForEth
   */

  function setTaxFeeStructure(
    uint16 id,
    address _recipientAddress,
    bool _sendToContract,
    uint256 _fee,
    uint256 _previousFee,
    bool _swapForEth
  ) external onlyController {
    require(id < taxFeeStructures.length, "TaxFeeStructrue doesn't exist");
    require(_recipientAddress != address(0), 'Recipient zero address');
    taxFeeStructures[id] = TaxFeeStructure(_recipientAddress, _sendToContract, _fee, _previousFee, _swapForEth);
  }

  /**
   * @notice Remove the TaxFeeStructure regarding TaxFeeStructure id
   * @dev Only callable by an existing controller
   * @param id TaxFeeStructure id to remove the tax fee data from TaxFeeStructure
   */

  function removeTaxFeeStructure(uint16 id) external onlyController {
    require(id < taxFeeStructures.length, "TaxFeeStructrue doesn't exist");
    TaxFeeStructure memory lastTaxFeeStructure = taxFeeStructures[taxFeeStructures.length - 1];
    taxFeeStructures[id] = lastTaxFeeStructure; //  Shuffle last taxFeeStructures to current position
    taxFeeStructures.pop();
  }

  /**
   @notice Get the Tax Fee Structure Info by structure id
   @param id Structure id to get the tax fee structure info
   */

  function getTaxFeeStructure(uint8 id) public view returns (TaxFeeStructure memory) {
    require(id < taxFeeStructures.length, "TaxFeeStructure data isn't exist");
    return taxFeeStructures[id];
  }

  /**
   * @notice Exclude multiple addresses from being taxed fees
   * @dev Only callable by controllers
   * @param _addresses array of the address to exclude
   */
  function excludeManyFromFee(address[] memory _addresses) external onlyController {
    for (uint256 i = 0; i < _addresses.length; i++) {
      _excludeFromFee(_addresses[i]);
    }
  }

  /**
   * @notice Include the account from the tax fee
   * @dev Only callable by an existing controller
   * @param account Address to include the tax fee
   */

  function includeInFee(address account) public onlyController {
    _isExcludedFee[account] = false;
  }

  /**
   * @notice Remove the account from the rewardExculed
   * @dev Only callable by an existing controller
   * @param account Address to include from the reward
   */

  function includeInReward(address account) external onlyController {
    require(_isExcludedReward[account], 'Account already included');
    for (uint256 i = 0; i < _excluded.length; i++) {
      if (_excluded[i] == account) {
        _excluded[i] = _excluded[_excluded.length - 1];
        _isExcludedReward[account] = false;
        _excluded.pop();
        break;
      }
    }
  }

  /**
   * @notice Set the dev emission rate to mint the EGG token to the dev wallet
   * @dev Only callable by an existing controller
   * @param devEmission Rate of dev emission // 909 = 9.09%
   */

  function setDevEmission(uint256 devEmission) external onlyController {
    emissionPercent = devEmission;
  }

  /**
   * @notice Set the dev emission address to send the emission tokens when EGG Tokens mint
   * @dev Only callable by an existing controller
   * @param _emissionAddress Emission address to get the emission EGG Tokens when EGG tokens mint
   */

  function setDevEmissionAddress(address _emissionAddress) external onlyController {
    emissionsAddress = _emissionAddress;
  }

  function setGlobalMutiplier(uint256 _number) external onlyController {
    globalMutiplier = _number;
  }

  /**
   * @notice Set enable state of the swapAndLqiuidityPool
   * @dev Only callable by an existing controller
   * @param _enabled Enable state of the swapAndLiquidityPool
   */

  function setSwapAndLiquifyEnabled(bool _enabled) external onlyController {
    swapAndLiquifyEnabled = _enabled;
    emit SwapAndLiquifyEnabledUpdated(_enabled);
  }

  /**
   * @notice Set the liquidity Token Recipient Address
   * @dev Only callable by an existing controller
   * @param _recipient Recipient Address
   */

  function setLiquidityTokenRecipient(address _recipient) public onlyController {
    liquidityTokenRecipient = _recipient;
  }
}

File 2 of 12 : IEGGTaxCalc.sol
// SPDX-License-Identifier: GPL-3.0

/// @title Interface for EGGTaxCalc

/*
&_--~- ,_                     /""\      ,
{        ",       THE       <>^  L____/|
(  )_ ,{ ,_@       FARM	     `) /`   , /
 |/  {|\{           GAME       \ `---' /
 ""   " "                       `'";\)`
W: https://thefarm.game           _/_Y
T: @The_Farm_Game

 * Howdy folks! Thanks for glancing over our contracts
 * If you're interested in working with us, you can email us at [email protected]
 * Found a broken egg in our contracts? We have a bug bounty program [email protected]
 * Y'all have a nice day
*/

pragma solidity ^0.8.17;

interface IEGGTaxCalc {
  function getTaxRate(address sender) external view returns (uint256, uint256);
}

File 3 of 12 : IEGGToken.sol
// SPDX-License-Identifier: MIT

/*

&_--~- ,_                     /""\      ,
{        ",       THE       <>^  L____/|
(  )_ ,{ ,_@       FARM	     `) /`   , /
 |/  {|\{           GAME       \ `---' /
 ""   " "                       `'";\)`
W: https://thefarm.game           _/_Y
T: @The_Farm_Game

 * Howdy folks! Thanks for glancing over our contracts
 * If you're interested in working with us, you can email us at [email protected]
 * Found a broken egg in our contracts? We have a bug bounty program [email protected]
 * Y'all have a nice day

*/

pragma solidity ^0.8.17;

interface IEGGToken {
  function balanceOf(address account) external view returns (uint256);

  function mint(address to, uint256 amount) external;

  function burn(address from, uint256 amount) external;

  function transferFrom(
    address sender,
    address recipient,
    uint256 amount
  ) external returns (bool);

  function addLiquidityETH(uint256 tokenAmount, uint256 ethAmount)
    external
    payable
    returns (
      uint256 amountToken,
      uint256 amountETH,
      uint256 liquidity
    );
}

File 4 of 12 : IRandomizer.sol
// SPDX-License-Identifier: MIT

/*

&_--~- ,_                     /""\      ,
{        ",       THE       <>^  L____/|
(  )_ ,{ ,_@       FARM	     `) /`   , /
 |/  {|\{           GAME       \ `---' /
 ""   " "                       `'";\)`
W: https://thefarm.game           _/_Y
T: @The_Farm_Game

 * Howdy folks! Thanks for glancing over our contracts
 * If you're interested in working with us, you can email us at [email protected]
 * Found a broken egg in our contracts? We have a bug bounty program [email protected]
 * Y'all have a nice day

*/

pragma solidity ^0.8.17;

interface IRandomizer {
  function random() external view returns (uint256);

  function randomToken(uint256 _tokenId) external view returns (uint256);
}

File 5 of 12 : IUniswapV2Router02.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
  function removeLiquidityETHSupportingFeeOnTransferTokens(
    address token,
    uint256 liquidity,
    uint256 amountTokenMin,
    uint256 amountETHMin,
    address to,
    uint256 deadline
  ) external returns (uint256 amountETH);

  function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
    address token,
    uint256 liquidity,
    uint256 amountTokenMin,
    uint256 amountETHMin,
    address to,
    uint256 deadline,
    bool approveMax,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external returns (uint256 amountETH);

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

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

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

File 6 of 12 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

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

  function feeTo() external view returns (address);

  function feeToSetter() external view returns (address);

  function migrator() external view returns (address);

  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 setFeeToSetter(address) external;

  function setMigrator(address) external;
}

File 7 of 12 : 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 8 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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.zeppelin.solutions/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;
        }
        _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;
        _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;
        }
        _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 9 of 12 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT

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,
    uint256 amountADesired,
    uint256 amountBDesired,
    uint256 amountAMin,
    uint256 amountBMin,
    address to,
    uint256 deadline
  )
    external
    returns (
      uint256 amountA,
      uint256 amountB,
      uint256 liquidity
    );

  function addLiquidityETH(
    address token,
    uint256 amountTokenDesired,
    uint256 amountTokenMin,
    uint256 amountETHMin,
    address to,
    uint256 deadline
  )
    external
    payable
    returns (
      uint256 amountToken,
      uint256 amountETH,
      uint256 liquidity
    );

  function removeLiquidity(
    address tokenA,
    address tokenB,
    uint256 liquidity,
    uint256 amountAMin,
    uint256 amountBMin,
    address to,
    uint256 deadline
  ) external returns (uint256 amountA, uint256 amountB);

  function removeLiquidityETH(
    address token,
    uint256 liquidity,
    uint256 amountTokenMin,
    uint256 amountETHMin,
    address to,
    uint256 deadline
  ) external returns (uint256 amountToken, uint256 amountETH);

  function removeLiquidityWithPermit(
    address tokenA,
    address tokenB,
    uint256 liquidity,
    uint256 amountAMin,
    uint256 amountBMin,
    address to,
    uint256 deadline,
    bool approveMax,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external returns (uint256 amountA, uint256 amountB);

  function removeLiquidityETHWithPermit(
    address token,
    uint256 liquidity,
    uint256 amountTokenMin,
    uint256 amountETHMin,
    address to,
    uint256 deadline,
    bool approveMax,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external returns (uint256 amountToken, uint256 amountETH);

  function swapExactTokensForTokens(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function swapTokensForExactTokens(
    uint256 amountOut,
    uint256 amountInMax,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function swapExactETHForTokens(
    uint256 amountOutMin,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external payable returns (uint256[] memory amounts);

  function swapTokensForExactETH(
    uint256 amountOut,
    uint256 amountInMax,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function swapExactTokensForETH(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external returns (uint256[] memory amounts);

  function swapETHForExactTokens(
    uint256 amountOut,
    address[] calldata path,
    address to,
    uint256 deadline
  ) external payable returns (uint256[] memory amounts);

  function quote(
    uint256 amountA,
    uint256 reserveA,
    uint256 reserveB
  ) external pure returns (uint256 amountB);

  function getAmountOut(
    uint256 amountIn,
    uint256 reserveIn,
    uint256 reserveOut
  ) external pure returns (uint256 amountOut);

  function getAmountIn(
    uint256 amountOut,
    uint256 reserveIn,
    uint256 reserveOut
  ) external pure returns (uint256 amountIn);

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

  function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

File 10 of 12 : 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 12 : 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 12 of 12 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IRandomizer","name":"_randomizer","type":"address"},{"internalType":"address","name":"sushiswapRouter","type":"address"},{"internalType":"contract IEGGTaxCalc","name":"_eggTaxCalc","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"thisContract","type":"address"}],"name":"InitializedContract","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":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","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":"_maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_ethAmount","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"_amountToken","type":"uint256"},{"internalType":"uint256","name":"_amountETH","type":"uint256"},{"internalType":"uint256","name":"_liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addManyControllers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipientAddress","type":"address"},{"internalType":"bool","name":"_sendToContract","type":"bool"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_previousFee","type":"uint256"},{"internalType":"bool","name":"_swapForEth","type":"bool"}],"name":"addTaxFeeStructure","outputs":[],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"eggTaxCalc","outputs":[{"internalType":"contract IEGGTaxCalc","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"excludeManyFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"id","type":"uint8"}],"name":"getTaxFeeStructure","outputs":[{"components":[{"internalType":"address","name":"recipientAddress","type":"address"},{"internalType":"bool","name":"sendToContract","type":"bool"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"previousFee","type":"uint256"},{"internalType":"bool","name":"swapForEth","type":"bool"}],"internalType":"struct EGGToken.TaxFeeStructure","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","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":"liquidityTokenRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomizer","outputs":[{"internalType":"contract IRandomizer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"}],"name":"removeTaxFeeStructure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"devEmission","type":"uint256"}],"name":"setDevEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_emissionAddress","type":"address"}],"name":"setDevEmissionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"setGlobalMutiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"setLiquidityTokenRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"address","name":"_recipientAddress","type":"address"},{"internalType":"bool","name":"_sendToContract","type":"bool"},{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"uint256","name":"_previousFee","type":"uint256"},{"internalType":"bool","name":"_swapForEth","type":"bool"}],"name":"setTaxFeeStructure","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"taxFeeStructures","outputs":[{"internalType":"address","name":"recipientAddress","type":"address"},{"internalType":"bool","name":"sendToContract","type":"bool"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"previousFee","type":"uint256"},{"internalType":"bool","name":"swapForEth","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","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":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c06040526000600d819055600e8190556b0cecb8f27f4200f3a0000000600f556969e10de76676d0800000601055600460115560125561038d6014556015805460ff60a81b19169055600a601755601880546001600160a01b03191661dead1790553480156200006f57600080fd5b506040516200365f3803806200365f833981016040819052620000929162000415565b6040518060400160405280600e81526020016d2a23239d1022a3a3902a37b5b2b760911b8152506040518060400160405280600381526020016245474760e81b8152508160039081620000e691906200050e565b506004620000f582826200050e565b505050620001126200010c620003a660201b60201c565b620003aa565b336000818152600760205260409020805460ff19166001179055600b80546001600160a01b038681166001600160a01b031992831617909255600c805492851692909116919091179055601580546001600160a01b0319166001600160a01b03928316179055821660808190526040805163c45a015560e01b8152905184929163c45a01559160048083019260209291908290030181865afa158015620001bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001e39190620005da565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000233573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002599190620005da565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002a7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002cd9190620005da565b6001600160a01b031660a052600160086000620002f26005546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff199586161790553081526008909252812080549092166001908117909255600790620003403390565b6001600160a01b031681526020808201929092526040908101600020805460ff19169315159390931790925590513081527faf827135deb94e19593430f16f577c1d98befd728375ca86115192ab05848fcb910160405180910390a15050505062000601565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811681146200041257600080fd5b50565b6000806000606084860312156200042b57600080fd5b83516200043881620003fc565b60208501519093506200044b81620003fc565b60408501519092506200045e81620003fc565b809150509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200049457607f821691505b602082108103620004b557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200050957600081815260208120601f850160051c81016020861015620004e45750805b601f850160051c820191505b818110156200050557828155600101620004f0565b5050505b505050565b81516001600160401b038111156200052a576200052a62000469565b62000542816200053b84546200047f565b84620004bb565b602080601f8311600181146200057a5760008415620005615750858301515b600019600386901b1c1916600185901b17855562000505565b600085815260208120601f198616915b82811015620005ab578886015182559484019460019091019084016200058a565b5085821015620005ca5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620005ed57600080fd5b8151620005fa81620003fc565b9392505050565b60805160a051612fe46200067b600039600081816104f80152818161152f015261282501526000818161031b01528181610fd5015281816110020152818161102e01528181611059015281816110860152818161268a015281816127430152818161277f015281816127fa01526128640152612fe46000f3fe6080604052600436106102675760003560e01c806370d5ae0511610144578063a9059cbb116100b6578063ea2f0b371161007a578063ea2f0b371461079d578063ec3279ab146107bd578063f10fb584146107dd578063f2fde38b146107fd578063f6a74ed71461081d578063fa0fe50d1461083d57600080fd5b8063a9059cbb14610707578063c49b9a8014610727578063d89135cd14610747578063dd62ed3e1461075d578063e6ea845c1461077d57600080fd5b80638ffc80a1116101085780638ffc80a11461064e57806393ed06d71461067c57806395d89b411461069c5780639dc29fac146106b1578063a2309ff8146106d1578063a457c2d7146106e757600080fd5b806370d5ae0514610591578063715018a6146105b15780637d1db4a5146105c657806389bd704f146105dc5780638da5cb5b1461063057600080fd5b8063352b31c5116101dd57806340c10f19116101a157806340c10f19146104a657806347bf91f6146104c657806349bd5a5e146104e65780634a74bb021461051a578063519edc1a1461053b57806370a082311461055b57600080fd5b8063352b31c5146104065780633685d4191461042657806339509351146104465780633bb36c71146104665780634066e94e1461048657600080fd5b806316f893561161022f57806316f893561461035557806318160ddd1461037557806318b613251461038a57806323b872dd146103aa578063313ce567146103ca57806333c79848146103e657600080fd5b8063053eda501461026c57806306fdde0314610295578063095ea7b3146102b757806312c79fb9146102e75780631694505e14610309575b600080fd5b34801561027857600080fd5b5061028260145481565b6040519081526020015b60405180910390f35b3480156102a157600080fd5b506102aa6108a7565b60405161028c91906128f2565b3480156102c357600080fd5b506102d76102d2366004612965565b610939565b604051901515815260200161028c565b3480156102f357600080fd5b50610307610302366004612991565b610953565b005b34801561031557600080fd5b5061033d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161028c565b34801561036157600080fd5b506103076103703660046129aa565b610960565b34801561038157600080fd5b50600254610282565b34801561039657600080fd5b506103076103a53660046129aa565b61098a565b3480156103b657600080fd5b506102d76103c53660046129c7565b6109b4565b3480156103d657600080fd5b506040516012815260200161028c565b3480156103f257600080fd5b50610307610401366004612a1e565b610ace565b34801561041257600080fd5b50610307610421366004612af5565b610b39565b34801561043257600080fd5b506103076104413660046129aa565b610d01565b34801561045257600080fd5b506102d7610461366004612965565b610e88565b34801561047257600080fd5b50610307610481366004612a1e565b610eaa565b34801561049257600080fd5b5060135461033d906001600160a01b031681565b3480156104b257600080fd5b506103076104c1366004612965565b610ef2565b3480156104d257600080fd5b50600c5461033d906001600160a01b031681565b3480156104f257600080fd5b5061033d7f000000000000000000000000000000000000000000000000000000000000000081565b34801561052657600080fd5b506015546102d790600160a81b900460ff1681565b34801561054757600080fd5b50610307610556366004612991565b610f46565b34801561056757600080fd5b506102826105763660046129aa565b6001600160a01b031660009081526020819052604090205490565b34801561059d57600080fd5b5060185461033d906001600160a01b031681565b3480156105bd57600080fd5b50610307610f53565b3480156105d257600080fd5b50610282600f5481565b3480156105e857600080fd5b506105fc6105f7366004612991565b610f67565b604080516001600160a01b03909616865293151560208601529284019190915260608301521515608082015260a00161028c565b34801561063c57600080fd5b506005546001600160a01b031661033d565b61066161065c366004612b10565b610fb8565b6040805193845260208401929092529082015260600161028c565b34801561068857600080fd5b50610307610697366004612b42565b611146565b3480156106a857600080fd5b506102aa6112b7565b3480156106bd57600080fd5b506103076106cc366004612965565b6112c6565b3480156106dd57600080fd5b50610282600d5481565b3480156106f357600080fd5b506102d7610702366004612965565b6112ed565b34801561071357600080fd5b506102d7610722366004612965565b611373565b34801561073357600080fd5b50610307610742366004612baa565b611741565b34801561075357600080fd5b50610282600e5481565b34801561076957600080fd5b50610282610778366004612bc5565b6117a1565b34801561078957600080fd5b5060155461033d906001600160a01b031681565b3480156107a957600080fd5b506103076107b83660046129aa565b6117cc565b3480156107c957600080fd5b506103076107d8366004612bfe565b6117f5565b3480156107e957600080fd5b50600b5461033d906001600160a01b031681565b34801561080957600080fd5b506103076108183660046129aa565b611970565b34801561082957600080fd5b506103076108383660046129aa565b6119e9565b34801561084957600080fd5b5061085d610858366004612c57565b611a12565b60405161028c919081516001600160a01b03168152602080830151151590820152604080830151908201526060808301519082015260809182015115159181019190915260a00190565b6060600380546108b690612c7a565b80601f01602080910402602001604051908101604052809291908181526020018280546108e290612c7a565b801561092f5780601f106109045761010080835404028352916020019161092f565b820191906000526020600020905b81548152906001019060200180831161091257829003601f168201915b5050505050905090565b600033610947818585611b11565b60019150505b92915050565b61095b611c36565b601155565b610968611c36565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b610992611c36565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526007602052604081205460ff16806109e057503260009081526016602052604090205443115b610a1f5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064015b60405180910390fd5b3360009081526007602052604090205460ff1680610a5457506001600160a01b03841660009081526016602052604090205443115b610a8e5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610a16565b3360009081526007602052604090205460ff1615610ab957610ab1848484611c88565b506001610ac7565b610ac4848484611e58565b90505b9392505050565b610ad6611c36565b60005b8151811015610b3557610b23828281518110610af757610af7612cb4565b60200260200101516001600160a01b03166000908152600760205260409020805460ff19166001179055565b80610b2d81612ce0565b915050610ad9565b5050565b610b41611c36565b60065461ffff821610610b965760405162461bcd60e51b815260206004820152601d60248201527f54617846656553747275637472756520646f65736e27742065786973740000006044820152606401610a16565b6006805460009190610baa90600190612cf9565b81548110610bba57610bba612cb4565b60009182526020918290206040805160a081018252600490930290910180546001600160a01b038116845260ff600160a01b909104811615159484019490945260018101549183019190915260028101546060830152600301549091161515608082015260068054919250829161ffff8516908110610c3b57610c3b612cb4565b600091825260209182902083516004909202018054928401511515600160a01b026001600160a81b03199093166001600160a01b039092169190911791909117815560408201516001820155606082015160028201556080909101516003909101805491151560ff199092169190911790556006805480610cbe57610cbe612d0c565b60008281526020812060046000199093019283020180546001600160a81b0319168155600181018290556002810191909155600301805460ff1916905590555050565b610d09611c36565b6001600160a01b03811660009081526009602052604090205460ff16610d715760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c726561647920696e636c7564656400000000000000006044820152606401610a16565b60005b600a54811015610b3557816001600160a01b0316600a8281548110610d9b57610d9b612cb4565b6000918252602090912001546001600160a01b031603610e7657600a8054610dc590600190612cf9565b81548110610dd557610dd5612cb4565b600091825260209091200154600a80546001600160a01b039092169183908110610e0157610e01612cb4565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600990915260409020805460ff19169055600a805480610e5057610e50612d0c565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610e8081612ce0565b915050610d74565b600033610947818585610e9b83836117a1565b610ea59190612d22565b611b11565b610eb2611c36565b60005b8151811015610b3557610ee0828281518110610ed357610ed3612cb4565b6020026020010151611e71565b80610eea81612ce0565b915050610eb5565b610efa611c36565b6000610f0582611efe565b9050610f118383611f27565b601554610f27906001600160a01b031682611f27565b610f318183612d22565b600d54610f3e9190612d22565b600d55505050565b610f4e611c36565b601455565b610f5b612006565b610f656000612060565b565b60068181548110610f7757600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b038316945060ff600160a01b90930483169391921685565b6000806000610fc5611c36565b610fcf3086611f27565b610ffa307f000000000000000000000000000000000000000000000000000000000000000087611b11565b6000611026307f00000000000000000000000000000000000000000000000000000000000000006117a1565b9050611053337f000000000000000000000000000000000000000000000000000000000000000088611b11565b61107d337f00000000000000000000000000000000000000000000000000000000000000006117a1565b905060008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d71989308c600080601360009054906101000a90046001600160a01b0316426040518863ffffffff1660e01b81526004016110f196959493929190612d35565b60606040518083038185885af115801561110f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906111349190612d70565b91985096509450505050509250925092565b61114e611c36565b60065461ffff8716106111a35760405162461bcd60e51b815260206004820152601d60248201527f54617846656553747275637472756520646f65736e27742065786973740000006044820152606401610a16565b6001600160a01b0385166111f25760405162461bcd60e51b8152602060048201526016602482015275526563697069656e74207a65726f206164647265737360501b6044820152606401610a16565b6040518060a00160405280866001600160a01b03168152602001851515815260200184815260200183815260200182151581525060068761ffff168154811061123d5761123d612cb4565b600091825260209182902083516004909202018054928401511515600160a01b026001600160a81b03199093166001600160a01b039092169190911791909117815560408201516001820155606082015160028201556080909101516003909101805491151560ff19909216919091179055505050505050565b6060600480546108b690612c7a565b6112ce611c36565b6112d882826120b2565b80600e546112e69190612d22565b600e555050565b600033816112fb82866117a1565b90508381101561135b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a16565b6113688286868403611b11565b506001949350505050565b60008082116113d65760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610a16565b33600090815260208190526040902054828110156114465760405162461bcd60e51b815260206004820152602760248201527f45524332303a204e6f7420656e6f756768742062616c616e636520666f7220746044820152663930b739b332b960c91b6064820152608401610a16565b6005546001600160a01b0316331480159061146f57506005546001600160a01b03858116911614155b156114d257600f548311156114d25760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657220616d6f756e742065786365656473206d61785478416d6f6044820152621d5b9d60ea1b6064820152608401610a16565b306000908152602081905260409020546012546114ef9082612cf9565b9050600f5481106114ff5750600f545b6010548110801590819061151d5750601554600160a01b900460ff16155b80156115525750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b80156115675750601554600160a81b900460ff165b1561157a57601054915061157a826121fd565b3360009081526008602052604081205486919060ff16806115b357506001600160a01b03881660009081526008602052604090205460ff165b156115c8576115c3338984611c88565b611733565b600c54604051637c19749b60e01b815233600482015260009182916001600160a01b0390911690637c19749b906024016040805180830381865afa158015611614573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116389190612d9e565b915091506000612710600b60009054906101000a90046001600160a01b03166001600160a01b0316635ec01e4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190612dc2565b6116c29190612df1565b9050818111156116dc576116d7338c87611c88565b61172f565b6011546116ea90600a612ee9565b6116f4848c612ef5565b6116fe9190612f0c565b935061170a8486612cf9565b9450611717338c87611c88565b6000611722856122b6565b905061172d816123ee565b505b5050505b506001979650505050505050565b611749611c36565b60158054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061179690831515815260200190565b60405180910390a150565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6117d4611c36565b6001600160a01b03166000908152600860205260409020805460ff19169055565b6117fd611c36565b6001600160a01b0385166118535760405162461bcd60e51b815260206004820152601760248201527f526563697069656e74207a65726f20616464726573732e0000000000000000006044820152606401610a16565b6040805160a0810182526001600160a01b03968716815294151560208601908152908501938452606085019283529015156080850190815260068054600181018255600091909152945160049095027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f8101805493511515600160a01b026001600160a81b031990941696909716959095179190911790945590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42909101805491151560ff19909216919091179055565b611978612006565b6001600160a01b0381166119dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a16565b6119e681612060565b50565b6119f1611c36565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260065460ff831610611a915760405162461bcd60e51b815260206004820181905260248201527f54617846656553747275637475726520646174612069736e27742065786973746044820152606401610a16565b60068260ff1681548110611aa757611aa7612cb4565b60009182526020918290206040805160a081018252600490930290910180546001600160a01b038116845260ff600160a01b909104811615159484019490945260018101549183019190915260028101546060830152600301549091161515608082015292915050565b6001600160a01b038316611b735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a16565b6001600160a01b038216611bd45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a16565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b3360009081526007602052604090205460ff16610f655760405162461bcd60e51b815260206004820152601060248201526f4f6e6c7920636f6e74726f6c6c65727360801b6044820152606401610a16565b6001600160a01b038316611cec5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a16565b6001600160a01b038216611d4e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a16565b6001600160a01b03831660009081526020819052604090205481811015611dc65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a16565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611dfd908490612d22565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e4991815260200190565b60405180910390a35b50505050565b600033611e668582856125bf565b611368858585611c88565b6001600160a01b03811660009081526008602052604090205460ff1615611eda5760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c7265616479206578636c7564656400000000000000006044820152606401610a16565b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b600080601154600a611f109190612ee9565b601454611f1d9085612ef5565b610ac79190612f0c565b6001600160a01b038216611f7d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a16565b8060026000828254611f8f9190612d22565b90915550506001600160a01b03821660009081526020819052604081208054839290611fbc908490612d22565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6005546001600160a01b03163314610f655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a16565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166121125760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a16565b6001600160a01b038216600090815260208190526040902054818110156121865760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a16565b6001600160a01b03831660009081526020819052604081208383039055600280548492906121b5908490612cf9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c29565b505050565b6015805460ff60a01b1916600160a01b179055600061221d600283612f0c565b9050600061222b8284612cf9565b905060006012544761223d9190612cf9565b90506122498330612633565b60006122558247612cf9565b905061226183826127f4565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506015805460ff60a01b19169055505050565b60065460609060009067ffffffffffffffff8111156122d7576122d7612a08565b604051908082528060200260200182016040528015612300578160200160208202803683370190505b5060065490915060005b818160ff1610156123e557600060068260ff168154811061232d5761232d612cb4565b600091825260208083206040805160a081018252600490940290910180546001600160a01b038116855260ff600160a01b90910481161515938501939093526001810154918401919091526002810154606084015260030154161515608082015260115490925061239f90600a612ee9565b60408301516123ae9089612ef5565b6123b89190612f0c565b905080858460ff16815181106123d0576123d0612cb4565b6020908102919091010152505060010161230a565b50909392505050565b805160005b818160ff1610156121f857828160ff168151811061241357612413612cb4565b6020026020010151600003156123f357600060068260ff168154811061243b5761243b612cb4565b60009182526020918290206040805160a081018252600490930290910180546001600160a01b03811680855260ff600160a01b9092048216151595850195909552600182015492840192909252600281015460608401526003015416151560808201529150806124ed5760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732069736e27742073657420796574216044820152606401610a16565b6000858460ff168151811061250457612504612cb4565b602002602001015190508260800151156125a957601554600160a81b900460ff161561258157612535333083611c88565b80601260008282546125479190612d22565b909155505060125461255b90600290612f0c565b601281905561256a9083612633565b6125773083601254611c88565b60006012556125b4565b80601260008282546125939190612d22565b909155506125a49050333083611c88565b6125b4565b6125b4338383611c88565b5050506001016123f3565b60006125cb84846117a1565b90506000198114611e5257818110156126265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a16565b611e528484848403611b11565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061266857612668612cb4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061270a9190612f20565b8160018151811061271d5761271d612cb4565b60200260200101906001600160a01b031690816001600160a01b031681525050612768307f000000000000000000000000000000000000000000000000000000000000000085611b11565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906127bd908690600090869088904290600401612f3d565b600060405180830381600087803b1580156127d757600080fd5b505af11580156127eb573d6000803e3d6000fd5b50505050505050565b61281f307f000000000000000000000000000000000000000000000000000000000000000084611b11565b61284a307f000000000000000000000000000000000000000000000000000000000000000084611b11565b60135460405163f305d71960e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169263f305d7199285926128a8923092899260009283929116904290600401612d35565b60606040518083038185885af11580156128c6573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906128eb9190612d70565b5050505050565b600060208083528351808285015260005b8181101561291f57858101830151858201604001528201612903565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146119e657600080fd5b803561296081612940565b919050565b6000806040838503121561297857600080fd5b823561298381612940565b946020939093013593505050565b6000602082840312156129a357600080fd5b5035919050565b6000602082840312156129bc57600080fd5b8135610ac781612940565b6000806000606084860312156129dc57600080fd5b83356129e781612940565b925060208401356129f781612940565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215612a3157600080fd5b823567ffffffffffffffff80821115612a4957600080fd5b818501915085601f830112612a5d57600080fd5b813581811115612a6f57612a6f612a08565b8060051b604051601f19603f83011681018181108582111715612a9457612a94612a08565b604052918252848201925083810185019188831115612ab257600080fd5b938501935b82851015612ad757612ac885612955565b84529385019392850192612ab7565b98975050505050505050565b803561ffff8116811461296057600080fd5b600060208284031215612b0757600080fd5b610ac782612ae3565b60008060408385031215612b2357600080fd5b50508035926020909101359150565b8035801515811461296057600080fd5b60008060008060008060c08789031215612b5b57600080fd5b612b6487612ae3565b95506020870135612b7481612940565b9450612b8260408801612b32565b93506060870135925060808701359150612b9e60a08801612b32565b90509295509295509295565b600060208284031215612bbc57600080fd5b610ac782612b32565b60008060408385031215612bd857600080fd5b8235612be381612940565b91506020830135612bf381612940565b809150509250929050565b600080600080600060a08688031215612c1657600080fd5b8535612c2181612940565b9450612c2f60208701612b32565b93506040860135925060608601359150612c4b60808701612b32565b90509295509295909350565b600060208284031215612c6957600080fd5b813560ff81168114610ac757600080fd5b600181811c90821680612c8e57607f821691505b602082108103612cae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612cf257612cf2612cca565b5060010190565b8181038181111561094d5761094d612cca565b634e487b7160e01b600052603160045260246000fd5b8082018082111561094d5761094d612cca565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b600080600060608486031215612d8557600080fd5b8351925060208401519150604084015190509250925092565b60008060408385031215612db157600080fd5b505080516020909101519092909150565b600060208284031215612dd457600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b600082612e0057612e00612ddb565b500690565b600181815b80851115612e40578160001904821115612e2657612e26612cca565b80851615612e3357918102915b93841c9390800290612e0a565b509250929050565b600082612e575750600161094d565b81612e645750600061094d565b8160018114612e7a5760028114612e8457612ea0565b600191505061094d565b60ff841115612e9557612e95612cca565b50506001821b61094d565b5060208310610133831016604e8410600b8410161715612ec3575081810a61094d565b612ecd8383612e05565b8060001904821115612ee157612ee1612cca565b029392505050565b6000610ac78383612e48565b808202811582820484141761094d5761094d612cca565b600082612f1b57612f1b612ddb565b500490565b600060208284031215612f3257600080fd5b8151610ac781612940565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612f8d5784516001600160a01b031683529383019391830191600101612f68565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212205ffe85824c39999455bfc347910e983cf441b27203fbf3d2d26e73ec6d0744fb64736f6c634300081100330000000000000000000000004e5d6991c2dde5f5b92d07409db27187cdf5e98a000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000d4edaed93a49831484cf924a73102557bb11c2c4

Deployed Bytecode

0x6080604052600436106102675760003560e01c806370d5ae0511610144578063a9059cbb116100b6578063ea2f0b371161007a578063ea2f0b371461079d578063ec3279ab146107bd578063f10fb584146107dd578063f2fde38b146107fd578063f6a74ed71461081d578063fa0fe50d1461083d57600080fd5b8063a9059cbb14610707578063c49b9a8014610727578063d89135cd14610747578063dd62ed3e1461075d578063e6ea845c1461077d57600080fd5b80638ffc80a1116101085780638ffc80a11461064e57806393ed06d71461067c57806395d89b411461069c5780639dc29fac146106b1578063a2309ff8146106d1578063a457c2d7146106e757600080fd5b806370d5ae0514610591578063715018a6146105b15780637d1db4a5146105c657806389bd704f146105dc5780638da5cb5b1461063057600080fd5b8063352b31c5116101dd57806340c10f19116101a157806340c10f19146104a657806347bf91f6146104c657806349bd5a5e146104e65780634a74bb021461051a578063519edc1a1461053b57806370a082311461055b57600080fd5b8063352b31c5146104065780633685d4191461042657806339509351146104465780633bb36c71146104665780634066e94e1461048657600080fd5b806316f893561161022f57806316f893561461035557806318160ddd1461037557806318b613251461038a57806323b872dd146103aa578063313ce567146103ca57806333c79848146103e657600080fd5b8063053eda501461026c57806306fdde0314610295578063095ea7b3146102b757806312c79fb9146102e75780631694505e14610309575b600080fd5b34801561027857600080fd5b5061028260145481565b6040519081526020015b60405180910390f35b3480156102a157600080fd5b506102aa6108a7565b60405161028c91906128f2565b3480156102c357600080fd5b506102d76102d2366004612965565b610939565b604051901515815260200161028c565b3480156102f357600080fd5b50610307610302366004612991565b610953565b005b34801561031557600080fd5b5061033d7f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81565b6040516001600160a01b03909116815260200161028c565b34801561036157600080fd5b506103076103703660046129aa565b610960565b34801561038157600080fd5b50600254610282565b34801561039657600080fd5b506103076103a53660046129aa565b61098a565b3480156103b657600080fd5b506102d76103c53660046129c7565b6109b4565b3480156103d657600080fd5b506040516012815260200161028c565b3480156103f257600080fd5b50610307610401366004612a1e565b610ace565b34801561041257600080fd5b50610307610421366004612af5565b610b39565b34801561043257600080fd5b506103076104413660046129aa565b610d01565b34801561045257600080fd5b506102d7610461366004612965565b610e88565b34801561047257600080fd5b50610307610481366004612a1e565b610eaa565b34801561049257600080fd5b5060135461033d906001600160a01b031681565b3480156104b257600080fd5b506103076104c1366004612965565b610ef2565b3480156104d257600080fd5b50600c5461033d906001600160a01b031681565b3480156104f257600080fd5b5061033d7f00000000000000000000000079eb91b919a273740603850dd6cc6d2a53c9b29b81565b34801561052657600080fd5b506015546102d790600160a81b900460ff1681565b34801561054757600080fd5b50610307610556366004612991565b610f46565b34801561056757600080fd5b506102826105763660046129aa565b6001600160a01b031660009081526020819052604090205490565b34801561059d57600080fd5b5060185461033d906001600160a01b031681565b3480156105bd57600080fd5b50610307610f53565b3480156105d257600080fd5b50610282600f5481565b3480156105e857600080fd5b506105fc6105f7366004612991565b610f67565b604080516001600160a01b03909616865293151560208601529284019190915260608301521515608082015260a00161028c565b34801561063c57600080fd5b506005546001600160a01b031661033d565b61066161065c366004612b10565b610fb8565b6040805193845260208401929092529082015260600161028c565b34801561068857600080fd5b50610307610697366004612b42565b611146565b3480156106a857600080fd5b506102aa6112b7565b3480156106bd57600080fd5b506103076106cc366004612965565b6112c6565b3480156106dd57600080fd5b50610282600d5481565b3480156106f357600080fd5b506102d7610702366004612965565b6112ed565b34801561071357600080fd5b506102d7610722366004612965565b611373565b34801561073357600080fd5b50610307610742366004612baa565b611741565b34801561075357600080fd5b50610282600e5481565b34801561076957600080fd5b50610282610778366004612bc5565b6117a1565b34801561078957600080fd5b5060155461033d906001600160a01b031681565b3480156107a957600080fd5b506103076107b83660046129aa565b6117cc565b3480156107c957600080fd5b506103076107d8366004612bfe565b6117f5565b3480156107e957600080fd5b50600b5461033d906001600160a01b031681565b34801561080957600080fd5b506103076108183660046129aa565b611970565b34801561082957600080fd5b506103076108383660046129aa565b6119e9565b34801561084957600080fd5b5061085d610858366004612c57565b611a12565b60405161028c919081516001600160a01b03168152602080830151151590820152604080830151908201526060808301519082015260809182015115159181019190915260a00190565b6060600380546108b690612c7a565b80601f01602080910402602001604051908101604052809291908181526020018280546108e290612c7a565b801561092f5780601f106109045761010080835404028352916020019161092f565b820191906000526020600020905b81548152906001019060200180831161091257829003601f168201915b5050505050905090565b600033610947818585611b11565b60019150505b92915050565b61095b611c36565b601155565b610968611c36565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b610992611c36565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526007602052604081205460ff16806109e057503260009081526016602052604090205443115b610a1f5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064015b60405180910390fd5b3360009081526007602052604090205460ff1680610a5457506001600160a01b03841660009081526016602052604090205443115b610a8e5760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b6044820152606401610a16565b3360009081526007602052604090205460ff1615610ab957610ab1848484611c88565b506001610ac7565b610ac4848484611e58565b90505b9392505050565b610ad6611c36565b60005b8151811015610b3557610b23828281518110610af757610af7612cb4565b60200260200101516001600160a01b03166000908152600760205260409020805460ff19166001179055565b80610b2d81612ce0565b915050610ad9565b5050565b610b41611c36565b60065461ffff821610610b965760405162461bcd60e51b815260206004820152601d60248201527f54617846656553747275637472756520646f65736e27742065786973740000006044820152606401610a16565b6006805460009190610baa90600190612cf9565b81548110610bba57610bba612cb4565b60009182526020918290206040805160a081018252600490930290910180546001600160a01b038116845260ff600160a01b909104811615159484019490945260018101549183019190915260028101546060830152600301549091161515608082015260068054919250829161ffff8516908110610c3b57610c3b612cb4565b600091825260209182902083516004909202018054928401511515600160a01b026001600160a81b03199093166001600160a01b039092169190911791909117815560408201516001820155606082015160028201556080909101516003909101805491151560ff199092169190911790556006805480610cbe57610cbe612d0c565b60008281526020812060046000199093019283020180546001600160a81b0319168155600181018290556002810191909155600301805460ff1916905590555050565b610d09611c36565b6001600160a01b03811660009081526009602052604090205460ff16610d715760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c726561647920696e636c7564656400000000000000006044820152606401610a16565b60005b600a54811015610b3557816001600160a01b0316600a8281548110610d9b57610d9b612cb4565b6000918252602090912001546001600160a01b031603610e7657600a8054610dc590600190612cf9565b81548110610dd557610dd5612cb4565b600091825260209091200154600a80546001600160a01b039092169183908110610e0157610e01612cb4565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600990915260409020805460ff19169055600a805480610e5057610e50612d0c565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b80610e8081612ce0565b915050610d74565b600033610947818585610e9b83836117a1565b610ea59190612d22565b611b11565b610eb2611c36565b60005b8151811015610b3557610ee0828281518110610ed357610ed3612cb4565b6020026020010151611e71565b80610eea81612ce0565b915050610eb5565b610efa611c36565b6000610f0582611efe565b9050610f118383611f27565b601554610f27906001600160a01b031682611f27565b610f318183612d22565b600d54610f3e9190612d22565b600d55505050565b610f4e611c36565b601455565b610f5b612006565b610f656000612060565b565b60068181548110610f7757600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b038316945060ff600160a01b90930483169391921685565b6000806000610fc5611c36565b610fcf3086611f27565b610ffa307f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f87611b11565b6000611026307f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6117a1565b9050611053337f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f88611b11565b61107d337f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6117a1565b905060008060007f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b031663f305d71989308c600080601360009054906101000a90046001600160a01b0316426040518863ffffffff1660e01b81526004016110f196959493929190612d35565b60606040518083038185885af115801561110f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906111349190612d70565b91985096509450505050509250925092565b61114e611c36565b60065461ffff8716106111a35760405162461bcd60e51b815260206004820152601d60248201527f54617846656553747275637472756520646f65736e27742065786973740000006044820152606401610a16565b6001600160a01b0385166111f25760405162461bcd60e51b8152602060048201526016602482015275526563697069656e74207a65726f206164647265737360501b6044820152606401610a16565b6040518060a00160405280866001600160a01b03168152602001851515815260200184815260200183815260200182151581525060068761ffff168154811061123d5761123d612cb4565b600091825260209182902083516004909202018054928401511515600160a01b026001600160a81b03199093166001600160a01b039092169190911791909117815560408201516001820155606082015160028201556080909101516003909101805491151560ff19909216919091179055505050505050565b6060600480546108b690612c7a565b6112ce611c36565b6112d882826120b2565b80600e546112e69190612d22565b600e555050565b600033816112fb82866117a1565b90508381101561135b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610a16565b6113688286868403611b11565b506001949350505050565b60008082116113d65760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610a16565b33600090815260208190526040902054828110156114465760405162461bcd60e51b815260206004820152602760248201527f45524332303a204e6f7420656e6f756768742062616c616e636520666f7220746044820152663930b739b332b960c91b6064820152608401610a16565b6005546001600160a01b0316331480159061146f57506005546001600160a01b03858116911614155b156114d257600f548311156114d25760405162461bcd60e51b815260206004820152602360248201527f5472616e7366657220616d6f756e742065786365656473206d61785478416d6f6044820152621d5b9d60ea1b6064820152608401610a16565b306000908152602081905260409020546012546114ef9082612cf9565b9050600f5481106114ff5750600f545b6010548110801590819061151d5750601554600160a01b900460ff16155b80156115525750336001600160a01b037f00000000000000000000000079eb91b919a273740603850dd6cc6d2a53c9b29b1614155b80156115675750601554600160a81b900460ff165b1561157a57601054915061157a826121fd565b3360009081526008602052604081205486919060ff16806115b357506001600160a01b03881660009081526008602052604090205460ff165b156115c8576115c3338984611c88565b611733565b600c54604051637c19749b60e01b815233600482015260009182916001600160a01b0390911690637c19749b906024016040805180830381865afa158015611614573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116389190612d9e565b915091506000612710600b60009054906101000a90046001600160a01b03166001600160a01b0316635ec01e4d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190612dc2565b6116c29190612df1565b9050818111156116dc576116d7338c87611c88565b61172f565b6011546116ea90600a612ee9565b6116f4848c612ef5565b6116fe9190612f0c565b935061170a8486612cf9565b9450611717338c87611c88565b6000611722856122b6565b905061172d816123ee565b505b5050505b506001979650505050505050565b611749611c36565b60158054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061179690831515815260200190565b60405180910390a150565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6117d4611c36565b6001600160a01b03166000908152600860205260409020805460ff19169055565b6117fd611c36565b6001600160a01b0385166118535760405162461bcd60e51b815260206004820152601760248201527f526563697069656e74207a65726f20616464726573732e0000000000000000006044820152606401610a16565b6040805160a0810182526001600160a01b03968716815294151560208601908152908501938452606085019283529015156080850190815260068054600181018255600091909152945160049095027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f8101805493511515600160a01b026001600160a81b031990941696909716959095179190911790945590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40830155517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4182015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d42909101805491151560ff19909216919091179055565b611978612006565b6001600160a01b0381166119dd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a16565b6119e681612060565b50565b6119f1611c36565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260065460ff831610611a915760405162461bcd60e51b815260206004820181905260248201527f54617846656553747275637475726520646174612069736e27742065786973746044820152606401610a16565b60068260ff1681548110611aa757611aa7612cb4565b60009182526020918290206040805160a081018252600490930290910180546001600160a01b038116845260ff600160a01b909104811615159484019490945260018101549183019190915260028101546060830152600301549091161515608082015292915050565b6001600160a01b038316611b735760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a16565b6001600160a01b038216611bd45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a16565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b3360009081526007602052604090205460ff16610f655760405162461bcd60e51b815260206004820152601060248201526f4f6e6c7920636f6e74726f6c6c65727360801b6044820152606401610a16565b6001600160a01b038316611cec5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a16565b6001600160a01b038216611d4e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a16565b6001600160a01b03831660009081526020819052604090205481811015611dc65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a16565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611dfd908490612d22565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e4991815260200190565b60405180910390a35b50505050565b600033611e668582856125bf565b611368858585611c88565b6001600160a01b03811660009081526008602052604090205460ff1615611eda5760405162461bcd60e51b815260206004820152601860248201527f4163636f756e7420616c7265616479206578636c7564656400000000000000006044820152606401610a16565b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b600080601154600a611f109190612ee9565b601454611f1d9085612ef5565b610ac79190612f0c565b6001600160a01b038216611f7d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a16565b8060026000828254611f8f9190612d22565b90915550506001600160a01b03821660009081526020819052604081208054839290611fbc908490612d22565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6005546001600160a01b03163314610f655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a16565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166121125760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a16565b6001600160a01b038216600090815260208190526040902054818110156121865760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a16565b6001600160a01b03831660009081526020819052604081208383039055600280548492906121b5908490612cf9565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611c29565b505050565b6015805460ff60a01b1916600160a01b179055600061221d600283612f0c565b9050600061222b8284612cf9565b905060006012544761223d9190612cf9565b90506122498330612633565b60006122558247612cf9565b905061226183826127f4565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506015805460ff60a01b19169055505050565b60065460609060009067ffffffffffffffff8111156122d7576122d7612a08565b604051908082528060200260200182016040528015612300578160200160208202803683370190505b5060065490915060005b818160ff1610156123e557600060068260ff168154811061232d5761232d612cb4565b600091825260208083206040805160a081018252600490940290910180546001600160a01b038116855260ff600160a01b90910481161515938501939093526001810154918401919091526002810154606084015260030154161515608082015260115490925061239f90600a612ee9565b60408301516123ae9089612ef5565b6123b89190612f0c565b905080858460ff16815181106123d0576123d0612cb4565b6020908102919091010152505060010161230a565b50909392505050565b805160005b818160ff1610156121f857828160ff168151811061241357612413612cb4565b6020026020010151600003156123f357600060068260ff168154811061243b5761243b612cb4565b60009182526020918290206040805160a081018252600490930290910180546001600160a01b03811680855260ff600160a01b9092048216151595850195909552600182015492840192909252600281015460608401526003015416151560808201529150806124ed5760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732069736e27742073657420796574216044820152606401610a16565b6000858460ff168151811061250457612504612cb4565b602002602001015190508260800151156125a957601554600160a81b900460ff161561258157612535333083611c88565b80601260008282546125479190612d22565b909155505060125461255b90600290612f0c565b601281905561256a9083612633565b6125773083601254611c88565b60006012556125b4565b80601260008282546125939190612d22565b909155506125a49050333083611c88565b6125b4565b6125b4338383611c88565b5050506001016123f3565b60006125cb84846117a1565b90506000198114611e5257818110156126265760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a16565b611e528484848403611b11565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061266857612668612cb4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061270a9190612f20565b8160018151811061271d5761271d612cb4565b60200260200101906001600160a01b031690816001600160a01b031681525050612768307f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f85611b11565b60405163791ac94760e01b81526001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f169063791ac947906127bd908690600090869088904290600401612f3d565b600060405180830381600087803b1580156127d757600080fd5b505af11580156127eb573d6000803e3d6000fd5b50505050505050565b61281f307f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f84611b11565b61284a307f00000000000000000000000079eb91b919a273740603850dd6cc6d2a53c9b29b84611b11565b60135460405163f305d71960e01b81526001600160a01b037f000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f81169263f305d7199285926128a8923092899260009283929116904290600401612d35565b60606040518083038185885af11580156128c6573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906128eb9190612d70565b5050505050565b600060208083528351808285015260005b8181101561291f57858101830151858201604001528201612903565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146119e657600080fd5b803561296081612940565b919050565b6000806040838503121561297857600080fd5b823561298381612940565b946020939093013593505050565b6000602082840312156129a357600080fd5b5035919050565b6000602082840312156129bc57600080fd5b8135610ac781612940565b6000806000606084860312156129dc57600080fd5b83356129e781612940565b925060208401356129f781612940565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215612a3157600080fd5b823567ffffffffffffffff80821115612a4957600080fd5b818501915085601f830112612a5d57600080fd5b813581811115612a6f57612a6f612a08565b8060051b604051601f19603f83011681018181108582111715612a9457612a94612a08565b604052918252848201925083810185019188831115612ab257600080fd5b938501935b82851015612ad757612ac885612955565b84529385019392850192612ab7565b98975050505050505050565b803561ffff8116811461296057600080fd5b600060208284031215612b0757600080fd5b610ac782612ae3565b60008060408385031215612b2357600080fd5b50508035926020909101359150565b8035801515811461296057600080fd5b60008060008060008060c08789031215612b5b57600080fd5b612b6487612ae3565b95506020870135612b7481612940565b9450612b8260408801612b32565b93506060870135925060808701359150612b9e60a08801612b32565b90509295509295509295565b600060208284031215612bbc57600080fd5b610ac782612b32565b60008060408385031215612bd857600080fd5b8235612be381612940565b91506020830135612bf381612940565b809150509250929050565b600080600080600060a08688031215612c1657600080fd5b8535612c2181612940565b9450612c2f60208701612b32565b93506040860135925060608601359150612c4b60808701612b32565b90509295509295909350565b600060208284031215612c6957600080fd5b813560ff81168114610ac757600080fd5b600181811c90821680612c8e57607f821691505b602082108103612cae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612cf257612cf2612cca565b5060010190565b8181038181111561094d5761094d612cca565b634e487b7160e01b600052603160045260246000fd5b8082018082111561094d5761094d612cca565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b600080600060608486031215612d8557600080fd5b8351925060208401519150604084015190509250925092565b60008060408385031215612db157600080fd5b505080516020909101519092909150565b600060208284031215612dd457600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b600082612e0057612e00612ddb565b500690565b600181815b80851115612e40578160001904821115612e2657612e26612cca565b80851615612e3357918102915b93841c9390800290612e0a565b509250929050565b600082612e575750600161094d565b81612e645750600061094d565b8160018114612e7a5760028114612e8457612ea0565b600191505061094d565b60ff841115612e9557612e95612cca565b50506001821b61094d565b5060208310610133831016604e8410600b8410161715612ec3575081810a61094d565b612ecd8383612e05565b8060001904821115612ee157612ee1612cca565b029392505050565b6000610ac78383612e48565b808202811582820484141761094d5761094d612cca565b600082612f1b57612f1b612ddb565b500490565b600060208284031215612f3257600080fd5b8151610ac781612940565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612f8d5784516001600160a01b031683529383019391830191600101612f68565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212205ffe85824c39999455bfc347910e983cf441b27203fbf3d2d26e73ec6d0744fb64736f6c63430008110033

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

0000000000000000000000004e5d6991c2dde5f5b92d07409db27187cdf5e98a000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f000000000000000000000000d4edaed93a49831484cf924a73102557bb11c2c4

-----Decoded View---------------
Arg [0] : _randomizer (address): 0x4E5D6991c2Dde5f5b92D07409dB27187CDF5E98A
Arg [1] : sushiswapRouter (address): 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F
Arg [2] : _eggTaxCalc (address): 0xD4EDaED93A49831484cf924A73102557bB11c2C4

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000004e5d6991c2dde5f5b92d07409db27187cdf5e98a
Arg [1] : 000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f
Arg [2] : 000000000000000000000000d4edaed93a49831484cf924a73102557bb11c2c4


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.