编译器
0.8.22+commit.4fc1097e
文件 1 的 14:Address.sol
pragma solidity ^0.8.1;
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
文件 2 的 14:Context.sol
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
文件 3 的 14:ERC20.sol
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
文件 4 的 14:ForgottenPlaylandToken.sol
pragma solidity 0.8.22;
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
interface IUniswapV3Router {
function factory() external pure returns (address);
}
contract ForgottenPlaylandToken is ERC20, Ownable2Step {
using SafeERC20 for IERC20;
IUniswapV2Router02 public immutable uniswapV2Router;
IUniswapV3Router public immutable uniswapV3Router;
address public constant ZERO_ADDRESS = address(0);
address public constant DEAD_ADDRESS = address(0xdead);
bool private _v2LPProtectionEnabled;
bool private _v3LPProtectionEnabled;
bool public limitsEnabled;
bool public taxesEnabled;
bool public launched;
bool public migrated;
uint256 public constant MAX_BUY_FEE = 500;
uint256 public constant MAX_SELL_FEE = 500;
uint256 public constant FEES_PERCENT_DENOMINATOR = 10000;
uint256 public constant MAX_TRANSACTION_PERCENT_DENOMINATOR = 1000000;
uint256 public constant MAX_WALLET_PERCENT_DENOMINATOR = 100000;
uint256 public launchBlock;
uint256 public launchTime;
uint256 public maxTransaction;
uint256 public maxWallet;
uint256 public buyFees;
uint256 public sellFees;
mapping(address => bool) public isExcludedFromFees;
mapping(address => bool) public isExcludedMaxTransactionAmount;
mapping(address => bool) public automatedMarketMakerPairsV2;
mapping(address => bool) public automatedMarketMakerPairsV3;
mapping(address => bool) public isBot;
event Airdrop(address account, uint256 amount);
event Launch();
event PrepareForMigration();
event SetLimitsEnabled(bool status);
event SetTaxesEnabled(bool status);
event SetMaxTransaction(
uint256 oldValueMaxTransaction,
uint256 newValueMaxTransaction
);
event SetMaxWallet(uint256 oldValueMaxWallet, uint256 newValueMaxWallet);
event SetBuyFees(uint256 oldValue, uint256 newValue);
event SetSellFees(uint256 oldValue, uint256 newValue);
event WithdrawStuckTokens(address token, uint256 amount);
event ExcludeFromFees(address indexed account, bool isExcluded);
event ExcludeFromMaxTransaction(address indexed account, bool isExcluded);
event SetBots(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPairV2(
address indexed pair,
bool indexed value
);
event SetAutomatedMarketMakerPairV3(
address indexed pair,
bool indexed value
);
constructor() ERC20("Forgotten Playland", "FP") {
uint256 tSupply = 10_000_000_000 ether;
uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
uniswapV3Router = IUniswapV3Router(
0xE592427A0AEce92De3Edee1F18E0157C05861564
);
maxTransaction = tSupply;
maxWallet = tSupply;
buyFees = 500;
sellFees = 500;
_excludeFromFees(_msgSender(), true);
_excludeFromFees(address(this), true);
_excludeFromFees(DEAD_ADDRESS, true);
_excludeFromMaxTransaction(_msgSender(), true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(DEAD_ADDRESS, true);
_excludeFromMaxTransaction(address(uniswapV2Router), true);
_mint(_msgSender(), tSupply);
}
receive() external payable {}
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
function acceptOwnership() public virtual override {
address sender = _msgSender();
require(
pendingOwner() == sender,
"ForgottenPlaylandToken: caller is not the new owner"
);
address ownr = owner();
_excludeFromFees(ownr, false);
_excludeFromMaxTransaction(ownr, false);
_excludeFromFees(sender, true);
_excludeFromMaxTransaction(sender, true);
super.acceptOwnership();
}
function renounceOwnership() public virtual override onlyOwner {
_excludeFromFees(_msgSender(), false);
_excludeFromMaxTransaction(_msgSender(), false);
super.renounceOwnership();
}
function airdrop(
address[] memory accounts,
uint256[] memory amounts
) public onlyOwner {
uint256 accountsLength = accounts.length;
require(
accountsLength == amounts.length,
"ForgottenPlaylandToken: Arrays must be the same length"
);
for (uint256 i = 0; i < accountsLength; i++) {
address account = accounts[i];
uint256 amount = amounts[i];
_transfer(_msgSender(), account, amount);
emit Airdrop(account, amount);
}
}
function launch() public onlyOwner {
require(!launched, "ForgottenPlaylandToken: Already launched.");
IUniswapV2Factory uniswapV2Factory = IUniswapV2Factory(
uniswapV2Router.factory()
);
IUniswapV3Factory uniswapV3Factory = IUniswapV3Factory(
uniswapV3Router.factory()
);
address wethAddress = uniswapV2Router.WETH();
address uniswapV2Pair = uniswapV2Factory.getPair(
address(this),
wethAddress
);
address uniswapV3Migrator = 0xA5644E29708357803b5A882D272c41cC0dF92B34;
if (uniswapV2Pair == ZERO_ADDRESS) {
uniswapV2Pair = uniswapV2Factory.createPair(
address(this),
wethAddress
);
}
address uniswapV3Pool10000 = IUniswapV3Factory(
uniswapV3Router.factory()
).getPool(address(this), wethAddress, 10000);
address uniswapV3Pool3000 = uniswapV3Factory.getPool(
address(this),
wethAddress,
3000
);
address uniswapV3Pool500 = uniswapV3Factory.getPool(
address(this),
wethAddress,
500
);
address uniswapV3Pool100 = uniswapV3Factory.getPool(
address(this),
wethAddress,
100
);
if (uniswapV3Pool10000 == ZERO_ADDRESS) {
uniswapV3Pool10000 = uniswapV3Factory.createPool(
address(this),
wethAddress,
10000
);
}
if (uniswapV3Pool3000 == ZERO_ADDRESS) {
uniswapV3Pool3000 = uniswapV3Factory.createPool(
address(this),
wethAddress,
3000
);
}
if (uniswapV3Pool500 == ZERO_ADDRESS) {
uniswapV3Pool500 = uniswapV3Factory.createPool(
address(this),
wethAddress,
500
);
}
if (uniswapV3Pool100 == ZERO_ADDRESS) {
uniswapV3Pool100 = uniswapV3Factory.createPool(
address(this),
wethAddress,
100
);
}
_setAutomatedMarketMakerPairV2(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPairV3(address(uniswapV3Pool10000), true);
_setAutomatedMarketMakerPairV3(address(uniswapV3Pool3000), true);
_setAutomatedMarketMakerPairV3(address(uniswapV3Pool500), true);
_setAutomatedMarketMakerPairV3(address(uniswapV3Pool100), true);
_excludeFromMaxTransaction(address(uniswapV2Pair), true);
_excludeFromMaxTransaction(address(uniswapV3Pool10000), true);
_excludeFromMaxTransaction(address(uniswapV3Pool3000), true);
_excludeFromMaxTransaction(address(uniswapV3Pool500), true);
_excludeFromMaxTransaction(address(uniswapV3Pool100), true);
_excludeFromMaxTransaction(uniswapV3Migrator, true);
_excludeFromFees(uniswapV3Migrator, true);
uint256 ethAmount = address(this).balance;
require(ethAmount > 0, "ForgottenPlaylandToken: Invalid ETH amount.");
uint256 tokenAmount = balanceOf(address(this));
require(
tokenAmount > 0,
"ForgottenPlaylandToken: Invalid token amount."
);
uint256 amountTokenMin = (tokenAmount * 99) / 100;
uint256 amountETHMin = (ethAmount * 99) / 100;
_approve(address(this), address(uniswapV2Router), tokenAmount);
(uint amountToken, uint amountETH, ) = uniswapV2Router.addLiquidityETH{
value: ethAmount
}(
address(this),
tokenAmount,
amountTokenMin,
amountETHMin,
_msgSender(),
block.timestamp + (30 minutes)
);
require(
(amountToken >= amountTokenMin) && (amountToken <= tokenAmount),
"ForgottenPlaylandToken: Undesired amount of tokens added to liquidity."
);
require(
(amountETH >= amountETHMin) && (amountETH <= ethAmount),
"ForgottenPlaylandToken: Undesired amount of ETH added to liquidity."
);
maxTransaction = tokenAmount / 100;
maxWallet = tokenAmount / 100;
_v2LPProtectionEnabled = false;
_v3LPProtectionEnabled = true;
limitsEnabled = true;
taxesEnabled = true;
launched = true;
launchBlock = block.number;
launchTime = block.timestamp;
emit Launch();
}
function prepareForMigration() public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
require(launched, "ForgottenPlaylandToken: Not launched.");
_v2LPProtectionEnabled = true;
_v3LPProtectionEnabled = false;
limitsEnabled = false;
taxesEnabled = false;
buyFees = 0;
sellFees = 0;
maxTransaction = totalSupply();
maxWallet = totalSupply();
if (balanceOf(address(this)) > 0) {
super._transfer(
address(this),
_msgSender(),
balanceOf(address(this))
);
}
migrated = true;
emit PrepareForMigration();
}
function setLimitsEnabled(bool value) public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
limitsEnabled = value;
emit SetLimitsEnabled(value);
}
function setTaxesEnabled(bool value) public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
taxesEnabled = value;
emit SetTaxesEnabled(value);
}
function setMaxTransaction(uint256 _maxTransaction) external onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
require(
_maxTransaction >=
(totalSupply() / MAX_TRANSACTION_PERCENT_DENOMINATOR),
"ForgottenPlaylandToken: Cannot set maxTransaction lower than 0.0001%"
);
uint256 oldValueMaxTransaction = maxTransaction;
maxTransaction = _maxTransaction;
emit SetMaxTransaction(oldValueMaxTransaction, _maxTransaction);
}
function setMaxWallet(uint256 _maxWallet) external onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
require(
_maxWallet >= (totalSupply() / MAX_WALLET_PERCENT_DENOMINATOR),
"ForgottenPlaylandToken: Cannot set maxWallet lower than 0.001%"
);
uint256 oldValueMaxWallet = maxWallet;
maxWallet = _maxWallet;
emit SetMaxWallet(oldValueMaxWallet, _maxWallet);
}
function setBuyFees(uint256 _buyFees) public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
require(
_buyFees <= MAX_BUY_FEE,
"ForgottenPlaylandToken: Must keep fees at 5% or less"
);
uint256 oldValue = buyFees;
buyFees = _buyFees;
emit SetBuyFees(oldValue, _buyFees);
}
function setSellFees(uint256 _sellFees) public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
require(
_sellFees <= MAX_SELL_FEE,
"ForgottenPlaylandToken: Must keep fees at 5% or less"
);
uint256 oldValue = sellFees;
sellFees = _sellFees;
emit SetSellFees(oldValue, _sellFees);
}
function withdrawStuckTokens(address tkn) public onlyOwner {
require(
tkn != address(this),
"ForgottenPlaylandToken: Cannot withdraw self"
);
uint256 amount;
if (tkn == ZERO_ADDRESS) {
bool success;
amount = address(this).balance;
require(amount > 0, "ForgottenPlaylandToken: No native tokens");
(success, ) = address(_msgSender()).call{value: amount}("");
require(
success,
"ForgottenPlaylandToken: Failed to withdraw native tokens"
);
} else {
amount = IERC20(tkn).balanceOf(address(this));
require(amount > 0, "ForgottenPlaylandToken: No tokens");
IERC20(tkn).safeTransfer(_msgSender(), amount);
}
emit WithdrawStuckTokens(tkn, amount);
}
function excludeFromFees(
address[] calldata accounts,
bool value
) public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromFees(accounts[i], value);
}
}
function excludeFromMaxTransaction(
address[] calldata accounts,
bool value
) public onlyOwner {
require(!migrated, "ForgottenPlaylandToken: Already migrated.");
for (uint256 i = 0; i < accounts.length; i++) {
_excludeFromMaxTransaction(accounts[i], value);
}
}
function setAutomatedMarketMakerPairV2(
address account,
bool value
) public onlyOwner {
require(
!automatedMarketMakerPairsV2[account],
"ForgottenPlaylandToken: AMM Pair v2 already set."
);
_setAutomatedMarketMakerPairV2(account, value);
}
function setAutomatedMarketMakerPairV3(
address account,
bool value
) public onlyOwner {
require(
!automatedMarketMakerPairsV3[account],
"ForgottenPlaylandToken: AMM Pair v3 already set."
);
_setAutomatedMarketMakerPairV3(account, value);
}
function setBots(address[] calldata accounts, bool value) public onlyOwner {
for (uint256 i = 0; i < accounts.length; i++) {
if (
(!automatedMarketMakerPairsV2[accounts[i]]) &&
(!automatedMarketMakerPairsV3[accounts[i]]) &&
(accounts[i] != address(uniswapV2Router)) &&
(accounts[i] != address(uniswapV3Router)) &&
(accounts[i] != address(this)) &&
(!isExcludedFromFees[accounts[i]] &&
!isExcludedMaxTransactionAmount[accounts[i]])
) _setBots(accounts[i], value);
}
}
function _transfer(
address from,
address to,
uint256 amount
) internal virtual override {
require(
from != ZERO_ADDRESS,
"ForgottenPlaylandToken: transfer from the zero address"
);
require(
to != ZERO_ADDRESS,
"ForgottenPlaylandToken: transfer to the zero address"
);
if (
(isExcludedFromFees[from] || isExcludedFromFees[to]) &&
(isExcludedMaxTransactionAmount[from] ||
isExcludedMaxTransactionAmount[to])
) {
super._transfer(from, to, amount);
return;
}
require(!isBot[from], "ForgottenPlaylandToken: bot detected");
require(
_msgSender() == from || !isBot[_msgSender()],
"ForgottenPlaylandToken: bot detected"
);
require(
tx.origin == from || tx.origin == _msgSender() || !isBot[tx.origin],
"ForgottenPlaylandToken: bot detected"
);
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
address ownr = owner();
require(
launched || from == ownr || to == ownr || to == DEAD_ADDRESS,
"ForgottenPlaylandToken: Not launched."
);
require(
!_v2LPProtectionEnabled ||
(!automatedMarketMakerPairsV2[from] &&
!automatedMarketMakerPairsV2[to]),
"ForgottenPlaylandToken: Not authorized to trade through Uniswap V2 Pool"
);
require(
!_v3LPProtectionEnabled ||
(!automatedMarketMakerPairsV3[from] &&
!automatedMarketMakerPairsV3[to]),
"ForgottenPlaylandToken: Not authorized to trade through Uniswap V3 Pool"
);
if (limitsEnabled) {
if (
automatedMarketMakerPairsV2[from] &&
!isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransaction,
"ForgottenPlaylandToken: Buy transfer amount exceeds the maxTransaction."
);
require(
(amount + balanceOf(to)) <= maxWallet,
"ForgottenPlaylandToken: Max wallet exceeded"
);
} else if (
automatedMarketMakerPairsV2[to] &&
!isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxTransaction,
"ForgottenPlaylandToken: Sell transfer amount exceeds the maxTransaction."
);
} else if (!isExcludedMaxTransactionAmount[to]) {
require(
(amount + balanceOf(to)) <= maxWallet,
"ForgottenPlaylandToken: Max wallet exceeded"
);
}
}
if (taxesEnabled) {
uint256 fees = 0;
uint256 totalFees = 0;
if (automatedMarketMakerPairsV2[to] && sellFees > 0) {
if (block.number > launchBlock) {
totalFees = sellFees;
} else {
totalFees = 3000;
}
fees = (amount * totalFees) / FEES_PERCENT_DENOMINATOR;
} else if (automatedMarketMakerPairsV2[from] && buyFees > 0) {
if (block.number > launchBlock) {
totalFees = buyFees;
} else {
totalFees = 3000;
}
fees = (amount * totalFees) / FEES_PERCENT_DENOMINATOR;
}
if (fees > 0) {
super._burn(from, fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function _excludeFromMaxTransaction(
address account,
bool value
) internal virtual {
isExcludedMaxTransactionAmount[account] = value;
emit ExcludeFromMaxTransaction(account, value);
}
function _excludeFromFees(address account, bool value) internal virtual {
isExcludedFromFees[account] = value;
emit ExcludeFromFees(account, value);
}
function _setBots(address account, bool value) internal virtual {
isBot[account] = value;
emit SetBots(account, value);
}
function _setAutomatedMarketMakerPairV2(
address account,
bool value
) internal virtual {
automatedMarketMakerPairsV2[account] = value;
emit SetAutomatedMarketMakerPairV2(account, value);
}
function _setAutomatedMarketMakerPairV3(
address account,
bool value
) internal virtual {
automatedMarketMakerPairsV3[account] = value;
emit SetAutomatedMarketMakerPairV3(account, value);
}
}
文件 5 的 14:IERC20.sol
pragma solidity ^0.8.0;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
文件 6 的 14:IERC20Metadata.sol
pragma solidity ^0.8.0;
import "../IERC20.sol";
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
文件 7 的 14:IERC20Permit.sol
pragma solidity ^0.8.0;
interface IERC20Permit {
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
function nonces(address owner) external view returns (uint256);
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
文件 8 的 14:IUniswapV2Factory.sol
pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
文件 9 的 14:IUniswapV2Router01.sol
pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
文件 10 的 14:IUniswapV2Router02.sol
pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
文件 11 的 14:IUniswapV3Factory.sol
pragma solidity >=0.5.0;
interface IUniswapV3Factory {
event OwnerChanged(address indexed oldOwner, address indexed newOwner);
event PoolCreated(
address indexed token0,
address indexed token1,
uint24 indexed fee,
int24 tickSpacing,
address pool
);
event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);
function owner() external view returns (address);
function feeAmountTickSpacing(uint24 fee) external view returns (int24);
function getPool(
address tokenA,
address tokenB,
uint24 fee
) external view returns (address pool);
function createPool(
address tokenA,
address tokenB,
uint24 fee
) external returns (address pool);
function setOwner(address _owner) external;
function enableFeeAmount(uint24 fee, int24 tickSpacing) external;
}
文件 12 的 14:Ownable.sol
pragma solidity ^0.8.0;
import "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_transferOwnership(_msgSender());
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 13 的 14:Ownable2Step.sol
pragma solidity ^0.8.0;
import "./Ownable.sol";
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
function acceptOwnership() public virtual {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);
}
}
文件 14 的 14:SafeERC20.sol
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
function safeApprove(IERC20 token, address spender, uint256 value) internal {
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
function _callOptionalReturn(IERC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}
{
"compilationTarget": {
"contracts/ForgottenPlaylandToken.sol": "ForgottenPlaylandToken"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Airdrop","type":"event"},{"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":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromMaxTransaction","type":"event"},{"anonymous":false,"inputs":[],"name":"Launch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":[],"name":"PrepareForMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPairV2","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPairV3","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"SetBots","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetBuyFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SetLimitsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValueMaxTransaction","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValueMaxTransaction","type":"uint256"}],"name":"SetMaxTransaction","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValueMaxWallet","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValueMaxWallet","type":"uint256"}],"name":"SetMaxWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"SetSellFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"SetTaxesEnabled","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawStuckTokens","type":"event"},{"inputs":[],"name":"DEAD_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEES_PERCENT_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BUY_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SELL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TRANSACTION_PERCENT_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_PERCENT_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ZERO_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairsV2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairsV3","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"buyFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"value","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"value","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launched","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareForMigration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPairV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPairV3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setBots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyFees","type":"uint256"}],"name":"setBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setLimitsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTransaction","type":"uint256"}],"name":"setMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWallet","type":"uint256"}],"name":"setMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellFees","type":"uint256"}],"name":"setSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setTaxesEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxesEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3Router","outputs":[{"internalType":"contract IUniswapV3Router","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tkn","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]