Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x86f9B5709731980D4D6f5E325C2DEDdAC18eF2aF
Balance 0 ETH
Nonce 1
Code Size 6283 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

6283 bytes
0x6080604052600436106101db575f3560e01c806370a08231116100fd578063a8aa1b3111610092578063e0cad9b111610062578063e0cad9b114610613578063e8078d941461063a578063f2fde38b14610642578063f495b3e914610661575f5ffd5b8063a8aa1b311461056a578063a9059cbb14610589578063c6859d07146105a8578063dd62ed3e146105cf575f5ffd5b80638a8c523c116100cd5780638a8c523c146104f65780638da5cb5b1461050a57806395d89b41146105275780639af3c5981461053b575f5ffd5b806370a082311461045e578063715018a6146104925780638661ca0e146104a8578063883a58a3146104cf575f5ffd5b806341e4dac5116101735780634fbee193116101435780634fbee193146103a55780635cce86cd146103d35780635daf3146146104015780635dc95d4814610428575f5ffd5b806341e4dac5146102f9578063442ff2761461031957806344cd79481461035857806348cd4cb11461037f575f5ffd5b806323b872dd116101ae57806323b872dd1461028d578063313ce567146102ac57806332cb6b0c146102c7578063390c45d6146102e5575f5ffd5b806306fdde03146101df578063095ea7b3146102095780630c18d4ce1461023857806318160ddd1461026f575b5f5ffd5b3480156101ea575f5ffd5b506101f361068c565b60405161020091906115cc565b60405180910390f35b348015610214575f5ffd5b5061022861022336600461161c565b61071c565b6040519015158152602001610200565b348015610243575f5ffd5b50600754610257906001600160401b031681565b6040516001600160401b039091168152602001610200565b34801561027a575f5ffd5b506002545b604051908152602001610200565b348015610298575f5ffd5b506102286102a7366004611644565b610735565b3480156102b7575f5ffd5b5060405160128152602001610200565b3480156102d2575f5ffd5b5061027f6af8277896582678ac00000081565b3480156102f0575f5ffd5b5061027f610758565b348015610304575f5ffd5b5060075461022890600160401b900460ff1681565b348015610324575f5ffd5b50610340739da8f7a5855ecd66a4e81d517027d4af24ea458281565b6040516001600160a01b039091168152602001610200565b348015610363575f5ffd5b5061034073d0f33e2ada4075c7a0711ad138215915817aeebb81565b34801561038a575f5ffd5b5060065461025790600160a01b90046001600160401b031681565b3480156103b0575f5ffd5b506102286103bf36600461167e565b60086020525f908152604090205460ff1681565b3480156103de575f5ffd5b506102286103ed36600461167e565b60096020525f908152604090205460ff1681565b34801561040c575f5ffd5b5061034073c849254c797c9f3f67ae6accc53de2414c64e43d81565b348015610433575f5ffd5b5061027f61044236600461161c565b600a60209081525f928352604080842090915290825290205481565b348015610469575f5ffd5b5061027f61047836600461167e565b6001600160a01b03165f9081526020819052604090205490565b34801561049d575f5ffd5b506104a66107ee565b005b3480156104b3575f5ffd5b5061034073b43b5978dd1b07f043f6e0492e0a4c7a4c7ecccc81565b3480156104da575f5ffd5b5061034073b1d4eec06357d9ddc1498eedd6c9bac62b2a442381565b348015610501575f5ffd5b506104a6610801565b348015610515575f5ffd5b506005546001600160a01b0316610340565b348015610532575f5ffd5b506101f36108f9565b348015610546575f5ffd5b5061054f610908565b60408051938452602084019290925290820152606001610200565b348015610575575f5ffd5b50600654610340906001600160a01b031681565b348015610594575f5ffd5b506102286105a336600461161c565b61092e565b3480156105b3575f5ffd5b50610340738d8a0421964145cc11743a16277561cc68337ad281565b3480156105da575f5ffd5b5061027f6105e936600461169e565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b34801561061e575f5ffd5b5061034073cd2ac1880b4c48dac5b8c404bc7704e33a49b0ea81565b6104a661093b565b34801561064d575f5ffd5b506104a661065c36600461167e565b610af3565b34801561066c575f5ffd5b5061027f61067b3660046116cf565b600b6020525f908152604090205481565b60606003805461069b906116e6565b80601f01602080910402602001604051908101604052809291908181526020018280546106c7906116e6565b80156107125780601f106106e957610100808354040283529160200191610712565b820191905f5260205f20905b8154815290600101906020018083116106f557829003601f168201915b5050505050905090565b5f33610729818585610b30565b60019150505b92915050565b5f33610742858285610b42565b61074d858585610bbe565b506001949350505050565b6007545f906001600160401b0316810361077157505f90565b6007545f90610789906001600160401b031642611732565b905060788110156107a55761079f816078611732565b91505090565b61012c8110156107bb5761079f8161012c611732565b6103848110156107d15761079f81610384611732565b6104b08110156107e75761079f816104b0611732565b5f91505090565b6107f6610c1b565b6107ff5f610c48565b565b610809610c1b565b600654600160a01b90046001600160401b03161561086e5760405162461bcd60e51b815260206004820152601760248201527f74726164696e672d616c72656164792d656e61626c656400000000000000000060448201526064015b60405180910390fd5b600680546001600160401b0343818116600160a01b0267ffffffffffffffff60a01b1990931692909217909255600780544293841667ffffffffffffffff199091161790556040517f7920707bc1e04048b254e37287ad152443d9f95ea809f714fbee15fd3cc966d0926108e9928252602082015260400190565b60405180910390a16107ff6107ee565b60606004805461069b906116e6565b6007545f9081908190610923906001600160401b0316610c99565b925092509250909192565b5f33610729818585610bbe565b610943610c1b565b5f34116109845760405162461bcd60e51b815260206004820152600f60248201526e1b9bcb595d1a0b5c1c9bdd9a591959608a1b6044820152606401610865565b305f908152602081905260408120549060646109ac6af8277896582678ac0000006010611745565b6109b6919061175c565b9050808214610a075760405162461bcd60e51b815260206004820152601760248201527f6c69717569646974792d616c72656164792d61646465640000000000000000006044820152606401610865565b60405163f305d71960e01b8152306004820152602481018390525f60448201819052606482018190523360848301524260a48301529081908190737a250d5630b4cf539739df2c5dacb4c659f2488d9063f305d71990349060c40160606040518083038185885af1158015610a7e573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610aa3919061177b565b604080518481526020810184905290810182905292955090935091507fd7f28048575eead8851d024ead087913957dfb4fd1a02b4d1573f5352a5a2be39060600160405180910390a15050505050565b610afb610c1b565b6001600160a01b038116610b2457604051631e4fbdf760e01b81525f6004820152602401610865565b610b2d81610c48565b50565b610b3d8383836001610df2565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610bb85781811015610baa57604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610865565b610bb884848484035f610df2565b50505050565b6001600160a01b038316610be757604051634b637e8f60e11b81525f6004820152602401610865565b6001600160a01b038216610c105760405163ec442f0560e01b81525f6004820152602401610865565b610b3d838383610ec4565b6005546001600160a01b031633146107ff5760405163118cdaa760e01b8152336004820152602401610865565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f5f5f835f03610cb057505f915081905080610deb565b5f610cbb8542611732565b90506078811015610d0157611388610cdf60646af8277896582678ac00000061175c565b610cf560c86af8277896582678ac00000061175c565b93509350935050610deb565b61012c811015610d5457610dac6103e8610d276af8277896582678ac000000600f611745565b610d31919061175c565b612710610d4a6af8277896582678ac000000604b611745565b610cf5919061175c565b610384811015610d8d576107d0610d7760326af8277896582678ac00000061175c565b610cf560646af8277896582678ac00000061175c565b6104b0811015610dd5576103e86064610db26af8277896582678ac0000006003611745565b610dbc919061175c565b6103e8610d4a6af8277896582678ac000000600f611745565b5f6af8277896582678ac00000080935093509350505b9193909250565b6001600160a01b038416610e1b5760405163e602df0560e01b81525f6004820152602401610865565b6001600160a01b038316610e4457604051634a1406b160e11b81525f6004820152602401610865565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610bb857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610eb691815260200190565b60405180910390a350505050565b6006546007546001600160a01b03918216916001600160401b03821691600160401b900460ff1690868116841490861684148215610f1157610f07888888611330565b5050505050505050565b5f846001600160401b0316118015610f3d57506104b0610f3a6001600160401b03861642611732565b10155b15610f5f576007805468ff00000000000000001916600160401b179055600192505b5f5f5f610f74876001600160401b0316610c99565b9250925092508480610f835750835b1561101a575f876001600160401b03161180610fb657506001600160a01b038b165f9081526008602052604090205460ff165b80610fd857506001600160a01b038a165f9081526008602052604090205460ff165b61101a5760405162461bcd60e51b81526020600482015260136024820152721d1c98591a5b99cb5b9bdd0b595b98589b1959606a1b6044820152606401610865565b84801561103f57506001600160a01b038a165f9081526008602052604090205460ff16155b156112ad57808911158061105d57506af8277896582678ac00000081145b61109c5760405162461bcd60e51b815260206004820152601060248201526f1b585e0b589d5e4b595e18d95959195960821b6044820152606401610865565b851580156110c257506001600160a01b038a165f9081526009602052604090205460ff16155b1561113457816110e68b6001600160a01b03165f9081526020819052604090205490565b6110f0908b6117a6565b11156111345760405162461bcd60e51b81526020600482015260136024820152721b585e0b5dd85b1b195d0b595e18d959591959606a1b6044820152606401610865565b5f876001600160401b031611801561115e5750601e61115c6001600160401b03891642611732565b105b1561127457325f908152600a602090815260408083204384529091529020546002116111cc5760405162461bcd60e51b815260206004820152601b60248201527f6d61782d7478732d7065722d6f726967696e2d657863656564656400000000006044820152606401610865565b325f908152600a6020908152604080832043845290915281208054916111f1836117b9565b9091555050435f908152600b60205260409020546014116112545760405162461bcd60e51b815260206004820152601a60248201527f6d61782d7478732d7065722d626c6f636b2d65786365656465640000000000006044820152606401610865565b435f908152600b6020526040812080549161126e836117b9565b91905055505b82156112ad575f612710611288858c611745565b611292919061175c565b905061129e818b611732565b99506112ab8c3083611330565b505b8380156112d257506001600160a01b038b165f9081526008602052604090205460ff16155b15611318578215611310575f6127106112eb858c611745565b6112f5919061175c565b9050611301818b611732565b995061130e8c3083611330565b505b611318611456565b6113238b8b8b611330565b5050505050505050505050565b6001600160a01b03831661135a578060025f82825461134f91906117a6565b909155506113ca9050565b6001600160a01b0383165f90815260208190526040902054818110156113ac5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610865565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166113e657600280548290039055611404565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161144991815260200190565b60405180910390a3505050565b305f908152602081905260408120549061147d6127106af8277896582678ac00000061175c565b90508082101561148b575050565b5f6114a36103e86af8277896582678ac00000061175c565b9050808311156114b1578092505b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106114e4576114e46117d1565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611538576115386117d1565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906115a39087905f90869073d0f33e2ada4075c7a0711ad138215915817aeebb9042906004016117e5565b5f604051808303815f87803b1580156115ba575f5ffd5b505af1158015610f07573d5f5f3e3d5ffd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114611617575f5ffd5b919050565b5f5f6040838503121561162d575f5ffd5b61163683611601565b946020939093013593505050565b5f5f5f60608486031215611656575f5ffd5b61165f84611601565b925061166d60208501611601565b929592945050506040919091013590565b5f6020828403121561168e575f5ffd5b61169782611601565b9392505050565b5f5f604083850312156116af575f5ffd5b6116b883611601565b91506116c660208401611601565b90509250929050565b5f602082840312156116df575f5ffd5b5035919050565b600181811c908216806116fa57607f821691505b60208210810361171857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561072f5761072f61171e565b808202811582820484141761072f5761072f61171e565b5f8261177657634e487b7160e01b5f52601260045260245ffd5b500490565b5f5f5f6060848603121561178d575f5ffd5b5050815160208301516040909301519094929350919050565b8082018082111561072f5761072f61171e565b5f600182016117ca576117ca61171e565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b818110156118355783516001600160a01b031683526020938401939092019160010161180e565b50506001600160a01b03959095166060840152505060800152939250505056fea2646970667358221220d484deb78c11f520c159477ef13f20fc0a9dc161145e8056cd4a2a0d1179b54164736f6c634300081c0033

