Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xeE372d2b7e7C83DE7e345267b5e4eFC1899a4FAB
Balance 0 ETH
Nonce 1
Code Size 6716 bytes
Last Active
Indexed Transactions 2 (24,252,04524,319,087)
Gas Used (indexed) 48,572
External Etherscan · Sourcify

Contract Bytecode

6716 bytes
0x6080604052600436106101e4575f3560e01c80638da5cb5b11610100578063c9567bf911610099578063e7cb12201161006b578063e7cb122014610588578063e96fada2146105b6578063f2fde38b146105db578063fe9fbb80146105fa578063ffb54a991461063157005b8063c9567bf914610512578063cc1776d314610526578063dd62ed3e1461053b578063e0bf7fd11461055a57005b8063a9059cbb116100d2578063a9059cbb146104a0578063bbde77c1146104bf578063bedafd01146104d4578063c647b20e146104f357005b80638da5cb5b1461042a57806395d89b411461044657806398e4439a1461045a578063a457c2d71461048157005b80634ab7cb581161017d578063715018a61161014f578063715018a6146103a457806377b54bad146103b8578063796431d0146103d757806384486604146103f65780638c0b5e221461041557005b80634ab7cb581461031d5780634f7041a51461033c5780635d098b381461035157806370a082311461037057005b806323b872dd116101b657806323b872dd14610279578063313ce5671461029857806339509351146102b357806349bd5a5e146102d257005b80630445b667146101ed57806306fdde0314610215578063095ea7b31461023657806318160ddd1461026557005b366101eb57005b005b3480156101f8575f80fd5b50610202600c5481565b6040519081526020015b60405180910390f35b348015610220575f80fd5b5061022961064a565b60405161020c91906116b9565b348015610241575f80fd5b50610255610250366004611719565b6106da565b604051901515815260200161020c565b348015610270575f80fd5b50600354610202565b348015610284575f80fd5b50610255610293366004611743565b6106f3565b3480156102a3575f80fd5b506040516012815260200161020c565b3480156102be575f80fd5b506102556102cd366004611719565b610718565b3480156102dd575f80fd5b506103057f0000000000000000000000004d8da3fc4bbdf8c12d63217b423d1daa4313bf2481565b6040516001600160a01b03909116815260200161020c565b348015610328575f80fd5b506101eb610337366004611781565b610739565b348015610347575f80fd5b50610202600e5481565b34801561035c575f80fd5b506101eb61036b3660046117a1565b6107f0565b34801561037b575f80fd5b5061020261038a3660046117a1565b6001600160a01b03165f9081526001602052604090205490565b3480156103af575f80fd5b506101eb610843565b3480156103c3575f80fd5b506102556103d2366004611719565b610877565b3480156103e2575f80fd5b506101eb6103f13660046117bc565b6109d1565b348015610401575f80fd5b506101eb6104103660046117e0565b610ab9565b348015610420575f80fd5b5061020260085481565b348015610435575f80fd5b505f546001600160a01b0316610305565b348015610451575f80fd5b50610229610b0c565b348015610465575f80fd5b50610305737a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561048c575f80fd5b5061025561049b366004611719565b610b1b565b3480156104ab575f80fd5b506102556104ba366004611719565b610ba0565b3480156104ca575f80fd5b5061020260095481565b3480156104df575f80fd5b506101eb6104ee3660046117e0565b610bad565b3480156104fe575f80fd5b506101eb61050d366004611781565b610c00565b34801561051d575f80fd5b506101eb610c31565b348015610531575f80fd5b50610202600d5481565b348015610546575f80fd5b50610202610555366004611817565b610c69565b348015610565575f80fd5b506102556105743660046117a1565b600b6020525f908152604090205460ff1681565b348015610593575f80fd5b506102556105a23660046117a1565b600a6020525f908152604090205460ff1681565b3480156105c1575f80fd5b50600754610305906201000090046001600160a01b031681565b3480156105e6575f80fd5b506101eb6105f53660046117a1565b610c93565b348015610605575f80fd5b506102556106143660046117a1565b6001600160a01b03165f908152600a602052604090205460ff1690565b34801561063c575f80fd5b506007546102559060ff1681565b60606004805461065990611843565b80601f016020809104026020016040519081016040528092919081815260200182805461068590611843565b80156106d05780601f106106a7576101008083540402835291602001916106d0565b820191905f5260205f20905b8154815290600101906020018083116106b357829003601f168201915b5050505050905090565b5f336106e7818585610d2d565b60019150505b92915050565b5f33610700858285610e50565b61070b858585610ec8565b60019150505b9392505050565b5f336106e781858561072a8383610c69565b610734919061188f565b610d2d565b5f546001600160a01b0316331461076b5760405162461bcd60e51b8152600401610762906118a2565b60405180910390fd5b8115806107785750606482115b1561079657604051636ac4115560e11b815260040160405180910390fd5b8015806107a35750606481115b156107c157604051636ac4115560e11b815260040160405180910390fd5b5f6107cb60035490565b90506107d981846064610f7b565b6009556107e881836064610f7b565b600855505050565b5f546001600160a01b031633146108195760405162461bcd60e51b8152600401610762906118a2565b600780546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b5f546001600160a01b0316331461086c5760405162461bcd60e51b8152600401610762906118a2565b6108755f611039565b565b5f306001600160a01b038416036108a1576040516334131c8560e01b815260040160405180910390fd5b815f03610992576040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa1580156108ea573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061090e91906118d7565b60075460405163a9059cbb60e01b81526001600160a01b0362010000909204821660048201526024810183905291935084169063a9059cbb906044015b6020604051808303815f875af1158015610967573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098b91906118ee565b90506106ed565b60075460405163a9059cbb60e01b8152620100009091046001600160a01b0390811660048301526024820184905284169063a9059cbb9060440161094b565b5f546001600160a01b031633146109fa5760405162461bcd60e51b8152600401610762906118a2565b5f610a0460035490565b90505f610a1983670de0b6b3a7640000611909565b9050610a276103e883611934565b8110158015610a405750610a3c601483611934565b8111155b610ab25760405162461bcd60e51b815260206004820152603860248201527f54686520616d6f756e742073686f756c64206265206265747765656e20302e3160448201527f2520616e64203525206f6620746f74616c20737570706c7900000000000000006064820152608401610762565b600c555050565b5f546001600160a01b03163314610ae25760405162461bcd60e51b8152600401610762906118a2565b6001600160a01b03919091165f908152600a60205260409020805460ff1916911515919091179055565b60606005805461065990611843565b5f3381610b288286610c69565b905083811015610b885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610762565b610b958286868403610d2d565b506001949350505050565b5f336106e7818585610ec8565b5f546001600160a01b03163314610bd65760405162461bcd60e51b8152600401610762906118a2565b6001600160a01b03919091165f908152600b60205260409020805460ff1916911515919091179055565b5f546001600160a01b03163314610c295760405162461bcd60e51b8152600401610762906118a2565b600d55600e55565b5f546001600160a01b03163314610c5a5760405162461bcd60e51b8152600401610762906118a2565b6007805460ff19166001179055565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b5f546001600160a01b03163314610cbc5760405162461bcd60e51b8152600401610762906118a2565b6001600160a01b038116610d215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610762565b610d2a81611039565b50565b6001600160a01b038316610d8f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610762565b6001600160a01b038216610df05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610762565b6001600160a01b038381165f8181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f610e5b8484610c69565b90505f198114610ec25781811015610eb55760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610762565b610ec28484848403610d2d565b50505050565b610ed0611088565b15610edd57610edd6110eb565b600754610100900460ff1615610efd57610ef88383836112ea565b505050565b6001600160a01b0383165f908152600b602052604081205460ff1680610f3a57506001600160a01b0383165f908152600b602052604090205460ff165b610f4e57610f4984848461149e565b610f50565b5f5b90508015610f7057610f638430836112ea565b610f6d8183611953565b91505b610ec28484846112ea565b5f80805f19858709858702925082811083820303915050805f03610fb257838281610fa857610fa8611920565b0492505050610711565b808411610fd25760405163227bc15360e01b815260040160405180910390fd5b5f8486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091025f889003889004909101858311909403939093029303949094049190911702949350505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f336001600160a01b037f0000000000000000000000004d8da3fc4bbdf8c12d63217b423d1daa4313bf2416148015906110ca5750600754610100900460ff16155b80156110e65750600c54305f9081526001602052604090205410155b905090565b6007805461ff00191661010017905561110261153d565b604080516002808252606082018352737a250d5630b4cf539739df2c5dacb4c659f2488d925f92919060208301908036833701905050905030815f8151811061114d5761114d611966565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111a9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111cd919061197a565b816001815181106111e0576111e0611966565b6001600160a01b039283166020918202929092010152600c5460405163791ac94760e01b81529184169163791ac94791611224915f90869030904290600401611995565b5f604051808303815f87803b15801561123b575f80fd5b505af115801561124d573d5f803e3d5ffd5b50506007546040514793505f9250620100009091046001600160a01b03169083905f6040518083038185875af1925050503d805f81146112a8576040519150601f19603f3d011682016040523d82523d5f602084013e6112ad565b606091505b50509050806112cf576040516312171d8360e31b815260040160405180910390fd5b505050506112dd6001600655565b6007805461ff0019169055565b6001600160a01b03831661134e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610762565b6001600160a01b0382166113b05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610762565b6113bb838383611567565b6001600160a01b0383165f90815260016020526040902054818110156114325760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610762565b6001600160a01b038085165f8181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906114919086815260200190565b60405180910390a3610ec2565b5f7f0000000000000000000000004d8da3fc4bbdf8c12d63217b423d1daa4313bf246001600160a01b0316836001600160a01b0316036114ed576114e682600d546064610f7b565b9050610711565b7f0000000000000000000000004d8da3fc4bbdf8c12d63217b423d1daa4313bf246001600160a01b0316846001600160a01b031603611534576114e682600e546064610f7b565b505f9392505050565b60026006540361156057604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b60075460ff1661160d575f546001600160a01b038481169116148015906115ab57506001600160a01b03831673d152f549545093347a162dce210e7293f145215014155b1561160d576001600160a01b0383165f908152600a602052604090205460ff1615806115ef57506001600160a01b0382165f908152600a602052604090205460ff16155b1561160d5760405163e2c865df60e01b815260040160405180910390fd5b6001600160a01b0382165f908152600a602052604090205460ff16611677576009548161164e846001600160a01b03165f9081526001602052604090205490565b611658919061188f565b1115611677576040516324691f6b60e01b815260040160405180910390fd5b6001600160a01b0383165f908152600a602052604090205460ff16610ef857600854811115610ef85760405163973ec46f60e01b815260040160405180910390fd5b5f602080835283518060208501525f5b818110156116e5578581018301518582016040015282016116c9565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d2a575f80fd5b5f806040838503121561172a575f80fd5b823561173581611705565b946020939093013593505050565b5f805f60608486031215611755575f80fd5b833561176081611705565b9250602084013561177081611705565b929592945050506040919091013590565b5f8060408385031215611792575f80fd5b50508035926020909101359150565b5f602082840312156117b1575f80fd5b813561071181611705565b5f602082840312156117cc575f80fd5b5035919050565b8015158114610d2a575f80fd5b5f80604083850312156117f1575f80fd5b82356117fc81611705565b9150602083013561180c816117d3565b809150509250929050565b5f8060408385031215611828575f80fd5b823561183381611705565b9150602083013561180c81611705565b600181811c9082168061185757607f821691505b60208210810361187557634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106ed576106ed61187b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b5f602082840312156118e7575f80fd5b5051919050565b5f602082840312156118fe575f80fd5b8151610711816117d3565b80820281158282048414176106ed576106ed61187b565b634e487b7160e01b5f52601260045260245ffd5b5f8261194e57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156106ed576106ed61187b565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561198a575f80fd5b815161071181611705565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156119e55784516001600160a01b0316835293830193918301916001016119c0565b50506001600160a01b0396909616606085015250505060800152939250505056fea264697066735822122076ad9a366c9446d7eac2a6e3e700a76993bbfbc889fa82bd4005fa0ef34e613f64736f6c63430008170033

