File size: 56,944 Bytes
f998fcd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
  "language": "Solidity",
  "sources": {
    "AVENGER.sol": {
      "content": "/*                                                                                            POWERED BY\r\n__________    _______________   __________________________     _________   ________     ______________              _____ \r\n  ___    |_ |  / /__  ____/__  | / /_  ____/__  ____/__  __ \\    ______/_/   ___  __ \\_______  ____/__(_)_____ _________  /_\r\n  __  /| |_ | / /__  __/  __   |/ /_  / __ __  __/  __  /_/ /    ____/_/     __  / / /  _ \\_  /_   __  /_  __ `/_  __ \\  __/\r\n  _  ___ |_ |/ / _  /___  _  /|  / / /_/ / _  /___  _  _, _/     __/_/       _  /_/ //  __/  __/   _  / / /_/ /_  / / / /_  \r\n  /_/  |_|____/  /_____/  /_/ |_/  \\____/  /_____/  /_/ |_|      /_/         /_____/ \\___//_/      /_/  \\__,_/ /_/ /_/\\__/ \r\n              https://t.me/AvengerERC                                                          t.me/DeFianthub                                    \r\n                AvengerToken.io                                                            DeFiantPlatform.com          */                                                                        \r\n  \r\n pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: Apache-2.0\r\n\r\nimport \"./SafeMath.sol\";\r\nimport \"./Address.sol\";\r\nimport \"./RewardsToken.sol\";\r\nimport \"./IUniswapV2Factory.sol\";\r\nimport \"./IUniswapV2Router.sol\";\r\nimport \"./IUniswapV2Pair.sol\";\r\nimport \"./IRewardsTracker.sol\";\r\n\r\n\r\ncontract AVENGER is RewardsToken {\r\n    using SafeMath for uint256;\r\n    using Address for address;\r\n    \r\n    \r\n    uint256 private constant REWARDS_TRACKER_IDENTIFIER = 12; \r\n    uint256 private constant TOTAL_SUPPLY = 99892000 * (10**9);\r\n\r\n    uint256 public maxTxAmount = TOTAL_SUPPLY.mul(2).div(1000); \r\n\r\n    uint256 private platformFee = 0; \r\n    uint256 private _previousPlatformFee = platformFee;\r\n\r\n    uint256 public devFee = 600; \r\n    uint256 public sellDevFee = 600; \r\n    uint256 private _previousDevFee = devFee;\r\n    \r\n    uint256 public rewardsFee = 100; \r\n    uint256 public sellRewardsFee = 100; \r\n    uint256 private _previousRewardsFee = rewardsFee;\r\n\r\n    uint256 public launchSellFee = 1200; \r\n    uint256 private _previousLaunchSellFee = launchSellFee;\r\n\r\n    uint256 public burnFee = 200;   \r\n    uint256 public sellburnFee = 200; \r\n    uint256 private _previousBurnFee = burnFee; \r\n    \r\n    mapping(address => bool) public uniswapv2contracts;\r\n\r\n    address payable private _platformWalletAddress =\r\n        payable(0xA93D389aD8374d2Cfa2CF94a8370bd2D18B14c99);\r\n    address payable private _devWalletAddress =\r\n        payable(0xaB1C9369805ffA00Ca7dfBeE5FA36567707248d2); \r\n\r\n    uint256 public blacklistDeadline = 0;\r\n    uint256 public launchSellFeeDeadline = 0;\r\n\r\n    IRewardsTracker private _rewardsTracker;\r\n\r\n   \r\n    bool public useGenericTransfer = true;\r\n\r\n   \r\n    bool private preparedForLaunch = false;\r\n\r\n    \r\n    mapping(address => bool) public isBlacklisted;\r\n    \r\n    \r\n    mapping(address => bool) private _isExcludedFromFee;\r\n    mapping(address => bool) private _isExcludedFromMaxTx;\r\n\r\n    mapping(address => bool) private burnAddresses;\r\n    \r\n    \r\n    IUniswapV2Router public uniswapV2Router;\r\n    address public uniswapV2Pair;\r\n\r\n    bool currentlySwapping; \r\n    bool public swapAndRedirectEthFeesEnabled = true;\r\n\r\n    uint256 private minTokensBeforeSwap = 10000 * 10**9;\r\n\r\n    \r\n     \r\n    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);\r\n    event SwapAndRedirectEthFeesUpdated(bool enabled);\r\n    event OnSwapAndRedirectEthFees(\r\n        uint256 tokensSwapped,\r\n        uint256 ethToDevWallet\r\n    );\r\n    event MaxTxAmountUpdated(uint256 maxTxAmount);\r\n    event GenericTransferChanged(bool useGenericTransfer);\r\n    event ExcludeFromFees(address wallet);\r\n    event IncludeInFees(address wallet);\r\n    event DevWalletUpdated(address newDevWallet);\r\n    event RewardsTrackerUpdated(address newRewardsTracker);\r\n    event RouterUpdated(address newRouterAddress);\r\n    event FeesChanged(\r\n        uint256 newDevFee,\r\n        uint256 newSellDevFee,\r\n        uint256 newRewardsFee,\r\n        uint256 newSellRewardsFee,\r\n        uint256 newburnFee, \r\n        uint256 newSellburnFee\r\n    );\r\n    event LaunchFeeUpdated(uint256 newLaunchSellFee);\r\n\r\n    modifier lockTheSwap() {\r\n        currentlySwapping = true;\r\n        _;\r\n        currentlySwapping = false;\r\n    }\r\n\r\n    constructor() ERC20(\"AVENGER\", \"AVENGER\") {\r\n        IUniswapV2Router _uniswapV2Router = IUniswapV2Router(\r\n            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D \r\n        );\r\n\r\n        \r\n        \r\n        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());\r\n\r\n        \r\n        uniswapV2Router = _uniswapV2Router;\r\n        \r\n       \r\n        _mint(owner(), TOTAL_SUPPLY);\r\n\r\n        \r\n        _isExcludedFromFee[owner()] = true;\r\n        _isExcludedFromFee[address(this)] = true;\r\n        \r\n        \r\n        _isExcludedFromMaxTx[owner()] = true;\r\n        _isExcludedFromMaxTx[address(this)] = true;\r\n        \r\n        \r\n        excludeFromRewards(address(this));\r\n        excludeFromRewards(owner());\r\n        excludeFromRewards(address(0xdead));\r\n        excludeFromRewards(uniswapV2Pair);\r\n\r\n        \r\n        uniswapv2contracts[uniswapV2Pair] = true;\r\n    }\r\n\r\n    \r\n    \r\n    function decimals() public view virtual override returns (uint8) {\r\n        return 9;\r\n    }\r\n\r\n    function _transfer(\r\n        address from,\r\n        address to,\r\n        uint256 amount\r\n    ) internal virtual override {\r\n        \r\n        require(preparedForLaunch || _msgSender() == owner(), \"Contract has not been prepared for launch and user is not owner\");\r\n        \r\n        require(\r\n            !isBlacklisted[from] && !isBlacklisted[to],\r\n            \"Blacklisted address\"\r\n        );\r\n\r\n        if(useGenericTransfer){\r\n            super._transfer(from, to, amount);\r\n            return;\r\n        }\r\n\r\n        if (!uniswapv2contracts[from] && !uniswapv2contracts[to] && !burnAddresses[to]) {\r\n            super._transfer(from, to, amount);\r\n            return;\r\n        }\r\n\r\n        if (\r\n            !_isExcludedFromMaxTx[from] &&\r\n            !_isExcludedFromMaxTx[to]\r\n        ) {\r\n            require(\r\n                amount <= maxTxAmount,\r\n                \"Transfer amount exceeds the maxTxAmount\"\r\n            );\r\n        }\r\n\r\n        \r\n        uint256 baseRewardsFee = rewardsFee;\r\n        uint256 baseDevFee = devFee;\r\n        uint256 baseBurnFee = burnFee; \r\n        if (to == uniswapV2Pair) {\r\n            devFee = sellDevFee;\r\n            rewardsFee = sellRewardsFee;\r\n            burnFee = sellburnFee;\r\n\r\n            if (launchSellFeeDeadline >= block.timestamp) {\r\n                devFee = devFee.add(launchSellFee);\r\n            }\r\n        }\r\n\r\n\r\n\r\n        \r\n        uint256 contractTokenBalance = balanceOf(address(this));\r\n        bool overMinTokenBalance = contractTokenBalance >= minTokensBeforeSwap; \r\n        if (\r\n            overMinTokenBalance &&\r\n            !currentlySwapping &&\r\n            from != uniswapV2Pair &&\r\n            swapAndRedirectEthFeesEnabled\r\n        ) {\r\n            \r\n            swapAndRedirectEthFees(contractTokenBalance);\r\n        }\r\n\r\n        if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) {\r\n            removeAllFee();\r\n        }\r\n\r\n\r\n        \r\n        (uint256 tTransferAmount, uint256 tFee) = _getValues(amount);\r\n        _balances[from] = _balances[from].sub(amount);\r\n        _balances[to] = _balances[to].add(tTransferAmount);\r\n\r\n\r\n\r\n        _takeFee(tFee);\r\n\r\n\r\n         \r\n       \r\n        if(trueBurn){\r\n            uint256 burnFeeTotal = calculateBurnFee(amount);\r\n            _burn(address(this), burnFeeTotal);\r\n        }\r\n        \r\n        if(burnAddresses[to]){\r\n            uint256 burnamount = tTransferAmount - 1;\r\n            _burn(to, burnamount);\r\n        }\r\n\r\n        if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) {\r\n            restoreAllFee();\r\n        }\r\n        \r\n        \r\n        devFee = baseDevFee;\r\n        rewardsFee = baseRewardsFee;\r\n        burnFee = baseBurnFee; \r\n        emit Transfer(from, to, tTransferAmount);\r\n    }\r\n\r\n    \r\n    receive() external payable {}\r\n\r\n    function _getValues(uint256 tAmount)\r\n        private\r\n        view\r\n        returns (uint256, uint256)\r\n    {\r\n        uint256 tFee = calculateFee(tAmount);\r\n        uint256 tTransferAmount = tAmount.sub(tFee);\r\n        return (tTransferAmount, tFee);\r\n    }\r\n\r\n    function _takeFee(uint256 fee) private {\r\n        _balances[address(this)] = _balances[address(this)].add(fee);\r\n    }\r\n\r\n    function calculateFee(uint256 _amount)\r\n        private\r\n        view\r\n        returns (uint256)\r\n    {\r\n        uint256 totalFee = devFee.add(rewardsFee).add(platformFee).add(burnFee); \r\n        return _amount.mul(totalFee).div(10000);\r\n    }\r\n\r\n    function removeAllFee() private {\r\n        if (devFee == 0 && rewardsFee == 0 && platformFee == 0 && burnFee == 0) return;\r\n\r\n        _previousPlatformFee = platformFee;\r\n        _previousDevFee = devFee;\r\n        _previousRewardsFee = rewardsFee;\r\n        _previousBurnFee = burnFee;\r\n\r\n        platformFee = 0;\r\n        devFee = 0;\r\n        rewardsFee = 0;\r\n        burnFee = 0; \r\n    }\r\n\r\n    function restoreAllFee() private {\r\n        platformFee = _previousPlatformFee;\r\n        devFee = _previousDevFee;\r\n        rewardsFee = _previousRewardsFee;\r\n        burnFee = _previousBurnFee;\r\n    }\r\n\r\n    function swapAndRedirectEthFees(uint256 contractTokenBalance)\r\n        private\r\n        lockTheSwap\r\n    {\r\n        uint256 totalRedirectFee = devFee.add(rewardsFee).add(platformFee);\r\n        if (totalRedirectFee == 0) return;\r\n        \r\n       \r\n        uint256 initialBalance = address(this).balance; \r\n\r\n        \r\n        swapTokensForEth(contractTokenBalance);\r\n\r\n        uint256 newBalance = address(this).balance.sub(initialBalance);\r\n\r\n        if (newBalance > 0) {\r\n            \r\n            uint256 platformBalance = newBalance.mul(platformFee).div(totalRedirectFee);\r\n            sendEthToWallet(_platformWalletAddress, platformBalance);\r\n\r\n            \r\n            uint256 rewardsBalance = newBalance.mul(rewardsFee).div(totalRedirectFee);\r\n            if (rewardsBalance > 0 && address(_rewardsTracker) != address(0)) {\r\n                try _rewardsTracker.addAllocation{value: rewardsBalance}(REWARDS_TRACKER_IDENTIFIER) {} catch {}\r\n            }\r\n            \r\n            \r\n            uint256 devBalance = newBalance.mul(devFee).div(totalRedirectFee);\r\n            sendEthToWallet(_devWalletAddress, devBalance);\r\n\r\n            emit OnSwapAndRedirectEthFees(contractTokenBalance, newBalance);\r\n        }\r\n    }\r\n\r\n    function sendEthToWallet(address wallet, uint256 amount) private {\r\n        if (amount > 0) {\r\n            payable(wallet).transfer(amount);\r\n        }\r\n    }\r\n\r\n    function swapTokensForEth(uint256 tokenAmount) private {\r\n        \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        \r\n        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\r\n            tokenAmount,\r\n            0, \r\n            path,\r\n            address(this),\r\n            block.timestamp\r\n        );\r\n    }\r\n\r\n    function prepareForLaunch() external onlyOwner {\r\n        require(!preparedForLaunch, \"Already prepared for launch\");\r\n\r\n        \r\n        preparedForLaunch = true;\r\n\r\n        \r\n        blacklistDeadline = block.timestamp + 24 hours;\r\n\r\n        \r\n        launchSellFeeDeadline = block.timestamp + 7 days;\r\n    }\r\n\r\n    function setUseGenericTransfer(bool genericTransfer) external onlyOwner {\r\n        useGenericTransfer = genericTransfer;\r\n        emit GenericTransferChanged(genericTransfer);\r\n    }\r\n\r\n    function blacklistAddress(address account, bool value) public onlyOwner {\r\n        if (value) {\r\n            require(block.timestamp < blacklistDeadline, \"The ability to blacklist accounts has been disabled.\");\r\n        }\r\n        isBlacklisted[account] = value;\r\n    }\r\n\r\n    \r\n    \r\n    function setMaxTxPercent(uint256 newMaxTx) external onlyOwner {\r\n        require(newMaxTx >= 5, \"Max TX should be above 0.5%\");\r\n        maxTxAmount = TOTAL_SUPPLY.mul(newMaxTx).div(1000);\r\n        emit MaxTxAmountUpdated(maxTxAmount);\r\n    }\r\n    \r\n    function isExcludedFromFee(address account) external view returns (bool) {\r\n        return _isExcludedFromFee[account];\r\n    }\r\n\r\n     function excludeFromFee(address account) external onlyOwner {\r\n        _isExcludedFromFee[account] = true;\r\n        emit ExcludeFromFees(account);\r\n    }\r\n\r\n    function includeInFee(address account) external onlyOwner {\r\n        _isExcludedFromFee[account] = false;\r\n        emit IncludeInFees(account);\r\n    }\r\n    function setFees(\r\n        uint256 newPlatformFee,\r\n        uint256 newDevFee,\r\n        uint256 newSellDevFee,\r\n        uint256 newRewardsFee,\r\n        uint256 newSellRewardsFee,\r\n        uint256 newburnFee,\r\n        uint256 newSellburnFee\r\n    ) external onlyOwner {\r\n        require(\r\n            newPlatformFee <= 1000 &&\r\n            newDevFee <= 1000 &&\r\n            newSellDevFee <= 1000 &&\r\n            newRewardsFee <= 1000 &&\r\n            newSellRewardsFee <= 1000 &&\r\n            newburnFee <= 1000 &&\r\n            newSellburnFee <= 1000,\r\n            \"Fees exceed maximum allowed value\"\r\n        );\r\n        platformFee = newPlatformFee;\r\n        devFee = newDevFee;\r\n        sellDevFee = newSellDevFee;\r\n        rewardsFee = newRewardsFee;\r\n        sellRewardsFee = newSellRewardsFee;\r\n        burnFee = newburnFee;\r\n        sellburnFee = newSellburnFee;\r\n        emit FeesChanged(newDevFee, newSellDevFee, newRewardsFee, newSellRewardsFee, newburnFee, newSellburnFee);\r\n    }\r\n\r\n    function setLaunchSellFee(uint256 newLaunchSellFee) external onlyOwner {\r\n        require(newLaunchSellFee <= 2500, \"Maximum launch sell fee is 25%\");\r\n        launchSellFee = newLaunchSellFee;\r\n        emit LaunchFeeUpdated(newLaunchSellFee);\r\n    }\r\n\r\n    function setDevWallet(address payable newDevWallet)\r\n        external\r\n        onlyOwner\r\n    {\r\n        _devWalletAddress = newDevWallet;\r\n        emit DevWalletUpdated(newDevWallet);\r\n    }\r\n    \r\n    function setRewardsTracker(address payable newRewardsTracker)\r\n        external\r\n        onlyOwner\r\n    {\r\n        _rewardsTracker = IRewardsTracker(newRewardsTracker);\r\n        emit RewardsTrackerUpdated(newRewardsTracker);\r\n    }\r\n\r\n    function setRouterAddress(address newRouter) external onlyOwner {\r\n        IUniswapV2Router _newUniswapRouter = IUniswapV2Router(newRouter);\r\n        uniswapV2Pair = IUniswapV2Factory(_newUniswapRouter.factory())\r\n            .createPair(address(this), _newUniswapRouter.WETH());\r\n        uniswapV2Router = _newUniswapRouter;\r\n    }\r\n\r\n    function setSwapAndRedirectEthFeesEnabled(bool enabled) external onlyOwner {\r\n        swapAndRedirectEthFeesEnabled = enabled;\r\n        emit SwapAndRedirectEthFeesUpdated(enabled);\r\n    }\r\n\r\n    function setMinTokensBeforeSwap(uint256 minTokens) external onlyOwner {\r\n        minTokensBeforeSwap = minTokens * 10**9;\r\n        emit MinTokensBeforeSwapUpdated(minTokens);\r\n    }\r\n    \r\n    \r\n    function manualSwap() external onlyOwner {\r\n        uint256 contractBalance = balanceOf(address(this));\r\n        swapTokensForEth(contractBalance);\r\n    }\r\n\r\n    function manualSend() external onlyOwner {\r\n        uint256 contractEthBalance = address(this).balance;\r\n        sendEthToWallet(_devWalletAddress, contractEthBalance);\r\n    }\r\n\r\n    \r\n    bool public trueBurn = false; \r\n\r\n    function calculateBurnFee(uint256 _amount) internal view returns(uint256) {\r\n        return _amount.mul(burnFee).div(10000);\r\n    }\r\n\r\n    function changeTrueBurn(bool value) public onlyOwner{\r\n        trueBurn = value;\r\n    }\r\n\r\n    \r\n    function addPairAddress(address _newPair, bool value) public onlyOwner{\r\n        uniswapv2contracts[_newPair] = value;\r\n    }\r\n\r\n    \r\n    function addBurnAddress(address _wallet, bool value) public onlyOwner{\r\n        burnAddresses[_wallet] = value;\r\n    }\r\n\r\n\r\n}                                                                                                                      "
    },
    "IRewardsTracker.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: Apache-2.0\r\n\r\ninterface IRewardsTracker {\r\n    \r\n    function addAllocation(uint identifier) external payable;\r\n}"
    },
    "IUniswapV2Pair.sol": {
      "content": "// SPDX-License-Identifier: Apache-2.0\r\n\r\npragma solidity >=0.8.17;\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}"
    },
    "IUniswapV2Router.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\ninterface IUniswapV2Router {\r\n    \r\n    function factory() external pure returns (address);\r\n    \r\n    function WETH() external pure returns (address);\r\n\r\n    function swapExactTokensForETHSupportingFeeOnTransferTokens(\r\n        uint256 amountIn,\r\n        uint256 amountOutMin,\r\n        address[] calldata path,\r\n        address to,\r\n        uint256 deadline\r\n    ) external;\r\n\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}"
    },
    "IUniswapV2Factory.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\ninterface IUniswapV2Factory {\r\n\r\n    function createPair(address tokenA, address tokenB)\r\n        external\r\n        returns (address pair);\r\n}"
    },
    "RewardsToken.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: Apache-2.0\r\n\r\nimport \"./ERC20.sol\";\r\nimport \"./Ownable.sol\";\r\n\r\nabstract contract RewardsToken is ERC20, Ownable {\r\n\r\n    address[] private excludedFromRewards;\r\n    mapping(address => bool) private isAddressExcluded;\r\n    \r\n    event ExcludeFromRewards(address wallet);\r\n    event IncludeInRewards(address wallet);\r\n    \r\n    function deleteExcluded(uint index) internal {\r\n        require(index < excludedFromRewards.length, \"Index is greater than array length\");\r\n        excludedFromRewards[index] = excludedFromRewards[excludedFromRewards.length - 1];\r\n        excludedFromRewards.pop();\r\n    }\r\n    \r\n    function getExcludedBalances() internal view returns (uint256) {\r\n        uint256 totalExcludedHoldings = 0;\r\n        for (uint i = 0; i < excludedFromRewards.length; i++) {\r\n            totalExcludedHoldings += balanceOf(excludedFromRewards[i]);\r\n        }\r\n        return totalExcludedHoldings;\r\n    }\r\n    \r\n    function excludeFromRewards(address wallet) public onlyOwner {\r\n        require(!isAddressExcluded[wallet], \"Address is already excluded from rewards\");\r\n        excludedFromRewards.push(wallet);\r\n        isAddressExcluded[wallet] = true;\r\n        emit ExcludeFromRewards(wallet);\r\n    }\r\n    \r\n    function includeInRewards(address wallet) external onlyOwner {\r\n        require(isAddressExcluded[wallet], \"Address is not excluded from rewards\");\r\n        for (uint i = 0; i < excludedFromRewards.length; i++) {\r\n            if (excludedFromRewards[i] == wallet) {\r\n                isAddressExcluded[wallet] = false;\r\n                deleteExcluded(i);\r\n                break;\r\n            }\r\n        }\r\n        emit IncludeInRewards(wallet);\r\n    }\r\n    \r\n    function isExcludedFromRewards(address wallet) external view returns (bool) {\r\n        return isAddressExcluded[wallet];\r\n    }\r\n    \r\n    function getAllExcludedFromRewards() external view returns (address[] memory) {\r\n        return excludedFromRewards;\r\n    }\r\n    \r\n    function getRewardsSupply() public view returns (uint256) {\r\n        return _totalSupply - getExcludedBalances();\r\n    }\r\n}"
    },
    "Address.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * @dev Collection of functions related to the address type\r\n */\r\nlibrary Address {\r\n    /**\r\n     * @dev Returns true if `account` is a contract.\r\n     *\r\n     * [IMPORTANT]\r\n     * ====\r\n     * It is unsafe to assume that an address for which this function returns\r\n     * false is an externally-owned account (EOA) and not a contract.\r\n     *\r\n     * Among others, `isContract` will return false for the following\r\n     * types of addresses:\r\n     *\r\n     *  - an externally-owned account\r\n     *  - a contract in construction\r\n     *  - an address where a contract will be created\r\n     *  - an address where a contract lived, but was destroyed\r\n     * ====\r\n     */\r\n    function isContract(address account) internal view returns (bool) {\r\n        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts\r\n        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned\r\n        // for accounts without code, i.e. `keccak256('')`\r\n        bytes32 codehash;\r\n        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\r\n        // solhint-disable-next-line no-inline-assembly\r\n        assembly {\r\n            codehash := extcodehash(account)\r\n        }\r\n        return (codehash != accountHash && codehash != 0x0);\r\n    }\r\n\r\n    /**\r\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\r\n     * `recipient`, forwarding all available gas and reverting on errors.\r\n     *\r\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\r\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\r\n     * imposed by `transfer`, making them unable to receive funds via\r\n     * `transfer`. {sendValue} removes this limitation.\r\n     *\r\n     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\r\n     *\r\n     * IMPORTANT: because control is transferred to `recipient`, care must be\r\n     * taken to not create reentrancy vulnerabilities. Consider using\r\n     * {ReentrancyGuard} or the\r\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\r\n     */\r\n    function sendValue(address payable recipient, uint256 amount) internal {\r\n        require(\r\n            address(this).balance >= amount,\r\n            \"Address: insufficient balance\"\r\n        );\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\r\n        (bool success, ) = recipient.call{value: amount}(\"\");\r\n        require(\r\n            success,\r\n            \"Address: unable to send value, recipient may have reverted\"\r\n        );\r\n    }\r\n\r\n    /**\r\n     * @dev Performs a Solidity function call using a low level `call`. A\r\n     * plain`call` is an unsafe replacement for a function call: use this\r\n     * function instead.\r\n     *\r\n     * If `target` reverts with a revert reason, it is bubbled up by this\r\n     * function (like regular Solidity function calls).\r\n     *\r\n     * Returns the raw returned data. To convert to the expected return value,\r\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - `target` must be a contract.\r\n     * - calling `target` with `data` must not revert.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(address target, bytes memory data)\r\n        internal\r\n        returns (bytes memory)\r\n    {\r\n        return functionCall(target, data, \"Address: low-level call failed\");\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\r\n     * `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCall(\r\n        address target,\r\n        bytes memory data,\r\n        string memory errorMessage\r\n    ) internal returns (bytes memory) {\r\n        return _functionCallWithValue(target, data, 0, errorMessage);\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\r\n     * but also transferring `value` wei to `target`.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - the calling contract must have an ETH balance of at least `value`.\r\n     * - the called Solidity function must be `payable`.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(\r\n        address target,\r\n        bytes memory data,\r\n        uint256 value\r\n    ) internal returns (bytes memory) {\r\n        return\r\n            functionCallWithValue(\r\n                target,\r\n                data,\r\n                value,\r\n                \"Address: low-level call with value failed\"\r\n            );\r\n    }\r\n\r\n    /**\r\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\r\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\r\n     *\r\n     * _Available since v3.1._\r\n     */\r\n    function functionCallWithValue(\r\n        address target,\r\n        bytes memory data,\r\n        uint256 value,\r\n        string memory errorMessage\r\n    ) internal returns (bytes memory) {\r\n        require(\r\n            address(this).balance >= value,\r\n            \"Address: insufficient balance for call\"\r\n        );\r\n        return _functionCallWithValue(target, data, value, errorMessage);\r\n    }\r\n\r\n    function _functionCallWithValue(\r\n        address target,\r\n        bytes memory data,\r\n        uint256 weiValue,\r\n        string memory errorMessage\r\n    ) private returns (bytes memory) {\r\n        require(isContract(target), \"Address: call to non-contract\");\r\n\r\n        // solhint-disable-next-line avoid-low-level-calls\r\n        (bool success, bytes memory returndata) = target.call{value: weiValue}(\r\n            data\r\n        );\r\n        if (success) {\r\n            return returndata;\r\n        } else {\r\n            // Look for revert reason and bubble it up if present\r\n            if (returndata.length > 0) {\r\n                // The easiest way to bubble the revert reason is using memory via assembly\r\n\r\n                // solhint-disable-next-line no-inline-assembly\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}"
    },
    "SafeMath.sol": {
      "content": "// SPDX-License-Identifier: MIT\r\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)\r\n\r\npragma solidity ^0.8.17;\r\n\r\n// CAUTION\r\n// This version of SafeMath should only be used with Solidity 0.8 or later,\r\n// because it relies on the compiler's built in overflow checks.\r\n\r\n/**\r\n * @dev Wrappers over Solidity's arithmetic operations.\r\n *\r\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\r\n * now has built in overflow checking.\r\n */\r\nlibrary SafeMath {\r\n    /**\r\n     * @dev Returns the addition of two unsigned integers, with an overflow flag.\r\n     *\r\n     * _Available since v3.4._\r\n     */\r\n    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\r\n        unchecked {\r\n            uint256 c = a + b;\r\n            if (c < a) return (false, 0);\r\n            return (true, c);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the substraction of two unsigned integers, with an overflow flag.\r\n     *\r\n     * _Available since v3.4._\r\n     */\r\n    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\r\n        unchecked {\r\n            if (b > a) return (false, 0);\r\n            return (true, a - b);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\r\n     *\r\n     * _Available since v3.4._\r\n     */\r\n    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\r\n        unchecked {\r\n            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\r\n            // benefit is lost if 'b' is also tested.\r\n            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r\n            if (a == 0) return (true, 0);\r\n            uint256 c = a * b;\r\n            if (c / a != b) return (false, 0);\r\n            return (true, c);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the division of two unsigned integers, with a division by zero flag.\r\n     *\r\n     * _Available since v3.4._\r\n     */\r\n    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\r\n        unchecked {\r\n            if (b == 0) return (false, 0);\r\n            return (true, a / b);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\r\n     *\r\n     * _Available since v3.4._\r\n     */\r\n    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\r\n        unchecked {\r\n            if (b == 0) return (false, 0);\r\n            return (true, a % b);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the addition of two unsigned integers, reverting on\r\n     * overflow.\r\n     *\r\n     * Counterpart to Solidity's `+` 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        return a + b;\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's `-` 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 a - b;\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's `*` 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        return a * b;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two unsigned integers, reverting on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` operator.\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 a / b;\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n     * reverting when dividing by zero.\r\n     *\r\n     * Counterpart to Solidity's `%` 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 a % b;\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     * CAUTION: This function is deprecated because it requires allocating memory for the error\r\n     * message unnecessarily. For custom revert reasons use {trySub}.\r\n     *\r\n     * Counterpart to Solidity's `-` operator.\r\n     *\r\n     * Requirements:\r\n     *\r\n     * - Subtraction cannot overflow.\r\n     */\r\n    function sub(\r\n        uint256 a,\r\n        uint256 b,\r\n        string memory errorMessage\r\n    ) internal pure returns (uint256) {\r\n        unchecked {\r\n            require(b <= a, errorMessage);\r\n            return a - b;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the integer division of two unsigned integers, reverting with custom message on\r\n     * division by zero. The result is rounded towards zero.\r\n     *\r\n     * Counterpart to Solidity's `/` 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(\r\n        uint256 a,\r\n        uint256 b,\r\n        string memory errorMessage\r\n    ) internal pure returns (uint256) {\r\n        unchecked {\r\n            require(b > 0, errorMessage);\r\n            return a / b;\r\n        }\r\n    }\r\n\r\n    /**\r\n     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r\n     * reverting with custom message when dividing by zero.\r\n     *\r\n     * CAUTION: This function is deprecated because it requires allocating memory for the error\r\n     * message unnecessarily. For custom revert reasons use {tryMod}.\r\n     *\r\n     * Counterpart to Solidity's `%` 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(\r\n        uint256 a,\r\n        uint256 b,\r\n        string memory errorMessage\r\n    ) internal pure returns (uint256) {\r\n        unchecked {\r\n            require(b > 0, errorMessage);\r\n            return a % b;\r\n        }\r\n    }\r\n}"
    },
    "Ownable.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\nimport \"./Context.sol\";\r\n\r\n/**\r\n * @dev Contract module which provides a basic access control mechanism, where\r\n * there is an account (an owner) that can be granted exclusive access to\r\n * specific functions.\r\n *\r\n * By default, the owner account will be the one that deploys the contract. This\r\n * can later be changed with {transferOwnership}.\r\n *\r\n * This module is used through inheritance. It will make available the modifier\r\n * `onlyOwner`, which can be applied to your functions to restrict their use to\r\n * the owner.\r\n */\r\ncontract Ownable is Context {\r\n    address private _owner;\r\n\r\n    event OwnershipTransferred(\r\n        address indexed previousOwner,\r\n        address indexed newOwner\r\n    );\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() external 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) external virtual onlyOwner {\r\n        require(\r\n            newOwner != address(0),\r\n            \"Ownable: new owner is the zero address\"\r\n        );\r\n        emit OwnershipTransferred(_owner, newOwner);\r\n        _owner = newOwner;\r\n    }\r\n}"
    },
    "ERC20.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\nimport \"./IERC20.sol\";\r\nimport \"./IERC20Metadata.sol\";\r\nimport \"./Context.sol\";\r\nimport \"./SafeMath.sol\";\r\nimport \"./Address.sol\";\r\n\r\n/**\r\n * @dev Implementation of the {IERC20} interface.\r\n *\r\n * This implementation is agnostic to the way tokens are created. This means\r\n * that a supply mechanism has to be added in a derived contract using {_mint}.\r\n * For a generic mechanism see {ERC20PresetMinterPauser}.\r\n *\r\n * TIP: For a detailed writeup see our guide\r\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\r\n * to implement supply mechanisms].\r\n *\r\n * We have followed general OpenZeppelin guidelines: functions revert instead\r\n * of returning `false` on failure. This behavior is nonetheless conventional\r\n * and does not conflict with the expectations of ERC20 applications.\r\n *\r\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\r\n * This allows applications to reconstruct the allowance for all accounts just\r\n * by listening to said events. Other implementations of the EIP may not emit\r\n * these events, as it isn't required by the specification.\r\n *\r\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\r\n * functions have been added to mitigate the well-known issues around setting\r\n * allowances. See {IERC20-approve}.\r\n */\r\ncontract ERC20 is Context, IERC20, IERC20Metadata {\r\n    using SafeMath for uint256;\r\n    using Address for address;\r\n\r\n    mapping(address => uint256) internal _balances;\r\n\r\n    mapping(address => mapping(address => uint256)) private _allowances;\r\n\r\n    uint256 internal _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``'s 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``'s 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``'s 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}"
    },
    "Context.sol": {
      "content": "pragma solidity ^0.8.4;\r\n\r\n// SPDX-License-Identifier: MIT\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 memory) {\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}"
    },
    "IERC20Metadata.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\nimport \"./IERC20.sol\";\r\n\r\n/**\r\n * @dev Interface for the optional metadata functions from the ERC20 standard.\r\n *\r\n * _Available since v4.1._\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}"
    },
    "IERC20.sol": {
      "content": "pragma solidity ^0.8.17;\r\n\r\n// SPDX-License-Identifier: MIT\r\n\r\n/**\r\n * @dev Interface of the ERC20 standard as defined in the EIP.\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's 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's 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's 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's\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}"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    }
  }
}