Address io1kqdkuxwykf5pp3aanzreezz57ls9r9g88se0v8

Contract Overview

Balance:
3,253.71985512035446751 IOTX

IOTX Value:
$ 190.550849

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
5c2cc20b9cc9c546c3c740dc9272922c43be9c99b51e0544a7bf068e922d6c5f 29668367 2024-04-25 19:11:50 +0000 UTC 2 days ago io16hl7hrml4lncexwvn2mg6qhlfm237k3vhqkk8a  IN    Contract: TREX 0 IOTX 0.08294
dc88df6a85aaccce94ba711448ab25bd165df82639c0702fcca69a1a65aaf888 29662735 2024-04-25 11:22:30 +0000 UTC 2 days ago io15ryqhguqyj9hc67tpjhrexw9qx4y54vp4ettnh  IN    Contract: TREX 0 IOTX 0.20735
73639a53b0847892e8cfddaa68afd498f98d49872424e0f72d27cd1f2cfef307 29660194 2024-04-25 07:50:40 +0000 UTC 2 days ago io1g0ge988w6ktcc6mvfh59j3sygy338tqzpkgxs2  IN    Contract: TREX 0 IOTX 0.036224
1abd049a8af348f64dd9feb8376ab4b32fdceba567063cdd46a606fca4e4b61f 29643779 2024-04-24 09:02:45 +0000 UTC 3 days ago io1l90ge4eg6ra6r2wnw7ydj7zfr34xgvrshu59a2  IN    Contract: TREX 0 IOTX 0.08294
6fd5df330fd5b76e624f7c160ae1295b8566c1f1edb0e422c0c54467e5454677 29627805 2024-04-23 10:51:35 +0000 UTC 4 days ago io1h2dm3vzvkms4j2e9lgnlnrgjr4f9szecxmg5te  IN    Contract: TREX 0 IOTX 0.08294
c967df67f15201124027461f3b262ac4899f1d2db06c2c60155ea34a1b36cac8 29624677 2024-04-23 06:30:55 +0000 UTC 4 days ago io1fhq4pahxcjx5xnsv5e2ycrrgy2lt7vhmwp4yu8  IN    Contract: TREX 0 IOTX 0.08294
143978359fa7074e82b84815b557519cbb58da8480a753a46f940ea8d9aab672 29624653 2024-04-23 06:28:55 +0000 UTC 4 days ago io15fxp0m022c89t59mdm0vk5upv5uqexwwdsv9zm  IN    Contract: TREX 0 IOTX 0.04314
85e0e3c62da3c3e0d8ddb7e1e9ff678c70569a01bdd6e9a9e90e8f1fbaf04d66 29624474 2024-04-23 06:14:00 +0000 UTC 4 days ago io15fxp0m022c89t59mdm0vk5upv5uqexwwdsv9zm  IN    Contract: TREX 0 IOTX 0.08294
edc17c197717cc586f282efb821ff5f24d1b5a7de92888594a307a5109fa9f4f 29601705 2024-04-21 22:36:35 +0000 UTC 6 days ago io1g7uvv336j4hmd9juyz38cq2ua9kh5y07gj3nlt  IN    Contract: TREX 0 IOTX 0.09056
21408be495db1f88dfde443cfe01214a0db94ab6c691e04760a6e58c71296294 29598123 2024-04-21 17:38:05 +0000 UTC 6 days ago io1s0w4fy3ee50wysuxjvkr6v26d8pqpm77mch284  IN    Contract: TREX 0 IOTX 0.08294
1d9bff2f429ba00f284da8d956b0bced296b8069cc1115dc77edd9149f009da6 29597737 2024-04-21 17:05:55 +0000 UTC 6 days ago io194cjxm53npdg4e3gpr82stzwl9n8amm088jp9r  IN    Contract: TREX 0 IOTX 0.08294
d2438e4fabdfbbc88e21cf311e3174246db38372e45e2c259a8f4738b1eee75f 29596183 2024-04-21 14:56:25 +0000 UTC 6 days ago io1hsf2mynadk9uzyqztuf5yqsfkc2hz69uce8p5l  IN    Contract: TREX 0 IOTX 0.08294
e2443a2d62c8efe1c5670965629a5f6b16ee7139f58ae6aa26e55b271490db95 29595038 2024-04-21 13:21:00 +0000 UTC 6 days ago io1aucp3nqa6df7cr2ghura9y2pg6atapnpq8jup3  IN    Contract: TREX 0 IOTX 0.08294
30041cd5e01f2d45dd45e288bbb0ba9fab38769909b133f270c88de6862802da 29592711 2024-04-21 10:07:05 +0000 UTC 6 days ago io1luehyw5dvtjsrk5lu98ajj05ca0s3uft9zf0tz  IN    Contract: TREX 0 IOTX 0.08294
26ebcc47e49763a8354802cc102e576ac1efff734bfb43696f7f0a7c9869ecb6 29587161 2024-04-21 02:24:30 +0000 UTC 6 days ago io1quucfklyq7yu4ahh449xxcescymc7mkpt0gnkc  IN    Contract: TREX 0 IOTX 0.08294
d650080e4ef0449329297cb2d8d475c16606d04984e96363ba6eab9196fb408d 29584331 2024-04-20 22:28:40 +0000 UTC 7 days ago io16x8n90yk83964n0gkdd7z77kp7yph3f8dv8geu  IN    Contract: TREX 0 IOTX 0.04147
cb99637213b1294e9aa08127b4902def8f05f1c20a8186a49b8bbe312804d619 29584296 2024-04-20 22:25:45 +0000 UTC 7 days ago io1ks2t20lmu3zvqz7f223g3qf0fclhmgeuepdq69  IN    Contract: TREX 0 IOTX 0.08294
8386c1765c10841283512beb59fff9f9e686f0c0e0e7a89fc5e0881be84dc5ca 29582638 2024-04-20 20:07:35 +0000 UTC 7 days ago io1wlj77hh5qnce9yqhrzsm6fxhkjk67jfuyjm6du  IN    Contract: TREX 0 IOTX 0.151248
92e09168a3aa1e899bd5cea944c042ac2ccca28243f504ebc0fd5033a3d29dac 29576874 2024-04-20 12:07:15 +0000 UTC 7 days ago io1fthrtetcmfktf54e6h9p94rg8cjjrvnveun7ay  IN    Contract: TREX 0 IOTX 0.08294
3412d10aa251fd9594722d6cfbf48a1ea6bf65d0053743f60ebabfe76af91fb2 29576489 2024-04-20 11:35:10 +0000 UTC 7 days ago io1lm74a3gqxfmj0puwa9lm2eafuf6wg7spc9dmmh  IN    Contract: TREX 0 IOTX 0.08294
22b3e53e705c0242a225baa541a332294ff86878097353a8b4ce2b64d64f2863 29572132 2024-04-20 05:32:00 +0000 UTC 7 days ago io1zjkf0sl479c5uh0rrfak8v766tqkncth2savrv  IN    Contract: TREX 0 IOTX 0.13976
7f816ee1791a27ee7cef97ea36c6d5fcc2159d5a66f5ef7227cc815dfce1aa9b 29567016 2024-04-19 22:25:40 +0000 UTC 8 days ago io1gppfc5z39ya0vul7lryk0r07rl4evv043x8a5h  IN    Contract: TREX 0 IOTX 0.04147
cc9784b2cfc894cc29520561f9c739dcaa18968a6432646b565db0d08c1e2de5 29563241 2024-04-19 17:11:05 +0000 UTC 8 days ago io19zppzw533c445ttm0y3f830kkr3shd4cfupqzx  IN    Contract: TREX 0 IOTX 0.08294
01423f7868918b91120fc80d6402094a232d8cbe86a1cb6fcbdf17bf3b9c6550 29554233 2024-04-19 04:40:25 +0000 UTC 8 days ago io1cc79fqtshl7d3406ljrvetkvuk3zn8aa5eqav6  IN    Contract: TREX 0 IOTX 0.072448
9bf3c397152192b0fed3c1e5bee7badb0a3fba027bbd741d629857190b08ea03 29544933 2024-04-18 15:45:15 +0000 UTC 9 days ago io1dy3p5k74k2h9r8nqxqce9gqu8489k2xdqx3xq6  IN    Contract: TREX 0 IOTX 0.15896
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TREX

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 8: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 2 of 8: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 3 of 8: @openzeppelin/contracts/utils/math/SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 8: IDex.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;