Verified Source Code Partial Match

Compiler: v0.8.23+commit.f704f362 EVM: shanghai Optimization: Yes (200 runs)
XTrack.sol 1421 lines
/*
https://twitter.com/XtrackERC
https://t.me/XtrackERC
https://linktr.ee/xtracktech
Website: https://xtrackerc.com/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%@%%%%%%####*#*##=++***+*+*+=+====================--------------------------------------------------------=:=------
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@%@%@#*@%%%#*#  **%%##%=#%%%%#%%#########***********+****++=+++++=+====================================-
@@@@@@@@+=+*%=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@=%%%%%@#@@@%%%#%%=*%#######%###%@@@##+*********++*+*++++*=++++++++==+=====+=======================-
@@*#*%#@@@@@@%%+=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%++%@%%%@@%%%%%@#-%%%%##%####%#%--@*#*##+********++***+++++++++++++++=============================-
@*%@###%%%%%#%%#%+=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@+*@%%%%%%%%%#-%@%%%%%##%%#%#%@*%#######**********+****++****+++++++++++++======================-
@=@#%%@@@@@@@@%%%@%*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@#=%@###+=++#%@%%%%%%%%#%##############+***********+*++++++++++++++============================-
@=@@%%@@@@@@@@@@%@#@-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@%@%@@@@@@@@#=#%%@@@@@@%%%@%%%%%%#%%#%%%%%#####*###+*****+++==+*****+*++*=++++=+==+==+==================-
@%@#@@@@@   @@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@%@@@%%%%%%%%%%%%#%%%%%%#######%###########***######****++++++++*+++++**+++++++==+============-
-@@%@@@@@@@@@@@@%%@-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@%%@%%%%@%%%%%%%%@%%%%%%%###########%#####***********+*****++++++=++++==+===+================-
=@@@%#%%@@@@@@@%#%#@@@@@@@@@@@@@@@@--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@%%%%%%##%%%%%%%%%##%###%######**+*+****++*++++*+*+++++++++=*==+====================-
@#=@@%@%%%%%%*#%@@+%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@%@%%@@@@@@@@%%%@%%%%%%%@%%%%%%%%%%%%#%#############*********+*++*++++++++*++**+++==============+++=-
@@@@=#%@%%@@@@%++-*@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@*#%@@@@@@@@@@@@@@@@@%%@@%%%%%%@%%%%%%%%%%%%%%%#%########*+*****+***+++***++++++++++++++++=+++========+::=-
@@@@@@-##*+===@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@%%@@@@@@%@@@@@@%%%%#%%%%%%%%%#####*#%#########*****##*****++*****++++++++++++++==========**#+-
@@@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@+.@@%@@%%%%#%%%%%%%####%%%##########*#*****#***+*+*++++++++++++++=+++=============-
=@@@@@@@@@@@@@@@@@@@#-*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@@#%@%@%%##%%%%%%%%%@@@@@#%%#####*#+******++***+++**+++++++++++##%###+=+=========-
@#-+@@@@@@@@@@@+=-+%@@@==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@%@@%%%%%%%%%%%%%= =@####%####*##+*******+****++***++##@@#+=====%**==+=======-
%@@@-@@@@@@--*@@@@@@@%@@@-=@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%@%%%%@%%@#%%%%%%%@@@%%####%########***@@@#*****++****%=======*+*==%*++=+=====-
%@@@-@@@@@@=@@@@@@@@%@@@@@@=-*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@%@%@@@@%%@%%%%%%%@@@@@@%%%%%%%%%%%%%%###%##%#########*@:=#***+**++++#==++=======+==@%*++++===-
%@@=%@@@@@+=@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@%@@@@@@@%%%%@@@@@%%##%%@%%%%%%%%%%%%@%%##%%%%%%%#%#############%@@#***#***+*%#=+*++*##*+=++*==#+=++*++-
%@@-@@@@@@-@@@@@@@# *#@@@@@@-=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@@@@@@@@%%%%%%#@@@@@@@@@%%%#%###%############*********#@=#*++=# =#+===#==#+++==++-
%@@-@@@@@@-@@@@@@%= =%@@@@@@-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@      @@@@%@%@@@@@@%@     @%%%%%@@@@%%@@@      @@%#########%#%########+*******%==#++*+@  **+=++=**=++++++-
@@%-@@@@@*@@@@@@@@@@@@@@@@@%-@@@@@@@@@@@@@@%+%@@@@@@@@@%@   @@@   @@%@@@@@@@@@@@     @@%@@@%%@@%%@   @@@   @#%%%%###%%###############****%==++=++##%#+==+=+#*++++++=-
-=%@@@@@@@-#@@@@@@@@@@@@%@@=@@@@@@@@@@@@@@@@%@@@@@@@@@@@@  @@@@@  =@@@@@@@@@@@%@@  =@@@%%%%@%%%%#@  @@@@@  @@%%%%%%####%##%%%#######*#+**%@@==#+=+++===%==%**+**=+++-
@@@@@@@@@@@@-=@@@%@%@@@@@@--@@@@@@@@%@@@@@@@@@@@@@@@@@%%@%   @@   @=+@@@@@@@%@@%@  @@@@@@@%%%%@#@@@   @@   @%%%%#%%%%%##%####%##@@@@@@@@@%##@==+*#===++==@*+++++++*+-
@@@@@@@@@@@@@@=-@@@@*=--=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@        @@@@@@@%@@@@%@  @@@@@%@@@@%@@@        @@@%%%%%%%%%%%###%##@@@%-----=-=@%##@@=====++%%@%**++++++++-
@@@@@@@@@@@@@@@@*--=@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@%%@@%@@@@@@@@   @@@@@@@%@@@@  %@@%@%@-+@@@    @@@@@@@@@%%@@@@%%%%%%####%@--=*##%#*#*=*@%*%@@@%%***%@@@@%*++++++-
@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@   @@@@@@@@%@  %@@%@@@@@@+   @@@@@@%%%%%@@@=@@@%%%%%%%#%@-=##*#%%##*#+#=+%**+#@@@@@+=====%#*++++-
@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@     @@@@@@@@@%%@@@    @@@%@@%@  @@@%@@@@@   @@@@@%%%%%@%%@     @@%%%%%%%%@=##+#+**==+#+*@=%*#+@=:=%@%%=-+@=@%*+*+-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@     @%%@@@@@%@@@%@@@   @@@@@%@  @@@@@%@   @@@@@%@@@@@@%%@@     @@%%%%@%#@==#*#*=  ==-*+#%=%+#@@=@---------@==@%*+-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@     @%@@%@@@@@@@@@@@@  @@@@@%@  @@@%@%@  @@@@@@@@@@@@%@@%@     @@%%%##%%@-@*#*==**+==#+#=@@+%@=@=-=@@@@@=--=#=%#*-
@@@#=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@%@@@=  @@%@@@@@@@@@@@@@#@  @@@@@%@  %@@@%%@  @@%@@@@@%%%%%%@%@@@  @@@%%%##%%@-+@###*++***+%==%##%==*-=@+  #=@=--@=#++-
@@@#=@@@@@@@@@@@@@@@@%@@@@@@*+@@@@@@@%@@@@@%@@@@@%@   @@@@%@@%@@@@@@@%%@  @@@@@%@  %@%@@%@  @@%@@@@@%@%%%%%%%@@  @@%%%%%%%@@@@-=%%*##%@@%%-@@##%=%--=@*#=#=@--%=%#**-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@@@@%@   @%%@@@@@@@@@%@@%#@  @@#%%@@  @@@###@  @@%@@@@@@@@%%%%%%@@  @%%%%%%%%%%%%@*=*%++----%@@###@-%#--=@@@@@=-=+=@*#+-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@%@   @%@%@@@ +@@@@@@@@@  @@@@@@@  =@@@@@@  @@@%%@@* @@%%%%%%@@  @%%%%%%%%%%%%%@@--#@@@@@@%%%%%@@*=@=-------=@=%#**+-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@%%@@%@   @%@%%@   @@@@@@@@@                     @@@@@@   @%%%%%%@@  @%%%%%%%%%%%%%%@@@@%%%%%#######%@@-=%=*%@@===@%*+*+-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%@@@@%@   @%%%@@@  @@                                    =@@@@%%%@@  @@%%%%%%%%%%%%@%@@@%%%%%%%#%%###%%@#---*#%@@%*###**-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@     @@@@@@@@@@%@   @@@@@@       +@=        @@@@@@@@         @@       @@@@@@@  @%@@@@@%%%%%@@@@@%#%%%%%%%%%%####%#@@@@@%%##*#####+-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@%@     @@%@@@@@@@%@   @@      =@@@@@      @@@@@@@@@@@@@@@@       @@@@@      @@@  @%%@%-@%%%@@@   @%%%%%%%%%%%%%##%#%%#########%#*#*#=
@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@%@     @@@@@@@@%@@@=       @@@@@@@      @@@@@@@@@@@@@@@@@@@@      @@@@@@@=       @@@%@@@%%%%%@=  @%#@%%%%%#%%%%%##%###%#############=
%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@      @@@@@@@@@      @@@@@@@@@@@@@@@@@@@@@@@     @@@@@@@@@@      @@@@@@%%%%@+  @%#%#%##%*#%%%%%###%%%#%###%@@#####=
%@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@%%@@@@@@@@        =@@@@@@@@@@@     @@@@@@@@        @@@@@@@@#     @@@@@@@@@@@        @@@@@@@=  @##%%%@##%%%%%%%%%#%##%###%%-+%####=
%@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@            @@@@@@@@@@@@     @@@@@@@            @@@@@@@     @@@@@@@@@@@@@            @@  @@@@@@@@@%%%%%%%%%%%##%####@=@#####=
#@@@@@%@%@@@@@ +@@@@@@@@@@@                        @@@@@@@@@@@@@     @@@@@@@             @@@@@@@    @@@@@@@@@@@@@@                       @@%%@#%%%%%%%%##%%%########=
#%%%%@%@%%%@@@@@@@@@@@@@@@@=                      @@@@@@@@@@@@@@     @@@@@@              @@@@@@@     @@@@@@@@@@@@@                       @%%%%%%%%#%%%%%%##%#%%#####=
#@@@@@@@@@%%%@@@@@%%@@@@@@@                        @@@@@@@@@@@@@     @@@@@@%             @@@@@@@    @@@@@@@@@@@@@@                       @%%%%%%%%%%%%%%%%%%#%%%#%%#=
#@@@@@@@@@@@@@@%@@%@@@%@@@@@@@@@@@@@  @             @@@@@@@@@@@@     @@@@@@@            @@@@@@@     @@@@@@@@@@@@@             @@@@@@@@@@@@%%%%%%%%%%%%%%%%%%##%#####=
#@%@@%%%%@@@@%%@@@@@@@%@%%@@@@@@@%@@  @@@@@@@        @@@@@@@@@@@@     @@@@@@@@        +@@@@@@@@     @@@@@@@@@@@        +@@@@@@@@@@@@%%%%%%%%%%%%%%%%%%#%%%%%%%###%%%+
=@@@%@%@@%%@@@%@%@@%@@@@@@@@%%%%@%@%  @%@%@@@@@@@      =@@@@@@@@@      @@@@@@@@@@@@@@@@@@@@@@@     @@@@@@@@@@      @@@@@@@%#@     @@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##+
=*--@@@@@%%%%%%%@%@@@@@@@-@@@@@@@@@#  @%@@@@@@%@@@@=      =@@@@@@@      @@@@@@@@@@@@@@@@@@@@      @@@@@@@@       @@@@%%%%%@#@     @@%%%%%%%%%%%%%%%%%@%%%%@%%%%%%%%%+
=#%%+--#@@@@@%%@@@@@@---+##--@@@@%@=  @#@@@@@@%%%%@   @@      #@@@@*      @@@@@@@@@@@@@@@@       @@@@@      =@@  @@%@@%%%%%#@     @@%%%%%%%%%%%%%%%%%%%%%%%#%%%%%@@@%
=****%+%-#@#%%@@@---=%*+==#%%%--@@@@@@@%@@@%%%@@%#@   @@@@@@       @@        @@@@@@@@@@        @@@      =@@@@@@  @%%%%%%%@%%@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%@#%%%%%--*
*@%%###%=*@#@%@%-@@%%##%%%##*@@@=%@@@@@@@@@@@@@@@%@   @%%#@@@  @                                     =@@@@@@%@@  @@@@%%%%@@@@@%%%%%%%%@@%%%%%@@@@@@@@@@@%%%@#@%%%@@@#
=@%%%#*%-*@@%@@+-#####@%@%%%###%--@@@@@@@@@@@@@@%@@   @%@%@@%  @@@@@@@                        @@@@@   @%@@@@@%@  @@@@%%%%%%%%%%@%@@@@@%%@%%@%%%%%%%%@%%%%%%%#%%#%%%@*
 %%%%##@-#@%%%@+*%##%#%- %%%%##%+%@@@@@@@@@@@@@@@@@   @%@%@@#  @@@@%%@@@  @@@@@=#  =+#@@@@  @@@@%#@   @%%%%%@@@  @@%%%@@@@@@@@@@@@#+=#@@@@%%@@%%%%@%%%%%%%%%%%%%#%%%+
+@%%#%#%-@@%%%@-####%%%%%@%%%%#%-@@@@@@@@@@@@@@@@%@   @%@@%@#  @@@@@%@%@  @@@@@@@  @@@@@%@  @@@@@%@   @%%%%@%@@  @@%%%%@@@@@@%#+=##%%%*+@@@@@%%@%%%%%%%%%%%%%%%%%%%%*
=%##*###-@@%%@@-@###%%@@@@@%###%-@@@@@@@@@@@@@@@@@@   @@@@@@   @@%@@@%%@  @@@@@%@  #@@@@%@  @@%%@%@   @%@%%%%@@  @@@@%@@@@@%+*@@@@%%%%%%*=%@@%%%%@@@%%%%%%%%%%%%%%@@#
=###=---@@%%%%@-=%%###%######%*-*@@@@@@@@@@@@@@@@@@=  @@%@@@@@@@@@@@@@@@  @@@@@%@  #@@@@@@  @@%@@@@@@@@@@@@@@@@  @@@@@@@@@@@%@%%%@@@@@%@%%%#@@@@@@@@%@@@%%%%%%%%%@@%=
==--%@@@@@%%%%@@@--*%%###%#*--#@@@@@@@@@@@@@@@@@@@     @@@@@@@@@@@@@@@@@  @@@@@@@  #@@@@%@  @@@@@@@@@@@%@@@@@     @@@@%@@@@*#@%%@@+*%@%%%%#%@%%%%%%%%@@%%@%%%%%%@@-==
=%@@@@%@@@@@@@%%@@@@--**=-=@@@@@@@@@@@@@@@@@@@@@%@     @@%@@@@@@@@@@@@@#  @@@@@@@  %@@@@@@   @@@@@@@@@@@@@@@@     @@@@@@@@@*@%@@@#--#%%@%#%%%@@@@@@@%%%@%%@@%%%%@=-@-
+@%%%@@@+-+--#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     @%@@@@@@@@@@@@@   @@@@@@@@  %@@@@@@@*   @@@@@@@%@@@@@@     +@@@@@@@%#@%@%@@@@@@@@%#%@@@@@@@@@@%%%%%@%@@@@@-*@-
+@@@*=-+%@@@@@+-*@@@@%%@@@@@@@@@%@%%@@@@@@@@@@@@@@@@@@@@%%%%@@@@@@@@   @@@@@@@@@@  %@@@@@@@@@   =@@@@@@@@@@@@@@@@@@@@@@@@@@*=%@@%@%%%%%%%*%@@@@@@@@@@@@@@%%%%@%@@-%@-
**-+%%%%%%%%%%@@#+=#@@@@@@@@@@@@@%%%@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@   @@@@@@@@@@@@  #@@@@@@@@@@@   #@@@@@@@@@@@@@@@@@@@@@@@@@@@##%%%####*#@@@@@%%@@@@@@@@@@@%%%%@-@#@-
#-#%%%##%####%%%@@**@@@@@%@@@@@@@@@@@%@@@@@@%@@@@@@@@@#%%@@=       =@@@@@@@@@@@@@  #@@@@@@@@@@@@@        @@@@@@@@@@@%+==-+@@@@@%%#%%@@@@@@@@@@@@%%%@@@@%%@@%@@@@@--@+
#-%%###%%%%#*#%%%@*%@%@@%%@@@@@@@@@@@@@@@@@@@@@@%@@%%%@@@@   =    @@@@@@@@@@@@@@@  *@@@@@@@@@@@%@@@   :    @@@@@*===***##+-=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#@@@@@--
*-%%##%*%  ####%@%=%@%%%%%@%%@@%@@@@@@@@@@@@@@@@@@@%%@@ @  @@@@@  =@@@@@@@%@@@@@@  @@@@@@@@@@@@@@@  #@@@@  @@@@+######%%####==@@@@@@@@@@@@@@@@@@@@@@@@@@@*--**--@@@@%
+=@#%%##%@@@##%@@@*%@@@@@%@@@%%@@%%%@@@@@@@@@@@@@@%%@@@@@   @@@   @@@@@@@@@@%-@@     @@@@@@@@@@@@@   @@@=  @@@@+###@@@@@@%#*%+@@@@@@@@@@@@@@@@@@@@@@@*-=#@@@@@@@-=%@@
--@#%##%%#%#%%%@@#*%%%%%%%@@@@@@%%@@@@@@@@@@@@@@@@@%%@%%@@=      @@@@@@@@@@@@@@@     @@@@@@@@@@@@@@=      @@@@#*#%@@@  @@@#%%-@@%@@@@@@@@@@@@@@@@@@@@=@@@@%#*#%@%@#=%
=-#*%@%%%%@%%%%%**#@%@@%%%%%%%@@@@@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=%#%%@@@@@@@##*@@@@@@@@@@@##@@@@@@@@@@%-@@#*#@@+-=*%%-%
*@@%=-##%%%####%%@@@%%@@@@%%%%%@@@@@@%@@@@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=%#@%%%%%%%##%=@@@@%%@@@@@@@@@@@@@@@@@%@@%*+#  *+##%-#%
+%%%%@%*++*#%%%@#@@@%%%@@@@@%%%%@@@@@@@@@@%+*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#=+%######+==+@%@@@@@@@@@@@@@@@@@@@@@-@@%*-%%%+:##* @+
+##%%%#@@@@%%%%%%%%%%@%%%%%@@%@@@@@%@@@+-*%*#@==@@@@@@@@@@@@@@==#@==@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=+**+=+#@@@@@@@@@@@@@@@@@@@@@@@@@@=-@@@@=+@@@+:  =:
+%%#%%#%%%%%%%%%%%%%%%%%%@%%%@@%@@@%**%@#+++*++%@+=@@@@@@@%=+@@@@@@@@=+%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@%%@@@@@@*==@@@@@@@@@@@@@@@@@@@@@@@=-*%%@*.    =- 
+##%%%#%%%%%%%%%%%%%%%%%%%@@%%%@@@@*@#=-*#%@%%#-=-*=@@@@+*@@@%+-=--#@@@#%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@===*#**-+@@@@@@@@@@@@=---+%@@@@%--=  +#@@@%-
=##%%%%####%%%%%%%%@@@%%%%%%%%%%%@=@=++%@@@@@@@#*+@*@%%@=@@*-*@@@@@@-*@%*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@@@@==+*##******-=@@@@@@@#=+@@@@@%@#%@@@@@@@@@%%%#-
=######%#%####%%%%%+-@%%%%%%%%%%%@*@-*+@%@  @%%*=*==@%@@+@@+-@@  @%@**@##@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*-###%@@@@%##+=+@@@#%##%%#***####%#@@%%%%%%%%%#-
=###*####%#%%#####%@@@%%%%%%%%%%%@-@-+*@@@@@@@%==@@@@@@@=@@-=@%@@@%@-*@#@@@@@@@@@@@@*-@@@@@@@@@@@@@@@%@@- @@%%@@@%%@@--#*%#% @###===-@%%#%####%@@@#%%##*%%%%%%%%%%%%-
-+**#######%%#%#%###%%%%%@%%%%%%%@+@-==+%%@%%+-=-@=%%@@@=@@--#@@@%+--@@=*@@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+#%#@@@ @@@%##=%@%%%##*##@  @**####%@#%%%%@%%#%-
-******###*###%%%%#%%####%%%#@%%#@--@@-------=+@#-@@@%@%-#@@@@----@@@@+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%-###%%@@@%##*#=@@%#%@#*##%@@@**%*##%@%%%%%%#==%-
-#******+#######%%%#%%%%%%##%%%%%@@@%+-%%*+#@+-@@@@@@@@@@@+-*@@@@@@+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=-=+++=#**+++--@@%%*%%%###%%##%@+#%%%%%%%%#*=+*=
-+++**#*#*+*+##**##%#%%%%%#%#%##%%##%%@@*--=%@@@@@#=--%@@@@@@*---+@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%--**++---@@@@@@@@=-#@@%%%@@% =@%%%%%%###*#%*:
-+++++++*+##*****##***######%%%%%%%%%###@@@@@@@%--++*+++--@@@@@@@@@@@@@%%%%@%@@@%@%%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=--#@@@@@=-+@@@@@%-#@%#  #@@@@%%%%##%%%##*:
-++++++**+*************##*###*##%%#%%%%###%@%=-=+=++++++=++-@@%@%%%%%%%%%%@@%%%%%@@@@@@@@@@@@@@%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#--*@@%+-#@@@@@--@@@@@%%%%%%##%%##+*+.
-++++++++++++++*+***********########%%%%%%@=====+**###**+=*-%@%%%%%%%@@%%%%%%%%@%%%%%%%%%%%%%%%%@@@@%%%@@@@@@@@@@@@@@@@@@@@@--*#@@%%%%@%%--@%@@@@%%%%%%%%%#%%%###*#*.
-===+++*++++++++**+++*******+@@%*+#*#*####@-=+=+**@%@%#*+++-%%%@%%%%%%%@@@%%%%%%@@%@@@@%%@@@@@@@%%%%@@@@%%%%%%@@@@@@@@@@@%@@-@@%%%@%@%%%%@*@@@%%%%%%%%%#%%#%%#%####*.
-========+*++++++++++*+*****#=:@*****#+###@##=++**@  #%#++#*@%%%%%%@%%%%=*@%%%%%%%%%%@@@%%@@=-@@@@%%%@@@@@@%@%%%*%@@@@@@@@@@-%%%%@@#%@%%#@-@%@%%%%%%%%@%%%#%######## 
-==+========++++++++++++++++#@@%********++%==+==**@@@@*+==*=#@%##%#%%%%%@%%@%%%%%%#%%%%%%%%@@@@%%%%@@@%@%@@%@%@@@%@@@@@@@@%@-@#%%%@ @@%##@-@%%%%%%%%%%#%%########### 
-================+++++++++=++++++++*++****%==++===++=+====*-@%#%#%%#%%%%%##%%%%%%%%%%%%%%%#%%%%%%%%%%%%%%%%%%@@@@@@%%%%%%%@@-@%##%%%%%%#%@-@%%%#%%%%%%%%#%%######+#: 
-=================+=+++++++++++=++*++*****%#==============@@@#*#######%#%#%%####%%%%%%#%%#%%%%#%%%%#%%%%%%%%%%%%%%%%%%%%%@@@-=@@@%%#%@%%#--@@%%#%%%%%###%%%#%#*##+-: 
-=======================+=++++=++++=++++++++%##========%@%#*****+##**########%%%######@%%%%%%%%%%%%%%%%%%%%@%%%%%%%%%%%%%%%@@@--+@@%%---@@@@%%%@%%%%#%%%%%%%*#**#*:  
-------------------------------------------------------------------===-==================+++*****+*******++++****************#%@@---=%%%%#*#**++++=++++====-----:   
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/**
 * @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;
  }
}

/**
 * @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);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.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);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.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].
 *
 * 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}.
   *
   * The default value of {decimals} is 18. To select a different value for
   * {decimals} you should overload it.
   *
   * All two of these values are immutable: they can only be set once during
   * construction.
   */
  constructor(string memory name_, string memory symbol_) {
    _name = name_;
    _symbol = symbol_;
  }

  /**
   * @dev Returns the name of the token.
   */
  function name() public view virtual override returns (string memory) {
    return _name;
  }

  /**
   * @dev Returns the symbol of the token, usually a shorter version of the
   * name.
   */
  function symbol() public view virtual override returns (string memory) {
    return _symbol;
  }

  /**
   * @dev Returns the number of decimals used to get its user representation.
   * For example, if `decimals` equals `2`, a balance of `505` tokens should
   * be displayed to a user as `5.05` (`505 / 10 ** 2`).
   *
   * Tokens usually opt for a value of 18, imitating the relationship between
   * Ether and Wei. This is the value {ERC20} uses, unless this function is
   * overridden;
   *
   * NOTE: This information is only used for _display_ purposes: it in
   * no way affects any of the arithmetic of the contract, including
   * {IERC20-balanceOf} and {IERC20-transfer}.
   */
  function decimals() public view virtual override returns (uint8) {
    return 18;
  }

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

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

  /**
   * @dev See {IERC20-transfer}.
   *
   * Requirements:
   *
   * - `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 {}
}

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

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

  function WETH() external pure returns (address);

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

library Math {
  /**
   * @dev Muldiv operation overflow.
   */
  error MathOverflowedMulDiv();

  enum Rounding {
    Floor, // Toward negative infinity
    Ceil, // Toward positive infinity
    Trunc, // Toward zero
    Expand // Away from zero
  }

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

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

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

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

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

  /**
   * @dev Returns the largest of two numbers.
   */
  function max(uint256 a, uint256 b) internal pure returns (uint256) {
    return a > b ? a : b;
  }

  /**
   * @dev Returns the smallest of two numbers.
   */
  function min(uint256 a, uint256 b) internal pure returns (uint256) {
    return a < b ? a : b;
  }

  /**
   * @dev Returns the average of two numbers. The result is rounded towards
   * zero.
   */
  function average(uint256 a, uint256 b) internal pure returns (uint256) {
    // (a + b) / 2 can overflow.
    return (a & b) + (a ^ b) / 2;
  }

  /**
   * @dev Returns the ceiling of the division of two numbers.
   *
   * This differs from standard division with `/` in that it rounds towards infinity instead
   * of rounding towards zero.
   */
  function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
    if (b == 0) {
      // Guarantee the same behavior as in a regular Solidity division.
      return a / b;
    }

    // (a + b - 1) / b can overflow on addition, so we distribute.
    return a == 0 ? 0 : (a - 1) / b + 1;
  }

  /**
   * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
   * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
   * with further edits by Uniswap Labs also under MIT license.
   */
  function mulDiv(
    uint256 x,
    uint256 y,
    uint256 denominator
  ) internal pure returns (uint256 result) {
    unchecked {
      // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
      // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
      // variables such that product = prod1 * 2^256 + prod0.
      uint256 prod0; // Least significant 256 bits of the product
      uint256 prod1; // Most significant 256 bits of the product
      assembly {
        let mm := mulmod(x, y, not(0))
        prod0 := mul(x, y)
        prod1 := sub(sub(mm, prod0), lt(mm, prod0))
      }

      // Handle non-overflow cases, 256 by 256 division.
      if (prod1 == 0) {
        // Solidity will revert if denominator == 0, unlike the div opcode on its own.
        // The surrounding unchecked block does not change this fact.
        // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
        return prod0 / denominator;
      }

      // Make sure the result is less than 2^256. Also prevents denominator == 0.
      if (denominator <= prod1) {
        revert MathOverflowedMulDiv();
      }

      ///////////////////////////////////////////////
      // 512 by 256 division.
      ///////////////////////////////////////////////

      // Make division exact by subtracting the remainder from [prod1 prod0].
      uint256 remainder;
      assembly {
        // Compute remainder using mulmod.
        remainder := mulmod(x, y, denominator)

        // Subtract 256 bit number from 512 bit number.
        prod1 := sub(prod1, gt(remainder, prod0))
        prod0 := sub(prod0, remainder)
      }

      // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
      // See https://cs.stackexchange.com/q/138556/92363.

      // Does not overflow because the denominator cannot be zero at this stage in the function.
      uint256 twos = denominator & (~denominator + 1);
      assembly {
        // Divide denominator by twos.
        denominator := div(denominator, twos)

        // Divide [prod1 prod0] by twos.
        prod0 := div(prod0, twos)

        // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
        twos := add(div(sub(0, twos), twos), 1)
      }

      // Shift in bits from prod1 into prod0.
      prod0 |= prod1 * twos;

      // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
      // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
      // four bits. That is, denominator * inv = 1 mod 2^4.
      uint256 inverse = (3 * denominator) ^ 2;

      // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
      // in modular arithmetic, doubling the correct bits in each step.
      inverse *= 2 - denominator * inverse; // inverse mod 2^8
      inverse *= 2 - denominator * inverse; // inverse mod 2^16
      inverse *= 2 - denominator * inverse; // inverse mod 2^32
      inverse *= 2 - denominator * inverse; // inverse mod 2^64
      inverse *= 2 - denominator * inverse; // inverse mod 2^128
      inverse *= 2 - denominator * inverse; // inverse mod 2^256

      // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
      // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
      // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
      // is no longer required.
      result = prod0 * inverse;
      return result;
    }
  }

  /**
   * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
   */
  function mulDiv(
    uint256 x,
    uint256 y,
    uint256 denominator,
    Rounding rounding
  ) internal pure returns (uint256) {
    uint256 result = mulDiv(x, y, denominator);
    if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
      result += 1;
    }
    return result;
  }

  /**
   * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
   * towards zero.
   *
   * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
   */
  function sqrt(uint256 a) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }

    // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
    //
    // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
    // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
    //
    // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
    // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
    // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
    //
    // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
    uint256 result = 1 << (log2(a) >> 1);

    // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
    // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
    // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
    // into the expected uint128 result.
    unchecked {
      result = (result + a / result) >> 1;
      result = (result + a / result) >> 1;
      result = (result + a / result) >> 1;
      result = (result + a / result) >> 1;
      result = (result + a / result) >> 1;
      result = (result + a / result) >> 1;
      result = (result + a / result) >> 1;
      return min(result, a / result);
    }
  }

  /**
   * @notice Calculates sqrt(a), following the selected rounding direction.
   */
  function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
    unchecked {
      uint256 result = sqrt(a);
      return
        result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
    }
  }

  /**
   * @dev Return the log in base 2 of a positive value rounded towards zero.
   * Returns 0 if given 0.
   */
  function log2(uint256 value) internal pure returns (uint256) {
    uint256 result = 0;
    unchecked {
      if (value >> 128 > 0) {
        value >>= 128;
        result += 128;
      }
      if (value >> 64 > 0) {
        value >>= 64;
        result += 64;
      }
      if (value >> 32 > 0) {
        value >>= 32;
        result += 32;
      }
      if (value >> 16 > 0) {
        value >>= 16;
        result += 16;
      }
      if (value >> 8 > 0) {
        value >>= 8;
        result += 8;
      }
      if (value >> 4 > 0) {
        value >>= 4;
        result += 4;
      }
      if (value >> 2 > 0) {
        value >>= 2;
        result += 2;
      }
      if (value >> 1 > 0) {
        result += 1;
      }
    }
    return result;
  }

  /**
   * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
   * Returns 0 if given 0.
   */
  function log2(
    uint256 value,
    Rounding rounding
  ) internal pure returns (uint256) {
    unchecked {
      uint256 result = log2(value);
      return
        result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
    }
  }

  /**
   * @dev Return the log in base 10 of a positive value rounded towards zero.
   * Returns 0 if given 0.
   */
  function log10(uint256 value) internal pure returns (uint256) {
    uint256 result = 0;
    unchecked {
      if (value >= 10 ** 64) {
        value /= 10 ** 64;
        result += 64;
      }
      if (value >= 10 ** 32) {
        value /= 10 ** 32;
        result += 32;
      }
      if (value >= 10 ** 16) {
        value /= 10 ** 16;
        result += 16;
      }
      if (value >= 10 ** 8) {
        value /= 10 ** 8;
        result += 8;
      }
      if (value >= 10 ** 4) {
        value /= 10 ** 4;
        result += 4;
      }
      if (value >= 10 ** 2) {
        value /= 10 ** 2;
        result += 2;
      }
      if (value >= 10 ** 1) {
        result += 1;
      }
    }
    return result;
  }

  /**
   * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
   * Returns 0 if given 0.
   */
  function log10(
    uint256 value,
    Rounding rounding
  ) internal pure returns (uint256) {
    unchecked {
      uint256 result = log10(value);
      return
        result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
    }
  }

  /**
   * @dev Return the log in base 256 of a positive value rounded towards zero.
   * Returns 0 if given 0.
   *
   * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
   */
  function log256(uint256 value) internal pure returns (uint256) {
    uint256 result = 0;
    unchecked {
      if (value >> 128 > 0) {
        value >>= 128;
        result += 16;
      }
      if (value >> 64 > 0) {
        value >>= 64;
        result += 8;
      }
      if (value >> 32 > 0) {
        value >>= 32;
        result += 4;
      }
      if (value >> 16 > 0) {
        value >>= 16;
        result += 2;
      }
      if (value >> 8 > 0) {
        result += 1;
      }
    }
    return result;
  }

  /**
   * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
   * Returns 0 if given 0.
   */
  function log256(
    uint256 value,
    Rounding rounding
  ) internal pure returns (uint256) {
    unchecked {
      uint256 result = log256(value);
      return
        result +
        (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
    }
  }

  /**
   * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
   */
  function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
    return uint8(rounding) % 2 == 1;
  }
}

