Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xFefE274dE1983102d4565b7f14018602D2c830b9
Balance 0 ETH
Nonce 1
Code Size 9167 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

9167 bytes
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806388e765ff11610104578063a7310b58116100a2578063db0e1bdf11610071578063db0e1bdf14610503578063dd62ed3e14610521578063f2fde38b14610551578063f34eb0b81461056d576101da565b8063a7310b5814610467578063a9059cbb14610499578063b7bda68f146104c9578063d01dd6d2146104e7576101da565b80638f3b957f116100de5780638f3b957f146103f1578063918f86741461040f57806395d89b411461042d578063a1883d261461044b576101da565b806388e765ff146103ab5780638a8c523c146103c95780638da5cb5b146103d3576101da565b8063241b21eb1161017c57806370a082311161014b57806370a0823114610339578063715018a614610369578063719f75c51461037357806380c581d11461038f576101da565b8063241b21eb146102d5578063313ce567146102df57806349bd5a5e146102fd5780634ada218b1461031b576101da565b806310b343e7116101b857806310b343e71461024b57806318160ddd146102695780631ff32a6e1461028757806323b872dd146102a5576101da565b806306fdde03146101df578063091f8454146101fd578063095ea7b31461021b575b600080fd5b6101e7610589565b6040516101f49190611aab565b60405180910390f35b61020561061b565b6040516102129190611ae6565b60405180910390f35b61023560048036038101906102309190611b90565b61062a565b6040516102429190611beb565b60405180910390f35b61025361064d565b6040516102609190611beb565b60405180910390f35b610271610660565b60405161027e9190611ae6565b60405180910390f35b61028f61066a565b60405161029c9190611ae6565b60405180910390f35b6102bf60048036038101906102ba9190611c06565b610670565b6040516102cc9190611beb565b60405180910390f35b6102dd61069f565b005b6102e7610740565b6040516102f49190611c75565b60405180910390f35b610305610749565b6040516103129190611c9f565b60405180910390f35b61032361076d565b6040516103309190611beb565b60405180910390f35b610353600480360381019061034e9190611cba565b610780565b6040516103609190611ae6565b60405180910390f35b6103716107c9565b005b61038d60048036038101906103889190611d13565b6107dd565b005b6103a960048036038101906103a49190611d13565b610891565b005b6103b3610945565b6040516103c09190611ae6565b60405180910390f35b6103d161094b565b005b6103db610970565b6040516103e89190611c9f565b60405180910390f35b6103f9610999565b6040516104069190611ae6565b60405180910390f35b61041761099f565b6040516104249190611ae6565b60405180910390f35b6104356109a5565b6040516104429190611aab565b60405180910390f35b61046560048036038101906104609190611cba565b610a37565b005b610481600480360381019061047c9190611cba565b610b29565b60405161049093929190611d53565b60405180910390f35b6104b360048036038101906104ae9190611b90565b610b7a565b6040516104c09190611beb565b60405180910390f35b6104d1610b9d565b6040516104de9190611c9f565b60405180910390f35b61050160048036038101906104fc9190611d13565b610bc3565b005b61050b610cce565b6040516105189190611ae6565b60405180910390f35b61053b60048036038101906105369190611d8a565b610cdc565b6040516105489190611ae6565b60405180910390f35b61056b60048036038101906105669190611cba565b610d63565b005b61058760048036038101906105829190611dca565b610de9565b005b60606004805461059890611e26565b80601f01602080910402602001604051908101604052809291908181526020018280546105c490611e26565b80156106115780601f106105e657610100808354040283529160200191610611565b820191906000526020600020905b8154815290600101906020018083116105f457829003601f168201915b5050505050905090565b6a034f086f3b33b68400000081565b600080610635610dfb565b9050610642818585610e03565b600191505092915050565b600b60149054906101000a900460ff1681565b6000600354905090565b61019081565b60008061067b610dfb565b9050610688858285610e15565b610693858585610ea9565b60019150509392505050565b6106a7610f9d565b600b60149054906101000a900460ff16156106f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ee90611ea3565b60405180910390fd5b6001600b60146101000a81548160ff0219169083151502179055507f8b41de35dc6b2f5d666406ed563d79a882a772d0f33fdaa90eaf45543f04f65660405160405180910390a1565b60006012905090565b7f000000000000000000000000fd081976bc41afe2e8e82aee17f6def63acf53f381565b600b60159054906101000a900460ff1681565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6107d1610f9d565b6107db6000611024565b565b6107e5610f9d565b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160016101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f37ddb83c57306cf4a7e1d5fd89bd61315769b66997f105b1dc1adef3f1eccf2b826040516108859190611beb565b60405180910390a25050565b610899610f9d565b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f1d1828d49ecf2fd34a77f1ec24b3098991a6cd7d3733c384719bd155867ad877826040516109399190611beb565b60405180910390a25050565b60075481565b610953610f9d565b6001600b60156101000a81548160ff021916908315150217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61019081565b61271081565b6060600580546109b490611e26565b80601f01602080910402602001604051908101604052809291908181526020018280546109e090611e26565b8015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b820191906000526020600020905b815481529060010190602001808311610a1057829003601f168201915b5050505050905090565b610a3f610f9d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa590611f0f565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f08c94e54371efaf317c231c7f5ddefe44ec016b884c58c475117f1d8cd5d60ae81604051610b1e9190611c9f565b60405180910390a150565b60066020528060005260406000206000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16908060000160029054906101000a900460ff16905083565b600080610b85610dfb565b9050610b92818585610ea9565b600191505092915050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610bcb610f9d565b8015610c2257600b60149054906101000a900460ff1615610c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1890611f7b565b60405180910390fd5b5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160026101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f921341769c2075d1ae425396063d5ab65ff5006c4bc0bd0821e50ce51fb6012382604051610cc29190611beb565b60405180910390a25050565b6969e10de76676d080000081565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610d6b610f9d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ddd5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610dd49190611c9f565b60405180910390fd5b610de681611024565b50565b610df1610f9d565b8060078190555050565b600033905090565b610e1083838360016110e8565b505050565b6000610e218484610cdc565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ea35781811015610e93578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610e8a93929190611f9b565b60405180910390fd5b610ea2848484840360006110e8565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f1b5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610f129190611c9f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f8d5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f849190611c9f565b60405180910390fd5b610f988383836112bf565b505050565b610fa5610dfb565b73ffffffffffffffffffffffffffffffffffffffff16610fc3610970565b73ffffffffffffffffffffffffffffffffffffffff161461102257610fe6610dfb565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016110199190611c9f565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361115a5760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016111519190611c9f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036111cc5760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016111c39190611c9f565b60405180910390fd5b81600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156112b9578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112b09190611ae6565b60405180910390a35b50505050565b6000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900460ff16151515158152505090506000600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060600160405290816000820160009054906101000a900460ff161515151581526020016000820160019054906101000a900460ff161515151581526020016000820160029054906101000a900460ff1615151515815250509050816040015115801561141157508060400151155b611450576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114479061201e565b60405180910390fd5b61145b8585856117d6565b61146582826119fe565b158061147f57508160000151801561147e575080600001515b5b1561148b5750506117d1565b60008260000151156115df57600b60159054906101000a900460ff166114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd9061208a565b60405180910390fd5b612710610190856114f791906120d9565b611501919061214a565b90506007548185611512919061217b565b1115611553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154a90612221565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167f532fcbcddc07ca8480be9b7111dcb7d530d63ae65a68283d808c4016d4fa592a836040516115d29190611ae6565b60405180910390a3611736565b81600001511561173557600b60159054906101000a900460ff16611638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162f9061208a565b60405180910390fd5b6127106101908561164991906120d9565b611653919061214a565b90506969e10de76676d0800000818561166c919061217b565b11156116ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a4906122b3565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fc46a16a84e30033fd7115642681df05ba5aba3f0e5f93e8966dce06bf841b7828360405161172c9190611ae6565b60405180910390a35b5b600081111561176d5761176c85600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836117d6565b5b81602001516117cd576a034f086f3b33b68400000061178b86610780565b11156117cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c390612345565b60405180910390fd5b5b5050505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361182857806003600082825461181c9190612365565b925050819055506118fd565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156118b5578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016118ac93929190611f9b565b60405180910390fd5b818103600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119465780600360008282540392505081905550611994565b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516119f19190611ae6565b60405180910390a3505050565b600082602001511580611a1357508160200151155b905092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611a55578082015181840152602081019050611a3a565b60008484015250505050565b6000601f19601f8301169050919050565b6000611a7d82611a1b565b611a878185611a26565b9350611a97818560208601611a37565b611aa081611a61565b840191505092915050565b60006020820190508181036000830152611ac58184611a72565b905092915050565b6000819050919050565b611ae081611acd565b82525050565b6000602082019050611afb6000830184611ad7565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611b3182611b06565b9050919050565b611b4181611b26565b8114611b4c57600080fd5b50565b600081359050611b5e81611b38565b92915050565b611b6d81611acd565b8114611b7857600080fd5b50565b600081359050611b8a81611b64565b92915050565b60008060408385031215611ba757611ba6611b01565b5b6000611bb585828601611b4f565b9250506020611bc685828601611b7b565b9150509250929050565b60008115159050919050565b611be581611bd0565b82525050565b6000602082019050611c006000830184611bdc565b92915050565b600080600060608486031215611c1f57611c1e611b01565b5b6000611c2d86828701611b4f565b9350506020611c3e86828701611b4f565b9250506040611c4f86828701611b7b565b9150509250925092565b600060ff82169050919050565b611c6f81611c59565b82525050565b6000602082019050611c8a6000830184611c66565b92915050565b611c9981611b26565b82525050565b6000602082019050611cb46000830184611c90565b92915050565b600060208284031215611cd057611ccf611b01565b5b6000611cde84828501611b4f565b91505092915050565b611cf081611bd0565b8114611cfb57600080fd5b50565b600081359050611d0d81611ce7565b92915050565b60008060408385031215611d2a57611d29611b01565b5b6000611d3885828601611b4f565b9250506020611d4985828601611cfe565b9150509250929050565b6000606082019050611d686000830186611bdc565b611d756020830185611bdc565b611d826040830184611bdc565b949350505050565b60008060408385031215611da157611da0611b01565b5b6000611daf85828601611b4f565b9250506020611dc085828601611b4f565b9150509250929050565b600060208284031215611de057611ddf611b01565b5b6000611dee84828501611b7b565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611e3e57607f821691505b602082108103611e5157611e50611df7565b5b50919050565b7f616c726561647920736574000000000000000000000000000000000000000000600082015250565b6000611e8d600b83611a26565b9150611e9882611e57565b602082019050919050565b60006020820190508181036000830152611ebc81611e80565b9050919050565b7f54617820616464726573732063616e6e6f74206265207a65726f000000000000600082015250565b6000611ef9601a83611a26565b9150611f0482611ec3565b602082019050919050565b60006020820190508181036000830152611f2881611eec565b9050919050565b7f426c61636b6c69737420616464207265737472696374656420666f7265766572600082015250565b6000611f65602083611a26565b9150611f7082611f2f565b602082019050919050565b60006020820190508181036000830152611f9481611f58565b9050919050565b6000606082019050611fb06000830186611c90565b611fbd6020830185611ad7565b611fca6040830184611ad7565b949350505050565b7f426c61636b6c6973746564000000000000000000000000000000000000000000600082015250565b6000612008600b83611a26565b915061201382611fd2565b602082019050919050565b6000602082019050818103600083015261203781611ffb565b9050919050565b7f54726164696e67206973206e6f7420656e61626c656421000000000000000000600082015250565b6000612074601783611a26565b915061207f8261203e565b602082019050919050565b600060208201905081810360008301526120a381612067565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006120e482611acd565b91506120ef83611acd565b92508282026120fd81611acd565b91508282048414831517612114576121136120aa565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061215582611acd565b915061216083611acd565b9250826121705761216f61211b565b5b828204905092915050565b600061218682611acd565b915061219183611acd565b92508282039050818111156121a9576121a86120aa565b5b92915050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61782060008201527f62757920616d6f756e7400000000000000000000000000000000000000000000602082015250565b600061220b602a83611a26565b9150612216826121af565b604082019050919050565b6000602082019050818103600083015261223a816121fe565b9050919050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61782060008201527f73656c6c20616d6f756e74000000000000000000000000000000000000000000602082015250565b600061229d602b83611a26565b91506122a882612241565b604082019050919050565b600060208201905081810360008301526122cc81612290565b9050919050565b7f5472616e7366657220616d6f756e74206578636565647320746865206d61782060008201527f686f6c64696e6720616d6f756e74000000000000000000000000000000000000602082015250565b600061232f602e83611a26565b915061233a826122d3565b604082019050919050565b6000602082019050818103600083015261235e81612322565b9050919050565b600061237082611acd565b915061237b83611acd565b9250828201905080821115612393576123926120aa565b5b9291505056fea264697066735822122014d584bc1664fc963be74486a60120f977e6f36703589949d52bf73c81b0c3a264736f6c63430008180033