Verified Source Code Full Match

Compiler: v0.8.28+commit.7893614a EVM: prague Optimization: Yes (200 runs)
Token.sol 290 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;

/*
 *
 *     ███████╗██╗  ██╗██╗████████╗██████╗  █████╗ ██████╗
 *     ██╔════╝╚██╗██╔╝██║╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗
 *     █████╗   ╚███╔╝ ██║   ██║   ██████╔╝███████║██║  ██║
 *     ██╔══╝   ██╔██╗ ██║   ██║   ██╔═══╝ ██╔══██║██║  ██║
 *     ███████╗██╔╝ ██╗██║   ██║   ██║     ██║  ██║██████╔╝
 *     ╚══════╝╚═╝  ╚═╝╚═╝   ╚═╝   ╚═╝     ╚═╝  ╚═╝╚═════╝
 *
 *     ========================================
 *     Website:  https://exitpad.io
 *     Twitter:  https://x.com/Exitpad
 *     Telegram: https://t.me/Exitpad
 *     Docs:     https://exitpad.gitbook.io/exitpad
 *     ========================================
 *
 */

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";

contract Token is ERC20, Ownable {
    uint256 public constant MAX_SUPPLY = 300_000_000 ether;

    address public constant MARKETING_WALLET = 0x8d8A0421964145CC11743a16277561CC68337AD2;
    address public constant DEVELOPMENT_FUND = 0xB1D4eEC06357d9ddc1498eeDD6C9baC62B2a4423;
    address public constant CORE_WALLET = 0x9da8f7a5855Ecd66A4e81D517027d4AF24Ea4582;
    address public constant ADVISOR_WALLET = 0xB43b5978dD1b07F043f6e0492E0A4C7a4C7ECCCc;
    address public constant COMMUNITY_WALLET = 0xcd2aC1880b4C48dAC5B8C404bC7704E33a49B0ea;
    address public constant TREASURY_WALLET = 0xc849254c797C9f3f67aE6ACcc53De2414c64E43d;

    address public constant FEE_WALLET = 0xd0F33e2aDA4075c7A0711ad138215915817AeeBb;

    address public pair;

    IUniswapV2Router02 private constant _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    address private immutable _weth;

    // Packed into single storage slot (8 + 8 + 1 = 17 bytes)
    uint64 public startBlock;
    uint64 public startBlockTime;
    bool public limitsExpired;

    mapping(address account => bool) public isExcludedFromFees;
    mapping(address account => bool) public isExcludedFromLimits;
    mapping(address origin => mapping(uint256 blockNumber => uint256 txCount)) public buyTxsPerBlockPerOrigin;
    mapping(uint256 blockNumber => uint256 txCount) public buyTxsPerBlock;

    uint256 private constant _maxBuyTxsPerBlockPerOrigin = 2;
    uint256 private constant _maxBuyTxsPerBlock = 20;
    uint256 private constant _antiBotDuration = 30; // 30 seconds

    event TradingEnabled(uint256 blockNumber, uint256 timestamp);
    event LiquidityAdded(uint256 tokenAmount, uint256 ethAmount, uint256 lpTokens);

    constructor(string memory name, string memory symbol) ERC20(name, symbol) Ownable(msg.sender) {
        _weth = _router.WETH();

        // Create pair
        pair = IUniswapV2Factory(_router.factory()).createPair(address(this), _weth);

        // Exclusions
        _setExclusions(msg.sender, true);
        _setExclusions(address(this), true);
        _setExclusions(pair, true);
        _setExclusions(MARKETING_WALLET, true);
        _setExclusions(DEVELOPMENT_FUND, true);
        _setExclusions(CORE_WALLET, true);
        _setExclusions(ADVISOR_WALLET, true);
        _setExclusions(COMMUNITY_WALLET, true);
        _setExclusions(TREASURY_WALLET, true);

        uint256 lpAmount = (MAX_SUPPLY * 16) / 100;

        _mint(address(this), lpAmount);
        _mint(MARKETING_WALLET, (MAX_SUPPLY * 6) / 100);
        _mint(DEVELOPMENT_FUND, (MAX_SUPPLY * 17) / 100);
        _mint(CORE_WALLET, (MAX_SUPPLY * 17) / 100);
        _mint(ADVISOR_WALLET, (MAX_SUPPLY * 6) / 100);
        _mint(COMMUNITY_WALLET, (MAX_SUPPLY * 6) / 100);
        _mint(TREASURY_WALLET, (MAX_SUPPLY * 19) / 100);
        _mint(msg.sender, (MAX_SUPPLY * 13) / 100); // Migration allocation to deployer

        // Approve router for liquidity
        _approve(address(this), address(_router), type(uint256).max);
    }

    /// @notice Adds initial liquidity to the Uniswap pair
    /// @dev Must be called once after deployment with ETH for liquidity
    function addLiquidity() external payable onlyOwner {
        require(msg.value > 0, "no-eth-provided");

        // Ensure this is the first call (contract should have exactly LP allocation)
        uint256 lpAmount = balanceOf(address(this));
        uint256 expectedLPAmount = (MAX_SUPPLY * 16) / 100;
        require(lpAmount == expectedLPAmount, "liquidity-already-added");

        (uint256 tokenAmount, uint256 ethAmount, uint256 liquidity) =
            _router.addLiquidityETH{value: msg.value}(address(this), lpAmount, 0, 0, msg.sender, block.timestamp);
        emit LiquidityAdded(tokenAmount, ethAmount, liquidity);
    }

    function enableTrading() external onlyOwner {
        require(startBlock == 0, "trading-already-enabled");
        startBlock = uint64(block.number);
        startBlockTime = uint64(block.timestamp);
        emit TradingEnabled(block.number, block.timestamp);

        // Renounce ownership - contract is now fully autonomous
        renounceOwnership();
    }

    /// @notice Returns current fee (in bps), max wallet, and max buy amounts
    function getCurrentLimits() external view returns (uint256 feeBps, uint256 maxWallet, uint256 maxBuy) {
        return _getCurrentLimits(startBlockTime);
    }

    /// @notice Returns seconds until next fee tier reduction
    function secondsUntilNextTier() external view returns (uint256) {
        if (startBlockTime == 0) return 0;

        uint256 elapsed = block.timestamp - startBlockTime;

        if (elapsed < 120) return 120 - elapsed;
        if (elapsed < 300) return 300 - elapsed;
        if (elapsed < 900) return 900 - elapsed;
        if (elapsed < 1200) return 1200 - elapsed;

        return 0;
    }

    function _setExclusions(address account, bool excluded) internal {
        isExcludedFromFees[account] = excluded;
        isExcludedFromLimits[account] = excluded;
    }

    function _getCurrentLimits(uint256 _startBlockTime)
        internal
        view
        returns (uint256 feeBps, uint256 maxWallet, uint256 maxBuy)
    {
        if (_startBlockTime == 0) {
            return (0, 0, 0);
        }

        uint256 elapsed = block.timestamp - _startBlockTime;

        // 0-2 minutes
        if (elapsed < 120) {
            return (
                5000, // 50% fee
                MAX_SUPPLY / 100, // 1% max wallet
                MAX_SUPPLY / 200 // 0.5% max buy
            );
        }

        // 2-5 minutes
        if (elapsed < 300) {
            return
                (
                    3500, // 35% fee
                    (MAX_SUPPLY * 15) / 1000, // 1.5% max wallet
                    (MAX_SUPPLY * 75) / 10000 // 0.75% max buy
                );
        }

        // 5-15 minutes
        if (elapsed < 900) {
            return (
                2000, // 20% fee
                MAX_SUPPLY / 50, // 2% max wallet
                MAX_SUPPLY / 100 // 1% max buy
            );
        }

        // 15-20 minutes
        if (elapsed < 1200) {
            return (
                1000, // 10% fee
                (MAX_SUPPLY * 3) / 100, // 3% max wallet
                (MAX_SUPPLY * 15) / 1000 // 1.5% max buy
            );
        }

        // After 20 minutes - no fees, no limits
        return (0, MAX_SUPPLY, MAX_SUPPLY);
    }

    function _update(address from, address to, uint256 value) internal override {
        // Cache storage reads
        address _pair = pair;
        uint64 _startBlockTime = startBlockTime;
        bool _limitsExpired = limitsExpired;

        bool isBuy = from == _pair;
        bool isSell = to == _pair;

        // Fast path: after limits expire, no fees or limits - just transfer
        if (_limitsExpired) {
            super._update(from, to, value);
            return;
        }

        // Check if limits should expire (first transfer after 20 minutes)
        if (_startBlockTime > 0 && block.timestamp - _startBlockTime >= 1200) {
            limitsExpired = true;
            _limitsExpired = true;
        }

        (uint256 feeBps, uint256 maxWallet, uint256 maxBuy) = _getCurrentLimits(_startBlockTime);

        // Trading enabled check
        if (isBuy || isSell) {
            require(_startBlockTime > 0 || isExcludedFromFees[from] || isExcludedFromFees[to], "trading-not-enabled");
        }

        // Buy logic
        if (isBuy && !isExcludedFromFees[to]) {
            // Max buy per transaction
            require(value <= maxBuy || maxBuy == MAX_SUPPLY, "max-buy-exceeded");

            // Max wallet check (only on buys, skip if limits expired)
            if (!_limitsExpired && !isExcludedFromLimits[to]) {
                require(value + balanceOf(to) <= maxWallet, "max-wallet-exceeded");
            }

            // Anti-bot: limit transactions per block (first 30 seconds)
            if (_startBlockTime > 0 && block.timestamp - _startBlockTime < _antiBotDuration) {
                require(
                    buyTxsPerBlockPerOrigin[tx.origin][block.number] < _maxBuyTxsPerBlockPerOrigin,
                    "max-txs-per-origin-exceeded"
                );
                buyTxsPerBlockPerOrigin[tx.origin][block.number]++;

                require(buyTxsPerBlock[block.number] < _maxBuyTxsPerBlock, "max-txs-per-block-exceeded");
                buyTxsPerBlock[block.number]++;
            }

            // Apply buy fee
            if (feeBps > 0) {
                uint256 fee = (value * feeBps) / 10000;
                value -= fee;
                super._update(from, address(this), fee);
            }
        }

        // Sell logic
        if (isSell && !isExcludedFromFees[from]) {
            // Apply sell fee
            if (feeBps > 0) {
                uint256 fee = (value * feeBps) / 10000;
                value -= fee;
                super._update(from, address(this), fee);
            }

            // Swap accumulated fees to ETH
            _swapTokensForEth();
        }

        super._update(from, to, value);
    }

    function _swapTokensForEth() internal {
        uint256 tokenAmount = balanceOf(address(this));

        // Minimum threshold: 0.01% of supply (~30k tokens) to avoid wasting gas on tiny swaps
        uint256 minThreshold = MAX_SUPPLY / 10000;
        if (tokenAmount < minThreshold) {
            return;
        }

        // Cap at 0.1% of supply per swap (~300k tokens) to limit price impact
        uint256 maxSwap = MAX_SUPPLY / 1000;
        if (tokenAmount > maxSwap) {
            tokenAmount = maxSwap;
        }

        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _weth;

        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount, 0, path, FEE_WALLET, block.timestamp);
    }
}
ERC20.sol 305 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
 *
 * 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].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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 ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * Both 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

    /// @inheritdoc IERC20
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /// @inheritdoc IERC20
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /// @inheritdoc IERC20
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * 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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation sets the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the `transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}
Ownable.sol 100 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

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

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    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`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}
IUniswapV2Router02.sol 44 lines
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
IUniswapV2Factory.sol 17 lines
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 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);
}
IERC20Metadata.sol 26 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity >=0.6.2;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
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);
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
draft-IERC6093.sol 162 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol)

