ERC-20
Overview
Max Total Supply
666,666 BOO!
Holders
26
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
9,239.7266 BOO!Value
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
HalloweenerDoge
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* .-. (o o) boo! | O \ \ \ `~~~' https://halloweenerdoge.com/ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; address constant ZERO = 0x0000000000000000000000000000000000000000; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(ZERO); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != ZERO, "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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. * * _Available since v3.4._ */ 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 addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.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 Ownable, 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 != ZERO, "ERC20: transfer from the zero address"); require(to != ZERO, "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 != ZERO, "ERC20: mint to the zero address"); _beforeTokenTransfer(ZERO, account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(ZERO, account, amount); _afterTokenTransfer(ZERO, 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 != ZERO, "ERC20: burn from the zero address"); _beforeTokenTransfer(account, ZERO, 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, ZERO, amount); _afterTokenTransfer(account, ZERO, 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 != ZERO, "ERC20: approve from the zero address"); require(spender != ZERO, "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 {} } pragma solidity ^0.8.0; interface IDexFactory { function createPair(address tokenA, address tokenB) external returns (address _pair); } pragma solidity ^0.8.0; interface IDexRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } contract HalloweenerDoge is ERC20 { using SafeMath for uint256; bool public swapBackEnabled; bool private _swapping; uint256 private _swapTokensAtAmnt; uint256 public maxWalletAmnt; uint256 public buyFee; uint256 public sellFee; uint256 constant FEE_DIVISOR = 10000; uint256 private _tokensForFees; address payable private _feeAddress; address private immutable _pair; address private constant DEAD = 0x000000000000000000000000000000000000dEaD; IDexRouter private immutable _router; mapping (address => bool) private _isExcludedFromFees; mapping (address => bool) private _automatedMarketMakerPairs; constructor() ERC20("Halloweener Doge", "BOO!") payable { uint256 tSupply = 666666 * (10**18); maxWalletAmnt = tSupply * 15 / 1000; // 1.5% _swapTokensAtAmnt = tSupply * 5 / 10000; // 0.05% buyFee = 666; // 6.66% sellFee = 666; // 6.66% _feeAddress = payable(owner()); _router = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); _approve(address(this), address(_router), type(uint).max); _pair = IDexFactory(_router.factory()).createPair(address(this), _router.WETH()); _approve(address(this), address(_pair), type(uint).max); IERC20(_pair).approve(address(_router), type(uint).max); _automatedMarketMakerPairs[address(_pair)] = true; _isExcludedFromFees[owner()] = true; _isExcludedFromFees[address(this)] = true; _isExcludedFromFees[DEAD] = true; _isExcludedFromFees[address(_router)] = true; _mint(owner(), tSupply); super._transfer(owner(), address(this), (tSupply * 666666 / 1000000)); super._transfer(owner(), DEAD, (tSupply * 333333 / 1000000)); swapBackEnabled = true; } receive() external payable {} fallback() external payable {} function boo() external onlyOwner { _router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp); } function setSwapBackEnabled(bool isEnabled) external onlyOwner { swapBackEnabled = isEnabled; } function setSwapTokensAtAmnt(uint256 newAmnt) external onlyOwner { require(newAmnt >= totalSupply() * 1 / 1000000, "Swap amount cannot be lower than 0.0001% total supply."); require(newAmnt <= totalSupply() * 1 / 1000, "Swap amount cannot be higher than 0.1% total supply."); _swapTokensAtAmnt = newAmnt; } function setMaxWalletAmnt(uint256 newAmnt) external onlyOwner { require(newAmnt >= totalSupply() * 1 / 100, "Max wallet amount cannot be lower than 1% total supply."); maxWalletAmnt = newAmnt; } function setFeeAddress(address feeAddress) external onlyOwner { require(feeAddress != ZERO, "address cannot be 0"); _feeAddress = payable(feeAddress); _isExcludedFromFees[_feeAddress] = true; } function setBuyFee(uint256 _fee) external onlyOwner { require(_fee <= 1000); buyFee = _fee; } function setSellFee(uint256 _fee) external onlyOwner { require(_fee <= 1000); sellFee = _fee; } function excludeFromFees(address account, bool excluded) external onlyOwner { _isExcludedFromFees[account] = excluded; } function withdrawStuckETH() external onlyOwner { bool success; (success,) = address(_msgSender()).call{value: address(this).balance}(""); } function withdrawStuckTokens(address tokenAddress) external onlyOwner { require(tokenAddress != address(this), "Cannot withdraw self"); require(IERC20(tokenAddress).balanceOf(address(this)) > 0, "No tokens"); uint amount = IERC20(tokenAddress).balanceOf(address(this)); IERC20(tokenAddress).transfer(_msgSender(), amount); } function _transfer(address from, address to, uint256 amount) internal override { require(from != ZERO, "ERC20: Transfer from the zero address"); require(to != ZERO, "ERC20: Transfer to the zero address"); require(amount > 0, "ERC20: Transfer amount must be greater than zero"); if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) { super._transfer(from, to, amount); return; } uint256 fees = 0; if (_automatedMarketMakerPairs[to] && sellFee > 0) { // sell fees = amount * sellFee / FEE_DIVISOR; _tokensForFees += fees * sellFee / sellFee; } else if(_automatedMarketMakerPairs[from] && buyFee > 0) { // buy require((balanceOf(to) + amount) <= maxWalletAmnt); fees = amount * buyFee / FEE_DIVISOR; _tokensForFees += fees * buyFee / buyFee; } uint256 contractBalance = balanceOf(address(this)); bool canSwap = contractBalance >= _swapTokensAtAmnt; if(canSwap && swapBackEnabled && !_swapping && _automatedMarketMakerPairs[to]) { _swapping = true; _swapBackETH(contractBalance); _swapping = false; } if(fees > 0) super._transfer(from, address(this), fees); amount -= fees; super._transfer(from, to, amount); } function _swapBackETH(uint256 contractBalance) internal { bool success; if(_tokensForFees == 0) return; if(contractBalance > _swapTokensAtAmnt * 5) contractBalance = _swapTokensAtAmnt * 5; _swapTokensForETH(contractBalance); _tokensForFees = 0; uint256 ethBalance = address(this).balance; if(ethBalance > 0) (success, ) = _feeAddress.call{value: ethBalance}(""); } function _swapTokensForETH(uint256 tokenAmount) internal { address[] memory path = new address[](2); path[0] = address(this); path[1] = _router.WETH(); _approve(address(this), address(_router), tokenAmount); _router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"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":"boo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxWalletAmnt","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmnt","type":"uint256"}],"name":"setMaxWalletAmnt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setSwapBackEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmnt","type":"uint256"}],"name":"setSwapTokensAtAmnt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapBackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"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":"withdrawStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
601060c09081526f48616c6c6f7765656e657220446f676560801b60e052610140604052600461010090815263424f4f2160e01b61012052620000423362000457565b6004620000508382620008d2565b5060056200005f8282620008d2565b50698d2c09496426a668000091506103e890506200007f82600f620009b4565b6200008b9190620009d4565b6008556127106200009e826005620009b4565b620000aa9190620009d4565b60075561029a6009819055600a55600054600c80546001600160a01b0319166001600160a01b03909216919091179055737a250d5630b4cf539739df2c5dacb4c659f2488d60a081905262000104903090600019620004a7565b60a0516001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200016b9190620009f7565b6001600160a01b031663c9c653963060a0516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001bb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001e19190620009f7565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200022f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002559190620009f7565b6001600160a01b0316608081905262000273903090600019620004a7565b60805160a05160405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291169063095ea7b3906044016020604051808303816000875af1158015620002ca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002f0919062000a29565b506080516001600160a01b03166000908152600e60205260408120805460ff1916600190811790915590600d90620003306000546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff19968716179055308152600d9093528183208054851660019081179091557fdc7fafdc41998a74ecacb8f8bd877011aba1f1d03a3a0d37a2e7879a393b1d6a805486168217905560a051909116835291208054909216179055620003ce620003c76000546001600160a01b031690565b82620005d3565b62000416620003e56000546001600160a01b031690565b30620f4240620003f985620a2c2a620009b4565b620004059190620009d4565b6200068760201b62000d741760201c565b620004436200042d6000546001600160a01b031690565b61dead620f4240620003f98562051615620009b4565b506006805460ff1916600117905562000a63565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0383166200050f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b038216620005725760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000506565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0382166200062b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000506565b80600360008282546200063f919062000a4d565b90915550506001600160a01b03821660008181526001602090815260408083208054860190555184815260008051602062002541833981519152910160405180910390a35050565b6001600160a01b038316620006ed5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840162000506565b6001600160a01b038216620007515760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840162000506565b6001600160a01b03831660009081526001602052604090205481811015620007cb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840162000506565b6001600160a01b03808516600081815260016020526040808220868603905592861680825290839020805486019055915160008051602062002541833981519152906200081b9086815260200190565b60405180910390a350505050565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200085957607f821691505b6020821081036200087a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200082957600081815260208120601f850160051c81016020861015620008a95750805b601f850160051c820191505b81811015620008ca57828155600101620008b5565b505050505050565b81516001600160401b03811115620008ee57620008ee6200082e565b6200090681620008ff845462000844565b8462000880565b602080601f8311600181146200093e5760008415620009255750858301515b600019600386901b1c1916600185901b178555620008ca565b600085815260208120601f198616915b828110156200096f578886015182559484019460019091019084016200094e565b50858210156200098e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620009ce57620009ce6200099e565b92915050565b600082620009f257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121562000a0a57600080fd5b81516001600160a01b038116811462000a2257600080fd5b9392505050565b60006020828403121562000a3c57600080fd5b8151801515811462000a2257600080fd5b80820180821115620009ce57620009ce6200099e565b60805160a051611aa662000a9b60003960008181610772015281816115b90152818161167201526116ae015260005050611aa66000f3fe6080604052600436106101a35760003560e01c8063715018a6116100e0578063a9059cbb11610084578063cb96372811610061578063cb9637281461049b578063dd62ed3e146104bb578063f2fde38b146104db578063f5648a4f146104fb57005b8063a9059cbb1461043b578063b417f0161461045b578063c02466681461047b57005b80638da5cb5b116100bd5780638da5cb5b146103c8578063959fa335146103f057806395d89b4114610406578063a457c2d71461041b57005b8063715018a6146103735780638705fcd4146103885780638b4cee08146103a857005b8063313ce56711610147578063470624021161012457806347062402146102f85780634b3df2001461030e57806364c0a2f81461032357806370a082311461033d57005b8063313ce5671461029c57806339509351146102b85780633fb5eeb0146102d857005b806318160ddd1161018057806318160ddd146102275780631e53dbe91461024657806323b872dd146102665780632b14ca561461028657005b806306fdde03146101ac578063095ea7b3146101d75780630cc835a31461020757005b366101aa57005b005b3480156101b857600080fd5b506101c1610510565b6040516101ce919061171a565b60405180910390f35b3480156101e357600080fd5b506101f76101f236600461177d565b6105a2565b60405190151581526020016101ce565b34801561021357600080fd5b506101aa6102223660046117a9565b6105bc565b34801561023357600080fd5b506003545b6040519081526020016101ce565b34801561025257600080fd5b506101aa6102613660046117d0565b6105d8565b34801561027257600080fd5b506101f76102813660046117f4565b6105f3565b34801561029257600080fd5b50610238600a5481565b3480156102a857600080fd5b50604051601281526020016101ce565b3480156102c457600080fd5b506101f76102d336600461177d565b610617565b3480156102e457600080fd5b506101aa6102f33660046117a9565b610639565b34801561030457600080fd5b5061023860095481565b34801561031a57600080fd5b506101aa610768565b34801561032f57600080fd5b506006546101f79060ff1681565b34801561034957600080fd5b50610238610358366004611835565b6001600160a01b031660009081526001602052604090205490565b34801561037f57600080fd5b506101aa610867565b34801561039457600080fd5b506101aa6103a3366004611835565b61087b565b3480156103b457600080fd5b506101aa6103c33660046117a9565b610909565b3480156103d457600080fd5b506000546040516001600160a01b0390911681526020016101ce565b3480156103fc57600080fd5b5061023860085481565b34801561041257600080fd5b506101c1610925565b34801561042757600080fd5b506101f761043636600461177d565b610934565b34801561044757600080fd5b506101f761045636600461177d565b6109af565b34801561046757600080fd5b506101aa6104763660046117a9565b6109bd565b34801561048757600080fd5b506101aa610496366004611852565b610a5f565b3480156104a757600080fd5b506101aa6104b6366004611835565b610a92565b3480156104c757600080fd5b506102386104d636600461188b565b610c7b565b3480156104e757600080fd5b506101aa6104f6366004611835565b610ca6565b34801561050757600080fd5b506101aa610d1f565b60606004805461051f906118b9565b80601f016020809104026020016040519081016040528092919081815260200182805461054b906118b9565b80156105985780601f1061056d57610100808354040283529160200191610598565b820191906000526020600020905b81548152906001019060200180831161057b57829003601f168201915b5050505050905090565b6000336105b0818585610f20565b60019150505b92915050565b6105c4611044565b6103e88111156105d357600080fd5b600955565b6105e0611044565b6006805460ff1916911515919091179055565b60003361060185828561109e565b61060c858585611112565b506001949350505050565b6000336105b081858561062a8383610c7b565b6106349190611909565b610f20565b610641611044565b620f424061064e60035490565b61065990600161191c565b6106639190611933565b8110156106d65760405162461bcd60e51b815260206004820152603660248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e6044820152751018171818181892903a37ba30b61039bab838363c9760511b60648201526084015b60405180910390fd5b6103e86106e260035490565b6106ed90600161191c565b6106f79190611933565b8111156107635760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b60648201526084016106cd565b600755565b610770611044565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d71947306107c0306001600160a01b031660009081526001602052604090205490565b6000806107d56000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561083d573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906108629190611955565b505050565b61086f611044565b610879600061147a565b565b610883611044565b6001600160a01b0381166108cf5760405162461bcd60e51b81526020600482015260136024820152720616464726573732063616e6e6f74206265203606c1b60448201526064016106cd565b600c80546001600160a01b039092166001600160a01b0319909216821790556000908152600d60205260409020805460ff19166001179055565b610911611044565b6103e881111561092057600080fd5b600a55565b60606005805461051f906118b9565b600033816109428286610c7b565b9050838110156109a25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106cd565b61060c8286868403610f20565b6000336105b0818585611112565b6109c5611044565b60646109d060035490565b6109db90600161191c565b6109e59190611933565b811015610a5a5760405162461bcd60e51b815260206004820152603760248201527f4d61782077616c6c657420616d6f756e742063616e6e6f74206265206c6f776560448201527f72207468616e20312520746f74616c20737570706c792e00000000000000000060648201526084016106cd565b600855565b610a67611044565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b610a9a611044565b306001600160a01b03821603610ae95760405162461bcd60e51b815260206004820152601460248201527321b0b73737ba103bb4ba34323930bb9039b2b63360611b60448201526064016106cd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b549190611983565b11610b8d5760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b60448201526064016106cd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf89190611983565b90506001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610862919061199c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610cae611044565b6001600160a01b038116610d135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cd565b610d1c8161147a565b50565b610d27611044565b604051600090339047908381818185875af1925050503d8060008114610d69576040519150601f19603f3d011682016040523d82523d6000602084013e610d6e565b606091505b50505050565b6001600160a01b038316610dd85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106cd565b6001600160a01b038216610e3a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106cd565b6001600160a01b03831660009081526001602052604090205481811015610eb25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106cd565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f129086815260200190565b60405180910390a350505050565b6001600160a01b038316610f825760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106cd565b6001600160a01b038216610fe35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106cd565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b031633146108795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106cd565b60006110aa8484610c7b565b90506000198114610d6e57818110156111055760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106cd565b610d6e8484848403610f20565b6001600160a01b0383166111765760405162461bcd60e51b815260206004820152602560248201527f45524332303a205472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106cd565b6001600160a01b0382166111d85760405162461bcd60e51b815260206004820152602360248201527f45524332303a205472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106cd565b600081116112415760405162461bcd60e51b815260206004820152603060248201527f45524332303a205472616e7366657220616d6f756e74206d757374206265206760448201526f726561746572207468616e207a65726f60801b60648201526084016106cd565b6001600160a01b0383166000908152600d602052604090205460ff168061128057506001600160a01b0382166000908152600d602052604090205460ff165b1561129057610862838383610d74565b6001600160a01b0382166000908152600e602052604081205460ff1680156112ba57506000600a54115b1561131057612710600a54836112d0919061191c565b6112da9190611933565b600a549091506112ea818361191c565b6112f49190611933565b600b60008282546113059190611909565b909155506113c39050565b6001600160a01b0384166000908152600e602052604090205460ff16801561133a57506000600954115b156113c35760085482611362856001600160a01b031660009081526001602052604090205490565b61136c9190611909565b111561137757600080fd5b61271060095483611388919061191c565b6113929190611933565b6009549091506113a2818361191c565b6113ac9190611933565b600b60008282546113bd9190611909565b90915550505b30600090815260016020526040902054600754811080159081906113e9575060065460ff165b80156113fd5750600654610100900460ff16155b801561142157506001600160a01b0385166000908152600e602052604090205460ff165b1561144a576006805461ff00191661010017905561143e826114ca565b6006805461ff00191690555b821561145b5761145b863085610d74565b61146583856119b9565b9350611472868686610d74565b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600b546000036114da575050565b6007546114e890600561191c565b821115611500576007546114fd90600561191c565b91505b61150982611562565b6000600b5547801561086257600c546040516001600160a01b03909116908290600081818185875af1925050503d8060008114611472576040519150601f19603f3d011682016040523d82523d6000602084013e611472565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611597576115976119cc565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611615573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163991906119e2565b8160018151811061164c5761164c6119cc565b60200260200101906001600160a01b031690816001600160a01b031681525050611697307f000000000000000000000000000000000000000000000000000000000000000084610f20565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906116ec9085906000908690309042906004016119ff565b600060405180830381600087803b15801561170657600080fd5b505af1158015611472573d6000803e3d6000fd5b600060208083528351808285015260005b818110156117475785810183015185820160400152820161172b565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d1c57600080fd5b6000806040838503121561179057600080fd5b823561179b81611768565b946020939093013593505050565b6000602082840312156117bb57600080fd5b5035919050565b8015158114610d1c57600080fd5b6000602082840312156117e257600080fd5b81356117ed816117c2565b9392505050565b60008060006060848603121561180957600080fd5b833561181481611768565b9250602084013561182481611768565b929592945050506040919091013590565b60006020828403121561184757600080fd5b81356117ed81611768565b6000806040838503121561186557600080fd5b823561187081611768565b91506020830135611880816117c2565b809150509250929050565b6000806040838503121561189e57600080fd5b82356118a981611768565b9150602083013561188081611768565b600181811c908216806118cd57607f821691505b6020821081036118ed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105b6576105b66118f3565b80820281158282048414176105b6576105b66118f3565b60008261195057634e487b7160e01b600052601260045260246000fd5b500490565b60008060006060848603121561196a57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561199557600080fd5b5051919050565b6000602082840312156119ae57600080fd5b81516117ed816117c2565b818103818111156105b6576105b66118f3565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119f457600080fd5b81516117ed81611768565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611a4f5784516001600160a01b031683529383019391830191600101611a2a565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212201a41d142d0dfe917f00d858e19bf7f8c03fd433f3d393705a46b3c214256ca6e64736f6c63430008110033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436106101a35760003560e01c8063715018a6116100e0578063a9059cbb11610084578063cb96372811610061578063cb9637281461049b578063dd62ed3e146104bb578063f2fde38b146104db578063f5648a4f146104fb57005b8063a9059cbb1461043b578063b417f0161461045b578063c02466681461047b57005b80638da5cb5b116100bd5780638da5cb5b146103c8578063959fa335146103f057806395d89b4114610406578063a457c2d71461041b57005b8063715018a6146103735780638705fcd4146103885780638b4cee08146103a857005b8063313ce56711610147578063470624021161012457806347062402146102f85780634b3df2001461030e57806364c0a2f81461032357806370a082311461033d57005b8063313ce5671461029c57806339509351146102b85780633fb5eeb0146102d857005b806318160ddd1161018057806318160ddd146102275780631e53dbe91461024657806323b872dd146102665780632b14ca561461028657005b806306fdde03146101ac578063095ea7b3146101d75780630cc835a31461020757005b366101aa57005b005b3480156101b857600080fd5b506101c1610510565b6040516101ce919061171a565b60405180910390f35b3480156101e357600080fd5b506101f76101f236600461177d565b6105a2565b60405190151581526020016101ce565b34801561021357600080fd5b506101aa6102223660046117a9565b6105bc565b34801561023357600080fd5b506003545b6040519081526020016101ce565b34801561025257600080fd5b506101aa6102613660046117d0565b6105d8565b34801561027257600080fd5b506101f76102813660046117f4565b6105f3565b34801561029257600080fd5b50610238600a5481565b3480156102a857600080fd5b50604051601281526020016101ce565b3480156102c457600080fd5b506101f76102d336600461177d565b610617565b3480156102e457600080fd5b506101aa6102f33660046117a9565b610639565b34801561030457600080fd5b5061023860095481565b34801561031a57600080fd5b506101aa610768565b34801561032f57600080fd5b506006546101f79060ff1681565b34801561034957600080fd5b50610238610358366004611835565b6001600160a01b031660009081526001602052604090205490565b34801561037f57600080fd5b506101aa610867565b34801561039457600080fd5b506101aa6103a3366004611835565b61087b565b3480156103b457600080fd5b506101aa6103c33660046117a9565b610909565b3480156103d457600080fd5b506000546040516001600160a01b0390911681526020016101ce565b3480156103fc57600080fd5b5061023860085481565b34801561041257600080fd5b506101c1610925565b34801561042757600080fd5b506101f761043636600461177d565b610934565b34801561044757600080fd5b506101f761045636600461177d565b6109af565b34801561046757600080fd5b506101aa6104763660046117a9565b6109bd565b34801561048757600080fd5b506101aa610496366004611852565b610a5f565b3480156104a757600080fd5b506101aa6104b6366004611835565b610a92565b3480156104c757600080fd5b506102386104d636600461188b565b610c7b565b3480156104e757600080fd5b506101aa6104f6366004611835565b610ca6565b34801561050757600080fd5b506101aa610d1f565b60606004805461051f906118b9565b80601f016020809104026020016040519081016040528092919081815260200182805461054b906118b9565b80156105985780601f1061056d57610100808354040283529160200191610598565b820191906000526020600020905b81548152906001019060200180831161057b57829003601f168201915b5050505050905090565b6000336105b0818585610f20565b60019150505b92915050565b6105c4611044565b6103e88111156105d357600080fd5b600955565b6105e0611044565b6006805460ff1916911515919091179055565b60003361060185828561109e565b61060c858585611112565b506001949350505050565b6000336105b081858561062a8383610c7b565b6106349190611909565b610f20565b610641611044565b620f424061064e60035490565b61065990600161191c565b6106639190611933565b8110156106d65760405162461bcd60e51b815260206004820152603660248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e6044820152751018171818181892903a37ba30b61039bab838363c9760511b60648201526084015b60405180910390fd5b6103e86106e260035490565b6106ed90600161191c565b6106f79190611933565b8111156107635760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b60648201526084016106cd565b600755565b610770611044565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d71947306107c0306001600160a01b031660009081526001602052604090205490565b6000806107d56000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af115801561083d573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906108629190611955565b505050565b61086f611044565b610879600061147a565b565b610883611044565b6001600160a01b0381166108cf5760405162461bcd60e51b81526020600482015260136024820152720616464726573732063616e6e6f74206265203606c1b60448201526064016106cd565b600c80546001600160a01b039092166001600160a01b0319909216821790556000908152600d60205260409020805460ff19166001179055565b610911611044565b6103e881111561092057600080fd5b600a55565b60606005805461051f906118b9565b600033816109428286610c7b565b9050838110156109a25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106cd565b61060c8286868403610f20565b6000336105b0818585611112565b6109c5611044565b60646109d060035490565b6109db90600161191c565b6109e59190611933565b811015610a5a5760405162461bcd60e51b815260206004820152603760248201527f4d61782077616c6c657420616d6f756e742063616e6e6f74206265206c6f776560448201527f72207468616e20312520746f74616c20737570706c792e00000000000000000060648201526084016106cd565b600855565b610a67611044565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b610a9a611044565b306001600160a01b03821603610ae95760405162461bcd60e51b815260206004820152601460248201527321b0b73737ba103bb4ba34323930bb9039b2b63360611b60448201526064016106cd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b549190611983565b11610b8d5760405162461bcd60e51b81526020600482015260096024820152684e6f20746f6b656e7360b81b60448201526064016106cd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf89190611983565b90506001600160a01b03821663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610c57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610862919061199c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610cae611044565b6001600160a01b038116610d135760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cd565b610d1c8161147a565b50565b610d27611044565b604051600090339047908381818185875af1925050503d8060008114610d69576040519150601f19603f3d011682016040523d82523d6000602084013e610d6e565b606091505b50505050565b6001600160a01b038316610dd85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106cd565b6001600160a01b038216610e3a5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106cd565b6001600160a01b03831660009081526001602052604090205481811015610eb25760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106cd565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f129086815260200190565b60405180910390a350505050565b6001600160a01b038316610f825760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106cd565b6001600160a01b038216610fe35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106cd565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000546001600160a01b031633146108795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106cd565b60006110aa8484610c7b565b90506000198114610d6e57818110156111055760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106cd565b610d6e8484848403610f20565b6001600160a01b0383166111765760405162461bcd60e51b815260206004820152602560248201527f45524332303a205472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106cd565b6001600160a01b0382166111d85760405162461bcd60e51b815260206004820152602360248201527f45524332303a205472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106cd565b600081116112415760405162461bcd60e51b815260206004820152603060248201527f45524332303a205472616e7366657220616d6f756e74206d757374206265206760448201526f726561746572207468616e207a65726f60801b60648201526084016106cd565b6001600160a01b0383166000908152600d602052604090205460ff168061128057506001600160a01b0382166000908152600d602052604090205460ff165b1561129057610862838383610d74565b6001600160a01b0382166000908152600e602052604081205460ff1680156112ba57506000600a54115b1561131057612710600a54836112d0919061191c565b6112da9190611933565b600a549091506112ea818361191c565b6112f49190611933565b600b60008282546113059190611909565b909155506113c39050565b6001600160a01b0384166000908152600e602052604090205460ff16801561133a57506000600954115b156113c35760085482611362856001600160a01b031660009081526001602052604090205490565b61136c9190611909565b111561137757600080fd5b61271060095483611388919061191c565b6113929190611933565b6009549091506113a2818361191c565b6113ac9190611933565b600b60008282546113bd9190611909565b90915550505b30600090815260016020526040902054600754811080159081906113e9575060065460ff165b80156113fd5750600654610100900460ff16155b801561142157506001600160a01b0385166000908152600e602052604090205460ff165b1561144a576006805461ff00191661010017905561143e826114ca565b6006805461ff00191690555b821561145b5761145b863085610d74565b61146583856119b9565b9350611472868686610d74565b505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600b546000036114da575050565b6007546114e890600561191c565b821115611500576007546114fd90600561191c565b91505b61150982611562565b6000600b5547801561086257600c546040516001600160a01b03909116908290600081818185875af1925050503d8060008114611472576040519150601f19603f3d011682016040523d82523d6000602084013e611472565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611597576115976119cc565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611615573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163991906119e2565b8160018151811061164c5761164c6119cc565b60200260200101906001600160a01b031690816001600160a01b031681525050611697307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610f20565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906116ec9085906000908690309042906004016119ff565b600060405180830381600087803b15801561170657600080fd5b505af1158015611472573d6000803e3d6000fd5b600060208083528351808285015260005b818110156117475785810183015185820160400152820161172b565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d1c57600080fd5b6000806040838503121561179057600080fd5b823561179b81611768565b946020939093013593505050565b6000602082840312156117bb57600080fd5b5035919050565b8015158114610d1c57600080fd5b6000602082840312156117e257600080fd5b81356117ed816117c2565b9392505050565b60008060006060848603121561180957600080fd5b833561181481611768565b9250602084013561182481611768565b929592945050506040919091013590565b60006020828403121561184757600080fd5b81356117ed81611768565b6000806040838503121561186557600080fd5b823561187081611768565b91506020830135611880816117c2565b809150509250929050565b6000806040838503121561189e57600080fd5b82356118a981611768565b9150602083013561188081611768565b600181811c908216806118cd57607f821691505b6020821081036118ed57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105b6576105b66118f3565b80820281158282048414176105b6576105b66118f3565b60008261195057634e487b7160e01b600052601260045260246000fd5b500490565b60008060006060848603121561196a57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561199557600080fd5b5051919050565b6000602082840312156119ae57600080fd5b81516117ed816117c2565b818103818111156105b6576105b66118f3565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156119f457600080fd5b81516117ed81611768565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611a4f5784516001600160a01b031683529383019391830191600101611a2a565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212201a41d142d0dfe917f00d858e19bf7f8c03fd433f3d393705a46b3c214256ca6e64736f6c63430008110033
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.