Verified Source Code Full Match

Compiler: v0.8.24+commit.e11b9ed9 EVM: paris Optimization: No
SikaSwap.sol 179 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

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

contract SikaSwap is Ownable, ERC20 {
    struct AccountInfo {
        bool isLPPool;
        bool isLiquidityHolder;
        bool isBlackListed;
    }
    mapping(address => AccountInfo) public accountInfo;
    uint256 private constant TOTAL_SUPPLY = 127 * (1e6) * (1e18);
    uint256 public constant DENOMINATOR = 10000; // 100%
    uint256 public constant MAX_BUY_FEE_NUMERATOR = 400; // 4%
    uint256 public constant MAX_SELL_FEE_NUMERATOR = 400; // 4%

    uint256 public constant MAX_HOLD_AMOUNT = 4 * (1e6) * (1e18);
    uint256 public constant MAX_SELL_AMOUNT = 5 * (1e5) * (1e18);
    uint256 public maxBuyAmount = 4 * (1e6) * (1e18);

    // mainnet
    IFactory UNISWAP_FACTORY =
        IFactory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); // UNISWAP_FACTORY
    address UNISWAP_V2_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; // uniswapRouter
    address WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // wrapped ETH

    // Sepolia
    // IFactory constant UNISWAP_FACTORY =
    //     IFactory(0xB7f907f7A9eBC822a80BD25E224be42Ce0A698A0); // UNISWAP_FACTORY
    // address constant UNISWAP_V2_ROUTER = 0x425141165d3DE9FEC831896C016617a52363b687; // uniswapRouter
    // address constant WETH = 0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9; // wrapped ETH

    address immutable public uniswapV2Pair; // liquidity pool address

    address public taxAddress;
    bool public blacklistAddRestrictedForever;

    bool public tradingEnabled = false;

    /// @notice Emitted when a liquidity pool pair is updated.
    event LPPairSet(address indexed pair, bool enabled);

    /// @notice Emitted when an account is marked or unmarked as a liquidity holder (treasury, staking, etc).
    event LiquidityHolderSet(address indexed account, bool flag);

    event BlacklistSet(address indexed account, bool flag);

    /// @notice Emitted (once) when blacklist add is restricted forever.
    event BlacklistAddRestrictedForever();

    event TaxAddressSet(address _taxAddress);
    event BuyFeePaid(address indexed from, address indexed to, uint256 amount);
    event SellFeePaid(address indexed from, address indexed to, uint256 amount);

    constructor(address _taxAddress) ERC20("SikaSwap", "$SIKA") Ownable(msg.sender) {
        uniswapV2Pair = UNISWAP_FACTORY.createPair(address(this), WETH);

        setLiquidityHolder(msg.sender, true);
        setLiquidityHolder(_taxAddress, true);
        setLiquidityHolder(UNISWAP_V2_ROUTER, true);
        setLiquidityHolder(uniswapV2Pair, true);
        setLpPair(uniswapV2Pair, true);
        setTaxAddress(_taxAddress);
        _mint(msg.sender, TOTAL_SUPPLY);
    }

    // Setters with onlyOwner

    function setLpPair(address pair, bool enabled) public onlyOwner {
        accountInfo[pair].isLPPool = enabled;
        emit LPPairSet(pair, enabled);
    }

    function setLiquidityHolder(address account, bool flag) public onlyOwner {
        accountInfo[account].isLiquidityHolder = flag;
        emit LiquidityHolderSet(account, flag);
    }

    function setTaxAddress(address newTaxAddress) public onlyOwner {
        require(newTaxAddress != address(0), "Tax address cannot be zero");
        taxAddress = newTaxAddress;
        emit TaxAddressSet(newTaxAddress);
    }

    function restrictBlacklistAddForever() external onlyOwner {
        require(!blacklistAddRestrictedForever, "already set");
        blacklistAddRestrictedForever = true;
        emit BlacklistAddRestrictedForever();
    }

    // enable trading
    function enableTrading() external onlyOwner {
        tradingEnabled = true;
    }

    function setBlacklisted(
        address account,
        bool isBlacklisted
    ) external onlyOwner {
        if (isBlacklisted) {
            require(
                !blacklistAddRestrictedForever,
                "Blacklist add restricted forever"
            );
        }
        accountInfo[account].isBlackListed = isBlacklisted;
        emit BlacklistSet(account, isBlacklisted);
    }

    function setMaxBuyAmount(uint256 amount) external onlyOwner {
        maxBuyAmount = amount;
    }

    function _hasLimits(
        AccountInfo memory fromInfo,
        AccountInfo memory toInfo
    ) internal pure returns (bool) {
        return (!fromInfo.isLiquidityHolder || !toInfo.isLiquidityHolder);
    }

    function _update(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        AccountInfo memory fromInfo = accountInfo[from];
        AccountInfo memory toInfo = accountInfo[to];
        // check blacklist
        require(
            !fromInfo.isBlackListed && !toInfo.isBlackListed,
            "Blacklisted"
        );
        super._update(from, to, amount);
        if (
            !_hasLimits(fromInfo, toInfo) ||
            (fromInfo.isLPPool && toInfo.isLPPool)
        ) {
            return;
        }

        uint256 taxFee = 0;

        if (fromInfo.isLPPool) {
            require(tradingEnabled, "Trading is not enabled!");
            taxFee = (amount * MAX_BUY_FEE_NUMERATOR) / DENOMINATOR;
            require(
                amount - taxFee <= maxBuyAmount,
                "Transfer amount exceeds the max buy amount"
            );
            emit BuyFeePaid(from, taxAddress, taxFee);
        } else if (toInfo.isLPPool) {
            require(tradingEnabled, "Trading is not enabled!");
            taxFee = (amount * MAX_SELL_FEE_NUMERATOR) / DENOMINATOR;
            require(
                amount - taxFee <= MAX_SELL_AMOUNT,
                "Transfer amount exceeds the max sell amount"
            );
            emit SellFeePaid(from, taxAddress, taxFee);
        }
        if (taxFee > 0) super._update(to, taxAddress, taxFee);

        // check max holding amount
        if (!toInfo.isLiquidityHolder) {
            require(
                balanceOf(to) <= MAX_HOLD_AMOUNT,
                "Transfer amount exceeds the max holding amount"
            );
        }
    }
}
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;
    }
}
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);
    }
}
ERC20.sol 316 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.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 ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
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}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual 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;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    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;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    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}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `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 set 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:
     * ```
     * 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);
            }
        }
    }
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the 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);
}
draft-IERC6093.sol 161 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 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 ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * 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 ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 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);
}
IERC20Metadata.sol 26 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 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);
}

