Address Contract Verified
Address
0x07c904D8c04323EF9Fe6BF13AaEbA05b62c54825
Balance
3.2637 ETH
Nonce
1
Code Size
8430 bytes
Creator
0x5e58c97F...Baf4 at tx 0x76dc55db...7a0295
Indexed Transactions
0
Contract Bytecode
8430 bytes
0x6080604052600436106101ff575f3560e01c8063715018a611610113578063a457c2d71161009d578063c5d32bb21161006d578063c5d32bb2146105db578063dd62ed3e14610609578063f2fde38b1461064d578063f66895a31461066c578063f887ea401461068a575f80fd5b8063a457c2d71461055f578063a8aa1b311461057e578063a9059cbb1461059d578063aacebbe3146105bc575f80fd5b80638cd4426d116100e35780638cd4426d146104bd5780638da5cb5b146104dc57806395d89b411461050d5780639d282cd6146105215780639e252f0014610540575f80fd5b8063715018a61461043d578063728f8eea146104515780638187f5161461048a5780638a8c523c146104a9575f80fd5b8063355496ca116101945780634ada218b116101645780634ada218b146103965780634e736f22146103b6578063659de63b146103d557806366a88d96146103f457806370a0823114610409575f80fd5b8063355496ca1461031a578063395093511461033957806342b6fa11146103585780634324deae14610377575f80fd5b806318160ddd116101cf57806318160ddd146102a35780631816467f146102c157806323b872dd146102e0578063313ce567146102ff575f80fd5b806306fdde031461020a578063095ea7b3146102345780630e375a5c146102635780631340538f14610284575f80fd5b3661020657005b5f80fd5b348015610215575f80fd5b5061021e6106a9565b60405161022b9190611ac2565b60405180910390f35b34801561023f575f80fd5b5061025361024e366004611b31565b610739565b604051901515815260200161022b565b34801561026e575f80fd5b5061028261027d366004611b87565b61074f565b005b34801561028f575f80fd5b5061028261029e366004611c59565b6107c0565b3480156102ae575f80fd5b506002545b60405190815260200161022b565b3480156102cc575f80fd5b506102826102db366004611c7b565b6107e6565b3480156102eb575f80fd5b506102536102fa366004611c96565b610810565b34801561030a575f80fd5b506040516012815260200161022b565b348015610325575f80fd5b50610282610334366004611cd4565b6108ae565b348015610344575f80fd5b50610253610353366004611b31565b6108e0565b348015610363575f80fd5b50610282610372366004611d0b565b61092a565b348015610382575f80fd5b50610282610391366004611d0b565b61094e565b3480156103a1575f80fd5b5060075461025390600160b01b900460ff1681565b3480156103c1575f80fd5b506102826103d0366004611d22565b610972565b3480156103e0575f80fd5b506102826103ef366004611d93565b6109a0565b3480156103ff575f80fd5b506102b360095481565b348015610414575f80fd5b506102b3610423366004611c7b565b6001600160a01b03165f9081526020819052604090205490565b348015610448575f80fd5b50610282610a9e565b34801561045c575f80fd5b50600f5460105460115461046f92919083565b6040805193845260208401929092529082015260600161022b565b348015610495575f80fd5b506102826104a4366004611c7b565b610ab1565b3480156104b4575f80fd5b50610282610adb565b3480156104c8575f80fd5b506102826104d7366004611b31565b610b58565b3480156104e7575f80fd5b506005546001600160a01b03165b6040516001600160a01b03909116815260200161022b565b348015610518575f80fd5b5061021e610bcc565b34801561052c575f80fd5b5061028261053b366004611d22565b610bdb565b34801561054b575f80fd5b5061028261055a366004611d0b565b610c09565b34801561056a575f80fd5b50610253610579366004611b31565b610c44565b348015610589575f80fd5b506007546104f5906001600160a01b031681565b3480156105a8575f80fd5b506102536105b7366004611b31565b610cbe565b3480156105c7575f80fd5b506102826105d6366004611c7b565b610cca565b3480156105e6575f80fd5b506102536105f5366004611c7b565b60156020525f908152604090205460ff1681565b348015610614575f80fd5b506102b3610623366004611dfa565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610658575f80fd5b50610282610667366004611c7b565b610cf4565b348015610677575f80fd5b5060125460135460145461046f92919083565b348015610695575f80fd5b506006546104f5906001600160a01b031681565b6060600380546106b890611e26565b80601f01602080910402602001604051908101604052809291908181526020018280546106e490611e26565b801561072f5780601f106107065761010080835404028352916020019161072f565b820191905f5260205f20905b81548152906001019060200180831161071257829003601f168201915b5050505050905090565b5f610745338484610d6d565b5060015b92915050565b610757610e90565b5f5b82518110156107bb578160155f85848151811061077857610778611e5e565b6020908102919091018101516001600160a01b031682528101919091526040015f20805460ff1916911515919091179055806107b381611e86565b915050610759565b505050565b6107c8610e90565b60078054911515600160a81b0260ff60a81b19909216919091179055565b6107ee610e90565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b5f61081c848484610eea565b5f6108278533610623565b90508281101561088f5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6108a3853361089e8685611e9e565b610d6d565b506001949350505050565b6108b6610e90565b6001600160a01b03919091165f908152601560205260409020805460ff1916911515919091179055565b5f8061090f335b6001600160a01b039081165f9081526001602090815260408083209389168352929052205490565b9050610920338561089e8685611eb1565b5060019392505050565b610932610e90565b61093e6012600a611fa4565b6109489082611fb2565b60085550565b610956610e90565b6109626012600a611fa4565b61096c9082611fb2565b60095550565b61097a610e90565b604080516060810182528481526020810184905201819052601292909255601355601455565b5f805b848110156109e3578383828181106109bd576109bd611e5e565b90506020020135826109cf9190611eb1565b9150806109db81611e86565b9150506109a3565b50806109ee33610423565b1015610a315760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610886565b5f5b84811015610a9657610a83868683818110610a5057610a50611e5e565b9050602002016020810190610a659190611c7b565b858584818110610a7757610a77611e5e565b90506020020135610cbe565b5080610a8e81611e86565b915050610a33565b505050505050565b610aa6610e90565b610aaf5f611481565b565b610ab9610e90565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b610ae3610e90565b600754600160b01b900460ff1615610b3d5760405162461bcd60e51b815260206004820152601a60248201527f54726164696e6720697320616c726561647920656e61626c65640000000000006044820152606401610886565b6007805461ffff60a81b191661010160a81b17905543600a55565b600e5460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529083169063a9059cbb906044016020604051808303815f875af1158015610ba8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107bb9190611fc9565b6060600480546106b890611e26565b610be3610e90565b604080516060810182528481526020810184905201819052600f92909255601055601155565b600e546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610c40573d5f803e3d5ffd5b5050565b5f80610c4f336108e7565b905082811015610caf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610886565b610920338561089e8685611e9e565b5f610745338484610eea565b610cd2610e90565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610cfc610e90565b6001600160a01b038116610d615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610886565b610d6a81611481565b50565b6001600160a01b038316610dcf5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610886565b6001600160a01b038216610e305760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610886565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b03163314610aaf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610886565b5f8111610f4b5760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610886565b6001600160a01b0383165f9081526016602052604090205460ff16158015610f8b57506001600160a01b0382165f9081526016602052604090205460ff16155b610fd75760405162461bcd60e51b815260206004820152601960248201527f596f752063616e2774207472616e7366657220746f6b656e73000000000000006044820152606401610886565b6001600160a01b0383165f9081526015602052604090205460ff1615801561101757506001600160a01b0382165f9081526015602052604090205460ff16155b1561106b57600754600160b01b900460ff1661106b5760405162461bcd60e51b8152602060048201526013602482015272151c98591a5b99c81b9bdd08195b98589b1959606a1b6044820152606401610886565b6007546001600160a01b0384811691161480156110a057506001600160a01b0382165f9081526015602052604090205460ff16155b80156110b65750600754600160a01b900460ff16155b1561113557600954816110dd846001600160a01b03165f9081526020819052604090205490565b6110e79190611eb1565b11156111355760405162461bcd60e51b815260206004820181905260248201527f596f752061726520657863656564696e67206d617857616c6c65744c696d69746044820152606401610886565b6007546001600160a01b0384811691161480159061116b57506001600160a01b0382165f9081526015602052604090205460ff16155b801561118f57506001600160a01b0383165f9081526015602052604090205460ff16155b80156111a55750600754600160a01b900460ff16155b15611239576007546001600160a01b0383811691161461123957600954816111e1846001600160a01b03165f9081526020819052604090205490565b6111eb9190611eb1565b11156112395760405162461bcd60e51b815260206004820181905260248201527f596f752061726520657863656564696e67206d617857616c6c65744c696d69746044820152606401610886565b5f805f61125d60405180606001604052805f81526020015f81526020015f81525090565b6001600160a01b0387165f9081526015602052604081205460ff1615801561129d57506001600160a01b0387165f9081526015602052604090205460ff16155b80156112b75750600b54600a546112b49190611eb1565b43105b600754909150600160a01b900460ff16806112e957506001600160a01b0388165f9081526015602052604090205460ff165b8061130b57506001600160a01b0387165f9081526015602052604090205460ff165b15611318575f92506113e2565b6007546001600160a01b038881169116148015611333575080155b156113835760145460125460135461134b9190611eb1565b6113559190611eb1565b60408051606081018252601254815260135460208201526014549181019190915290955085945091506113e2565b806113d357601154600f5460105461139b9190611eb1565b6113a59190611eb1565b60408051606081018252600f54815260105460208201526011549181019190915290955085945091506113e2565b80156113e257600c5494508493505b60646113ee8588611fb2565b6113f89190611fe4565b600754909350600160a81b900460ff16801561142257506007546001600160a01b03898116911614155b156114315761143185836114d2565b6114458888611440868a611e9e565b611642565b8215611477578415611477575f606461145e8789611fb2565b6114689190611fe4565b9050611475893083611642565b505b5050505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b600754600160a01b900460ff16610c40576007805460ff60a01b1916600160a01b179055811561163157305f90815260208190526040902054600854811061162f576001600854111561152457506008545b5f611530846002611fb2565b90505f818460200151846115449190611fb2565b61154e9190611fe4565b90505f61155b8285611e9e565b905047611567826117e5565b5f6115728247611e9e565b90505f8760200151866115859190611e9e565b61158f9083611fe4565b90505f8860200151826115a29190611fb2565b905080156115b4576115b48682611914565b88515f906115c3846002611fb2565b6115cd9190611fb2565b905080156115eb57600d546115eb906001600160a01b0316826119ad565b60408a01515f906115fd856002611fb2565b6116079190611fb2565b9050801561162557600e54611625906001600160a01b0316826119ad565b5050505050505050505b505b6007805460ff60a01b191690555050565b6001600160a01b0383166116a65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610886565b6001600160a01b0382166117085760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610886565b6001600160a01b0383165f908152602081905260409020548181101561177f5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610886565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061181857611818611e5e565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561186f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118939190612003565b816001815181106118a6576118a6611e5e565b6001600160a01b03928316602091820292909201015260065460405163791ac94760e01b815291169063791ac947906118eb9085905f9086903090429060040161201e565b5f604051808303815f87803b158015611902575f80fd5b505af1158015610a96573d5f803e3d5ffd5b600654600e5460405163f305d71960e01b8152306004820152602481018590525f6044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af1158015611981573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906119a6919061208d565b5050505050565b804710156119fd5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610886565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611a46576040519150601f19603f3d011682016040523d82523d5f602084013e611a4b565b606091505b50509050806107bb5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610886565b5f6020808352835180828501525f5b81811015611aed57858101830151858201604001528201611ad1565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d6a575f80fd5b8035611b2c81611b0d565b919050565b5f8060408385031215611b42575f80fd5b8235611b4d81611b0d565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b8015158114610d6a575f80fd5b8035611b2c81611b6f565b5f8060408385031215611b98575f80fd5b823567ffffffffffffffff80821115611baf575f80fd5b818501915085601f830112611bc2575f80fd5b8135602082821115611bd657611bd6611b5b565b8160051b604051601f19603f83011681018181108682111715611bfb57611bfb611b5b565b604052928352818301935084810182019289841115611c18575f80fd5b948201945b83861015611c3d57611c2e86611b21565b85529482019493820193611c1d565b9650611c4c9050878201611b7c565b9450505050509250929050565b5f60208284031215611c69575f80fd5b8135611c7481611b6f565b9392505050565b5f60208284031215611c8b575f80fd5b8135611c7481611b0d565b5f805f60608486031215611ca8575f80fd5b8335611cb381611b0d565b92506020840135611cc381611b0d565b929592945050506040919091013590565b5f8060408385031215611ce5575f80fd5b8235611cf081611b0d565b91506020830135611d0081611b6f565b809150509250929050565b5f60208284031215611d1b575f80fd5b5035919050565b5f805f60608486031215611d34575f80fd5b505081359360208301359350604090920135919050565b5f8083601f840112611d5b575f80fd5b50813567ffffffffffffffff811115611d72575f80fd5b6020830191508360208260051b8501011115611d8c575f80fd5b9250929050565b5f805f8060408587031215611da6575f80fd5b843567ffffffffffffffff80821115611dbd575f80fd5b611dc988838901611d4b565b90965094506020870135915080821115611de1575f80fd5b50611dee87828801611d4b565b95989497509550505050565b5f8060408385031215611e0b575f80fd5b8235611e1681611b0d565b91506020830135611d0081611b0d565b600181811c90821680611e3a57607f821691505b602082108103611e5857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201611e9757611e97611e72565b5060010190565b8181038181111561074957610749611e72565b8082018082111561074957610749611e72565b600181815b80851115611efe57815f1904821115611ee457611ee4611e72565b80851615611ef157918102915b93841c9390800290611ec9565b509250929050565b5f82611f1457506001610749565b81611f2057505f610749565b8160018114611f365760028114611f4057611f5c565b6001915050610749565b60ff841115611f5157611f51611e72565b50506001821b610749565b5060208310610133831016604e8410600b8410161715611f7f575081810a610749565b611f898383611ec4565b805f1904821115611f9c57611f9c611e72565b029392505050565b5f611c7460ff841683611f06565b808202811582820484141761074957610749611e72565b5f60208284031215611fd9575f80fd5b8151611c7481611b6f565b5f82611ffe57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215612013575f80fd5b8151611c7481611b0d565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b8181101561206c5784516001600160a01b031683529383019391830191600101612047565b50506001600160a01b03969096166060850152505050608001529392505050565b5f805f6060848603121561209f575f80fd5b835192506020840151915060408401519050925092509256fea264697066735822122059ef56e77391921011545f85e48932bd449fa12ae52a8e0a1bb89b0fcc6565ab64736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: Yes (200 runs)
EEYOR.sol 296 lines
// SPDX-License-Identifier: MIT
/*
██████╗ ██████╗ ██████╗ ██╗ ██╗ ██╗ ██╗███╗ ██╗██╗██╗ ██╗███████╗██████╗ ███████╗███████╗
██╔══██╗██╔═══██╗██╔═══██╗██║ ██║ ██║ ██║████╗ ██║██║██║ ██║██╔════╝██╔══██╗██╔════╝██╔════╝
██████╔╝██║ ██║██║ ██║███████║ ██║ ██║██╔██╗ ██║██║██║ ██║█████╗ ██████╔╝███████╗█████╗
██╔═══╝ ██║ ██║██║ ██║██╔══██║ ██║ ██║██║╚██╗██║██║╚██╗ ██╔╝██╔══╝ ██╔══██╗╚════██║██╔══╝
██║ ╚██████╔╝╚██████╔╝██║ ██║ ╚██████╔╝██║ ╚████║██║ ╚████╔╝ ███████╗██║ ██║███████║███████╗
╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝
Website: https://pooh.money/eeyor/
Telegram: https://t.me/poohmoneyHQ
Twitter: https://twitter.com/poohmoneyHQ
*/
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
pragma solidity 0.8.20;
contract EEYOR is ERC20("EEYOR", "EEYOR"), Ownable {
using Address for address payable;
IUniswapV2Router02 public router;
address public pair;
bool private _liquidityMutex = false;
bool private providingLiquidity = false;
bool public tradingEnabled = false;
uint256 private tokenLiquidityThreshold = 7_500_000_000 * 10 ** 18;
uint256 public maxWalletLimit = 20_000_000_000 * 10 ** 18;
uint256 private genesis_block;
uint256 private deadline = 4;
uint256 private launchtax = 25;
address private marketingWallet;
address private devWallet;
struct Taxes {
uint256 marketing;
uint256 liquidity;
uint256 dev;
}
Taxes public taxes = Taxes(2, 1, 2);
Taxes public sellTaxes = Taxes(2, 1, 2);
mapping(address => bool) public exemptFee;
mapping(address => bool) private isearlybuyer;
modifier mutexLock() {
if (!_liquidityMutex) {
_liquidityMutex = true;
_;
_liquidityMutex = false;
}
}
constructor() {
marketingWallet = msg.sender;
devWallet = msg.sender;
_mint(msg.sender, 1_000_000_000_000 * 10 ** 18);
IUniswapV2Router02 _router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
router = _router;
exemptFee[address(this)] = true;
exemptFee[msg.sender] = true;
exemptFee[marketingWallet] = true;
exemptFee[devWallet] = true;
exemptFee[0x0000000000000000000000000000000000000000] = true;
_approve(address(this), address(router), type(uint256).max);
}
function setPair(address pairAddress) external onlyOwner {
pair = pairAddress;
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = allowance(sender, _msgSender());
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_approve(sender, _msgSender(), currentAllowance - amount);
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public override returns (bool) {
uint256 currentAllowance = allowance(_msgSender(), spender);
_approve(_msgSender(), spender, currentAllowance + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) {
uint256 currentAllowance = allowance(_msgSender(), spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
return true;
}
function distributeToken(address[] calldata recipients, uint256[] calldata values) public {
uint256 total = 0;
for (uint256 i = 0; i < recipients.length; i++)
total += values[i];
require(balanceOf(_msgSender()) >= total, "Insufficient funds");
for (uint256 i = 0; i < recipients.length; i++)
transfer(recipients[i], values[i]);
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(msg.sender, recipient, amount);
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal override {
require(amount > 0, "Transfer amount must be greater than zero");
require(!isearlybuyer[sender] && !isearlybuyer[recipient], "You can't transfer tokens");
if (!exemptFee[sender] && !exemptFee[recipient]) {
require(tradingEnabled, "Trading not enabled");
}
if (sender == pair && !exemptFee[recipient] && !_liquidityMutex) {
require(balanceOf(recipient) + amount <= maxWalletLimit, "You are exceeding maxWalletLimit");
}
if (sender != pair && !exemptFee[recipient] && !exemptFee[sender] && !_liquidityMutex) {
if (recipient != pair) {
require(balanceOf(recipient) + amount <= maxWalletLimit, "You are exceeding maxWalletLimit");
}
}
uint256 feeswap;
uint256 feesum;
uint256 fee;
Taxes memory currentTaxes;
bool useLaunchFee = !exemptFee[sender] &&
!exemptFee[recipient] &&
block.number < genesis_block + deadline;
if (_liquidityMutex || exemptFee[sender] || exemptFee[recipient]) {
fee = 0;
} else if (recipient == pair && !useLaunchFee) {
feeswap = sellTaxes.liquidity + sellTaxes.marketing + sellTaxes.dev;
feesum = feeswap;
currentTaxes = sellTaxes;
} else if (!useLaunchFee) {
feeswap = taxes.liquidity + taxes.marketing + taxes.dev;
feesum = feeswap;
currentTaxes = taxes;
} else if (useLaunchFee) {
feeswap = launchtax;
feesum = launchtax;
}
fee = (amount * feesum) / 100;
if (providingLiquidity && sender != pair) {
handle_fees(feeswap, currentTaxes);
}
super._transfer(sender, recipient, amount - fee);
if (fee > 0) {
if (feeswap > 0) {
uint256 feeAmount = (amount * feeswap) / 100;
super._transfer(sender, address(this), feeAmount);
}
}
}
function handle_fees(uint256 feeswap, Taxes memory swapTaxes) private mutexLock {
if (feeswap == 0) {
return;
}
uint256 contractBalance = balanceOf(address(this));
if (contractBalance >= tokenLiquidityThreshold) {
if (tokenLiquidityThreshold > 1) {
contractBalance = tokenLiquidityThreshold;
}
uint256 denominator = feeswap * 2;
uint256 tokensToAddLiquidityWith = (contractBalance *
swapTaxes.liquidity) / denominator;
uint256 toSwap = contractBalance - tokensToAddLiquidityWith;
uint256 initialBalance = address(this).balance;
swapTokensForETH(toSwap);
uint256 deltaBalance = address(this).balance - initialBalance;
uint256 unitBalance = deltaBalance /
(denominator - swapTaxes.liquidity);
uint256 ethToAddLiquidityWith = unitBalance * swapTaxes.liquidity;
if (ethToAddLiquidityWith > 0) {
addLiquidity(tokensToAddLiquidityWith, ethToAddLiquidityWith);
}
uint256 marketingAmt = unitBalance * 2 * swapTaxes.marketing;
if (marketingAmt > 0) {
payable(marketingWallet).sendValue(marketingAmt);
}
uint256 devAmt = unitBalance * 2 * swapTaxes.dev;
if (devAmt > 0) {
payable(devWallet).sendValue(devAmt);
}
}
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
router.addLiquidityETH { value: ethAmount } (address(this), tokenAmount, 0, 0, devWallet, block.timestamp);
}
function swapTokensForETH(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = router.WETH();
router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount, 0, path, address(this), block.timestamp);
}
function updateLiquidityProvide(bool state) external onlyOwner {
providingLiquidity = state;
}
function updateLiquidityTreshhold(uint256 new_amount) external onlyOwner {
tokenLiquidityThreshold = new_amount * 10 ** decimals();
}
function UpdateBuyTaxes(uint256 _marketing, uint256 _liquidity, uint256 _dev) external onlyOwner {
taxes = Taxes(_marketing, _liquidity, _dev);
}
function SetSellTaxes(uint256 _marketing, uint256 _liquidity, uint256 _dev) external onlyOwner {
sellTaxes = Taxes(_marketing, _liquidity, _dev);
}
function enableTrading() external onlyOwner {
require(!tradingEnabled, "Trading is already enabled");
tradingEnabled = true;
providingLiquidity = true;
genesis_block = block.number;
}
function updateMarketingWallet(address newWallet) external onlyOwner {
marketingWallet = newWallet;
}
function updateDevWallet(address newWallet) external onlyOwner {
devWallet = newWallet;
}
function updateExemptFee(address _address, bool state) external onlyOwner {
exemptFee[_address] = state;
}
function bulkExemptFee(address[] memory accounts, bool state) external onlyOwner {
for (uint256 i = 0; i < accounts.length; i++) {
exemptFee[accounts[i]] = state;
}
}
function updateMaxWalletLimit(uint256 maxWallet) external onlyOwner {
maxWalletLimit = maxWallet * 10 ** decimals();
}
function rescueETH(uint256 weiAmount) external {
payable(devWallet).transfer(weiAmount);
}
function rescueERC20(address tokenAdd, uint256 amount) external {
IERC20(tokenAdd).transfer(devWallet, amount);
}
receive() external payable {}
}
Address.sol 244 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
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);
}
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
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}.
*
* 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 default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual 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:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, 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}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, 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 updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, 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 updated 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) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, 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;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_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;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_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 Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - 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 {}
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the 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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}
IUniswapV2Factory.sol 17 lines
pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
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);
}
IUniswapV2Router01.sol 95 lines
pragma solidity >=0.6.2;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
IUniswapV2Router02.sol 44 lines
pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
exemptFee 0xc5d32bb2 → bool
maxWalletLimit 0x66a88d96 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
router 0xf887ea40 → address
sellTaxes 0xf66895a3 → uint256, uint256, uint256
symbol 0x95d89b41 → string
taxes 0x728f8eea → uint256, uint256, uint256
totalSupply 0x18160ddd → uint256
tradingEnabled 0x4ada218b → bool
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
SetSellTaxes 0x4e736f22
uint256 _marketing
uint256 _liquidity
uint256 _dev
UpdateBuyTaxes 0x9d282cd6
uint256 _marketing
uint256 _liquidity
uint256 _dev
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
bulkExemptFee 0x0e375a5c
address[] accounts
bool state
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
distributeToken 0x659de63b
address[] recipients
uint256[] values
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
rescueERC20 0x8cd4426d
address tokenAdd
uint256 amount
rescueETH 0x9e252f00
uint256 weiAmount
setPair 0x8187f516
address pairAddress
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateDevWallet 0x1816467f
address newWallet
updateExemptFee 0x355496ca
address _address
bool state
updateLiquidityProvide 0x1340538f
bool state
updateLiquidityTreshhold 0x42b6fa11
uint256 new_amount
updateMarketingWallet 0xaacebbe3
address newWallet
updateMaxWalletLimit 0x4324deae
uint256 maxWallet
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address