Token 10X: Africa's First Cryptocurrency Hub
DeVolution Token
What is Devolution?
We build our Metaverse!
It will be one of the most successful Nft based games ever!
Devolution is a game that connects players worldwide online. The game will have a PVE and PVP mode where players can fight against each other with their Evomons.
Work 24/7! Interna...
About DeVolution
What is Devolution?
We build our Metaverse!
It will be one of the most successful Nft based games ever!
Devolution is a game that connects players worldwide online. The game will have a PVE and PVP mode where players can fight against each other with their Evomons.
Work 24/7! International Team!
The game Devolution is already in development, you don't need to worry, this game will not take endless time like many other projects! You will have first insights faster than usual.
More then 11 characters ready and more incoming.
Join our WL giveaway
https://sweepwidget.com/view/38254-5x31rw2p
We build our Metaverse!
It will be one of the most successful Nft based games ever!
Devolution is a game that connects players worldwide online. The game will have a PVE and PVP mode where players can fight against each other with their Evomons.
Work 24/7! International Team!
The game Devolution is already in development, you don't need to worry, this game will not take endless time like many other projects! You will have first insights faster than usual.
More then 11 characters ready and more incoming.
Join our WL giveaway
https://sweepwidget.com/view/38254-5x31rw2p
146 total visits
Token information and links
Circulating Supply
1000000000000000000000000000
Token Contract (BSC Chain)
0X0FD98B8C58560167A236F1D0553A9C2A42342CCF
Contract license: MIT
Launch Date
13/11/2021
KYC Information
No
Audit Information
None
Team Information
Team leader: None
Team leader contact: None
Contract source code
{"Devolution.sol":{"content":"// \r\n// \r\n// \r\n// #. .../ \r\n// #...(.....* \r\n// %####%#/*,/./..%,*%%%%%%#% \r\n// ###(%%%%%%%%%(/%*/*%#/((%\u0026%%%%%%####. \r\n// ..%% ##%%%%%%((//////**#(((((***////(((#%#%%%#%% \r\n// # ...,,**(%%%%%(//***(*,,,/*,,,,,,,,,,,///****/((#%#%%%%,...,*, \r\n// #.#%#%/,(#*(#///*****..,,,,,,*****,*,*,,,.,(/(*,***(((% .##/,/*/ \r\n// %/*/(*((%((%**,,,,********,***//*******,,,,,,,********,.,(/.%(/*(% \r\n// %#(((/(%%%%%%%%* /(***/((***,,,,*,******////*(////*****///(/////*,,,*%*/#/,,*/(( \r\n// %%\u0026\u0026%%(*,. ,\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026%%%%##%%##//******,***////////*//*//(///***/(//((((//*/,,,**%((((%%% \r\n// #%\u0026\u0026\u0026\u0026\u0026%%%\u0026\u0026%%%%%%%%%%%%%##...,,,,****%\u0026\u0026.*,****,,,/(#%#%\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026/(((///(((((*******/((%#%%%%%%%(%#%##%%%%#%%%##%%####%%\u0026\u0026\u0026\u0026\u0026\u0026\u0026%% \r\n// %%\u0026\u0026.*****,,,....###.,,,,,,,..#%,,,,%%\u0026,***%%%%%%%%%%%%%%%%%%%%%%%%%%%%\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026%%\u0026\u0026%%\u0026........\u0026\u0026%%,,,,%\u0026\u0026.,,....\u0026\u0026%# \r\n// %%\u0026****,,,,,...%%,*,*,,,,,*%%,.,,%\u0026%,,,,\u0026%**,,,,,,..(##... ######**,*\u0026\u0026\u0026....,%,,,,,,,,,,.%%,,,.\u0026\u0026%,,,,,,,,,.\u0026\u0026%,,,,,#\u0026(,,..\u0026\u0026%% \r\n// %#\u0026****%\u0026\u0026,,,,,%%.,,*%\u0026%%%%%#.,,,%%,,,,%\u0026.,*,#%%.,,,(\u0026(,,..\u0026\u0026##%\u0026,..,%\u0026%,,,..%%%%**,**%%%\u0026\u0026,***#%#,,**%\u0026%**,,\u0026\u0026,,,,,,,%,*,,\u0026%% \r\n// #\u0026/****%\u0026\u0026,****\u0026%,,.,%%%%#(((, %% ...%%....%%#.....%%....%\u0026**(\u0026....#\u0026%(...,###\u0026#....##%\u0026\u0026.....\u0026(..,,%%\u0026****\u0026% ,,,,,,*****\u0026%% \r\n// (%\u0026.,*,*%%%....%% .......%%\u0026 #, ,%% .%%\u0026....,%%....\u0026\u0026**/\u0026 (\u0026%#....\u0026\u0026\u0026\u0026% ..\u0026\u0026%%%.....%% \u0026\u0026\u0026....,%% % .....\u0026\u0026% \r\n// %%\u0026 ,%%#....%% %%%%%%%%% # %%% %#\u0026 ...##\u0026 \u0026\u0026**/\u0026 .\u0026%* ...\u0026#\u0026%% \u0026\u0026%%%/ %% #%%/ ...%% \u0026% .\u0026%% \r\n// /\u0026% ### .## %%%%#(((( ,##% %%\u0026 #%% \u0026\u0026/*/\u0026 \u0026%* \u0026#\u0026%% %\u0026%%%\u0026 #% ##. %% %%% \u0026%% \r\n// %\u0026 %( %%\u0026\u0026 ###\u0026 %% \u0026 \u0026(\u0026## #\u0026\u0026### %%# ## %%%% %\u0026% \r\n// %%\u0026 *%% %%%% ###\u0026\u0026. .%%\u0026. \u0026%% #\u0026((\u0026## ,\u0026\u0026### %%%\u0026 ##. ,####( \u0026%# \r\n// (%\u0026%%%%%%%%%%%%%%##%%%%%%%%%###\u0026 %%##\u0026(\u0026\u0026########%\u0026\u0026#########\u0026\u0026(########\u0026(*/\u0026#####%\u0026%\u0026###%%%\u0026###%%%%%%%%#####%%%##(((###%#\u0026%% \r\n// %%%%\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026 (%%%%\u0026#,,*#%\u0026\u0026\u0026\u0026%%#/#%%%%%#####(%%#####%#(**/###%%%(/%\u0026\u0026\u0026\u0026\u0026\u0026%\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026\u0026%%% \r\n// %%%%%%%%/ %%\u0026 ####\u0026\u0026#**,,////*/////*****//*/*********/***,*,,******(#%#%(# ##* /#% %%%%% \r\n// %%%\u0026\u0026#\u0026\u0026\u0026**,,*,(/((((/***///****/**********,,,,,,,,,**/#%(%%%% \r\n// %%\u0026#%%%/***,,,*/////**************,*,,,*((//////(###%#%% \r\n// %#%%%%%(*****,,,,,/*******,,,.,,,(/(//**//(#%(###%, \r\n// %%%#%%%%(//***,**,,,,,/(*,,,,*/////(#%###%##% \r\n// *#%%%%%%#%%((/*, .,,,,*%((##%%###%%%%% \r\n// %%###%%%%,/,,.,,*(//%%%%%%%%# \r\n// #/*/(*/((/// \r\n// %//////((( \r\n// ,. \r\n// \r\n// \r\n//www.devolution-world.com\r\n//\r\n//https://twitter.com/Game_Devolution\r\n//\r\n//https://t.me/DevolutionOfficial\r\n//\r\n//https://www.instagram.com/devolutionofficial/\r\n\r\n\r\n\r\n// SPDX-License-Identifier: MIT \r\npragma solidity 0.8.9;\r\nimport \"./Libraries.sol\";\r\ncontract DeVolution is ERC20, Ownable {\r\n using SafeMath for uint256;\r\n\r\n IUniswapV2Router02 public uniswapV2Router;\r\n address public uniswapV2Pair;\r\n\r\n bool private swapping;\r\n\r\n address public marketingWallet;\r\n address public liquidityWallet;\r\n address public buybackWallet;\r\n address public burnWallet;\r\n address public ingameWallet;\r\n address public teamWallet;\r\n \r\n uint256 public maxTransactionAmount;\r\n uint256 public swapTokensAtAmount;\r\n\r\n bool public limitsInEffect = true;\r\n bool public tradingActive = false;\r\n bool public swapEnabled = false;\r\n\r\n // sell fees\r\n uint256 public sellIngameFee;\r\n uint256 public sellLiquidityFee;\r\n uint256 public sellOperationsFee;\r\n uint256 public sellBuybackFee;\r\n uint256 public sellTeamFee;\r\n uint256 public sellBurnFee;\r\n uint256 public sellTotalFees;\r\n \r\n // sell fees\r\n uint256 public buyIngameFee;\r\n uint256 public buyLiquidityFee;\r\n uint256 public buyOperationsFee;\r\n uint256 public buyBuybackFee;\r\n uint256 public buyTeamFee;\r\n uint256 public buyBurnFee;\r\n uint256 public buyTotalFees;\r\n \r\n uint256 public feeDivisor;\r\n \r\n uint256 private _liquidityTokensToSwap;\r\n uint256 private _marketingTokensToSwap;\r\n uint256 private _buyBackTokensToSwap;\r\n uint256 private _teamTokensToSwap;\r\n \r\n /******************/\r\n\r\n // exlcude from fees and max transaction amount\r\n mapping (address =\u003e bool) private _isExcludedFromFees;\r\n mapping (address =\u003e bool) public _isExcludedMaxTransactionAmount;\r\n\r\n // store addresses that a automatic market maker pairs. Any transfer *to* these addresses\r\n // could be subject to a maximum transfer amount\r\n mapping (address =\u003e bool) public automatedMarketMakerPairs;\r\n\r\n event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);\r\n\r\n event ExcludeFromFees(address indexed account, bool isExcluded);\r\n\r\n event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);\r\n\r\n event marketingWalletUpdated(address indexed newLiquidityWallet, address indexed oldLiquidityWallet);\r\n\r\n event SwapAndLiquify(\r\n uint256 tokensSwapped,\r\n uint256 ethReceived,\r\n uint256 tokensIntoLiqudity\r\n );\r\n\r\n constructor() ERC20(\"DeVolution\", \"DEVO\") payable {\r\n\r\n uint256 totalSupply = 1 * 1e9 * 1e18;\r\n \r\n maxTransactionAmount = totalSupply * 5 / 1000; // 0.5% maxTransactionAmountTxn\r\n swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap tokens amount\r\n\r\n // sell fees\r\n sellTeamFee = 5;\r\n sellLiquidityFee = 20;\r\n sellOperationsFee = 60;\r\n sellBuybackFee = 20;\r\n sellBurnFee = 10;\r\n sellIngameFee = 25;\r\n sellTotalFees = sellTeamFee sellLiquidityFee sellOperationsFee sellBuybackFee sellBurnFee sellIngameFee; // 18%\r\n \r\n // buy fees\r\n buyTeamFee = 5;\r\n buyLiquidityFee = 30;\r\n buyOperationsFee = 60;\r\n buyBuybackFee = 0;\r\n buyBurnFee = 10;\r\n buyIngameFee = 25;\r\n buyTotalFees = buyTeamFee buyLiquidityFee buyOperationsFee buyBuybackFee buyBurnFee buyIngameFee; // 18%\r\n \r\n feeDivisor = 1000;\r\n\r\n \tmarketingWallet = address(0xb9F23aD895aF02296892723aBf9eE3dBbF4C536c); // set as marketing wallet\r\n \tbuybackWallet = address(0xE7d51662039D4e60B87bc8b33845BfD206405E85); // set as buyback wallet\r\n liquidityWallet = address(owner()); // set as owner to start, can change to whatever later, but keep this as owner so the liquidity tokens go into the owner\u0027s wallet.\r\n ingameWallet = address(0xa9F16136E2faccb4aE4AB82424f5AA1E46E25563);\r\n teamWallet = address(0x139e08aF313d062869f52e83ec2E5BF21dC098Cb);\r\n \r\n IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(\r\n // ROPSTEN or HARDHAT\r\n 0x10ED43C718714eb63d5aA57B78B54704E256024E\r\n );\r\n\r\n address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())\r\n .createPair(address(this), _uniswapV2Router.WETH());\r\n\r\n uniswapV2Router = _uniswapV2Router;\r\n uniswapV2Pair = _uniswapV2Pair;\r\n \r\n _setAutomatedMarketMakerPair(_uniswapV2Pair, true);\r\n\r\n // exclude from paying fees or having max transaction amount\r\n excludeFromFees(owner(), true);\r\n excludeFromFees(address(this), true);\r\n excludeFromFees(address(0xdead), true);\r\n \r\n excludeFromMaxTransaction(owner(), true);\r\n excludeFromMaxTransaction(address(this), true);\r\n \r\n excludeFromMaxTransaction(address(0xdead), true);\r\n \r\n /*liquidityWallet\r\n _mint is an internal function in ERC20.sol that is only called here,\r\n and CANNOT be called ever again\r\n */\r\n _mint(address(owner()), totalSupply);\r\n }\r\n\r\n receive() external payable {\r\n\r\n \t}\r\n\r\n // once enabled, can never be turned off (can be called automatically by launching, but use this with a manual Uniswap add if needed)\r\n function enableTrading() public onlyOwner {\r\n tradingActive = true;\r\n swapEnabled = true;\r\n }\r\n \r\n // remove limits after token is stable\r\n function removeLimits() external onlyOwner returns (bool){\r\n limitsInEffect = false;\r\n return true;\r\n }\r\n \r\n // change the minimum amount of tokens to sell from fees\r\n function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){\r\n \t require(newAmount \u003e= totalSupply() * 1 / 100000, \"Swap amount cannot be lower than 0.001% total supply.\");\r\n \t require(newAmount \u003c= totalSupply() * 5 / 1000, \"Swap amount cannot be higher than 0.5% total supply.\");\r\n \t swapTokensAtAmount = newAmount;\r\n \t return true;\r\n \t}\r\n \r\n function updateMaxAmount(uint256 newNum) external onlyOwner {\r\n require(newNum \u003e= (totalSupply() * 5 / 1000)/1e18, \"Cannot set maxTransactionAmount lower than 0.5%\");\r\n maxTransactionAmount = newNum * (10**18);\r\n }\r\n \r\n \r\n function updateBuyFees(uint256 _operationsFee, uint256 _teamFee, uint256 _liquidityFee, uint256 _buybackFee, uint256 _burnFee, uint256 _ingameFee) external onlyOwner {\r\n buyOperationsFee = _operationsFee;\r\n buyTeamFee = _teamFee;\r\n buyLiquidityFee = _liquidityFee;\r\n buyBuybackFee = _buybackFee;\r\n buyBurnFee = _burnFee;\r\n buyIngameFee = _ingameFee;\r\n buyTotalFees = buyTeamFee buyLiquidityFee buyOperationsFee buyBuybackFee buyBurnFee buyIngameFee;\r\n require(buyTotalFees \u003c= 200, \"Must keep fees at 20% or less\");\r\n }\r\n \r\n function updateSellFees(uint256 _operationsFee, uint256 _teamFee, uint256 _liquidityFee, uint256 _buybackFee, uint256 _burnFee, uint256 _ingameFee) external onlyOwner {\r\n sellOperationsFee = _operationsFee;\r\n sellTeamFee = _teamFee;\r\n sellLiquidityFee = _liquidityFee;\r\n sellBuybackFee = _buybackFee;\r\n sellBurnFee = _burnFee;\r\n sellIngameFee = _ingameFee;\r\n sellTotalFees = sellTeamFee sellLiquidityFee sellOperationsFee sellBuybackFee sellBurnFee sellIngameFee; \r\n require(sellTotalFees \u003c= 200, \"Must keep fees at 20% or less\");\r\n }\r\n \r\n function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {\r\n _isExcludedMaxTransactionAmount[updAds] = isEx;\r\n }\r\n \r\n // only use to disable contract sales if absolutely necessary (emergency use only)\r\n function updateSwapEnabled(bool enabled) external onlyOwner(){\r\n swapEnabled = enabled;\r\n }\r\n\r\n function excludeFromFees(address account, bool excluded) public onlyOwner {\r\n _isExcludedFromFees[account] = excluded;\r\n\r\n emit ExcludeFromFees(account, excluded);\r\n }\r\n\r\n function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {\r\n require(pair != uniswapV2Pair, \"The Uniswap pair cannot be removed from automatedMarketMakerPairs\");\r\n\r\n _setAutomatedMarketMakerPair(pair, value);\r\n }\r\n\r\n function _setAutomatedMarketMakerPair(address pair, bool value) private {\r\n automatedMarketMakerPairs[pair] = value;\r\n excludeFromMaxTransaction(pair, value);\r\n emit SetAutomatedMarketMakerPair(pair, value);\r\n }\r\n\r\n function updateMarketingWallet(address newMarketingWallet) external onlyOwner {\r\n excludeFromFees(newMarketingWallet, true);\r\n emit marketingWalletUpdated(newMarketingWallet, marketingWallet);\r\n marketingWallet = newMarketingWallet;\r\n }\r\n \r\n function updateLiquidityWallet(address newLiquidityWallet) external onlyOwner {\r\n excludeFromFees(newLiquidityWallet, true);\r\n liquidityWallet = newLiquidityWallet;\r\n }\r\n\r\n function isExcludedFromFees(address account) public view returns(bool) {\r\n return _isExcludedFromFees[account];\r\n }\r\n\r\n function _transfer(\r\n address from,\r\n address to,\r\n uint256 amount\r\n ) internal override {\r\n require(from != address(0), \"ERC20: transfer from the zero address\");\r\n require(to != address(0), \"ERC20: transfer to the zero address\");\r\n \r\n if(amount == 0) {\r\n super._transfer(from, to, 0);\r\n return;\r\n }\r\n \r\n if(!tradingActive){\r\n require(_isExcludedFromFees[from] || _isExcludedFromFees[to], \"Trading is not active.\");\r\n }\r\n \r\n if(limitsInEffect){\r\n if (\r\n from != owner() \u0026\u0026\r\n to != owner() \u0026\u0026\r\n to != address(0) \u0026\u0026\r\n to != address(0xdead) \u0026\u0026\r\n !swapping\r\n ){\r\n \r\n //when buy\r\n if (automatedMarketMakerPairs[from] \u0026\u0026 !_isExcludedMaxTransactionAmount[to]) {\r\n require(amount \u003c= maxTransactionAmount, \"Buy transfer amount exceeds the maxTransactionAmount.\");\r\n } \r\n //when sell\r\n else if (automatedMarketMakerPairs[to] \u0026\u0026 !_isExcludedMaxTransactionAmount[from]) {\r\n require(amount \u003c= maxTransactionAmount, \"Sell transfer amount exceeds the maxTransactionAmount.\");\r\n }\r\n }\r\n }\r\n \r\n\t\tuint256 contractTokenBalance = balanceOf(address(this));\r\n \r\n bool canSwap = contractTokenBalance \u003e= swapTokensAtAmount;\r\n\r\n if( \r\n canSwap \u0026\u0026\r\n swapEnabled \u0026\u0026\r\n !swapping \u0026\u0026\r\n !automatedMarketMakerPairs[from] \u0026\u0026\r\n !_isExcludedFromFees[from] \u0026\u0026\r\n !_isExcludedFromFees[to]\r\n ) {\r\n swapping = true;\r\n swapBack();\r\n swapping = false;\r\n }\r\n\r\n bool takeFee = !swapping;\r\n\r\n // if any account belongs to _isExcludedFromFee account then remove the fee\r\n if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {\r\n takeFee = false;\r\n }\r\n\r\n // only take fees on buys/sells, do not take on wallet transfers\r\n if(takeFee){\r\n uint256 fees;\r\n uint256 burnAmt;\r\n uint256 ingameAmt;\r\n uint256 totalFees;\r\n //buy\r\n \tif(automatedMarketMakerPairs[from]) {\r\n \t if(buyBurnFee \u003e 0){\r\n \t burnAmt = amount * buyBurnFee / feeDivisor;\r\n \t super._transfer(from, address(0xdead), burnAmt);\r\n \t }\r\n \t if(buyIngameFee \u003e 0){\r\n \t ingameAmt = amount * buyIngameFee / feeDivisor;\r\n \t super._transfer(from, address(ingameWallet), ingameAmt);\r\n \t }\r\n \t totalFees = buyTotalFees - buyBurnFee - buyIngameFee;\r\n fees = amount.mul(totalFees).div(feeDivisor);\r\n _liquidityTokensToSwap = fees * buyLiquidityFee / totalFees;\r\n _marketingTokensToSwap = fees * buyOperationsFee / totalFees;\r\n _buyBackTokensToSwap = fees * buyBuybackFee / totalFees;\r\n _teamTokensToSwap = fees * buyTeamFee / totalFees;\r\n }\r\n\r\n //sell\r\n if(automatedMarketMakerPairs[to]) {\r\n if(sellBurnFee \u003e 0){\r\n \t burnAmt = amount * sellBurnFee / feeDivisor;\r\n \t super._transfer(from, address(0xdead), burnAmt);\r\n \t }\r\n \t if(sellIngameFee \u003e 0){\r\n \t ingameAmt = amount * sellIngameFee / feeDivisor;\r\n \t super._transfer(from, address(ingameWallet), ingameAmt);\r\n \t }\r\n \t totalFees = sellTotalFees - sellBurnFee - sellIngameFee;\r\n fees = amount.mul(totalFees).div(feeDivisor);\r\n _liquidityTokensToSwap = fees * sellLiquidityFee / totalFees;\r\n _marketingTokensToSwap = fees * sellOperationsFee / totalFees;\r\n _buyBackTokensToSwap = fees * sellBuybackFee / totalFees;\r\n _teamTokensToSwap = fees * sellTeamFee / totalFees;\r\n }\r\n \r\n if(fees \u003e 0){\r\n \tamount = amount.sub(fees burnAmt ingameAmt);\r\n \r\n super._transfer(from, address(this), fees);\r\n }\r\n\r\n }\r\n\r\n super._transfer(from, to, amount);\r\n }\r\n\r\n function swapTokensForEth(uint256 tokenAmount) private {\r\n\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),\r\n block.timestamp\r\n );\r\n \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 address(liquidityWallet),\r\n block.timestamp\r\n );\r\n }\r\n \r\n function setRouterVersion(address _router) public onlyOwner {\r\n IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_router);\r\n\r\n uniswapV2Router = _uniswapV2Router;\r\n // Set the router of the contract variables\r\n uniswapV2Router = _uniswapV2Router;\r\n excludeFromMaxTransaction(address(_uniswapV2Router), true);\r\n }\r\n \r\n function swapBack() private {\r\n uint256 contractBalance = balanceOf(address(this));\r\n uint256 totalTokensToSwap = _liquidityTokensToSwap _buyBackTokensToSwap _marketingTokensToSwap _teamTokensToSwap;\r\n \r\n // Halve the amount of liquidity tokens\r\n uint256 tokensForLiquidity = _liquidityTokensToSwap / 2;\r\n uint256 amountToSwapForBNB = contractBalance - tokensForLiquidity;\r\n \r\n uint256 initialBNBBalance = address(this).balance;\r\n\r\n swapTokensForEth(amountToSwapForBNB); \r\n \r\n uint256 bnbBalance = address(this).balance.sub(initialBNBBalance);\r\n \r\n uint256 bnbForMarketing = bnbBalance.mul(_marketingTokensToSwap).div(totalTokensToSwap);\r\n uint256 bnbForBuyBack = bnbBalance.mul(_buyBackTokensToSwap).div(totalTokensToSwap);\r\n uint256 bnbForTeam = bnbBalance.mul(_teamTokensToSwap).div(totalTokensToSwap);\r\n \r\n uint256 bnbForLiquidity = bnbBalance - bnbForMarketing - bnbForBuyBack - bnbForTeam;\r\n \r\n _liquidityTokensToSwap = 0;\r\n _marketingTokensToSwap = 0;\r\n _buyBackTokensToSwap = 0;\r\n _teamTokensToSwap = 0;\r\n \r\n (bool success,) = address(marketingWallet).call{value: bnbForMarketing}(\"\");\r\n (success,) = address(teamWallet).call{value: bnbForTeam}(\"\");\r\n (success,) = address(buybackWallet).call{value: bnbForBuyBack}(\"\");\r\n \r\n addLiquidity(tokensForLiquidity, bnbForLiquidity);\r\n emit SwapAndLiquify(amountToSwapForBNB, bnbForLiquidity, tokensForLiquidity);\r\n }\r\n \r\n // useful for buybacks or to reclaim any BNB on the contract in a way that helps holders.\r\n function buyBackTokens(uint256 bnbAmountInWei) external onlyOwner {\r\n // generate the uniswap pair path of weth -\u003e eth\r\n address[] memory path = new address[](2);\r\n path[0] = uniswapV2Router.WETH();\r\n path[1] = address(this);\r\n\r\n // make the swap\r\n uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmountInWei}(\r\n 0, // accept any amount of Ethereum\r\n path,\r\n address(0xdead),\r\n block.timestamp\r\n );\r\n }\r\n\r\n // withdraw ETH if stuck before launch\r\n function withdrawStuckETH() external onlyOwner {\r\n require(!tradingActive, \"Can only withdraw if trading hasn\u0027t started\");\r\n bool success;\r\n (success,) = address(msg.sender).call{value: address(this).balance}(\"\");\r\n }\r\n}"},"Libraries.sol":{"content":"/*\r\n\r\n DeVolution - DeVo\r\n \r\n*/\r\n \r\n// SPDX-License-Identifier: MIT \r\n \r\npragma solidity 0.8.9;\r\n\r\nabstract contract Context {\r\n function _msgSender() internal view virtual returns (address) {\r\n return msg.sender;\r\n }\r\n\r\n function _msgData() internal view virtual returns (bytes calldata) {\r\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\r\n return msg.data;\r\n }\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 Mint(address indexed sender, uint amount0, uint amount1);\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 mint(address to) external returns (uint liquidity);\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 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 IERC20 {\r\n /**\r\n * @dev Returns the amount of tokens in existence.\r\n */\r\n function totalSupply() external view returns (uint256);\r\n\r\n /**\r\n * @dev Returns the amount of tokens owned by `account`.\r\n */\r\n function balanceOf(address account) external view returns (uint256);\r\n\r\n /**\r\n * @dev Moves `amount` tokens from the caller\u0027s account to `recipient`.\r\n *\r\n * Returns a boolean value indicating whether the operation succeeded.\r\n *\r\n * Emits a {Transfer} event.\r\n */\r\n function transfer(address recipient, uint256 amount) external returns (bool);\r\n\r\n /**\r\n * @dev Returns the remaining number of tokens that `spender` will be\r\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\r\n * zero by default.\r\n *\r\n * This value changes when {approve} or {transferFrom} are called.\r\n */\r\n function allowance(address owner, address spender) external view returns (uint256);\r\n\r\n /**\r\n * @dev Sets `amount` as the allowance of `spender` over the caller\u0027s tokens.\r\n *\r\n * Returns a boolean value indicating whether the operation succeeded.\r\n *\r\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\r\n * that someone may use both the old and the new allowance by unfortunate\r\n * transaction ordering. One possible solution to mitigate this race\r\n * condition is to first reduce the spender\u0027s allowance to 0 and set the\r\n * desired value afterwards:\r\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\r\n *\r\n * Emits an {Approval} event.\r\n */\r\n function approve(address spender, uint256 amount) external returns (bool);\r\n\r\n /**\r\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\r\n * allowance mechanism. `amount` is then deducted from the caller\u0027s\r\n * allowance.\r\n *\r\n * Returns a boolean value indicating whether the operation succeeded.\r\n *\r\n * Emits a {Transfer} event.\r\n */\r\n function transferFrom(\r\n address sender,\r\n address recipient,\r\n uint256 amount\r\n ) external returns (bool);\r\n\r\n /**\r\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\r\n * another (`to`).\r\n *\r\n * Note that `value` may be zero.\r\n */\r\n event Transfer(address indexed from, address indexed to, uint256 value);\r\n\r\n /**\r\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\r\n * a call to {approve}. `value` is the new allowance.\r\n */\r\n event Approval(address indexed owner, address indexed spender, uint256 value);\r\n}\r\n\r\ninterface IERC20Metadata is IERC20 {\r\n /**\r\n * @dev Returns the name of the token.\r\n */\r\n function name() external view returns (string memory);\r\n\r\n /**\r\n * @dev Returns the symbol of the token.\r\n */\r\n function symbol() external view returns (string memory);\r\n\r\n /**\r\n * @dev Returns the decimals places of the token.\r\n */\r\n function decimals() external view returns (uint8);\r\n}\r\n\r\n\r\ncontract ERC20 is Context, IERC20, IERC20Metadata {\r\n using SafeMath for uint256;\r\n\r\n mapping(address =\u003e uint256) private _balances;\r\n\r\n mapping(address =\u003e mapping(address =\u003e uint256)) private _allowances;\r\n\r\n uint256 private _totalSupply;\r\n\r\n string private _name;\r\n string private _symbol;\r\n\r\n /**\r\n * @dev Sets the values for {name} and {symbol}.\r\n *\r\n * The default value of {decimals} is 18. To select a different value for\r\n * {decimals} you should overload it.\r\n *\r\n * All two of these values are immutable: they can only be set once during\r\n * construction.\r\n */\r\n constructor(string memory name_, string memory symbol_) {\r\n _name = name_;\r\n _symbol = symbol_;\r\n }\r\n\r\n /**\r\n * @dev Returns the name of the token.\r\n */\r\n function name() public view virtual override returns (string memory) {\r\n return _name;\r\n }\r\n\r\n /**\r\n * @dev Returns the symbol of the token, usually a shorter version of the\r\n * name.\r\n */\r\n function symbol() public view virtual override returns (string memory) {\r\n return _symbol;\r\n }\r\n\r\n /**\r\n * @dev Returns the number of decimals used to get its user representation.\r\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\r\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\r\n *\r\n * Tokens usually opt for a value of 18, imitating the relationship between\r\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\r\n * overridden;\r\n *\r\n * NOTE: This information is only used for _display_ purposes: it in\r\n * no way affects any of the arithmetic of the contract, including\r\n * {IERC20-balanceOf} and {IERC20-transfer}.\r\n */\r\n function decimals() public view virtual override returns (uint8) {\r\n return 18;\r\n }\r\n\r\n /**\r\n * @dev See {IERC20-totalSupply}.\r\n */\r\n function totalSupply() public view virtual override returns (uint256) {\r\n return _totalSupply;\r\n }\r\n\r\n /**\r\n * @dev See {IERC20-balanceOf}.\r\n */\r\n function balanceOf(address account) public view virtual override returns (uint256) {\r\n return _balances[account];\r\n }\r\n\r\n /**\r\n * @dev See {IERC20-transfer}.\r\n *\r\n * Requirements:\r\n *\r\n * - `recipient` cannot be the zero address.\r\n * - the caller must have a balance of at least `amount`.\r\n */\r\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\r\n _transfer(_msgSender(), recipient, amount);\r\n return true;\r\n }\r\n\r\n /**\r\n * @dev See {IERC20-allowance}.\r\n */\r\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\r\n return _allowances[owner][spender];\r\n }\r\n\r\n /**\r\n * @dev See {IERC20-approve}.\r\n *\r\n * Requirements:\r\n *\r\n * - `spender` cannot be the zero address.\r\n */\r\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\r\n _approve(_msgSender(), spender, amount);\r\n return true;\r\n }\r\n\r\n /**\r\n * @dev See {IERC20-transferFrom}.\r\n *\r\n * Emits an {Approval} event indicating the updated allowance. This is not\r\n * required by the EIP. See the note at the beginning of {ERC20}.\r\n *\r\n * Requirements:\r\n *\r\n * - `sender` and `recipient` cannot be the zero address.\r\n * - `sender` must have a balance of at least `amount`.\r\n * - the caller must have allowance for ``sender``\u0027s tokens of at least\r\n * `amount`.\r\n */\r\n function transferFrom(\r\n address sender,\r\n address recipient,\r\n uint256 amount\r\n ) public virtual 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 /**\r\n * @dev Atomically increases the allowance granted to `spender` by the caller.\r\n *\r\n * This is an alternative to {approve} that can be used as a mitigation for\r\n * problems described in {IERC20-approve}.\r\n *\r\n * Emits an {Approval} event indicating the updated allowance.\r\n *\r\n * Requirements:\r\n *\r\n * - `spender` cannot be the zero address.\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 /**\r\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\r\n *\r\n * This is an alternative to {approve} that can be used as a mitigation for\r\n * problems described in {IERC20-approve}.\r\n *\r\n * Emits an {Approval} event indicating the updated allowance.\r\n *\r\n * Requirements:\r\n *\r\n * - `spender` cannot be the zero address.\r\n * - `spender` must have allowance for the caller of at least\r\n * `subtractedValue`.\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 /**\r\n * @dev Moves tokens `amount` from `sender` to `recipient`.\r\n *\r\n * This is internal function is equivalent to {transfer}, and can be used to\r\n * e.g. implement automatic token fees, slashing mechanisms, etc.\r\n *\r\n * Emits a {Transfer} event.\r\n *\r\n * Requirements:\r\n *\r\n * - `sender` cannot be the zero address.\r\n * - `recipient` cannot be the zero address.\r\n * - `sender` must have a balance of at least `amount`.\r\n */\r\n function _transfer(\r\n address sender,\r\n address recipient,\r\n uint256 amount\r\n ) internal virtual {\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\r\n _beforeTokenTransfer(sender, recipient, amount);\r\n\r\n _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\r\n _balances[recipient] = _balances[recipient].add(amount);\r\n emit Transfer(sender, recipient, amount);\r\n }\r\n\r\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\r\n * the total supply.\r\n *\r\n * Emits a {Transfer} event with `from` set to the zero address.\r\n *\r\n * Requirements:\r\n *\r\n * - `account` cannot be the zero address.\r\n */\r\n function _mint(address account, uint256 amount) internal virtual {\r\n require(account != address(0), \"ERC20: mint to the zero address\");\r\n\r\n _beforeTokenTransfer(address(0), account, amount);\r\n\r\n _totalSupply = _totalSupply.add(amount);\r\n _balances[account] = _balances[account].add(amount);\r\n emit Transfer(address(0), account, amount);\r\n }\r\n\r\n /**\r\n * @dev Destroys `amount` tokens from `account`, reducing the\r\n * total supply.\r\n *\r\n * Emits a {Transfer} event with `to` set to the zero address.\r\n *\r\n * Requirements:\r\n *\r\n * - `account` cannot be the zero address.\r\n * - `account` must have at least `amount` tokens.\r\n */\r\n function _burn(address account, uint256 amount) internal virtual {\r\n require(account != address(0), \"ERC20: burn from the zero address\");\r\n\r\n _beforeTokenTransfer(account, address(0), amount);\r\n\r\n _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\r\n _totalSupply = _totalSupply.sub(amount);\r\n emit Transfer(account, address(0), amount);\r\n }\r\n\r\n /**\r\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\r\n *\r\n * This internal function is equivalent to `approve`, and can be used to\r\n * e.g. set automatic allowances for certain subsystems, etc.\r\n *\r\n * Emits an {Approval} event.\r\n *\r\n * Requirements:\r\n *\r\n * - `owner` cannot be the zero address.\r\n * - `spender` cannot be the zero address.\r\n */\r\n function _approve(\r\n address owner,\r\n address spender,\r\n uint256 amount\r\n ) internal virtual {\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 /**\r\n * @dev Hook that is called before any transfer of tokens. This includes\r\n * minting and burning.\r\n *\r\n * Calling conditions:\r\n *\r\n * - when `from` and `to` are both non-zero, `amount` of ``from``\u0027s tokens\r\n * will be to transferred to `to`.\r\n * - when `from` is zero, `amount` tokens will be minted for `to`.\r\n * - when `to` is zero, `amount` of ``from``\u0027s tokens will be burned.\r\n * - `from` and `to` are never both zero.\r\n *\r\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\r\n */\r\n function _beforeTokenTransfer(\r\n address from,\r\n address to,\r\n uint256 amount\r\n ) internal virtual {}\r\n}\r\n\r\nlibrary SafeMath {\r\n /**\r\n * @dev Returns the addition of two unsigned integers, reverting on\r\n * overflow.\r\n *\r\n * Counterpart to Solidity\u0027s ` ` operator.\r\n *\r\n * Requirements:\r\n *\r\n * - Addition cannot overflow.\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 /**\r\n * @dev Returns the subtraction of two unsigned integers, reverting on\r\n * overflow (when the result is negative).\r\n *\r\n * Counterpart to Solidity\u0027s `-` operator.\r\n *\r\n * Requirements:\r\n *\r\n * - Subtraction cannot overflow.\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 /**\r\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\r\n * overflow (when the result is negative).\r\n *\r\n * Counterpart to Solidity\u0027s `-` operator.\r\n *\r\n * Requirements:\r\n *\r\n * - Subtraction cannot overflow.\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 /**\r\n * @dev Returns the multiplication of two unsigned integers, reverting on\r\n * overflow.\r\n *\r\n * Counterpart to Solidity\u0027s `*` operator.\r\n *\r\n * Requirements:\r\n *\r\n * - Multiplication cannot overflow.\r\n */\r\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r\n // Gas optimization: this is cheaper than requiring \u0027a\u0027 not being zero, but the\r\n // benefit is lost if \u0027b\u0027 is also tested.\r\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\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 /**\r\n * @dev Returns the integer division of two unsigned integers. Reverts on\r\n * division by zero. The result is rounded towards zero.\r\n *\r\n * Counterpart to Solidity\u0027s `/` operator. Note: this function uses a\r\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n * uses an invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n *\r\n * - The divisor cannot be zero.\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 /**\r\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message on\r\n * division by zero. The result is rounded towards zero.\r\n *\r\n * Counterpart to Solidity\u0027s `/` operator. Note: this function uses a\r\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\r\n * uses an invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n *\r\n * - The divisor cannot be zero.\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 // assert(a == b * c a % b); // There is no case in which this doesn\u0027t hold\r\n\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n * Reverts when dividing by zero.\r\n *\r\n * Counterpart to Solidity\u0027s `%` operator. This function uses a `revert`\r\n * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n * invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n *\r\n * - The divisor cannot be zero.\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 /**\r\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n * Reverts with custom message when dividing by zero.\r\n *\r\n * Counterpart to Solidity\u0027s `%` operator. This function uses a `revert`\r\n * opcode (which leaves remaining gas untouched) while Solidity uses an\r\n * invalid opcode to revert (consuming all remaining gas).\r\n *\r\n * Requirements:\r\n *\r\n * - The divisor cannot be zero.\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\ncontract Ownable is Context {\r\n address private _owner;\r\n\r\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\r\n \r\n /**\r\n * @dev Initializes the contract setting the deployer as the initial owner.\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 /**\r\n * @dev Returns the address of the current owner.\r\n */\r\n function owner() public view returns (address) {\r\n return _owner;\r\n }\r\n\r\n /**\r\n * @dev Throws if called by any account other than the owner.\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 /**\r\n * @dev Leaves the contract without owner. It will not be possible to call\r\n * `onlyOwner` functions anymore. Can only be called by the current owner.\r\n *\r\n * NOTE: Renouncing ownership will leave the contract without an owner,\r\n * thereby removing any functionality that is only available to the owner.\r\n */\r\n function renounceOwnership() public virtual onlyOwner {\r\n emit OwnershipTransferred(_owner, address(0));\r\n _owner = address(0);\r\n }\r\n\r\n /**\r\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\r\n * Can only be called by the current owner.\r\n */\r\n function transferOwnership(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\r\n\r\n\r\nlibrary SafeMathInt {\r\n int256 private constant MIN_INT256 = int256(1) \u003c\u003c 255;\r\n int256 private constant MAX_INT256 = ~(int256(1) \u003c\u003c 255);\r\n\r\n /**\r\n * @dev Multiplies two int256 variables and fails on overflow.\r\n */\r\n function mul(int256 a, int256 b) internal pure returns (int256) {\r\n int256 c = a * b;\r\n\r\n // Detect overflow when multiplying MIN_INT256 with -1\r\n require(c != MIN_INT256 || (a \u0026 MIN_INT256) != (b \u0026 MIN_INT256));\r\n require((b == 0) || (c / b == a));\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Division of two int256 variables and fails on overflow.\r\n */\r\n function div(int256 a, int256 b) internal pure returns (int256) {\r\n // Prevent overflow when dividing MIN_INT256 by -1\r\n require(b != -1 || a != MIN_INT256);\r\n\r\n // Solidity already throws when dividing by 0.\r\n return a / b;\r\n }\r\n\r\n /**\r\n * @dev Subtracts two int256 variables and fails on overflow.\r\n */\r\n function sub(int256 a, int256 b) internal pure returns (int256) {\r\n int256 c = a - b;\r\n require((b \u003e= 0 \u0026\u0026 c \u003c= a) || (b \u003c 0 \u0026\u0026 c \u003e a));\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Adds two int256 variables and fails on overflow.\r\n */\r\n function add(int256 a, int256 b) internal pure returns (int256) {\r\n int256 c = a b;\r\n require((b \u003e= 0 \u0026\u0026 c \u003e= a) || (b \u003c 0 \u0026\u0026 c \u003c a));\r\n return c;\r\n }\r\n\r\n /**\r\n * @dev Converts to absolute value, and fails on overflow.\r\n */\r\n function abs(int256 a) internal pure returns (int256) {\r\n require(a != MIN_INT256);\r\n return a \u003c 0 ? -a : a;\r\n }\r\n\r\n\r\n function toUint256Safe(int256 a) internal pure returns (uint256) {\r\n require(a \u003e= 0);\r\n return uint256(a);\r\n }\r\n}\r\n\r\nlibrary SafeMathUint {\r\n function toInt256Safe(uint256 a) internal pure returns (int256) {\r\n int256 b = int256(a);\r\n require(b \u003e= 0);\r\n return b;\r\n }\r\n}\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}\r\n"}}