ETH Price: $2,887.75 (-5.36%)
Gas: 2 Gwei

Token

TokenForge (FORGE)
 

Overview

Max Total Supply

10,000,000 FORGE

Holders

174

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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:
TokenForge

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-11-15
*/

/*
https://twitter.com/TokenForgeERC
https://t.me/TokenForgeERC
https://www.myforge.xyz/
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

/**
 * @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;
  }
}

/**
 * @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: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
  /**
   * @dev Returns the name of the token.
   */
  function name() external view returns (string memory);

  /**
   * @dev Returns the symbol of the token.
   */
  function symbol() external view returns (string memory);

  /**
   * @dev Returns the decimals places of the token.
   */
  function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
  mapping(address => uint256) private _balances;

  mapping(address => mapping(address => uint256)) private _allowances;

  uint256 private _totalSupply;

  string private _name;
  string private _symbol;

  /**
   * @dev Sets the values for {name} and {symbol}.
   *
   * The default value of {decimals} is 18. To select a different value for
   * {decimals} you should overload it.
   *
   * All two of these values are immutable: they can only be set once during
   * construction.
   */
  constructor(string memory name_, string memory symbol_) {
    _name = name_;
    _symbol = symbol_;
  }

  /**
   * @dev Returns the name of the token.
   */
  function name() public view virtual override returns (string memory) {
    return _name;
  }

  /**
   * @dev Returns the symbol of the token, usually a shorter version of the
   * name.
   */
  function symbol() public view virtual override returns (string memory) {
    return _symbol;
  }

  /**
   * @dev Returns the number of decimals used to get its user representation.
   * For example, if `decimals` equals `2`, a balance of `505` tokens should
   * be displayed to a user as `5.05` (`505 / 10 ** 2`).
   *
   * Tokens usually opt for a value of 18, imitating the relationship between
   * Ether and Wei. This is the value {ERC20} uses, unless this function is
   * overridden;
   *
   * NOTE: This information is only used for _display_ purposes: it in
   * no way affects any of the arithmetic of the contract, including
   * {IERC20-balanceOf} and {IERC20-transfer}.
   */
  function decimals() public view virtual override returns (uint8) {
    return 18;
  }

  /**
   * @dev See {IERC20-totalSupply}.
   */
  function totalSupply() public view virtual override returns (uint256) {
    return _totalSupply;
  }

  /**
   * @dev See {IERC20-balanceOf}.
   */
  function balanceOf(
    address account
  ) public view virtual override returns (uint256) {
    return _balances[account];
  }

  /**
   * @dev See {IERC20-transfer}.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - the caller must have a balance of at least `amount`.
   */
  function transfer(
    address to,
    uint256 amount
  ) public virtual override returns (bool) {
    address owner = _msgSender();
    _transfer(owner, to, amount);
    return true;
  }

  /**
   * @dev See {IERC20-allowance}.
   */
  function allowance(
    address owner,
    address spender
  ) public view virtual override returns (uint256) {
    return _allowances[owner][spender];
  }

  /**
   * @dev See {IERC20-approve}.
   *
   * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
   * `transferFrom`. This is semantically equivalent to an infinite approval.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   */
  function approve(
    address spender,
    uint256 amount
  ) public virtual override returns (bool) {
    address owner = _msgSender();
    _approve(owner, spender, amount);
    return true;
  }

  /**
   * @dev See {IERC20-transferFrom}.
   *
   * Emits an {Approval} event indicating the updated allowance. This is not
   * required by the EIP. See the note at the beginning of {ERC20}.
   *
   * NOTE: Does not update the allowance if the current allowance
   * is the maximum `uint256`.
   *
   * Requirements:
   *
   * - `from` and `to` cannot be the zero address.
   * - `from` must have a balance of at least `amount`.
   * - the caller must have allowance for ``from``'s tokens of at least
   * `amount`.
   */
  function transferFrom(
    address from,
    address to,
    uint256 amount
  ) public virtual override returns (bool) {
    address spender = _msgSender();
    _spendAllowance(from, spender, amount);
    _transfer(from, to, amount);
    return true;
  }

  /**
   * @dev Atomically increases the allowance granted to `spender` by the caller.
   *
   * This is an alternative to {approve} that can be used as a mitigation for
   * problems described in {IERC20-approve}.
   *
   * Emits an {Approval} event indicating the updated allowance.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   */
  function increaseAllowance(
    address spender,
    uint256 addedValue
  ) public virtual returns (bool) {
    address owner = _msgSender();
    _approve(owner, spender, allowance(owner, spender) + addedValue);
    return true;
  }

  /**
   * @dev Atomically decreases the allowance granted to `spender` by the caller.
   *
   * This is an alternative to {approve} that can be used as a mitigation for
   * problems described in {IERC20-approve}.
   *
   * Emits an {Approval} event indicating the updated allowance.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   * - `spender` must have allowance for the caller of at least
   * `subtractedValue`.
   */
  function decreaseAllowance(
    address spender,
    uint256 subtractedValue
  ) public virtual returns (bool) {
    address owner = _msgSender();
    uint256 currentAllowance = allowance(owner, spender);
    require(
      currentAllowance >= subtractedValue,
      'ERC20: decreased allowance below zero'
    );
    unchecked {
      _approve(owner, spender, currentAllowance - subtractedValue);
    }

    return true;
  }

  /**
   * @dev Moves `amount` of tokens from `from` to `to`.
   *
   * This internal function is equivalent to {transfer}, and can be used to
   * e.g. implement automatic token fees, slashing mechanisms, etc.
   *
   * Emits a {Transfer} event.
   *
   * Requirements:
   *
   * - `from` cannot be the zero address.
   * - `to` cannot be the zero address.
   * - `from` must have a balance of at least `amount`.
   */
  function _transfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {
    require(from != address(0), 'ERC20: transfer from the zero address');
    require(to != address(0), 'ERC20: transfer to the zero address');

    _beforeTokenTransfer(from, to, amount);

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

    emit Transfer(from, to, amount);

    _afterTokenTransfer(from, to, amount);
  }

  /** @dev Creates `amount` tokens and assigns them to `account`, increasing
   * the total supply.
   *
   * Emits a {Transfer} event with `from` set to the zero address.
   *
   * Requirements:
   *
   * - `account` cannot be the zero address.
   */
  function _mint(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: mint to the zero address');

    _beforeTokenTransfer(address(0), account, amount);

    _totalSupply += amount;
    unchecked {
      // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
      _balances[account] += amount;
    }
    emit Transfer(address(0), account, amount);

    _afterTokenTransfer(address(0), account, amount);
  }

  /**
   * @dev Destroys `amount` tokens from `account`, reducing the
   * total supply.
   *
   * Emits a {Transfer} event with `to` set to the zero address.
   *
   * Requirements:
   *
   * - `account` cannot be the zero address.
   * - `account` must have at least `amount` tokens.
   */
  function _burn(address account, uint256 amount) internal virtual {
    require(account != address(0), 'ERC20: burn from the zero address');

    _beforeTokenTransfer(account, address(0), amount);

    uint256 accountBalance = _balances[account];
    require(accountBalance >= amount, 'ERC20: burn amount exceeds balance');
    unchecked {
      _balances[account] = accountBalance - amount;
      // Overflow not possible: amount <= accountBalance <= totalSupply.
      _totalSupply -= amount;
    }

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

    _afterTokenTransfer(account, address(0), amount);
  }

  /**
   * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
   *
   * This internal function is equivalent to `approve`, and can be used to
   * e.g. set automatic allowances for certain subsystems, etc.
   *
   * Emits an {Approval} event.
   *
   * Requirements:
   *
   * - `owner` cannot be the zero address.
   * - `spender` cannot be the zero address.
   */
  function _approve(
    address owner,
    address spender,
    uint256 amount
  ) internal virtual {
    require(owner != address(0), 'ERC20: approve from the zero address');
    require(spender != address(0), 'ERC20: approve to the zero address');

    _allowances[owner][spender] = amount;
    emit Approval(owner, spender, amount);
  }

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

  /**
   * @dev Hook that is called before any transfer of tokens. This includes
   * minting and burning.
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
   * will be transferred to `to`.
   * - when `from` is zero, `amount` tokens will be minted for `to`.
   * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
   * - `from` and `to` are never both zero.
   *
   * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
   */
  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {}

  /**
   * @dev Hook that is called after any transfer of tokens. This includes
   * minting and burning.
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
   * has been transferred to `to`.
   * - when `from` is zero, `amount` tokens have been minted for `to`.
   * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
   * - `from` and `to` are never both zero.
   *
   * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
   */
  function _afterTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {}
}

