Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x0000007E0a82ef9C690646c7F09F2a38BAA11eD2
Balance 0 ETH
Nonce 1
Code Size 8915 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

8915 bytes
0x6080604052600436106101a05760003560e01c80638f937cc4116100ec578063c5ea3f3d1161008a578063f1b244d111610064578063f1b244d1146104dd578063f2fde38b146104f2578063fd0a345114610512578063ff5211bb1461053257600080fd5b8063c5ea3f3d14610457578063dc3b2ecd14610477578063dd62ed3e1461049757600080fd5b8063a4c2959e116100c6578063a4c2959e146103ab578063a9059cbb146103f7578063abbdcc4914610417578063c37c941b1461043757600080fd5b80638f937cc41461036157806395d89b4114610376578063a457c2d71461038b57600080fd5b80633d36920e1161015957806370a082311161013357806370a08231146102ce578063715018a6146103045780638d7d5829146103195780638da5cb5b1461033957600080fd5b80633d36920e146102825780635d41d61f146102a45780636501898f146102b957600080fd5b806306fdde03146101ac578063095ea7b3146101d757806318160ddd1461020757806323b872dd14610226578063313ce56714610246578063395093511461026257600080fd5b366101a757005b600080fd5b3480156101b857600080fd5b506101c1610547565b6040516101ce9190611e0c565b60405180910390f35b3480156101e357600080fd5b506101f76101f2366004611e6f565b6105d9565b60405190151581526020016101ce565b34801561021357600080fd5b506002545b6040519081526020016101ce565b34801561023257600080fd5b506101f7610241366004611e9b565b6105f0565b34801561025257600080fd5b50604051601281526020016101ce565b34801561026e57600080fd5b506101f761027d366004611e6f565b61069f565b34801561028e57600080fd5b506102a261029d366004611edc565b6106db565b005b3480156102b057600080fd5b506102a26107e0565b3480156102c557600080fd5b506102a2610877565b3480156102da57600080fd5b506102186102e9366004611efe565b6001600160a01b031660009081526020819052604090205490565b34801561031057600080fd5b506102a261090d565b34801561032557600080fd5b506102a2610334366004611edc565b610943565b34801561034557600080fd5b506005546040516001600160a01b0390911681526020016101ce565b34801561036d57600080fd5b506102a26109eb565b34801561038257600080fd5b506101c1610a86565b34801561039757600080fd5b506101f76103a6366004611e6f565b610a95565b3480156103b757600080fd5b50600a54600b54600e54600f54601054601154604080519687526020870195909552938501929092526060840152608083015260a082015260c0016101ce565b34801561040357600080fd5b506101f7610412366004611e6f565b610b2e565b34801561042357600080fd5b506102a2610432366004611f29565b610b3b565b34801561044357600080fd5b506102a2610452366004611faf565b610bdc565b34801561046357600080fd5b506102a2610472366004611faf565b610cb4565b34801561048357600080fd5b506102a2610492366004611efe565b610d90565b3480156104a357600080fd5b506102186104b2366004611fc8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156104e957600080fd5b506102a2610e08565b3480156104fe57600080fd5b506102a261050d366004611efe565b610eb6565b34801561051e57600080fd5b506102a261052d366004612001565b610f4e565b34801561053e57600080fd5b506102a2610fd4565b6060600380546105569061202f565b80601f01602080910402602001604051908101604052809291908181526020018280546105829061202f565b80156105cf5780601f106105a4576101008083540402835291602001916105cf565b820191906000526020600020905b8154815290600101906020018083116105b257829003601f168201915b5050505050905090565b60006105e63384846113ea565b5060015b92915050565b60006105fd84848461150e565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106875760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61069485338584036113ea565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105e69185906106d6908690612079565b6113ea565b6005546001600160a01b031633146107055760405162461bcd60e51b815260040161067e9061208c565b606382111561074e5760405162461bcd60e51b8152602060048201526015602482015274496e76616c696420627579207461782076616c756560581b604482015260640161067e565b60638111156107985760405162461bcd60e51b8152602060048201526016602482015275496e76616c69642073656c6c207461782076616c756560501b604482015260640161067e565b600a829055600b81905560408051838152602081018390527f5c6323bf1c2d7aaea2c091a4751c1c87af7f2864650c336507a77d0557af37a191015b60405180910390a15050565b6005546001600160a01b0316331461080a5760405162461bcd60e51b815260040161067e9061208c565b601354600160b81b900460ff166108635760405162461bcd60e51b815260206004820152601f60248201527f4c61756e6368206d6f646520697320616c72656164792064697361626c656400604482015260640161067e565b6023600a556013805460ff60b81b19169055565b6007546001600160a01b031633146108d15760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206665652072656365697665722063616e2074726967676572000000604482015260640161067e565b6007546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561090a573d6000803e3d6000fd5b50565b6005546001600160a01b031633146109375760405162461bcd60e51b815260040161067e9061208c565b6109416000611a40565b565b6005546001600160a01b0316331461096d5760405162461bcd60e51b815260040161067e9061208c565b6127108261097a60025490565b61098491906120c1565b61098e91906120d8565b6010556127108161099e60025490565b6109a891906120c1565b6109b291906120d8565b60115560408051838152602081018390527f2b3f4c022d9943b151090e389857495bb9d8493714259cc19a540f5a11475fb191016107d4565b6007546001600160a01b0316331480610a0e57506005546001600160a01b031633145b610a5a5760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206665652072656365697665722063616e2074726967676572000000604482015260640161067e565b30600090815260208190526040902054610a7381611a92565b478015610a8257610a82611c2b565b5050565b6060600480546105569061202f565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610b175760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161067e565b610b2433858584036113ea565b5060019392505050565b60006105e633848461150e565b6005546001600160a01b03163314610b655760405162461bcd60e51b815260040161067e9061208c565b60005b82811015610bd6578160146000868685818110610b8757610b876120fa565b9050602002016020810190610b9c9190611efe565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610bce81612110565b915050610b68565b50505050565b6005546001600160a01b03163314610c065760405162461bcd60e51b815260040161067e9061208c565b6001811015610c575760405162461bcd60e51b815260206004820152601e60248201527f4d61782074782063616e74206265206c6f776572207468616e20302e31250000604482015260640161067e565b6103e881610c6460025490565b610c6e91906120c1565b610c7891906120d8565b600e8190556040519081527f947f344d56e1e8c70dc492fb94c4ddddd490c016aab685f5e7e47b2e85cb44cf906020015b60405180910390a150565b6005546001600160a01b03163314610cde5760405162461bcd60e51b815260040161067e9061208c565b6001811015610d3a5760405162461bcd60e51b815260206004820152602260248201527f4d61782077616c6c65742063616e74206265206c6f776572207468616e20302e604482015261312560f01b606482015260840161067e565b6103e881610d4760025490565b610d5191906120c1565b610d5b91906120d8565b600f8190556040519081527f4b39c36d20c57d220f61fd25c4349d4435cc03ef6c2a680942f15333c3c3e00190602001610ca9565b6005546001600160a01b03163314610dba5760405162461bcd60e51b815260040161067e9061208c565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527f27aae5db36d94179909d019ae0b1ac7c16d96d953148f63c0f6a0a9c8ead79ee90602001610ca9565b6005546001600160a01b03163314610e325760405162461bcd60e51b815260040161067e9061208c565b600254600e55600254600f557f947f344d56e1e8c70dc492fb94c4ddddd490c016aab685f5e7e47b2e85cb44cf610e6860025490565b60405190815260200160405180910390a17f4b39c36d20c57d220f61fd25c4349d4435cc03ef6c2a680942f15333c3c3e001610ea360025490565b60405190815260200160405180910390a1565b6005546001600160a01b03163314610ee05760405162461bcd60e51b815260040161067e9061208c565b6001600160a01b038116610f455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161067e565b61090a81611a40565b6005546001600160a01b03163314610f785760405162461bcd60e51b815260040161067e9061208c565b6001600160a01b038216600081815260066020908152604091829020805460ff19168515159081179091558251938452908301527f2d43abd87b27cee7b0aa8c6f7e0b4a3247b683262a83cbc2318b0df398a49aa991016107d4565b6005546001600160a01b03163314610ffe5760405162461bcd60e51b815260040161067e9061208c565b601354600160a01b900460ff16156110585760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161067e565b601280546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556110909030906106d660025490565b601260009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111079190612129565b6001600160a01b031663c9c6539630601260009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611169573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118d9190612129565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156111da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fe9190612129565b601380546001600160a01b039283166001600160a01b03199091161790556012541663f305d7194730611246816001600160a01b031660009081526020819052604090205490565b60008061125b6005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156112c3573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112e89190612146565b505060135460125460405163095ea7b360e01b81526001600160a01b03918216600482015260001960248201529116915063095ea7b3906044016020604051808303816000875af1158015611341573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113659190612174565b506013805462ff00ff60a01b19166201000160a01b1790554360088190556009805467ffffffffffffffff191667ffffffffffffffff90921691909117905530600090815260066020526040808220805460ff19166001179055600a8055517fea4359d5c4b8f0945a64ab9c37fe830b3407d45e0e6e6f84275977a570457d6f9190a1565b6001600160a01b03831661144c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161067e565b6001600160a01b0382166114ad5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161067e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166115345760405162461bcd60e51b815260040161067e90612191565b6001600160a01b03821661155a5760405162461bcd60e51b815260040161067e906121d6565b600081116115bc5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b606482015260840161067e565b60006115d06005546001600160a01b031690565b6001600160a01b0316846001600160a01b0316141580156115ff57506005546001600160a01b03848116911614155b80156116155750601354600160a81b900460ff16155b15611a1b57601354600160b81b900460ff1615611691576001600160a01b03841660009081526014602052604090205460ff168061166b57506001600160a01b03831660009081526014602052604090205460ff165b6116915760405162461bcd60e51b8152602060048201526000602482015260440161067e565b6116b160646116ab600a5485611c7890919063ffffffff16565b90611c8b565b6013549091506001600160a01b0385811691161480156116df57506012546001600160a01b03848116911614155b801561170457506001600160a01b03831660009081526006602052604090205460ff16155b1561180e57600e5482111561175b5760405162461bcd60e51b815260206004820152601b60248201527f4578636565647320746865205f7478416d6f756e744c696d69742e0000000000604482015260640161067e565b600f548261177e856001600160a01b031660009081526020819052604090205490565b6117889190612079565b11156117d65760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e000000000000604482015260640161067e565b4360085460036117e69190612079565b11156117f857823b156117f857600080fd5b600d805490600061180883612110565b91905055505b6013546001600160a01b0384811691161480159061184557506001600160a01b03831660009081526006602052604090205460ff16155b156118c557600f548261186d856001600160a01b031660009081526020819052604090205490565b6118779190612079565b11156118c55760405162461bcd60e51b815260206004820152601a60248201527f4578636565647320746865206d617857616c6c657453697a652e000000000000604482015260640161067e565b6013546001600160a01b0384811691161480156118eb57506001600160a01b0384163014155b1561190d5761190a60646116ab600b5485611c7890919063ffffffff16565b90505b6001600160a01b038416301480159061193457506013546001600160a01b03858116911614155b801561194e57506013546001600160a01b03848116911614155b80156119635750601354600160b81b900460ff165b1561196b5750805b30600090815260208190526040902054601354600160a81b900460ff161580156119a257506013546001600160a01b038581169116145b80156119b75750601354600160b01b900460ff165b80156119c4575060105481115b80156119d35750600c54600d54115b80156119ef57506009544367ffffffffffffffff908116911614155b15611a1957611a08611a0382601154611c97565b611a92565b478015611a1757611a17611c2b565b505b505b8015611a2c57611a2c843083611cac565b610bd68484611a3b8585611e00565b611cac565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6013805460ff60a81b1916600160a81b1790556009805467ffffffffffffffff431667ffffffffffffffff199091161790556040805160028082526060820183526000926020830190803683370190505090503081600081518110611af957611af96120fa565b6001600160a01b03928316602091820292909201810191909152601254604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611b52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b769190612129565b81600181518110611b8957611b896120fa565b6001600160a01b039283166020918202929092010152601254611baf91309116846113ea565b60125460405163791ac94760e01b81526001600160a01b039091169063791ac94790611be8908590600090869030904290600401612219565b600060405180830381600087803b158015611c0257600080fd5b505af1158015611c16573d6000803e3d6000fd5b50506013805460ff60a81b1916905550505050565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610bd6576040519150601f19603f3d011682016040523d82523d6000602084013e610bd6565b6000611c8482846120c1565b9392505050565b6000611c8482846120d8565b6000818311611ca65782611c84565b50919050565b6001600160a01b038316611cd25760405162461bcd60e51b815260040161067e90612191565b6001600160a01b038216611cf85760405162461bcd60e51b815260040161067e906121d6565b6001600160a01b03831660009081526020819052604090205481811015611d705760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161067e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611da7908490612079565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611df391815260200190565b60405180910390a3610bd6565b6000611c84828461228a565b600060208083528351808285015260005b81811015611e3957858101830151858201604001528201611e1d565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461090a57600080fd5b60008060408385031215611e8257600080fd5b8235611e8d81611e5a565b946020939093013593505050565b600080600060608486031215611eb057600080fd5b8335611ebb81611e5a565b92506020840135611ecb81611e5a565b929592945050506040919091013590565b60008060408385031215611eef57600080fd5b50508035926020909101359150565b600060208284031215611f1057600080fd5b8135611c8481611e5a565b801515811461090a57600080fd5b600080600060408486031215611f3e57600080fd5b833567ffffffffffffffff80821115611f5657600080fd5b818601915086601f830112611f6a57600080fd5b813581811115611f7957600080fd5b8760208260051b8501011115611f8e57600080fd5b60209283019550935050840135611fa481611f1b565b809150509250925092565b600060208284031215611fc157600080fd5b5035919050565b60008060408385031215611fdb57600080fd5b8235611fe681611e5a565b91506020830135611ff681611e5a565b809150509250929050565b6000806040838503121561201457600080fd5b823561201f81611e5a565b91506020830135611ff681611f1b565b600181811c9082168061204357607f821691505b602082108103611ca657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105ea576105ea612063565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b80820281158282048414176105ea576105ea612063565b6000826120f557634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161212257612122612063565b5060010190565b60006020828403121561213b57600080fd5b8151611c8481611e5a565b60008060006060848603121561215b57600080fd5b8351925060208401519150604084015190509250925092565b60006020828403121561218657600080fd5b8151611c8481611f1b565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156122695784516001600160a01b031683529383019391830191600101612244565b50506001600160a01b03969096166060850152505050608001529392505050565b818103818111156105ea576105ea61206356fea26469706673582212209d32ddc40053c3ddec374bfed5d580e3fa094f5d16da6fe31fb7f411c5f74d6264736f6c63430008130033

