Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xF1Eccd41cCE1f4BEb8c5Ca87dE7949816Ce05A45
Balance 0 ETH
Nonce 1
Code Size 9441 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

9441 bytes
0x608060405260043610610220575f3560e01c80637cb332bb1161011e578063d201b01e116100a8578063e819532f1161006d578063e819532f146106db578063f186a68c146106e3578063f5ec723414610702578063f8b45b0514610721578063fb201b1d14610736575f80fd5b8063d201b01e14610623578063d7c94efd14610642578063d85ba06314610662578063dd62ed3e14610682578063e2f45605146106c6575f80fd5b80639a7a23d6116100ee5780639a7a23d614610592578063a9059cbb146105b1578063adfa29e5146105d0578063bc205ad3146105ef578063c8c8ebe41461060e575f80fd5b80637cb332bb146104f457806385ecafd7146105135780638da5cb5b1461054a57806395d89b4114610566575f80fd5b80634a62bb65116101aa5780636a486a8e1161016f5780636a486a8e1461045957806370a0823114610479578063715018a6146104ad57806374010ece146104c1578063751039fc146104e0575f80fd5b80634a62bb65146103bd5780634fcd2446146103dd578063590ffdce146103fc5780636402511e1461041b57806366650dae1461043a575f80fd5b806321d37e39116101f057806321d37e391461030557806323b872dd1461033757806327a14fc214610356578063313ce5671461037757806349bd5a5e1461038a575f80fd5b806306fdde031461022b578063095ea7b3146102715780631694505e146102a057806318160ddd146102df575f80fd5b3661022757005b5f80fd5b348015610236575f80fd5b5060408051808201909152600c81526b135bd8dac810d85c1a5d185b60a21b60208201525b604051610268919061212f565b60405180910390f35b34801561027c575f80fd5b5061029061028b36600461217c565b61074a565b6040519015158152602001610268565b3480156102ab575f80fd5b506102c7737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610268565b3480156102ea575f80fd5b5069d3c21bcecceda10000005b604051908152602001610268565b348015610310575f80fd5b5060065461032590600160b01b900460ff1681565b60405160ff9091168152602001610268565b348015610342575f80fd5b506102906103513660046121a4565b610760565b348015610361575f80fd5b506103756103703660046121dd565b610814565b005b348015610382575f80fd5b506012610325565b348015610395575f80fd5b506102c77f000000000000000000000000e002e4e1f083795e9cbc3f1c74182286e85472d281565b3480156103c8575f80fd5b5060065461029090600160c81b900460ff1681565b3480156103e8575f80fd5b506103756103f7366004612204565b6108f3565b348015610407575f80fd5b50610375610416366004612245565b610a2c565b348015610426575f80fd5b506103756104353660046121dd565b610a8e565b348015610445575f80fd5b50610375610454366004612245565b610be9565b348015610464575f80fd5b5060065461032590600160a81b900460ff1681565b348015610484575f80fd5b506102f761049336600461227a565b6001600160a01b03165f9081526007602052604090205490565b3480156104b8575f80fd5b50610375610c4b565b3480156104cc575f80fd5b506103756104db3660046121dd565b610c94565b3480156104eb575f80fd5b50610375610d7b565b3480156104ff575f80fd5b5061037561050e36600461227a565b610dc2565b34801561051e575f80fd5b5061029061052d36600461227a565b6001600160a01b03165f9081526009602052604090205460ff1690565b348015610555575f80fd5b505f546001600160a01b03166102c7565b348015610571575f80fd5b506040805180820190915260048152634d4f434b60e01b602082015261025b565b34801561059d575f80fd5b506103756105ac366004612245565b610e42565b3480156105bc575f80fd5b506102906105cb36600461217c565b610f25565b3480156105db575f80fd5b506103756105ea36600461227a565b610f31565b3480156105fa575f80fd5b5061037561060936600461229a565b610fb1565b348015610619575f80fd5b506102f760015481565b34801561062e575f80fd5b5061037561063d36600461227a565b611063565b34801561064d575f80fd5b5060065461032590600160b81b900460ff1681565b34801561066d575f80fd5b5060065461032590600160a01b900460ff1681565b34801561068d575f80fd5b506102f761069c36600461229a565b6001600160a01b039182165f90815260086020908152604080832093909416825291909152205490565b3480156106d1575f80fd5b506102f760035481565b61037561117a565b3480156106ee575f80fd5b506103756106fd36600461227a565b6112b0565b34801561070d575f80fd5b5061037561071c366004612204565b611330565b34801561072c575f80fd5b506102f760025481565b348015610741575f80fd5b50610375611410565b5f6107563384846114aa565b5060015b92915050565b6001600160a01b0383165f9081526008602090815260408083203384529091528120545f1981146107fe57828110156107f15760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6107fe85338584036114aa565b6108098585856115cd565b506001949350505050565b336108265f546001600160a01b031690565b6001600160a01b03161461084c5760405162461bcd60e51b81526004016107e8906122c2565b670de0b6b3a7640000606461086c69d3c21bcecceda1000000600161230b565b6108769190612322565b6108809190612322565b8110156108db5760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420736574206d61782077616c6c6574206c6f776572207468616e60448201526220312560e81b60648201526084016107e8565b6108ed81670de0b6b3a764000061230b565b60025550565b336109055f546001600160a01b031690565b6001600160a01b03161461092b5760405162461bcd60e51b81526004016107e8906122c2565b601e8260ff1611156109915760405162461bcd60e51b815260206004820152602960248201527f4275792066656573206d757374206265206c657373207468616e206f7220657160448201526875616c20746f20332560b81b60648201526084016107e8565b601e8160ff1611156109f85760405162461bcd60e51b815260206004820152602a60248201527f53656c6c2066656573206d757374206265206c657373207468616e206f7220656044820152697175616c20746f20332560b01b60648201526084016107e8565b6006805461ffff60a01b1916600160a01b60ff9485160260ff60a81b191617600160a81b9290931691909102919091179055565b33610a3e5f546001600160a01b031690565b6001600160a01b031614610a645760405162461bcd60e51b81526004016107e8906122c2565b6001600160a01b03919091165f908152600960205260409020805460ff1916911515919091179055565b33610aa05f546001600160a01b031690565b6001600160a01b031614610ac65760405162461bcd60e51b81526004016107e8906122c2565b620186a0610adf69d3c21bcecceda1000000600161230b565b610ae99190612322565b811015610b565760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527420302e30303125206f662074686520737570706c7960581b60648201526084016107e8565b6103e8610b6e69d3c21bcecceda1000000600561230b565b610b789190612322565b811115610be45760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f7420626520686967686572207468616044820152736e20302e3525206f662074686520737570706c7960601b60648201526084016107e8565b600355565b33610bfb5f546001600160a01b031690565b6001600160a01b031614610c215760405162461bcd60e51b81526004016107e8906122c2565b6001600160a01b03919091165f908152600a60205260409020805460ff1916911515919091179055565b33610c5d5f546001600160a01b031690565b6001600160a01b031614610c835760405162461bcd60e51b81526004016107e8906122c2565b5f80546001600160a01b0319169055565b33610ca65f546001600160a01b031690565b6001600160a01b031614610ccc5760405162461bcd60e51b81526004016107e8906122c2565b670de0b6b3a76400006103e8610ced69d3c21bcecceda1000000600161230b565b610cf79190612322565b610d019190612322565b811015610d635760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d6178207472616e73616374696f6e206c6f776572604482015269207468616e20302e312560b01b60648201526084016107e8565b610d7581670de0b6b3a764000061230b565b60015550565b33610d8d5f546001600160a01b031690565b6001600160a01b031614610db35760405162461bcd60e51b81526004016107e8906122c2565b6006805460ff60c81b19169055565b33610dd45f546001600160a01b031690565b6001600160a01b031614610dfa5760405162461bcd60e51b81526004016107e8906122c2565b6001600160a01b038116610e205760405162461bcd60e51b81526004016107e890612341565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b33610e545f546001600160a01b031690565b6001600160a01b031614610e7a5760405162461bcd60e51b81526004016107e8906122c2565b7f000000000000000000000000e002e4e1f083795e9cbc3f1c74182286e85472d26001600160a01b0316826001600160a01b031603610efb5760405162461bcd60e51b815260206004820152601a60248201527f54686520706169722063616e6e6f742062652072656d6f76656400000000000060448201526064016107e8565b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b5f6107563384846115cd565b33610f435f546001600160a01b031690565b6001600160a01b031614610f695760405162461bcd60e51b81526004016107e8906122c2565b6001600160a01b038116610f8f5760405162461bcd60e51b81526004016107e890612341565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b33610fc35f546001600160a01b031690565b6001600160a01b031614610fe95760405162461bcd60e51b81526004016107e8906122c2565b6040516370a0823160e01b81523060048201525f906001600160a01b038416906370a0823190602401602060405180830381865afa15801561102d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110519190612371565b905061105e838383611d85565b505050565b336110755f546001600160a01b031690565b6001600160a01b03161461109b5760405162461bcd60e51b81526004016107e8906122c2565b6001600160a01b0381166110e35760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016107e8565b5f816001600160a01b0316476040515f6040518083038185875af1925050503d805f811461112c576040519150601f19603f3d011682016040523d82523d5f602084013e611131565b606091505b50509050806111765760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064016107e8565b5050565b3361118c5f546001600160a01b031690565b6001600160a01b0316146111b25760405162461bcd60e51b81526004016107e8906122c2565b600654600160d01b900460ff16156111ff5760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481b185d5b98da195960821b60448201526064016107e8565b305f818152600760205260408082205460048054925163f305d71960e01b81529081019490945260248401526044830182905260648301919091526001600160a01b031660848201524260a4820152737a250d5630b4cf539739df2c5dacb4c659f2488d9063f305d71990349060c40160606040518083038185885af115801561128b573d5f803e3d5ffd5b50505050506040513d601f19601f8201168201806040525081019061105e9190612388565b336112c25f546001600160a01b031690565b6001600160a01b0316146112e85760405162461bcd60e51b81526004016107e8906122c2565b6001600160a01b03811661130e5760405162461bcd60e51b81526004016107e890612341565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b336113425f546001600160a01b031690565b6001600160a01b0316146113685760405162461bcd60e51b81526004016107e8906122c2565b6006805461ffff60b01b1916600160b01b60ff858116820260ff60b81b191692909217600160b81b858416810291909117938490556113b093908104831692919004166123b3565b60ff166064146111765760405162461bcd60e51b815260206004820152602560248201527f446973747269627574696f6e206861766520746f20626520657175616c20746f604482015264203130302560d81b60648201526084016107e8565b336114225f546001600160a01b031690565b6001600160a01b0316146114485760405162461bcd60e51b81526004016107e8906122c2565b600654600160d01b900460ff16156114955760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481b185d5b98da195960821b60448201526064016107e8565b6006805460ff60d01b1916600160d01b179055565b6001600160a01b03831661150c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107e8565b6001600160a01b03821661156d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107e8565b6001600160a01b038381165f8181526008602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166116315760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107e8565b6001600160a01b0382166116935760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107e8565b5f81116116f45760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016107e8565b600654600160d01b900460ff1615801561174857505f546001600160a01b0384811691161480159061172f57506001600160a01b0383163014155b801561174857505f546001600160a01b03838116911614155b1561178b5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd08195b98589b1959606a1b60448201526064016107e8565b600654600160c81b900460ff1615611a4c575f546001600160a01b038481169116148015906117c757505f546001600160a01b03838116911614155b80156117db57506001600160a01b03821615155b80156117f257506001600160a01b03821661dead14155b80156118085750600654600160c01b900460ff16155b15611a4c576001600160a01b0383165f908152600b602052604090205460ff16801561184c57506001600160a01b0382165f908152600a602052604090205460ff16155b1561191f576001548111156118b15760405162461bcd60e51b815260206004820152602560248201527f427579207472616e7366657220616d6f756e74206578636565647320746865206044820152640dac2f0a8f60db1b60648201526084016107e8565b6002546001600160a01b0383165f908152600760205260409020546118d690836123cc565b111561191a5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b60448201526064016107e8565b611a4c565b6001600160a01b0382165f908152600b602052604090205460ff16801561195e57506001600160a01b0383165f908152600a602052604090205460ff16155b156119c45760015481111561191a5760405162461bcd60e51b815260206004820152602660248201527f53656c6c207472616e7366657220616d6f756e74206578636565647320746865604482015265040dac2f0a8f60d31b60648201526084016107e8565b6001600160a01b0382165f908152600a602052604090205460ff16611a4c576002546001600160a01b0383165f90815260076020526040902054611a0890836123cc565b1115611a4c5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b60448201526064016107e8565b600354305f90815260076020526040902054108015908190611a785750600654600160c01b900460ff16155b8015611a9c57506001600160a01b0384165f908152600b602052604090205460ff16155b8015611ac057506001600160a01b0384165f9081526009602052604090205460ff16155b8015611ae457506001600160a01b0383165f9081526009602052604090205460ff16155b15611b12576006805460ff60c01b1916600160c01b179055611b04611eac565b6006805460ff60c01b191690555b6006546001600160a01b0385165f9081526009602052604090205460ff600160c01b909204821615911680611b5e57506001600160a01b0384165f9081526009602052604090205460ff165b15611b6657505f5b6001600160a01b0385165f9081526007602052604090205483811015611bdd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107e8565b5f8215611d13576001600160a01b0386165f908152600b602052604090205460ff168015611c165750600654600160a81b900460ff1615155b15611c47576006546103e890611c3690600160a81b900460ff168761230b565b611c409190612322565b9050611ca6565b6001600160a01b0387165f908152600b602052604090205460ff168015611c795750600654600160a01b900460ff1615155b15611ca6576006546103e890611c9990600160a01b900460ff168761230b565b611ca39190612322565b90505b8015611d13576001600160a01b0387165f8181526007602090815260408083208054869003905530808452928190208054860190555184815297849003979192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b6001600160a01b038088165f8181526007602052604080822080548a900390559289168082529083902080548901905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611d749089815260200190565b60405180910390a350505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291515f92839290871691611de091906123df565b5f604051808303815f865af19150503d805f8114611e19576040519150601f19603f3d011682016040523d82523d5f602084013e611e1e565b606091505b5091509150818015611e48575080511580611e48575080806020019051810190611e4891906123fa565b611ea55760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657248656c7065723a20494e5445524e414c205452414e5346456044820152671497d1905253115160c21b60648201526084016107e8565b5050505050565b6003545f611ebb82601461230b565b305f908152600760205260409020541115611ee157600354611ede90601461230b565b91505b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611f1457611f14612415565b60200260200101906001600160a01b031690816001600160a01b03168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110611f5c57611f5c612415565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611fb39086905f90869030904290600401612429565b5f604051808303815f87803b158015611fca575f80fd5b505af1158015611fdc573d5f803e3d5ffd5b504792505081159050612107576006545f9060649061200590600160b01b900460ff168461230b565b61200f9190612322565b90505f61201c8284612498565b6004546040519192506001600160a01b03169082905f81818185875af1925050503d805f8114612067576040519150601f19603f3d011682016040523d82523d5f602084013e61206c565b606091505b50506006546040519196506001600160a01b03169083905f81818185875af1925050503d805f81146120b9576040519150601f19603f3d011682016040523d82523d5f602084013e6120be565b606091505b505060408051888152602081018490529081018490529095507f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150505b50505050565b5f5b8381101561212757818101518382015260200161210f565b50505f910152565b602081525f825180602084015261214d81604085016020870161210d565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114612177575f80fd5b919050565b5f806040838503121561218d575f80fd5b61219683612161565b946020939093013593505050565b5f805f606084860312156121b6575f80fd5b6121bf84612161565b92506121cd60208501612161565b9150604084013590509250925092565b5f602082840312156121ed575f80fd5b5035919050565b803560ff81168114612177575f80fd5b5f8060408385031215612215575f80fd5b61221e836121f4565b915061222c602084016121f4565b90509250929050565b8015158114612242575f80fd5b50565b5f8060408385031215612256575f80fd5b61225f83612161565b9150602083013561226f81612235565b809150509250929050565b5f6020828403121561228a575f80fd5b61229382612161565b9392505050565b5f80604083850312156122ab575f80fd5b6122b483612161565b915061222c60208401612161565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761075a5761075a6122f7565b5f8261233c57634e487b7160e01b5f52601260045260245ffd5b500490565b602080825260169082015275416464726573732063616e6e6f74206265207a65726f60501b604082015260600190565b5f60208284031215612381575f80fd5b5051919050565b5f805f6060848603121561239a575f80fd5b8351925060208401519150604084015190509250925092565b60ff818116838216019081111561075a5761075a6122f7565b8082018082111561075a5761075a6122f7565b5f82516123f081846020870161210d565b9190910192915050565b5f6020828403121561240a575f80fd5b815161229381612235565b634e487b7160e01b5f52603260045260245ffd5b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b818110156124775784516001600160a01b031683529383019391830191600101612452565b50506001600160a01b03969096166060850152505050608001529392505050565b8181038181111561075a5761075a6122f756fea26469706673582212209f9b8803f219d38dc90f6e2d551d610570c328ed1bcb5dd2222ffc13663342e864736f6c63430008150033

