// SPDX-License-Identifier: Unlicensed
/*
https://www.oneofonetoken.com/
Once Upon a Time , in a land far away full of Degenerates was the era of two rivalries. The Doge and the Shib community. Other communities looked up to them dreaming of achieving their glory. The era was a monopoly for the two until a great financial moment hit them.
To revive the great bull run, the rivalry had to be culminated and the two needed to unite as one. A powerful force of the mixed communities emerged termed as the $OOO. OneOfOne is the new wave that degenerates look upto as the last hope. Just like the Ying and Yang which combined to form one of the most significant symbol in the Asian community, with the unity comes our strength. Like a circle , our ticker comes in the shape of three O’s. The perfect shape exists since we have no corners or end to our mission.
We are OneOfOne community. We are $OOO.
*/
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, 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 sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
library Address {
function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
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 functionCall(target, data, "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");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory)
{
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
if (returndata.length > 0)
{
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor ()
{
address msgSender = _msgSender();
_owner = msg.sender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
function getUnlockTime() public view returns (uint256) {
return _lockTime;
}
function lock(uint256 time) public virtual onlyOwner {
_previousOwner = _owner;
_owner = address(0);
_lockTime = block.timestamp + time;
emit OwnershipTransferred(_owner, address(0));
}
function unlock() public virtual {
require(_previousOwner == msg.sender, "You don't have permission to unlock");
require(block.timestamp < _lockTime , "Contract is locked until 7 days");
emit OwnershipTransferred(_owner, _previousOwner);
_owner = _previousOwner;
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
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 getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
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;
}
contract LockToken is Ownable {
bool public isOpen = false;
mapping(address => bool) private _whiteList;
modifier open(address from, address to) {
require(isOpen || _whiteList[from] || _whiteList[to], "Not Open");
_;
}
constructor() {
_whiteList[msg.sender] = true;
_whiteList[address(this)] = true;
}
function openTrade() public onlyOwner {
isOpen = true;
}
function stopTrade() external onlyOwner {
isOpen = false;
}
function includeToWhiteList(address[] memory _users) external onlyOwner {
for(uint8 i = 0; i < _users.length; i++) {
_whiteList[_users[i]] = true;
}
}
}
contract OOO is Context, IERC20, Ownable, LockToken
{
using SafeMath for uint256;
using Address for address;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _balances;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private _blacklisted;
mapping (address => bool) private _contractExempt;
mapping (address => bool) private _maxWalletLimitExempt;
mapping (address => bool) private boughtEarly;
mapping (address => bool) private isAMM;
uint256 private constant MAX = ~uint256(0);
uint256 launchedAt;
string private _name = "One of One";
string private _symbol = "OOO";
uint8 private _decimals = 9;
uint256 public _devFee;
uint256 public _liquidityFee;
uint256 public _marketingFee;
uint256 public defaultLiquidityFee = 1;
uint256 public defaultDevFee = 3;
uint256 public defaultMarketingFee = 3;
bool private updateTax = true;
uint256 updateTaxInterval = 21;
uint256 taxLastUpdated;
uint256 public _saleDevFee = 3;
uint256 public _saleLiquidityFee = 1;
uint256 public _saleMarketingFee = 3;
bool public transferTaxEnabled = true;
uint256 public transferTax = 7;
bool public contractsAllowed = false;
uint256 public _taxDivisor = 100;
address payable public marketingWallet;
address payable public devWallet;
uint256 public buybackDivisor = 0; // if equals to _liquidityFee, no liquidity will be added, only buybacks will happen from the ETH on contract
address public deadWallet = 0x000000000000000000000000000000000000dEaD;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
bool public maxSellAmountActive = true;
bool public maxBuyAmountActive = true;
bool public maxWalletLimitActive = true;
uint256 private _totalSupply = 1_000_000_000_000 * 10 **_decimals;
uint256 public maxSellAmount = 20_000_000_000 * 10 ** _decimals;
uint256 public maxBuyAmount = 80_000_000_000 * 10 ** _decimals;
uint256 public numTokensSellToAddToLiquidity = 1_000_000_000 * 10 ** _decimals;
uint256 public maxWalletLimit = 80_000_000_000 * 10 ** _decimals;
uint256 public buyBackUpperLimit = 1 * 10 ** 18;
uint256 public buyBackLowerLimit = 1 * 10 ** 12;
bool public buyBackEnabled = false;
event BuyBackEnabledUpdated(bool enabled);
event SwapETHForTokens(uint256 amountIn, address[] path);
event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor () {
address uni = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
marketingWallet = payable(0x197ec0E98CC562284BFC8Db0F5C08d0eBa6BF922);
devWallet = payable(0xd5e7A8bC74deD9050E05DfD348A27Df76CA55048);
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(uni);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uniswapV2Router;
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
_balances[owner()] = _totalSupply;
_contractExempt[address(this)] = true;
_contractExempt[uni] = true;
_contractExempt[marketingWallet] = true;
_contractExempt[devWallet] = true;
_contractExempt[uniswapV2Pair] = true;
_maxWalletLimitExempt[address(this)] = true;
_maxWalletLimitExempt[uni] = true;
_maxWalletLimitExempt[marketingWallet] = true;
_maxWalletLimitExempt[devWallet] = true;
_maxWalletLimitExempt[uniswapV2Pair] = true;
_maxWalletLimitExempt[owner()] = true;
_limits[owner()].isExcluded = true;
_limits[address(this)].isExcluded = true;
_limits[uni].isExcluded = true;
isAMM[uniswapV2Pair] = true;
globalLimit = 2 * 10 ** 18; // 10 ** 18 = 1 ETH limit
globalLimitPeriod = 24 hours;
_allowances[owner()][uni] = ~uint256(0); // you can leave this here, it will approve tokens to uniswap, so you can add liquidity easily
emit Transfer(address(0), _msgSender(), _totalSupply);
}
function setAllBuyFees(uint256 devFee, uint256 liquidityFee, uint256 marketingFee) public onlyOwner() {
_devFee = devFee;
_liquidityFee = liquidityFee;
_marketingFee = marketingFee;
}
function setAllSaleFees(uint256 devFee, uint256 liquidityFee, uint256 marketingFee) public onlyOwner() {
_saleDevFee = devFee;
_saleLiquidityFee = liquidityFee;
_saleMarketingFee = marketingFee;
}
function launch() external onlyOwner {
launchedAt = block.timestamp;
taxLastUpdated = block.timestamp;
_liquidityFee = 99;
buybackDivisor = 0;
openTrade();
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
receive() external payable {}
function isExcludedFromFee(address account) public view returns (bool) {
return _isExcludedFromFee[account];
}
function _approve(address owner, address spender, uint256 amount) private {
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 setAMMStatus(address _address, bool status) public onlyOwner {
isAMM[_address] = status;
}
function AMMStatus(address _address) public view returns(bool) {
return isAMM[_address];
}
function _transfer(address from, address to, uint256 amount) private
open(from, to)
{
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
require(_balances[from] >= amount, "Transfer amount exceeds balance");
require(!(_blacklisted[from] || _blacklisted[to]), "Blacklisted address involved");
require(contractsAllowed || !from.isContract() || isContractExempt(from), "No contracts allowed");
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;
if (overMinTokenBalance && !inSwapAndLiquify && !isAMM[from] && swapAndLiquifyEnabled){
checkForBuyBack();
contractTokenBalance = numTokensSellToAddToLiquidity;
swapAndLiquify(contractTokenBalance);
}
setLaunchTaxes();
uint256 tax;
if(_isExcludedFromFee[from] || _isExcludedFromFee[to] || inSwapAndLiquify){
// From or to excluded, so don't take fees, also don't take fees when contract is swapping
tax = 0;
} else {
if(isAMM[to]){
// sell
require(amount <= maxSellAmount || !maxSellAmountActive, "Amount exceeds the max sell amount");
tax = _saleLiquidityFee.add(_saleMarketingFee).add(_saleDevFee);
} else if (isAMM[from]) {
if (block.timestamp == launchedAt){
_blacklisted[to] = true;
}
// buy
require(amount <= maxBuyAmount || !maxBuyAmountActive, "Amount exceeds the max buy amount");
tax = _liquidityFee.add(_marketingFee).add(_devFee);
} else {
// transfer
require(!_limits[from].isPrivateSaler && block.timestamp > launchedAt, "No transfers for private salers");
tax = transferTaxEnabled ? transferTax : 0;
}
}
//handle token movements
uint256 taxedAmount = _getTaxed(amount, tax);
uint256 taxAmount = amount.sub(taxedAmount);
_balances[from] = _balances[from].sub(amount);
_balances[address(this)] = _balances[address(this)].add(taxAmount);
_balances[to] = _balances[to].add(taxedAmount);
require(_balances[to] <= maxWalletLimit || _maxWalletLimitExempt[to] || !maxWalletLimitActive, "Exceeds max tokens limit on a single wallet");
// handle limits on sells/transfers
if (!inSwapAndLiquify && !isAMM[from]){
_handleLimited(from, taxedAmount);
}
emit Transfer(from,to,taxedAmount);
if (taxAmount != 0){
emit Transfer(from,address(this),taxAmount);
}
}
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
uint256 allFee = _liquidityFee.add(_marketingFee).add(_devFee);
if (allFee != 0){
uint256 halfLiquidityTokens = contractTokenBalance.div(allFee).mul(_liquidityFee-buybackDivisor).div(2);
uint256 swapableTokens = contractTokenBalance.sub(halfLiquidityTokens);
uint256 initialBalance = address(this).balance;
swapTokensForEth(swapableTokens);
uint256 newBalance = address(this).balance.sub(initialBalance);
uint256 ethForLiquidity = newBalance.div(allFee).mul(_liquidityFee-buybackDivisor).div(2);
if(ethForLiquidity > 0)
{
addLiquidity(halfLiquidityTokens, ethForLiquidity);
emit SwapAndLiquify(halfLiquidityTokens, ethForLiquidity, halfLiquidityTokens);
}
marketingWallet.transfer(newBalance.div(allFee).mul(_marketingFee));
devWallet.transfer(newBalance.div(allFee).mul(_devFee));
}
}
function setLaunchTaxes() private {
if (updateTax && launchedAt != 0){
uint256 timeDelta = block.timestamp - taxLastUpdated;
uint256 times = timeDelta / updateTaxInterval;
for(uint256 i=0; i < times; i++){
if (_liquidityFee <= 3) break;
_liquidityFee -= 3;
}
taxLastUpdated = block.timestamp;
if (_liquidityFee <= 12){
updateTax = false;
_liquidityFee = defaultLiquidityFee;
_marketingFee = defaultMarketingFee;
_devFee = defaultDevFee;
buybackDivisor = 2;
}
}
}
function _getTaxed(uint256 tokenAmount, uint256 tax) private view returns (uint256 taxed){
taxed = tokenAmount.mul(_taxDivisor.sub(tax)).div(_taxDivisor);
}
function setTransferTaxStatus(bool status) public onlyOwner{
transferTaxEnabled = status;
}
function setTransferTax(uint256 newTax) public onlyOwner{
transferTax = newTax;
}
function setMaxBuyAmountActive(bool status) public onlyOwner{
maxBuyAmountActive = status;
}
function setMaxSellAmountActive(bool status) public onlyOwner{
maxSellAmountActive = status;
}
function setMaxWalletLimitActive(bool status) public onlyOwner{
maxWalletLimitActive = status;
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this), block.timestamp);
}
function manualBurn(uint256 burnAmount) public onlyOwner {
_transfer(owner(), deadWallet, burnAmount);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this), tokenAmount, 0, 0, owner(), block.timestamp);
}
function setExcludeFromFee(address account, bool _enabled) public onlyOwner {
_isExcludedFromFee[account] = _enabled;
}
function setmarketingWallet(address newWallet) external onlyOwner {
marketingWallet = payable(newWallet);
}
function setDevWallet(address newWallet) external onlyOwner {
devWallet = payable(newWallet);
}
function setMaxSellAmount(uint256 amount) external onlyOwner {
maxSellAmount = amount;
}
function setBuybackDivisor(uint256 amount) external onlyOwner {
require(amount <= _liquidityFee, "Value higher than liquidity fee not allowed");
buybackDivisor = amount;
}
function setMaxBuyAmount(uint256 amount) external onlyOwner {
maxBuyAmount = amount;
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
function setNumTokensSellToAddToLiquidity(uint256 amount) public onlyOwner {
numTokensSellToAddToLiquidity = amount;
}
function setBuybackLowerLimit(uint256 value) public onlyOwner {
buyBackLowerLimit = value;
}
function buyBackTokens(uint256 amount) private lockTheSwap {
if (amount > 0) {
swapETHForTokens(amount);
}
}
function checkForBuyBack() private lockTheSwap {
uint256 balance = address(this).balance;
if (buyBackEnabled && balance >= buyBackLowerLimit)
{
if (balance > buyBackUpperLimit) {
balance = buyBackUpperLimit;
}
buyBackTokens(balance);
}
}
function swapETHForTokens(uint256 amount) private {
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = address(this);
uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(
0,
path,
deadWallet,
block.timestamp);
emit SwapETHForTokens(amount, path);
}
function setBuybackUpperLimit(uint256 buyBackLimit) external onlyOwner() {
buyBackUpperLimit = buyBackLimit;
}
function setBuyBackEnabled(bool _enabled) public onlyOwner {
buyBackEnabled = _enabled;
emit BuyBackEnabledUpdated(_enabled);
}
function manualBuyback(uint256 amount) external onlyOwner() {
buyBackTokens(amount);
}
// Blacklist
function setBlacklistStatus(address _address, bool status) public onlyOwner{
_blacklisted[_address] = status;
}
function isBlacklisted(address _address) public view returns (bool) {
return _blacklisted[_address];
}
// Contract rejection
function setContractsAllowedStatus(bool status) public onlyOwner {
contractsAllowed = status;
}
function isContractExempt(address _address) public view returns (bool) {
return _contractExempt[_address];
}
function setContractExemptStatus(address _address, bool status) public onlyOwner {
_contractExempt[_address] = status;
}
// Max wallet
function isMaxWalletLimitExempt(address _address) public view returns(bool) {
return _maxWalletLimitExempt[_address];
}
function setMaxWalletLimit(uint256 value) public onlyOwner {
maxWalletLimit = value;
}
function setMaxWalletLimitExemptStatus(address _address, bool status) public onlyOwner {
_maxWalletLimitExempt[_address] = status;
}
function getETHValue(uint256 tokenAmount) private view returns (uint256 ethValue) {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
ethValue = uniswapV2Router.getAmountsOut(tokenAmount, path)[1];
}
// private sale limits
mapping(address => LimitedWallet) private _limits;
uint256 public privateSaleGlobalLimit; // limit over timeframe for private salers
uint256 public privateSaleGlobalLimitPeriod; // timeframe for private salers
uint256 public globalLimit; // limit over timeframe for all
uint256 public globalLimitPeriod; // timeframe for all
bool public globalLimitsActive = true;
bool public globalLimitsPrivateSaleActive = true;
struct LimitedWallet {
uint256[] sellAmounts;
uint256[] sellTimestamps;
uint256 limitPeriod; // ability to set custom values for individual wallets
uint256 limitETH; // ability to set custom values for individual wallets
bool isPrivateSaler;
bool isExcluded;
}
function setGlobalLimitPrivateSale(uint256 newLimit) public onlyOwner {
privateSaleGlobalLimit = newLimit;
}
function setGlobalLimitPeriodPrivateSale(uint256 newPeriod) public onlyOwner {
privateSaleGlobalLimitPeriod = newPeriod;
}
function setGlobalLimit(uint256 newLimit) public onlyOwner {
globalLimit = newLimit;
}
function setGlobalLimitPeriod(uint256 newPeriod) public onlyOwner {
globalLimitPeriod = newPeriod;
}
function setGlobalLimitsPrivateSaleActiveStatus(bool status) public onlyOwner {
globalLimitsPrivateSaleActive = status;
}
function setGlobalLimitsActiveStatus(bool status) public onlyOwner {
globalLimitsActive = status;
}
function getLimits(address _address) public view returns (LimitedWallet memory){
return _limits[_address];
}
// Set custom limits for an address. Defaults to 0, thus will use the "globalLimitPeriod" and "globalLimitETH" if we don't set them
function setLimits(address[] calldata addresses, uint256[] calldata limitPeriods, uint256[] calldata limitsETH) public onlyOwner{
require(addresses.length == limitPeriods.length && limitPeriods.length == limitsETH.length, "Array lengths don't match");
require(addresses.length <= 1000, "Array too long");
for(uint256 i=0; i < addresses.length; i++){
_limits[addresses[i]].limitPeriod = limitPeriods[i];
_limits[addresses[i]].limitETH = limitsETH[i];
}
}
function addPrivateSalers(address[] calldata addresses) public onlyOwner{
require(addresses.length <= 1000, "Array too long");
for(uint256 i=0; i < addresses.length; i++){
_limits[addresses[i]].isPrivateSaler = true;
}
}
function removePrivateSalers(address[] calldata addresses) public onlyOwner{
require(addresses.length <= 1000, "Array too long");
for(uint256 i=0; i < addresses.length; i++){
_limits[addresses[i]].isPrivateSaler = false;
}
}
function addExcludedFromLimits(address[] calldata addresses) public onlyOwner{
require(addresses.length <= 1000, "Array too long");
for(uint256 i=0; i < addresses.length; i++){
_limits[addresses[i]].isExcluded = true;
}
}
function removeExcludedFromLimits(address[] calldata addresses) public onlyOwner{
require(addresses.length <= 1000, "Array too long");
for(uint256 i=0; i < addresses.length; i++){
_limits[addresses[i]].isExcluded = false;
}
}
// Can be used to check how much a wallet sold in their timeframe
function getSoldLastPeriod(address _address) public view returns (uint256 sellAmount) {
uint256 numberOfSells = _limits[_address].sellAmounts.length;
if (numberOfSells == 0) {
return sellAmount;
}
uint256 defaultLimitPeriod = _limits[_address].isPrivateSaler ? privateSaleGlobalLimitPeriod : globalLimitPeriod;
uint256 limitPeriod = _limits[_address].limitPeriod == 0 ? defaultLimitPeriod : _limits[_address].limitPeriod;
while (true) {
if (numberOfSells == 0) {
break;
}
numberOfSells--;
uint256 sellTimestamp = _limits[_address].sellTimestamps[numberOfSells];
if (block.timestamp - limitPeriod <= sellTimestamp) {
sellAmount += _limits[_address].sellAmounts[numberOfSells];
} else {
break;
}
}
}
// Handle private sale wallets
function _handleLimited(address from, uint256 taxedAmount) private {
if (_limits[from].isExcluded || (!globalLimitsActive && !_limits[from].isPrivateSaler) || (!globalLimitsPrivateSaleActive && _limits[from].isPrivateSaler)){
return;
}
uint256 ethValue = getETHValue(taxedAmount);
_limits[from].sellTimestamps.push(block.timestamp);
_limits[from].sellAmounts.push(ethValue);
uint256 soldAmountLastPeriod = getSoldLastPeriod(from);
uint256 defaultLimit = _limits[from].isPrivateSaler ? privateSaleGlobalLimit : globalLimit;
uint256 limit = _limits[from].limitETH == 0 ? defaultLimit : _limits[from].limitETH;
require(soldAmountLastPeriod <= limit, "Amount over the limit for time period");
}
function multiSendTokens(address[] calldata addresses, uint256[] calldata amounts) public onlyOwner{
require(addresses.length == amounts.length, "Array lengths don't match");
require(addresses.length <= 1000, "Array too long");
for(uint256 i=0; i < addresses.length; i++){
_transfer(msg.sender, addresses[i], amounts[i]);
}
}
// Get tokens that are on the contract
function sweepTokens(address token, address recipient) public onlyOwner {
uint256 amount = IERC20(token).balanceOf(address(this));
IERC20(token).transfer(recipient, amount);
}
function withdraw() public onlyOwner {
payable(msg.sender).transfer(address(this).balance);
}
}
{
"compilationTarget": {
"OOO.sol": "OOO"
},
"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":"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":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"BuyBackEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minTokensBeforeSwap","type":"uint256"}],"name":"MinTokensBeforeSwapUpdated","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":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"}],"name":"SwapETHForTokens","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":[{"internalType":"address","name":"_address","type":"address"}],"name":"AMMStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_devFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saleDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saleLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_saleMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addExcludedFromLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"addPrivateSalers","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":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackLowerLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackUpperLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buybackDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractsAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"defaultDevFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultMarketingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getLimits","outputs":[{"components":[{"internalType":"uint256[]","name":"sellAmounts","type":"uint256[]"},{"internalType":"uint256[]","name":"sellTimestamps","type":"uint256[]"},{"internalType":"uint256","name":"limitPeriod","type":"uint256"},{"internalType":"uint256","name":"limitETH","type":"uint256"},{"internalType":"bool","name":"isPrivateSaler","type":"bool"},{"internalType":"bool","name":"isExcluded","type":"bool"}],"internalType":"struct OOO.LimitedWallet","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getSoldLastPeriod","outputs":[{"internalType":"uint256","name":"sellAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalLimitPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalLimitsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalLimitsPrivateSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"includeToWhiteList","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":"_address","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isContractExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isMaxWalletLimitExempt","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"burnAmount","type":"uint256"}],"name":"manualBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"manualBuyback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBuyAmountActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSellAmountActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWalletLimitActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"multiSendTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensSellToAddToLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleGlobalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleGlobalLimitPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removeExcludedFromLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"removePrivateSalers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setAMMStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"devFee","type":"uint256"},{"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"internalType":"uint256","name":"marketingFee","type":"uint256"}],"name":"setAllBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"devFee","type":"uint256"},{"internalType":"uint256","name":"liquidityFee","type":"uint256"},{"internalType":"uint256","name":"marketingFee","type":"uint256"}],"name":"setAllSaleFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setBlacklistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setBuyBackEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setBuybackDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setBuybackLowerLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyBackLimit","type":"uint256"}],"name":"setBuybackUpperLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setContractExemptStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setContractsAllowedStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setDevWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setExcludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setGlobalLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPeriod","type":"uint256"}],"name":"setGlobalLimitPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPeriod","type":"uint256"}],"name":"setGlobalLimitPeriodPrivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newLimit","type":"uint256"}],"name":"setGlobalLimitPrivateSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setGlobalLimitsActiveStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setGlobalLimitsPrivateSaleActiveStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"limitPeriods","type":"uint256[]"},{"internalType":"uint256[]","name":"limitsETH","type":"uint256[]"}],"name":"setLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxBuyAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setMaxBuyAmountActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxSellAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setMaxSellAmountActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setMaxWalletLimitActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setMaxWalletLimitExemptStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setNumTokensSellToAddToLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTax","type":"uint256"}],"name":"setTransferTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setTransferTaxStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setmarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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":"transferTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferTaxEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]