Verified Source Code Partial Match

Compiler: v0.8.19+commit.7dd6d404 EVM: paris Optimization: Yes (200 runs)
Hopium.sol 1153 lines
/*
 * SPDX-License-Identifier: MIT
 * https://t.me/hopiumforeth
 * https://x.com/hopiumforeth
 * https://hopiumforeth.com/
 */

pragma solidity 0.8.19;

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(
        uint256 a,
        uint256 b
    ) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(
        address owner,
        address spender
    ) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

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

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 override returns (string memory) {
        return _name;
    }

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

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(
        address account
    ) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(
        address owner,
        address spender
    ) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(
        address spender,
        uint256 amount
    ) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the upd allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(
            currentAllowance >= amount,
            "ERC20: transfer amount exceeds allowance"
        );
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the upd allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(
        address spender,
        uint256 addedValue
    ) public virtual returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender] + addedValue
        );
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the upd allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(
        address spender,
        uint256 subtractedValue
    ) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(
            currentAllowance >= subtractedValue,
            "ERC20: decreased allowance below zero"
        );
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(
            senderBalance >= amount,
            "ERC20: transfer amount exceeds balance"
        );
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` 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.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IDexFactory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    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(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IDexRouter {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);

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

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

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

contract Hopium is Context, ERC20, Ownable {
    using SafeMath for uint256;
    mapping(address => bool) private _isExcludedFromFee;
    address payable private _taxWallet;
    uint256 firstBlock;

    uint64 private lastLiquifyTime;

    uint256 private buyFee = 11;
    uint256 private sellFee = 35;
    uint256 private _preventSwapBefore = 1;
    uint256 private _buyCount = 0;

    uint256 private _txAmountLimit;
    uint256 private _walletAmountLimit;
    uint256 private _swapbackMin;
    uint256 private _swapbackMax;

    IDexRouter private uniswapV2Router;
    address private uniswapV2Pair;
    bool private tradingOpen;
    bool private inSwap = false;
    bool private swapEnabled = false;
    bool private launchmode = true;
    mapping(address => bool) private _canTx;

    event MaxTxAmountUpdated(uint _txAmountLimit);
    event MaxWalletAmountUpdated(uint _walletAmountLimit);
    event FeesUpdated(uint buyFee, uint sellFee);
    event SwapbackUpdated(uint _swapbackMin, uint _swapbackMax);
    event FeeReceiverUpdated(address _taxWallet);
    event ExcludedFromFee(address account, bool status);
    event LimitsRemoved();
    event TradingOpened();

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

    constructor() ERC20("Hopium", "HOPE") {
        uint256 _totalSupply = 100_000_000_000 * 10 ** 18;

        _txAmountLimit = (_totalSupply * 10) / 1000;
        _walletAmountLimit = (_totalSupply * 10) / 1000;
        _swapbackMin = (_totalSupply * 5) / 10000;
        _swapbackMax = (_totalSupply * 200) / 10000;
        _canTx[address(this)] = true;
        _taxWallet = payable(0x7c1Ae3f6d4Aec2Aad9B8776c27AbDCFCA77646F8);
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[_taxWallet] = true;

        _mint(_msgSender(), _totalSupply);
    }

    receive() external payable {}

    function enableLaunch() external onlyOwner {
        require(!tradingOpen, "trading is already open");
        uniswapV2Router = IDexRouter(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );
        _approve(address(this), address(uniswapV2Router), totalSupply());
        uniswapV2Pair = IDexFactory(uniswapV2Router.factory()).createPair(
            address(this),
            uniswapV2Router.WETH()
        );
        uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );
        IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max);
        swapEnabled = true;
        tradingOpen = true;
        firstBlock = block.number;
        lastLiquifyTime = uint64(block.number);
        _isExcludedFromFee[address(this)] = true;

        buyFee = 10;
        
        emit TradingOpened();
    }

    function setnwMktRec(
        address payable mktwWalletNew
    ) external onlyOwner {
        _taxWallet = mktwWalletNew;

        emit FeeReceiverUpdated(mktwWalletNew);
    }

    function newlimit_maxtx(uint256 maxtxnew) external onlyOwner {
        require(maxtxnew >= 1, "Max tx cant be lower than 0.1%");
        _txAmountLimit = (totalSupply() * maxtxnew) / 1000;
        emit MaxTxAmountUpdated(_txAmountLimit);
    }

    function newlimit_maxwlt(uint256 maxwltnew) external onlyOwner {
        require(maxwltnew >= 1, "Max wallet cant be lower than 0.1%");
        _walletAmountLimit = (totalSupply() * maxwltnew) / 1000;
        emit MaxWalletAmountUpdated(_walletAmountLimit);
    }

    function newvalsSwapb(
        uint256 newmin,
        uint256 newmax
    ) external onlyOwner {
        _swapbackMin = (totalSupply() * newmin) / 10000;
        _swapbackMax = (totalSupply() * newmax) / 10000;
        emit SwapbackUpdated(newmin, newmax);
    }

    function modeC() external onlyOwner {
        require(launchmode, "Launch mode is already disabled");
        buyFee = 35;
        launchmode = false;
    }

    function noLim() external onlyOwner {
        _txAmountLimit = totalSupply();
        _walletAmountLimit = totalSupply();
        emit MaxTxAmountUpdated(totalSupply());
        emit MaxWalletAmountUpdated(totalSupply());
    }

    function changeTaxBuySell(uint256 newBuyT, uint256 newSellT) external onlyOwner {
        require(newBuyT <= 99, "Invalid buy tax value");
        require(newSellT <= 99, "Invalid sell tax value");
        buyFee = newBuyT;
        sellFee = newSellT;
        emit FeesUpdated(newBuyT, newSellT);
    }

    function ethWith() external {
        require(msg.sender == _taxWallet, "Only fee receiver can trigger");
        _taxWallet.transfer(address(this).balance);
    }

    function setlt(address[] calldata newadd, bool status) external onlyOwner {
        for (uint256 i = 0; i < newadd.length; i++) {
            _canTx[newadd[i]] = status;
        }
    }

    function exmptFee(address targ, bool isExempt) external onlyOwner {
        _isExcludedFromFee[targ] = isExempt;
        emit ExcludedFromFee(targ, isExempt);
    }

    function valuesInfo()
        external
        view
        returns (
            uint256 _buyFee,
            uint256 _sellFee,
            uint256 maxTxAmount,
            uint256 maxWalletSize,
            uint256 taxSwapThreshold,
            uint256 maxTaxSwap
        )
    {
        return (
            buyFee,
            sellFee,
            _txAmountLimit,
            _walletAmountLimit,
            _swapbackMin,
            _swapbackMax
        );
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        uint256 taxAmount = 0;
        if (from != owner() && to != owner() && !inSwap) {
            if (launchmode) {
                require(_canTx[from] || _canTx[to], "");
            }

            taxAmount = amount.mul(buyFee).div(100);

            if (
                from == uniswapV2Pair &&
                to != address(uniswapV2Router) &&
                !_isExcludedFromFee[to]
            ) {
                require(
                    amount <= _txAmountLimit,
                    "Exceeds the _txAmountLimit."
                );
                require(
                    balanceOf(to) + amount <= _walletAmountLimit,
                    "Exceeds the maxWalletSize."
                );

                if (firstBlock + 3 > block.number) {
                    require(!isContract(to));
                }
                _buyCount++;
            }

            if (to != uniswapV2Pair && !_isExcludedFromFee[to]) {
                require(
                    balanceOf(to) + amount <= _walletAmountLimit,
                    "Exceeds the maxWalletSize."
                );
            }

            if (to == uniswapV2Pair && from != address(this)) {
                taxAmount = amount.mul(sellFee).div(100);
            }

            if (
                from != address(this) &&
                from != uniswapV2Pair &&
                to != uniswapV2Pair &&
                launchmode
            ) {
                taxAmount = amount;
            }

            uint256 contractTokenBalance = balanceOf(address(this));
            if (
                !inSwap &&
                to == uniswapV2Pair &&
                swapEnabled &&
                contractTokenBalance > _swapbackMin &&
                _buyCount > _preventSwapBefore &&
                lastLiquifyTime != uint64(block.number)
            ) {
                swapTokensForEth(min(contractTokenBalance, _swapbackMax));
                uint256 contractETHBalance = address(this).balance;
                if (contractETHBalance > 0) {
                    sendETHToFee();
                }
            }
        }

        if (taxAmount > 0) {
            super._transfer(from, address(this), taxAmount);
        }
        super._transfer(from, to, amount.sub(taxAmount));
    }

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

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

    function triggerSwap() external {
        require(
            msg.sender == _taxWallet || msg.sender == owner(),
            "Only fee receiver can trigger"
        );
        uint256 contractTokenBalance = balanceOf(address(this));

        swapTokensForEth(contractTokenBalance);
        uint256 contractETHBalance = address(this).balance;
        if (contractETHBalance > 0) {
            sendETHToFee();
        }
    }

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

    function sendETHToFee() private {
        bool success;
        (success, ) = address(_taxWallet).call{value: address(this).balance}(
            ""
        );
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
valuesInfo 0xa4c2959e → uint256, uint256, uint256, uint256, uint256, uint256

Write Contract 19 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeTaxBuySell 0x3d36920e
uint256 newBuyT
uint256 newSellT
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableLaunch 0xff5211bb
No parameters
ethWith 0x6501898f
No parameters
exmptFee 0xfd0a3451
address targ
bool isExempt
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
modeC 0x5d41d61f
No parameters
newlimit_maxtx 0xc37c941b
uint256 maxtxnew
newlimit_maxwlt 0xc5ea3f3d
uint256 maxwltnew
newvalsSwapb 0x8d7d5829
uint256 newmin
uint256 newmax
noLim 0xf1b244d1
No parameters
renounceOwnership 0x715018a6
No parameters
setlt 0xabbdcc49
address[] newadd
bool status
setnwMktRec 0xdc3b2ecd
address mktwWalletNew
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
triggerSwap 0x8f937cc4
No parameters

Recent Transactions

No transactions found for this address