abstract contract ReentrancyGuard {
  // Booleans are more expensive than uint256 or any type that takes up a full
  // word because each write operation emits an extra SLOAD to first read the
  // slot's contents, replace the bits taken up by the boolean, and then write
  // back. This is the compiler's defense against contract upgrades and
  // pointer aliasing, and it cannot be disabled.

  // The values being non-zero value makes deployment a bit more expensive,
  // but in exchange the refund on every call to nonReentrant will be lower in
  // amount. Since refunds are capped to a percentage of the total
  // transaction's gas, it is best to keep them low in cases like this one, to
  // increase the likelihood of the full refund coming into effect.
  uint256 private constant _NOT_ENTERED = 1;
  uint256 private constant _ENTERED = 2;

  uint256 private _status;

  /**
   * @dev Unauthorized reentrant call.
   */
  error ReentrancyGuardReentrantCall();

  constructor() {
    _status = _NOT_ENTERED;
  }

  /**
   * @dev Prevents a contract from calling itself, directly or indirectly.
   * Calling a `nonReentrant` function from another `nonReentrant`
   * function is not supported. It is possible to prevent this from happening
   * by making the `nonReentrant` function external, and making it call a
   * `private` function that does the actual work.
   */
  modifier nonReentrant() {
    _nonReentrantBefore();
    _;
    _nonReentrantAfter();
  }

  function _nonReentrantBefore() private {
    // On the first call to nonReentrant, _status will be _NOT_ENTERED
    if (_status == _ENTERED) {
      revert ReentrancyGuardReentrantCall();
    }

    // Any calls to nonReentrant after this point will fail
    _status = _ENTERED;
  }

  function _nonReentrantAfter() private {
    // By storing the original value once again, a refund is triggered (see
    // https://eips.ethereum.org/EIPS/eip-2200)
    _status = _NOT_ENTERED;
  }

  /**
   * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
   * `nonReentrant` function in the call stack.
   */
  function _reentrancyGuardEntered() internal view returns (bool) {
    return _status == _ENTERED;
  }
}

