编译器
0.8.20+commit.a1b79de6
文件 1 的 8:Context.sol
pragma solidity ^0.8.20;
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;
}
}
文件 2 的 8: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";
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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return 18;
}
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
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;
}
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
_totalSupply -= value;
}
} else {
unchecked {
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
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);
}
}
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);
}
}
}
}
文件 3 的 8:ERC20Burnable.sol
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";
abstract contract ERC20Burnable is Context, ERC20 {
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}
文件 4 的 8:IERC20.sol
pragma solidity ^0.8.20;
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 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
文件 5 的 8:IERC20Metadata.sol
pragma solidity ^0.8.20;
import {IERC20} from "../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);
}
文件 6 的 8:Ownable.sol
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
abstract contract Ownable is Context {
address private _owner;
error OwnableUnauthorizedAccount(address account);
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
文件 7 的 8:PREME.sol
pragma solidity 0.8.20;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface IRouter {
function factory() external pure returns (address);
function swapExactTokensForETH(
uint amountIn,
uint amountOutMin,
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);
}
interface IFactory {
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
}
interface Pair{
function token0() external view returns (address);
function token1() external view returns (address);
}
contract PREME is ERC20Burnable, Ownable {
constructor(
uint256 initialSupply,
uint16 initialTeamTax,
uint16 initialNftTax,
uint16 initialBurnTax,
uint256 initialThresholdForBurn,
uint8 initialSwapAtPercentage,
address initialTeamWallet,
address initialNftWallet
)
ERC20("PREME Token", "PREME")
Ownable(msg.sender)
{
BURN_HELPER = address(new BurnHelper(address(this)));
_mint(msg.sender, initialSupply * 10 ** 18);
setSwapAtPercentage(initialSwapAtPercentage);
setTax(
initialTeamTax,
initialNftTax,
initialBurnTax,
initialThresholdForBurn
);
setExcludedFromTaxStatus(msg.sender, true);
setTeamWallet(initialTeamWallet);
setNftWallet(initialNftWallet);
_approve(address(this), address(ROUTER), ~uint256(0));
}
mapping (address => bool) public isPair;
mapping (address => bool) public isExcludedFromTax;
address private constant WETH =
0x4200000000000000000000000000000000000006;
IRouter public constant ROUTER =
IRouter(0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24);
address public immutable BURN_HELPER;
address payable public teamWallet;
address public nftWallet;
address public swapPair;
uint256 public collectedForBurn;
uint256 public thresholdForBurn;
uint16 public totalTax;
uint16 public teamTax;
uint16 public nftTax;
uint16 public burnTax;
uint8 public swapAtPercentage;
bool inSwapAndLiquify;
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
event SetTax(
uint16 indexed teamTax,
uint16 indexed nftTax,
uint16 indexed burnTax,
uint256 thresholdForBurn
);
event FailedToSwap(address indexed recipient, uint256 amount);
event FailedToPayout(address indexed payoutAddress);
event SetSwapAtPercentage(uint8 indexed swapAtPercentage);
event SetTeamWallet(address indexed teamWallet);
event SetNftWallet(address indexed nftWallet);
event SetPair(address indexed pair, bool indexed value);
event SetExcludeFromTaxStatus(
address indexed account,
bool indexed isExcluded
);
function _update(
address from,
address to,
uint256 value
) internal override {
if (!inSwapAndLiquify) {
if (totalTax != 0) {
if (!(isExcludedFromTax[from] || isExcludedFromTax[to])) {
if (isPair[to] || isPair[from]) {
if (
balanceOf(address(this)) > balanceOf(swapPair) *
swapAtPercentage / 10000 &&
isPair[to]
) handleTax();
uint256 extraFee = value * totalTax / 10000;
super._update(from, address(this), extraFee);
value -= extraFee;
}
} else {
if (swapPair == address(0)) setSwapPair();
}
}
}
super._update(from, to, value);
}
function handleTax() private {
(uint16 _teamTax, uint16 _burnTax, uint16 _nftTax, uint16 _totalTax) =
(teamTax, burnTax, nftTax, totalTax);
uint16 swapTax = _teamTax + _burnTax;
uint256 balanceContract = balanceOf(address(this));
uint256 nftAmount =
_nftTax != 0 ? balanceContract * _nftTax / _totalTax : 0;
if (swapTax != 0){
uint256 swapAmount = balanceContract * swapTax / _totalTax;
uint256 balancePair = balanceOf(swapPair);
if (swapAmount > balancePair / 100){
swapAmount = balancePair / 100;
if (_nftTax != 0) nftAmount =
balancePair * _nftTax / swapTax / 100;
}
swapTokensForETH(swapAmount);
uint256 handledETH = address(this).balance - collectedForBurn;
if (_teamTax != 0) {
uint256 amountETH = handledETH * _teamTax / swapTax;
(bool succeed, ) = teamWallet.call{value: amountETH}('');
if (!succeed) emit FailedToPayout (teamWallet);
}
if (_burnTax != 0) {
uint256 burnAmount = handledETH * _burnTax / swapTax;
collectedForBurn += burnAmount;
if (collectedForBurn >= thresholdForBurn) {
buyAndBurnTokens();
}
}
}
if (_nftTax != 0) {
super._update(address(this), nftWallet, nftAmount);
}
}
function buyAndBurnTokens() private lockTheSwap {
address[] memory path = new address[](2);
path[0] = WETH;
path[1] = address(this);
try
ROUTER.swapExactETHForTokens{value: collectedForBurn}(
0,
path,
BURN_HELPER,
block.timestamp
)
{} catch {
emit FailedToSwap(BURN_HELPER, collectedForBurn);
return;
}
BurnHelper(BURN_HELPER).burnTokens();
collectedForBurn = 0;
}
function swapTokensForETH(uint256 amount) private lockTheSwap {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = WETH;
try
ROUTER.swapExactTokensForETH(
amount,
0,
path,
address(this),
block.timestamp
)
{} catch {
emit FailedToSwap(address(this), amount);
}
}
function setSwapPair() private {
swapPair = IFactory(ROUTER.factory()).getPair(
address(this),
WETH
);
if (swapPair != address(0)) {
isPair[swapPair] = true;
emit SetPair(swapPair, true);
}
}
function setPair(address pair, bool value) public onlyOwner {
require(
isPair[pair] != value,
"Pair is already set to this value"
);
require(
!value ||
address(this) == Pair(pair).token0() ||
address(this) == Pair(pair).token1(),
"Address is not a pair of this token"
);
isPair[pair] = value;
emit SetPair(pair, value);
}
function setSwapAtPercentage(uint8 newPercentage) public onlyOwner {
require(
newPercentage != swapAtPercentage,
"swapAtPercentage is already set to this value"
);
require(
newPercentage <= 100,
"SwapAtPercentage can't exceed 100 (1%)"
);
swapAtPercentage = newPercentage;
emit SetSwapAtPercentage(newPercentage);
}
function setTax(
uint16 newTeamTax,
uint16 newNftTax,
uint16 newBurnTax,
uint256 newThresholdForBurn
) public onlyOwner {
require(
newTeamTax + newNftTax + newBurnTax <= 400,
"tax can't exceed 4%"
);
totalTax = newTeamTax + newNftTax + newBurnTax;
teamTax = newTeamTax;
nftTax = newNftTax;
burnTax = newBurnTax;
thresholdForBurn = newThresholdForBurn;
emit SetTax(newTeamTax, newNftTax, newBurnTax, newThresholdForBurn);
}
function setExcludedFromTaxStatus(
address account,
bool isExcluded
) public onlyOwner {
require(
isExcludedFromTax[account] != isExcluded,
"Account is already set to this value"
);
isExcludedFromTax[account] = isExcluded;
emit SetExcludeFromTaxStatus(account, isExcluded);
}
function setTeamWallet(address newAddress) public onlyOwner {
require(
newAddress != teamWallet,
"Team wallet is already set to this value"
);
teamWallet = payable(newAddress);
emit SetTeamWallet(newAddress);
}
function setNftWallet(address newAddress) public onlyOwner {
require(
newAddress != nftWallet,
"Team wallet is already set to this value"
);
nftWallet = newAddress;
emit SetNftWallet(newAddress);
}
function manualSwap() external onlyOwner {
require(
balanceOf(address(this)) != 0,
"No tokens available to swap"
);
handleTax();
}
function manualBuyAndBurn() external onlyOwner {
require(
collectedForBurn != 0,
"No ETH available to buy and burn"
);
buyAndBurnTokens();
}
receive() external payable {
require(
inSwapAndLiquify,
"Can't send ETH to the contract"
);
}
}
contract BurnHelper {
constructor(address token)
{TOKEN = token;}
address public immutable TOKEN;
event FailedToBurn(
address indexed msgSender,
uint256 indexed amount
);
function burnTokens() external {
uint256 amount = ERC20(TOKEN).balanceOf(address(this));
try
ERC20Burnable(TOKEN).burn(amount)
{} catch {
emit FailedToBurn(msg.sender, amount);
}
}
}
文件 8 的 8:draft-IERC6093.sol
pragma solidity ^0.8.20;
interface IERC20Errors {
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
error ERC20InvalidSender(address sender);
error ERC20InvalidReceiver(address receiver);
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
error ERC20InvalidApprover(address approver);
error ERC20InvalidSpender(address spender);
}
interface IERC721Errors {
error ERC721InvalidOwner(address owner);
error ERC721NonexistentToken(uint256 tokenId);
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
error ERC721InvalidSender(address sender);
error ERC721InvalidReceiver(address receiver);
error ERC721InsufficientApproval(address operator, uint256 tokenId);
error ERC721InvalidApprover(address approver);
error ERC721InvalidOperator(address operator);
}
interface IERC1155Errors {
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
error ERC1155InvalidSender(address sender);
error ERC1155InvalidReceiver(address receiver);
error ERC1155MissingApprovalForAll(address operator, address owner);
error ERC1155InvalidApprover(address approver);
error ERC1155InvalidOperator(address operator);
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
{
"compilationTarget": {
"PREME/PREME.sol": "PREME"
},
"evmVersion": "shanghai",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"uint16","name":"initialTeamTax","type":"uint16"},{"internalType":"uint16","name":"initialNftTax","type":"uint16"},{"internalType":"uint16","name":"initialBurnTax","type":"uint16"},{"internalType":"uint256","name":"initialThresholdForBurn","type":"uint256"},{"internalType":"uint8","name":"initialSwapAtPercentage","type":"uint8"},{"internalType":"address","name":"initialTeamWallet","type":"address"},{"internalType":"address","name":"initialNftWallet","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":"payoutAddress","type":"address"}],"name":"FailedToPayout","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FailedToSwap","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":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"SetExcludeFromTaxStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftWallet","type":"address"}],"name":"SetNftWallet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"swapAtPercentage","type":"uint8"}],"name":"SetSwapAtPercentage","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"teamTax","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"nftTax","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"burnTax","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"thresholdForBurn","type":"uint256"}],"name":"SetTax","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"teamWallet","type":"address"}],"name":"SetTeamWallet","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":"BURN_HELPER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROUTER","outputs":[{"internalType":"contract IRouter","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":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnTax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectedForBurn","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":"","type":"address"}],"name":"isExcludedFromTax","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":[],"name":"manualBuyAndBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftTax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"setExcludedFromTaxStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setNftWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newPercentage","type":"uint8"}],"name":"setSwapAtPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"newTeamTax","type":"uint16"},{"internalType":"uint16","name":"newNftTax","type":"uint16"},{"internalType":"uint16","name":"newBurnTax","type":"uint16"},{"internalType":"uint256","name":"newThresholdForBurn","type":"uint256"}],"name":"setTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setTeamWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAtPercentage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamTax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thresholdForBurn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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"},{"stateMutability":"payable","type":"receive"}]