Read Contract

DENOMINATOR 0x918f8674 → uint256
MAX_BUY_FEE_NUMERATOR 0x1ff32a6e → uint256
MAX_HOLD_AMOUNT 0x091f8454 → uint256
MAX_SELL_AMOUNT 0xdb0e1bdf → uint256
MAX_SELL_FEE_NUMERATOR 0x8f3b957f → uint256
accountInfo 0xa7310b58 → bool, bool, bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
blacklistAddRestrictedForever 0x10b343e7 → bool
decimals 0x313ce567 → uint8
maxBuyAmount 0x88e765ff → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
taxAddress 0xb7bda68f → address
totalSupply 0x18160ddd → uint256
tradingEnabled 0x4ada218b → bool
uniswapV2Pair 0x49bd5a5e → address

Write Contract 12 functions

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

approve 0x095ea7b3
address spender
uint256 value
returns: bool
enableTrading 0x8a8c523c
No parameters
renounceOwnership 0x715018a6
No parameters
restrictBlacklistAddForever 0x241b21eb
No parameters
setBlacklisted 0xd01dd6d2
address account
bool isBlacklisted
setLiquidityHolder 0x719f75c5
address account
bool flag
setLpPair 0x80c581d1
address pair
bool enabled
setMaxBuyAmount 0xf34eb0b8
uint256 amount
setTaxAddress 0xa1883d26
address newTaxAddress
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