Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000 $GARBAGE
Holders
1,889
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GarbageToken
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.22; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "src/interfaces/IUniswapV2Router02.sol"; import "src/interfaces/IUniswapV2Factory.sol"; import "src/interfaces/IUniswapV2Pair.sol"; /* @title GARBAGE token contract with bot-sniping protection @dev Anti sniping realised by blocking transfer for several blocks after providing liquidity @dev There is hold limit functionality here, it should stops single wallet from holding more than 1% of liquidity pool size @dev Hold limit does not apply to this contract, owner and uniswap pair **/ contract GarbageToken is ERC20, Ownable { uint256 private constant antiBotDelay = 5;// for how many blocks after providing liquidity transfers should be blocked uint256 public immutable minHoldLimit;// holding cap when holding limit is enabled IERC20 public constant WETH = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);// WETH token address IUniswapV2Router02 public constant uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);// UniswapV2Router address uint256 public antiBotDelayStartBlock;// block from which bot protection delay is calculated uint256 public holdLimit;// holding cap when holding limit is enabled bool public isHoldLimitActive;// displays if holding limit is enabled IUniswapV2Pair public uniswapPair;// address of Uniswap pair event HoldLimitEnabled(); event HoldLimitDisabled(); event HoldLimitValueSet(uint256 newValue); event PairCreated(address pairAddress); event LiquidityProvided(uint256 tokenAmount, uint256 wethAmount, uint256 block, uint256 timestamp); error PairAlreadyCreated(); error PairNotCreated(); error TransfersBlocked(); error HoldLimitation(); error TooLowHoldLimit(); /* @notice Sets up contract while deploying @param _initialSupply: How manu tokens should be minted @param _owner: Address that will be defined as owner **/ constructor(uint256 _initialSupply, address _owner) ERC20("$GARBAGE", "$GARBAGE") Ownable(_owner) { uint256 initialSupply = _initialSupply * 10 ** decimals(); _mint(_owner, initialSupply); holdLimit = initialSupply / 200; minHoldLimit = holdLimit / 100; } /* @notice Sets hold limit @param _newHoldLimit: new hold limit amount @dev While liquidity can be provided externally there is an ability to correct hold limit **/ function setHoldLimit(uint256 _newHoldLimit) external onlyOwner { if (_newHoldLimit < minHoldLimit) revert TooLowHoldLimit(); holdLimit = _newHoldLimit; emit HoldLimitValueSet(_newHoldLimit); } // @notice enables hold limit function turnHoldLimitOn() external onlyOwner { isHoldLimitActive = true; emit HoldLimitEnabled(); } // @notice Disables hold limit function turnHoldLimitOff() external onlyOwner { isHoldLimitActive = false; emit HoldLimitDisabled(); } // @notice Creates GARBAGE/WETH pair on Uniswap function createPair() external onlyOwner { if (address(uniswapPair) != address(0)) revert PairAlreadyCreated(); uniswapPair = IUniswapV2Pair( IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), address(WETH)) ); emit PairCreated(address(uniswapPair)); } /* @notice Provides liquidity to Uniswap @param _shouldBlock: marks if anti-snipers protection and hold limit should be enabled after providing liquidity @dev all contracts balances in GARBAGE and WETH will be provided as liquidity @dev liquidity tokens will be sent to owner **/ function provideLiquidity(bool shouldBlock) external onlyOwner { if (address(uniswapPair) == address(0)) revert PairNotCreated(); uint256 tokenToList = balanceOf(address(this)); uint256 wethToList = WETH.balanceOf(address(this)); _approve(address(this), address(uniswapV2Router), tokenToList); WETH.approve(address(uniswapV2Router), wethToList); (uint256 tokenProvided, uint256 wethProvided,) = uniswapV2Router.addLiquidity( address(this), address(WETH), tokenToList, wethToList, 0, 0, owner(), block.timestamp); emit LiquidityProvided(tokenProvided, wethProvided, block.number, block.timestamp); if (shouldBlock) { antiBotDelayStartBlock = block.number; isHoldLimitActive = true; emit HoldLimitEnabled(); } } // @notice Transfers ERC20 tokens to owner to avoid tokens stuck on contract // @param _token: address of token that should be sent // @param _amount: amount of tokens to send function rescueERC20(address _token, uint256 _amount) external onlyOwner { IERC20(_token).transfer(owner(), _amount); } // @notice Modified ERC20 _update function function _update(address from, address to, uint256 value) internal override { // checking if enough blocks were passed after providing liquidity if (antiBotDelayStartBlock != 0 && block.number <= antiBotDelayStartBlock + antiBotDelay) revert TransfersBlocked(); // checking that resulting wallet value will fit the limit if it is enabled if (isHoldLimitActive && balanceOf(to) + value > holdLimit && to != address(uniswapPair) && to != owner() && to != address(this) ) { revert HoldLimitation(); } // original update function super._update(from, to, value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; interface IUniswapV2Pair { function getReserves() external view returns (uint112, uint112, uint32); function token0() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin/=lib/openzeppelin/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_initialSupply","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"HoldLimitation","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"PairAlreadyCreated","type":"error"},{"inputs":[],"name":"PairNotCreated","type":"error"},{"inputs":[],"name":"TooLowHoldLimit","type":"error"},{"inputs":[],"name":"TransfersBlocked","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"HoldLimitDisabled","type":"event"},{"anonymous":false,"inputs":[],"name":"HoldLimitEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"HoldLimitValueSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"wethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"block","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"LiquidityProvided","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":"pairAddress","type":"address"}],"name":"PairCreated","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":"WETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"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":[],"name":"antiBotDelayStartBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holdLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isHoldLimitActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minHoldLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"shouldBlock","type":"bool"}],"name":"provideLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newHoldLimit","type":"uint256"}],"name":"setHoldLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"turnHoldLimitOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"turnHoldLimitOn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapPair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001901380380620019018339810160408190526200003491620003e0565b604080518082018252600880825267244741524241474560c01b602080840182905284518086019095529184529083015282916003620000758382620004c5565b506004620000848282620004c5565b5050506001600160a01b038116620000b757604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000c2816200011a565b506000620000d36012600a620006a6565b620000df9084620006be565b9050620000ed82826200016c565b620000fa60c882620006d8565b60078190556200010d90606490620006d8565b6080525062000711915050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001985760405163ec442f0560e01b815260006004820152602401620000ae565b620001a660008383620001aa565b5050565b60065415801590620001cc57506005600654620001c89190620006fb565b4311155b15620001eb576040516311bad8f560e01b815260040160405180910390fd5b60085460ff1680156200022b5750600754816200021d846001600160a01b031660009081526020819052604090205490565b620002299190620006fb565b115b80156200024b57506008546001600160a01b038381166101009092041614155b80156200026657506005546001600160a01b03838116911614155b80156200027c57506001600160a01b0382163014155b156200029b576040516351c7851d60e11b815260040160405180910390fd5b620002a8838383620002ad565b505050565b6001600160a01b038316620002dc578060026000828254620002d09190620006fb565b90915550620003509050565b6001600160a01b03831660009081526020819052604090205481811015620003315760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000ae565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166200036e576002805482900390556200038d565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620003d391815260200190565b60405180910390a3505050565b60008060408385031215620003f457600080fd5b825160208401519092506001600160a01b03811681146200041457600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200044a57607f821691505b6020821081036200046b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002a8576000816000526020600020601f850160051c810160208610156200049c5750805b601f850160051c820191505b81811015620004bd57828155600101620004a8565b505050505050565b81516001600160401b03811115620004e157620004e16200041f565b620004f981620004f2845462000435565b8462000471565b602080601f831160018114620005315760008415620005185750858301515b600019600386901b1c1916600185901b178555620004bd565b600085815260208120601f198616915b82811015620005625788860151825594840194600190910190840162000541565b5085821015620005815787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005e8578160001904821115620005cc57620005cc62000591565b80851615620005da57918102915b93841c9390800290620005ac565b509250929050565b6000826200060157506001620006a0565b816200061057506000620006a0565b8160018114620006295760028114620006345762000654565b6001915050620006a0565b60ff84111562000648576200064862000591565b50506001821b620006a0565b5060208310610133831016604e8410600b841016171562000679575081810a620006a0565b620006858383620005a7565b80600019048211156200069c576200069c62000591565b0290505b92915050565b6000620006b760ff841683620005f0565b9392505050565b8082028115828204841417620006a057620006a062000591565b600082620006f657634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115620006a057620006a062000591565b6080516111cd620007346000396000818161022b015261075901526111cd6000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c8063715018a6116100de578063ad5c464811610097578063c816841b11610071578063c816841b14610329578063dd62ed3e14610341578063ec6bdb541461037a578063f2fde38b1461038257600080fd5b8063ad5c4648146102f9578063bae900c214610314578063be0e80c51461032157600080fd5b8063715018a6146102aa5780638cd4426d146102b25780638da5cb5b146102c557806395d89b41146102d65780639e78fb4f146102de578063a9059cbb146102e657600080fd5b80632c9272f2116101305780632c9272f214610226578063313ce5671461024d5780636df9c7af1461025c5780636f68ebae146102655780636fd009e41461026e57806370a082311461028157600080fd5b806306fdde0314610178578063095ea7b3146101965780631694505e146101b957806318160ddd146101ec5780632021372e146101fe57806323b872dd14610213575b600080fd5b610180610395565b60405161018d9190610f49565b60405180910390f35b6101a96101a4366004610fad565b610427565b604051901515815260200161018d565b6101d4737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161018d565b6002545b60405190815260200161018d565b61021161020c366004610fe7565b610441565b005b6101a961022136600461100b565b61072b565b6101f07f000000000000000000000000000000000000000000000000000000000000000081565b6040516012815260200161018d565b6101f060065481565b6101f060075481565b61021161027c36600461104c565b61074f565b6101f061028f366004611065565b6001600160a01b031660009081526020819052604090205490565b6102116107d3565b6102116102c0366004610fad565b6107e7565b6005546001600160a01b03166101d4565b610180610886565b610211610895565b6101a96102f4366004610fad565b610a28565b6101d473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6008546101a99060ff1681565b610211610a36565b6008546101d49061010090046001600160a01b031681565b6101f061034f366004611082565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610211610a76565b610211610390366004611065565b610ab3565b6060600380546103a4906110bb565b80601f01602080910402602001604051908101604052809291908181526020018280546103d0906110bb565b801561041d5780601f106103f25761010080835404028352916020019161041d565b820191906000526020600020905b81548152906001019060200180831161040057829003601f168201915b5050505050905090565b600033610435818585610af6565b60019150505b92915050565b610449610b03565b60085461010090046001600160a01b03166104775760405163c6bcf59960e01b815260040160405180910390fd5b306000908152602081905260408120546040516370a0823160e01b815230600482015290915060009073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a0823190602401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050091906110f5565b905061052130737a250d5630b4cf539739df2c5dacb4c659f2488d84610af6565b60405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526024810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29063095ea7b3906044016020604051808303816000875af115801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b1919061110e565b50600080737a250d5630b4cf539739df2c5dacb4c659f2488d63e8e337003073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2878786806105fb6005546001600160a01b031690565b60405160e089901b6001600160e01b03191681526001600160a01b039788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c48201524260e4820152610104016060604051808303816000875af1158015610672573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610696919061112b565b506040805183815260208101839052438183015242606082015290519294509092507f72be4c94b478358f291162be7c700c4020d1b3a16dd1eb1e27bcd2e631ffef24919081900360800190a1841561072457436006556008805460ff191660011790556040517f63937723f168189ec478d5029e2cf44bdb2a717a9b3b7c914570cae99d00e95690600090a15b5050505050565b600033610739858285610b30565b610744858585610bae565b506001949350505050565b610757610b03565b7f0000000000000000000000000000000000000000000000000000000000000000811015610798576040516334e3b6c360e01b815260040160405180910390fd5b60078190556040518181527f4339f34322b99a39ea91a98d713573c4e459a75b7d7ed637c7fa5db05ed806be9060200160405180910390a150565b6107db610b03565b6107e56000610c0d565b565b6107ef610b03565b816001600160a01b031663a9059cbb6108106005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561085d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610881919061110e565b505050565b6060600480546103a4906110bb565b61089d610b03565b60085461010090046001600160a01b0316156108cc57604051631858f2df60e01b815260040160405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561091e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109429190611159565b6040516364e329cb60e11b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260248201526001600160a01b03919091169063c9c65396906044016020604051808303816000875af11580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c89190611159565b60088054610100600160a81b0319166101006001600160a01b0393841681029190911791829055604051910490911681527fb14a725aeeb25d591b81b16b4c5b25403dd8867bdd1876fa787867f566206be19060200160405180910390a1565b600033610435818585610bae565b610a3e610b03565b6008805460ff191660011790556040517f63937723f168189ec478d5029e2cf44bdb2a717a9b3b7c914570cae99d00e95690600090a1565b610a7e610b03565b6008805460ff191690556040517f1c6292e749852c6b196631e583599ddcb64257678943dc1677ffd0a94be4c97e90600090a1565b610abb610b03565b6001600160a01b038116610aea57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610af381610c0d565b50565b6108818383836001610c5f565b6005546001600160a01b031633146107e55760405163118cdaa760e01b8152336004820152602401610ae1565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610ba85781811015610b9957604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610ae1565b610ba884848484036000610c5f565b50505050565b6001600160a01b038316610bd857604051634b637e8f60e11b815260006004820152602401610ae1565b6001600160a01b038216610c025760405163ec442f0560e01b815260006004820152602401610ae1565b610881838383610d34565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416610c895760405163e602df0560e01b815260006004820152602401610ae1565b6001600160a01b038316610cb357604051634a1406b160e11b815260006004820152602401610ae1565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610ba857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d2691815260200190565b60405180910390a350505050565b60065415801590610d5357506005600654610d4f9190611176565b4311155b15610d71576040516311bad8f560e01b815260040160405180910390fd5b60085460ff168015610dad575060075481610da1846001600160a01b031660009081526020819052604090205490565b610dab9190611176565b115b8015610dcc57506008546001600160a01b038381166101009092041614155b8015610de657506005546001600160a01b03838116911614155b8015610dfb57506001600160a01b0382163014155b15610e19576040516351c7851d60e11b815260040160405180910390fd5b6108818383836001600160a01b038316610e4a578060026000828254610e3f9190611176565b90915550610ebc9050565b6001600160a01b03831660009081526020819052604090205481811015610e9d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610ae1565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ed857600280548290039055610ef7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f3c91815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b81811015610f7757858101830151858201604001528201610f5b565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610af357600080fd5b60008060408385031215610fc057600080fd5b8235610fcb81610f98565b946020939093013593505050565b8015158114610af357600080fd5b600060208284031215610ff957600080fd5b813561100481610fd9565b9392505050565b60008060006060848603121561102057600080fd5b833561102b81610f98565b9250602084013561103b81610f98565b929592945050506040919091013590565b60006020828403121561105e57600080fd5b5035919050565b60006020828403121561107757600080fd5b813561100481610f98565b6000806040838503121561109557600080fd5b82356110a081610f98565b915060208301356110b081610f98565b809150509250929050565b600181811c908216806110cf57607f821691505b6020821081036110ef57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561110757600080fd5b5051919050565b60006020828403121561112057600080fd5b815161100481610fd9565b60008060006060848603121561114057600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561116b57600080fd5b815161100481610f98565b8082018082111561043b57634e487b7160e01b600052601160045260246000fdfea26469706673582212206a1fb1a92b444b93a2a80456f2fa8b2586bd18716f2765275b15d1df7a71c24464736f6c634300081600330000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000050b8a37dc292f8aabe40bb0616337223f7ffac37
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c8063715018a6116100de578063ad5c464811610097578063c816841b11610071578063c816841b14610329578063dd62ed3e14610341578063ec6bdb541461037a578063f2fde38b1461038257600080fd5b8063ad5c4648146102f9578063bae900c214610314578063be0e80c51461032157600080fd5b8063715018a6146102aa5780638cd4426d146102b25780638da5cb5b146102c557806395d89b41146102d65780639e78fb4f146102de578063a9059cbb146102e657600080fd5b80632c9272f2116101305780632c9272f214610226578063313ce5671461024d5780636df9c7af1461025c5780636f68ebae146102655780636fd009e41461026e57806370a082311461028157600080fd5b806306fdde0314610178578063095ea7b3146101965780631694505e146101b957806318160ddd146101ec5780632021372e146101fe57806323b872dd14610213575b600080fd5b610180610395565b60405161018d9190610f49565b60405180910390f35b6101a96101a4366004610fad565b610427565b604051901515815260200161018d565b6101d4737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161018d565b6002545b60405190815260200161018d565b61021161020c366004610fe7565b610441565b005b6101a961022136600461100b565b61072b565b6101f07f00000000000000000000000000000000000000000000010f0cf064dd5920000081565b6040516012815260200161018d565b6101f060065481565b6101f060075481565b61021161027c36600461104c565b61074f565b6101f061028f366004611065565b6001600160a01b031660009081526020819052604090205490565b6102116107d3565b6102116102c0366004610fad565b6107e7565b6005546001600160a01b03166101d4565b610180610886565b610211610895565b6101a96102f4366004610fad565b610a28565b6101d473c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6008546101a99060ff1681565b610211610a36565b6008546101d49061010090046001600160a01b031681565b6101f061034f366004611082565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610211610a76565b610211610390366004611065565b610ab3565b6060600380546103a4906110bb565b80601f01602080910402602001604051908101604052809291908181526020018280546103d0906110bb565b801561041d5780601f106103f25761010080835404028352916020019161041d565b820191906000526020600020905b81548152906001019060200180831161040057829003601f168201915b5050505050905090565b600033610435818585610af6565b60019150505b92915050565b610449610b03565b60085461010090046001600160a01b03166104775760405163c6bcf59960e01b815260040160405180910390fd5b306000908152602081905260408120546040516370a0823160e01b815230600482015290915060009073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2906370a0823190602401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050091906110f5565b905061052130737a250d5630b4cf539739df2c5dacb4c659f2488d84610af6565b60405163095ea7b360e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d60048201526024810182905273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc29063095ea7b3906044016020604051808303816000875af115801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b1919061110e565b50600080737a250d5630b4cf539739df2c5dacb4c659f2488d63e8e337003073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2878786806105fb6005546001600160a01b031690565b60405160e089901b6001600160e01b03191681526001600160a01b039788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c48201524260e4820152610104016060604051808303816000875af1158015610672573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610696919061112b565b506040805183815260208101839052438183015242606082015290519294509092507f72be4c94b478358f291162be7c700c4020d1b3a16dd1eb1e27bcd2e631ffef24919081900360800190a1841561072457436006556008805460ff191660011790556040517f63937723f168189ec478d5029e2cf44bdb2a717a9b3b7c914570cae99d00e95690600090a15b5050505050565b600033610739858285610b30565b610744858585610bae565b506001949350505050565b610757610b03565b7f00000000000000000000000000000000000000000000010f0cf064dd59200000811015610798576040516334e3b6c360e01b815260040160405180910390fd5b60078190556040518181527f4339f34322b99a39ea91a98d713573c4e459a75b7d7ed637c7fa5db05ed806be9060200160405180910390a150565b6107db610b03565b6107e56000610c0d565b565b6107ef610b03565b816001600160a01b031663a9059cbb6108106005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561085d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610881919061110e565b505050565b6060600480546103a4906110bb565b61089d610b03565b60085461010090046001600160a01b0316156108cc57604051631858f2df60e01b815260040160405180910390fd5b737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561091e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109429190611159565b6040516364e329cb60e11b815230600482015273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc260248201526001600160a01b03919091169063c9c65396906044016020604051808303816000875af11580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c89190611159565b60088054610100600160a81b0319166101006001600160a01b0393841681029190911791829055604051910490911681527fb14a725aeeb25d591b81b16b4c5b25403dd8867bdd1876fa787867f566206be19060200160405180910390a1565b600033610435818585610bae565b610a3e610b03565b6008805460ff191660011790556040517f63937723f168189ec478d5029e2cf44bdb2a717a9b3b7c914570cae99d00e95690600090a1565b610a7e610b03565b6008805460ff191690556040517f1c6292e749852c6b196631e583599ddcb64257678943dc1677ffd0a94be4c97e90600090a1565b610abb610b03565b6001600160a01b038116610aea57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610af381610c0d565b50565b6108818383836001610c5f565b6005546001600160a01b031633146107e55760405163118cdaa760e01b8152336004820152602401610ae1565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610ba85781811015610b9957604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610ae1565b610ba884848484036000610c5f565b50505050565b6001600160a01b038316610bd857604051634b637e8f60e11b815260006004820152602401610ae1565b6001600160a01b038216610c025760405163ec442f0560e01b815260006004820152602401610ae1565b610881838383610d34565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416610c895760405163e602df0560e01b815260006004820152602401610ae1565b6001600160a01b038316610cb357604051634a1406b160e11b815260006004820152602401610ae1565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610ba857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610d2691815260200190565b60405180910390a350505050565b60065415801590610d5357506005600654610d4f9190611176565b4311155b15610d71576040516311bad8f560e01b815260040160405180910390fd5b60085460ff168015610dad575060075481610da1846001600160a01b031660009081526020819052604090205490565b610dab9190611176565b115b8015610dcc57506008546001600160a01b038381166101009092041614155b8015610de657506005546001600160a01b03838116911614155b8015610dfb57506001600160a01b0382163014155b15610e19576040516351c7851d60e11b815260040160405180910390fd5b6108818383836001600160a01b038316610e4a578060026000828254610e3f9190611176565b90915550610ebc9050565b6001600160a01b03831660009081526020819052604090205481811015610e9d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610ae1565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610ed857600280548290039055610ef7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610f3c91815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b81811015610f7757858101830151858201604001528201610f5b565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610af357600080fd5b60008060408385031215610fc057600080fd5b8235610fcb81610f98565b946020939093013593505050565b8015158114610af357600080fd5b600060208284031215610ff957600080fd5b813561100481610fd9565b9392505050565b60008060006060848603121561102057600080fd5b833561102b81610f98565b9250602084013561103b81610f98565b929592945050506040919091013590565b60006020828403121561105e57600080fd5b5035919050565b60006020828403121561107757600080fd5b813561100481610f98565b6000806040838503121561109557600080fd5b82356110a081610f98565b915060208301356110b081610f98565b809150509250929050565b600181811c908216806110cf57607f821691505b6020821081036110ef57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561110757600080fd5b5051919050565b60006020828403121561112057600080fd5b815161100481610fd9565b60008060006060848603121561114057600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561116b57600080fd5b815161100481610f98565b8082018082111561043b57634e487b7160e01b600052601160045260246000fdfea26469706673582212206a1fb1a92b444b93a2a80456f2fa8b2586bd18716f2765275b15d1df7a71c24464736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000050b8a37dc292f8aabe40bb0616337223f7ffac37
-----Decoded View---------------
Arg [0] : _initialSupply (uint256): 100000000
Arg [1] : _owner (address): 0x50b8a37dc292F8AabE40BB0616337223F7ffAC37
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [1] : 00000000000000000000000050b8a37dc292f8aabe40bb0616337223f7ffac37
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.