Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xce7b6E63D1EFc8cE2973A38f9d66760B295c0045
Balance 0 ETH
Nonce 1
Code Size 6387 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

6387 bytes
0x6080604052600436106101c5575f3560e01c80635dc95d48116100f2578063a8aa1b3111610092578063e0cad9b111610062578063e0cad9b1146105af578063e8078d94146105d6578063f2fde38b146105de578063f495b3e9146105fd575f5ffd5b8063a8aa1b3114610506578063a9059cbb14610525578063c6859d0714610544578063dd62ed3e1461056b575f5ffd5b80638a8c523c116100cd5780638a8c523c146104925780638da5cb5b146104a657806395d89b41146104c35780639af3c598146104d7575f5ffd5b80635dc95d481461041257806370a0823114610448578063715018a61461047c575f5ffd5b806332cb6b0c1161016857806348cd4cb11161013857806348cd4cb1146103695780634fbee1931461038f5780635cce86cd146103bd5780635daf3146146103eb575f5ffd5b806332cb6b0c146102f0578063390c45d61461030e57806341e4dac51461032257806344cd794814610342575f5ffd5b806318160ddd116101a357806318160ddd1461025957806323b872dd146102775780632b905bf614610296578063313ce567146102d5575f5ffd5b806306fdde03146101c9578063095ea7b3146101f35780630c18d4ce14610222575b5f5ffd5b3480156101d4575f5ffd5b506101dd610628565b6040516101ea9190611634565b60405180910390f35b3480156101fe575f5ffd5b5061021261020d366004611684565b6106b8565b60405190151581526020016101ea565b34801561022d575f5ffd5b50600754610241906001600160401b031681565b6040516001600160401b0390911681526020016101ea565b348015610264575f5ffd5b506002545b6040519081526020016101ea565b348015610282575f5ffd5b506102126102913660046116ac565b6106d1565b3480156102a1575f5ffd5b506102bd73f2afc31163367fc08452254b05d4bf8592141bf781565b6040516001600160a01b0390911681526020016101ea565b3480156102e0575f5ffd5b50604051601281526020016101ea565b3480156102fb575f5ffd5b506102696af8277896582678ac00000081565b348015610319575f5ffd5b506102696106f4565b34801561032d575f5ffd5b5060075461021290600160401b900460ff1681565b34801561034d575f5ffd5b506102bd7377b6e9f7c456de68842d18ce372f0c029306256381565b348015610374575f5ffd5b5060065461024190600160a01b90046001600160401b031681565b34801561039a575f5ffd5b506102126103a93660046116e6565b60086020525f908152604090205460ff1681565b3480156103c8575f5ffd5b506102126103d73660046116e6565b60096020525f908152604090205460ff1681565b3480156103f6575f5ffd5b506102bd735276bd1a99f537376be7c64486f7611ce3430b5581565b34801561041d575f5ffd5b5061026961042c366004611684565b600a60209081525f928352604080842090915290825290205481565b348015610453575f5ffd5b506102696104623660046116e6565b6001600160a01b03165f9081526020819052604090205490565b348015610487575f5ffd5b5061049061078a565b005b34801561049d575f5ffd5b5061049061079d565b3480156104b1575f5ffd5b506005546001600160a01b03166102bd565b3480156104ce575f5ffd5b506101dd610895565b3480156104e2575f5ffd5b506104eb6108a4565b604080519384526020840192909252908201526060016101ea565b348015610511575f5ffd5b506006546102bd906001600160a01b031681565b348015610530575f5ffd5b5061021261053f366004611684565b6108ca565b34801561054f575f5ffd5b506102bd736d79a73291fd11d8ca1eea4a5e321c0fa4f9c96681565b348015610576575f5ffd5b50610269610585366004611706565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b3480156105ba575f5ffd5b506102bd736dc4ec51f8d774c21832a92051710644418ba85a81565b6104906108d7565b3480156105e9575f5ffd5b506104906105f83660046116e6565b610a8f565b348015610608575f5ffd5b50610269610617366004611737565b600b6020525f908152604090205481565b6060600380546106379061174e565b80601f01602080910402602001604051908101604052809291908181526020018280546106639061174e565b80156106ae5780601f10610685576101008083540402835291602001916106ae565b820191905f5260205f20905b81548152906001019060200180831161069157829003601f168201915b5050505050905090565b5f336106c5818585610acc565b60019150505b92915050565b5f336106de858285610ade565b6106e9858585610b5a565b506001949350505050565b6007545f906001600160401b0316810361070d57505f90565b6007545f90610725906001600160401b03164261179a565b905060788110156107415761073b81607861179a565b91505090565b61012c8110156107575761073b8161012c61179a565b61038481101561076d5761073b8161038461179a565b6107088110156107835761073b8161070861179a565b5f91505090565b610792610bb7565b61079b5f610be4565b565b6107a5610bb7565b600654600160a01b90046001600160401b03161561080a5760405162461bcd60e51b815260206004820152601760248201527f74726164696e672d616c72656164792d656e61626c656400000000000000000060448201526064015b60405180910390fd5b600680546001600160401b0343818116600160a01b0267ffffffffffffffff60a01b1990931692909217909255600780544293841667ffffffffffffffff199091161790556040517f7920707bc1e04048b254e37287ad152443d9f95ea809f714fbee15fd3cc966d092610885928252602082015260400190565b60405180910390a161079b61078a565b6060600480546106379061174e565b6007545f90819081906108bf906001600160401b0316610c35565b925092509250909192565b5f336106c5818585610b5a565b6108df610bb7565b5f34116109205760405162461bcd60e51b815260206004820152600f60248201526e1b9bcb595d1a0b5c1c9bdd9a591959608a1b6044820152606401610801565b305f908152602081905260408120549060646109486af8277896582678ac00000060196117ad565b61095291906117c4565b90508082146109a35760405162461bcd60e51b815260206004820152601760248201527f6c69717569646974792d616c72656164792d61646465640000000000000000006044820152606401610801565b60405163f305d71960e01b8152306004820152602481018390525f60448201819052606482018190523360848301524260a48301529081908190737a250d5630b4cf539739df2c5dacb4c659f2488d9063f305d71990349060c40160606040518083038185885af1158015610a1a573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610a3f91906117e3565b604080518481526020810184905290810182905292955090935091507fd7f28048575eead8851d024ead087913957dfb4fd1a02b4d1573f5352a5a2be39060600160405180910390a15050505050565b610a97610bb7565b6001600160a01b038116610ac057604051631e4fbdf760e01b81525f6004820152602401610801565b610ac981610be4565b50565b610ad98383836001610d90565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811015610b545781811015610b4657604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610801565b610b5484848484035f610d90565b50505050565b6001600160a01b038316610b8357604051634b637e8f60e11b81525f6004820152602401610801565b6001600160a01b038216610bac5760405163ec442f0560e01b81525f6004820152602401610801565b610ad9838383610e62565b6005546001600160a01b0316331461079b5760405163118cdaa760e01b8152336004820152602401610801565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f5f5f835f03610c4c57505f915081905080610d89565b5f610c57854261179a565b90506078811015610c9d57611388610c7b60646af8277896582678ac0000006117c4565b610c9160c86af8277896582678ac0000006117c4565b93509350935050610d89565b61012c811015610cf057610dac6103e8610cc36af8277896582678ac000000600f6117ad565b610ccd91906117c4565b612710610ce66af8277896582678ac000000604b6117ad565b610c9191906117c4565b610384811015610d29576107d0610d1360326af8277896582678ac0000006117c4565b610c9160646af8277896582678ac0000006117c4565b610708811015610d71576103e86064610d4e6af8277896582678ac00000060036117ad565b610d5891906117c4565b6103e8610ce66af8277896582678ac000000600f6117ad565b6101f46af8277896582678ac00000080935093509350505b9193909250565b6001600160a01b038416610db95760405163e602df0560e01b81525f6004820152602401610801565b6001600160a01b038316610de257604051634a1406b160e11b81525f6004820152602401610801565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610b5457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610e5491815260200190565b60405180910390a350505050565b6006546007546001600160a01b03918216916001600160401b03821691600160401b900460ff1690868116841490861684148215610f7957818015610ebf57506001600160a01b0387165f9081526008602052604090205460ff16155b15610efd575f612710610ed4886101f46117ad565b610ede91906117c4565b9050610eea818861179a565b9650610ef7893083611398565b50610f64565b808015610f2257506001600160a01b0388165f9081526008602052604090205460ff16155b15610f64575f612710610f37886101f46117ad565b610f4191906117c4565b9050610f4d818861179a565b9650610f5a893083611398565b610f626114be565b505b610f6f888888611398565b5050505050505050565b5f846001600160401b0316118015610fa55750610708610fa26001600160401b0386164261179a565b10155b15610fc7576007805468ff00000000000000001916600160401b179055600192505b5f5f5f610fdc876001600160401b0316610c35565b9250925092508480610feb5750835b15611082575f876001600160401b0316118061101e57506001600160a01b038b165f9081526008602052604090205460ff165b8061104057506001600160a01b038a165f9081526008602052604090205460ff165b6110825760405162461bcd60e51b81526020600482015260136024820152721d1c98591a5b99cb5b9bdd0b595b98589b1959606a1b6044820152606401610801565b8480156110a757506001600160a01b038a165f9081526008602052604090205460ff16155b156113155780891115806110c557506af8277896582678ac00000081145b6111045760405162461bcd60e51b815260206004820152601060248201526f1b585e0b589d5e4b595e18d95959195960821b6044820152606401610801565b8515801561112a57506001600160a01b038a165f9081526009602052604090205460ff16155b1561119c578161114e8b6001600160a01b03165f9081526020819052604090205490565b611158908b61180e565b111561119c5760405162461bcd60e51b81526020600482015260136024820152721b585e0b5dd85b1b195d0b595e18d959591959606a1b6044820152606401610801565b5f876001600160401b03161180156111c65750601e6111c46001600160401b0389164261179a565b105b156112dc57325f908152600a602090815260408083204384529091529020546002116112345760405162461bcd60e51b815260206004820152601b60248201527f6d61782d7478732d7065722d6f726967696e2d657863656564656400000000006044820152606401610801565b325f908152600a60209081526040808320438452909152812080549161125983611821565b9091555050435f908152600b60205260409020546014116112bc5760405162461bcd60e51b815260206004820152601a60248201527f6d61782d7478732d7065722d626c6f636b2d65786365656465640000000000006044820152606401610801565b435f908152600b602052604081208054916112d683611821565b91905055505b8215611315575f6127106112f0858c6117ad565b6112fa91906117c4565b9050611306818b61179a565b99506113138c3083611398565b505b83801561133a57506001600160a01b038b165f9081526008602052604090205460ff16155b15611380578215611378575f612710611353858c6117ad565b61135d91906117c4565b9050611369818b61179a565b99506113768c3083611398565b505b6113806114be565b61138b8b8b8b611398565b5050505050505050505050565b6001600160a01b0383166113c2578060025f8282546113b7919061180e565b909155506114329050565b6001600160a01b0383165f90815260208190526040902054818110156114145760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610801565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661144e5760028054829003905561146c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516114b191815260200190565b60405180910390a3505050565b305f90815260208190526040812054906114e56127106af8277896582678ac0000006117c4565b9050808210156114f3575050565b5f61150b6103e86af8277896582678ac0000006117c4565b905080831115611519578092505b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061154c5761154c611839565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2816001815181106115a0576115a0611839565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac9479061160b9087905f9086907377b6e9f7c456de68842d18ce372f0c029306256390429060040161184d565b5f604051808303815f87803b158015611622575f5ffd5b505af1158015610f6f573d5f5f3e3d5ffd5b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461167f575f5ffd5b919050565b5f5f60408385031215611695575f5ffd5b61169e83611669565b946020939093013593505050565b5f5f5f606084860312156116be575f5ffd5b6116c784611669565b92506116d560208501611669565b929592945050506040919091013590565b5f602082840312156116f6575f5ffd5b6116ff82611669565b9392505050565b5f5f60408385031215611717575f5ffd5b61172083611669565b915061172e60208401611669565b90509250929050565b5f60208284031215611747575f5ffd5b5035919050565b600181811c9082168061176257607f821691505b60208210810361178057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156106cb576106cb611786565b80820281158282048414176106cb576106cb611786565b5f826117de57634e487b7160e01b5f52601260045260245ffd5b500490565b5f5f5f606084860312156117f5575f5ffd5b5050815160208301516040909301519094929350919050565b808201808211156106cb576106cb611786565b5f6001820161183257611832611786565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b8181101561189d5783516001600160a01b0316835260209384019390920191600101611876565b50506001600160a01b03959095166060840152505060800152939250505056fea2646970667358221220b3c04db766934f3ade739775ee1f27daf054698c0f0cbff8217137346970710064736f6c634300081c0033

