ERC-20
Overview
Max Total Supply
768,013,621.809862869999999995 MEME
Holders
1,436
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
313,325.946 MEMEValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MEME
Compiler Version
v0.8.0+commit.c7dfd78e
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.0; /// @dao: MEME /// @author: Wizard /* %//% .%%%%%%%/ #%////% %%%%( %#((////%%% %%//////% %&(//((% %%(((//////%%# .%////////% %&%/////((%# %((((///////#%& %//////////% %%//////(((#% %#((((////////%%. %//////////(%%%%///////((((%% %#(((((/////////%%(((/////(((%////////(((((% /%%% %(((((((/////////%(((((((%/////////(((((% %%%%////(%% %%%%%%%%%%%%%. %(((((((//////////&(((#////////((((((%. %%%//////((%% %%%(((/////////%%% %%((((((((//////////%////////((((((%%%//////(((%# (%%(((((////////%%(((((((((//////////(%////((((((%//////(((%% %%((((((////////%((((((((///////////%/((((&//////((((%% %%(((((((///////(%((((((///////////&%///////((((%% %%((((((((///////%#((((////////%//////(((((%% %#((((((((////////%(((////%//////((((((% %&(((((((((////////&(/%///////(((((%%%%%%% %%%%%%%%%(((((%%(////%%%%//%/////(((%%#????,%( %?????,,%#////////%(((((%///%/(%%,????,,,% ?%%,,???%%////////%(((((((%//%,,???,,,,,,%///% %///#%,,,,???%//////%%%%%%%%%%,,????,,,,,,,%//(// (%,,,,,,??%////%?,,,,,,%%,,???,,,,,,,,,%? %%%,,????%//%,,??????,,,,%%?,,,,,,,,,,%% %%,,,????,,%%,,,,,,,,,???????,%%%,,,,,,,,%% %/?,?????,,,,,,,,,,,,,,????????,,,,,,%%,,,,% %????/%%%%,,,,,,,,,,,,,,???,,,,,???,,,,,,%,,,% %#??,% %%%%%??,,,,,,,%?%#%%%,,,,,,,???,,,,,,,,?% %,,,,,,%%%%,??????,,%% %(%%%,,,,,,,,,????,,,,???% %,,,,,,,%(,,,,,,,,???,???,,,,,,,,,,,,,,,????,???,,% %,,,?%%%%%%,,,,,,,,????,,,,,,,,,,,,,,,,,,,?????,,,% %?,(%%#######%,,?????,????,,,,,,,,,,,,,,,,,??????,,%% %???/%####%%%????,,,,,,,????,,,,,,,,,,,,,????,,???,%% %%,,(??,%?,,???,,,,,,,,,,,,?????,,,,,,,,,???,,,,,???% %%,,,%??(,????,,,,,,,,,,,,,,,,?????,,,,???,,,,,,,???% %,,,,,%%##%%,,,,,,,,,,,#,,,,,,,,,??????,,,,,,,,,,?%% %,,,,,%??,,,,????,,,,,,,,,,,,,,,??????,,,,,,,,,??% %,,,,???,%%%%%%%/?,,,,,,,,,,????,,,,????,,,,,??% %%???,,,,,,,,,,,????,,,,?????,,,,,,,,???,????% %?,,,,,,,,,,,,,,???????,,,,,,,,,,,,,?????,% %,,,,,,,,???????????,,,,,,,,,,,,??????%% %/??????,,,,,,,,???,,,,,,,,?????,,%% %%,,,,,,,,,,,,,???,,,,?????,,%% %%%,,,,,,,,,,,???????,%%, %%%%%%%%%%%%%( */ import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./DontBurnMeme.sol"; interface OriginalMemeToken { function balanceOf(address account) external view returns (uint256); function burnFrom(address account, uint256 amount) external; } contract MEME is ERC20, ERC20Capped, ReentrancyGuard, Ownable { OriginalMemeToken public meme; DontBurnMeme public burntoken; uint256 public constant DENOMINATOR = 10000; uint256 public constant MULTIPLYER = 15; uint256 public dontBurn = 35555 * (10**uint256(18)); uint256 internal _mustSwap = 5 * (10**uint256(8)); bool public treasuryMinted; address public memeTreasury; uint256 public burnToTreasury = 300; bool public allowSwap = false; event Swap(address sender, uint256 amount, uint256 received); constructor(address _memeAddress, address _treasury) ERC20("MEME Inu.", "MEME") ERC20Capped(30800 * (10**uint256(23))) { meme = OriginalMemeToken(_memeAddress); memeTreasury = _treasury; } function setAllowSwap(bool allow) public virtual onlyOwner { allowSwap = allow; } function setMemeTreasury(address treasury) public virtual onlyOwner { memeTreasury = treasury; } function setBurnToTreasury(uint256 _amount) public virtual onlyOwner { burnToTreasury = _amount; } function setBurnToken(address _burntoken) public virtual onlyOwner { burntoken = DontBurnMeme(_burntoken); } function setDontBurn(uint256 amount) public virtual onlyOwner { dontBurn = amount; } function setMustBurn(uint256 amount) public virtual onlyOwner { dontBurn = amount; } function mintTreasuryAmount() public virtual onlyOwner { require(treasuryMinted == false, "cannot mint more"); treasuryMinted = true; _mint(memeTreasury, 280000000 * (10**uint256(18))); } function mintAmount(uint256 amount) public view virtual returns (uint256 swapAmount) { return amount * (10**uint256(MULTIPLYER)); } function swapMax() public virtual nonReentrant returns (uint256 received) { uint256 amount = meme.balanceOf(_msgSender()); return swap(amount); } function swap(uint256 amount) public virtual nonReentrant returns (uint256 received) { require(allowSwap == true, "meme inu says wait"); require(_msgSender() != address(0), "swap from the zero address"); require( meme.balanceOf(_msgSender()) >= amount, "swap amount exceeds balance" ); uint256 balance = meme.balanceOf(_msgSender()); uint256 amountToBurn = amount; uint256 amountToMint = mintAmount(amount); meme.burnFrom(_msgSender(), amountToBurn); // check the balance after burn require( meme.balanceOf(_msgSender()) == (balance - amount), "burn failed" ); _mint(_msgSender(), amountToMint); _afterSwap(_msgSender(), amount); emit Swap(_msgSender(), amount, amountToMint); return amountToMint; } function burn(uint256 amount) public virtual { uint256 treasuryBurn = (amount * burnToTreasury) / DENOMINATOR; _transfer(_msgSender(), memeTreasury, treasuryBurn); _burn(_msgSender(), amount - treasuryBurn); _afterBurn(_msgSender(), amount); } function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); _afterBurn(account, amount); } function _afterBurn(address account, uint256 amount) internal virtual { if (amount >= dontBurn) { burntoken.mint(account, 2, 1, ""); } } function _afterSwap(address account, uint256 amount) internal virtual { if (amount >= _mustSwap) { burntoken.mint(account, 1, 1, ""); } } function _mint(address account, uint256 amount) internal virtual override(ERC20, ERC20Capped) { require(ERC20.totalSupply() + amount <= cap(), "cap exceeded"); super._mint(account, amount); } }
// SPDX-License-Identifier: MIT 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.zeppelin.solutions/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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, 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; _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; } _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 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 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 { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_mint}. */ function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @dao: MEME /// @author: Wizard /************************************ ( ) ) )\ ) ( /( ( /( * ) (()/( )\()) )\()) ` ) /( /(_)) ((_)\ ((_)\ ( )(_)) (_))_ ((_) _((_) (_(_()) | \ / _ \ | \| | |_ _| | |) | | (_) | | .` | | | |___/ \___/ |_|\_| |_| ( ) ( )\ ) ( /( ( )\ ( (()/( )\()) )((_) )\ /(_)) ((_)\ ((_)_ _ ((_) (_)) _((_) | _ ) | | | | | _ \ | \| | | _ \ | |_| | | / | .` | |___/ \___/ |_|_\ |_|\_| * * ( ` ( ` )\))( ( )\))( ( ((_)()\ )\ ((_)()\ )\ (_()((_) ((_) (_()((_) ((_) | \/ | | __| | \/ | | __| | |\/| | | _| | |\/| | | _| |_| |_| |___| |_| |_| |___| ************************************/ import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IFuelToken { function mint(address account) external; } contract DontBurnMeme is ERC1155, AccessControl { using Strings for uint256; IFuelToken public fuelToken; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); // Mapping from token ID to media key mapping(uint256 => string) private _tokenMedia; string private _contractUri; uint256 public unlockFuel; constructor( address _minter, string memory _uri, string memory contractUri, address _fuelToken, uint256 _unlockFuel ) ERC1155(_uri) { _contractUri = contractUri; unlockFuel = _unlockFuel; fuelToken = IFuelToken(_fuelToken); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _minter); } modifier onlyMinter() { require(hasRole(MINTER_ROLE, _msgSender()), "caller is not a minter"); _; } modifier onlyOwner() { require( hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "caller is not owner" ); _; } function contractURI() public view returns (string memory) { return _contractUri; } function symbol() public pure returns (string memory) { return "MOON"; } function name() public pure returns (string memory) { return "Dont Burn MEME"; } function setUnlockFuel(uint256 tokenId) public virtual onlyOwner { unlockFuel = tokenId; } function setContractUri(string memory _uri) public virtual onlyOwner { _contractUri = _uri; } function setURI(string memory newuri) public virtual onlyOwner { _setURI(newuri); } function setTokenMedia(uint256 id, string memory key) public virtual onlyOwner { _setTokenMedia(id, key); } function mint( address account, uint256 id, uint256 amount, bytes memory data ) public onlyMinter { if (_isMediaEmpty(_tokenMedia[id]) == true) { _setTokenMedia(id, id.toString()); } _mint(account, id, amount, data); } function uri(uint256 id) public view override returns (string memory) { string memory _uri = _tokenMedia[id]; if (bytes(_uri).length > 0) { return string(abi.encodePacked(super.uri(id), _uri)); } else { revert("no uri data set for token id"); } } function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "caller is not owner nor approved" ); _burn(account, id, value); _afterBurn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "caller is not owner nor approved" ); _burnBatch(account, ids, values); _afterBurn(account, ids[0], values[0]); } function _setTokenMedia(uint256 id, string memory key) internal virtual { _tokenMedia[id] = key; } function _afterBurn( address account, uint256 id, uint256 value ) internal virtual { uint256 nextId = id + 1; uint256 mustBurn = id + 1; if (value >= mustBurn) { if (_isMediaEmpty(_tokenMedia[nextId])) { _setTokenMedia(nextId, nextId.toString()); } if (nextId == unlockFuel) { fuelToken.mint(account); } _mint(account, nextId, 1, ""); } } function _isMediaEmpty(string memory tokenMedia) internal virtual returns (bool) { bytes memory mediaToken = bytes(tokenMedia); if (mediaToken.length == 0) { return true; } else { return false; } } function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC1155) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(_msgSender() != operator, "ERC1155: setting approval status for self"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`. * * Emits a {TransferSingle} event. * * Requirements: * * - `account` cannot be the zero address. * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address account, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(account != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][account] += amount; emit TransferSingle(operator, address(0), account, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `account` * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens of token type `id`. */ function _burn( address account, uint256 id, uint256 amount ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } emit TransferSingle(operator, account, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address account, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(account != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, account, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 accountBalance = _balances[id][account]; require(accountBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][account] = accountBalance - amount; } } emit TransferBatch(operator, account, address(0), ids, amounts); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "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":"address","name":"_memeAddress","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"received","type":"uint256"}],"name":"Swap","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":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MULTIPLYER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"burnToTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burntoken","outputs":[{"internalType":"contract DontBurnMeme","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dontBurn","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":"meme","outputs":[{"internalType":"contract OriginalMemeToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"memeTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintAmount","outputs":[{"internalType":"uint256","name":"swapAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTreasuryAmount","outputs":[],"stateMutability":"nonpayable","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":"allow","type":"bool"}],"name":"setAllowSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setBurnToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_burntoken","type":"address"}],"name":"setBurnToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setDontBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury","type":"address"}],"name":"setMemeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMustBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"swap","outputs":[{"internalType":"uint256","name":"received","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapMax","outputs":[{"internalType":"uint256","name":"received","type":"uint256"}],"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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a0604052620000126012600a6200035f565b6200002090618ae362000454565b600955620000316008600a6200035f565b6200003e90600562000454565b600a5561012c600c55600d805460ff191690553480156200005e57600080fd5b506040516200223c3803806200223c8339810160408190526200008191620002a4565b6200008f6017600a6200035f565b6200009d9061785062000454565b604080518082018252600981526826a2a6a29024b73a9760b91b6020808301918252835180850190945260048452634d454d4560e01b908401528151919291620000ea91600391620001e1565b50805162000100906004906020840190620001e1565b505050600081116200012f5760405162461bcd60e51b81526004016200012690620002db565b60405180910390fd5b60805260016005556200014b620001456200018b565b6200018f565b600780546001600160a01b039384166001600160a01b0319909116179055600b80549190921661010002610100600160a81b0319909116179055620004c9565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ef9062000476565b90600052602060002090601f0160209004810192826200021357600085556200025e565b82601f106200022e57805160ff19168380011785556200025e565b828001600101855582156200025e579182015b828111156200025e57825182559160200191906001019062000241565b506200026c92915062000270565b5090565b5b808211156200026c576000815560010162000271565b80516001600160a01b03811681146200029f57600080fd5b919050565b60008060408385031215620002b7578182fd5b620002c28362000287565b9150620002d26020840162000287565b90509250929050565b60208082526015908201527f45524332304361707065643a2063617020697320300000000000000000000000604082015260600190565b80825b600180861162000326575062000356565b8187048211156200033b576200033b620004b3565b808616156200034957918102915b9490941c93800262000315565b94509492505050565b600062000370600019848462000377565b9392505050565b600082620003885750600162000370565b81620003975750600062000370565b8160018114620003b05760028114620003bb57620003ef565b600191505062000370565b60ff841115620003cf57620003cf620004b3565b6001841b915084821115620003e857620003e8620004b3565b5062000370565b5060208310610133831016604e8410600b841016171562000427575081810a83811115620004215762000421620004b3565b62000370565b62000436848484600162000312565b8086048211156200044b576200044b620004b3565b02949350505050565b6000816000190483118215151615620004715762000471620004b3565b500290565b6002810460018216806200048b57607f821691505b60208210811415620004ad57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b608051611d57620004e560003960006105970152611d576000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80638da5cb5b11610125578063c3587980116100ad578063dd62ed3e1161007c578063dd62ed3e146103ec578063e412c3c8146103ff578063ec052edf14610412578063f2fde38b14610425578063fdd0f3ca146104385761021c565b8063c3587980146103b6578063cd9700cb146103c9578063ce567a51146103d1578063daad0c5f146103d95761021c565b8063a457c2d7116100f4578063a457c2d714610380578063a5e992bb14610393578063a9059cbb1461039b578063b42f0fb8146103ae578063beb0e5ef146103425761021c565b80638da5cb5b14610355578063918f86741461035d57806394b918de1461036557806395d89b41146103785761021c565b80634ea5bdb1116101a857806370a082311161017757806370a082311461030c578063715018a61461031f57806379886b9d1461032757806379cc67901461032f5780637f225418146103425761021c565b80634ea5bdb1146102e15780635581b2c6146102e957806366bd2fe4146102f15780636d6626b2146102f95761021c565b8063313ce567116101ef578063313ce56714610287578063355274ea1461029c57806339509351146102a457806342966c68146102b757806344097c48146102cc5761021c565b806306fdde0314610221578063095ea7b31461023f57806318160ddd1461025f57806323b872dd14610274575b600080fd5b610229610440565b604051610236919061161a565b60405180910390f35b61025261024d366004611518565b6104d2565b604051610236919061160f565b6102676104ef565b6040516102369190611b37565b6102526102823660046114dd565b6104f5565b61028f610590565b6040516102369190611b40565b610267610595565b6102526102b2366004611518565b6105b9565b6102ca6102c5366004611561565b61060d565b005b6102d461067d565b6040516102369190611591565b6102ca61068c565b610267610731565b610267610737565b6102ca610307366004611491565b61073d565b61026761031a366004611491565b6107a4565b6102ca6107c3565b61025261080c565b6102ca61033d366004611518565b610815565b6102ca610350366004611561565b610872565b6102d46108b6565b6102676108c5565b610267610373366004611561565b6108cb565b610229610c13565b61025261038e366004611518565b610c22565b610267610c9b565b6102526103a9366004611518565b610d63565b6102d4610d77565b6102ca6103c4366004611491565b610d86565b6102d4610de7565b610267610dfb565b6102ca6103e7366004611541565b610e00565b6102676103fa3660046114ab565b610e52565b61026761040d366004611561565b610e7d565b6102ca610420366004611561565b610e9b565b6102ca610433366004611491565b610edf565b610252610f50565b60606003805461044f90611cd0565b80601f016020809104026020016040519081016040528092919081815260200182805461047b90611cd0565b80156104c85780601f1061049d576101008083540402835291602001916104c8565b820191906000526020600020905b8154815290600101906020018083116104ab57829003601f168201915b5050505050905090565b60006104e66104df610f59565b8484610f5d565b50600192915050565b60025490565b6000610502848484611011565b6001600160a01b038416600090815260016020526040812081610523610f59565b6001600160a01b03166001600160a01b031681526020019081526020016000205490508281101561056f5760405162461bcd60e51b815260040161056690611837565b60405180910390fd5b6105838561057b610f59565b858403610f5d565b60019150505b9392505050565b601290565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006104e66105c6610f59565b8484600160006105d4610f59565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546106089190611b4e565b610f5d565b6000612710600c54836106209190611c9a565b61062a9190611b66565b905061064e610637610f59565b600b5461010090046001600160a01b031683611011565b610668610659610f59565b6106638385611cb9565b61113b565b610679610673610f59565b8361122c565b5050565b6007546001600160a01b031681565b610694610f59565b6001600160a01b03166106a56108b6565b6001600160a01b0316146106cb5760405162461bcd60e51b81526004016105669061187f565b600b5460ff16156106ee5760405162461bcd60e51b8152600401610566906118b4565b600b805460ff19166001179081905561072f906001600160a01b036101009091041661071c6012600a611bcc565b61072a906310b07600611c9a565b6112a1565b565b600c5481565b60095481565b610745610f59565b6001600160a01b03166107566108b6565b6001600160a01b03161461077c5760405162461bcd60e51b81526004016105669061187f565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b0381166000908152602081905260409020545b919050565b6107cb610f59565b6001600160a01b03166107dc6108b6565b6001600160a01b0316146108025760405162461bcd60e51b81526004016105669061187f565b61072f60006112e4565b600d5460ff1681565b6000610823836103fa610f59565b9050818110156108455760405162461bcd60e51b815260040161056690611a16565b61085983610851610f59565b848403610f5d565b610863838361113b565b61086d838361122c565b505050565b61087a610f59565b6001600160a01b031661088b6108b6565b6001600160a01b0316146108b15760405162461bcd60e51b81526004016105669061187f565b600955565b6006546001600160a01b031690565b61271081565b6000600260055414156108f05760405162461bcd60e51b815260040161056690611a4d565b6002600555600d5460ff16151560011461091c5760405162461bcd60e51b81526004016105669061180b565b6000610926610f59565b6001600160a01b0316141561094d5760405162461bcd60e51b81526004016105669061191f565b60075482906001600160a01b03166370a08231610968610f59565b6040518263ffffffff1660e01b81526004016109849190611591565b60206040518083038186803b15801561099c57600080fd5b505afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d49190611579565b10156109f25760405162461bcd60e51b815260040161056690611a84565b6007546000906001600160a01b03166370a08231610a0e610f59565b6040518263ffffffff1660e01b8152600401610a2a9190611591565b60206040518083038186803b158015610a4257600080fd5b505afa158015610a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7a9190611579565b9050826000610a8882610e7d565b6007549091506001600160a01b03166379cc6790610aa4610f59565b846040518363ffffffff1660e01b8152600401610ac29291906115d5565b600060405180830381600087803b158015610adc57600080fd5b505af1158015610af0573d6000803e3d6000fd5b505050508483610b009190611cb9565b6007546001600160a01b03166370a08231610b19610f59565b6040518263ffffffff1660e01b8152600401610b359190611591565b60206040518083038186803b158015610b4d57600080fd5b505afa158015610b61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b859190611579565b14610ba25760405162461bcd60e51b8152600401610566906116b0565b610bb3610bad610f59565b826112a1565b610bc4610bbe610f59565b86611336565b7f77f92a1b6a1a11de8ca49515ad4c1fad45632dd3442167d74b90b304a3c7a758610bed610f59565b8683604051610bfe939291906115ee565b60405180910390a16001600555949350505050565b60606004805461044f90611cd0565b60008060016000610c31610f59565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610c7d5760405162461bcd60e51b815260040161056690611abb565b610c91610c88610f59565b85858403610f5d565b5060019392505050565b600060026005541415610cc05760405162461bcd60e51b815260040161056690611a4d565b60026005556007546000906001600160a01b03166370a08231610ce1610f59565b6040518263ffffffff1660e01b8152600401610cfd9190611591565b60206040518083038186803b158015610d1557600080fd5b505afa158015610d29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4d9190611579565b9050610d58816108cb565b915050600160055590565b60006104e6610d70610f59565b8484611011565b6008546001600160a01b031681565b610d8e610f59565b6001600160a01b0316610d9f6108b6565b6001600160a01b031614610dc55760405162461bcd60e51b81526004016105669061187f565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600b5461010090046001600160a01b031681565b600f81565b610e08610f59565b6001600160a01b0316610e196108b6565b6001600160a01b031614610e3f5760405162461bcd60e51b81526004016105669061187f565b600d805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610e8b600f600a611bcc565b610e959083611c9a565b92915050565b610ea3610f59565b6001600160a01b0316610eb46108b6565b6001600160a01b031614610eda5760405162461bcd60e51b81526004016105669061187f565b600c55565b610ee7610f59565b6001600160a01b0316610ef86108b6565b6001600160a01b031614610f1e5760405162461bcd60e51b81526004016105669061187f565b6001600160a01b038116610f445760405162461bcd60e51b815260040161056690611717565b610f4d816112e4565b50565b600b5460ff1681565b3390565b6001600160a01b038316610f835760405162461bcd60e51b8152600401610566906119d2565b6001600160a01b038216610fa95760405162461bcd60e51b81526004016105669061175d565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611004908590611b37565b60405180910390a3505050565b6001600160a01b0383166110375760405162461bcd60e51b815260040161056690611956565b6001600160a01b03821661105d5760405162461bcd60e51b81526004016105669061166d565b61106883838361086d565b6001600160a01b038316600090815260208190526040902054818110156110a15760405162461bcd60e51b8152600401610566906117c5565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110d8908490611b4e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111229190611b37565b60405180910390a361113584848461086d565b50505050565b6001600160a01b0382166111615760405162461bcd60e51b8152600401610566906118de565b61116d8260008361086d565b6001600160a01b038216600090815260208190526040902054818110156111a65760405162461bcd60e51b8152600401610566906116d5565b6001600160a01b03831660009081526020819052604081208383039055600280548492906111d5908490611cb9565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611218908690611b37565b60405180910390a361086d8360008461086d565b60095481106106795760085460405163731133e960e01b81526001600160a01b039091169063731133e99061126b9085906002906001906004016115a5565b600060405180830381600087803b15801561128557600080fd5b505af1158015611299573d6000803e3d6000fd5b505050505050565b6112a9610595565b816112b26104ef565b6112bc9190611b4e565b11156112da5760405162461bcd60e51b81526004016105669061179f565b6106798282611374565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5481106106795760085460405163731133e960e01b81526001600160a01b039091169063731133e99061126b90859060019081906004016115a5565b61137c610595565b816113856104ef565b61138f9190611b4e565b11156113ad5760405162461bcd60e51b81526004016105669061199b565b61067982826001600160a01b0382166113d85760405162461bcd60e51b815260040161056690611b00565b6113e46000838361086d565b80600260008282546113f69190611b4e565b90915550506001600160a01b03821660009081526020819052604081208054839290611423908490611b4e565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611466908590611b37565b60405180910390a36106796000838361086d565b80356001600160a01b03811681146107be57600080fd5b6000602082840312156114a2578081fd5b6105898261147a565b600080604083850312156114bd578081fd5b6114c68361147a565b91506114d46020840161147a565b90509250929050565b6000806000606084860312156114f1578081fd5b6114fa8461147a565b92506115086020850161147a565b9150604084013590509250925092565b6000806040838503121561152a578182fd5b6115338361147a565b946020939093013593505050565b600060208284031215611552578081fd5b81358015158114610589578182fd5b600060208284031215611572578081fd5b5035919050565b60006020828403121561158a578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b039390931683526020830191909152604082015260806060820181905260009082015260a00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b6000602080835283518082850152825b818110156116465785810183015185820160400152820161162a565b818111156116575783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600b908201526a189d5c9b8819985a5b195960aa1b604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252600c908201526b18d85c08195e18d95959195960a21b604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601290820152711b595b59481a5b9d481cd85e5cc81dd85a5d60721b604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f63616e6e6f74206d696e74206d6f726560801b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601a908201527f737761702066726f6d20746865207a65726f2061646472657373000000000000604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526019908201527f45524332304361707065643a2063617020657863656564656400000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601d908201527f6275726e20616d6f756e74206578636565647320616c6c6f77616e6365000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f7377617020616d6f756e7420657863656564732062616c616e63650000000000604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60008219821115611b6157611b61611d0b565b500190565b600082611b8157634e487b7160e01b81526012600452602481fd5b500490565b80825b6001808611611b985750611bc3565b818704821115611baa57611baa611d0b565b80861615611bb757918102915b9490941c938002611b89565b94509492505050565b60006105896000198484600082611be557506001610589565b81611bf257506000610589565b8160018114611c085760028114611c1257611c3f565b6001915050610589565b60ff841115611c2357611c23611d0b565b6001841b915084821115611c3957611c39611d0b565b50610589565b5060208310610133831016604e8410600b8410161715611c72575081810a83811115611c6d57611c6d611d0b565b610589565b611c7f8484846001611b86565b808604821115611c9157611c91611d0b565b02949350505050565b6000816000190483118215151615611cb457611cb4611d0b565b500290565b600082821015611ccb57611ccb611d0b565b500390565b600281046001821680611ce457607f821691505b60208210811415611d0557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122028002d69eacb017cf6e5cac18944229cc9ba7174591e31ef9d4b24d60e75967d64736f6c63430008000033000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe0000000000000000000000007af3ba4a5854438a6bf27e4d005cd07d5497c33e
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c80638da5cb5b11610125578063c3587980116100ad578063dd62ed3e1161007c578063dd62ed3e146103ec578063e412c3c8146103ff578063ec052edf14610412578063f2fde38b14610425578063fdd0f3ca146104385761021c565b8063c3587980146103b6578063cd9700cb146103c9578063ce567a51146103d1578063daad0c5f146103d95761021c565b8063a457c2d7116100f4578063a457c2d714610380578063a5e992bb14610393578063a9059cbb1461039b578063b42f0fb8146103ae578063beb0e5ef146103425761021c565b80638da5cb5b14610355578063918f86741461035d57806394b918de1461036557806395d89b41146103785761021c565b80634ea5bdb1116101a857806370a082311161017757806370a082311461030c578063715018a61461031f57806379886b9d1461032757806379cc67901461032f5780637f225418146103425761021c565b80634ea5bdb1146102e15780635581b2c6146102e957806366bd2fe4146102f15780636d6626b2146102f95761021c565b8063313ce567116101ef578063313ce56714610287578063355274ea1461029c57806339509351146102a457806342966c68146102b757806344097c48146102cc5761021c565b806306fdde0314610221578063095ea7b31461023f57806318160ddd1461025f57806323b872dd14610274575b600080fd5b610229610440565b604051610236919061161a565b60405180910390f35b61025261024d366004611518565b6104d2565b604051610236919061160f565b6102676104ef565b6040516102369190611b37565b6102526102823660046114dd565b6104f5565b61028f610590565b6040516102369190611b40565b610267610595565b6102526102b2366004611518565b6105b9565b6102ca6102c5366004611561565b61060d565b005b6102d461067d565b6040516102369190611591565b6102ca61068c565b610267610731565b610267610737565b6102ca610307366004611491565b61073d565b61026761031a366004611491565b6107a4565b6102ca6107c3565b61025261080c565b6102ca61033d366004611518565b610815565b6102ca610350366004611561565b610872565b6102d46108b6565b6102676108c5565b610267610373366004611561565b6108cb565b610229610c13565b61025261038e366004611518565b610c22565b610267610c9b565b6102526103a9366004611518565b610d63565b6102d4610d77565b6102ca6103c4366004611491565b610d86565b6102d4610de7565b610267610dfb565b6102ca6103e7366004611541565b610e00565b6102676103fa3660046114ab565b610e52565b61026761040d366004611561565b610e7d565b6102ca610420366004611561565b610e9b565b6102ca610433366004611491565b610edf565b610252610f50565b60606003805461044f90611cd0565b80601f016020809104026020016040519081016040528092919081815260200182805461047b90611cd0565b80156104c85780601f1061049d576101008083540402835291602001916104c8565b820191906000526020600020905b8154815290600101906020018083116104ab57829003601f168201915b5050505050905090565b60006104e66104df610f59565b8484610f5d565b50600192915050565b60025490565b6000610502848484611011565b6001600160a01b038416600090815260016020526040812081610523610f59565b6001600160a01b03166001600160a01b031681526020019081526020016000205490508281101561056f5760405162461bcd60e51b815260040161056690611837565b60405180910390fd5b6105838561057b610f59565b858403610f5d565b60019150505b9392505050565b601290565b7f000000000000000000000000000000000000000009f3b75e90118af90800000090565b60006104e66105c6610f59565b8484600160006105d4610f59565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546106089190611b4e565b610f5d565b6000612710600c54836106209190611c9a565b61062a9190611b66565b905061064e610637610f59565b600b5461010090046001600160a01b031683611011565b610668610659610f59565b6106638385611cb9565b61113b565b610679610673610f59565b8361122c565b5050565b6007546001600160a01b031681565b610694610f59565b6001600160a01b03166106a56108b6565b6001600160a01b0316146106cb5760405162461bcd60e51b81526004016105669061187f565b600b5460ff16156106ee5760405162461bcd60e51b8152600401610566906118b4565b600b805460ff19166001179081905561072f906001600160a01b036101009091041661071c6012600a611bcc565b61072a906310b07600611c9a565b6112a1565b565b600c5481565b60095481565b610745610f59565b6001600160a01b03166107566108b6565b6001600160a01b03161461077c5760405162461bcd60e51b81526004016105669061187f565b600b80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160a01b0381166000908152602081905260409020545b919050565b6107cb610f59565b6001600160a01b03166107dc6108b6565b6001600160a01b0316146108025760405162461bcd60e51b81526004016105669061187f565b61072f60006112e4565b600d5460ff1681565b6000610823836103fa610f59565b9050818110156108455760405162461bcd60e51b815260040161056690611a16565b61085983610851610f59565b848403610f5d565b610863838361113b565b61086d838361122c565b505050565b61087a610f59565b6001600160a01b031661088b6108b6565b6001600160a01b0316146108b15760405162461bcd60e51b81526004016105669061187f565b600955565b6006546001600160a01b031690565b61271081565b6000600260055414156108f05760405162461bcd60e51b815260040161056690611a4d565b6002600555600d5460ff16151560011461091c5760405162461bcd60e51b81526004016105669061180b565b6000610926610f59565b6001600160a01b0316141561094d5760405162461bcd60e51b81526004016105669061191f565b60075482906001600160a01b03166370a08231610968610f59565b6040518263ffffffff1660e01b81526004016109849190611591565b60206040518083038186803b15801561099c57600080fd5b505afa1580156109b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d49190611579565b10156109f25760405162461bcd60e51b815260040161056690611a84565b6007546000906001600160a01b03166370a08231610a0e610f59565b6040518263ffffffff1660e01b8152600401610a2a9190611591565b60206040518083038186803b158015610a4257600080fd5b505afa158015610a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7a9190611579565b9050826000610a8882610e7d565b6007549091506001600160a01b03166379cc6790610aa4610f59565b846040518363ffffffff1660e01b8152600401610ac29291906115d5565b600060405180830381600087803b158015610adc57600080fd5b505af1158015610af0573d6000803e3d6000fd5b505050508483610b009190611cb9565b6007546001600160a01b03166370a08231610b19610f59565b6040518263ffffffff1660e01b8152600401610b359190611591565b60206040518083038186803b158015610b4d57600080fd5b505afa158015610b61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b859190611579565b14610ba25760405162461bcd60e51b8152600401610566906116b0565b610bb3610bad610f59565b826112a1565b610bc4610bbe610f59565b86611336565b7f77f92a1b6a1a11de8ca49515ad4c1fad45632dd3442167d74b90b304a3c7a758610bed610f59565b8683604051610bfe939291906115ee565b60405180910390a16001600555949350505050565b60606004805461044f90611cd0565b60008060016000610c31610f59565b6001600160a01b0390811682526020808301939093526040918201600090812091881681529252902054905082811015610c7d5760405162461bcd60e51b815260040161056690611abb565b610c91610c88610f59565b85858403610f5d565b5060019392505050565b600060026005541415610cc05760405162461bcd60e51b815260040161056690611a4d565b60026005556007546000906001600160a01b03166370a08231610ce1610f59565b6040518263ffffffff1660e01b8152600401610cfd9190611591565b60206040518083038186803b158015610d1557600080fd5b505afa158015610d29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4d9190611579565b9050610d58816108cb565b915050600160055590565b60006104e6610d70610f59565b8484611011565b6008546001600160a01b031681565b610d8e610f59565b6001600160a01b0316610d9f6108b6565b6001600160a01b031614610dc55760405162461bcd60e51b81526004016105669061187f565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600b5461010090046001600160a01b031681565b600f81565b610e08610f59565b6001600160a01b0316610e196108b6565b6001600160a01b031614610e3f5760405162461bcd60e51b81526004016105669061187f565b600d805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610e8b600f600a611bcc565b610e959083611c9a565b92915050565b610ea3610f59565b6001600160a01b0316610eb46108b6565b6001600160a01b031614610eda5760405162461bcd60e51b81526004016105669061187f565b600c55565b610ee7610f59565b6001600160a01b0316610ef86108b6565b6001600160a01b031614610f1e5760405162461bcd60e51b81526004016105669061187f565b6001600160a01b038116610f445760405162461bcd60e51b815260040161056690611717565b610f4d816112e4565b50565b600b5460ff1681565b3390565b6001600160a01b038316610f835760405162461bcd60e51b8152600401610566906119d2565b6001600160a01b038216610fa95760405162461bcd60e51b81526004016105669061175d565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611004908590611b37565b60405180910390a3505050565b6001600160a01b0383166110375760405162461bcd60e51b815260040161056690611956565b6001600160a01b03821661105d5760405162461bcd60e51b81526004016105669061166d565b61106883838361086d565b6001600160a01b038316600090815260208190526040902054818110156110a15760405162461bcd60e51b8152600401610566906117c5565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906110d8908490611b4e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111229190611b37565b60405180910390a361113584848461086d565b50505050565b6001600160a01b0382166111615760405162461bcd60e51b8152600401610566906118de565b61116d8260008361086d565b6001600160a01b038216600090815260208190526040902054818110156111a65760405162461bcd60e51b8152600401610566906116d5565b6001600160a01b03831660009081526020819052604081208383039055600280548492906111d5908490611cb9565b90915550506040516000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611218908690611b37565b60405180910390a361086d8360008461086d565b60095481106106795760085460405163731133e960e01b81526001600160a01b039091169063731133e99061126b9085906002906001906004016115a5565b600060405180830381600087803b15801561128557600080fd5b505af1158015611299573d6000803e3d6000fd5b505050505050565b6112a9610595565b816112b26104ef565b6112bc9190611b4e565b11156112da5760405162461bcd60e51b81526004016105669061179f565b6106798282611374565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5481106106795760085460405163731133e960e01b81526001600160a01b039091169063731133e99061126b90859060019081906004016115a5565b61137c610595565b816113856104ef565b61138f9190611b4e565b11156113ad5760405162461bcd60e51b81526004016105669061199b565b61067982826001600160a01b0382166113d85760405162461bcd60e51b815260040161056690611b00565b6113e46000838361086d565b80600260008282546113f69190611b4e565b90915550506001600160a01b03821660009081526020819052604081208054839290611423908490611b4e565b90915550506040516001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611466908590611b37565b60405180910390a36106796000838361086d565b80356001600160a01b03811681146107be57600080fd5b6000602082840312156114a2578081fd5b6105898261147a565b600080604083850312156114bd578081fd5b6114c68361147a565b91506114d46020840161147a565b90509250929050565b6000806000606084860312156114f1578081fd5b6114fa8461147a565b92506115086020850161147a565b9150604084013590509250925092565b6000806040838503121561152a578182fd5b6115338361147a565b946020939093013593505050565b600060208284031215611552578081fd5b81358015158114610589578182fd5b600060208284031215611572578081fd5b5035919050565b60006020828403121561158a578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b039390931683526020830191909152604082015260806060820181905260009082015260a00190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b901515815260200190565b6000602080835283518082850152825b818110156116465785810183015185820160400152820161162a565b818111156116575783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252600b908201526a189d5c9b8819985a5b195960aa1b604082015260600190565b60208082526022908201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604082015261636560f01b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252600c908201526b18d85c08195e18d95959195960a21b604082015260600190565b60208082526026908201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604082015265616c616e636560d01b606082015260800190565b6020808252601290820152711b595b59481a5b9d481cd85e5cc81dd85a5d60721b604082015260600190565b60208082526028908201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616040820152676c6c6f77616e636560c01b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526010908201526f63616e6e6f74206d696e74206d6f726560801b604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252601a908201527f737761702066726f6d20746865207a65726f2061646472657373000000000000604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526019908201527f45524332304361707065643a2063617020657863656564656400000000000000604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601d908201527f6275726e20616d6f756e74206578636565647320616c6c6f77616e6365000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f7377617020616d6f756e7420657863656564732062616c616e63650000000000604082015260600190565b60208082526025908201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604082015264207a65726f60d81b606082015260800190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60008219821115611b6157611b61611d0b565b500190565b600082611b8157634e487b7160e01b81526012600452602481fd5b500490565b80825b6001808611611b985750611bc3565b818704821115611baa57611baa611d0b565b80861615611bb757918102915b9490941c938002611b89565b94509492505050565b60006105896000198484600082611be557506001610589565b81611bf257506000610589565b8160018114611c085760028114611c1257611c3f565b6001915050610589565b60ff841115611c2357611c23611d0b565b6001841b915084821115611c3957611c39611d0b565b50610589565b5060208310610133831016604e8410600b8410161715611c72575081810a83811115611c6d57611c6d611d0b565b610589565b611c7f8484846001611b86565b808604821115611c9157611c91611d0b565b02949350505050565b6000816000190483118215151615611cb457611cb4611d0b565b500290565b600082821015611ccb57611ccb611d0b565b500390565b600281046001821680611ce457607f821691505b60208210811415611d0557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122028002d69eacb017cf6e5cac18944229cc9ba7174591e31ef9d4b24d60e75967d64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe0000000000000000000000007af3ba4a5854438a6bf27e4d005cd07d5497c33e
-----Decoded View---------------
Arg [0] : _memeAddress (address): 0xD5525D397898e5502075Ea5E830d8914f6F0affe
Arg [1] : _treasury (address): 0x7AF3bA4A5854438a6BF27E4d005cD07d5497C33E
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe
Arg [1] : 0000000000000000000000007af3ba4a5854438a6bf27e4d005cd07d5497c33e
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.