Verified Source Code Full Match

Compiler: v0.8.21+commit.d9974bed EVM: shanghai Optimization: Yes (200 runs)
Mock.sol 609 lines
/**
 Mock Capital
https://mock.capital
https://t.me/mockcapital
https://discord.gg/mockcapital
https://twitter.com/mockcapital
https://t.me/mockcapital
https://discord.gg/mockcapital
https://docs.mock.capital
https://stats.mock.capital
**/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.21;
pragma experimental ABIEncoderV2;

abstract contract Ownable {
    address private _owner;

    constructor() {
        _owner = msg.sender;
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _owner = address(0);
    }
}

library SafeERC20 {
    function safeTransfer(address token, address to, uint256 value) internal {
        (bool success, bytes memory data) = token.call(
            abi.encodeWithSelector(IERC20.transfer.selector, to, value)
        );
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            "TransferHelper: INTERNAL TRANSFER_FAILED"
        );
    }
}

interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external;
}

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

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

    function WETH() external pure returns (address);

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

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

contract Mock is Ownable {
    string private constant _name = unicode"Mock Capital";
    string private constant _symbol = unicode"MOCK";
    uint256 private constant _totalSupply = 1_000_000 * 1e18;

    uint256 public maxTransactionAmount = 10_000 * 1e18;
    uint256 public maxWallet = 10_000 * 1e18;
    uint256 public swapTokensAtAmount = (_totalSupply * 5) / 10000;

    address private teamWallet = 0xEA68F5A05a46f4471859Bc996C57Ba3c4e1Cdbe8;
    address private ecosystemWallet =
        0x15D89B47a64268D3E30ef3F87B59054bDcA8bD37;
    address private revWallet = 0x3979AbFE1963bfbb12E454487e169056a46FD0c7;
    address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    uint8 public buyTotalFees = 150;
    uint8 public sellTotalFees = 150;

    uint8 public revFee = 20;
    uint8 public teamFee = 80;

    bool private swapping;
    bool public limitsInEffect = true;
    bool private launched;

    mapping(address => uint256) private _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) private _isExcludedMaxTransactionAmount;
    mapping(address => bool) private automatedMarketMakerPairs;

    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 teamETH,
        uint256 revETH
    );
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );

    IUniswapV2Router02 public constant uniswapV2Router =
        IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    address public immutable uniswapV2Pair;

    constructor() {
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
            address(this),
            WETH
        );
        automatedMarketMakerPairs[uniswapV2Pair] = true;

        setExcludedFromFees(owner(), true);
        setExcludedFromFees(address(this), true);
        setExcludedFromFees(address(0xdead), true);
        setExcludedFromFees(teamWallet, true);
        setExcludedFromFees(ecosystemWallet, true);
        setExcludedFromFees(revWallet, true);
        setExcludedFromFees(0xE2fE530C047f2d85298b07D9333C05737f1435fB, true); // Team Finance Locker Contract

        setExcludedFromMaxTransaction(owner(), true);
        setExcludedFromMaxTransaction(address(uniswapV2Router), true);
        setExcludedFromMaxTransaction(address(this), true);
        setExcludedFromMaxTransaction(address(0xdead), true);
        setExcludedFromMaxTransaction(address(uniswapV2Pair), true);
        setExcludedFromMaxTransaction(teamWallet, true);
        setExcludedFromMaxTransaction(revWallet, true);
        setExcludedFromMaxTransaction(ecosystemWallet, true);
        setExcludedFromMaxTransaction(
            0xE2fE530C047f2d85298b07D9333C05737f1435fB,
            true
        ); // Team Finance Locker Contract

        _balances[address(this)] = 850_000 * 1e18;
        emit Transfer(address(0), address(this), _balances[address(this)]); // Transfer to the contract for initial liquidity
        _balances[msg.sender] = 100_000 * 1e18;
        emit Transfer(address(0), msg.sender, _balances[msg.sender]); // Transfer to the deployer/team wallet
        _balances[ecosystemWallet] = 50_000 * 1e18;
        emit Transfer(address(0), ecosystemWallet, _balances[ecosystemWallet]); // Transfer to the ecosystem wallet

        _approve(address(this), address(uniswapV2Router), type(uint256).max);
    }

    receive() external payable {}

    function name() public pure returns (string memory) {
        return _name;
    }

    function symbol() public pure returns (string memory) {
        return _symbol;
    }

    function decimals() public pure returns (uint8) {
        return 18;
    }

    function totalSupply() public pure returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function allowance(
        address owner,
        address spender
    ) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) external returns (bool) {
        _approve(msg.sender, spender, amount);
        return true;
    }

    function _approve(address owner, address spender, uint256 amount) private {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

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

    function transfer(
        address recipient,
        uint256 amount
    ) external returns (bool) {
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool) {
        uint256 currentAllowance = _allowances[sender][msg.sender];
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: transfer amount exceeds allowance"
            );
            unchecked {
                _approve(sender, msg.sender, currentAllowance - amount);
            }
        }

        _transfer(sender, recipient, amount);

        return true;
    }

    function _transfer(address from, address to, uint256 amount) private {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");

        if (
            !launched &&
            (from != owner() && from != address(this) && to != owner())
        ) {
            revert("Trading not enabled");
        }

        if (limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ) {
                if (
                    automatedMarketMakerPairs[from] &&
                    !_isExcludedMaxTransactionAmount[to]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Buy transfer amount exceeds the maxTx"
                    );
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                } else if (
                    automatedMarketMakerPairs[to] &&
                    !_isExcludedMaxTransactionAmount[from]
                ) {
                    require(
                        amount <= maxTransactionAmount,
                        "Sell transfer amount exceeds the maxTx"
                    );
                } else if (!_isExcludedMaxTransactionAmount[to]) {
                    require(
                        amount + balanceOf(to) <= maxWallet,
                        "Max wallet exceeded"
                    );
                }
            }
        }

        bool canSwap = balanceOf(address(this)) >= swapTokensAtAmount;

        if (
            canSwap &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
            swapBack();
            swapping = false;
        }

        bool takeFee = !swapping;

        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 senderBalance = _balances[from];
        require(
            senderBalance >= amount,
            "ERC20: transfer amount exceeds balance"
        );

        uint256 fees = 0;
        if (takeFee) {
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = (amount * sellTotalFees) / 1000;
            } else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = (amount * buyTotalFees) / 1000;
            }

            if (fees > 0) {
                unchecked {
                    amount = amount - fees;
                    _balances[from] -= fees;
                    _balances[address(this)] += fees;
                }
                emit Transfer(from, address(this), fees);
            }
        }
        unchecked {
            _balances[from] -= amount;
            _balances[to] += amount;
        }
        emit Transfer(from, to, amount);
    }

    /**
     * @notice Removes all transaction and wallet limits
     * @dev Only callable by the contract owner
     * @custom:security This is irreversible, use with caution
     */
    function removeLimits() external onlyOwner {
        limitsInEffect = false;
    }

    /**
     * @notice Sets the distribution percentages for rev and team fees
     * @dev Only callable by the contract owner
     * @param _RevFee Percentage for rev wallet (out of 100)
     * @param _teamFee Percentage for team wallet (out of 100)
     * @custom:security Requires total to be exactly 100%
     */
    function setDistributionFees(
        uint8 _RevFee,
        uint8 _teamFee
    ) external onlyOwner {
        revFee = _RevFee;
        teamFee = _teamFee;
        require(
            (revFee + teamFee) == 100,
            "Distribution have to be equal to 100%"
        );
    }

    /**
     * @notice Sets the buy and sell fees for the token
     * @dev Only callable by the contract owner
     * @param _buyTotalFees New buy fee (in basis points, e.g., 10 = 1%)
     * @param _sellTotalFees New sell fee (in basis points, e.g., 10 = 1%)
     * @custom:security Fees are capped at 3% (300 basis points) for both buy and sell
     */
    function setFees(
        uint8 _buyTotalFees,
        uint8 _sellTotalFees
    ) external onlyOwner {
        require(
            _buyTotalFees <= 30,
            "Buy fees must be less than or equal to 3%"
        );
        require(
            _sellTotalFees <= 30,
            "Sell fees must be less than or equal to 3%"
        );
        buyTotalFees = _buyTotalFees;
        sellTotalFees = _sellTotalFees;
    }

    /**
     * @notice Excludes or includes an address from paying fees
     * @dev Only callable by the contract owner
     * @param account Address to be excluded or included
     * @param excluded True to exclude, false to include
     */
    function setExcludedFromFees(
        address account,
        bool excluded
    ) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
    }

    /**
     * @notice Excludes or includes an address from max transaction limit
     * @dev Only callable by the contract owner
     * @param account Address to be excluded or included
     * @param excluded True to exclude, false to include
     */
    function setExcludedFromMaxTransaction(
        address account,
        bool excluded
    ) public onlyOwner {
        _isExcludedMaxTransactionAmount[account] = excluded;
    }

    /**
     * @notice Enables trading for the token
     * @dev Only callable by the contract owner, can only be called once
     */
    function openTrade() external onlyOwner {
        require(!launched, "Already launched");
        launched = true;
    }

    /**
     * @notice Adds initial liquidity to the Uniswap pair
     * @dev Only callable by the contract owner, can only be called once
     * @custom:security Sends liquidity tokens to the teamWallet
     */
    function unleashMock() external payable onlyOwner {
        require(!launched, "Already launched");
        uniswapV2Router.addLiquidityETH{value: msg.value}(
            address(this),
            _balances[address(this)],
            0,
            0,
            teamWallet,
            block.timestamp
        );
    }

    /**
     * @notice Sets or unsets an address as an automated market maker pair
     * @dev Only callable by the contract owner
     * @param pair Address of the pair to be set or unset
     * @param value True to set as AMM pair, false to unset
     * @custom:security Cannot unset the main Uniswap pair
     */
    function setAutomatedMarketMakerPair(
        address pair,
        bool value
    ) external onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed");
        automatedMarketMakerPairs[pair] = value;
    }

    /**
     * @notice Sets the amount of tokens to swap and liquify
     * @dev Only callable by the contract owner
     * @param newSwapAmount New swap amount (in tokens)
     * @custom:security Limited between 0.001% and 0.5% of total supply
     */
    function setSwapAtAmount(uint256 newSwapAmount) external onlyOwner {
        require(
            newSwapAmount >= (totalSupply() * 1) / 100000,
            "Swap amount cannot be lower than 0.001% of the supply"
        );
        require(
            newSwapAmount <= (totalSupply() * 5) / 1000,
            "Swap amount cannot be higher than 0.5% of the supply"
        );
        swapTokensAtAmount = newSwapAmount;
    }

    /**
     * @notice Sets the maximum transaction amount
     * @dev Only callable by the contract owner
     * @param newMaxTx New maximum transaction amount (in tokens)
     * @custom:security Cannot be set lower than 0.1% of total supply
     */
    function setMaxTxnAmount(uint256 newMaxTx) external onlyOwner {
        require(
            newMaxTx >= ((totalSupply() * 1) / 1000) / 1e18,
            "Cannot set max transaction lower than 0.1%"
        );
        maxTransactionAmount = newMaxTx * (10 ** 18);
    }

    /**
     * @notice Sets the maximum wallet amount
     * @dev Only callable by the contract owner
     * @param newMaxWallet New maximum wallet amount (in tokens)
     * @custom:security Cannot be set lower than 1% of total supply
     */
    function setMaxWalletAmount(uint256 newMaxWallet) external onlyOwner {
        require(
            newMaxWallet >= ((totalSupply() * 1) / 100) / 1e18,
            "Cannot set max wallet lower than 1%"
        );
        maxWallet = newMaxWallet * (10 ** 18);
    }

    /**
     * @notice Updates the rev wallet address
     * @dev Only callable by the contract owner
     * @param newAddress New rev wallet address
     */
    function updateRevWallet(address newAddress) external onlyOwner {
        require(newAddress != address(0), "Address cannot be zero");
        revWallet = newAddress;
    }

    /**
     * @notice Updates the team wallet address
     * @dev Only callable by the contract owner
     * @param newAddress New team wallet address
     */
    function updateTeamWallet(address newAddress) external onlyOwner {
        require(newAddress != address(0), "Address cannot be zero");
        teamWallet = newAddress;
    }

    /**
     * @notice Updates the ecosystem wallet address
     * @dev Only callable by the contract owner
     * @param newAddress New ecosystem wallet address
     */
    function updateEcosystemWallet(address newAddress) external onlyOwner {
        require(newAddress != address(0), "Address cannot be zero");
        ecosystemWallet = newAddress;
    }

    /**
     * @notice Checks if an address is excluded from fees
     * @dev Public view function
     * @param account Address to check
     * @return True if excluded, false otherwise
     */
    function excludedFromFee(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    /**
     * @notice Withdraws stuck tokens from the contract
     * @dev Only callable by the contract owner
     * @param token Address of the token to withdraw
     * @param to Address to send the withdrawn tokens
     * @custom:security Use with caution to avoid withdrawing essential contract tokens
     */
    function withdrawStuckToken(address token, address to) external onlyOwner {
        uint256 _contractBalance = IERC20(token).balanceOf(address(this));
        SafeERC20.safeTransfer(token, to, _contractBalance); // Use safeTransfer
    }

    /**
     * @notice Withdraws stuck ETH from the contract
     * @dev Only callable by the contract owner
     * @param addr Address to send the withdrawn ETH
     * @custom:security Use with caution to avoid withdrawing essential contract ETH
     */
    function withdrawStuckETH(address addr) external onlyOwner {
        require(addr != address(0), "Invalid address");

        (bool success, ) = addr.call{value: address(this).balance}("");
        require(success, "Withdrawal failed");
    }

    /**
     * @notice Swaps accumulated tokens for ETH and distributes to wallets
     * @dev Internal function, called automatically during transfers when threshold is met
     * @custom:security Ensures no reentrancy by using a 'swapping' flag
     */
    function swapBack() private {
        uint256 swapThreshold = swapTokensAtAmount;
        bool success;

        if (balanceOf(address(this)) > swapTokensAtAmount * 20) {
            swapThreshold = swapTokensAtAmount * 20;
        }

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

        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            swapThreshold,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 ethBalance = address(this).balance;
        if (ethBalance > 0) {
            uint256 ethForRev = (ethBalance * revFee) / 100;
            uint256 ethForTeam = ethBalance - ethForRev;

            (success, ) = address(teamWallet).call{value: ethForTeam}("");
            (success, ) = address(revWallet).call{value: ethForRev}("");

            emit SwapAndLiquify(swapThreshold, ethForTeam, ethForRev);
        }
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTotalFees 0xd85ba063 → uint8
decimals 0x313ce567 → uint8
excludedFromFee 0x85ecafd7 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
revFee 0x21d37e39 → uint8
sellTotalFees 0x6a486a8e → uint8
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamFee 0xd7c94efd → uint8
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 20 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
openTrade 0xfb201b1d
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setDistributionFees 0xf5ec7234
uint8 _RevFee
uint8 _teamFee
setExcludedFromFees 0x590ffdce
address account
bool excluded
setExcludedFromMaxTransaction 0x66650dae
address account
bool excluded
setFees 0x4fcd2446
uint8 _buyTotalFees
uint8 _sellTotalFees
setMaxTxnAmount 0x74010ece
uint256 newMaxTx
setMaxWalletAmount 0x27a14fc2
uint256 newMaxWallet
setSwapAtAmount 0x6402511e
uint256 newSwapAmount
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
unleashMock 0xe819532f
No parameters
updateEcosystemWallet 0xf186a68c
address newAddress
updateRevWallet 0xadfa29e5
address newAddress
updateTeamWallet 0x7cb332bb
address newAddress
withdrawStuckETH 0xd201b01e
address addr
withdrawStuckToken 0xbc205ad3
address token
address to

Recent Transactions

No transactions found for this address