contract XTrack is Ownable, ERC20, ReentrancyGuard {
  error TradingClosed();
  error TransactionTooLarge();
  error MaxBalanceExceeded();
  error PercentOutOfRange();
  error NotExternalToken();
  error TransferFailed();

  bool public tradingOpen;
  bool private _inSwap;

  address public marketingFeeReceiver;
  uint256 public maxTxAmount;
  uint256 public maxWalletBalance;
  mapping(address => bool) public _authorizations;
  mapping(address => bool) public _isExcludedFromFees;

  address public constant _ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2...

// [truncated — 55947 bytes total]

Read Contract

_ROUTER 0x98e4439a → address
_authorizations 0xe7cb1220 → bool
_isExcludedFromFees 0xe0bf7fd1 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint256
decimals 0x313ce567 → uint8
isAuthorized 0xfe9fbb80 → bool
marketingFeeReceiver 0xe96fada2 → address
maxTxAmount 0x8c0b5e22 → uint256
maxWalletBalance 0xbbde77c1 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTax 0xcc1776d3 → uint256
swapThreshold 0x0445b667 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
uniswapV2Pair 0x49bd5a5e → address

Write Contract 15 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
clearStuckToken 0x77b54bad
address tokenAddress
uint256 tokens
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
openTrading 0xc9567bf9
No parameters
renounceOwnership 0x715018a6
No parameters
setExemptFromFee 0xbedafd01
address addr
bool value
setExemptFromMaxTx 0x84486604
address addr
bool value
setMarketingWallet 0x5d098b38
address _marketingFeeReceiver
setMaxWalletAndTxPercent 0x4ab7cb58
uint256 _maxWalletPercent
uint256 _maxTxPercent
setSwapBackSettings 0x796431d0
uint256 _amount
setTaxes 0xc647b20e
uint256 _buyTax
uint256 _sellTax
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Top Interactions

AddressTxnsSentReceived
0x05CBC3e7...7c1C 1 1
0x1e7e36c9...7161 1 1

Recent Transactions

CSV
|
Hash Method Block Age From/To Value Txn Fee Type
0xb87825f0...ccc2ed approve 24,319,087 IN 0x1e7e36c9...7161 0 ETH 0.000002371211 ETH EIP-1559
0xc472c4d0...659a9d approve 24,252,045 IN 0x05CBC3e7...7c1C 0 ETH 0.000000774676 ETH EIP-1559