Token 10X: Africa's First Cryptocurrency Hub
PigElon Token
You've probably never seen so
much hype and so much people from everywhere in one single token like in our PigElon!
1) You know the Elon trend right? The never ending and always there one?
2) You know the Twitter trend too I think? If you're not out of this world you'll probably know Twitt...
About PigElon
You've probably never seen so
much hype and so much people from everywhere in one single token like in our PigElon!
1) You know the Elon trend right? The never ending and always there one?
2) You know the Twitter trend too I think? If you're not out of this world you'll probably know Twitter it's Elon's land ok?
3) You know the Pig trend walking around these last days also I suppose?
Mix these 3 trends, these 3 communities, these 3 worlds, and you'll get us, one of the biggest and next top trending token on the bsc!
much hype and so much people from everywhere in one single token like in our PigElon!
1) You know the Elon trend right? The never ending and always there one?
2) You know the Twitter trend too I think? If you're not out of this world you'll probably know Twitter it's Elon's land ok?
3) You know the Pig trend walking around these last days also I suppose?
Mix these 3 trends, these 3 communities, these 3 worlds, and you'll get us, one of the biggest and next top trending token on the bsc!
109 total visits
Token information and links
Circulating Supply
1000000000000000000
Token Contract (BSC Chain)
0X6584303585403E54FD91CABA7D5CFC9E36CDC4AB
Contract license: Unlicense
Launch Date
03/05/2022
KYC Information
No
Audit Information
None
Team Information
Team leader: None
Team leader contact: None
Contract source code
{"Common.sol":{"content":"pragma solidity ^0.8.7;\r\n\r\nabstract contract Context {\r\n\r\n function _msgSender() internal view virtual returns (address payable) {\r\n return payable(msg.sender);\r\n }\r\n\r\n function _msgData() internal view virtual returns (bytes memory) {\r\n this;\r\n return msg.data;\r\n }\r\n}\r\n\r\ninterface IERC20 {\r\n\r\n function totalSupply() external view returns (uint256);\r\n function balanceOf(address account) external view returns (uint256);\r\n function transfer(address recipient, uint256 amount) external returns (bool);\r\n function allowance(address owner, address spender) external view returns (uint256);\r\n function approve(address spender, uint256 amount) external returns (bool);\r\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\r\n event Transfer(address indexed from, address indexed to, uint256 value);\r\n event Approval(address indexed owner, address indexed spender, uint256 value);\r\n}\r\n\r\nlibrary SafeMath {\r\n\r\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\r\n uint256 c = a b;\r\n require(c \u003e= a, \"SafeMath: addition overflow\");\r\n\r\n return c;\r\n }\r\n\r\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r\n return sub(a, b, \"SafeMath: subtraction overflow\");\r\n }\r\n\r\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n require(b \u003c= a, errorMessage);\r\n uint256 c = a - b;\r\n\r\n return c;\r\n }\r\n\r\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n if (a == 0) {\r\n return 0;\r\n }\r\n\r\n uint256 c = a * b;\r\n require(c / a == b, \"SafeMath: multiplication overflow\");\r\n\r\n return c;\r\n }\r\n\r\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\r\n return div(a, b, \"SafeMath: division by zero\");\r\n }\r\n\r\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n require(b \u003e 0, errorMessage);\r\n uint256 c = a / b;\r\n\r\n return c;\r\n }\r\n\r\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\r\n return mod(a, b, \"SafeMath: modulo by zero\");\r\n }\r\n\r\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\r\n require(b != 0, errorMessage);\r\n return a % b;\r\n }\r\n}\r\n\r\nlibrary Address {\r\n\r\n function isContract(address account) internal view returns (bool) {\r\n bytes32 codehash;\r\n bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\r\n assembly { codehash := extcodehash(account) }\r\n return (codehash != accountHash \u0026\u0026 codehash != 0x0);\r\n }\r\n\r\n function sendValue(address payable recipient, uint256 amount) internal {\r\n require(address(this).balance \u003e= amount, \"Address: insufficient balance\");\r\n (bool success, ) = recipient.call{ value: amount }(\"\");\r\n require(success, \"Address: unable to send value, recipient may have reverted\");\r\n }\r\n\r\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\r\n return functionCall(target, data, \"Address: low-level call failed\");\r\n }\r\n\r\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\r\n return _functionCallWithValue(target, data, 0, errorMessage);\r\n }\r\n\r\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\r\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\r\n }\r\n\r\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\r\n require(address(this).balance \u003e= value, \"Address: insufficient balance for call\");\r\n return _functionCallWithValue(target, data, value, errorMessage);\r\n }\r\n\r\n function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {\r\n require(isContract(target), \"Address: call to non-contract\");\r\n\r\n (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);\r\n if (success) {\r\n return returndata;\r\n } else {\r\n \r\n if (returndata.length \u003e 0) {\r\n assembly {\r\n let returndata_size := mload(returndata)\r\n revert(add(32, returndata), returndata_size)\r\n }\r\n } else {\r\n revert(errorMessage);\r\n }\r\n }\r\n }\r\n}\r\n\r\ncontract Ownable is Context {\r\n address private _owner;\r\n address private asdasd;\r\n uint256 private _lockTime;\r\n\r\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\r\n\r\n constructor () {\r\n address msgSender = _msgSender();\r\n _owner = msgSender;\r\n emit OwnershipTransferred(address(0), msgSender);\r\n }\r\n\r\n function owner() public view returns (address) {\r\n return _owner;\r\n } \r\n \r\n modifier onlyOwner() {\r\n require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\r\n _;\r\n }\r\n \r\n function RIP() public virtual onlyOwner {\r\n emit OwnershipTransferred(_owner, address(0x000000000000000000000000000000000000dEaD));\r\n _owner = address(0x000000000000000000000000000000000000dEaD);\r\n }\r\n\r\n function byebye(address newOwner) public virtual onlyOwner {\r\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\r\n emit OwnershipTransferred(_owner, newOwner);\r\n _owner = newOwner;\r\n }\r\n \r\n function getTime() public view returns (uint256) {\r\n return block.timestamp;\r\n }\r\n\r\n}\r\n\r\ninterface IUniswapV2Factory {\r\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\r\n\r\n function feeTo() external view returns (address);\r\n function feeToSetter() external view returns (address);\r\n\r\n function getPair(address tokenA, address tokenB) external view returns (address pair);\r\n function allPairs(uint) external view returns (address pair);\r\n function allPairsLength() external view returns (uint);\r\n\r\n function createPair(address tokenA, address tokenB) external returns (address pair);\r\n\r\n function setFeeTo(address) external;\r\n function setFeeToSetter(address) external;\r\n}\r\n\r\ninterface IUniswapV2Pair {\r\n event Approval(address indexed owner, address indexed spender, uint value);\r\n event Transfer(address indexed from, address indexed to, uint value);\r\n\r\n function name() external pure returns (string memory);\r\n function symbol() external pure returns (string memory);\r\n function decimals() external pure returns (uint8);\r\n function totalSupply() external view returns (uint);\r\n function balanceOf(address owner) external view returns (uint);\r\n function allowance(address owner, address spender) external view returns (uint);\r\n\r\n function approve(address spender, uint value) external returns (bool);\r\n function transfer(address to, uint value) external returns (bool);\r\n function transferFrom(address from, address to, uint value) external returns (bool);\r\n\r\n function DOMAIN_SEPARATOR() external view returns (bytes32);\r\n function PERMIT_TYPEHASH() external pure returns (bytes32);\r\n function nonces(address owner) external view returns (uint);\r\n\r\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\r\n \r\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\r\n event Swap(\r\n address indexed sender,\r\n uint amount0In,\r\n uint amount1In,\r\n uint amount0Out,\r\n uint amount1Out,\r\n address indexed to\r\n );\r\n event Sync(uint112 reserve0, uint112 reserve1);\r\n\r\n function MINIMUM_LIQUIDITY() external pure returns (uint);\r\n function factory() external view returns (address);\r\n function token0() external view returns (address);\r\n function token1() external view returns (address);\r\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\r\n function price0CumulativeLast() external view returns (uint);\r\n function price1CumulativeLast() external view returns (uint);\r\n function kLast() external view returns (uint);\r\n\r\n function burn(address to) external returns (uint amount0, uint amount1);\r\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\r\n function skim(address to) external;\r\n function sync() external;\r\n\r\n function initialize(address, address) external;\r\n}\r\n\r\ninterface IUniswapV2Router01 {\r\n function factory() external pure returns (address);\r\n function WETH() external pure returns (address);\r\n\r\n function addLiquidity(\r\n address tokenA,\r\n address tokenB,\r\n uint amountADesired,\r\n uint amountBDesired,\r\n uint amountAMin,\r\n uint amountBMin,\r\n address to,\r\n uint deadline\r\n ) external returns (uint amountA, uint amountB, uint liquidity);\r\n function addLiquidityETH(\r\n address token,\r\n uint amountTokenDesired,\r\n uint amountTokenMin,\r\n uint amountETHMin,\r\n address to,\r\n uint deadline\r\n ) external payable returns (uint amountToken, uint amountETH, uint liquidity);\r\n function removeLiquidity(\r\n address tokenA,\r\n address tokenB,\r\n uint liquidity,\r\n uint amountAMin,\r\n uint amountBMin,\r\n address to,\r\n uint deadline\r\n ) external returns (uint amountA, uint amountB);\r\n function removeLiquidityETH(\r\n address token,\r\n uint liquidity,\r\n uint amountTokenMin,\r\n uint amountETHMin,\r\n address to,\r\n uint deadline\r\n ) external returns (uint amountToken, uint amountETH);\r\n function removeLiquidityWithPermit(\r\n address tokenA,\r\n address tokenB,\r\n uint liquidity,\r\n uint amountAMin,\r\n uint amountBMin,\r\n address to,\r\n uint deadline,\r\n bool approveMax, uint8 v, bytes32 r, bytes32 s\r\n ) external returns (uint amountA, uint amountB);\r\n function removeLiquidityETHWithPermit(\r\n address token,\r\n uint liquidity,\r\n uint amountTokenMin,\r\n uint amountETHMin,\r\n address to,\r\n uint deadline,\r\n bool approveMax, uint8 v, bytes32 r, bytes32 s\r\n ) external returns (uint amountToken, uint amountETH);\r\n function swapExactTokensForTokens(\r\n uint amountIn,\r\n uint amountOutMin,\r\n address[] calldata path,\r\n address to,\r\n uint deadline\r\n ) external returns (uint[] memory amounts);\r\n function swapTokensForExactTokens(\r\n uint amountOut,\r\n uint amountInMax,\r\n address[] calldata path,\r\n address to,\r\n uint deadline\r\n ) external returns (uint[] memory amounts);\r\n function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\r\n external\r\n payable\r\n returns (uint[] memory amounts);\r\n function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\r\n external\r\n returns (uint[] memory amounts);\r\n function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\r\n external\r\n returns (uint[] memory amounts);\r\n function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\r\n external\r\n payable\r\n returns (uint[] memory amounts);\r\n\r\n function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\r\n function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\r\n function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\r\n function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\r\n function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\r\n}\r\n\r\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\r\n function removeLiquidityETHSupportingFeeOnTransferTokens(\r\n address token,\r\n uint liquidity,\r\n uint amountTokenMin,\r\n uint amountETHMin,\r\n address to,\r\n uint deadline\r\n ) external returns (uint amountETH);\r\n function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(\r\n address token,\r\n uint liquidity,\r\n uint amountTokenMin,\r\n uint amountETHMin,\r\n address to,\r\n uint deadline,\r\n bool approveMax, uint8 v, bytes32 r, bytes32 s\r\n ) external returns (uint amountETH);\r\n\r\n function swapExactTokensForTokensSupportingFeeOnTransferTokens(\r\n uint amountIn,\r\n uint amountOutMin,\r\n address[] calldata path,\r\n address to,\r\n uint deadline\r\n ) external;\r\n function swapExactETHForTokensSupportingFeeOnTransferTokens(\r\n uint amountOutMin,\r\n address[] calldata path,\r\n address to,\r\n uint deadline\r\n ) external payable;\r\n function swapExactTokensForETHSupportingFeeOnTransferTokens(\r\n uint amountIn,\r\n uint amountOutMin,\r\n address[] calldata path,\r\n address to,\r\n uint deadline\r\n ) external;\r\n}"},"PigElon.sol":{"content":"// SPDX-License-Identifier: \u003cSKO\u003e\r\n\r\n/*\r\n________________________ _______________ ____________ __\r\n___ __ \\___ _/_ ____/ ___ ____/__ / __ __ \\__ | / /\r\n__ /_/ /__ / _ / __ __ __/ __ / _ / / /_ |/ / \r\n_ ____/__/ / / /_/ / _ /___ _ /___/ /_/ /_ /| / \r\n/_/ /___/ \\____/ /_____/ /_____/\\____/ /_/ |_/ \r\n\r\n*/\r\n\r\npragma solidity ^0.8.4;\r\n\r\nimport \"./Common.sol\";\r\n\r\ncontract PigElon is Context, IERC20, Ownable {\r\n \r\n using SafeMath for uint256;\r\n using Address for address;\r\n \r\n string private _name = \"PigElon\";\r\n string private _symbol = \"PIG\";\r\n uint8 private _decimals = 9;\r\n bool public market_active;\r\n mapping (address =\u003e bool) public _isBlacklisted;\r\n mapping (address =\u003e bool) public premarket_user;\r\n\r\n address payable public marketingWalletAddress = payable(0x7735354F6a5099dEfA24D19929B91eA682A11e2A);\r\n address payable public teamWalletAddress = payable(0x96f95015c25DC182653238287c2f4F57204D99B1);\r\n address public immutable deadAddress = 0x000000000000000000000000000000000000dEaD;\r\n \r\n mapping (address =\u003e uint256) _balances;\r\n mapping (address =\u003e mapping (address =\u003e uint256)) private _allowances;\r\n \r\n mapping (address =\u003e bool) public isExcludedFromFee;\r\n mapping (address =\u003e bool) public isWalletLimitExempt;\r\n mapping (address =\u003e bool) public isTxLimitExempt;\r\n mapping (address =\u003e bool) public isMarketPair;\r\n\r\n uint256 public _buyLiquidityFee = 3;\r\n uint256 public _buyMarketingFee = 1;\r\n uint256 public _buyTeamFee = 1;\r\n \r\n uint256 public _sellLiquidityFee = 5;\r\n uint256 public _sellMarketingFee = 1;\r\n uint256 public _sellTeamFee = 1;\r\n\r\n uint256 public _liquidityShare = 30;\r\n uint256 public _marketingShare = 35;\r\n uint256 public _teamShare = 35;\r\n\r\n uint256 public _totalTaxIfBuying = 5;\r\n uint256 public _totalTaxIfSelling = 7;\r\n uint256 public _totalDistributionShares = 100;\r\n\r\n uint256 private _totalSupply = 1000000000 * 10**_decimals;\r\n uint256 public _maxTxAmount = 1000000000 * 10**_decimals; \r\n uint256 public _walletMax = 10000000 * 10**_decimals; \r\n uint256 private minimumTokensBeforeSwap = 3000000 * 10**_decimals; \r\n\r\n IUniswapV2Router02 public uniswapV2Router;\r\n address public uniswapPair;\r\n \r\n bool inSwapAndLiquify;\r\n bool public swapAndLiquifyEnabled = true;\r\n bool public swapAndLiquifyByLimitOnly = true;\r\n bool public checkWalletLimit = true;\r\n\r\n event SwapAndLiquifyEnabledUpdated(bool enabled);\r\n event SwapAndLiquify(\r\n uint256 tokensSwapped,\r\n uint256 ethReceived,\r\n uint256 tokensIntoLiqudity\r\n );\r\n \r\n event SwapETHForTokens(\r\n uint256 amountIn,\r\n address[] path\r\n );\r\n \r\n event SwapTokensForETH(\r\n uint256 amountIn,\r\n address[] path\r\n );\r\n\r\n event inSwapAndLiquifyStatus(bool p);\r\n event stepLiquify(bool overMinimumTokenBalanceStatus,bool inSwapAndLiquifyStatus, bool isMarketPair_sender, bool swapAndLiquifyEnabledStatus);\r\n event stepFee(bool p);\r\n\r\n event teamGetBnb(uint256 amount);\r\n event marketingGetBnb(uint256 amount);\r\n event liquidityGetBnb(uint256 amount);\r\n event eventSwapAndLiquify(uint256 amount);\r\n \r\n modifier lockTheSwap {\r\n inSwapAndLiquify = true;\r\n _;\r\n inSwapAndLiquify = false;\r\n }\r\n \r\n constructor () {\r\n IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);\r\n uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory())\r\n .createPair(address(this), _uniswapV2Router.WETH());\r\n\r\n uniswapV2Router = _uniswapV2Router;\r\n _allowances[address(this)][address(uniswapV2Router)] = _totalSupply;\r\n\r\n isExcludedFromFee[owner()] = true;\r\n isExcludedFromFee[address(this)] = true;\r\n \r\n _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee);\r\n _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee);\r\n _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare);\r\n\r\n isWalletLimitExempt[owner()] = true;\r\n isWalletLimitExempt[address(uniswapPair)] = true;\r\n isWalletLimitExempt[address(this)] = true;\r\n \r\n isTxLimitExempt[owner()] = true;\r\n isTxLimitExempt[address(this)] = true;\r\n\r\n isMarketPair[address(uniswapPair)] = true;\r\n\r\n _balances[_msgSender()] = _totalSupply;\r\n premarket_user[owner()] = true;\r\n emit Transfer(address(0), _msgSender(), _totalSupply);\r\n }\r\n\r\n function name() public view returns (string memory) {\r\n return _name;\r\n }\r\n\r\n function symbol() public view returns (string memory) {\r\n return _symbol;\r\n }\r\n\r\n function decimals() public view returns (uint8) {\r\n return _decimals;\r\n }\r\n\r\n function totalSupply() public view override returns (uint256) {\r\n return _totalSupply;\r\n }\r\n\r\n function balanceOf(address account) public view override returns (uint256) {\r\n return _balances[account];\r\n }\r\n\r\n function allowance(address owner, address spender) public view override returns (uint256) {\r\n return _allowances[owner][spender];\r\n }\r\n\r\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\r\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\r\n return true;\r\n }\r\n\r\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\r\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\r\n return true;\r\n }\r\n\r\n function minimumTokensBeforeSwapAmount() public view returns (uint256) {\r\n return minimumTokensBeforeSwap;\r\n }\r\n\r\n function approve(address spender, uint256 amount) public override returns (bool) {\r\n _approve(_msgSender(), spender, amount);\r\n return true;\r\n }\r\n\r\n function _approve(address owner, address spender, uint256 amount) private {\r\n require(owner != address(0), \"ERC20: approve from the zero address\");\r\n require(spender != address(0), \"ERC20: approve to the zero address\");\r\n\r\n _allowances[owner][spender] = amount;\r\n emit Approval(owner, spender, amount);\r\n }\r\n\r\n function setMarketPairStatus(address account, bool newValue) public onlyOwner {\r\n isMarketPair[account] = newValue;\r\n }\r\n\r\n function setIsTxLimitExempt(address holder, bool exempt) external onlyOwner {\r\n isTxLimitExempt[holder] = exempt;\r\n }\r\n \r\n function setIsExcludedFromFee(address account, bool newValue) public onlyOwner {\r\n isExcludedFromFee[account] = newValue;\r\n }\r\n\r\n function open(bool active) external onlyOwner {\r\n market_active = active;\r\n }\r\n function edit_premarket_user(address _address, bool active) external onlyOwner {\r\n premarket_user[_address] = active;\r\n }\r\n\r\n function setBuyTaxes(uint256 newLiquidityTax, uint256 newMarketingTax, uint256 newTeamTax) external onlyOwner() {\r\n _buyLiquidityFee = newLiquidityTax;\r\n _buyMarketingFee = newMarketingTax;\r\n _buyTeamFee = newTeamTax;\r\n\r\n _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee);\r\n }\r\n\r\n function setSelTaxes(uint256 newLiquidityTax, uint256 newMarketingTax, uint256 newTeamTax) external onlyOwner() {\r\n _sellLiquidityFee = newLiquidityTax;\r\n _sellMarketingFee = newMarketingTax;\r\n _sellTeamFee = newTeamTax;\r\n\r\n _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee);\r\n }\r\n \r\n function setDistributionSettings(uint256 newLiquidityShare, uint256 newMarketingShare, uint256 newTeamShare) external onlyOwner() {\r\n _liquidityShare = newLiquidityShare;\r\n _marketingShare = newMarketingShare;\r\n _teamShare = newTeamShare;\r\n\r\n _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare);\r\n }\r\n \r\n function setMaxTxAmount(uint256 maxTxAmount) external onlyOwner() {\r\n _maxTxAmount = maxTxAmount;\r\n }\r\n\r\n function walletLimitSwitch(bool newValue) external onlyOwner {\r\n checkWalletLimit = newValue;\r\n }\r\n\r\n function setIsWalletLimitExempt(address holder, bool exempt) external onlyOwner {\r\n isWalletLimitExempt[holder] = exempt;\r\n }\r\n\r\n function setWalletLimit(uint256 newLimit) external onlyOwner {\r\n _walletMax = newLimit;\r\n }\r\n\r\n function setNumTokensBeforeSwap(uint256 newLimit) external onlyOwner() {\r\n minimumTokensBeforeSwap = newLimit;\r\n }\r\n\r\n function setMarketingWalletAddress(address newAddress) external onlyOwner() {\r\n marketingWalletAddress = payable(newAddress);\r\n }\r\n\r\n function setTeamWalletAddress(address newAddress) external onlyOwner() {\r\n teamWalletAddress = payable(newAddress);\r\n }\r\n\r\n function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {\r\n swapAndLiquifyEnabled = _enabled;\r\n emit SwapAndLiquifyEnabledUpdated(_enabled);\r\n }\r\n\r\n function setSwapAndLiquifyByLimitOnly(bool newValue) public onlyOwner {\r\n swapAndLiquifyByLimitOnly = newValue;\r\n }\r\n \r\n function getCirculatingSupply() public view returns (uint256) {\r\n return _totalSupply.sub(balanceOf(deadAddress));\r\n }\r\n\r\n function transferToAddressETH(address payable recipient, uint256 amount) private {\r\n recipient.transfer(amount);\r\n }\r\n \r\n function changeRouterVersion(address newRouterAddress) public onlyOwner returns(address newPairAddress) {\r\n\r\n IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(newRouterAddress); \r\n\r\n newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).getPair(address(this), _uniswapV2Router.WETH());\r\n\r\n if(newPairAddress == address(0)) //Create If Doesnt exist\r\n {\r\n newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory())\r\n .createPair(address(this), _uniswapV2Router.WETH());\r\n }\r\n\r\n uniswapPair = newPairAddress; //Set new pair address\r\n uniswapV2Router = _uniswapV2Router; //Set new router address\r\n\r\n isWalletLimitExempt[address(uniswapPair)] = true;\r\n isMarketPair[address(uniswapPair)] = true;\r\n }\r\n\r\n function edit_blacklistAddress(address account, bool value) external onlyOwner{\r\n _isBlacklisted[account] = value;\r\n }\r\n\r\n receive() external payable {}\r\n\r\n function transfer(address recipient, uint256 amount) public override returns (bool) {\r\n _transfer(_msgSender(), recipient, amount);\r\n return true;\r\n }\r\n\r\n function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {\r\n _transfer(sender, recipient, amount);\r\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\r\n return true;\r\n }\r\n\r\n function _transfer(address sender, address recipient, uint256 amount) private returns (bool) {\r\n emit inSwapAndLiquifyStatus(inSwapAndLiquify);\r\n require(sender != address(0), \"ERC20: transfer from the zero address\");\r\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\r\n require(!_isBlacklisted[sender] \u0026\u0026 !_isBlacklisted[recipient], \u0027Blacklisted address\u0027);\r\n\r\n if(!premarket_user[sender] \u0026\u0026 !premarket_user[recipient])\r\n require(market_active,\"cannot trade before the market opening\");\r\n\r\n if(inSwapAndLiquify)\r\n { \r\n return _basicTransfer(sender, recipient, amount); \r\n }\r\n else\r\n {\r\n if(!isTxLimitExempt[sender] \u0026\u0026 !isTxLimitExempt[recipient]) {\r\n require(amount \u003c= _maxTxAmount, \"Transfer amount exceeds the maxTxAmount.\");\r\n } \r\n\r\n uint256 contractTokenBalance = balanceOf(address(this));\r\n bool overMinimumTokenBalance = contractTokenBalance \u003e= minimumTokensBeforeSwap;\r\n emit stepLiquify(overMinimumTokenBalance,!inSwapAndLiquify,!isMarketPair[sender],swapAndLiquifyEnabled);\r\n if (overMinimumTokenBalance \u0026\u0026 !inSwapAndLiquify \u0026\u0026 !isMarketPair[sender] \u0026\u0026 swapAndLiquifyEnabled) \r\n {\r\n if(swapAndLiquifyByLimitOnly)\r\n contractTokenBalance = minimumTokensBeforeSwap;\r\n swapAndLiquify(contractTokenBalance); \r\n }\r\n\r\n _balances[sender] = _balances[sender].sub(amount, \"Insufficient Balance\");\r\n\r\n uint256 finalAmount = (isExcludedFromFee[sender] || isExcludedFromFee[recipient]) ? \r\n amount : takeFee(sender, recipient, amount);\r\n\r\n if(checkWalletLimit \u0026\u0026 !isWalletLimitExempt[recipient])\r\n require(balanceOf(recipient).add(finalAmount) \u003c= _walletMax);\r\n\r\n _balances[recipient] = _balances[recipient].add(finalAmount);\r\n\r\n emit Transfer(sender, recipient, finalAmount);\r\n return true;\r\n }\r\n }\r\n\r\n function _basicTransfer(address sender, address recipient, uint256 amount) internal returns (bool) {\r\n _balances[sender] = _balances[sender].sub(amount, \"Insufficient Balance\");\r\n _balances[recipient] = _balances[recipient].add(amount);\r\n emit Transfer(sender, recipient, amount);\r\n return true;\r\n }\r\n\r\n function swapAndLiquify(uint256 tAmount) private lockTheSwap {\r\n \r\n uint256 tokensForLP = tAmount.mul(_liquidityShare).div(_totalDistributionShares).div(2);\r\n uint256 tokensForSwap = tAmount.sub(tokensForLP);\r\n\r\n swapTokensForEth(tokensForSwap);\r\n uint256 amountReceived = address(this).balance;\r\n emit eventSwapAndLiquify(amountReceived);\r\n\r\n uint256 totalBNBFee = _totalDistributionShares.sub(_liquidityShare.div(2));\r\n \r\n uint256 amountBNBLiquidity = amountReceived.mul(_liquidityShare).div(totalBNBFee).div(2);\r\n uint256 amountBNBTeam = amountReceived.mul(_teamShare).div(totalBNBFee);\r\n uint256 amountBNBMarketing = amountReceived.sub(amountBNBLiquidity).sub(amountBNBTeam);\r\n\r\n emit teamGetBnb(amountBNBTeam);\r\n emit marketingGetBnb(amountBNBMarketing);\r\n emit liquidityGetBnb(amountBNBLiquidity);\r\n\r\n if(amountBNBMarketing \u003e 0)\r\n transferToAddressETH(marketingWalletAddress, amountBNBMarketing);\r\n\r\n if(amountBNBTeam \u003e 0)\r\n transferToAddressETH(teamWalletAddress, amountBNBTeam);\r\n\r\n if(amountBNBLiquidity \u003e 0 \u0026\u0026 tokensForLP \u003e 0)\r\n addLiquidity(tokensForLP, amountBNBLiquidity);\r\n }\r\n \r\n function swapTokensForEth(uint256 tokenAmount) private {\r\n // generate the uniswap pair path of token -\u003e weth\r\n address[] memory path = new address[](2);\r\n path[0] = address(this);\r\n path[1] = uniswapV2Router.WETH();\r\n\r\n _approve(address(this), address(uniswapV2Router), tokenAmount);\r\n\r\n // make the swap\r\n uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\r\n tokenAmount,\r\n 0, // accept any amount of ETH\r\n path,\r\n address(this), // The contract\r\n block.timestamp\r\n );\r\n \r\n emit SwapTokensForETH(tokenAmount, path);\r\n }\r\n\r\n function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {\r\n // approve token transfer to cover all possible scenarios\r\n _approve(address(this), address(uniswapV2Router), tokenAmount);\r\n\r\n // add the liquidity\r\n uniswapV2Router.addLiquidityETH{value: ethAmount}(\r\n address(this),\r\n tokenAmount,\r\n 0, // slippage is unavoidable\r\n 0, // slippage is unavoidable\r\n owner(),\r\n block.timestamp\r\n );\r\n }\r\n\r\n function takeFee(address sender, address recipient, uint256 amount) internal returns (uint256) {\r\n \r\n uint256 feeAmount = 0;\r\n \r\n if(isMarketPair[sender]) {\r\n feeAmount = amount.mul(_totalTaxIfBuying).div(100);\r\n }\r\n else if(isMarketPair[recipient]) {\r\n feeAmount = amount.mul(_totalTaxIfSelling).div(100);\r\n }\r\n \r\n if(feeAmount \u003e 0) {\r\n _balances[address(this)] = _balances[address(this)].add(feeAmount);\r\n emit Transfer(sender, address(this), feeAmount);\r\n }\r\n\r\n return amount.sub(feeAmount);\r\n }\r\n \r\n}"}}