contract Ownable is Context {
  address public _owner;

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

  constructor() {
    address msgSender = _msgSender();
    _owner = msgSender;
    authorizations[_owner] = true;
    emit OwnershipTransferred(address(0), msgSender);
  }

  mapping(address => bool) internal authorizations;

  function owner() public view returns (address) {
    return _owner;
  }

  modifier onlyOwner() {
    require(_owner == _msgSender(), 'Ownable: caller is not the owner');
    _;
  }

  function renounceOwnership() public virtual onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  function transferOwnership(address newOwner) public virtual onlyOwner {
    require(newOwner != address(0), 'Ownable: new owner is the zero address');
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

interface IUniswapV2Factory {
  function createPair(
    address tokenA,
    address tokenB
  ) external returns (address pair);
}

interface IUniswapV2Router02 {
  function factory() external pure returns (address);

  function WETH() external pure returns (address);

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

library Math {
  /**
   * @dev Muldiv operation overflow.
   */
  error MathOverflowedMulDiv();

  enum Rounding {
    Floor, // Toward negative infinity
    Ceil, // Toward positive infinity
    Trunc, // Toward zero
    Expand // Away from zero
  }

  /**
   * @dev Returns the addition of two unsigned integers, with an overflow flag.
   */
  function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
    unchecked {
      uint256 c = a + b;
      if (c < a) return (false, 0);
      return (true, c);
    }
  }

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

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

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

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

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

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

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

  /**
   * @dev Returns the ceiling of the division of two numbers.
   *
   * This differs from standard division with `/` in that it rounds towards infinity instead
   * of rounding towards zero.
   */
  function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
    if (b == 0) {
      // Guarantee the same behavior as in a regular Solidity division.
      return a / b;
    }

    // (a + b - 1) / b can overflow on addition, so we distribute.
    return a == 0 ? 0 : (a - 1) / b + 1;
  }

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

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

      // Make sure the result is less than 2^256. Also prevents denominator == 0.
      if (denominator <= prod1) {
        revert MathOverflowedMulDiv();
      }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  /**
   * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
   */
  function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
    return uint8(rounding) % 2 == 1;
  }
}