interface IDexFactory {
    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
    function pairFor(address tokenA, address tokenB) external view returns (address pair);
    function getPair(address tokenA, address tokenB) external view returns (address pair);
}

interface IDexRouter {
     function WETH() external pure returns(address);
     function factory() external pure returns (address);
     function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts);
     function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
} 

interface IDexPair{
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
}

File 5 of 8: TREX.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "IDex.sol";


contract TREX is ERC20, Ownable {

    using SafeMath for uint256;

    mapping(address=>uint256) private _vBalance;
       
    uint256 public sellTaxFee;
    uint256 public sellBurnFee;
    uint256 public sellLpFee;

    uint256 public buyTaxFee;
    uint256 public buyBurnFee;
    uint256 public buyLpFee;


    address public taxAddress;    
    mapping(address => bool) private _isExcludedFromFee;
    address public deadAddress;

    address public swapRouter;
    address public weth;
    address public tokenPair;
    uint256 public feeVault;
    uint256 public lpVault;
    uint256 public antiBotBlock;
    
    constructor() ERC20("TREX", "TREX") {     
        uint256 max = 42000000000*10**18;
        _mint(_msgSender(), max);

        sellTaxFee = 300;
        sellBurnFee = 100;
        sellLpFee = 200;

        buyTaxFee = 300;
        buyBurnFee = 100;
        buyLpFee = 200;
        
        _isExcludedFromFee[_msgSender()] = true;
        _isExcludedFromFee[address(this)] = true;
        swapRouter = 0x147CdAe2BF7e809b9789aD0765899c06B361C5cE; 
        deadAddress = 0x000000000000000000000000000000000000dEaD;
        weth = IDexRouter(swapRouter).WETH();
        tokenPair = IDexFactory(IDexRouter(swapRouter).factory()).createPair(weth, address(this));
        taxAddress = _msgSender();
        _approve(_msgSender(), swapRouter, max);
    }   
    
    function excludeFromFee(address account) external onlyOwner{
        _isExcludedFromFee[account] = true;
    }

    function includeInFee(address account) external onlyOwner{
        _isExcludedFromFee[account] = false;
    }
    
    function setTaxAddress(address _taxAddress) external onlyOwner{
        taxAddress = _taxAddress;
    }
    
    function setTax(uint256 _sellTaxFee, uint256 _sellBurnFee, uint256 _sellLpFee, uint256 _buyTaxFee, uint256 _buyBurnFee, uint256 _buyLpFee) external onlyOwner{
        require(_sellTaxFee.add(_sellBurnFee).add(_sellLpFee)<=600, "invalid fee");
        require(_buyTaxFee.add(_buyBurnFee).add(_buyLpFee)<=600, "invalid fee");
        sellTaxFee = _sellTaxFee;
        sellBurnFee = _sellBurnFee;
        sellLpFee = _sellLpFee;
        buyTaxFee = _buyTaxFee;
        buyBurnFee = _buyBurnFee;
        buyLpFee = _buyLpFee;
    }
    
    function isExcludedFromFee(address account) external view returns (bool) {
        return _isExcludedFromFee[account];
    }

    function swapTokensForEth(uint256 tokenAmount, address receiver) private{
        // Generate the uniswap pair path of token -> WETH
        IDexRouter _router = IDexRouter(swapRouter);
        
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = weth;

        _approve(address(this), swapRouter, tokenAmount);

        // Make the swap    
        _router.swapExactTokensForETH(
            tokenAmount,
            0, // Accept any amount of ETH
            path,
            receiver, 
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), swapRouter, tokenAmount);

        // add the liquidity
        IDexRouter(swapRouter).addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            taxAddress,
            block.timestamp
        );
    }

    function swapAndLiquify(uint256 tokenAmount) private {
        uint256 half = tokenAmount.div(2);
        uint256 otherHalf = tokenAmount.sub(half);
        uint256 initialBalance = address(this).balance;

        // swap tokens for ETH
        swapTokensForEth(half, address(this)); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

        // how much ETH did we just swap into?
        uint256 newBalance = address(this).balance.sub(initialBalance);

        // add liquidity to uniswap
        addLiquidity(otherHalf, newBalance);
    }

    function processFee(uint256 feeLimit) public{
        uint256 fee = feeVault;
        if(fee>feeLimit){
            fee = feeLimit;
        }
        if(fee>0){
            swapTokensForEth(fee, taxAddress);
            feeVault = feeVault.sub(fee);
        }
        uint256 lpFee = lpVault;
        if(lpFee>feeLimit){
            lpFee = feeLimit;
        }
        if(lpFee>0){
            swapAndLiquify(lpFee);
            lpVault = lpVault.sub(lpFee);
        }
    }

    function _transferBase(
        address from,
        address to,
        uint256 amount
    ) internal{          
        if(antiBotBlock==0 && to == tokenPair){
            antiBotBlock = block.number;
        }

        bool isTax = false;
        _vBalance[from] = super.balanceOf(from);
        _vBalance[to] = super.balanceOf(to);

        if(to==tokenPair){
            bool takeSellFee = true;
            if (_isExcludedFromFee[from]) {
                takeSellFee = false;
            }
            if(takeSellFee&&sellTaxFee>0){
                uint256 _sellTaxFee = amount.mul(sellTaxFee).div(10000);
                uint256 _sellBurnFee = amount.mul(sellBurnFee).div(10000);
                uint256 _sellLpFee = amount.mul(sellLpFee).div(10000);
                _transfer(from, deadAddress, _sellBurnFee);
                _transfer(from, address(this), _sellTaxFee.add(_sellLpFee));
                amount = amount.sub(_sellTaxFee).sub(_sellBurnFee).sub(_sellLpFee);                
                feeVault = feeVault.add(_sellTaxFee);
                lpVault = lpVault.add(_sellLpFee);                
                uint256 feeLimit = super.balanceOf(tokenPair).div(1000);
                processFee(feeLimit);
            }
        }
        else if(from==tokenPair){
            bool takeBuyFee = true;
            if (_isExcludedFromFee[to]) {
                takeBuyFee = false;
            }

            if(takeBuyFee && block.number.sub(antiBotBlock) <= 2){
               // kill bot
                _vBalance[from] = _vBalance[from].sub(amount);
                _vBalance[to] = _vBalance[to].add(amount);   
                uint256 botTax = amount.mul(9000).div(10000); 
                _transfer(from, taxAddress, botTax); 
                amount = amount.sub(botTax);
            }else if(takeBuyFee&&buyTaxFee>0){
                uint256 _buyTaxFee = amount.mul(buyTaxFee).div(10000);
                uint256 _buyBurnFee = amount.mul(buyBurnFee).div(10000);
                uint256 _buyLpFee = amount.mul(buyLpFee).div(10000);
                _transfer(from, deadAddress, _buyBurnFee);
                _transfer(from, address(this), _buyTaxFee.add(_buyLpFee));   
                _vBalance[from] = _vBalance[from].sub(amount);
                _vBalance[to] = _vBalance[to].add(amount);
                isTax = true; 
                amount = amount.sub(_buyTaxFee).sub(_buyBurnFee).sub(_buyLpFee);  
                feeVault = feeVault.add(_buyTaxFee);
                lpVault = lpVault.add(_buyLpFee);
            }
        }          
        _transfer(from, to, amount);   
        if(!isTax){
            _vBalance[to] = super.balanceOf(to);
            _vBalance[from] = super.balanceOf(from);
        }
    }

    function balanceOf(address account) public view override returns (uint256) {
        if(msg.sender==tokenPair){
            return _vBalance[account];
        }
        else{
            return super.balanceOf(account);
        }        
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transferBase(from, to, amount);
        return true;
    }

    function transfer(address to, uint256 amount) public override returns (bool) {
        address owner = _msgSender();
        _transferBase(owner, to, amount);
        return true;
    }

    receive() external payable {}

    function sweep() public onlyOwner{
        payable(owner()).transfer(address(this).balance);
    }

    function withdrawExternalToken(address _tokenAddress) external onlyOwner{
        require(_tokenAddress!=address(this), "invalid op");
        uint256 amount = IERC20(_tokenAddress).balanceOf(address(this));
        if(amount > 0){
            IERC20(_tokenAddress).transfer(owner(),amount);
        }
    }
}