Verified Source Code Full Match

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

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 = 0x6D79A73291FD11d8ca1eEa4a5e321c0fa4F9C966;
    address public constant TREASURY_WALLET = 0x5276bd1A99f537376Be7c64486F7611CE3430B55;
    address public constant COMMUNITY_WALLET = 0x6dC4EC51f8d774c21832a92051710644418BA85a;
    address public constant TEAM_WALLET = 0xf2AFc31163367fC08452254B05d4Bf8592141Bf7;
    address public constant FEE_WALLET = 0x77b6e9F7C456De68842D18cE372f0C0293062563;

    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(TREASURY_WALLET, true);
        _setExclusions(COMMUNITY_WALLET, true);
        _setExclusions(TEAM_WALLET, true);

        // Distribution:
        // 25% LP = 75M
        // 5% Marketing = 15M
        // 40% Treasury = 120M
        // 20% Community = 60M
        // 10% Team = 30M
        uint256 lpAmount = (MAX_SUPPLY * 25) / 100;

        _mint(address(this), lpAmount);
        _mint(MARKETING_WALLET, (MAX_SUPPLY * 5) / 100);
        _mint(TREASURY_WALLET, (MAX_SUPPLY * 40) / 100);
        _mint(COMMUNITY_WALLET, (MAX_SUPPLY * 20) / 100);
        _mint(TEAM_WALLET, (MAX_SUPPLY * 10) / 100);

        // 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 * 25) / 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 < 1800) return 1800 - 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-30 minutes
        if (elapsed < 1800) {
            return (
                1000, // 10% fee
                (MAX_SUPPLY * 3) / 100, // 3% max wallet
                (MAX_SUPPLY * 15) / 1000 // 1.5% max buy
            );
        }

        // After 30 minutes - fixed 5% fee, no limits
        return (500, 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, only fees matter (no limit checks needed)
        if (_limitsExpired) {
            // Apply fee if not excluded
            if (isBuy && !isExcludedFromFees[to]) {
                uint256 fee = (value * 500) / 10000; // 5% fee
                value -= fee;
                super._update(from, address(this), fee);
            } else if (isSell && !isExcludedFromFees[from]) {
                uint256 fee = (value * 500) / 10000; // 5% fee
                value -= fee;
                super._update(from, address(this), fee);
                _swapTokensForEth();
            }

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

        // Check if limits should expire (first transfer after 30 minutes)
        if (_startBlockTime > 0 && block.timestamp - _startBlockTime >= 1800) {
            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

COMMUNITY_WALLET 0xe0cad9b1 → address
FEE_WALLET 0x44cd7948 → address
MARKETING_WALLET 0xc6859d07 → address
MAX_SUPPLY 0x32cb6b0c → uint256
TEAM_WALLET 0x2b905bf6 → address
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