ERC-20
MEME
Overview
Max Total Supply
1,000,000,000,000,000 FUBAO
Holders
429 (0.00%)
Market
Price
$0.00 @ 0.000000 ETH (-4.39%)
Onchain Market Cap
$102,797.00
Circulating Supply Market Cap
$51,398.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000012052810315679 FUBAOValue
$0.00 ( ~0 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Fubao
Compiler Version
v0.8.27+commit.40a35a09
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import "./IRouter.sol"; pragma solidity 0.8.27; contract Fubao is ERC20, Ownable { IUniswapV2Router02 immutable dexRouter; uint256 public maxTransactionLimit; uint256 public maxWalletLimit; uint256 public buyFee = 25; uint256 public sellFee = 25; uint256 constant MAX_BUY_FEE_PERCENTAGE = 10; uint256 constant MAX_SELL_FEE_PERCENTAGE = 10; uint256 public minTokensForSwap; uint256 launchBlock; uint256 purchaseCount; uint256 buyThreshold = 40; uint256 public constant TOTAL_SUPPLY = 1_000_000_000_000_000 * 10 ** 18; uint256 private lastSellTimestamp; bool public feeEnabled = true; bool public restrictionEnabled = true; bool inSwapProcess; bool public tradingActive; address feeReceiver; address public immutable dexPair; uint256 internal constant MAX_UINT = type(uint256).max; mapping(address => bool) public isExemptFromFees; modifier lockSwap() { inSwapProcess = true; _; inSwapProcess = false; } constructor() ERC20("Fu Bao", "FUBAO") Ownable(msg.sender) { IUniswapV2Router02 _dexRouter = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); address _dexPair = IUniswapV2Factory(_dexRouter.factory()).createPair( address(this), _dexRouter.WETH() ); feeReceiver = 0x86c6f4c418532a52420A97A1c32Ca92976770e50; isExemptFromFees[msg.sender] = true; isExemptFromFees[address(this)] = true; isExemptFromFees[address(_dexPair)] = true; _mint(msg.sender, TOTAL_SUPPLY); dexRouter = _dexRouter; dexPair = _dexPair; minTokensForSwap = (totalSupply() * 2) / 1000; maxWalletLimit = (totalSupply() * 2) / 100; maxTransactionLimit = (totalSupply() * 2) / 100; _approve(address(this), address(dexRouter), MAX_UINT); } function _update( address from, address to, uint256 amount ) internal virtual override { require(amount > 0, "ERC20: amount must be greater than zero"); address _owner = owner(); if (!tradingActive) { require( from == _owner || to == _owner, "Trading not activated yet" ); } uint256 feeAmount; if (from == dexPair && !isExemptFromFees[to]) { if (restrictionEnabled) { require( amount <= maxTransactionLimit, "Exceeds max transaction" ); require( balanceOf(to) + amount <= maxWalletLimit, "Exceeds max wallet limit" ); } if (feeEnabled) { feeAmount = (amount * buyFee) / 100; } purchaseCount++; } if (to == dexPair && !isExemptFromFees[from]) { if (restrictionEnabled) { require( amount <= maxTransactionLimit, "Exceeds max transaction" ); } if (feeEnabled) { feeAmount = (amount * sellFee) / 100; } } uint256 contractTokenBalance = balanceOf(address(this)); bool overMinTokenBalance = contractTokenBalance >= minTokensForSwap; if ( from != address(0) && overMinTokenBalance && !inSwapProcess && from != dexPair && !isExemptFromFees[from] && purchaseCount > buyThreshold && block.number > lastSellTimestamp && amount >= minTokensForSwap ) { lastSellTimestamp = block.number; swapTokensForEth(minTokensForSwap); } if (feeAmount > 0) { uint256 userAmount = amount - feeAmount; super._update(from, address(this), feeAmount); super._update(from, to, userAmount); } else { super._update(from, to, amount); } } function swapTokensForEth(uint256 tokenAmount) internal lockSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = dexRouter.WETH(); dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, feeReceiver, block.timestamp ); } function updateFeeReceiver(address newReceiver) external onlyOwner { feeReceiver = newReceiver; } function setExemption(address account, bool exempt) external onlyOwner { isExemptFromFees[account] = exempt; } function updateMaxWalletLimit( uint256 newMaxWalletLimit ) external onlyOwner { maxWalletLimit = newMaxWalletLimit; } function updateMaxTransactionLimit(uint256 newLimit) external onlyOwner { maxTransactionLimit = newLimit; } function setMinTokensForSwap(uint256 newMinTokens) external onlyOwner { require(newMinTokens > 0, "Cannot be zero"); minTokensForSwap = newMinTokens; } function toggleFee(bool enable) external onlyOwner { feeEnabled = enable; } function activateTrading() external onlyOwner { require(!tradingActive, "Trading already active"); tradingActive = true; launchBlock = block.number; } function toggleRestrictions(bool enable) external onlyOwner { restrictionEnabled = enable; } function manualTokenSwap(uint256 amount) external onlyOwner { swapTokensForEth(amount); } }
// 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: MIT pragma solidity ^0.8.19; interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint256 ); 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(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair( address tokenA, address tokenB ) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } interface IUniswapV2Pair { event Approval( address indexed owner, address indexed spender, uint256 value ); event Transfer(address indexed from, address indexed to, uint256 value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance( address owner, address spender ) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint256); function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; event Mint(address indexed sender, uint256 amount0, uint256 amount1); event Burn( address indexed sender, uint256 amount0, uint256 amount1, address indexed to ); event Swap( address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint256); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint256); function price1CumulativeLast() external view returns (uint256); function kLast() external view returns (uint256); function mint(address to) external returns (uint256 liquidity); function burn( address to ) external returns (uint256 amount0, uint256 amount1); function swap( uint256 amount0Out, uint256 amount1Out, address to, bytes calldata data ) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapETHForExactTokens( uint256 amountOut, address[] calldata path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function quote( uint256 amountA, uint256 reserveA, uint256 reserveB ) external pure returns (uint256 amountB); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountsOut( uint256 amountIn, address[] calldata path ) external view returns (uint256[] memory amounts); function getAmountsIn( uint256 amountOut, address[] calldata path ) external view returns (uint256[] memory amounts); } interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) 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); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/", "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "ds-test/=lib/openzeppelin-contracts-upgradeable/lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/", "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/", "solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dexPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExemptFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualTokenSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTransactionLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTokensForSwap","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"restrictionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setExemption","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinTokens","type":"uint256"}],"name":"setMinTokensForSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"toggleFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enable","type":"bool"}],"name":"toggleRestrictions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"newReceiver","type":"address"}],"name":"updateFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"updateMaxTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxWalletLimit","type":"uint256"}],"name":"updateMaxWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052601960088190556009556028600d55600f805461ffff191661010117905534801561002e57600080fd5b50336040518060400160405280600681526020016546752042616f60d01b81525060405180604001604052806005815260200164465542414f60d81b815250816003908161007c9190610c2e565b5060046100898282610c2e565b5050506001600160a01b0381166100bb57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100c481610349565b506000737a250d5630b4cf539739df2c5dacb4c659f2488d90506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561011e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101429190610cec565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561018f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b39190610cec565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102249190610cec565b600f8054600160201b600160c01b0319167786c6f4c418532a52420a97a1c32ca92976770e500000000017905533600081815260106020526040808220805460ff19908116600190811790925530845282842080548216831790556001600160a01b038616845291909220805490911690911790559091506102b4906d314dc6448d9338c15b0a0000000061039b565b6001600160a01b03808316608052811660a0526103e86102d360025490565b6102de906002610d32565b6102e89190610d4f565b600a5560646102f660025490565b610301906002610d32565b61030b9190610d4f565b600755606461031960025490565b610324906002610d32565b61032e9190610d4f565b6006556080516103429030906000196103d5565b5050610e38565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166103c55760405163ec442f0560e01b8152600060048201526024016100b2565b6103d1600083836103e7565b5050565b6103e2838383600161081d565b505050565b600081116104475760405162461bcd60e51b815260206004820152602760248201527f45524332303a20616d6f756e74206d7573742062652067726561746572207468604482015266616e207a65726f60c81b60648201526084016100b2565b600061045b6005546001600160a01b031690565b600f549091506301000000900460ff166104ec57806001600160a01b0316846001600160a01b031614806104a05750806001600160a01b0316836001600160a01b0316145b6104ec5760405162461bcd60e51b815260206004820152601960248201527f54726164696e67206e6f7420616374697661746564207965740000000000000060448201526064016100b2565b600060a0516001600160a01b0316856001600160a01b031614801561052a57506001600160a01b03841660009081526010602052604090205460ff16155b1561064a57600f54610100900460ff161561060c576006548311156105915760405162461bcd60e51b815260206004820152601760248201527f45786365656473206d6178207472616e73616374696f6e00000000000000000060448201526064016100b2565b600754836105b4866001600160a01b031660009081526020819052604090205490565b6105be9190610d71565b111561060c5760405162461bcd60e51b815260206004820152601860248201527f45786365656473206d61782077616c6c6574206c696d6974000000000000000060448201526064016100b2565b600f5460ff1615610634576064600854846106279190610d32565b6106319190610d4f565b90505b600c805490600061064483610d84565b91905055505b60a0516001600160a01b0316846001600160a01b031614801561068657506001600160a01b03851660009081526010602052604090205460ff16155b1561071557600f54610100900460ff16156106ed576006548311156106ed5760405162461bcd60e51b815260206004820152601760248201527f45786365656473206d6178207472616e73616374696f6e00000000000000000060448201526064016100b2565b600f5460ff1615610715576064600954846107089190610d32565b6107129190610d4f565b90505b30600090815260208190526040902054600a548110156001600160a01b038716158015906107405750805b80156107555750600f5462010000900460ff16155b8015610775575060a0516001600160a01b0316876001600160a01b031614155b801561079a57506001600160a01b03871660009081526010602052604090205460ff16155b80156107a95750600d54600c54115b80156107b65750600e5443115b80156107c45750600a548510155b156107d95743600e55600a546107d9906108f3565b82156108095760006107eb8487610d9d565b90506107f8883086610a66565b610803888883610a66565b50610814565b610814878787610a66565b50505050505050565b6001600160a01b0384166108475760405163e602df0560e01b8152600060048201526024016100b2565b6001600160a01b03831661087157604051634a1406b160e11b8152600060048201526024016100b2565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156108ed57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516108e491815260200190565b60405180910390a35b50505050565b600f805462ff0000191662010000179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061093957610939610db0565b60200260200101906001600160a01b031690816001600160a01b0316815250506080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610999573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bd9190610cec565b816001815181106109d0576109d0610db0565b6001600160a01b039283166020918202929092010152608051600f5460405163791ac94760e01b81529183169263791ac94792610a2492879260009288926401000000009004909116904290600401610dc6565b600060405180830381600087803b158015610a3e57600080fd5b505af1158015610a52573d6000803e3d6000fd5b5050600f805462ff00001916905550505050565b6001600160a01b038316610a91578060026000828254610a869190610d71565b90915550610b039050565b6001600160a01b03831660009081526020819052604090205481811015610ae45760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100b2565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610b1f57600280548290039055610b3e565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b8391815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610bba57607f821691505b602082108103610bda57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103e257806000526020600020601f840160051c81016020851015610c075750805b601f840160051c820191505b81811015610c275760008155600101610c13565b5050505050565b81516001600160401b03811115610c4757610c47610b90565b610c5b81610c558454610ba6565b84610be0565b6020601f821160018114610c8f5760008315610c775750848201515b600019600385901b1c1916600184901b178455610c27565b600084815260208120601f198516915b82811015610cbf5787850151825560209485019460019092019101610c9f565b5084821015610cdd5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b600060208284031215610cfe57600080fd5b81516001600160a01b0381168114610d1557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610d4957610d49610d1c565b92915050565b600082610d6c57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610d4957610d49610d1c565b600060018201610d9657610d96610d1c565b5060010190565b81810381811115610d4957610d49610d1c565b634e487b7160e01b600052603260045260246000fd5b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b81811015610e185783516001600160a01b0316835260209384019390920191600101610df1565b50506001600160a01b039590951660608401525050608001529392505050565b60805160a05161144d610e796000396000818161044001528181610c5a01528181610dce0152610ef801526000818161093501526109f0015261144d6000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063868e4c611161010f578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e14610402578063f242ab411461043b578063f2fde38b14610462578063fe8972ca1461047557600080fd5b8063a9059cbb146103b5578063bbc0c742146103c8578063c69bebe4146103dc578063d64c13bb146103ef57600080fd5b80639213f7db116100de5780639213f7db1461037b57806393c4bfaa1461038e57806395d89b41146103a0578063a771ebc7146103a857600080fd5b8063868e4c61146103255780638da5cb5b146103385780638f3d6e041461035d578063902d55a51461036657600080fd5b80634324deae11610187578063676c845811610156578063676c8458146102d857806370a08231146102e1578063715018a61461030a57806384a0762d1461031257600080fd5b80634324deae1461029057806347062402146102a357806360fd0989146102ac57806366a88d96146102cf57600080fd5b806323b872dd116101c357806323b872dd146102525780632b14ca5614610265578063313ce5671461026e5780633ea6e0711461027d57600080fd5b806306fdde03146101f5578063095ea7b3146102135780630bd05b691461023657806318160ddd14610240575b600080fd5b6101fd610488565b60405161020a91906110ff565b60405180910390f35b610226610221366004611162565b61051a565b604051901515815260200161020a565b61023e610534565b005b6002545b60405190815260200161020a565b61022661026036600461118e565b6105ad565b61024460095481565b6040516012815260200161020a565b61023e61028b3660046111e4565b6105d1565b61023e61029e366004611219565b610604565b61024460085481565b6102266102ba366004611232565b60106020526000908152604090205460ff1681565b61024460075481565b61024460065481565b6102446102ef366004611232565b6001600160a01b031660009081526020819052604090205490565b61023e610611565b61023e610320366004611219565b610625565b61023e610333366004611256565b610673565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161020a565b610244600a5481565b6102446d314dc6448d9338c15b0a0000000081565b61023e610389366004611219565b61068e565b600f5461022690610100900460ff1681565b6101fd6106a2565b600f546102269060ff1681565b6102266103c3366004611162565b6106b1565b600f54610226906301000000900460ff1681565b61023e6103ea366004611232565b6106bf565b61023e6103fd366004611219565b6106f5565b610244610410366004611271565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103457f000000000000000000000000000000000000000000000000000000000000000081565b61023e610470366004611232565b610702565b61023e610483366004611256565b61073d565b606060038054610497906112aa565b80601f01602080910402602001604051908101604052809291908181526020018280546104c3906112aa565b80156105105780601f106104e557610100808354040283529160200191610510565b820191906000526020600020905b8154815290600101906020018083116104f357829003601f168201915b5050505050905090565b60003361052881858561075f565b60019150505b92915050565b61053c610771565b600f546301000000900460ff16156105945760405162461bcd60e51b815260206004820152601660248201527554726164696e6720616c72656164792061637469766560501b60448201526064015b60405180910390fd5b600f805463ff0000001916630100000017905543600b55565b6000336105bb85828561079e565b6105c685858561081c565b506001949350505050565b6105d9610771565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b61060c610771565b600755565b610619610771565b610623600061087b565b565b61062d610771565b6000811161066e5760405162461bcd60e51b815260206004820152600e60248201526d43616e6e6f74206265207a65726f60901b604482015260640161058b565b600a55565b61067b610771565b600f805460ff1916911515919091179055565b610696610771565b61069f816108cd565b50565b606060048054610497906112aa565b60003361052881858561081c565b6106c7610771565b600f80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6106fd610771565b600655565b61070a610771565b6001600160a01b03811661073457604051631e4fbdf760e01b81526000600482015260240161058b565b61069f8161087b565b610745610771565b600f80549115156101000261ff0019909216919091179055565b61076c8383836001610a7c565b505050565b6005546001600160a01b031633146106235760405163118cdaa760e01b815233600482015260240161058b565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610816578181101561080757604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161058b565b61081684848484036000610a7c565b50505050565b6001600160a01b03831661084657604051634b637e8f60e11b81526000600482015260240161058b565b6001600160a01b0382166108705760405163ec442f0560e01b81526000600482015260240161058b565b61076c838383610b51565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f805462ff00001916620100001790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610913576109136112e4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b591906112fa565b816001815181106109c8576109c86112e4565b6001600160a01b039283166020918202929092010152600f5460405163791ac94760e01b81527f000000000000000000000000000000000000000000000000000000000000000083169263791ac94792610a3a9287926000928892640100000000909104909116904290600401611317565b600060405180830381600087803b158015610a5457600080fd5b505af1158015610a68573d6000803e3d6000fd5b5050600f805462ff00001916905550505050565b6001600160a01b038416610aa65760405163e602df0560e01b81526000600482015260240161058b565b6001600160a01b038316610ad057604051634a1406b160e11b81526000600482015260240161058b565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561081657826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610b4391815260200190565b60405180910390a350505050565b60008111610bb15760405162461bcd60e51b815260206004820152602760248201527f45524332303a20616d6f756e74206d7573742062652067726561746572207468604482015266616e207a65726f60c81b606482015260840161058b565b6000610bc56005546001600160a01b031690565b600f549091506301000000900460ff16610c5657806001600160a01b0316846001600160a01b03161480610c0a5750806001600160a01b0316836001600160a01b0316145b610c565760405162461bcd60e51b815260206004820152601960248201527f54726164696e67206e6f74206163746976617465642079657400000000000000604482015260640161058b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316148015610cb257506001600160a01b03841660009081526010602052604090205460ff16155b15610dcc57600f54610100900460ff1615610d8e57600654831115610d135760405162461bcd60e51b815260206004820152601760248201527622bc31b2b2b2399036b0bc103a3930b739b0b1ba34b7b760491b604482015260640161058b565b60075483610d36866001600160a01b031660009081526020819052604090205490565b610d40919061139f565b1115610d8e5760405162461bcd60e51b815260206004820152601860248201527f45786365656473206d61782077616c6c6574206c696d69740000000000000000604482015260640161058b565b600f5460ff1615610db657606460085484610da991906113b2565b610db391906113c9565b90505b600c8054906000610dc6836113eb565b91905055505b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316148015610e2657506001600160a01b03851660009081526010602052604090205460ff16155b15610eaf57600f54610100900460ff1615610e8757600654831115610e875760405162461bcd60e51b815260206004820152601760248201527622bc31b2b2b2399036b0bc103a3930b739b0b1ba34b7b760491b604482015260640161058b565b600f5460ff1615610eaf57606460095484610ea291906113b2565b610eac91906113c9565b90505b30600090815260208190526040902054600a548110156001600160a01b03871615801590610eda5750805b8015610eef5750600f5462010000900460ff16155b8015610f2d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316876001600160a01b031614155b8015610f5257506001600160a01b03871660009081526010602052604090205460ff16155b8015610f615750600d54600c54115b8015610f6e5750600e5443115b8015610f7c5750600a548510155b15610f915743600e55600a54610f91906108cd565b8215610fc1576000610fa38487611404565b9050610fb0883086610fd5565b610fbb888883610fd5565b50610fcc565b610fcc878787610fd5565b50505050505050565b6001600160a01b038316611000578060026000828254610ff5919061139f565b909155506110729050565b6001600160a01b038316600090815260208190526040902054818110156110535760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161058b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661108e576002805482900390556110ad565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110f291815260200190565b60405180910390a3505050565b602081526000825180602084015260005b8181101561112d5760208186018101516040868401015201611110565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461069f57600080fd5b6000806040838503121561117557600080fd5b82356111808161114d565b946020939093013593505050565b6000806000606084860312156111a357600080fd5b83356111ae8161114d565b925060208401356111be8161114d565b929592945050506040919091013590565b803580151581146111df57600080fd5b919050565b600080604083850312156111f757600080fd5b82356112028161114d565b9150611210602084016111cf565b90509250929050565b60006020828403121561122b57600080fd5b5035919050565b60006020828403121561124457600080fd5b813561124f8161114d565b9392505050565b60006020828403121561126857600080fd5b61124f826111cf565b6000806040838503121561128457600080fd5b823561128f8161114d565b9150602083013561129f8161114d565b809150509250929050565b600181811c908216806112be57607f821691505b6020821081036112de57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561130c57600080fd5b815161124f8161114d565b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b818110156113695783516001600160a01b0316835260209384019390920191600101611342565b50506001600160a01b039590951660608401525050608001529392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561052e5761052e611389565b808202811582820484141761052e5761052e611389565b6000826113e657634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016113fd576113fd611389565b5060010190565b8181038181111561052e5761052e61138956fea26469706673582212206cd69c7c5ff872ef6890a53d8779902850b3384e226d6d49c83c5d86ac6e454a64736f6c634300081b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063868e4c611161010f578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e14610402578063f242ab411461043b578063f2fde38b14610462578063fe8972ca1461047557600080fd5b8063a9059cbb146103b5578063bbc0c742146103c8578063c69bebe4146103dc578063d64c13bb146103ef57600080fd5b80639213f7db116100de5780639213f7db1461037b57806393c4bfaa1461038e57806395d89b41146103a0578063a771ebc7146103a857600080fd5b8063868e4c61146103255780638da5cb5b146103385780638f3d6e041461035d578063902d55a51461036657600080fd5b80634324deae11610187578063676c845811610156578063676c8458146102d857806370a08231146102e1578063715018a61461030a57806384a0762d1461031257600080fd5b80634324deae1461029057806347062402146102a357806360fd0989146102ac57806366a88d96146102cf57600080fd5b806323b872dd116101c357806323b872dd146102525780632b14ca5614610265578063313ce5671461026e5780633ea6e0711461027d57600080fd5b806306fdde03146101f5578063095ea7b3146102135780630bd05b691461023657806318160ddd14610240575b600080fd5b6101fd610488565b60405161020a91906110ff565b60405180910390f35b610226610221366004611162565b61051a565b604051901515815260200161020a565b61023e610534565b005b6002545b60405190815260200161020a565b61022661026036600461118e565b6105ad565b61024460095481565b6040516012815260200161020a565b61023e61028b3660046111e4565b6105d1565b61023e61029e366004611219565b610604565b61024460085481565b6102266102ba366004611232565b60106020526000908152604090205460ff1681565b61024460075481565b61024460065481565b6102446102ef366004611232565b6001600160a01b031660009081526020819052604090205490565b61023e610611565b61023e610320366004611219565b610625565b61023e610333366004611256565b610673565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161020a565b610244600a5481565b6102446d314dc6448d9338c15b0a0000000081565b61023e610389366004611219565b61068e565b600f5461022690610100900460ff1681565b6101fd6106a2565b600f546102269060ff1681565b6102266103c3366004611162565b6106b1565b600f54610226906301000000900460ff1681565b61023e6103ea366004611232565b6106bf565b61023e6103fd366004611219565b6106f5565b610244610410366004611271565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103457f0000000000000000000000009f7cf6a64472c6ff64d3c59349f5b660ff4ba04981565b61023e610470366004611232565b610702565b61023e610483366004611256565b61073d565b606060038054610497906112aa565b80601f01602080910402602001604051908101604052809291908181526020018280546104c3906112aa565b80156105105780601f106104e557610100808354040283529160200191610510565b820191906000526020600020905b8154815290600101906020018083116104f357829003601f168201915b5050505050905090565b60003361052881858561075f565b60019150505b92915050565b61053c610771565b600f546301000000900460ff16156105945760405162461bcd60e51b815260206004820152601660248201527554726164696e6720616c72656164792061637469766560501b60448201526064015b60405180910390fd5b600f805463ff0000001916630100000017905543600b55565b6000336105bb85828561079e565b6105c685858561081c565b506001949350505050565b6105d9610771565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b61060c610771565b600755565b610619610771565b610623600061087b565b565b61062d610771565b6000811161066e5760405162461bcd60e51b815260206004820152600e60248201526d43616e6e6f74206265207a65726f60901b604482015260640161058b565b600a55565b61067b610771565b600f805460ff1916911515919091179055565b610696610771565b61069f816108cd565b50565b606060048054610497906112aa565b60003361052881858561081c565b6106c7610771565b600f80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b6106fd610771565b600655565b61070a610771565b6001600160a01b03811661073457604051631e4fbdf760e01b81526000600482015260240161058b565b61069f8161087b565b610745610771565b600f80549115156101000261ff0019909216919091179055565b61076c8383836001610a7c565b505050565b6005546001600160a01b031633146106235760405163118cdaa760e01b815233600482015260240161058b565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610816578181101561080757604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161058b565b61081684848484036000610a7c565b50505050565b6001600160a01b03831661084657604051634b637e8f60e11b81526000600482015260240161058b565b6001600160a01b0382166108705760405163ec442f0560e01b81526000600482015260240161058b565b61076c838383610b51565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600f805462ff00001916620100001790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610913576109136112e4565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b591906112fa565b816001815181106109c8576109c86112e4565b6001600160a01b039283166020918202929092010152600f5460405163791ac94760e01b81527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d83169263791ac94792610a3a9287926000928892640100000000909104909116904290600401611317565b600060405180830381600087803b158015610a5457600080fd5b505af1158015610a68573d6000803e3d6000fd5b5050600f805462ff00001916905550505050565b6001600160a01b038416610aa65760405163e602df0560e01b81526000600482015260240161058b565b6001600160a01b038316610ad057604051634a1406b160e11b81526000600482015260240161058b565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561081657826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610b4391815260200190565b60405180910390a350505050565b60008111610bb15760405162461bcd60e51b815260206004820152602760248201527f45524332303a20616d6f756e74206d7573742062652067726561746572207468604482015266616e207a65726f60c81b606482015260840161058b565b6000610bc56005546001600160a01b031690565b600f549091506301000000900460ff16610c5657806001600160a01b0316846001600160a01b03161480610c0a5750806001600160a01b0316836001600160a01b0316145b610c565760405162461bcd60e51b815260206004820152601960248201527f54726164696e67206e6f74206163746976617465642079657400000000000000604482015260640161058b565b60007f0000000000000000000000009f7cf6a64472c6ff64d3c59349f5b660ff4ba0496001600160a01b0316856001600160a01b0316148015610cb257506001600160a01b03841660009081526010602052604090205460ff16155b15610dcc57600f54610100900460ff1615610d8e57600654831115610d135760405162461bcd60e51b815260206004820152601760248201527622bc31b2b2b2399036b0bc103a3930b739b0b1ba34b7b760491b604482015260640161058b565b60075483610d36866001600160a01b031660009081526020819052604090205490565b610d40919061139f565b1115610d8e5760405162461bcd60e51b815260206004820152601860248201527f45786365656473206d61782077616c6c6574206c696d69740000000000000000604482015260640161058b565b600f5460ff1615610db657606460085484610da991906113b2565b610db391906113c9565b90505b600c8054906000610dc6836113eb565b91905055505b7f0000000000000000000000009f7cf6a64472c6ff64d3c59349f5b660ff4ba0496001600160a01b0316846001600160a01b0316148015610e2657506001600160a01b03851660009081526010602052604090205460ff16155b15610eaf57600f54610100900460ff1615610e8757600654831115610e875760405162461bcd60e51b815260206004820152601760248201527622bc31b2b2b2399036b0bc103a3930b739b0b1ba34b7b760491b604482015260640161058b565b600f5460ff1615610eaf57606460095484610ea291906113b2565b610eac91906113c9565b90505b30600090815260208190526040902054600a548110156001600160a01b03871615801590610eda5750805b8015610eef5750600f5462010000900460ff16155b8015610f2d57507f0000000000000000000000009f7cf6a64472c6ff64d3c59349f5b660ff4ba0496001600160a01b0316876001600160a01b031614155b8015610f5257506001600160a01b03871660009081526010602052604090205460ff16155b8015610f615750600d54600c54115b8015610f6e5750600e5443115b8015610f7c5750600a548510155b15610f915743600e55600a54610f91906108cd565b8215610fc1576000610fa38487611404565b9050610fb0883086610fd5565b610fbb888883610fd5565b50610fcc565b610fcc878787610fd5565b50505050505050565b6001600160a01b038316611000578060026000828254610ff5919061139f565b909155506110729050565b6001600160a01b038316600090815260208190526040902054818110156110535760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161058b565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661108e576002805482900390556110ad565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110f291815260200190565b60405180910390a3505050565b602081526000825180602084015260005b8181101561112d5760208186018101516040868401015201611110565b506000604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038116811461069f57600080fd5b6000806040838503121561117557600080fd5b82356111808161114d565b946020939093013593505050565b6000806000606084860312156111a357600080fd5b83356111ae8161114d565b925060208401356111be8161114d565b929592945050506040919091013590565b803580151581146111df57600080fd5b919050565b600080604083850312156111f757600080fd5b82356112028161114d565b9150611210602084016111cf565b90509250929050565b60006020828403121561122b57600080fd5b5035919050565b60006020828403121561124457600080fd5b813561124f8161114d565b9392505050565b60006020828403121561126857600080fd5b61124f826111cf565b6000806040838503121561128457600080fd5b823561128f8161114d565b9150602083013561129f8161114d565b809150509250929050565b600181811c908216806112be57607f821691505b6020821081036112de57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561130c57600080fd5b815161124f8161114d565b600060a0820187835286602084015260a0604084015280865180835260c08501915060208801925060005b818110156113695783516001600160a01b0316835260209384019390920191600101611342565b50506001600160a01b039590951660608401525050608001529392505050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561052e5761052e611389565b808202811582820484141761052e5761052e611389565b6000826113e657634e487b7160e01b600052601260045260246000fd5b500490565b6000600182016113fd576113fd611389565b5060010190565b8181038181111561052e5761052e61138956fea26469706673582212206cd69c7c5ff872ef6890a53d8779902850b3384e226d6d49c83c5d86ac6e454a64736f6c634300081b0033
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.