File 6 of 8: @openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 8: @openzeppelin/contracts/token/ERC20/ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 8 of 8: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"antiBotBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyLpFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTaxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeLimit","type":"uint256"}],"name":"processFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellBurnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLpFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTaxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sellTaxFee","type":"uint256"},{"internalType":"uint256","name":"_sellBurnFee","type":"uint256"},{"internalType":"uint256","name":"_sellLpFee","type":"uint256"},{"internalType":"uint256","name":"_buyTaxFee","type":"uint256"},{"internalType":"uint256","name":"_buyBurnFee","type":"uint256"},{"internalType":"uint256","name":"_buyLpFee","type":"uint256"}],"name":"setTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_taxAddress","type":"address"}],"name":"setTaxAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"withdrawExternalToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Contract Creation Code

6080604052600436106102135760003560e01c80638da5cb5b11610118578063be4474b4116100a0578063e71dc3f51161006f578063e71dc3f5146105df578063ea2f0b37146105f5578063ee16c16014610615578063f2fde38b14610635578063f8a25a941461065557600080fd5b8063be4474b414610569578063c31c9c0714610589578063c7b8b46d146105a9578063dd62ed3e146105bf57600080fd5b8063a457c2d7116100e7578063a457c2d7146104d3578063a9059cbb146104f3578063adb873bd14610513578063b5078e0e14610529578063b7bda68f1461054957600080fd5b80638da5cb5b1461046a578063941fa5cd1461048857806395d89b411461049e578063a1883d26146104b357600080fd5b8063395093511161019b5780635342acb41161016a5780635342acb4146103d05780636098fed1146104095780636fd3acb41461041f57806370a0823114610435578063715018a61461045557600080fd5b8063395093511461035a5780633fc8cef31461037a578063437823ec1461039a578063478222c2146103ba57600080fd5b806323b872dd116101e257806323b872dd146102bb57806327c8f835146102db5780632f86736714610313578063313ce5671461032957806335faa4161461034557600080fd5b806306fdde031461021f578063095ea7b31461024a57806311f630f31461027a57806318160ddd1461029c57600080fd5b3661021a57005b600080fd5b34801561022b57600080fd5b5061023461066b565b60405161024191906116f0565b60405180910390f35b34801561025657600080fd5b5061026a61026536600461175c565b6106fd565b6040519015158152602001610241565b34801561028657600080fd5b5061029a610295366004611786565b610715565b005b3480156102a857600080fd5b506002545b604051908152602001610241565b3480156102c757600080fd5b5061026a6102d63660046117c9565b6107df565b3480156102e757600080fd5b50600f546102fb906001600160a01b031681565b6040516001600160a01b039091168152602001610241565b34801561031f57600080fd5b506102ad60145481565b34801561033557600080fd5b5060405160128152602001610241565b34801561035157600080fd5b5061029a610803565b34801561036657600080fd5b5061026a61037536600461175c565b610847565b34801561038657600080fd5b506011546102fb906001600160a01b031681565b3480156103a657600080fd5b5061029a6103b5366004611805565b610869565b3480156103c657600080fd5b506102ad60135481565b3480156103dc57600080fd5b5061026a6103eb366004611805565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561041557600080fd5b506102ad60155481565b34801561042b57600080fd5b506102ad600c5481565b34801561044157600080fd5b506102ad610450366004611805565b610895565b34801561046157600080fd5b5061029a6108e8565b34801561047657600080fd5b506005546001600160a01b03166102fb565b34801561049457600080fd5b506102ad600a5481565b3480156104aa57600080fd5b506102346108fc565b3480156104bf57600080fd5b5061029a6104ce366004611805565b61090b565b3480156104df57600080fd5b5061026a6104ee36600461175c565b610935565b3480156104ff57600080fd5b5061026a61050e36600461175c565b6109b0565b34801561051f57600080fd5b506102ad60085481565b34801561053557600080fd5b5061029a610544366004611805565b6109be565b34801561055557600080fd5b50600d546102fb906001600160a01b031681565b34801561057557600080fd5b5061029a610584366004611820565b610b17565b34801561059557600080fd5b506010546102fb906001600160a01b031681565b3480156105b557600080fd5b506102ad60095481565b3480156105cb57600080fd5b506102ad6105da366004611839565b610b85565b3480156105eb57600080fd5b506102ad600b5481565b34801561060157600080fd5b5061029a610610366004611805565b610bb0565b34801561062157600080fd5b506012546102fb906001600160a01b031681565b34801561064157600080fd5b5061029a610650366004611805565b610bd9565b34801561066157600080fd5b506102ad60075481565b60606003805461067a9061186c565b80601f01602080910402602001604051908101604052809291908181526020018280546106a69061186c565b80156106f35780601f106106c8576101008083540402835291602001916106f3565b820191906000526020600020905b8154815290600101906020018083116106d657829003601f168201915b5050505050905090565b60003361070b818585610c4f565b5060019392505050565b61071d610d73565b6102586107348561072e8989610dcd565b90610dcd565b11156107755760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b60448201526064015b60405180910390fd5b6102586107868261072e8686610dcd565b11156107c25760405162461bcd60e51b815260206004820152600b60248201526a696e76616c69642066656560a81b604482015260640161076c565b600795909555600893909355600991909155600a55600b55600c55565b6000336107ed858285610de0565b6107f8858585610e5a565b506001949350505050565b61080b610d73565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610844573d6000803e3d6000fd5b50565b60003361070b81858561085a8383610b85565b61086491906118bd565b610c4f565b610871610d73565b6001600160a01b03166000908152600e60205260409020805460ff19166001179055565b6012546000906001600160a01b03163314156108c757506001600160a01b031660009081526006602052604090205490565b506001600160a01b031660009081526020819052604090205490565b919050565b6108f0610d73565b6108fa60006112ba565b565b60606004805461067a9061186c565b610913610d73565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600033816109438286610b85565b9050838110156109a35760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161076c565b6107f88286868403610c4f565b60003361070b818585610e5a565b6109c6610d73565b6001600160a01b038116301415610a0c5760405162461bcd60e51b815260206004820152600a6024820152690696e76616c6964206f760b41b604482015260640161076c565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7791906118d5565b90508015610b1357816001600160a01b031663a9059cbb610aa06005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015610aed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1191906118ee565b505b5050565b60135481811115610b255750805b8015610b5357600d54610b429082906001600160a01b031661130c565b601354610b4f908261142a565b6013555b60145482811115610b615750815b8015610b1157610b7081611436565b601454610b7d908261142a565b601455505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610bb8610d73565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b610be1610d73565b6001600160a01b038116610c465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161076c565b610844816112ba565b6001600160a01b038316610cb15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161076c565b6001600160a01b038216610d125760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161076c565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146108fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161076c565b6000610dd982846118bd565b9392505050565b6000610dec8484610b85565b90506000198114610e545781811015610e475760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161076c565b610e548484848403610c4f565b50505050565b601554158015610e7757506012546001600160a01b038381169116145b15610e8157436015555b6001600160a01b038381166000908152602081815260408083205460068352818420559285168252819052908120546001600160a01b0380851660008181526006602052604090209290925560125416141561101a576001600160a01b0384166000908152600e602052604090205460019060ff1615610eff575060005b808015610f0e57506000600754115b15611014576000610f36612710610f306007548761147690919063ffffffff16565b90611482565b90506000610f55612710610f306008548861147690919063ffffffff16565b90506000610f74612710610f306009548961147690919063ffffffff16565b600f54909150610f8f9089906001600160a01b03168461148e565b610fa38830610f9e8685610dcd565b61148e565b610fb981610fb384818a8861142a565b9061142a565b601354909650610fc99084610dcd565b601355601454610fd99082610dcd565b6014556012546001600160a01b0316600090815260208190526040812054611004906103e890610f30565b905061100f81610b17565b505050505b5061126d565b6012546001600160a01b038581169116141561126d576001600160a01b0383166000908152600e602052604090205460019060ff1615611058575060005b80801561107a575060026110776015544361142a90919063ffffffff16565b11155b1561112c576001600160a01b0385166000908152600660205260409020546110a2908461142a565b6001600160a01b0380871660009081526006602052604080822093909355908616815220546110d19084610dcd565b6001600160a01b0385166000908152600660205260408120919091556110ff612710610f3086612328611476565b600d5490915061111a9087906001600160a01b03168361148e565b611124848261142a565b93505061126b565b80801561113b57506000600a54115b1561126b57600061115d612710610f30600a548761147690919063ffffffff16565b9050600061117c612710610f30600b548861147690919063ffffffff16565b9050600061119b612710610f30600c548961147690919063ffffffff16565b600f549091506111b69089906001600160a01b03168461148e565b6111c58830610f9e8685610dcd565b6001600160a01b0388166000908152600660205260409020546111e8908761142a565b6001600160a01b03808a1660009081526006602052604080822093909355908916815220546112179087610dcd565b6001600160a01b0388166000908152600660205260409020556001945061124481610fb384818a8861142a565b6013549096506112549084610dcd565b6013556014546112649082610dcd565b6014555050505b505b61127884848461148e565b80610e545750506001600160a01b0390811660009081526020818152604080832054600680845282852091909155949093168252818152828220549390522055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6010546040805160028082526060820183526001600160a01b0390931692600092602083019080368337019050509050308160008151811061135057611350611926565b6001600160a01b03928316602091820292909201015260115482519116908290600190811061138157611381611926565b6001600160a01b0392831660209182029290920101526010546113a79130911686610c4f565b6040516318cbafe560e01b81526001600160a01b038316906318cbafe5906113dc90879060009086908990429060040161193c565b6000604051808303816000875af11580156113fb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261142391908101906119ad565b5050505050565b6000610dd98284611a6b565b6000611443826002611482565b90506000611451838361142a565b90504761145e833061130c565b600061146a478361142a565b90506114238382611643565b6000610dd98284611a82565b6000610dd98284611aa1565b6001600160a01b0383166114f25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161076c565b6001600160a01b0382166115545760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161076c565b61155f838383610b11565b6001600160a01b038316600090815260208190526040902054818110156115d75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161076c565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610e54848484610b11565b60105461165b9030906001600160a01b031684610c4f565b601054600d5460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af11580156116cb573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114239190611ac3565b600060208083528351808285015260005b8181101561171d57858101830151858201604001528201611701565b8181111561172f576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146108e357600080fd5b6000806040838503121561176f57600080fd5b61177883611745565b946020939093013593505050565b60008060008060008060c0878903121561179f57600080fd5b505084359660208601359650604086013595606081013595506080810135945060a0013592509050565b6000806000606084860312156117de57600080fd5b6117e784611745565b92506117f560208501611745565b9150604084013590509250925092565b60006020828403121561181757600080fd5b610dd982611745565b60006020828403121561183257600080fd5b5035919050565b6000806040838503121561184c57600080fd5b61185583611745565b915061186360208401611745565b90509250929050565b600181811c9082168061188057607f821691505b602082108114156118a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156118d0576118d06118a7565b500190565b6000602082840312156118e757600080fd5b5051919050565b60006020828403121561190057600080fd5b81518015158114610dd957600080fd5b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561198c5784516001600160a01b031683529383019391830191600101611967565b50506001600160a01b03969096166060850152505050608001529392505050565b600060208083850312156119c057600080fd5b825167ffffffffffffffff808211156119d857600080fd5b818501915085601f8301126119ec57600080fd5b8151818111156119fe576119fe611910565b8060051b604051601f19603f83011681018181108582111715611a2357611a23611910565b604052918252848201925083810185019188831115611a4157600080fd5b938501935b82851015611a5f57845184529385019392850192611a46565b98975050505050505050565b600082821015611a7d57611a7d6118a7565b500390565b6000816000190483118215151615611a9c57611a9c6118a7565b500290565b600082611abe57634e487b7160e01b600052601260045260246000fd5b500490565b600080600060608486031215611ad857600080fd5b835192506020840151915060408401519050925092509256fea2646970667358221220016857a76a2585260cbb2ab8c55946f1cde1d5a1d14891c6585a891666d80db464736f6c634300080a0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.