ERC-20
Overview
Max Total Supply
50,527,997,897,821.49415295327288479 HOTDOG
Holders
16
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000000000001 HOTDOGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
HotDog
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import {IMultiTokenBurnRegistry} from "./common/IMultiTokenBurnRegistry.sol"; import {IMultiTokenMintRegistry} from "./common/IMultiTokenMintRegistry.sol"; import {IERC20CustomErrors} from "./ERC20/extensions/IERC20CustomErrors.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC20/extensions/ERC20ProofOfBurn.sol"; /// @title An ERC20 token supporting an external registry. /// @author BillSchumacher /// @custom:security-contact [email protected] contract HotDog is ERC20, Ownable, ERC20ProofOfBurn, ERC20Burnable { address private _registry; uint256 private _lastFee; uint256 private _zeroAddress; uint256 private _mintFee = 0.01 ether; string private _description; error InsufficientMintFee(uint256 mintFee, uint256 msgValue); constructor( address registry_, address[] memory burnAddresses, address[] memory contractAddresses ) ERC20("Hot Dog", "HOTDOG") Ownable(msg.sender) ERC20ProofOfBurn(burnAddresses, contractAddresses) { _registry = registry_; } /// @inheritdoc ERC20 function balanceOf(address account) public view virtual override returns (uint256) { if (account == address(0)) return _zeroAddress; return ERC20.balanceOf(account); } /// @notice Get the description of the token. /// @dev Returns the description of the token. /// @return (string) - the description of the token. function description() public view returns (string memory) { return _description; } /// @notice Set the description of the token. /// @dev Set the description of the token. /// @param desc (string) - the description of the token. function setDesc(string calldata desc) public onlyOwner { _description = desc; } /// @inheritdoc ERC20 function _update( address from, address to, uint256 value ) internal virtual override(ERC20) { ERC20._update(from, to, value); if (to == address(0)) { _zeroAddress += value; this._updateBurnRegistry(from, value); } if (from == address(0)) { this._updateMintRegistry(to, value); } } /// @notice Get the current fee to mint tokens. /// @dev Returns the current fee to mint tokens. /// @return (uint256) - the current fee to mint tokens. function getMintFee() public view returns (uint256) { return _mintFee; } /// @inheritdoc ERC20ProofOfBurn function beforeMintBurned( address sender, address account ) internal override { uint256 currentMintFee = _mintFee; uint256 sentValue = msg.value; if (sentValue < currentMintFee) { revert InsufficientMintFee(currentMintFee, sentValue); } _mintFee = currentMintFee * 1001 / 1000; sender; account; } /// @dev Update the burn registry. /// @param account (address) - the address of the account. /// @param value (uint256) - the amount of tokens to burn. function _updateBurnRegistry(address account, uint256 value) external { if (msg.sender != address(this)) revert OwnableUnauthorizedAccount(msg.sender); //_registry.call(abi.encodeWithSignature("updateBurnRegistry(address,uint256)", account, value)); IMultiTokenBurnRegistry(_registry).updateBurnRegistry(account, value); } /// @dev Update the mint registry. /// @param account (address) - the address of the account. /// @param value (uint256) - the amount of tokens to mint. function _updateMintRegistry(address account, uint256 value) external { if (msg.sender != address(this)) revert OwnableUnauthorizedAccount(msg.sender); //_registry.call(abi.encodeWithSignature("updateMintRegistry(address,uint256)", account, value)); IMultiTokenMintRegistry(_registry).updateMintRegistry(account, value); } /// @notice Allows the token to receive ether. receive() external payable {} /// @notice Allows the token to withdraw ether. /// @dev Allows the token to withdraw ether. function withdraw() public onlyOwner { uint256 value = address(this).balance; address to = owner(); (bool success,) = to.call{value: value}(""); if (!success) revert IERC20CustomErrors.ERC20TransferFailed(to, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * 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 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. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual 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 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ 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; } /** * @dev See {IERC20-allowance}. */ 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}. * * 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 `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(); _spendAllowance(from, spender, value); _transfer(from, to, 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; } } 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); } /** * @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 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: * ``` * 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 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; import {Context} from "../../../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 a `value` amount of tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 value) public virtual { _burn(_msgSender(), value); } /** * @dev Destroys a `value` amount of 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 * `value`. */ function burnFrom(address account, uint256 value) public virtual { _spendAllowance(account, _msgSender(), value); _burn(account, value); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import {ITokenBurnRegistryStats} from "./ITokenBurnRegistryStats.sol"; /// @title Multi-token Burn registry interface. /// @author BillSchumacher /// @custom:security-contact [email protected] interface IMultiTokenBurnRegistry is ITokenBurnRegistryStats { event TokenBurned( address indexed token, address indexed account, uint256 value, uint256 totalBurned, uint256 totalBurners ); /// @notice Get the total amount of burners. /// @dev Returns the total amount of burners. /// @param token (address) - the address of the token. /// @return (uint256) - the total amount of burners. function totalBurners(address token) external view returns (uint256); /// @notice Get the address of the burner at the given index. /// @dev Returns the address of the burner at the given index. /// @param token (address) - the address of the token. /// @param index (uint256) - the index of the burner. /// @return (address) - the address of the burner. function burner( address token, uint256 index ) external view returns (address); /// @notice Get the addresses of the first `amount` burners. /// @dev Returns the addresses of the first `amount` burners. /// @param token (address) - the address of the token. /// @param amount (uint256) - the amount of burners. /// @return (address[] memory) - the addresses of the burners. function firstBurners( address token, uint256 amount ) external view returns (address[] memory); /// @notice Get the addresses of the last `amount` burners. /// @dev Returns the addresses of the last `amount` burners. /// @param token (address) - the address of the token. /// @param amount (uint256) - the amount of burners. /// @return (address[] memory) - the addresses of the burners. function lastBurners( address token, uint256 amount ) external view returns (address[] memory); /// @notice Get the amount of tokens burned by the given address. /// @dev Returns the amount of tokens burned by the given address. /// @param token (address) - the address of the token. /// @param account (address) - the address of the account. /// @return (uint256) - the total amount of tokens burned. function burnedFrom( address token, address account ) external view returns (uint256); /// @notice Get the total amount of burners. /// @dev Returns the total amount of burners. /// @param token (address) - the address of the token. /// @return (uint256) - the total amount of burners. function burns(address token) external view returns (uint256); /// @notice Get the total amount of tokens burned. /// @dev Returns the total amount of tokens burned. /// @param token (address) - the address of the token. /// @return (uint256) - the total amount of tokens burned. function totalBurned(address token) external view returns (uint256); /// @dev Update the burn registry, uses the sender as the token address. /// @param account (address) - the address of the account. /// @param value (uint256) - the amount of tokens to burn. function updateBurnRegistry( address account, uint256 value ) external payable; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import {ITokenMintRegistryStats} from "./ITokenMintRegistryStats.sol"; /// @title Multi-token mint registry interface. /// @author BillSchumacher /// @custom:security-contact [email protected] interface IMultiTokenMintRegistry is ITokenMintRegistryStats { event TokenMinted( address indexed token, address indexed account, uint256 value, uint256 totalMinted, uint256 totalMinters ); /// @notice Get the address of the minter at the given index. /// @dev Returns the address of the minter at the given index. /// @param token (address) - the address of the token. /// @param index (uint256) - the index of the minter. /// @return (address) - the address of the minter. function minter( address token, uint256 index ) external view returns (address); /// @notice Get the total amount of minters. /// @dev Returns the total amount of minters. /// @param token (address) - the address of the token. /// @return (uint256) - the total amount of minters. function totalMinters(address token) external view returns (uint256); /// @notice Get the addresses of the first `amount` minters. /// @dev Returns the addresses of the first `amount` minters. /// @param token (address) - the address of the token. /// @param amount (uint256) - the amount of minters. /// @return (address[] memory) - the addresses of the minters. function firstMinters( address token, uint256 amount ) external view returns (address[] memory); /// @notice Get the addresses of the last `amount` minters. /// @dev Returns the addresses of the last `amount` minters. /// @param token (address) - the address of the token. /// @param amount (uint256) - the amount of minters. /// @return (address[] memory) - the addresses of the minters. function lastMinters( address token, uint256 amount ) external view returns (address[] memory); /// @notice Get the amount of tokens minted by the given address. /// @dev Returns the amount of tokens minted by the given address. /// @param token (address) - the address of the token. /// @param account (address) - the address of the account. /// @return (uint256) - the amount of tokens minted. function mintedBy( address token, address account ) external view returns (uint256); /// @notice Get the total amount of tokens minted. /// @dev Returns the total amount of tokens minted. /// @param token (address) - the address of the token. /// @return (uint256) - the total amount of tokens minted. function totalMinted(address token) external view returns (uint256); /// @dev Update the mint registry. /// @param account (address) - the address of the account. /// @param value (uint256) - the amount of tokens to mint. function updateMintRegistry( address account, uint256 value ) external payable; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; interface IERC20CustomErrors { error ERC20TransferFailed(address to, uint256 balance); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 pragma solidity 0.8.25; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {Context} from "@openzeppelin/contracts/utils/Context.sol"; import {NoTokensToMint} from "./ERC20MintyBurnyErrors.sol"; /// @title A smart contract that checks for burned tokens and mints new tokens based on the burned tokens. /// @author BillSchumacher /// @custom:security-contact [email protected] abstract contract ERC20ProofOfBurn is Context, ERC20 { uint256 private _lastBurned; address[] internal _burnAddresses; address[] internal _burnContracts; constructor( address[] memory burnAddresses, address[] memory burnContracts ) { _burnAddresses = burnAddresses; _burnContracts = burnContracts; } /// @notice Get the last amount of tokens that were burned. /// @dev Returns the last amount of tokens that were burned. /// @return (uint256) - the last amount of tokens that were burned. function lastBurned() public view returns (uint256) { return _lastBurned; } /// @dev Set the last amount of tokens that were burned. Override to customize. /// @param value (uint256) - the last amount of tokens that were burned. function setLastBurned(uint256 value) internal virtual { _lastBurned = value; } /// @notice Get the amount of tokens eligible to be minted. /// @dev Returns the amount of tokens eligible to be minted. /// @return balance (uint256) - the amount of tokens eligible to be minted. function getCurrentBurned() public payable virtual returns (uint256 balance) { address[] memory eligibleBurnAddresses = _burnAddresses; address[] memory eligibleBurnContracts = _burnContracts; uint256 addressLength = _burnAddresses.length; uint256 contractLength = _burnContracts.length; for (uint256 i; i < contractLength;) { ERC20 tokenContract = ERC20(eligibleBurnContracts[i]); for (uint256 j; j < addressLength;) { balance += tokenContract.balanceOf(eligibleBurnAddresses[j]); unchecked { ++j; } } unchecked { ++i; } } return balance; } /// @notice Get the ratio of tokens to mint. /// @dev Returns the ratio of tokens to mint. Override to customize. Divided by 10000. 5000 = 0.5 (default) /// @return (uint256) - the ratio of tokens to mint. function mintRatio() public pure virtual returns (uint256) { return 5000; } /// @notice Get the ratio of tokens to mint for ProofOfBurn. /// @dev Returns the ratio of tokens to mint for ProofOfBurn. Override to customize. Divided by 10000. 5000 = 0.5 (default) /// @return (uint256) - the ratio of tokens to mint. function burnMintRatio() public view virtual returns (uint256) { return mintRatio(); } /// @dev Handle access control, accounting, and any conditions here before minting, revert if failed. /// @param sender (address) - the address of the sender. /// @param account (address) - the address of the account. function beforeMintBurned( address sender, address account ) internal virtual {} /// @dev Update the mint registry or perform other accounting. Override to customize. /// @param account (address) - the address of the account. /// @param value (uint256) - the amount of tokens minted. function afterMintBurned(address account, uint256 value) internal virtual {} /// @dev Mints the burned tokens for the configured contracts and addresses. /// @param account (address) - the address of the account. /// @return (uint256) - the amount of tokens minted. function _doMintBurned(address account) internal virtual returns (uint256) { uint256 balance = getCurrentBurned(); uint256 tokensLastBurned = lastBurned(); if (balance <= tokensLastBurned) { revert NoTokensToMint(); } uint256 tokens = (balance - tokensLastBurned) * burnMintRatio() / 10000; setLastBurned(balance); _mint(account, tokens); return tokens; } /// @notice Mints the burned tokens for the configured contracts and addresses. /// @dev Mints the burned tokens for the configured contracts and addresses. /// @return tokens (uint256) - the amount of tokens minted. function mintBurned() public payable virtual returns (uint256 tokens) { address sender = _msgSender(); beforeMintBurned(sender, sender); tokens = _doMintBurned(sender); afterMintBurned(sender, tokens); return tokens; } /// @notice Mints the burned tokens for the configured contracts and addresses. /// @dev Mints the burned tokens for the configured contracts and addresses. /// @return tokens (uint256) - the amount of tokens minted. function mintBurnedFor(address account) public payable virtual returns (uint256 tokens) { address sender = _msgSender(); beforeMintBurned(sender, account); tokens = _doMintBurned(account); afterMintBurned(account, tokens); return tokens; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @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. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; /// @title Token Burn registry interface. /// @author BillSchumacher /// @custom:security-contact [email protected] interface ITokenBurnRegistryStats { struct TokenBurnStats { uint256 totalBurned; uint256 totalBurners; mapping(address account => uint256 value) burned; mapping(uint256 index => address account) burnAddresses; } event Burned( address indexed account, uint256 value, uint256 totalBurned, uint256 totalBurners ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; /// @title Multi-token mint registry interface. /// @author BillSchumacher /// @custom:security-contact [email protected] interface ITokenMintRegistryStats { struct TokenMintStats { uint256 totalMinted; uint256 totalMinters; mapping(address => uint256) minted; mapping(uint256 => address) mintAddresses; } event Minted( address indexed account, uint256 value, uint256 totalMinted, uint256 totalMinters ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; error NoTokensToMint();
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/", "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/", "solidity-bytes-utils/=lib/solidity-bytes-utils/contracts/", "solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"registry_","type":"address"},{"internalType":"address[]","name":"burnAddresses","type":"address[]"},{"internalType":"address[]","name":"contractAddresses","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"ERC20TransferFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"mintFee","type":"uint256"},{"internalType":"uint256","name":"msgValue","type":"uint256"}],"name":"InsufficientMintFee","type":"error"},{"inputs":[],"name":"NoTokensToMint","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"_updateBurnRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"_updateMintRegistry","outputs":[],"stateMutability":"nonpayable","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":"value","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":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnMintRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBurned","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getMintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintBurned","outputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"mintBurnedFor","outputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"string","name":"desc","type":"string"}],"name":"setDesc","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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052662386f26fc10000600c5534801561001b57600080fd5b506040516117cc3803806117cc83398101604081905261003a916102c8565b81813360405180604001604052806007815260200166486f7420446f6760c81b81525060405180604001604052806006815260200165484f54444f4760d01b815250816003908161008b91906103c7565b50600461009882826103c7565b5050506001600160a01b0381166100c957604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100d281610126565b5081516100e6906007906020850190610178565b5080516100fa906008906020840190610178565b5050600980546001600160a01b0319166001600160a01b03959095169490941790935550610486915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156101cd579160200282015b828111156101cd57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190610198565b506101d99291506101dd565b5090565b5b808211156101d957600081556001016101de565b80516001600160a01b038116811461020957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261023557600080fd5b815160206001600160401b03808311156102515761025161020e565b8260051b604051601f19603f830116810181811084821117156102765761027661020e565b604052938452602081870181019490810192508785111561029657600080fd5b6020870191505b848210156102bd576102ae826101f2565b8352918301919083019061029d565b979650505050505050565b6000806000606084860312156102dd57600080fd5b6102e6846101f2565b60208501519093506001600160401b038082111561030357600080fd5b61030f87838801610224565b9350604086015191508082111561032557600080fd5b5061033286828701610224565b9150509250925092565b600181811c9082168061035057607f821691505b60208210810361037057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103c2576000816000526020600020601f850160051c8101602086101561039f5750805b601f850160051c820191505b818110156103be578281556001016103ab565b5050505b505050565b81516001600160401b038111156103e0576103e061020e565b6103f4816103ee845461033c565b84610376565b602080601f83116001811461042957600084156104115750858301515b600019600386901b1c1916600185901b1785556103be565b600085815260208120601f198616915b8281101561045857888601518255948401946001909101908401610439565b50858210156104765787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611337806104956000396000f3fe6080604052600436106101855760003560e01c806379cc6790116100d1578063a9059cbb1161008a578063dbee2c2711610064578063dbee2c27146103d4578063dd62ed3e146103e7578063ef3463401461042d578063f2fde38b1461044d57600080fd5b8063a9059cbb14610397578063ae47d43f146103b7578063c3643025146103cc57600080fd5b806379cc6790146103055780637a5caab3146103255780638839fb2c1461027e5780638da5cb5b1461033a57806395d89b41146103625780639614c7691461037757600080fd5b80633ccfd60b1161013e57806370a082311161011857806370a08231146102b3578063715018a6146102d35780637284e416146102e8578063787da305146102fd57600080fd5b80633ccfd60b146102695780633f9bcc6c1461027e57806342966c681461029357600080fd5b806306fdde0314610191578063095ea7b3146101bc57806318160ddd146101ec57806323b872dd1461020b578063313ce5671461022b578063398bf15f1461024757600080fd5b3661018c57005b600080fd5b34801561019d57600080fd5b506101a661046d565b6040516101b39190610f59565b60405180910390f35b3480156101c857600080fd5b506101dc6101d7366004610fc4565b6104ff565b60405190151581526020016101b3565b3480156101f857600080fd5b506002545b6040519081526020016101b3565b34801561021757600080fd5b506101dc610226366004610fee565b610519565b34801561023757600080fd5b50604051601281526020016101b3565b34801561025357600080fd5b50610267610262366004610fc4565b61053d565b005b34801561027557600080fd5b506102676105cf565b34801561028a57600080fd5b506113886101fd565b34801561029f57600080fd5b506102676102ae36600461102a565b610679565b3480156102bf57600080fd5b506101fd6102ce366004611043565b610686565b3480156102df57600080fd5b506102676106bc565b3480156102f457600080fd5b506101a66106d0565b6101fd6106df565b34801561031157600080fd5b50610267610320366004610fc4565b610897565b34801561033157600080fd5b50600c546101fd565b34801561034657600080fd5b506005546040516001600160a01b0390911681526020016101b3565b34801561036e57600080fd5b506101a66108b0565b34801561038357600080fd5b50610267610392366004611065565b6108bf565b3480156103a357600080fd5b506101dc6103b2366004610fc4565b6108d4565b3480156103c357600080fd5b506006546101fd565b6101fd6108e2565b6101fd6103e2366004611043565b6108fe565b3480156103f357600080fd5b506101fd6104023660046110d7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561043957600080fd5b50610267610448366004610fc4565b61091d565b34801561045957600080fd5b50610267610468366004611043565b610978565b60606003805461047c9061110a565b80601f01602080910402602001604051908101604052809291908181526020018280546104a89061110a565b80156104f55780601f106104ca576101008083540402835291602001916104f5565b820191906000526020600020905b8154815290600101906020018083116104d857829003601f168201915b5050505050905090565b60003361050d8185856109b3565b60019150505b92915050565b6000336105278582856109c0565b610532858585610a3e565b506001949350505050565b3330146105645760405163118cdaa760e01b81523360048201526024015b60405180910390fd5b6009546040516324d0a80960e01b81526001600160a01b03848116600483015260248201849052909116906324d0a809906044015b600060405180830381600087803b1580156105b357600080fd5b505af11580156105c7573d6000803e3d6000fd5b505050505050565b6105d7610a9d565b4760006105ec6005546001600160a01b031690565b90506000816001600160a01b03168360405160006040518083038185875af1925050503d806000811461063b576040519150601f19603f3d011682016040523d82523d6000602084013e610640565b606091505b50509050806106745760405163029b46a360e41b81526001600160a01b03831660048201526024810184905260440161055b565b505050565b6106833382610aca565b50565b60006001600160a01b03821661069e575050600b5490565b6001600160a01b038216600090815260208190526040902054610513565b6106c4610a9d565b6106ce6000610b00565b565b6060600d805461047c9061110a565b600080600780548060200260200160405190810160405280929190818152602001828054801561073857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161071a575b505050505090506000600880548060200260200160405190810160405280929190818152602001828054801561079757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610779575b505060075460085494955093925060009150505b8181101561088f5760008482815181106107c7576107c761113e565b6020026020010151905060005b8481101561088557816001600160a01b03166370a082318883815181106107fd576107fd61113e565b60200260200101516040518263ffffffff1660e01b815260040161083091906001600160a01b0391909116815260200190565b602060405180830381865afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190611154565b61087b9089611183565b97506001016107d4565b50506001016107ab565b505050505090565b6108a28233836109c0565b6108ac8282610aca565b5050565b60606004805461047c9061110a565b6108c7610a9d565b600d6106748284836111f4565b60003361050d818585610a3e565b6000336108ef8180610b52565b6108f881610ba3565b91505090565b60003361090b8184610b52565b61091483610ba3565b91505b50919050565b33301461093f5760405163118cdaa760e01b815233600482015260240161055b565b600954604051630a45508560e41b81526001600160a01b038481166004830152602482018490529091169063a455085090604401610599565b610980610a9d565b6001600160a01b0381166109aa57604051631e4fbdf760e01b81526000600482015260240161055b565b61068381610b00565b6106748383836001610c20565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610a385781811015610a2957604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161055b565b610a3884848484036000610c20565b50505050565b6001600160a01b038316610a6857604051634b637e8f60e11b81526000600482015260240161055b565b6001600160a01b038216610a925760405163ec442f0560e01b81526000600482015260240161055b565b610674838383610cf5565b6005546001600160a01b031633146106ce5760405163118cdaa760e01b815233600482015260240161055b565b6001600160a01b038216610af457604051634b637e8f60e11b81526000600482015260240161055b565b6108ac82600083610cf5565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c543481811015610b815760405163aa3a2df760e01b8152600481018390526024810182905260440161055b565b6103e8610b90836103e96112b5565b610b9a91906112cc565b600c5550505050565b600080610bae6106df565b90506000610bbb60065490565b9050808211610bdd5760405163503a85a760e11b815260040160405180910390fd5b6000612710611388610bef84866112ee565b610bf991906112b5565b610c0391906112cc565b9050610c0e83600655565b610c188582610df9565b949350505050565b6001600160a01b038416610c4a5760405163e602df0560e01b81526000600482015260240161055b565b6001600160a01b038316610c7457604051634a1406b160e11b81526000600482015260240161055b565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610a3857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ce791815260200190565b60405180910390a350505050565b610d00838383610e2f565b6001600160a01b038216610d865780600b6000828254610d209190611183565b909155505060405163398bf15f60e01b81526001600160a01b038416600482015260248101829052309063398bf15f90604401600060405180830381600087803b158015610d6d57600080fd5b505af1158015610d81573d6000803e3d6000fd5b505050505b6001600160a01b038316610674576040516303bcd18d60e61b81526001600160a01b038316600482015260248101829052309063ef34634090604401600060405180830381600087803b158015610ddc57600080fd5b505af1158015610df0573d6000803e3d6000fd5b50505050505050565b6001600160a01b038216610e235760405163ec442f0560e01b81526000600482015260240161055b565b6108ac60008383610cf5565b6001600160a01b038316610e5a578060026000828254610e4f9190611183565b90915550610ecc9050565b6001600160a01b03831660009081526020819052604090205481811015610ead5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161055b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ee857600280548290039055610f07565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f4c91815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b81811015610f8757858101830151858201604001528201610f6b565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610fbf57600080fd5b919050565b60008060408385031215610fd757600080fd5b610fe083610fa8565b946020939093013593505050565b60008060006060848603121561100357600080fd5b61100c84610fa8565b925061101a60208501610fa8565b9150604084013590509250925092565b60006020828403121561103c57600080fd5b5035919050565b60006020828403121561105557600080fd5b61105e82610fa8565b9392505050565b6000806020838503121561107857600080fd5b823567ffffffffffffffff8082111561109057600080fd5b818501915085601f8301126110a457600080fd5b8135818111156110b357600080fd5b8660208285010111156110c557600080fd5b60209290920196919550909350505050565b600080604083850312156110ea57600080fd5b6110f383610fa8565b915061110160208401610fa8565b90509250929050565b600181811c9082168061111e57607f821691505b60208210810361091757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561116657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105135761051361116d565b634e487b7160e01b600052604160045260246000fd5b601f821115610674576000816000526020600020601f850160051c810160208610156111d55750805b601f850160051c820191505b818110156105c7578281556001016111e1565b67ffffffffffffffff83111561120c5761120c611196565b6112208361121a835461110a565b836111ac565b6000601f841160018114611254576000851561123c5750838201355b600019600387901b1c1916600186901b1783556112ae565b600083815260209020601f19861690835b828110156112855786850135825560209485019460019092019101611265565b50868210156112a25760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b80820281158282048414176105135761051361116d565b6000826112e957634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156105135761051361116d56fea2646970667358221220fcaaa24d365634c9859932fcf958e10e3979cb6c60951644eae773cbfc32e6f564736f6c634300081900330000000000000000000000004fbc1714767861e4293ddc4764c2e68fbe1f3856000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dead000000000000000042069420694206942069000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000000000000000000000000000000000000000000100000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
Deployed Bytecode
0x6080604052600436106101855760003560e01c806379cc6790116100d1578063a9059cbb1161008a578063dbee2c2711610064578063dbee2c27146103d4578063dd62ed3e146103e7578063ef3463401461042d578063f2fde38b1461044d57600080fd5b8063a9059cbb14610397578063ae47d43f146103b7578063c3643025146103cc57600080fd5b806379cc6790146103055780637a5caab3146103255780638839fb2c1461027e5780638da5cb5b1461033a57806395d89b41146103625780639614c7691461037757600080fd5b80633ccfd60b1161013e57806370a082311161011857806370a08231146102b3578063715018a6146102d35780637284e416146102e8578063787da305146102fd57600080fd5b80633ccfd60b146102695780633f9bcc6c1461027e57806342966c681461029357600080fd5b806306fdde0314610191578063095ea7b3146101bc57806318160ddd146101ec57806323b872dd1461020b578063313ce5671461022b578063398bf15f1461024757600080fd5b3661018c57005b600080fd5b34801561019d57600080fd5b506101a661046d565b6040516101b39190610f59565b60405180910390f35b3480156101c857600080fd5b506101dc6101d7366004610fc4565b6104ff565b60405190151581526020016101b3565b3480156101f857600080fd5b506002545b6040519081526020016101b3565b34801561021757600080fd5b506101dc610226366004610fee565b610519565b34801561023757600080fd5b50604051601281526020016101b3565b34801561025357600080fd5b50610267610262366004610fc4565b61053d565b005b34801561027557600080fd5b506102676105cf565b34801561028a57600080fd5b506113886101fd565b34801561029f57600080fd5b506102676102ae36600461102a565b610679565b3480156102bf57600080fd5b506101fd6102ce366004611043565b610686565b3480156102df57600080fd5b506102676106bc565b3480156102f457600080fd5b506101a66106d0565b6101fd6106df565b34801561031157600080fd5b50610267610320366004610fc4565b610897565b34801561033157600080fd5b50600c546101fd565b34801561034657600080fd5b506005546040516001600160a01b0390911681526020016101b3565b34801561036e57600080fd5b506101a66108b0565b34801561038357600080fd5b50610267610392366004611065565b6108bf565b3480156103a357600080fd5b506101dc6103b2366004610fc4565b6108d4565b3480156103c357600080fd5b506006546101fd565b6101fd6108e2565b6101fd6103e2366004611043565b6108fe565b3480156103f357600080fd5b506101fd6104023660046110d7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561043957600080fd5b50610267610448366004610fc4565b61091d565b34801561045957600080fd5b50610267610468366004611043565b610978565b60606003805461047c9061110a565b80601f01602080910402602001604051908101604052809291908181526020018280546104a89061110a565b80156104f55780601f106104ca576101008083540402835291602001916104f5565b820191906000526020600020905b8154815290600101906020018083116104d857829003601f168201915b5050505050905090565b60003361050d8185856109b3565b60019150505b92915050565b6000336105278582856109c0565b610532858585610a3e565b506001949350505050565b3330146105645760405163118cdaa760e01b81523360048201526024015b60405180910390fd5b6009546040516324d0a80960e01b81526001600160a01b03848116600483015260248201849052909116906324d0a809906044015b600060405180830381600087803b1580156105b357600080fd5b505af11580156105c7573d6000803e3d6000fd5b505050505050565b6105d7610a9d565b4760006105ec6005546001600160a01b031690565b90506000816001600160a01b03168360405160006040518083038185875af1925050503d806000811461063b576040519150601f19603f3d011682016040523d82523d6000602084013e610640565b606091505b50509050806106745760405163029b46a360e41b81526001600160a01b03831660048201526024810184905260440161055b565b505050565b6106833382610aca565b50565b60006001600160a01b03821661069e575050600b5490565b6001600160a01b038216600090815260208190526040902054610513565b6106c4610a9d565b6106ce6000610b00565b565b6060600d805461047c9061110a565b600080600780548060200260200160405190810160405280929190818152602001828054801561073857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161071a575b505050505090506000600880548060200260200160405190810160405280929190818152602001828054801561079757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610779575b505060075460085494955093925060009150505b8181101561088f5760008482815181106107c7576107c761113e565b6020026020010151905060005b8481101561088557816001600160a01b03166370a082318883815181106107fd576107fd61113e565b60200260200101516040518263ffffffff1660e01b815260040161083091906001600160a01b0391909116815260200190565b602060405180830381865afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108719190611154565b61087b9089611183565b97506001016107d4565b50506001016107ab565b505050505090565b6108a28233836109c0565b6108ac8282610aca565b5050565b60606004805461047c9061110a565b6108c7610a9d565b600d6106748284836111f4565b60003361050d818585610a3e565b6000336108ef8180610b52565b6108f881610ba3565b91505090565b60003361090b8184610b52565b61091483610ba3565b91505b50919050565b33301461093f5760405163118cdaa760e01b815233600482015260240161055b565b600954604051630a45508560e41b81526001600160a01b038481166004830152602482018490529091169063a455085090604401610599565b610980610a9d565b6001600160a01b0381166109aa57604051631e4fbdf760e01b81526000600482015260240161055b565b61068381610b00565b6106748383836001610c20565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610a385781811015610a2957604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161055b565b610a3884848484036000610c20565b50505050565b6001600160a01b038316610a6857604051634b637e8f60e11b81526000600482015260240161055b565b6001600160a01b038216610a925760405163ec442f0560e01b81526000600482015260240161055b565b610674838383610cf5565b6005546001600160a01b031633146106ce5760405163118cdaa760e01b815233600482015260240161055b565b6001600160a01b038216610af457604051634b637e8f60e11b81526000600482015260240161055b565b6108ac82600083610cf5565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600c543481811015610b815760405163aa3a2df760e01b8152600481018390526024810182905260440161055b565b6103e8610b90836103e96112b5565b610b9a91906112cc565b600c5550505050565b600080610bae6106df565b90506000610bbb60065490565b9050808211610bdd5760405163503a85a760e11b815260040160405180910390fd5b6000612710611388610bef84866112ee565b610bf991906112b5565b610c0391906112cc565b9050610c0e83600655565b610c188582610df9565b949350505050565b6001600160a01b038416610c4a5760405163e602df0560e01b81526000600482015260240161055b565b6001600160a01b038316610c7457604051634a1406b160e11b81526000600482015260240161055b565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610a3857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ce791815260200190565b60405180910390a350505050565b610d00838383610e2f565b6001600160a01b038216610d865780600b6000828254610d209190611183565b909155505060405163398bf15f60e01b81526001600160a01b038416600482015260248101829052309063398bf15f90604401600060405180830381600087803b158015610d6d57600080fd5b505af1158015610d81573d6000803e3d6000fd5b505050505b6001600160a01b038316610674576040516303bcd18d60e61b81526001600160a01b038316600482015260248101829052309063ef34634090604401600060405180830381600087803b158015610ddc57600080fd5b505af1158015610df0573d6000803e3d6000fd5b50505050505050565b6001600160a01b038216610e235760405163ec442f0560e01b81526000600482015260240161055b565b6108ac60008383610cf5565b6001600160a01b038316610e5a578060026000828254610e4f9190611183565b90915550610ecc9050565b6001600160a01b03831660009081526020819052604090205481811015610ead5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161055b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ee857600280548290039055610f07565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f4c91815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b81811015610f8757858101830151858201604001528201610f6b565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610fbf57600080fd5b919050565b60008060408385031215610fd757600080fd5b610fe083610fa8565b946020939093013593505050565b60008060006060848603121561100357600080fd5b61100c84610fa8565b925061101a60208501610fa8565b9150604084013590509250925092565b60006020828403121561103c57600080fd5b5035919050565b60006020828403121561105557600080fd5b61105e82610fa8565b9392505050565b6000806020838503121561107857600080fd5b823567ffffffffffffffff8082111561109057600080fd5b818501915085601f8301126110a457600080fd5b8135818111156110b357600080fd5b8660208285010111156110c557600080fd5b60209290920196919550909350505050565b600080604083850312156110ea57600080fd5b6110f383610fa8565b915061110160208401610fa8565b90509250929050565b600181811c9082168061111e57607f821691505b60208210810361091757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b60006020828403121561116657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105135761051361116d565b634e487b7160e01b600052604160045260246000fd5b601f821115610674576000816000526020600020601f850160051c810160208610156111d55750805b601f850160051c820191505b818110156105c7578281556001016111e1565b67ffffffffffffffff83111561120c5761120c611196565b6112208361121a835461110a565b836111ac565b6000601f841160018114611254576000851561123c5750838201355b600019600387901b1c1916600186901b1783556112ae565b600083815260209020601f19861690835b828110156112855786850135825560209485019460019092019101611265565b50868210156112a25760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b80820281158282048414176105135761051361116d565b6000826112e957634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156105135761051361116d56fea2646970667358221220fcaaa24d365634c9859932fcf958e10e3979cb6c60951644eae773cbfc32e6f564736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004fbc1714767861e4293ddc4764c2e68fbe1f3856000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dead000000000000000042069420694206942069000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000000000000000000000000000000000000000000100000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
-----Decoded View---------------
Arg [0] : registry_ (address): 0x4fbC1714767861e4293dDc4764C2e68fBe1f3856
Arg [1] : burnAddresses (address[]): 0x0000000000000000000000000000000000000000,0xdEAD000000000000000042069420694206942069,0x000000000000000000000000000000000000dEaD
Arg [2] : contractAddresses (address[]): 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000004fbc1714767861e4293ddc4764c2e68fbe1f3856
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 000000000000000000000000dead000000000000000042069420694206942069
Arg [6] : 000000000000000000000000000000000000000000000000000000000000dead
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 00000000000000000000000095ad61b0a150d79219dcf64e1e6cc01f0b64c4ce
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.