文件 1 的 11: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;
}
}
文件 2 的 11:ERC20.sol
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./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 {}
}
文件 3 的 11:ERC20Burnable.sol
pragma solidity ^0.8.0;
import "./ERC20.sol";
import "./Context.sol";
abstract contract ERC20Burnable is Context, ERC20 {
function burn(uint256 amount) public virtual {
_burn(_msgSender(), amount);
}
function burnFrom(address account, uint256 amount) public virtual {
_spendAllowance(account, _msgSender(), amount);
_burn(account, amount);
}
}
文件 4 的 11: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);
}
文件 5 的 11: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);
}
文件 6 的 11: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;
}
文件 7 的 11:IUniswapV2Pair.sol
pragma solidity >=0.5.0;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
文件 8 的 11: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);
}
文件 9 的 11: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;
}
文件 10 的 11:Ownable.sol
pragma solidity ^0.8.0;
import "./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);
}
}
文件 11 的 11:Token.sol
pragma solidity 0.8.7;
import "./ERC20.sol";
import "./ERC20Burnable.sol";
import "./Ownable.sol";
import "./IUniswapV2Factory.sol";
import "./IUniswapV2Pair.sol";
import "./IUniswapV2Router01.sol";
import "./IUniswapV2Router02.sol";
contract Dust_to_Riches is ERC20, ERC20Burnable, Ownable {
uint256 public swapThreshold;
uint256 private _gamesprizesanddevelopmentPending;
uint256 private _schillcreateandearnPending;
uint256 private _communitymodsPending;
uint256 private _communitytreasurydaoPending;
uint256 private _operatingcostsPending;
uint256 private _liquidityPending;
address public gamesprizesanddevelopmentAddress;
uint16[3] public gamesprizesanddevelopmentFees;
address public schillcreateandearnAddress;
uint16[3] public schillcreateandearnFees;
address public communitymodsAddress;
uint16[3] public communitymodsFees;
address public communitytreasurydaoAddress;
uint16[3] public communitytreasurydaoFees;
address public operatingcostsAddress;
uint16[3] public operatingcostsFees;
uint16[3] public autoBurnFees;
address public lpTokensReceiver;
uint16[3] public liquidityFees;
mapping (address => bool) public isExcludedFromFees;
uint16[3] public totalFees;
bool private _swapping;
IUniswapV2Router02 public routerV2;
address public pairV2;
mapping (address => bool) public AMMPairs;
mapping (address => bool) public isExcludedFromLimits;
uint256 public maxWalletAmount;
uint256 public maxTxAmount;
mapping (address => uint256) public lastTrade;
uint256 public tradeCooldownTime;
event SwapThresholdUpdated(uint256 swapThreshold);
event gamesprizesanddevelopmentAddressUpdated(address gamesprizesanddevelopmentAddress);
event gamesprizesanddevelopmentFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event gamesprizesanddevelopmentFeeSent(address recipient, uint256 amount);
event schillcreateandearnAddressUpdated(address schillcreateandearnAddress);
event schillcreateandearnFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event schillcreateandearnFeeSent(address recipient, uint256 amount);
event communitymodsAddressUpdated(address communitymodsAddress);
event communitymodsFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event communitymodsFeeSent(address recipient, uint256 amount);
event communitytreasurydaoAddressUpdated(address communitytreasurydaoAddress);
event communitytreasurydaoFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event communitytreasurydaoFeeSent(address recipient, uint256 amount);
event operatingcostsAddressUpdated(address operatingcostsAddress);
event operatingcostsFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event operatingcostsFeeSent(address recipient, uint256 amount);
event autoBurnFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event autoBurned(uint256 amount);
event LpTokensReceiverUpdated(address lpTokensReceiver);
event liquidityFeesUpdated(uint16 buyFee, uint16 sellFee, uint16 transferFee);
event liquidityAdded(uint amountToken, uint amountCoin, uint liquidity);
event ExcludeFromFees(address indexed account, bool isExcluded);
event RouterV2Updated(address indexed routerV2);
event AMMPairsUpdated(address indexed AMMPair, bool isPair);
event ExcludeFromLimits(address indexed account, bool isExcluded);
event MaxWalletAmountUpdated(uint256 maxWalletAmount);
event MaxTxAmountUpdated(uint256 maxTxAmount);
event TradeCooldownTimeUpdated(uint256 tradeCooldownTime);
constructor()
ERC20(unicode"Dust to Riches", unicode"D2R")
{
address supplyRecipient = 0xA2a1BD3FAa19d08e26aa6629B1E5F82772B7E811;
updateSwapThreshold(25000 * (10 ** decimals()));
gamesprizesanddevelopmentAddressSetup(0x7C485edb71e52Fd43c4613E8c27De543A223aB38);
gamesprizesanddevelopmentFeesSetup(175, 175, 0);
schillcreateandearnAddressSetup(0xc768F178cA451A25104dAAa729D40d9D3c700A29);
schillcreateandearnFeesSetup(100, 0, 0);
communitymodsAddressSetup(0x41c27C64F30E68D8c25f8722D67c321df4916537);
communitymodsFeesSetup(25, 25, 0);
communitytreasurydaoAddressSetup(0x4AccDed53EE120CaA75ced42213C28e59F9DD536);
communitytreasurydaoFeesSetup(50, 50, 0);
operatingcostsAddressSetup(0xF13A0143a63346B19eE59B426f4457D457A27Bc8);
operatingcostsFeesSetup(50, 50, 0);
autoBurnFeesSetup(0, 100, 0);
lpTokensReceiverSetup(0x0000000000000000000000000000000000000000);
liquidityFeesSetup(100, 100, 0);
excludeFromFees(supplyRecipient, true);
excludeFromFees(address(this), true);
_updateRouterV2(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromLimits(supplyRecipient, true);
excludeFromLimits(address(this), true);
excludeFromLimits(address(0), true);
excludeFromLimits(gamesprizesanddevelopmentAddress, true);
excludeFromLimits(schillcreateandearnAddress, true);
excludeFromLimits(communitymodsAddress, true);
excludeFromLimits(communitytreasurydaoAddress, true);
excludeFromLimits(operatingcostsAddress, true);
updateMaxWalletAmount(250000 * (10 ** decimals()));
updateMaxTxAmount(125000 * (10 ** decimals()));
updateTradeCooldownTime(600);
_mint(supplyRecipient, 50000000 * (10 ** decimals()));
_transferOwnership(0xA2a1BD3FAa19d08e26aa6629B1E5F82772B7E811);
}
receive() external payable {}
function decimals() public pure override returns (uint8) {
return 18;
}
function _swapTokensForCoin(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = routerV2.WETH();
_approve(address(this), address(routerV2), tokenAmount);
routerV2.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount, 0, path, address(this), block.timestamp);
}
function updateSwapThreshold(uint256 _swapThreshold) public onlyOwner {
swapThreshold = _swapThreshold;
emit SwapThresholdUpdated(_swapThreshold);
}
function gamesprizesanddevelopmentAddressSetup(address _newAddress) public onlyOwner {
gamesprizesanddevelopmentAddress = _newAddress;
excludeFromFees(_newAddress, true);
emit gamesprizesanddevelopmentAddressUpdated(_newAddress);
}
function gamesprizesanddevelopmentFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
gamesprizesanddevelopmentFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit gamesprizesanddevelopmentFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function schillcreateandearnAddressSetup(address _newAddress) public onlyOwner {
schillcreateandearnAddress = _newAddress;
excludeFromFees(_newAddress, true);
emit schillcreateandearnAddressUpdated(_newAddress);
}
function schillcreateandearnFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
schillcreateandearnFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit schillcreateandearnFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function communitymodsAddressSetup(address _newAddress) public onlyOwner {
communitymodsAddress = _newAddress;
excludeFromFees(_newAddress, true);
emit communitymodsAddressUpdated(_newAddress);
}
function communitymodsFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
communitymodsFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit communitymodsFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function communitytreasurydaoAddressSetup(address _newAddress) public onlyOwner {
communitytreasurydaoAddress = _newAddress;
excludeFromFees(_newAddress, true);
emit communitytreasurydaoAddressUpdated(_newAddress);
}
function communitytreasurydaoFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
communitytreasurydaoFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit communitytreasurydaoFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function operatingcostsAddressSetup(address _newAddress) public onlyOwner {
operatingcostsAddress = _newAddress;
excludeFromFees(_newAddress, true);
emit operatingcostsAddressUpdated(_newAddress);
}
function operatingcostsFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
operatingcostsFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit operatingcostsFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function autoBurnFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
autoBurnFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit autoBurnFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function _swapAndLiquify(uint256 tokenAmount) private returns (uint256 leftover) {
uint256 halfAmount = tokenAmount / 2;
uint256 otherHalf = tokenAmount - halfAmount;
_swapTokensForCoin(halfAmount);
uint256 coinBalance = address(this).balance;
if (coinBalance > 0) {
(uint amountToken, uint amountCoin, uint liquidity) = _addLiquidity(otherHalf, coinBalance);
emit liquidityAdded(amountToken, amountCoin, liquidity);
return otherHalf - amountToken;
} else {
return otherHalf;
}
}
function _addLiquidity(uint256 tokenAmount, uint256 coinAmount) private returns (uint, uint, uint) {
_approve(address(this), address(routerV2), tokenAmount);
return routerV2.addLiquidityETH{value: coinAmount}(address(this), tokenAmount, 0, 0, lpTokensReceiver, block.timestamp);
}
function lpTokensReceiverSetup(address _newAddress) public onlyOwner {
lpTokensReceiver = _newAddress;
emit LpTokensReceiverUpdated(_newAddress);
}
function liquidityFeesSetup(uint16 _buyFee, uint16 _sellFee, uint16 _transferFee) public onlyOwner {
liquidityFees = [_buyFee, _sellFee, _transferFee];
totalFees[0] = 0 + gamesprizesanddevelopmentFees[0] + schillcreateandearnFees[0] + communitymodsFees[0] + communitytreasurydaoFees[0] + operatingcostsFees[0] + autoBurnFees[0] + liquidityFees[0];
totalFees[1] = 0 + gamesprizesanddevelopmentFees[1] + schillcreateandearnFees[1] + communitymodsFees[1] + communitytreasurydaoFees[1] + operatingcostsFees[1] + autoBurnFees[1] + liquidityFees[1];
totalFees[2] = 0 + gamesprizesanddevelopmentFees[2] + schillcreateandearnFees[2] + communitymodsFees[2] + communitytreasurydaoFees[2] + operatingcostsFees[2] + autoBurnFees[2] + liquidityFees[2];
require(totalFees[0] <= 2500 && totalFees[1] <= 2500 && totalFees[2] <= 2500, "TaxesDefaultRouter: Cannot exceed max total fee of 25%");
emit liquidityFeesUpdated(_buyFee, _sellFee, _transferFee);
}
function excludeFromFees(address account, bool isExcluded) public onlyOwner {
isExcludedFromFees[account] = isExcluded;
emit ExcludeFromFees(account, isExcluded);
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
bool canSwap = 0 + _gamesprizesanddevelopmentPending + _schillcreateandearnPending + _communitymodsPending + _communitytreasurydaoPending + _operatingcostsPending + _liquidityPending >= swapThreshold;
if (!_swapping && !AMMPairs[from] && canSwap) {
_swapping = true;
if (false || _gamesprizesanddevelopmentPending > 0 || _schillcreateandearnPending > 0 || _communitymodsPending > 0 || _communitytreasurydaoPending > 0 || _operatingcostsPending > 0) {
uint256 token2Swap = 0 + _gamesprizesanddevelopmentPending + _schillcreateandearnPending + _communitymodsPending + _communitytreasurydaoPending + _operatingcostsPending;
bool success = false;
_swapTokensForCoin(token2Swap);
uint256 coinsReceived = address(this).balance;
uint256 gamesprizesanddevelopmentPortion = coinsReceived * _gamesprizesanddevelopmentPending / token2Swap;
if (gamesprizesanddevelopmentPortion > 0) {
(success,) = payable(address(gamesprizesanddevelopmentAddress)).call{value: gamesprizesanddevelopmentPortion}("");
require(success, "TaxesDefaultRouterWalletCoin: Fee transfer error");
emit gamesprizesanddevelopmentFeeSent(gamesprizesanddevelopmentAddress, gamesprizesanddevelopmentPortion);
}
_gamesprizesanddevelopmentPending = 0;
uint256 schillcreateandearnPortion = coinsReceived * _schillcreateandearnPending / token2Swap;
if (schillcreateandearnPortion > 0) {
(success,) = payable(address(schillcreateandearnAddress)).call{value: schillcreateandearnPortion}("");
require(success, "TaxesDefaultRouterWalletCoin: Fee transfer error");
emit schillcreateandearnFeeSent(schillcreateandearnAddress, schillcreateandearnPortion);
}
_schillcreateandearnPending = 0;
uint256 communitymodsPortion = coinsReceived * _communitymodsPending / token2Swap;
if (communitymodsPortion > 0) {
(success,) = payable(address(communitymodsAddress)).call{value: communitymodsPortion}("");
require(success, "TaxesDefaultRouterWalletCoin: Fee transfer error");
emit communitymodsFeeSent(communitymodsAddress, communitymodsPortion);
}
_communitymodsPending = 0;
uint256 communitytreasurydaoPortion = coinsReceived * _communitytreasurydaoPending / token2Swap;
if (communitytreasurydaoPortion > 0) {
(success,) = payable(address(communitytreasurydaoAddress)).call{value: communitytreasurydaoPortion}("");
require(success, "TaxesDefaultRouterWalletCoin: Fee transfer error");
emit communitytreasurydaoFeeSent(communitytreasurydaoAddress, communitytreasurydaoPortion);
}
_communitytreasurydaoPending = 0;
uint256 operatingcostsPortion = coinsReceived * _operatingcostsPending / token2Swap;
if (operatingcostsPortion > 0) {
(success,) = payable(address(operatingcostsAddress)).call{value: operatingcostsPortion}("");
require(success, "TaxesDefaultRouterWalletCoin: Fee transfer error");
emit operatingcostsFeeSent(operatingcostsAddress, operatingcostsPortion);
}
_operatingcostsPending = 0;
}
if (_liquidityPending > 10) {
_liquidityPending = _swapAndLiquify(_liquidityPending);
}
_swapping = false;
}
if (!_swapping && amount > 0 && to != address(routerV2) && !isExcludedFromFees[from] && !isExcludedFromFees[to]) {
uint256 fees = 0;
uint8 txType = 3;
if (AMMPairs[from]) {
if (totalFees[0] > 0) txType = 0;
}
else if (AMMPairs[to]) {
if (totalFees[1] > 0) txType = 1;
}
else if (totalFees[2] > 0) txType = 2;
if (txType < 3) {
uint256 autoBurnPortion = 0;
fees = amount * totalFees[txType] / 10000;
amount -= fees;
_gamesprizesanddevelopmentPending += fees * gamesprizesanddevelopmentFees[txType] / totalFees[txType];
_schillcreateandearnPending += fees * schillcreateandearnFees[txType] / totalFees[txType];
_communitymodsPending += fees * communitymodsFees[txType] / totalFees[txType];
_communitytreasurydaoPending += fees * communitytreasurydaoFees[txType] / totalFees[txType];
_operatingcostsPending += fees * operatingcostsFees[txType] / totalFees[txType];
if (autoBurnFees[txType] > 0) {
autoBurnPortion = fees * autoBurnFees[txType] / totalFees[txType];
_burn(from, autoBurnPortion);
emit autoBurned(autoBurnPortion);
}
_liquidityPending += fees * liquidityFees[txType] / totalFees[txType];
fees = fees - autoBurnPortion;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
}
super._transfer(from, to, amount);
}
function _updateRouterV2(address router) private {
routerV2 = IUniswapV2Router02(router);
pairV2 = IUniswapV2Factory(routerV2.factory()).createPair(address(this), routerV2.WETH());
excludeFromLimits(router, true);
_setAMMPair(pairV2, true);
emit RouterV2Updated(router);
}
function setAMMPair(address pair, bool isPair) public onlyOwner {
require(pair != pairV2, "DefaultRouter: Cannot remove initial pair from list");
_setAMMPair(pair, isPair);
}
function _setAMMPair(address pair, bool isPair) private {
AMMPairs[pair] = isPair;
if (isPair) {
excludeFromLimits(pair, true);
}
emit AMMPairsUpdated(pair, isPair);
}
function excludeFromLimits(address account, bool isExcluded) public onlyOwner {
isExcludedFromLimits[account] = isExcluded;
emit ExcludeFromLimits(account, isExcluded);
}
function updateMaxWalletAmount(uint256 _maxWalletAmount) public onlyOwner {
maxWalletAmount = _maxWalletAmount;
emit MaxWalletAmountUpdated(_maxWalletAmount);
}
function updateMaxTxAmount(uint256 _maxTxAmount) public onlyOwner {
maxTxAmount = _maxTxAmount;
emit MaxTxAmountUpdated(_maxTxAmount);
}
function updateTradeCooldownTime(uint256 _tradeCooldownTime) public onlyOwner {
require(_tradeCooldownTime <= 7 days, "Antibot: Trade cooldown too long.");
tradeCooldownTime = _tradeCooldownTime;
emit TradeCooldownTimeUpdated(_tradeCooldownTime);
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
override
{
if (AMMPairs[to] && !isExcludedFromLimits[from]) {
require(amount <= maxTxAmount, "MaxTx: Cannot exceed max sell limit");
}
if(!isExcludedFromLimits[from])
require(lastTrade[from] + tradeCooldownTime <= block.timestamp, "Antibot: Transaction sender is in anti-bot cooldown");
if(!isExcludedFromLimits[to])
require(lastTrade[to] + tradeCooldownTime <= block.timestamp, "Antibot: Transaction recipient is in anti-bot cooldown");
super._beforeTokenTransfer(from, to, amount);
}
function _afterTokenTransfer(address from, address to, uint256 amount)
internal
override
{
if (!isExcludedFromLimits[to]) {
require(balanceOf(to) <= maxWalletAmount, "MaxWallet: Cannot exceed max wallet limit");
}
if (AMMPairs[from] && !isExcludedFromLimits[to]) lastTrade[to] = block.timestamp;
else if (AMMPairs[to] && !isExcludedFromLimits[from]) lastTrade[from] = block.timestamp;
super._afterTokenTransfer(from, to, amount);
}
}
{
"compilationTarget": {
"Token.sol": "Dust_to_Riches"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"AMMPair","type":"address"},{"indexed":false,"internalType":"bool","name":"isPair","type":"bool"}],"name":"AMMPairsUpdated","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":"ExcludeFromLimits","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"lpTokensReceiver","type":"address"}],"name":"LpTokensReceiverUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxTxAmount","type":"uint256"}],"name":"MaxTxAmountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"maxWalletAmount","type":"uint256"}],"name":"MaxWalletAmountUpdated","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":"routerV2","type":"address"}],"name":"RouterV2Updated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"swapThreshold","type":"uint256"}],"name":"SwapThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tradeCooldownTime","type":"uint256"}],"name":"TradeCooldownTimeUpdated","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":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"autoBurnFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"autoBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"communitymodsAddress","type":"address"}],"name":"communitymodsAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"communitymodsFeeSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"communitymodsFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"communitytreasurydaoAddress","type":"address"}],"name":"communitytreasurydaoAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"communitytreasurydaoFeeSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"communitytreasurydaoFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"gamesprizesanddevelopmentAddress","type":"address"}],"name":"gamesprizesanddevelopmentAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"gamesprizesanddevelopmentFeeSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"gamesprizesanddevelopmentFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountCoin","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"}],"name":"liquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"liquidityFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operatingcostsAddress","type":"address"}],"name":"operatingcostsAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"operatingcostsFeeSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"operatingcostsFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"schillcreateandearnAddress","type":"address"}],"name":"schillcreateandearnAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"schillcreateandearnFeeSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"buyFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"sellFee","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"schillcreateandearnFeesUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"AMMPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"autoBurnFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"autoBurnFeesSetup","outputs":[],"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":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communitymodsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"communitymodsAddressSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"communitymodsFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"communitymodsFeesSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communitytreasurydaoAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"communitytreasurydaoAddressSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"communitytreasurydaoFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"communitytreasurydaoFeesSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"excludeFromLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gamesprizesanddevelopmentAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"gamesprizesanddevelopmentAddressSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gamesprizesanddevelopmentFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"gamesprizesanddevelopmentFeesSetup","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":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastTrade","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"liquidityFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"liquidityFeesSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpTokensReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"lpTokensReceiverSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletAmount","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":"operatingcostsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"operatingcostsAddressSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"operatingcostsFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"operatingcostsFeesSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairV2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"routerV2","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"schillcreateandearnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"schillcreateandearnAddressSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"schillcreateandearnFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_buyFee","type":"uint16"},{"internalType":"uint16","name":"_sellFee","type":"uint16"},{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"schillcreateandearnFeesSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"isPair","type":"bool"}],"name":"setAMMPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalFees","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradeCooldownTime","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":[{"internalType":"uint256","name":"_maxTxAmount","type":"uint256"}],"name":"updateMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWalletAmount","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapThreshold","type":"uint256"}],"name":"updateSwapThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tradeCooldownTime","type":"uint256"}],"name":"updateTradeCooldownTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]