ERC-20
MEME
Overview
Max Total Supply
65,352,969,696.96969696969696954 WSB
Holders
5,273 ( -0.038%)
Market
Price
$0.00 @ 0.000000 ETH (-3.86%)
Onchain Market Cap
$425,447.83
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000818533363 WSBValue
$0.00 ( ~0 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
WSBCoin
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract WSBCoin is ERC20, ERC20Burnable, Ownable { uint256 public immutable maxSupply; uint256 public immutable airdropOpens; uint256 public immutable airdropCloses; uint256 public immutable globalAirdropCap; uint256 public immutable airdropIndividualAllocation; bytes32 public immutable airdropMerkleRoot; address public immutable wsbModeratorsWallet; address public immutable wsbCommunityWallet; bool public moderatorClaimed; uint256 public airdropTokensClaimed; bool public airdropEnabled; bool public airdropRemainderClaimed; mapping(address => bool) public airdropClaimed; error NotAllowed(); error TradingNotStarted(); error ExceedsAllocation(); error NotEligibleForAirdrop(); error AirdropClosed(); error AirdropOpen(); error AirdropTimeNotExpired(); constructor( bytes32 airdropMerkleRoot_, address cexWallet_, address dexWallet_, address wsbModeratorsWallet_, address wsbCommunityWallet_, uint256 maxSupply_, uint256 airdropIndividualAllocation_ ) ERC20("WSB Coin", "WSB") { maxSupply = maxSupply_; _mint(cexWallet_, (maxSupply * 5) / 100); _mint(dexWallet_, (maxSupply * 60) / 100); _mint(wsbCommunityWallet_, (maxSupply * 10) / 100); wsbModeratorsWallet = wsbModeratorsWallet_; wsbCommunityWallet = wsbCommunityWallet_; globalAirdropCap = (maxSupply * 20) / 100; airdropOpens = block.timestamp; airdropCloses = block.timestamp + 90 days; airdropIndividualAllocation = airdropIndividualAllocation_; airdropMerkleRoot = airdropMerkleRoot_; } // The moderator wallet can claim their token allocation directly. function claimWSBModeratorsAllocation() external { if (msg.sender != wsbModeratorsWallet) { revert NotAllowed(); } if (moderatorClaimed) { revert ExceedsAllocation(); } moderatorClaimed = true; _mint(wsbModeratorsWallet, (maxSupply * 5) / 100); } // After the airdrop period, if there are any unclaimed tokens, they can be minted to the wsb community wallet. // Anyone can call this after the airdrop closes. function mintRemainderOfAirdropSupply() external { // Require the airdrop time period to have expired. if (block.timestamp < airdropCloses) { revert AirdropTimeNotExpired(); } // Can only be done once. if (airdropRemainderClaimed) { revert ExceedsAllocation(); } airdropRemainderClaimed = true; // Check if there are any tokens left to claim. if (airdropTokensClaimed >= globalAirdropCap) { revert ExceedsAllocation(); } uint256 remainingAirdropTokens = globalAirdropCap - airdropTokensClaimed; // Update the total claimed count so we know there should be no airdrop tokens left after this. airdropTokensClaimed += remainingAirdropTokens; _mint(wsbCommunityWallet, remainingAirdropTokens); } function isAirdropOpen() public view returns (bool) { // Require the airdrop to be enabled. if (!airdropEnabled) { return false; } // Require the airdrop period to be active. if (block.timestamp < airdropOpens || block.timestamp > airdropCloses) { return false; } // Require the airdrop to not be maxed out. // Must be >, not >=, because the airdropTokensClaimed is incremented before this check. if (airdropTokensClaimed > globalAirdropCap) { return false; } return true; } function setAirdropEnabled(bool enabled_) external onlyOwner { airdropEnabled = enabled_; } function airdropMint(bytes32[] memory proof_) external { // Update the total claimed count. airdropTokensClaimed += airdropIndividualAllocation; // Require the airdrop to be open. if (!isAirdropOpen()) { revert AirdropClosed(); } // Require the address to be on the whitelist. if (!verifyProof(proof_, msg.sender)) { revert NotEligibleForAirdrop(); } // Check if address has already claimed it. if (airdropClaimed[msg.sender]) { revert ExceedsAllocation(); } // Mark as claimed. airdropClaimed[msg.sender] = true; // Mint tokens. _mint(msg.sender, airdropIndividualAllocation); } function verifyProof( bytes32[] memory proof_, address minterAddress_ ) public view returns (bool) { bytes32 leaf = keccak256( bytes.concat(keccak256(abi.encode(minterAddress_))) ); if (MerkleProof.verify(proof_, airdropMerkleRoot, leaf)) { return true; } return false; } // Receive function. receive() external payable { revert(); } // Fallback function. fallback() external { revert(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"airdropMerkleRoot_","type":"bytes32"},{"internalType":"address","name":"cexWallet_","type":"address"},{"internalType":"address","name":"dexWallet_","type":"address"},{"internalType":"address","name":"wsbModeratorsWallet_","type":"address"},{"internalType":"address","name":"wsbCommunityWallet_","type":"address"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"airdropIndividualAllocation_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AirdropClosed","type":"error"},{"inputs":[],"name":"AirdropOpen","type":"error"},{"inputs":[],"name":"AirdropTimeNotExpired","type":"error"},{"inputs":[],"name":"ExceedsAllocation","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotEligibleForAirdrop","type":"error"},{"inputs":[],"name":"TradingNotStarted","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"airdropClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropCloses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropIndividualAllocation","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"airdropOpens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropRemainderClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropTokensClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimWSBModeratorsAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"globalAirdropCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAirdropOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRemainderOfAirdropSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"moderatorClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"bool","name":"enabled_","type":"bool"}],"name":"setAirdropEnabled","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"address","name":"minterAddress_","type":"address"}],"name":"verifyProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wsbCommunityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wsbModeratorsWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6101806040523480156200001257600080fd5b5060405162001dcf38038062001dcf8339810160408190526200003591620002ae565b604051806040016040528060088152602001672ba9a11021b7b4b760c11b815250604051806040016040528060038152602001622ba9a160e91b8152508160039081620000839190620003cc565b506004620000928282620003cc565b505050620000af620000a96200017060201b60201c565b62000174565b6080829052620000da866064620000c8856005620004ae565b620000d49190620004ce565b620001c6565b620000f2856064608051603c620000c89190620004ae565b6200010a836064608051600a620000c89190620004ae565b6001600160a01b038085166101405283166101605260805160649062000132906014620004ae565b6200013e9190620004ce565b60e0524260a081905262000156906276a700620004f1565b60c052610100525050506101209290925250620005079050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002215760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620002359190620004f1565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b80516001600160a01b0381168114620002a957600080fd5b919050565b600080600080600080600060e0888a031215620002ca57600080fd5b87519650620002dc6020890162000291565b9550620002ec6040890162000291565b9450620002fc6060890162000291565b93506200030c6080890162000291565b925060a0880151915060c0880151905092959891949750929550565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200035357607f821691505b6020821081036200037457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200028c57600081815260208120601f850160051c81016020861015620003a35750805b601f850160051c820191505b81811015620003c457828155600101620003af565b505050505050565b81516001600160401b03811115620003e857620003e862000328565b6200040081620003f984546200033e565b846200037a565b602080601f8311600181146200043857600084156200041f5750858301515b600019600386901b1c1916600185901b178555620003c4565b600085815260208120601f198616915b82811015620004695788860151825594840194600190910190840162000448565b5085821015620004885787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620004c857620004c862000498565b92915050565b600082620004ec57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115620004c857620004c862000498565b60805160a05160c05160e05161010051610120516101405161016051611807620005c8600039600081816103fc0152610cbe0152600081816105c301528181610aaa0152610b2c01526000818161056f01526108540152600081816103c801528181610894015261096701526000818161064001528181610c3201528181610c760152610dc601526000818161044801528181610bb60152610d9701526000818161060c0152610d6e0152600081816106a40152610b5501526118076000f3fe6080604052600436106102085760003560e01c806379cc679011610118578063bb2cd03e116100a0578063d5abeb011161006f578063d5abeb0114610692578063dd62ed3e146106c6578063e836aa8a146106e6578063f2fde38b146106fb578063f75509581461071b57610212565b8063bb2cd03e146105e5578063bc5c41ce146105fa578063c9a4934c1461062e578063d1b6dd301461066257610212565b806395d89b41116100e757806395d89b4114610528578063a457c2d71461053d578063a5ce30d21461055d578063a9059cbb14610591578063aa6baf68146105b157610212565b806379cc6790146104b55780638b37b127146104d55780638da5cb5b146104f45780639255237f1461051257610212565b8063360b3b311161019b57806348c1baff1161016a57806348c1baff146103b65780636a23b2af146103ea5780636a326cca1461043657806370a082311461046a578063715018a6146104a057610212565b8063360b3b3114610335578063395093511461035557806342966c681461037557806342a59e4e1461039557610212565b806323b872dd116101d757806323b872dd146102b75780632d8b9ed7146102d7578063313ce567146102f757806334d332fa1461031357610212565b806306fdde0314610223578063095ea7b31461024e57806318160ddd1461027e578063201042891461029d57610212565b3661021257600080fd5b34801561021e57600080fd5b600080fd5b34801561022f57600080fd5b50610238610730565b6040516102459190611467565b60405180910390f35b34801561025a57600080fd5b5061026e6102693660046114d1565b6107c2565b6040519015158152602001610245565b34801561028a57600080fd5b506002545b604051908152602001610245565b3480156102a957600080fd5b5060075461026e9060ff1681565b3480156102c357600080fd5b5061026e6102d23660046114fb565b6107dc565b3480156102e357600080fd5b5061026e6102f23660046115e8565b610800565b34801561030357600080fd5b5060405160128152602001610245565b34801561031f57600080fd5b5061033361032e366004611636565b610892565b005b34801561034157600080fd5b50610333610350366004611673565b61098e565b34801561036157600080fd5b5061026e6103703660046114d1565b6109a9565b34801561038157600080fd5b50610333610390366004611695565b6109cb565b3480156103a157600080fd5b5060055461026e90600160a01b900460ff1681565b3480156103c257600080fd5b5061028f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103f657600080fd5b5061041e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610245565b34801561044257600080fd5b5061028f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561047657600080fd5b5061028f6104853660046116ae565b6001600160a01b031660009081526020819052604090205490565b3480156104ac57600080fd5b506103336109d5565b3480156104c157600080fd5b506103336104d03660046114d1565b6109e9565b3480156104e157600080fd5b5060075461026e90610100900460ff1681565b34801561050057600080fd5b506005546001600160a01b031661041e565b34801561051e57600080fd5b5061028f60065481565b34801561053457600080fd5b50610238610a02565b34801561054957600080fd5b5061026e6105583660046114d1565b610a11565b34801561056957600080fd5b5061028f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561059d57600080fd5b5061026e6105ac3660046114d1565b610a91565b3480156105bd57600080fd5b5061041e7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105f157600080fd5b50610333610a9f565b34801561060657600080fd5b5061028f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561063a57600080fd5b5061028f7f000000000000000000000000000000000000000000000000000000000000000081565b34801561066e57600080fd5b5061026e61067d3660046116ae565b60086020526000908152604090205460ff1681565b34801561069e57600080fd5b5061028f7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106d257600080fd5b5061028f6106e13660046116c9565b610b89565b3480156106f257600080fd5b50610333610bb4565b34801561070757600080fd5b506103336107163660046116ae565b610ce3565b34801561072757600080fd5b5061026e610d59565b60606003805461073f906116f3565b80601f016020809104026020016040519081016040528092919081815260200182805461076b906116f3565b80156107b85780601f1061078d576101008083540402835291602001916107b8565b820191906000526020600020905b81548152906001019060200180831161079b57829003601f168201915b5050505050905090565b6000336107d0818585610dfa565b60019150505b92915050565b6000336107ea858285610f1f565b6107f5858585610f99565b506001949350505050565b604080516001600160a01b038316602082015260009182910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050610879847f00000000000000000000000000000000000000000000000000000000000000008361113d565b156108885760019150506107d6565b5060009392505050565b7f0000000000000000000000000000000000000000000000000000000000000000600660008282546108c49190611743565b909155506108d29050610d59565b6108ef5760405163b684459160e01b815260040160405180910390fd5b6108f98133610800565b61091657604051633ba2c43760e11b815260040160405180910390fd5b3360009081526008602052604090205460ff161561094757604051632150464360e21b815260040160405180910390fd5b336000818152600860205260409020805460ff1916600117905561098b907f0000000000000000000000000000000000000000000000000000000000000000611153565b50565b610996611212565b6007805460ff1916911515919091179055565b6000336107d08185856109bc8383610b89565b6109c69190611743565b610dfa565b61098b338261126c565b6109dd611212565b6109e76000611396565b565b6109f4823383610f1f565b6109fe828261126c565b5050565b60606004805461073f906116f3565b60003381610a1f8286610b89565b905083811015610a845760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6107f58286868403610dfa565b6000336107d0818585610f99565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610ae857604051631eb49d6d60e11b815260040160405180910390fd5b600554600160a01b900460ff1615610b1357604051632150464360e21b815260040160405180910390fd5b6005805460ff60a01b1916600160a01b1781556109e7907f000000000000000000000000000000000000000000000000000000000000000090606490610b7a907f000000000000000000000000000000000000000000000000000000000000000090611756565b610b84919061176d565b611153565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7f0000000000000000000000000000000000000000000000000000000000000000421015610bf557604051630d29e77160e11b815260040160405180910390fd5b600754610100900460ff1615610c1e57604051632150464360e21b815260040160405180910390fd5b6007805461ff0019166101001790556006547f000000000000000000000000000000000000000000000000000000000000000011610c6f57604051632150464360e21b815260040160405180910390fd5b60006006547f0000000000000000000000000000000000000000000000000000000000000000610c9f919061178f565b90508060066000828254610cb39190611743565b9091555061098b90507f000000000000000000000000000000000000000000000000000000000000000082611153565b610ceb611212565b6001600160a01b038116610d505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7b565b61098b81611396565b60075460009060ff16610d6c5750600090565b7f0000000000000000000000000000000000000000000000000000000000000000421080610db957507f000000000000000000000000000000000000000000000000000000000000000042115b15610dc45750600090565b7f00000000000000000000000000000000000000000000000000000000000000006006541115610df45750600090565b50600190565b6001600160a01b038316610e5c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a7b565b6001600160a01b038216610ebd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a7b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610f2b8484610b89565b90506000198114610f935781811015610f865760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a7b565b610f938484848403610dfa565b50505050565b6001600160a01b038316610ffd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a7b565b6001600160a01b03821661105f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a7b565b6001600160a01b038316600090815260208190526040902054818110156110d75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a7b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f93565b60008261114a85846113e8565b14949350505050565b6001600160a01b0382166111a95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a7b565b80600260008282546111bb9190611743565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b031633146109e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a7b565b6001600160a01b0382166112cc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a7b565b6001600160a01b038216600090815260208190526040902054818110156113405760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a7b565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610f12565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815b845181101561142d576114198286838151811061140c5761140c6117a2565b6020026020010151611435565b915080611425816117b8565b9150506113ed565b509392505050565b6000818310611451576000828152602084905260409020611460565b60008381526020839052604090205b9392505050565b600060208083528351808285015260005b8181101561149457858101830151858201604001528201611478565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146114cc57600080fd5b919050565b600080604083850312156114e457600080fd5b6114ed836114b5565b946020939093013593505050565b60008060006060848603121561151057600080fd5b611519846114b5565b9250611527602085016114b5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261155e57600080fd5b8135602067ffffffffffffffff8083111561157b5761157b611537565b8260051b604051601f19603f830116810181811084821117156115a0576115a0611537565b6040529384528581018301938381019250878511156115be57600080fd5b83870191505b848210156115dd578135835291830191908301906115c4565b979650505050505050565b600080604083850312156115fb57600080fd5b823567ffffffffffffffff81111561161257600080fd5b61161e8582860161154d565b92505061162d602084016114b5565b90509250929050565b60006020828403121561164857600080fd5b813567ffffffffffffffff81111561165f57600080fd5b61166b8482850161154d565b949350505050565b60006020828403121561168557600080fd5b8135801515811461146057600080fd5b6000602082840312156116a757600080fd5b5035919050565b6000602082840312156116c057600080fd5b611460826114b5565b600080604083850312156116dc57600080fd5b6116e5836114b5565b915061162d602084016114b5565b600181811c9082168061170757607f821691505b60208210810361172757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107d6576107d661172d565b80820281158282048414176107d6576107d661172d565b60008261178a57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107d6576107d661172d565b634e487b7160e01b600052603260045260246000fd5b6000600182016117ca576117ca61172d565b506001019056fea2646970667358221220c84b32daa9b8f746b8dfd1b9b3a47cf03139c687145c7e27dda2fed3ea05929b64736f6c63430008130033a5400974bbb4ea9a2a390ff0f83ade39acd3c008d1a482cff7327ec99ede3ed000000000000000000000000055e80496f2b0bf9451b9122660942b2ca747e549000000000000000000000000d4d9a78adaf4ee8cceb22f9041ea37ad73aa994d0000000000000000000000000ae042d2e5826bfbde038163366f2ae372fe78940000000000000000000000008d428b8245ccd3179a9cf0335365cf53a1beb1030000000000000000000000000000000000000000e04ee0ccb27ac646ac00000000000000000000000000000000000000000000000026ab29af18bc0a0bd6a052
Deployed Bytecode
0x6080604052600436106102085760003560e01c806379cc679011610118578063bb2cd03e116100a0578063d5abeb011161006f578063d5abeb0114610692578063dd62ed3e146106c6578063e836aa8a146106e6578063f2fde38b146106fb578063f75509581461071b57610212565b8063bb2cd03e146105e5578063bc5c41ce146105fa578063c9a4934c1461062e578063d1b6dd301461066257610212565b806395d89b41116100e757806395d89b4114610528578063a457c2d71461053d578063a5ce30d21461055d578063a9059cbb14610591578063aa6baf68146105b157610212565b806379cc6790146104b55780638b37b127146104d55780638da5cb5b146104f45780639255237f1461051257610212565b8063360b3b311161019b57806348c1baff1161016a57806348c1baff146103b65780636a23b2af146103ea5780636a326cca1461043657806370a082311461046a578063715018a6146104a057610212565b8063360b3b3114610335578063395093511461035557806342966c681461037557806342a59e4e1461039557610212565b806323b872dd116101d757806323b872dd146102b75780632d8b9ed7146102d7578063313ce567146102f757806334d332fa1461031357610212565b806306fdde0314610223578063095ea7b31461024e57806318160ddd1461027e578063201042891461029d57610212565b3661021257600080fd5b34801561021e57600080fd5b600080fd5b34801561022f57600080fd5b50610238610730565b6040516102459190611467565b60405180910390f35b34801561025a57600080fd5b5061026e6102693660046114d1565b6107c2565b6040519015158152602001610245565b34801561028a57600080fd5b506002545b604051908152602001610245565b3480156102a957600080fd5b5060075461026e9060ff1681565b3480156102c357600080fd5b5061026e6102d23660046114fb565b6107dc565b3480156102e357600080fd5b5061026e6102f23660046115e8565b610800565b34801561030357600080fd5b5060405160128152602001610245565b34801561031f57600080fd5b5061033361032e366004611636565b610892565b005b34801561034157600080fd5b50610333610350366004611673565b61098e565b34801561036157600080fd5b5061026e6103703660046114d1565b6109a9565b34801561038157600080fd5b50610333610390366004611695565b6109cb565b3480156103a157600080fd5b5060055461026e90600160a01b900460ff1681565b3480156103c257600080fd5b5061028f7f00000000000000000000000000000000000000000026ab29af18bc0a0bd6a05281565b3480156103f657600080fd5b5061041e7f0000000000000000000000008d428b8245ccd3179a9cf0335365cf53a1beb10381565b6040516001600160a01b039091168152602001610245565b34801561044257600080fd5b5061028f7f0000000000000000000000000000000000000000000000000000000064c6f46f81565b34801561047657600080fd5b5061028f6104853660046116ae565b6001600160a01b031660009081526020819052604090205490565b3480156104ac57600080fd5b506103336109d5565b3480156104c157600080fd5b506103336104d03660046114d1565b6109e9565b3480156104e157600080fd5b5060075461026e90610100900460ff1681565b34801561050057600080fd5b506005546001600160a01b031661041e565b34801561051e57600080fd5b5061028f60065481565b34801561053457600080fd5b50610238610a02565b34801561054957600080fd5b5061026e6105583660046114d1565b610a11565b34801561056957600080fd5b5061028f7fa5400974bbb4ea9a2a390ff0f83ade39acd3c008d1a482cff7327ec99ede3ed081565b34801561059d57600080fd5b5061026e6105ac3660046114d1565b610a91565b3480156105bd57600080fd5b5061041e7f0000000000000000000000000ae042d2e5826bfbde038163366f2ae372fe789481565b3480156105f157600080fd5b50610333610a9f565b34801561060657600080fd5b5061028f7f0000000000000000000000000000000000000000000000000000000064504d6f81565b34801561063a57600080fd5b5061028f7f00000000000000000000000000000000000000002cdc935c23b227a7bc00000081565b34801561066e57600080fd5b5061026e61067d3660046116ae565b60086020526000908152604090205460ff1681565b34801561069e57600080fd5b5061028f7f0000000000000000000000000000000000000000e04ee0ccb27ac646ac00000081565b3480156106d257600080fd5b5061028f6106e13660046116c9565b610b89565b3480156106f257600080fd5b50610333610bb4565b34801561070757600080fd5b506103336107163660046116ae565b610ce3565b34801561072757600080fd5b5061026e610d59565b60606003805461073f906116f3565b80601f016020809104026020016040519081016040528092919081815260200182805461076b906116f3565b80156107b85780601f1061078d576101008083540402835291602001916107b8565b820191906000526020600020905b81548152906001019060200180831161079b57829003601f168201915b5050505050905090565b6000336107d0818585610dfa565b60019150505b92915050565b6000336107ea858285610f1f565b6107f5858585610f99565b506001949350505050565b604080516001600160a01b038316602082015260009182910160408051601f1981840301815282825280516020918201209083015201604051602081830303815290604052805190602001209050610879847fa5400974bbb4ea9a2a390ff0f83ade39acd3c008d1a482cff7327ec99ede3ed08361113d565b156108885760019150506107d6565b5060009392505050565b7f00000000000000000000000000000000000000000026ab29af18bc0a0bd6a052600660008282546108c49190611743565b909155506108d29050610d59565b6108ef5760405163b684459160e01b815260040160405180910390fd5b6108f98133610800565b61091657604051633ba2c43760e11b815260040160405180910390fd5b3360009081526008602052604090205460ff161561094757604051632150464360e21b815260040160405180910390fd5b336000818152600860205260409020805460ff1916600117905561098b907f00000000000000000000000000000000000000000026ab29af18bc0a0bd6a052611153565b50565b610996611212565b6007805460ff1916911515919091179055565b6000336107d08185856109bc8383610b89565b6109c69190611743565b610dfa565b61098b338261126c565b6109dd611212565b6109e76000611396565b565b6109f4823383610f1f565b6109fe828261126c565b5050565b60606004805461073f906116f3565b60003381610a1f8286610b89565b905083811015610a845760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6107f58286868403610dfa565b6000336107d0818585610f99565b336001600160a01b037f0000000000000000000000000ae042d2e5826bfbde038163366f2ae372fe78941614610ae857604051631eb49d6d60e11b815260040160405180910390fd5b600554600160a01b900460ff1615610b1357604051632150464360e21b815260040160405180910390fd5b6005805460ff60a01b1916600160a01b1781556109e7907f0000000000000000000000000ae042d2e5826bfbde038163366f2ae372fe789490606490610b7a907f0000000000000000000000000000000000000000e04ee0ccb27ac646ac00000090611756565b610b84919061176d565b611153565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b7f0000000000000000000000000000000000000000000000000000000064c6f46f421015610bf557604051630d29e77160e11b815260040160405180910390fd5b600754610100900460ff1615610c1e57604051632150464360e21b815260040160405180910390fd5b6007805461ff0019166101001790556006547f00000000000000000000000000000000000000002cdc935c23b227a7bc00000011610c6f57604051632150464360e21b815260040160405180910390fd5b60006006547f00000000000000000000000000000000000000002cdc935c23b227a7bc000000610c9f919061178f565b90508060066000828254610cb39190611743565b9091555061098b90507f0000000000000000000000008d428b8245ccd3179a9cf0335365cf53a1beb10382611153565b610ceb611212565b6001600160a01b038116610d505760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a7b565b61098b81611396565b60075460009060ff16610d6c5750600090565b7f0000000000000000000000000000000000000000000000000000000064504d6f421080610db957507f0000000000000000000000000000000000000000000000000000000064c6f46f42115b15610dc45750600090565b7f00000000000000000000000000000000000000002cdc935c23b227a7bc0000006006541115610df45750600090565b50600190565b6001600160a01b038316610e5c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a7b565b6001600160a01b038216610ebd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a7b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610f2b8484610b89565b90506000198114610f935781811015610f865760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a7b565b610f938484848403610dfa565b50505050565b6001600160a01b038316610ffd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a7b565b6001600160a01b03821661105f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a7b565b6001600160a01b038316600090815260208190526040902054818110156110d75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a7b565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610f93565b60008261114a85846113e8565b14949350505050565b6001600160a01b0382166111a95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610a7b565b80600260008282546111bb9190611743565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b031633146109e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a7b565b6001600160a01b0382166112cc5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610a7b565b6001600160a01b038216600090815260208190526040902054818110156113405760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610a7b565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610f12565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081815b845181101561142d576114198286838151811061140c5761140c6117a2565b6020026020010151611435565b915080611425816117b8565b9150506113ed565b509392505050565b6000818310611451576000828152602084905260409020611460565b60008381526020839052604090205b9392505050565b600060208083528351808285015260005b8181101561149457858101830151858201604001528201611478565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146114cc57600080fd5b919050565b600080604083850312156114e457600080fd5b6114ed836114b5565b946020939093013593505050565b60008060006060848603121561151057600080fd5b611519846114b5565b9250611527602085016114b5565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261155e57600080fd5b8135602067ffffffffffffffff8083111561157b5761157b611537565b8260051b604051601f19603f830116810181811084821117156115a0576115a0611537565b6040529384528581018301938381019250878511156115be57600080fd5b83870191505b848210156115dd578135835291830191908301906115c4565b979650505050505050565b600080604083850312156115fb57600080fd5b823567ffffffffffffffff81111561161257600080fd5b61161e8582860161154d565b92505061162d602084016114b5565b90509250929050565b60006020828403121561164857600080fd5b813567ffffffffffffffff81111561165f57600080fd5b61166b8482850161154d565b949350505050565b60006020828403121561168557600080fd5b8135801515811461146057600080fd5b6000602082840312156116a757600080fd5b5035919050565b6000602082840312156116c057600080fd5b611460826114b5565b600080604083850312156116dc57600080fd5b6116e5836114b5565b915061162d602084016114b5565b600181811c9082168061170757607f821691505b60208210810361172757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107d6576107d661172d565b80820281158282048414176107d6576107d661172d565b60008261178a57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107d6576107d661172d565b634e487b7160e01b600052603260045260246000fd5b6000600182016117ca576117ca61172d565b506001019056fea2646970667358221220c84b32daa9b8f746b8dfd1b9b3a47cf03139c687145c7e27dda2fed3ea05929b64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
a5400974bbb4ea9a2a390ff0f83ade39acd3c008d1a482cff7327ec99ede3ed000000000000000000000000055e80496f2b0bf9451b9122660942b2ca747e549000000000000000000000000d4d9a78adaf4ee8cceb22f9041ea37ad73aa994d0000000000000000000000000ae042d2e5826bfbde038163366f2ae372fe78940000000000000000000000008d428b8245ccd3179a9cf0335365cf53a1beb1030000000000000000000000000000000000000000e04ee0ccb27ac646ac00000000000000000000000000000000000000000000000026ab29af18bc0a0bd6a052
-----Decoded View---------------
Arg [0] : airdropMerkleRoot_ (bytes32): 0xa5400974bbb4ea9a2a390ff0f83ade39acd3c008d1a482cff7327ec99ede3ed0
Arg [1] : cexWallet_ (address): 0x55E80496F2b0BF9451b9122660942B2Ca747e549
Arg [2] : dexWallet_ (address): 0xd4D9A78adAf4eE8CCEB22F9041ea37Ad73aA994D
Arg [3] : wsbModeratorsWallet_ (address): 0x0aE042d2E5826BFBDE038163366f2ae372fe7894
Arg [4] : wsbCommunityWallet_ (address): 0x8D428B8245ccd3179A9cf0335365cF53a1bEB103
Arg [5] : maxSupply_ (uint256): 69420000000000000000000000000
Arg [6] : airdropIndividualAllocation_ (uint256): 46747474747474747474747474
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : a5400974bbb4ea9a2a390ff0f83ade39acd3c008d1a482cff7327ec99ede3ed0
Arg [1] : 00000000000000000000000055e80496f2b0bf9451b9122660942b2ca747e549
Arg [2] : 000000000000000000000000d4d9a78adaf4ee8cceb22f9041ea37ad73aa994d
Arg [3] : 0000000000000000000000000ae042d2e5826bfbde038163366f2ae372fe7894
Arg [4] : 0000000000000000000000008d428b8245ccd3179a9cf0335365cf53a1beb103
Arg [5] : 0000000000000000000000000000000000000000e04ee0ccb27ac646ac000000
Arg [6] : 00000000000000000000000000000000000000000026ab29af18bc0a0bd6a052
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.