abstract contract ReentrancyGuard {
  // Booleans are more expensive than uint256 or any type that takes up a full
  // word because each write operation emits an extra SLOAD to first read the
  // slot's contents, replace the bits taken up by the boolean, and then write
  // back. This is the compiler's defense against contract upgrades and
  // pointer aliasing, and it cannot be disabled.

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

  uint256 private _status;

  /**
   * @dev Unauthorized reentrant call.
   */
  error ReentrancyGuardReentrantCall();

  constructor() {
    _status = _NOT_ENTERED;
  }

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

  function _nonReentrantBefore() private {
    // On the first call to nonReentrant, _status will be _NOT_ENTERED
    if (_status == _ENTERED) {
      revert ReentrancyGuardReentrantCall();
    }

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

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

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

contract TokenForge is Ownable, ERC20, ReentrancyGuard {
  error TradingClosed();
  error TransactionTooLarge();
  error MaxBalanceExceeded();
  error PercentOutOfRange();
  error NotExternalToken();
  error TransferFailed();
  error UnknownCaller();

  bool public tradingOpen;
  bool private _inSwap;

  address public marketingFeeReceiver;
  uint256 public maxTxAmount;
  uint256 public maxWalletBalance;
  mapping(address => bool) public _authorizations;
  mapping(address => bool) public _feeExemptions;

  address private constant _ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
  address private immutable _factory;
  address public immutable uniswapV2Pair;

  uint256 public swapThreshold;
  uint256 public sellTax;
  uint256 public buyTax;

  modifier swapping() {
    _inSwap = true;
    _;
    _inSwap = false;
  }


  constructor(
  ) ERC20("TokenForge", "FORGE") {
    uint256 supply = 10000000 * 1 ether;

    swapThreshold = Math.mulDiv(supply, 8, 1000);
    marketingFeeReceiver = msg.sender;
    buyTax = 28;
    sellTax = 28;

    maxWalletBalance = Math.mulDiv(supply, 2, 100);
    maxTxAmount = Math.mulDiv(supply, 2, 100);

    IUniswapV2Router02 router = IUniswapV2Router02(_ROUTER);
    address pair = IUniswapV2Factory(router.factory()).createPair(
      router.WETH(),
      address(this)
    );
    uniswapV2Pair = pair;


    _authorizations[msg.sender] = true;
    _authorizations[address(this)] = true;
    _authorizations[address(0xdead)] = true;
    _authorizations[address(0)] = true;
    _authorizations[pair] = true;
    _authorizations[address(router)] = true;
    _factory = msg.sender;

    _feeExemptions[msg.sender] = true;
    _feeExemptions[address(this)] = true;

    _approve(msg.sender, _ROUTER, type(uint256).max);
    _approve(msg.sender, pair, type(uint256).max);
    _approve(address(this), _ROUTER, type(uint256).max);
    _approve(address(this), pair, type(uint256).max);

    _mint(msg.sender, supply);
  }

  function setMaxWalletAndTxPercent(
    uint256 _maxWalletPercent,
    uint256 _maxTxPercent
  ) external onlyOwner {
    if (_maxWalletPercent == 0 || _maxWalletPercent > 100) {
      revert PercentOutOfRange();
    }
    if (_maxTxPercent == 0 || _maxTxPercent > 100) {
      revert PercentOutOfRange();
    }
    uint256 supply = totalSupply();

    maxWalletBalance = Math.mulDiv(supply, _maxWalletPercent, 100);
    maxTxAmount = Math.mulDiv(supply, _maxTxPercent, 100);
  }

  function setExemptFromMaxTx(address addr, bool value) public {
    if (msg.sender != _factory && owner() != msg.sender) {
      revert UnknownCaller();
    }
    _authorizations[addr] = value;
  }

  function setExemptFromFee(address addr, bool value) public {
    if (msg.sender != _factory && owner() != msg.sender) {
      revert UnknownCaller();
    }
    _feeExemptions[addr] = value;
  }

  function _transfer(
    address _from,
    address _to,
    uint256 _amount
  ) internal override {
    if (_shouldSwapBack()) {
      _swapBack();
    }
    if (_inSwap) {
      return super._transfer(_from, _to, _amount);
    }

    uint256 fee = (_feeExemptions[_from] || _feeExemptions[_to])
      ? 0
      : _calculateFee(_from, _to, _amount);

    if (fee != 0) {
      super._transfer(_from, address(this), fee);
      _amount -= fee;
    }

    super._transfer(_from, _to, _amount);
  }

  function _swapBack() internal swapping nonReentrant {
    IUniswapV2Router02 router = IUniswapV2Router02(_ROUTER);
    address[] memory path = new address[](2);
    path[0] = address(this);
    path[1] = router.WETH();

    router.swapExactTokensForETHSupportingFeeOnTransferTokens(
      swapThreshold,
      0,
      path,
      address(this),
      block.timestamp
    );

    uint256 balance = address(this).balance;

    (bool success, ) = payable(marketingFeeReceiver).call{value: balance}('');
    if (!success) {
      revert TransferFailed();
    }
  }

  function _calculateFee(
    address sender,
    address recipient,
    uint256 amount
  ) internal view returns (uint256) {
    if (recipient == uniswapV2Pair) {
      return Math.mulDiv(amount, sellTax, 100);
    } else if (sender == uniswapV2Pair) {
      return Math.mulDiv(amount, buyTax, 100);
    }

    return (0);
  }

  function _shouldSwapBack() internal view returns (bool) {
    return
      msg.sender != uniswapV2Pair &&
      !_inSwap &&
      balanceOf(address(this)) >= swapThreshold;
  }

  function clearStuckToken(
    address tokenAddress,
    uint256 tokens
  ) external returns (bool success) {
    if (tokenAddress == address(this)) {
      revert NotExternalToken();
    } else {
      if (tokens == 0) {
        tokens = ERC20(tokenAddress).balanceOf(address(this));
        return ERC20(tokenAddress).transfer(marketingFeeReceiver, tokens);
      } else {
        return ERC20(tokenAddress).transfer(marketingFeeReceiver, tokens);
      }
    }
  }

  function setTaxes(uint256 _buyTax, uint256 _sellTax) external onlyOwner {
    sellTax = _sellTax;
    buyTax = _buyTax;
  }

  function openTrading() public onlyOwner {
    tradingOpen = true;
  }

  function setMarketingWallet(
    address _marketingFeeReceiver
  ) external onlyOwner {
    marketingFeeReceiver = _marketingFeeReceiver;
  }

  function setSwapBackSettings(uint256 _amount) public onlyOwner{
    uint256 total = totalSupply();
    uint newAmount = _amount * 1 ether;
    require(
      newAmount >= total / 1000 && newAmount <= total / 20,
      'The amount should be between 0.1% and 5% of total supply'
    );
    swapThreshold = newAmount;
  }

  function isAuthorized(address addr) public view returns (bool) {
    return _authorizations[addr];
  }

  function _beforeTokenTransfer(
    address _from,
    address _to,
    uint256 _amount
  ) internal view override {
    if (!tradingOpen) {
      if (!_authorizations[_from] || !_authorizations[_to]) {
        revert TradingClosed();
      }
    }
    if (!_authorizations[_to]) {
      if ((balanceOf(_to) + _amount) > maxWalletBalance) {
        revert MaxBalanceExceeded();
      }
    }
    if (!_authorizations[_from]) {
      if (_amount > maxTxAmount) {
        revert TransactionTooLarge();
      }
    }
  }

  receive() external payable {}

  fallback() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MathOverflowedMulDiv","type":"error"},{"inputs":[],"name":"MaxBalanceExceeded","type":"error"},{"inputs":[],"name":"NotExternalToken","type":"error"},{"inputs":[],"name":"PercentOutOfRange","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"TradingClosed","type":"error"},{"inputs":[],"name":"TransactionTooLarge","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"UnknownCaller","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_authorizations","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_feeExemptions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"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":[],"name":"buyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"clearStuckToken","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setExemptFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setExemptFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_marketingFeeReceiver","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletPercent","type":"uint256"},{"internalType":"uint256","name":"_maxTxPercent","type":"uint256"}],"name":"setMaxWalletAndTxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyTax","type":"uint256"},{"internalType":"uint256","name":"_sellTax","type":"uint256"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"from","type":"address"},{"internalType":"address","name":"to","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"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b506040518060400160405280600a815260200169546f6b656e466f72676560b01b81525060405180604001604052806005815260200164464f52474560d81b8152506000620000656200041160201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255808252600160208190526040808420805460ff191690921790915551929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506005620000d68382620008ae565b506006620000e58282620008ae565b50506001600755506a084595161401484a000000620001098160086103e862000415565b600d556008805462010000600160b01b031916336201000002179055601c600f819055600e556200013e816002606462000415565b600a5562000150816002606462000415565b6009819055506000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001b0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001d691906200097a565b6001600160a01b031663c9c65396836001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000223573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024991906200097a565b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201523060248201526044016020604051808303816000875af115801562000296573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002bc91906200097a565b6001600160a01b0381811660a0819052336000818152600b602090815260408083208054600160ff1991821681179092553080865283862080548316841790557f44433eeeda1d04bdae79f62169cdb2ab0a6af287fa15706d3fafdbac5fac341580548316841790557fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7680548316841790559685528285208054821683179055968a16845281842080548816821790556080859052848452600c90925280832080548716831790559382529290208054909316909117909155909150620003bb90737a250d5630b4cf539739df2c5dacb4c659f2488d600019620004e4565b620003ca3382600019620004e4565b620003ed30737a250d5630b4cf539739df2c5dacb4c659f2488d600019620004e4565b620003fc3082600019620004e4565b62000408338462000610565b505050620009e3565b3390565b60008080600019858709858702925082811083820303915050806000036200045457838281620004495762000449620009a5565b0492505050620004dd565b808411620004755760405163227bc15360e01b815260040160405180910390fd5b600084868809851960019081018716968790049682860381900495909211909303600082900391909104909201919091029190911760038402600290811880860282030280860282030280860282030280860282030280860282030280860290910302029150505b9392505050565b6001600160a01b0383166200054c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620005af5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000543565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216620006685760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000543565b6200067660008383620006e3565b80600460008282546200068a9190620009bb565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60085460ff166200074f576001600160a01b0383166000908152600b602052604090205460ff1615806200073057506001600160a01b0382166000908152600b602052604090205460ff16155b156200074f5760405163e2c865df60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600b602052604090205460ff16620007c057600a548162000794846001600160a01b031660009081526002602052604090205490565b620007a09190620009bb565b1115620007c0576040516324691f6b60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff166200080557600954811115620008055760405163973ec46f60e01b815260040160405180910390fd5b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200083557607f821691505b6020821081036200085657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200080557600081815260208120601f850160051c81016020861015620008855750805b601f850160051c820191505b81811015620008a65782815560010162000891565b505050505050565b81516001600160401b03811115620008ca57620008ca6200080a565b620008e281620008db845462000820565b846200085c565b602080601f8311600181146200091a5760008415620009015750858301515b600019600386901b1c1916600185901b178555620008a6565b600085815260208120601f198616915b828110156200094b578886015182559484019460019091019084016200092a565b50858210156200096a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200098d57600080fd5b81516001600160a01b0381168114620004dd57600080fd5b634e487b7160e01b600052601260045260246000fd5b80820180821115620009dd57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a051611b5262000a256000396000818161031c015281816111aa015281816115c90152611617015260008181610b360152610c750152611b526000f3fe6080604052600436106101e55760003560e01c80638c0b5e2211610101578063c647b20e1161009a578063e7cb12201161006c578063e7cb1220146105a1578063e96fada2146105d1578063f2fde38b146105f7578063fe9fbb8014610617578063ffb54a991461065057005b8063c647b20e14610536578063c9567bf914610556578063cc1776d31461056b578063dd62ed3e1461058157005b8063a9059cbb116100d3578063a9059cbb146104c0578063b2bdfa7b146104e0578063bbde77c114610500578063bedafd011461051657005b80638c0b5e22146104575780638da5cb5b1461046d57806395d89b411461048b578063a457c2d7146104a057005b806349bd5a5e1161017e57806370a082311161015057806370a08231146103ac578063715018a6146103e257806377b54bad146103f7578063796431d014610417578063844866041461043757005b806349bd5a5e1461030a5780634ab7cb58146103565780634f7041a5146103765780635d098b381461038c57005b806323b872dd116101b757806323b872dd1461027e578063313ce5671461029e57806339509351146102ba5780634852aacb146102da57005b80630445b667146101ee57806306fdde0314610217578063095ea7b31461023957806318160ddd1461026957005b366101ec57005b005b3480156101fa57600080fd5b50610204600d5481565b6040519081526020015b60405180910390f35b34801561022357600080fd5b5061022c61066a565b60405161020e91906117a8565b34801561024557600080fd5b5061025961025436600461180e565b6106fc565b604051901515815260200161020e565b34801561027557600080fd5b50600454610204565b34801561028a57600080fd5b5061025961029936600461183a565b610716565b3480156102aa57600080fd5b506040516012815260200161020e565b3480156102c657600080fd5b506102596102d536600461180e565b61073c565b3480156102e657600080fd5b506102596102f536600461187b565b600c6020526000908152604090205460ff1681565b34801561031657600080fd5b5061033e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161020e565b34801561036257600080fd5b506101ec610371366004611898565b61075e565b34801561038257600080fd5b50610204600f5481565b34801561039857600080fd5b506101ec6103a736600461187b565b610817565b3480156103b857600080fd5b506102046103c736600461187b565b6001600160a01b031660009081526002602052604090205490565b3480156103ee57600080fd5b506101ec61086b565b34801561040357600080fd5b5061025961041236600461180e565b6108df565b34801561042357600080fd5b506101ec6104323660046118ba565b610a40565b34801561044357600080fd5b506101ec6104523660046118e1565b610b2b565b34801561046357600080fd5b5061020460095481565b34801561047957600080fd5b506000546001600160a01b031661033e565b34801561049757600080fd5b5061022c610bc7565b3480156104ac57600080fd5b506102596104bb36600461180e565b610bd6565b3480156104cc57600080fd5b506102596104db36600461180e565b610c5c565b3480156104ec57600080fd5b5060005461033e906001600160a01b031681565b34801561050c57600080fd5b50610204600a5481565b34801561052257600080fd5b506101ec6105313660046118e1565b610c6a565b34801561054257600080fd5b506101ec610551366004611898565b610d06565b34801561056257600080fd5b506101ec610d38565b34801561057757600080fd5b50610204600e5481565b34801561058d57600080fd5b5061020461059c36600461191a565b610d71565b3480156105ad57600080fd5b506102596105bc36600461187b565b600b6020526000908152604090205460ff1681565b3480156105dd57600080fd5b5060085461033e906201000090046001600160a01b031681565b34801561060357600080fd5b506101ec61061236600461187b565b610d9c565b34801561062357600080fd5b5061025961063236600461187b565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561065c57600080fd5b506008546102599060ff1681565b60606005805461067990611948565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590611948565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b5050505050905090565b60003361070a818585610e86565b60019150505b92915050565b600033610724858285610faa565b61072f858585611024565b60019150505b9392505050565b60003361070a81858561074f8383610d71565b6107599190611998565b610e86565b6000546001600160a01b031633146107915760405162461bcd60e51b8152600401610788906119ab565b60405180910390fd5b81158061079e5750606482115b156107bc57604051636ac4115560e11b815260040160405180910390fd5b8015806107c95750606481115b156107e757604051636ac4115560e11b815260040160405180910390fd5b60006107f260045490565b9050610800818460646110da565b600a5561080f818360646110da565b600955505050565b6000546001600160a01b031633146108415760405162461bcd60e51b8152600401610788906119ab565b600880546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000546001600160a01b031633146108955760405162461bcd60e51b8152600401610788906119ab565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000306001600160a01b0384160361090a576040516334131c8560e01b815260040160405180910390fd5b81600003610a01576040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a91906119e0565b60085460405163a9059cbb60e01b81526001600160a01b0362010000909204821660048201526024810183905291935084169063a9059cbb906044015b6020604051808303816000875af11580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906119f9565b9050610710565b60085460405163a9059cbb60e01b8152620100009091046001600160a01b0390811660048301526024820184905284169063a9059cbb906044016109b7565b6000546001600160a01b03163314610a6a5760405162461bcd60e51b8152600401610788906119ab565b6000610a7560045490565b90506000610a8b83670de0b6b3a7640000611a16565b9050610a996103e883611a43565b8110158015610ab25750610aae601483611a43565b8111155b610b245760405162461bcd60e51b815260206004820152603860248201527f54686520616d6f756e742073686f756c64206265206265747765656e20302e3160448201527f2520616e64203525206f6620746f74616c20737570706c7900000000000000006064820152608401610788565b600d555050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801590610b7e575033610b726000546001600160a01b031690565b6001600160a01b031614155b15610b9c576040516308bf227d60e21b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b60606006805461067990611948565b60003381610be48286610d71565b905083811015610c445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610788565b610c518286868403610e86565b506001949350505050565b60003361070a818585611024565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801590610cbd575033610cb16000546001600160a01b031690565b6001600160a01b031614155b15610cdb576040516308bf227d60e21b815260040160405180910390fd5b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314610d305760405162461bcd60e51b8152600401610788906119ab565b600e55600f55565b6000546001600160a01b03163314610d625760405162461bcd60e51b8152600401610788906119ab565b6008805460ff19166001179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b03163314610dc65760405162461bcd60e51b8152600401610788906119ab565b6001600160a01b038116610e2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610788565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610ee85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610788565b6001600160a01b038216610f495760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610788565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610fb68484610d71565b9050600019811461101e57818110156110115760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610788565b61101e8484848403610e86565b50505050565b61102c61119d565b1561103957611039611202565b600854610100900460ff16156110595761105483838361140f565b505050565b6001600160a01b0383166000908152600c602052604081205460ff168061109857506001600160a01b0383166000908152600c602052604090205460ff165b6110ac576110a78484846115c5565b6110af565b60005b905080156110cf576110c284308361140f565b6110cc8183611a65565b91505b61101e84848461140f565b60008080600019858709858702925082811083820303915050806000036111145783828161110a5761110a611a2d565b0492505050610735565b8084116111345760405163227bc15360e01b815260040160405180910390fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015906111e05750600854610100900460ff16155b80156111fd5750600d543060009081526002602052604090205410155b905090565b6008805461ff001916610100179055611219611666565b604080516002808252606082018352737a250d5630b4cf539739df2c5dacb4c659f2488d926000929190602083019080368337019050509050308160008151811061126657611266611a78565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e89190611a8e565b816001815181106112fb576112fb611a78565b6001600160a01b039283166020918202929092010152600d5460405163791ac94760e01b81529184169163791ac9479161134091600090869030904290600401611aab565b600060405180830381600087803b15801561135a57600080fd5b505af115801561136e573d6000803e3d6000fd5b505060085460405147935060009250620100009091046001600160a01b031690839060006040518083038185875af1925050503d80600081146113cd576040519150601f19603f3d011682016040523d82523d6000602084013e6113d2565b606091505b50509050806113f4576040516312171d8360e31b815260040160405180910390fd5b505050506114026001600755565b6008805461ff0019169055565b6001600160a01b0383166114735760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610788565b6001600160a01b0382166114d55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610788565b6114e0838383611690565b6001600160a01b038316600090815260026020526040902054818110156115585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610788565b6001600160a01b0380851660008181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115b89086815260200190565b60405180910390a361101e565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316036116155761160e82600e5460646110da565b9050610735565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03160361165c5761160e82600f5460646110da565b5060009392505050565b60026007540361168957604051633ee5aeb560e01b815260040160405180910390fd5b6002600755565b60085460ff166116f9576001600160a01b0383166000908152600b602052604090205460ff1615806116db57506001600160a01b0382166000908152600b602052604090205460ff16155b156116f95760405163e2c865df60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600b602052604090205460ff1661176557600a548161173c846001600160a01b031660009081526002602052604090205490565b6117469190611998565b1115611765576040516324691f6b60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff16611054576009548111156110545760405163973ec46f60e01b815260040160405180910390fd5b600060208083528351808285015260005b818110156117d5578581018301518582016040015282016117b9565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461180b57600080fd5b50565b6000806040838503121561182157600080fd5b823561182c816117f6565b946020939093013593505050565b60008060006060848603121561184f57600080fd5b833561185a816117f6565b9250602084013561186a816117f6565b929592945050506040919091013590565b60006020828403121561188d57600080fd5b8135610735816117f6565b600080604083850312156118ab57600080fd5b50508035926020909101359150565b6000602082840312156118cc57600080fd5b5035919050565b801515811461180b57600080fd5b600080604083850312156118f457600080fd5b82356118ff816117f6565b9150602083013561190f816118d3565b809150509250929050565b6000806040838503121561192d57600080fd5b8235611938816117f6565b9150602083013561190f816117f6565b600181811c9082168061195c57607f821691505b60208210810361197c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561071057610710611982565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156119f257600080fd5b5051919050565b600060208284031215611a0b57600080fd5b8151610735816118d3565b808202811582820484141761071057610710611982565b634e487b7160e01b600052601260045260246000fd5b600082611a6057634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561071057610710611982565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611aa057600080fd5b8151610735816117f6565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611afb5784516001600160a01b031683529383019391830191600101611ad6565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220ff8afb19fa636884f5237d50df15e1d1b3bcc9989ee2fcb40a4bc7024da47ff564736f6c63430008130033

Deployed Bytecode

0x6080604052600436106101e55760003560e01c80638c0b5e2211610101578063c647b20e1161009a578063e7cb12201161006c578063e7cb1220146105a1578063e96fada2146105d1578063f2fde38b146105f7578063fe9fbb8014610617578063ffb54a991461065057005b8063c647b20e14610536578063c9567bf914610556578063cc1776d31461056b578063dd62ed3e1461058157005b8063a9059cbb116100d3578063a9059cbb146104c0578063b2bdfa7b146104e0578063bbde77c114610500578063bedafd011461051657005b80638c0b5e22146104575780638da5cb5b1461046d57806395d89b411461048b578063a457c2d7146104a057005b806349bd5a5e1161017e57806370a082311161015057806370a08231146103ac578063715018a6146103e257806377b54bad146103f7578063796431d014610417578063844866041461043757005b806349bd5a5e1461030a5780634ab7cb58146103565780634f7041a5146103765780635d098b381461038c57005b806323b872dd116101b757806323b872dd1461027e578063313ce5671461029e57806339509351146102ba5780634852aacb146102da57005b80630445b667146101ee57806306fdde0314610217578063095ea7b31461023957806318160ddd1461026957005b366101ec57005b005b3480156101fa57600080fd5b50610204600d5481565b6040519081526020015b60405180910390f35b34801561022357600080fd5b5061022c61066a565b60405161020e91906117a8565b34801561024557600080fd5b5061025961025436600461180e565b6106fc565b604051901515815260200161020e565b34801561027557600080fd5b50600454610204565b34801561028a57600080fd5b5061025961029936600461183a565b610716565b3480156102aa57600080fd5b506040516012815260200161020e565b3480156102c657600080fd5b506102596102d536600461180e565b61073c565b3480156102e657600080fd5b506102596102f536600461187b565b600c6020526000908152604090205460ff1681565b34801561031657600080fd5b5061033e7f000000000000000000000000aaddb1279198c7c64f694bda3a737a6d43bf30c381565b6040516001600160a01b03909116815260200161020e565b34801561036257600080fd5b506101ec610371366004611898565b61075e565b34801561038257600080fd5b50610204600f5481565b34801561039857600080fd5b506101ec6103a736600461187b565b610817565b3480156103b857600080fd5b506102046103c736600461187b565b6001600160a01b031660009081526002602052604090205490565b3480156103ee57600080fd5b506101ec61086b565b34801561040357600080fd5b5061025961041236600461180e565b6108df565b34801561042357600080fd5b506101ec6104323660046118ba565b610a40565b34801561044357600080fd5b506101ec6104523660046118e1565b610b2b565b34801561046357600080fd5b5061020460095481565b34801561047957600080fd5b506000546001600160a01b031661033e565b34801561049757600080fd5b5061022c610bc7565b3480156104ac57600080fd5b506102596104bb36600461180e565b610bd6565b3480156104cc57600080fd5b506102596104db36600461180e565b610c5c565b3480156104ec57600080fd5b5060005461033e906001600160a01b031681565b34801561050c57600080fd5b50610204600a5481565b34801561052257600080fd5b506101ec6105313660046118e1565b610c6a565b34801561054257600080fd5b506101ec610551366004611898565b610d06565b34801561056257600080fd5b506101ec610d38565b34801561057757600080fd5b50610204600e5481565b34801561058d57600080fd5b5061020461059c36600461191a565b610d71565b3480156105ad57600080fd5b506102596105bc36600461187b565b600b6020526000908152604090205460ff1681565b3480156105dd57600080fd5b5060085461033e906201000090046001600160a01b031681565b34801561060357600080fd5b506101ec61061236600461187b565b610d9c565b34801561062357600080fd5b5061025961063236600461187b565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561065c57600080fd5b506008546102599060ff1681565b60606005805461067990611948565b80601f01602080910402602001604051908101604052809291908181526020018280546106a590611948565b80156106f25780601f106106c7576101008083540402835291602001916106f2565b820191906000526020600020905b8154815290600101906020018083116106d557829003601f168201915b5050505050905090565b60003361070a818585610e86565b60019150505b92915050565b600033610724858285610faa565b61072f858585611024565b60019150505b9392505050565b60003361070a81858561074f8383610d71565b6107599190611998565b610e86565b6000546001600160a01b031633146107915760405162461bcd60e51b8152600401610788906119ab565b60405180910390fd5b81158061079e5750606482115b156107bc57604051636ac4115560e11b815260040160405180910390fd5b8015806107c95750606481115b156107e757604051636ac4115560e11b815260040160405180910390fd5b60006107f260045490565b9050610800818460646110da565b600a5561080f818360646110da565b600955505050565b6000546001600160a01b031633146108415760405162461bcd60e51b8152600401610788906119ab565b600880546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000546001600160a01b031633146108955760405162461bcd60e51b8152600401610788906119ab565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000306001600160a01b0384160361090a576040516334131c8560e01b815260040160405180910390fd5b81600003610a01576040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a91906119e0565b60085460405163a9059cbb60e01b81526001600160a01b0362010000909204821660048201526024810183905291935084169063a9059cbb906044015b6020604051808303816000875af11580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa91906119f9565b9050610710565b60085460405163a9059cbb60e01b8152620100009091046001600160a01b0390811660048301526024820184905284169063a9059cbb906044016109b7565b6000546001600160a01b03163314610a6a5760405162461bcd60e51b8152600401610788906119ab565b6000610a7560045490565b90506000610a8b83670de0b6b3a7640000611a16565b9050610a996103e883611a43565b8110158015610ab25750610aae601483611a43565b8111155b610b245760405162461bcd60e51b815260206004820152603860248201527f54686520616d6f756e742073686f756c64206265206265747765656e20302e3160448201527f2520616e64203525206f6620746f74616c20737570706c7900000000000000006064820152608401610788565b600d555050565b336001600160a01b037f000000000000000000000000b124e922ac8af4a6ef1607c6f4a859e5bfe9d4181614801590610b7e575033610b726000546001600160a01b031690565b6001600160a01b031614155b15610b9c576040516308bf227d60e21b815260040160405180910390fd5b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b60606006805461067990611948565b60003381610be48286610d71565b905083811015610c445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610788565b610c518286868403610e86565b506001949350505050565b60003361070a818585611024565b336001600160a01b037f000000000000000000000000b124e922ac8af4a6ef1607c6f4a859e5bfe9d4181614801590610cbd575033610cb16000546001600160a01b031690565b6001600160a01b031614155b15610cdb576040516308bf227d60e21b815260040160405180910390fd5b6001600160a01b03919091166000908152600c60205260409020805460ff1916911515919091179055565b6000546001600160a01b03163314610d305760405162461bcd60e51b8152600401610788906119ab565b600e55600f55565b6000546001600160a01b03163314610d625760405162461bcd60e51b8152600401610788906119ab565b6008805460ff19166001179055565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6000546001600160a01b03163314610dc65760405162461bcd60e51b8152600401610788906119ab565b6001600160a01b038116610e2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610788565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610ee85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610788565b6001600160a01b038216610f495760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610788565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610fb68484610d71565b9050600019811461101e57818110156110115760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610788565b61101e8484848403610e86565b50505050565b61102c61119d565b1561103957611039611202565b600854610100900460ff16156110595761105483838361140f565b505050565b6001600160a01b0383166000908152600c602052604081205460ff168061109857506001600160a01b0383166000908152600c602052604090205460ff165b6110ac576110a78484846115c5565b6110af565b60005b905080156110cf576110c284308361140f565b6110cc8183611a65565b91505b61101e84848461140f565b60008080600019858709858702925082811083820303915050806000036111145783828161110a5761110a611a2d565b0492505050610735565b8084116111345760405163227bc15360e01b815260040160405180910390fd5b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b6000336001600160a01b037f000000000000000000000000aaddb1279198c7c64f694bda3a737a6d43bf30c316148015906111e05750600854610100900460ff16155b80156111fd5750600d543060009081526002602052604090205410155b905090565b6008805461ff001916610100179055611219611666565b604080516002808252606082018352737a250d5630b4cf539739df2c5dacb4c659f2488d926000929190602083019080368337019050509050308160008151811061126657611266611a78565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e89190611a8e565b816001815181106112fb576112fb611a78565b6001600160a01b039283166020918202929092010152600d5460405163791ac94760e01b81529184169163791ac9479161134091600090869030904290600401611aab565b600060405180830381600087803b15801561135a57600080fd5b505af115801561136e573d6000803e3d6000fd5b505060085460405147935060009250620100009091046001600160a01b031690839060006040518083038185875af1925050503d80600081146113cd576040519150601f19603f3d011682016040523d82523d6000602084013e6113d2565b606091505b50509050806113f4576040516312171d8360e31b815260040160405180910390fd5b505050506114026001600755565b6008805461ff0019169055565b6001600160a01b0383166114735760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610788565b6001600160a01b0382166114d55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610788565b6114e0838383611690565b6001600160a01b038316600090815260026020526040902054818110156115585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610788565b6001600160a01b0380851660008181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115b89086815260200190565b60405180910390a361101e565b60007f000000000000000000000000aaddb1279198c7c64f694bda3a737a6d43bf30c36001600160a01b0316836001600160a01b0316036116155761160e82600e5460646110da565b9050610735565b7f000000000000000000000000aaddb1279198c7c64f694bda3a737a6d43bf30c36001600160a01b0316846001600160a01b03160361165c5761160e82600f5460646110da565b5060009392505050565b60026007540361168957604051633ee5aeb560e01b815260040160405180910390fd5b6002600755565b60085460ff166116f9576001600160a01b0383166000908152600b602052604090205460ff1615806116db57506001600160a01b0382166000908152600b602052604090205460ff16155b156116f95760405163e2c865df60e01b815260040160405180910390fd5b6001600160a01b0382166000908152600b602052604090205460ff1661176557600a548161173c846001600160a01b031660009081526002602052604090205490565b6117469190611998565b1115611765576040516324691f6b60e01b815260040160405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff16611054576009548111156110545760405163973ec46f60e01b815260040160405180910390fd5b600060208083528351808285015260005b818110156117d5578581018301518582016040015282016117b9565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461180b57600080fd5b50565b6000806040838503121561182157600080fd5b823561182c816117f6565b946020939093013593505050565b60008060006060848603121561184f57600080fd5b833561185a816117f6565b9250602084013561186a816117f6565b929592945050506040919091013590565b60006020828403121561188d57600080fd5b8135610735816117f6565b600080604083850312156118ab57600080fd5b50508035926020909101359150565b6000602082840312156118cc57600080fd5b5035919050565b801515811461180b57600080fd5b600080604083850312156118f457600080fd5b82356118ff816117f6565b9150602083013561190f816118d3565b809150509250929050565b6000806040838503121561192d57600080fd5b8235611938816117f6565b9150602083013561190f816117f6565b600181811c9082168061195c57607f821691505b60208210810361197c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561071057610710611982565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000602082840312156119f257600080fd5b5051919050565b600060208284031215611a0b57600080fd5b8151610735816118d3565b808202811582820484141761071057610710611982565b634e487b7160e01b600052601260045260246000fd5b600082611a6057634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561071057610710611982565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611aa057600080fd5b8151610735816117f6565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611afb5784516001600160a01b031683529383019391830191600101611ad6565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220ff8afb19fa636884f5237d50df15e1d1b3bcc9989ee2fcb40a4bc7024da47ff564736f6c63430008130033

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.