ERC-20
Overview
Max Total Supply
96,899,407.637136724376105356 INSAI
Holders
291
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
6,431.410402857054816893 INSAIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Insai
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.25; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import './interfaces/IUniswapV2Router02.sol'; contract Insai is ERC20, Ownable { // WETH address public immutable WETH; // Addresses exempt from fees mapping(address => bool) public isExemptFromFee; // Fees uint256 public buyStandardFee = 40; // 4% uint256 public sellStandardFee = 40; // 4% uint256 public buyBurnFee = 10; // 1% uint256 public sellBurnFee = 10; // 1% uint256 public minimumBalanceToSwap = 100_000 ether; // 0.1% of total supply address public feeRecipient; // Pair addresses mapping(address => bool) public isPair; // Router IUniswapV2Router02 public uniswapV2Router; // Swapping fees bool public swapping; bool public swapEnabled = true; // Maximum per wallet uint256 public maxPerWallet = 2_000_000 ether; // 2% of total supply mapping(address => bool) public isExemptFromMax; // Trading enabled bool public tradingEnabled; // Modifier to prevent multiple swaps from occurring at once modifier lockSwap() { swapping = true; _; swapping = false; } constructor(address _uniswapV2Router, address _feeRecipient, address _weth) ERC20('InsightAI', 'INSAI') Ownable(msg.sender) { // Set WETH WETH = _weth; // Exempt addresses from fees isExemptFromFee[address(this)] = true; isExemptFromFee[msg.sender] = true; isExemptFromFee[_feeRecipient] = true; // Set addresses as exempt from max isExemptFromMax[address(this)] = true; isExemptFromMax[msg.sender] = true; isExemptFromMax[_feeRecipient] = true; // Set addresses uniswapV2Router = IUniswapV2Router02(_uniswapV2Router); feeRecipient = _feeRecipient; // Mint 100M tokens to the deployer _mint(msg.sender, 100_000_000 ether); } // _update override to apply fees function _update(address from, address to, uint256 value) internal override { // Trading must be enabled require(tradingEnabled || from == owner() || to == owner(), 'Trading not enabled'); // If fee is applicable, calculate and send it to the contract // Pair == from: buy transaction if (isPair[from] && !isExemptFromFee[to]) { // Calculate standard fee uint256 standardFee = (value * buyStandardFee) / 1000; // Update balances directly super._update(from, address(this), standardFee); // Calculate burn fee uint256 burnFee = (value * buyBurnFee) / 1000; // Burn tokens directly super._update(from, address(0), burnFee); // Update value value -= standardFee + burnFee; } // Pair == to: sell transaction else if (isPair[to] && !isExemptFromFee[from]) { // Calculate standard fee uint256 standardFee = (value * sellStandardFee) / 1000; // Update balances directly super._update(from, address(this), standardFee); // Calculate burn fee uint256 burnFee = (value * sellBurnFee) / 1000; // Burn tokens directly super._update(from, address(0), burnFee); // Update value value -= standardFee + burnFee; } // Max per wallet logic. Does not apply if the sender is the owner if (!isExemptFromMax[to] && from != owner()) { require(balanceOf(to) + value <= maxPerWallet, 'Max per wallet exceeded'); } // Swapping logic if (swapEnabled && !swapping) { // Get contract balance uint256 contractBalance = balanceOf(address(this)); // Swap for ETH if the contract balance is greater than the minimum balance to swap if (contractBalance >= minimumBalanceToSwap) { swapTokensForEth(contractBalance); } } // Super call to update the balance super._update(from, to, value); } // Swap contract balance for ETH. Locks the swap to prevent reentrancy function swapTokensForEth(uint256 tokenAmount) internal lockSwap { // Generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = WETH; // Approve the maximum amount if it hasn't been approved yet if (allowance(address(this), address(uniswapV2Router)) < type(uint256).max) { _approve(address(this), address(uniswapV2Router), type(uint256).max); } // Perform the swap & send the ETH to the fee recipient uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // Accept any amount of ETH path, feeRecipient, block.timestamp + 10 minutes ); } // Manual swap function, only callable by the owner function manualSwap(uint256 amount) external onlyOwner { require(!swapping, 'Swapping in progress'); require(amount > 0, 'Amount must be greater than 0'); require(amount <= balanceOf(address(this)), 'Insufficient balance'); // Swap tokens for ETH swapTokensForEth(amount); } // Same as above, but swaps the entire balance function manualSwapAll() external onlyOwner { require(!swapping, 'Swapping in progress'); require(balanceOf(address(this)) > 0, 'Cannot swap 0 tokens'); // Swap tokens for ETH swapTokensForEth(balanceOf(address(this))); } // Enables withdrawing fees when swap is disabled function withdrawFees() external onlyOwner { require(!swapEnabled, 'Cannot withdraw fees when swap is enabled'); // Get contract balance uint256 contractBalance = balanceOf(address(this)); // Transfer the balance to the owner _transfer(address(this), feeRecipient, contractBalance); } // Update the buy standard fee function setBuyStandardFee(uint256 _buyStandardFee) external onlyOwner { require(_buyStandardFee <= 200, 'Fee must be less than or equal to 200'); buyStandardFee = _buyStandardFee; } // Update the sell standard fee function setSellStandardFee(uint256 _sellStandardFee) external onlyOwner { require(_sellStandardFee <= 200, 'Fee must be less than or equal to 200'); sellStandardFee = _sellStandardFee; } // Update the buy burn fee function setBuyBurnFee(uint256 _buyBurnFee) external onlyOwner { require(_buyBurnFee <= 200, 'Fee must be less than or equal to 200'); buyBurnFee = _buyBurnFee; } // Update the sell burn fee function setSellBurnFee(uint256 _sellBurnFee) external onlyOwner { require(_sellBurnFee <= 200, 'Fee must be less than or equal to 200'); sellBurnFee = _sellBurnFee; } // Exempt an address from fees function setExemptFromFee(address _address, bool _exempt) external onlyOwner { isExemptFromFee[_address] = _exempt; } // Add or remove a pair function setPair(address _pair, bool _isPair) external onlyOwner { isPair[_pair] = _isPair; } // Enable / disable swapping function setSwapEnabled(bool _swapEnabled) external onlyOwner { swapEnabled = _swapEnabled; } // Set minimum balance to swap function setMinimumBalanceToSwap(uint256 _minimumBalanceToSwap) external onlyOwner { minimumBalanceToSwap = _minimumBalanceToSwap; } // Set maximum percentage per wallet function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner { maxPerWallet = _maxPerWallet; } // Exempt an address from max function setExemptFromMax(address _address, bool _exempt) external onlyOwner { isExemptFromMax[_address] = _exempt; } // Enable trading function enableTrading(address _uniswapPair) external onlyOwner { // Mark trading as enabled tradingEnabled = true; // Mark the pair as such isPair[_uniswapPair] = true; // Exclude the INSAI/ETH pair from max per wallet isExemptFromMax[_uniswapPair] = true; } // Set the fee recipient function setFeeRecipient(address _feeRecipient) external onlyOwner { feeRecipient = _feeRecipient; } }
// 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 // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (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.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 pragma solidity ^0.8.25; 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.25; 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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_uniswapV2Router","type":"address"},{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"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":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"buyBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyStandardFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_uniswapPair","type":"address"}],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExemptFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExemptFromMax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualSwapAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumBalanceToSwap","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":"sellBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellStandardFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyBurnFee","type":"uint256"}],"name":"setBuyBurnFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyStandardFee","type":"uint256"}],"name":"setBuyStandardFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_exempt","type":"bool"}],"name":"setExemptFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_exempt","type":"bool"}],"name":"setExemptFromMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"}],"name":"setFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumBalanceToSwap","type":"uint256"}],"name":"setMinimumBalanceToSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"},{"internalType":"bool","name":"_isPair","type":"bool"}],"name":"setPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellBurnFee","type":"uint256"}],"name":"setSellBurnFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellStandardFee","type":"uint256"}],"name":"setSellStandardFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_swapEnabled","type":"bool"}],"name":"setSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapping","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"tradingEnabled","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":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405260286007819055600855600a6009819055805569152d02c7e14af6800000600b55600e805460ff60a81b1916600160a81b1790556a01a784379d99db42000000600f5534801561005357600080fd5b5060405161221438038061221483398101604081905261007291610902565b3360405180604001604052806009815260200168496e7369676874414960b81b81525060405180604001604052806005815260200164494e53414960d81b81525081600390816100c291906109e5565b5060046100cf82826109e5565b5050506001600160a01b03811661010157604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61010a816101ce565b506001600160a01b03808216608052306000818152600660209081526040808320805460ff1990811660019081179092553380865283862080548316841790558988168087528487208054841685179055968652601090945282852080548216831790558385528285208054821683179055858552919093208054909116909217909155600e80549387166001600160a01b0319948516179055600c80549093169091179091556101c6906a52b7d2dcc80cd2e4000000610220565b505050610ba2565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821661024a5760405163ec442f0560e01b8152600060048201526024016100f8565b6102566000838361025a565b5050565b60115460ff168061027857506005546001600160a01b038481169116145b8061029057506005546001600160a01b038381169116145b6102dc5760405162461bcd60e51b815260206004820152601360248201527f54726164696e67206e6f7420656e61626c65640000000000000000000000000060448201526064016100f8565b6001600160a01b0383166000908152600d602052604090205460ff16801561031d57506001600160a01b03821660009081526006602052604090205460ff16155b156103945760006103e8600754836103359190610aba565b61033f9190610ad1565b905061034c84308361055b565b60006103e86009548461035f9190610aba565b6103699190610ad1565b90506103778560008361055b565b6103818183610af3565b61038b9084610b06565b92505050610448565b6001600160a01b0382166000908152600d602052604090205460ff1680156103d557506001600160a01b03831660009081526006602052604090205460ff16155b156104485760006103e8600854836103ed9190610aba565b6103f79190610ad1565b905061040484308361055b565b60006103e8600a54846104179190610aba565b6104219190610ad1565b905061042f8560008361055b565b6104398183610af3565b6104439084610b06565b925050505b6001600160a01b03821660009081526010602052604090205460ff1615801561047f57506005546001600160a01b03848116911614155b156104ff57600f54816104a7846001600160a01b031660009081526020819052604090205490565b6104b19190610af3565b11156104ff5760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c657420657863656564656400000000000000000060448201526064016100f8565b600e54600160a81b900460ff1680156105225750600e54600160a01b900460ff16155b1561054b5730600090815260208190526040902054600b5481106105495761054981610685565b505b61055683838361055b565b505050565b6001600160a01b03831661058657806002600082825461057b9190610af3565b909155506105f89050565b6001600160a01b038316600090815260208190526040902054818110156105d95760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100f8565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661061457600280548290039055610633565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161067891815260200190565b60405180910390a3505050565b600e805460ff60a01b1916600160a01b17905560408051600280825260608201835260009260208301908036833701905050905030816000815181106106cd576106cd610b19565b60200260200101906001600160a01b031690816001600160a01b0316815250506080518160018151811061070357610703610b19565b6001600160a01b039283166020918202929092010152600e546000199161072c913091166107db565b101561074c57600e5461074c9030906001600160a01b0316600019610808565b600e54600c546001600160a01b039182169163791ac94791859160009186911661077842610258610af3565b6040518663ffffffff1660e01b8152600401610798959493929190610b2f565b600060405180830381600087803b1580156107b257600080fd5b505af11580156107c6573d6000803e3d6000fd5b5050600e805460ff60a01b1916905550505050565b6001600160a01b038083166000908152600160209081526040808320938516835292905220545b92915050565b61055683838360016001600160a01b03841661083a5760405163e602df0560e01b8152600060048201526024016100f8565b6001600160a01b03831661086457604051634a1406b160e11b8152600060048201526024016100f8565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156108e057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516108d791815260200190565b60405180910390a35b50505050565b80516001600160a01b03811681146108fd57600080fd5b919050565b60008060006060848603121561091757600080fd5b610920846108e6565b925061092e602085016108e6565b915061093c604085016108e6565b90509250925092565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061096f57607f821691505b60208210810361098f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610556576000816000526020600020601f850160051c810160208610156109be5750805b601f850160051c820191505b818110156109dd578281556001016109ca565b505050505050565b81516001600160401b038111156109fe576109fe610945565b610a1281610a0c845461095b565b84610995565b602080601f831160018114610a475760008415610a2f5750858301515b600019600386901b1c1916600185901b1785556109dd565b600085815260208120601f198616915b82811015610a7657888601518255948401946001909101908401610a57565b5085821015610a945787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761080257610802610aa4565b600082610aee57634e487b7160e01b600052601260045260246000fd5b500490565b8082018082111561080257610802610aa4565b8181038181111561080257610802610aa4565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015610b815784516001600160a01b031683529383019391830191600101610b5c565b50506001600160a01b03969096166060850152505050608001529392505050565b608051611650610bc46000396000818161046f0152610cd901526116506000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063bedafd01116100c3578063e5e31b1311610087578063e5e31b1314610515578063e71dc3f514610538578063e74b981b14610541578063ed9d8c9614610554578063f2fde38b1461055d578063f45326861461057057600080fd5b8063bedafd01146104c0578063dd62ed3e146104d3578063de38ca8b146104e6578063e01af92c146104ef578063e268e4d31461050257600080fd5b8063a9059cbb1161010a578063a9059cbb14610457578063ad5c46481461046a578063adb873bd14610491578063b0a863f91461049a578063b70143c9146104ad57600080fd5b8063715018a614610410578063732ce99a1461041857806386a22eff1461042b5780638da5cb5b1461043e57806395d89b411461044f57600080fd5b8063313ce567116101df578063476343ee116101a3578063476343ee146103a85780634ada218b146103b05780635a530c8a146103bd578063659bf1b2146103e05780636ddd1713146103e957806370a08231146103fd57600080fd5b8063313ce5671461036257806332454f3f14610371578063405dcb1b14610379578063453c23101461038c578063469048401461039557600080fd5b80631694505e116102265780631694505e146102eb5780631732cded1461031657806318160ddd1461032a5780631a3d138a1461033c57806323b872dd1461034f57600080fd5b80630184a8c314610263578063047b708e1461029b57806306fdde03146102b057806307980cb9146102c5578063095ea7b3146102d8575b600080fd5b610286610271366004611325565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6102ae6102a9366004611347565b610583565b005b6102b8610590565b6040516102929190611360565b6102ae6102d3366004611325565b610622565b6102866102e63660046113af565b610671565b600e546102fe906001600160a01b031681565b6040516001600160a01b039091168152602001610292565b600e5461028690600160a01b900460ff1681565b6002545b604051908152602001610292565b6102ae61034a3660046113e9565b61068b565b61028661035d36600461141c565b6106be565b60405160128152602001610292565b6102ae6106e2565b6102ae610387366004611347565b6107a2565b61032e600f5481565b600c546102fe906001600160a01b031681565b6102ae6107d0565b6011546102869060ff1681565b6102866103cb366004611325565b60106020526000908152604090205460ff1681565b61032e60075481565b600e5461028690600160a81b900460ff1681565b61032e61040b366004611325565b61086d565b6102ae610888565b6102ae610426366004611347565b61089a565b6102ae6104393660046113e9565b6108c8565b6005546001600160a01b03166102fe565b6102b86108fb565b6102866104653660046113af565b61090a565b6102fe7f000000000000000000000000000000000000000000000000000000000000000081565b61032e600a5481565b6102ae6104a8366004611347565b610918565b6102ae6104bb366004611347565b610946565b6102ae6104ce3660046113e9565b610a47565b61032e6104e1366004611458565b610a7a565b61032e600b5481565b6102ae6104fd366004611482565b610aa5565b6102ae610510366004611347565b610acb565b610286610523366004611325565b600d6020526000908152604090205460ff1681565b61032e60095481565b6102ae61054f366004611325565b610ad8565b61032e60085481565b6102ae61056b366004611325565b610b02565b6102ae61057e366004611347565b610b3d565b61058b610b6b565b600b55565b60606003805461059f9061149d565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb9061149d565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b61062a610b6b565b6011805460ff1990811660019081179092556001600160a01b039092166000908152600d602090815260408083208054861685179055601090915290208054909216179055565b60003361067f818585610b98565b60019150505b92915050565b610693610b6b565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6000336106cc858285610baa565b6106d7858585610c10565b506001949350505050565b6106ea610b6b565b600e54600160a01b900460ff16156107405760405162461bcd60e51b81526020600482015260146024820152735377617070696e6720696e2070726f677265737360601b60448201526064015b60405180910390fd5b600061074b3061086d565b1161078f5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f742073776170203020746f6b656e7360601b6044820152606401610737565b6107a061079b3061086d565b610c6f565b565b6107aa610b6b565b60c88111156107cb5760405162461bcd60e51b8152600401610737906114d7565b600955565b6107d8610b6b565b600e54600160a81b900460ff16156108445760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f742077697468647261772066656573207768656e207377617020696044820152681cc8195b98589b195960ba1b6064820152608401610737565b600061084f3061086d565b600c5490915061086a9030906001600160a01b031683610c10565b50565b6001600160a01b031660009081526020819052604090205490565b610890610b6b565b6107a06000610de3565b6108a2610b6b565b60c88111156108c35760405162461bcd60e51b8152600401610737906114d7565b600755565b6108d0610b6b565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b60606004805461059f9061149d565b60003361067f818585610c10565b610920610b6b565b60c88111156109415760405162461bcd60e51b8152600401610737906114d7565b600a55565b61094e610b6b565b600e54600160a01b900460ff161561099f5760405162461bcd60e51b81526020600482015260146024820152735377617070696e6720696e2070726f677265737360601b6044820152606401610737565b600081116109ef5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610737565b6109f83061086d565b811115610a3e5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610737565b61086a81610c6f565b610a4f610b6b565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610aad610b6b565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b610ad3610b6b565b600f55565b610ae0610b6b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610b0a610b6b565b6001600160a01b038116610b3457604051631e4fbdf760e01b815260006004820152602401610737565b61086a81610de3565b610b45610b6b565b60c8811115610b665760405162461bcd60e51b8152600401610737906114d7565b600855565b6005546001600160a01b031633146107a05760405163118cdaa760e01b8152336004820152602401610737565b610ba58383836001610e35565b505050565b6000610bb68484610a7a565b90506000198114610c0a5781811015610bfb57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610737565b610c0a84848484036000610e35565b50505050565b6001600160a01b038316610c3a57604051634b637e8f60e11b815260006004820152602401610737565b6001600160a01b038216610c645760405163ec442f0560e01b815260006004820152602401610737565b610ba5838383610f0a565b600e805460ff60a01b1916600160a01b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610cb757610cb761151c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610d0b57610d0b61151c565b6001600160a01b039283166020918202929092010152600e5460001991610d3491309116610a7a565b1015610d5457600e54610d549030906001600160a01b0316600019610b98565b600e54600c546001600160a01b039182169163791ac947918591600091869116610d8042610258611548565b6040518663ffffffff1660e01b8152600401610da095949392919061155b565b600060405180830381600087803b158015610dba57600080fd5b505af1158015610dce573d6000803e3d6000fd5b5050600e805460ff60a01b1916905550505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416610e5f5760405163e602df0560e01b815260006004820152602401610737565b6001600160a01b038316610e8957604051634a1406b160e11b815260006004820152602401610737565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610c0a57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610efc91815260200190565b60405180910390a350505050565b60115460ff1680610f2857506005546001600160a01b038481169116145b80610f4057506005546001600160a01b038381169116145b610f825760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610737565b6001600160a01b0383166000908152600d602052604090205460ff168015610fc357506001600160a01b03821660009081526006602052604090205460ff16155b1561103a5760006103e860075483610fdb91906115ce565b610fe591906115e5565b9050610ff28430836111df565b60006103e86009548461100591906115ce565b61100f91906115e5565b905061101d856000836111df565b6110278183611548565b6110319084611607565b925050506110ee565b6001600160a01b0382166000908152600d602052604090205460ff16801561107b57506001600160a01b03831660009081526006602052604090205460ff16155b156110ee5760006103e86008548361109391906115ce565b61109d91906115e5565b90506110aa8430836111df565b60006103e8600a54846110bd91906115ce565b6110c791906115e5565b90506110d5856000836111df565b6110df8183611548565b6110e99084611607565b925050505b6001600160a01b03821660009081526010602052604090205460ff1615801561112557506005546001600160a01b03848116911614155b1561118f57600f54816111378461086d565b6111419190611548565b111561118f5760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c65742065786365656465640000000000000000006044820152606401610737565b600e54600160a81b900460ff1680156111b25750600e54600160a01b900460ff16155b156111d85760006111c23061086d565b9050600b5481106111d6576111d681610c6f565b505b610ba58383835b6001600160a01b03831661120a5780600260008282546111ff9190611548565b9091555061127c9050565b6001600160a01b0383166000908152602081905260409020548181101561125d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610737565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216611298576002805482900390556112b7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112fc91815260200190565b60405180910390a3505050565b80356001600160a01b038116811461132057600080fd5b919050565b60006020828403121561133757600080fd5b61134082611309565b9392505050565b60006020828403121561135957600080fd5b5035919050565b60006020808352835180602085015260005b8181101561138e57858101830151858201604001528201611372565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156113c257600080fd5b6113cb83611309565b946020939093013593505050565b8035801515811461132057600080fd5b600080604083850312156113fc57600080fd5b61140583611309565b9150611413602084016113d9565b90509250929050565b60008060006060848603121561143157600080fd5b61143a84611309565b925061144860208501611309565b9150604084013590509250925092565b6000806040838503121561146b57600080fd5b61147483611309565b915061141360208401611309565b60006020828403121561149457600080fd5b611340826113d9565b600181811c908216806114b157607f821691505b6020821081036114d157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526025908201527f466565206d757374206265206c657373207468616e206f7220657175616c207460408201526406f203230360dc1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561068557610685611532565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156115ad5784516001600160a01b031683529383019391830191600101611588565b50506001600160a01b03969096166060850152505050608001529392505050565b808202811582820484141761068557610685611532565b60008261160257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156106855761068561153256fea2646970667358221220ef5ce5b683e4902044b6d112b81715bb08c20bf8a22358d0ef2412d2cbed17b364736f6c634300081900330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000f758334f6666a9f0c91b5aa29217ffb40b5cf688000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063bedafd01116100c3578063e5e31b1311610087578063e5e31b1314610515578063e71dc3f514610538578063e74b981b14610541578063ed9d8c9614610554578063f2fde38b1461055d578063f45326861461057057600080fd5b8063bedafd01146104c0578063dd62ed3e146104d3578063de38ca8b146104e6578063e01af92c146104ef578063e268e4d31461050257600080fd5b8063a9059cbb1161010a578063a9059cbb14610457578063ad5c46481461046a578063adb873bd14610491578063b0a863f91461049a578063b70143c9146104ad57600080fd5b8063715018a614610410578063732ce99a1461041857806386a22eff1461042b5780638da5cb5b1461043e57806395d89b411461044f57600080fd5b8063313ce567116101df578063476343ee116101a3578063476343ee146103a85780634ada218b146103b05780635a530c8a146103bd578063659bf1b2146103e05780636ddd1713146103e957806370a08231146103fd57600080fd5b8063313ce5671461036257806332454f3f14610371578063405dcb1b14610379578063453c23101461038c578063469048401461039557600080fd5b80631694505e116102265780631694505e146102eb5780631732cded1461031657806318160ddd1461032a5780631a3d138a1461033c57806323b872dd1461034f57600080fd5b80630184a8c314610263578063047b708e1461029b57806306fdde03146102b057806307980cb9146102c5578063095ea7b3146102d8575b600080fd5b610286610271366004611325565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6102ae6102a9366004611347565b610583565b005b6102b8610590565b6040516102929190611360565b6102ae6102d3366004611325565b610622565b6102866102e63660046113af565b610671565b600e546102fe906001600160a01b031681565b6040516001600160a01b039091168152602001610292565b600e5461028690600160a01b900460ff1681565b6002545b604051908152602001610292565b6102ae61034a3660046113e9565b61068b565b61028661035d36600461141c565b6106be565b60405160128152602001610292565b6102ae6106e2565b6102ae610387366004611347565b6107a2565b61032e600f5481565b600c546102fe906001600160a01b031681565b6102ae6107d0565b6011546102869060ff1681565b6102866103cb366004611325565b60106020526000908152604090205460ff1681565b61032e60075481565b600e5461028690600160a81b900460ff1681565b61032e61040b366004611325565b61086d565b6102ae610888565b6102ae610426366004611347565b61089a565b6102ae6104393660046113e9565b6108c8565b6005546001600160a01b03166102fe565b6102b86108fb565b6102866104653660046113af565b61090a565b6102fe7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b61032e600a5481565b6102ae6104a8366004611347565b610918565b6102ae6104bb366004611347565b610946565b6102ae6104ce3660046113e9565b610a47565b61032e6104e1366004611458565b610a7a565b61032e600b5481565b6102ae6104fd366004611482565b610aa5565b6102ae610510366004611347565b610acb565b610286610523366004611325565b600d6020526000908152604090205460ff1681565b61032e60095481565b6102ae61054f366004611325565b610ad8565b61032e60085481565b6102ae61056b366004611325565b610b02565b6102ae61057e366004611347565b610b3d565b61058b610b6b565b600b55565b60606003805461059f9061149d565b80601f01602080910402602001604051908101604052809291908181526020018280546105cb9061149d565b80156106185780601f106105ed57610100808354040283529160200191610618565b820191906000526020600020905b8154815290600101906020018083116105fb57829003601f168201915b5050505050905090565b61062a610b6b565b6011805460ff1990811660019081179092556001600160a01b039092166000908152600d602090815260408083208054861685179055601090915290208054909216179055565b60003361067f818585610b98565b60019150505b92915050565b610693610b6b565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6000336106cc858285610baa565b6106d7858585610c10565b506001949350505050565b6106ea610b6b565b600e54600160a01b900460ff16156107405760405162461bcd60e51b81526020600482015260146024820152735377617070696e6720696e2070726f677265737360601b60448201526064015b60405180910390fd5b600061074b3061086d565b1161078f5760405162461bcd60e51b815260206004820152601460248201527343616e6e6f742073776170203020746f6b656e7360601b6044820152606401610737565b6107a061079b3061086d565b610c6f565b565b6107aa610b6b565b60c88111156107cb5760405162461bcd60e51b8152600401610737906114d7565b600955565b6107d8610b6b565b600e54600160a81b900460ff16156108445760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f742077697468647261772066656573207768656e207377617020696044820152681cc8195b98589b195960ba1b6064820152608401610737565b600061084f3061086d565b600c5490915061086a9030906001600160a01b031683610c10565b50565b6001600160a01b031660009081526020819052604090205490565b610890610b6b565b6107a06000610de3565b6108a2610b6b565b60c88111156108c35760405162461bcd60e51b8152600401610737906114d7565b600755565b6108d0610b6b565b6001600160a01b03919091166000908152600d60205260409020805460ff1916911515919091179055565b60606004805461059f9061149d565b60003361067f818585610c10565b610920610b6b565b60c88111156109415760405162461bcd60e51b8152600401610737906114d7565b600a55565b61094e610b6b565b600e54600160a01b900460ff161561099f5760405162461bcd60e51b81526020600482015260146024820152735377617070696e6720696e2070726f677265737360601b6044820152606401610737565b600081116109ef5760405162461bcd60e51b815260206004820152601d60248201527f416d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610737565b6109f83061086d565b811115610a3e5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610737565b61086a81610c6f565b610a4f610b6b565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610aad610b6b565b600e8054911515600160a81b0260ff60a81b19909216919091179055565b610ad3610b6b565b600f55565b610ae0610b6b565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b610b0a610b6b565b6001600160a01b038116610b3457604051631e4fbdf760e01b815260006004820152602401610737565b61086a81610de3565b610b45610b6b565b60c8811115610b665760405162461bcd60e51b8152600401610737906114d7565b600855565b6005546001600160a01b031633146107a05760405163118cdaa760e01b8152336004820152602401610737565b610ba58383836001610e35565b505050565b6000610bb68484610a7a565b90506000198114610c0a5781811015610bfb57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610737565b610c0a84848484036000610e35565b50505050565b6001600160a01b038316610c3a57604051634b637e8f60e11b815260006004820152602401610737565b6001600160a01b038216610c645760405163ec442f0560e01b815260006004820152602401610737565b610ba5838383610f0a565b600e805460ff60a01b1916600160a01b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610cb757610cb761151c565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610d0b57610d0b61151c565b6001600160a01b039283166020918202929092010152600e5460001991610d3491309116610a7a565b1015610d5457600e54610d549030906001600160a01b0316600019610b98565b600e54600c546001600160a01b039182169163791ac947918591600091869116610d8042610258611548565b6040518663ffffffff1660e01b8152600401610da095949392919061155b565b600060405180830381600087803b158015610dba57600080fd5b505af1158015610dce573d6000803e3d6000fd5b5050600e805460ff60a01b1916905550505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416610e5f5760405163e602df0560e01b815260006004820152602401610737565b6001600160a01b038316610e8957604051634a1406b160e11b815260006004820152602401610737565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610c0a57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610efc91815260200190565b60405180910390a350505050565b60115460ff1680610f2857506005546001600160a01b038481169116145b80610f4057506005546001600160a01b038381169116145b610f825760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610737565b6001600160a01b0383166000908152600d602052604090205460ff168015610fc357506001600160a01b03821660009081526006602052604090205460ff16155b1561103a5760006103e860075483610fdb91906115ce565b610fe591906115e5565b9050610ff28430836111df565b60006103e86009548461100591906115ce565b61100f91906115e5565b905061101d856000836111df565b6110278183611548565b6110319084611607565b925050506110ee565b6001600160a01b0382166000908152600d602052604090205460ff16801561107b57506001600160a01b03831660009081526006602052604090205460ff16155b156110ee5760006103e86008548361109391906115ce565b61109d91906115e5565b90506110aa8430836111df565b60006103e8600a54846110bd91906115ce565b6110c791906115e5565b90506110d5856000836111df565b6110df8183611548565b6110e99084611607565b925050505b6001600160a01b03821660009081526010602052604090205460ff1615801561112557506005546001600160a01b03848116911614155b1561118f57600f54816111378461086d565b6111419190611548565b111561118f5760405162461bcd60e51b815260206004820152601760248201527f4d6178207065722077616c6c65742065786365656465640000000000000000006044820152606401610737565b600e54600160a81b900460ff1680156111b25750600e54600160a01b900460ff16155b156111d85760006111c23061086d565b9050600b5481106111d6576111d681610c6f565b505b610ba58383835b6001600160a01b03831661120a5780600260008282546111ff9190611548565b9091555061127c9050565b6001600160a01b0383166000908152602081905260409020548181101561125d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610737565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216611298576002805482900390556112b7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112fc91815260200190565b60405180910390a3505050565b80356001600160a01b038116811461132057600080fd5b919050565b60006020828403121561133757600080fd5b61134082611309565b9392505050565b60006020828403121561135957600080fd5b5035919050565b60006020808352835180602085015260005b8181101561138e57858101830151858201604001528201611372565b506000604082860101526040601f19601f8301168501019250505092915050565b600080604083850312156113c257600080fd5b6113cb83611309565b946020939093013593505050565b8035801515811461132057600080fd5b600080604083850312156113fc57600080fd5b61140583611309565b9150611413602084016113d9565b90509250929050565b60008060006060848603121561143157600080fd5b61143a84611309565b925061144860208501611309565b9150604084013590509250925092565b6000806040838503121561146b57600080fd5b61147483611309565b915061141360208401611309565b60006020828403121561149457600080fd5b611340826113d9565b600181811c908216806114b157607f821691505b6020821081036114d157634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526025908201527f466565206d757374206265206c657373207468616e206f7220657175616c207460408201526406f203230360dc1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561068557610685611532565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156115ad5784516001600160a01b031683529383019391830191600101611588565b50506001600160a01b03969096166060850152505050608001529392505050565b808202811582820484141761068557610685611532565b60008261160257634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156106855761068561153256fea2646970667358221220ef5ce5b683e4902044b6d112b81715bb08c20bf8a22358d0ef2412d2cbed17b364736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000f758334f6666a9f0c91b5aa29217ffb40b5cf688000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _uniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _feeRecipient (address): 0xf758334f6666A9f0C91b5aa29217fFb40b5cf688
Arg [2] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000f758334f6666a9f0c91b5aa29217ffb40b5cf688
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
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.