ERC-20
Overview
Max Total Supply
79,288.661067541 ESC
Holders
90
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
0.000000001 ESCValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
EscapeRoom
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* // Escape Room > $ESC < t.me/escaperoomgame >>> You awaken to blackness and the sound of an old, antique clock ticking. Out of the darkness, a frail voice croaks through a distorted tannoy system. ''Wake up. It’s time.'' >>> */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./Erc20.sol"; import "./PoolCreatableErc20.sol"; import "../lib/Ownable.sol"; contract EscapeRoom is PoolCreatableErc20, Ownable, ReentrancyGuard { uint256 constant _startTotalSupply = 86400 * (10 ** _decimals); uint256 constant _startMaxBuyCount = (_startTotalSupply * 5) / 10000; uint256 constant _addMaxBuyPercentPerSec = 5; // 100%=_addMaxBuyPrecesion add 0.005%/second uint256 constant _addMaxBuyPrecesion = 100000; uint256 public taxBuy = 250; uint256 public taxSell = 250; uint256 public constant taxPrecesion = 1000; uint256 public sawShare = 500; uint256 public burnShare = 0; uint256 constant sharePrecesion = 1000; address public sawAddress; uint256 constant _transferZeroTaxSeconds = 1000; // zero tax transfer time address _deployer; uint256 constant sellTimer = 86400; uint256 constant transferTimer = 86400; address public gameAddress; constructor() PoolCreatableErc20("Escape Room", "ESC", msg.sender) { _deployer = msg.sender; sawAddress = msg.sender; } modifier onlySaw() { require(msg.sender == sawAddress, "only for saw"); _; } receive() external payable { uint256 toSaw = (msg.value * sawShare) / sharePrecesion; uint256 toGame = msg.value - toSaw; if (toSaw > 0) sendEth(sawAddress, toSaw); if (toGame > 0) { if (gameAddress != address(0)) sendEth(gameAddress, toGame); else sendEth(sawAddress, toGame); } } function setSawShare(uint256 newSawShare) external onlySaw { require(newSawShare <= sharePrecesion, "bad saw share"); sawShare = newSawShare; } function setSaw(address newSawAddress) external onlySaw { sawAddress = newSawAddress; } function setBurnShare(uint256 newBurnShare) external onlyOwner { require(newBurnShare <= sharePrecesion, "bad burn share"); burnShare = newBurnShare; } function setTax(uint256 taxBuy_, uint256 taxSell_) external onlyOwner { require(taxBuy_ <= taxBuy); require(taxSell_ <= taxSell); taxBuy = taxBuy_; taxSell = taxSell_; } function setGame(address newGameAddress) external onlyOwner { gameAddress = newGameAddress; } function sendEth(address to, uint256 value) private nonReentrant { (bool sent, ) = to.call{value: value}(""); require(sent, "Failed to send Ether"); } modifier maxBuyLimit(uint256 amount) { require(amount <= maxBuy(), "max buy limit"); _; } function createPairCount() internal pure override returns (uint256) { return _startTotalSupply; } function maxBuy() public view returns (uint256) { if (!isStarted()) return _startTotalSupply; uint256 count = _startMaxBuyCount + (_startTotalSupply * (block.timestamp - _startTime) * _addMaxBuyPercentPerSec) / _addMaxBuyPrecesion; if (count > _startTotalSupply) count = _startTotalSupply; return count; } function transferTax() public view returns (uint256) { if (!isStarted()) return 0; uint256 deltaTime = block.timestamp - _startTime; if (deltaTime >= _transferZeroTaxSeconds) return 0; return (taxPrecesion * (_transferZeroTaxSeconds - deltaTime)) / _transferZeroTaxSeconds; } function _transfer( address from, address to, uint256 amount ) internal override { // allow burning if (to == address(0)) { _burn(from, amount); return; } // system transfers if ( from == address(this) || from == _deployer || to == _deployer ) { super._transfer(from, to, amount); return; } // transfers with fee if (_feeLocked) { super._transfer(from, to, amount); return; } else { if (from == _pair) { buy(to, amount); return; } else if (to == _pair) { sell(from, amount); return; } else transferWithFee(from, to, amount); } } function buy( address to, uint256 amount ) private maxBuyLimit(amount) lockFee { uint256 tax = (amount * taxBuy) / taxPrecesion; uint256 burn = (amount * burnShare) / sharePrecesion; if (burn > 0) _burn(_pair, burn); if (tax > 0) super._transfer(_pair, address(this), tax); super._transfer(_pair, to, amount - tax - burn); } function sell(address from, uint256 amount) private lockFee { _sellTokens(); uint256 tax = (amount * taxSell) / taxPrecesion; uint256 burn = (amount * burnShare) / sharePrecesion; if (burn > 0) _burn(from, burn); if (tax > 0) super._transfer(from, address(this), tax); super._transfer(from, _pair, amount - tax - burn); } function _sellTokens() private { uint256 sellCount = balanceOf(address(this)); uint256 maxSwapCount = sellCount * 2; if (sellCount > maxSwapCount) sellCount = maxSwapCount; _sellTokens(sellCount, address(this)); } function transferWithFee( address from, address to, uint256 amount ) private lockFee { uint256 tax = (amount * transferTax()) / taxPrecesion; if (tax > 0) _burn(from, tax); super._transfer(from, to, amount - tax); } function burnCount() public view returns (uint256) { return _startTotalSupply - totalSupply(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @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; } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; contract Ownable { address _owner; event RenounceOwnership(); constructor() { _owner = msg.sender; } modifier onlyOwner() { require(_owner == msg.sender, "only owner"); _; } function owner() external view virtual returns (address) { return _owner; } function ownerRenounce() public onlyOwner { _owner = address(0); emit RenounceOwnership(); } function transferOwnership(address newOwner) external onlyOwner { _owner = newOwner; } }
pragma solidity ^0.8.23; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) internal _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 internal _totalSupply; uint8 internal constant _decimals = 9; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * 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 default value returned by this function, unless * it's 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 pure returns (uint8) { return _decimals; } /** * @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"); 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); } /** @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"); _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); } /** * @dev Erases `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"); 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); } /** * @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); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import "./Erc20.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "../lib/Ownable.sol"; abstract contract PoolCreatableErc20 is ERC20 { IUniswapV2Router02 constant uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); address internal _pair; uint256 internal _startTime; bool internal _feeLocked; address immutable _pairCreator; constructor( string memory name_, string memory symbol_, address pairCreator ) ERC20(name_, symbol_) { _pairCreator = pairCreator; } modifier lockFee() { _feeLocked = true; _; _feeLocked = false; } function createPair() external payable { require(msg.sender == _pairCreator); _pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair( address(this), uniswapV2Router.WETH() ); _mint(address(this), createPairCount()); _approve(address(this), address(uniswapV2Router), type(uint256).max); uniswapV2Router.addLiquidityETH{value: msg.value}( address(this), createPairCount(), 0, 0, msg.sender, block.timestamp ); _startTime = block.timestamp; } function isStarted() internal view returns (bool) { return _pair != address(0); } function createPairCount() internal pure virtual returns (uint256); function _sellTokens(uint256 tokenAmount, address to) internal lockFee { if (tokenAmount == 0) return; address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); // make the swap uniswapV2Router.swapExactTokensForETH( tokenAmount, 0, // accept any amount of ETH path, to, block.timestamp ); } function pair() external view returns (address) { return _pair; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","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":[],"name":"RenounceOwnership","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":[{"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":"burnCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createPair","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"gameAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxBuy","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerRenounce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sawShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newBurnShare","type":"uint256"}],"name":"setBurnShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newGameAddress","type":"address"}],"name":"setGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSawAddress","type":"address"}],"name":"setSaw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSawShare","type":"uint256"}],"name":"setSawShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxBuy_","type":"uint256"},{"internalType":"uint256","name":"taxSell_","type":"uint256"}],"name":"setTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxPrecesion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxSell","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":"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":"transferTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405260fa60095560fa600a556101f4600b556000600c553480156200002657600080fd5b506040518060400160405280600b81526020016a45736361706520526f6f6d60a81b8152506040518060400160405280600381526020016245534360e81b81525033828281600390816200007b91906200018a565b5060046200008a82826200018a565b5050506001600160a01b0316608052505060078054610100600160a81b031916336101008102919091179091556001600855600e80546001600160a01b03199081168317909155600d8054909116909117905562000256565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200010e57607f821691505b6020821081036200012f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000185576000816000526020600020601f850160051c81016020861015620001605750805b601f850160051c820191505b8181101562000181578281556001016200016c565b5050505b505050565b81516001600160401b03811115620001a657620001a6620000e3565b620001be81620001b78454620000f9565b8462000135565b602080601f831160018114620001f65760008415620001dd5750858301515b600019600386901b1c1916600185901b17855562000181565b600085815260208120601f198616915b82811015620002275788860151825594840194600190910190840162000206565b5085821015620002465787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611e49620002726000396000610b020152611e496000f3fe6080604052600436106101dc5760003560e01c80638124f7ac11610102578063a8aa1b3111610095578063dd62ed3e11610064578063dd62ed3e146105ac578063ddb8f5f8146105cc578063e3d02923146105e2578063f2fde38b146105f857600080fd5b8063a8aa1b311461052e578063a8ffb48f1461054c578063a9059cbb1461056c578063b627e7321461058c57600080fd5b806396cf4feb116100d157806396cf4feb146104c65780639e78fb4f146104e6578063a168d873146104ee578063a457c2d71461050e57600080fd5b80638124f7ac14610459578063819912a21461046e5780638da5cb5b1461048e57806395d89b41146104b157600080fd5b8063395093511161017a57806362290a931161014957806362290a93146103d8578063667f6526146103ee57806370a082311461040e57806370db69d61461044457600080fd5b8063395093511461035557806339fba65014610375578063524773ce1461038b578063525ee4f8146103a057600080fd5b806318160ddd116101b657806318160ddd146102ef57806323b872dd14610304578063313ce56714610324578063333a00721461034057600080fd5b806305bf0a541461027457806306fdde031461029d578063095ea7b3146102bf57600080fd5b3661026f5760006103e8600b54346101f4919061194f565b6101fe9190611966565b9050600061020c8234611988565b9050811561022a57600d5461022a906001600160a01b031683610618565b801561025757600f546001600160a01b03161561025957600f54610257906001600160a01b031682610618565b005b600d54610257906001600160a01b031682610618565b600080fd5b34801561028057600080fd5b5061028a600c5481565b6040519081526020015b60405180910390f35b3480156102a957600080fd5b506102b26106ce565b604051610294919061199b565b3480156102cb57600080fd5b506102df6102da366004611a02565b610760565b6040519015158152602001610294565b3480156102fb57600080fd5b5060025461028a565b34801561031057600080fd5b506102df61031f366004611a2e565b61077a565b34801561033057600080fd5b5060405160098152602001610294565b34801561034c57600080fd5b5061025761079e565b34801561036157600080fd5b506102df610370366004611a02565b610809565b34801561038157600080fd5b5061028a600a5481565b34801561039757600080fd5b5061028a61082b565b3480156103ac57600080fd5b50600d546103c0906001600160a01b031681565b6040516001600160a01b039091168152602001610294565b3480156103e457600080fd5b5061028a60095481565b3480156103fa57600080fd5b50610257610409366004611a6f565b61085e565b34801561041a57600080fd5b5061028a610429366004611a91565b6001600160a01b031660009081526020819052604090205490565b34801561045057600080fd5b5061028a6108b6565b34801561046557600080fd5b5061028a6109b4565b34801561047a57600080fd5b50610257610489366004611a91565b610a20565b34801561049a57600080fd5b5060075461010090046001600160a01b03166103c0565b3480156104bd57600080fd5b506102b2610a71565b3480156104d257600080fd5b506102576104e1366004611ab5565b610a80565b610257610af7565b3480156104fa57600080fd5b50600f546103c0906001600160a01b031681565b34801561051a57600080fd5b506102df610529366004611a02565b610da0565b34801561053a57600080fd5b506005546001600160a01b03166103c0565b34801561055857600080fd5b50610257610567366004611ab5565b610e1b565b34801561057857600080fd5b506102df610587366004611a02565b610eab565b34801561059857600080fd5b506102576105a7366004611a91565b610eb9565b3480156105b857600080fd5b5061028a6105c7366004611ace565b610f24565b3480156105d857600080fd5b5061028a600b5481565b3480156105ee57600080fd5b5061028a6103e881565b34801561060457600080fd5b50610257610613366004611a91565b610f4f565b610620610fa6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461066d576040519150601f19603f3d011682016040523d82523d6000602084013e610672565b606091505b50509050806106bf5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b506106ca6001600855565b5050565b6060600380546106dd90611b07565b80601f016020809104026020016040519081016040528092919081815260200182805461070990611b07565b80156107565780601f1061072b57610100808354040283529160200191610756565b820191906000526020600020905b81548152906001019060200180831161073957829003601f168201915b5050505050905090565b60003361076e818585610fd0565b60019150505b92915050565b6000336107888582856110f5565b61079385858561116f565b506001949350505050565b60075461010090046001600160a01b031633146107cd5760405162461bcd60e51b81526004016106b690611b41565b60078054610100600160a81b03191690556040517f6e4ee811a17215345b89e3506064ff2d62f4feedff3566e9d09219cda7e8cadb90600090a1565b60003361076e81858561081c8383610f24565b6108269190611b65565b610fd0565b600061083660025490565b6108426009600a611c5c565b61084f906201518061194f565b6108599190611988565b905090565b60075461010090046001600160a01b0316331461088d5760405162461bcd60e51b81526004016106b690611b41565b60095482111561089c57600080fd5b600a548111156108ab57600080fd5b600991909155600a55565b60006108cc6005546001600160a01b0316151590565b6108e9576108dc6009600a611c5c565b610859906201518061194f565b6000620186a06005600654426108ff9190611988565b61090b6009600a611c5c565b610918906201518061194f565b610922919061194f565b61092c919061194f565b6109369190611966565b6127106109456009600a611c5c565b610952906201518061194f565b61095d90600561194f565b6109679190611966565b6109719190611b65565b905061097f6009600a611c5c565b61098c906201518061194f565b8111156109af5761099f6009600a611c5c565b6109ac906201518061194f565b90505b919050565b60006109ca6005546001600160a01b0316151590565b6109d45750600090565b6000600654426109e49190611988565b90506103e881106109f757600091505090565b6103e8610a048282611988565b610a10906103e861194f565b610a1a9190611966565b91505090565b60075461010090046001600160a01b03163314610a4f5760405162461bcd60e51b81526004016106b690611b41565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600480546106dd90611b07565b60075461010090046001600160a01b03163314610aaf5760405162461bcd60e51b81526004016106b690611b41565b6103e8811115610af25760405162461bcd60e51b815260206004820152600e60248201526d626164206275726e20736861726560901b60448201526064016106b6565b600c55565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b2c57600080fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba29190611c6b565b6001600160a01b031663c9c6539630737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c279190611c6b565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c989190611c6b565b600580546001600160a01b0319166001600160a01b0392909216919091179055610cc930610cc4611239565b611247565b610cea30737a250d5630b4cf539739df2c5dacb4c659f2488d600019610fd0565b737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d7193430610d0e611239565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015610d72573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610d979190611c88565b50504260065550565b60003381610dae8286610f24565b905083811015610e0e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106b6565b6107938286868403610fd0565b600d546001600160a01b03163314610e645760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c7920666f722073617760a01b60448201526064016106b6565b6103e8811115610ea65760405162461bcd60e51b815260206004820152600d60248201526c6261642073617720736861726560981b60448201526064016106b6565b600b55565b60003361076e81858561116f565b600d546001600160a01b03163314610f025760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c7920666f722073617760a01b60448201526064016106b6565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075461010090046001600160a01b03163314610f7e5760405162461bcd60e51b81526004016106b690611b41565b600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600260085403610fc957604051633ee5aeb560e01b815260040160405180910390fd5b6002600855565b6001600160a01b0383166110325760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106b6565b6001600160a01b0382166110935760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106b6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006111018484610f24565b90506000198114611169578181101561115c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106b6565b6111698484848403610fd0565b50505050565b6001600160a01b03821661118c576111878382611306565b505050565b6001600160a01b0383163014806111b05750600e546001600160a01b038481169116145b806111c85750600e546001600160a01b038381169116145b156111d857611187838383611430565b60075460ff16156111ee57611187838383611430565b6005546001600160a01b039081169084160361120e576111878282611573565b6005546001600160a01b039081169083160361122e57611187838261167c565b61118783838361171d565b60006108dc6009600a611c5c565b6001600160a01b03821661129d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b6565b80600260008282546112af9190611b65565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166113665760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106b6565b6001600160a01b038216600090815260208190526040902054818110156113da5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106b6565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016110e8565b6001600160a01b0383166114945760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106b6565b6001600160a01b0383166000908152602081905260409020548181101561150c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106b6565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b8061157c6108b6565b8111156115bb5760405162461bcd60e51b815260206004820152600d60248201526c1b585e08189d5e481b1a5b5a5d609a1b60448201526064016106b6565b6007805460ff191660011790556009546000906103e8906115dc908561194f565b6115e69190611966565b905060006103e8600c54856115fb919061194f565b6116059190611966565b9050801561162357600554611623906001600160a01b031682611306565b811561164057600554611640906001600160a01b03163084611430565b60055461166b906001600160a01b0316868361165c8689611988565b6116669190611988565b611430565b50506007805460ff19169055505050565b6007805460ff1916600117905561169161176c565b60006103e8600a54836116a4919061194f565b6116ae9190611966565b905060006103e8600c54846116c3919061194f565b6116cd9190611966565b905080156116df576116df8482611306565b81156116f0576116f0843084611430565b60055461170d9085906001600160a01b03168361165c8688611988565b50506007805460ff191690555050565b6007805460ff1916600117905560006103e86117376109b4565b611741908461194f565b61174b9190611966565b9050801561175d5761175d8482611306565b61170d84846116668486611988565b306000908152602081905260408120549061178882600261194f565b905080821115611796578091505b6106ca82306007805460ff19166001179055811561192b5760408051600280825260608201835260009260208301908036833701905050905030816000815181106117e3576117e3611ccc565b60200260200101906001600160a01b031690816001600160a01b031681525050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611855573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118799190611c6b565b8160018151811061188c5761188c611ccc565b6001600160a01b03909216602092830291909101909101526040516318cbafe560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d906318cbafe5906118e4908690600090869088904290600401611ce2565b6000604051808303816000875af1158015611903573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261170d9190810190611d55565b50506007805460ff19169055565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761077457610774611939565b60008261198357634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561077457610774611939565b60006020808352835180602085015260005b818110156119c9578581018301518582016040015282016119ad565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146119ff57600080fd5b50565b60008060408385031215611a1557600080fd5b8235611a20816119ea565b946020939093013593505050565b600080600060608486031215611a4357600080fd5b8335611a4e816119ea565b92506020840135611a5e816119ea565b929592945050506040919091013590565b60008060408385031215611a8257600080fd5b50508035926020909101359150565b600060208284031215611aa357600080fd5b8135611aae816119ea565b9392505050565b600060208284031215611ac757600080fd5b5035919050565b60008060408385031215611ae157600080fd5b8235611aec816119ea565b91506020830135611afc816119ea565b809150509250929050565b600181811c90821680611b1b57607f821691505b602082108103611b3b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b8082018082111561077457610774611939565b600181815b80851115611bb3578160001904821115611b9957611b99611939565b80851615611ba657918102915b93841c9390800290611b7d565b509250929050565b600082611bca57506001610774565b81611bd757506000610774565b8160018114611bed5760028114611bf757611c13565b6001915050610774565b60ff841115611c0857611c08611939565b50506001821b610774565b5060208310610133831016604e8410600b8410161715611c36575081810a610774565b611c408383611b78565b8060001904821115611c5457611c54611939565b029392505050565b6000611aae60ff841683611bbb565b600060208284031215611c7d57600080fd5b8151611aae816119ea565b600080600060608486031215611c9d57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611d345784516001600160a01b031683529383019391830191600101611d0f565b50506001600160a01b03969096166060850152505050608001529392505050565b60006020808385031215611d6857600080fd5b825167ffffffffffffffff80821115611d8057600080fd5b818501915085601f830112611d9457600080fd5b815181811115611da657611da6611cb6565b8060051b604051601f19603f83011681018181108582111715611dcb57611dcb611cb6565b604052918252848201925083810185019188831115611de957600080fd5b938501935b82851015611e0757845184529385019392850192611dee565b9897505050505050505056fea26469706673582212208d76db1c99c66312244fc1ae38cba8db32e74b60e924dafb3238263273a2957864736f6c63430008170033
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c80638124f7ac11610102578063a8aa1b3111610095578063dd62ed3e11610064578063dd62ed3e146105ac578063ddb8f5f8146105cc578063e3d02923146105e2578063f2fde38b146105f857600080fd5b8063a8aa1b311461052e578063a8ffb48f1461054c578063a9059cbb1461056c578063b627e7321461058c57600080fd5b806396cf4feb116100d157806396cf4feb146104c65780639e78fb4f146104e6578063a168d873146104ee578063a457c2d71461050e57600080fd5b80638124f7ac14610459578063819912a21461046e5780638da5cb5b1461048e57806395d89b41146104b157600080fd5b8063395093511161017a57806362290a931161014957806362290a93146103d8578063667f6526146103ee57806370a082311461040e57806370db69d61461044457600080fd5b8063395093511461035557806339fba65014610375578063524773ce1461038b578063525ee4f8146103a057600080fd5b806318160ddd116101b657806318160ddd146102ef57806323b872dd14610304578063313ce56714610324578063333a00721461034057600080fd5b806305bf0a541461027457806306fdde031461029d578063095ea7b3146102bf57600080fd5b3661026f5760006103e8600b54346101f4919061194f565b6101fe9190611966565b9050600061020c8234611988565b9050811561022a57600d5461022a906001600160a01b031683610618565b801561025757600f546001600160a01b03161561025957600f54610257906001600160a01b031682610618565b005b600d54610257906001600160a01b031682610618565b600080fd5b34801561028057600080fd5b5061028a600c5481565b6040519081526020015b60405180910390f35b3480156102a957600080fd5b506102b26106ce565b604051610294919061199b565b3480156102cb57600080fd5b506102df6102da366004611a02565b610760565b6040519015158152602001610294565b3480156102fb57600080fd5b5060025461028a565b34801561031057600080fd5b506102df61031f366004611a2e565b61077a565b34801561033057600080fd5b5060405160098152602001610294565b34801561034c57600080fd5b5061025761079e565b34801561036157600080fd5b506102df610370366004611a02565b610809565b34801561038157600080fd5b5061028a600a5481565b34801561039757600080fd5b5061028a61082b565b3480156103ac57600080fd5b50600d546103c0906001600160a01b031681565b6040516001600160a01b039091168152602001610294565b3480156103e457600080fd5b5061028a60095481565b3480156103fa57600080fd5b50610257610409366004611a6f565b61085e565b34801561041a57600080fd5b5061028a610429366004611a91565b6001600160a01b031660009081526020819052604090205490565b34801561045057600080fd5b5061028a6108b6565b34801561046557600080fd5b5061028a6109b4565b34801561047a57600080fd5b50610257610489366004611a91565b610a20565b34801561049a57600080fd5b5060075461010090046001600160a01b03166103c0565b3480156104bd57600080fd5b506102b2610a71565b3480156104d257600080fd5b506102576104e1366004611ab5565b610a80565b610257610af7565b3480156104fa57600080fd5b50600f546103c0906001600160a01b031681565b34801561051a57600080fd5b506102df610529366004611a02565b610da0565b34801561053a57600080fd5b506005546001600160a01b03166103c0565b34801561055857600080fd5b50610257610567366004611ab5565b610e1b565b34801561057857600080fd5b506102df610587366004611a02565b610eab565b34801561059857600080fd5b506102576105a7366004611a91565b610eb9565b3480156105b857600080fd5b5061028a6105c7366004611ace565b610f24565b3480156105d857600080fd5b5061028a600b5481565b3480156105ee57600080fd5b5061028a6103e881565b34801561060457600080fd5b50610257610613366004611a91565b610f4f565b610620610fa6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461066d576040519150601f19603f3d011682016040523d82523d6000602084013e610672565b606091505b50509050806106bf5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064015b60405180910390fd5b506106ca6001600855565b5050565b6060600380546106dd90611b07565b80601f016020809104026020016040519081016040528092919081815260200182805461070990611b07565b80156107565780601f1061072b57610100808354040283529160200191610756565b820191906000526020600020905b81548152906001019060200180831161073957829003601f168201915b5050505050905090565b60003361076e818585610fd0565b60019150505b92915050565b6000336107888582856110f5565b61079385858561116f565b506001949350505050565b60075461010090046001600160a01b031633146107cd5760405162461bcd60e51b81526004016106b690611b41565b60078054610100600160a81b03191690556040517f6e4ee811a17215345b89e3506064ff2d62f4feedff3566e9d09219cda7e8cadb90600090a1565b60003361076e81858561081c8383610f24565b6108269190611b65565b610fd0565b600061083660025490565b6108426009600a611c5c565b61084f906201518061194f565b6108599190611988565b905090565b60075461010090046001600160a01b0316331461088d5760405162461bcd60e51b81526004016106b690611b41565b60095482111561089c57600080fd5b600a548111156108ab57600080fd5b600991909155600a55565b60006108cc6005546001600160a01b0316151590565b6108e9576108dc6009600a611c5c565b610859906201518061194f565b6000620186a06005600654426108ff9190611988565b61090b6009600a611c5c565b610918906201518061194f565b610922919061194f565b61092c919061194f565b6109369190611966565b6127106109456009600a611c5c565b610952906201518061194f565b61095d90600561194f565b6109679190611966565b6109719190611b65565b905061097f6009600a611c5c565b61098c906201518061194f565b8111156109af5761099f6009600a611c5c565b6109ac906201518061194f565b90505b919050565b60006109ca6005546001600160a01b0316151590565b6109d45750600090565b6000600654426109e49190611988565b90506103e881106109f757600091505090565b6103e8610a048282611988565b610a10906103e861194f565b610a1a9190611966565b91505090565b60075461010090046001600160a01b03163314610a4f5760405162461bcd60e51b81526004016106b690611b41565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600480546106dd90611b07565b60075461010090046001600160a01b03163314610aaf5760405162461bcd60e51b81526004016106b690611b41565b6103e8811115610af25760405162461bcd60e51b815260206004820152600e60248201526d626164206275726e20736861726560901b60448201526064016106b6565b600c55565b336001600160a01b037f000000000000000000000000c086cb5d33e0d03a45e95b665f2ea6beafe251e11614610b2c57600080fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba29190611c6b565b6001600160a01b031663c9c6539630737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c279190611c6b565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610c74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c989190611c6b565b600580546001600160a01b0319166001600160a01b0392909216919091179055610cc930610cc4611239565b611247565b610cea30737a250d5630b4cf539739df2c5dacb4c659f2488d600019610fd0565b737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d7193430610d0e611239565b6040516001600160e01b031960e086901b1681526001600160a01b039092166004830152602482015260006044820181905260648201523360848201524260a482015260c40160606040518083038185885af1158015610d72573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610d979190611c88565b50504260065550565b60003381610dae8286610f24565b905083811015610e0e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106b6565b6107938286868403610fd0565b600d546001600160a01b03163314610e645760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c7920666f722073617760a01b60448201526064016106b6565b6103e8811115610ea65760405162461bcd60e51b815260206004820152600d60248201526c6261642073617720736861726560981b60448201526064016106b6565b600b55565b60003361076e81858561116f565b600d546001600160a01b03163314610f025760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c7920666f722073617760a01b60448201526064016106b6565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60075461010090046001600160a01b03163314610f7e5760405162461bcd60e51b81526004016106b690611b41565b600780546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600260085403610fc957604051633ee5aeb560e01b815260040160405180910390fd5b6002600855565b6001600160a01b0383166110325760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106b6565b6001600160a01b0382166110935760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106b6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60006111018484610f24565b90506000198114611169578181101561115c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106b6565b6111698484848403610fd0565b50505050565b6001600160a01b03821661118c576111878382611306565b505050565b6001600160a01b0383163014806111b05750600e546001600160a01b038481169116145b806111c85750600e546001600160a01b038381169116145b156111d857611187838383611430565b60075460ff16156111ee57611187838383611430565b6005546001600160a01b039081169084160361120e576111878282611573565b6005546001600160a01b039081169083160361122e57611187838261167c565b61118783838361171d565b60006108dc6009600a611c5c565b6001600160a01b03821661129d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b6565b80600260008282546112af9190611b65565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0382166113665760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106b6565b6001600160a01b038216600090815260208190526040902054818110156113da5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106b6565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016110e8565b6001600160a01b0383166114945760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106b6565b6001600160a01b0383166000908152602081905260409020548181101561150c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106b6565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b8061157c6108b6565b8111156115bb5760405162461bcd60e51b815260206004820152600d60248201526c1b585e08189d5e481b1a5b5a5d609a1b60448201526064016106b6565b6007805460ff191660011790556009546000906103e8906115dc908561194f565b6115e69190611966565b905060006103e8600c54856115fb919061194f565b6116059190611966565b9050801561162357600554611623906001600160a01b031682611306565b811561164057600554611640906001600160a01b03163084611430565b60055461166b906001600160a01b0316868361165c8689611988565b6116669190611988565b611430565b50506007805460ff19169055505050565b6007805460ff1916600117905561169161176c565b60006103e8600a54836116a4919061194f565b6116ae9190611966565b905060006103e8600c54846116c3919061194f565b6116cd9190611966565b905080156116df576116df8482611306565b81156116f0576116f0843084611430565b60055461170d9085906001600160a01b03168361165c8688611988565b50506007805460ff191690555050565b6007805460ff1916600117905560006103e86117376109b4565b611741908461194f565b61174b9190611966565b9050801561175d5761175d8482611306565b61170d84846116668486611988565b306000908152602081905260408120549061178882600261194f565b905080821115611796578091505b6106ca82306007805460ff19166001179055811561192b5760408051600280825260608201835260009260208301908036833701905050905030816000815181106117e3576117e3611ccc565b60200260200101906001600160a01b031690816001600160a01b031681525050737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611855573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118799190611c6b565b8160018151811061188c5761188c611ccc565b6001600160a01b03909216602092830291909101909101526040516318cbafe560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d906318cbafe5906118e4908690600090869088904290600401611ce2565b6000604051808303816000875af1158015611903573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261170d9190810190611d55565b50506007805460ff19169055565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761077457610774611939565b60008261198357634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561077457610774611939565b60006020808352835180602085015260005b818110156119c9578581018301518582016040015282016119ad565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146119ff57600080fd5b50565b60008060408385031215611a1557600080fd5b8235611a20816119ea565b946020939093013593505050565b600080600060608486031215611a4357600080fd5b8335611a4e816119ea565b92506020840135611a5e816119ea565b929592945050506040919091013590565b60008060408385031215611a8257600080fd5b50508035926020909101359150565b600060208284031215611aa357600080fd5b8135611aae816119ea565b9392505050565b600060208284031215611ac757600080fd5b5035919050565b60008060408385031215611ae157600080fd5b8235611aec816119ea565b91506020830135611afc816119ea565b809150509250929050565b600181811c90821680611b1b57607f821691505b602082108103611b3b57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a908201526937b7363c9037bbb732b960b11b604082015260600190565b8082018082111561077457610774611939565b600181815b80851115611bb3578160001904821115611b9957611b99611939565b80851615611ba657918102915b93841c9390800290611b7d565b509250929050565b600082611bca57506001610774565b81611bd757506000610774565b8160018114611bed5760028114611bf757611c13565b6001915050610774565b60ff841115611c0857611c08611939565b50506001821b610774565b5060208310610133831016604e8410600b8410161715611c36575081810a610774565b611c408383611b78565b8060001904821115611c5457611c54611939565b029392505050565b6000611aae60ff841683611bbb565b600060208284031215611c7d57600080fd5b8151611aae816119ea565b600080600060608486031215611c9d57600080fd5b8351925060208401519150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611d345784516001600160a01b031683529383019391830191600101611d0f565b50506001600160a01b03969096166060850152505050608001529392505050565b60006020808385031215611d6857600080fd5b825167ffffffffffffffff80821115611d8057600080fd5b818501915085601f830112611d9457600080fd5b815181811115611da657611da6611cb6565b8060051b604051601f19603f83011681018181108582111715611dcb57611dcb611cb6565b604052918252848201925083810185019188831115611de957600080fd5b938501935b82851015611e0757845184529385019392850192611dee565b9897505050505050505056fea26469706673582212208d76db1c99c66312244fc1ae38cba8db32e74b60e924dafb3238263273a2957864736f6c63430008170033
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.