pragma solidity >=0.8.4;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-721.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
IUniswapV2Router01.sol 95 lines
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

Read Contract

ADVISOR_WALLET 0x8661ca0e → address
COMMUNITY_WALLET 0xe0cad9b1 → address
CORE_WALLET 0x442ff276 → address
DEVELOPMENT_FUND 0x883a58a3 → address
FEE_WALLET 0x44cd7948 → address
MARKETING_WALLET 0xc6859d07 → address
MAX_SUPPLY 0x32cb6b0c → uint256
TREASURY_WALLET 0x5daf3146 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTxsPerBlock 0xf495b3e9 → uint256
buyTxsPerBlockPerOrigin 0x5dc95d48 → uint256
decimals 0x313ce567 → uint8
getCurrentLimits 0x9af3c598 → uint256, uint256, uint256
isExcludedFromFees 0x4fbee193 → bool
isExcludedFromLimits 0x5cce86cd → bool
limitsExpired 0x41e4dac5 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
secondsUntilNextTier 0x390c45d6 → uint256
startBlock 0x48cd4cb1 → uint64
startBlockTime 0x0c18d4ce → uint64
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 7 functions

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

addLiquidity 0xe8078d94
No parameters
approve 0x095ea7b3
address spender
uint256 value
returns: bool
enableTrading 0x8a8c523c
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address