Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x618F6884F4367B2E4398e8193e4614c17B24eB60
Balance 0 ETH
Nonce 1
Code Size 14486 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

14486 bytes
0x6080604052600436106103fe5760003560e01c8063809d458d11610213578063b23ba6d011610123578063d257b34f116100ab578063f11a24d31161007a578063f11a24d314610be9578063f2fde38b14610bff578063f637434214610c1f578063f8b45b0514610c35578063fe72b27a14610c4b57600080fd5b8063d257b34f14610b57578063d85ba06314610b77578063dd62ed3e14610b8d578063e2f4560514610bd357600080fd5b8063c17b5b8c116100f2578063c17b5b8c14610ad1578063c18bc19514610af1578063c876d0b914610b11578063c8c8ebe414610b2b578063cc2ffe7c14610b4157600080fd5b8063b23ba6d014610a42578063b62496f514610a62578063bbc0c74214610a92578063c024666814610ab157600080fd5b80639ec22c0e116101a6578063a457c2d711610175578063a457c2d7146109b5578063a4c82a00146109d5578063a4d15b64146109eb578063a7fc9e2114610a0c578063a9059cbb14610a2257600080fd5b80639ec22c0e146109535780639fccce3214610969578063a0d82dc51461097f578063a26577781461099557600080fd5b80638ea5220f116101e25780638ea5220f146108e857806395d89b41146109085780639a7a23d61461091d5780639c3b4fdc1461093d57600080fd5b8063809d458d1461087f5780638a8c523c1461089f5780638cddacbd146108b45780638da5cb5b146108ca57600080fd5b80633d005e941161030e5780636a486a8e116102a1578063715018a611610270578063715018a6146107d157806371fb7493146107e6578063730c18881461081f5780637571336a1461083f5780638095d5641461085f57600080fd5b80636a486a8e1461074f5780636b2fb124146107655780636ddd17131461077b57806370a082311461079b57600080fd5b80634fbee193116102dd5780634fbee193146106ca578063537df3b614610703578063541a43cf146107235780635c068a8c1461073957600080fd5b80633d005e94146106465780634626402b1461065c57806349bd5a5e1461067c5780634a62bb65146106b057600080fd5b80631a8145bb116103915780632c3e486c116103605780632c3e486c146105ba5780632d5a5d34146105d05780632e82f1a0146105f0578063313ce5671461060a578063395093511461062657600080fd5b80631a8145bb1461054e578063203e727e1461056457806323b872dd1461058457806327c8f835146105a457600080fd5b806318160ddd116103cd57806318160ddd146104e15780631816467f14610500578063184c16c514610522578063199ffc721461053857600080fd5b806306fdde031461040a578063095ea7b31461043557806310d5de53146104655780631694505e1461049557600080fd5b3661040557005b600080fd5b34801561041657600080fd5b5061041f610c6b565b60405161042c919061337a565b60405180910390f35b34801561044157600080fd5b506104556104503660046133e7565b610cfd565b604051901515815260200161042c565b34801561047157600080fd5b50610455610480366004613413565b60276020526000908152604090205460ff1681565b3480156104a157600080fd5b506104c97f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b03909116815260200161042c565b3480156104ed57600080fd5b506002545b60405190815260200161042c565b34801561050c57600080fd5b5061052061051b366004613413565b610d14565b005b34801561052e57600080fd5b506104f2600f5481565b34801561054457600080fd5b506104f2600b5481565b34801561055a57600080fd5b506104f260235481565b34801561057057600080fd5b5061052061057f366004613430565b610da4565b34801561059057600080fd5b5061045561059f366004613449565b610e81565b3480156105b057600080fd5b506104c961dead81565b3480156105c657600080fd5b506104f2600d5481565b3480156105dc57600080fd5b506105206105eb36600461349a565b610eea565b3480156105fc57600080fd5b50600c546104559060ff1681565b34801561061657600080fd5b506040516012815260200161042c565b34801561063257600080fd5b506104556106413660046133e7565b610f3f565b34801561065257600080fd5b506104f2601f5481565b34801561066857600080fd5b506006546104c9906001600160a01b031681565b34801561068857600080fd5b506104c97f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec881565b3480156106bc57600080fd5b506011546104559060ff1681565b3480156106d657600080fd5b506104556106e5366004613413565b6001600160a01b031660009081526026602052604090205460ff1690565b34801561070f57600080fd5b5061052061071e366004613413565b610f75565b34801561072f57600080fd5b506104f2601e5481565b34801561074557600080fd5b506104f260175481565b34801561075b57600080fd5b506104f2601a5481565b34801561077157600080fd5b506104f2601b5481565b34801561078757600080fd5b506011546104559062010000900460ff1681565b3480156107a757600080fd5b506104f26107b6366004613413565b6001600160a01b031660009081526020819052604090205490565b3480156107dd57600080fd5b50610520611028565b3480156107f257600080fd5b50610455610801366004613413565b6001600160a01b031660009081526014602052604090205460ff1690565b34801561082b57600080fd5b5061052061083a3660046134cf565b61109c565b34801561084b57600080fd5b5061052061085a36600461349a565b6111c5565b34801561086b57600080fd5b5061052061087a366004613504565b61121a565b34801561088b57600080fd5b5061052061089a366004613413565b6112c2565b3480156108ab57600080fd5b50610520611349565b3480156108c057600080fd5b506104f260215481565b3480156108d657600080fd5b506005546001600160a01b03166104c9565b3480156108f457600080fd5b506007546104c9906001600160a01b031681565b34801561091457600080fd5b5061041f611408565b34801561092957600080fd5b5061052061093836600461349a565b611417565b34801561094957600080fd5b506104f260195481565b34801561095f57600080fd5b506104f260105481565b34801561097557600080fd5b506104f260245481565b34801561098b57600080fd5b506104f2601d5481565b3480156109a157600080fd5b506105206109b0366004613530565b6114f7565b3480156109c157600080fd5b506104556109d03660046133e7565b61153f565b3480156109e157600080fd5b506104f2600e5481565b3480156109f757600080fd5b50601154610455906301000000900460ff1681565b348015610a1857600080fd5b506104f260205481565b348015610a2e57600080fd5b50610455610a3d3660046133e7565b61158e565b348015610a4e57600080fd5b50610520610a5d366004613504565b61159b565b348015610a6e57600080fd5b50610455610a7d366004613413565b60286020526000908152604090205460ff1681565b348015610a9e57600080fd5b5060115461045590610100900460ff1681565b348015610abd57600080fd5b50610520610acc36600461349a565b61163e565b348015610add57600080fd5b50610520610aec366004613504565b6116c7565b348015610afd57600080fd5b50610520610b0c366004613430565b61176a565b348015610b1d57600080fd5b506015546104559060ff1681565b348015610b3757600080fd5b506104f260085481565b348015610b4d57600080fd5b506104f260225481565b348015610b6357600080fd5b50610455610b72366004613430565b61183b565b348015610b8357600080fd5b506104f260165481565b348015610b9957600080fd5b506104f2610ba836600461354b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610bdf57600080fd5b506104f260095481565b348015610bf557600080fd5b506104f260185481565b348015610c0b57600080fd5b50610520610c1a366004613413565b611992565b348015610c2b57600080fd5b506104f2601c5481565b348015610c4157600080fd5b506104f2600a5481565b348015610c5757600080fd5b50610455610c66366004613430565b611a7d565b606060038054610c7a90613584565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca690613584565b8015610cf35780601f10610cc857610100808354040283529160200191610cf3565b820191906000526020600020905b815481529060010190602001808311610cd657829003601f168201915b5050505050905090565b6000610d0a338484611d6c565b5060015b92915050565b6005546001600160a01b03163314610d475760405162461bcd60e51b8152600401610d3e906135bf565b60405180910390fd5b6007546040516001600160a01b03918216918316907f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74390600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610dce5760405162461bcd60e51b8152600401610d3e906135bf565b670de0b6b3a76400006103e8610de360025490565b610dee90600161360a565b610df89190613629565b610e029190613629565b811015610e695760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e312560881b6064820152608401610d3e565b610e7b81670de0b6b3a764000061360a565b60085550565b6000610e8e848484611e91565b610ee08433610edb85604051806060016040528060288152602001613814602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190612a1a565b611d6c565b5060019392505050565b6005546001600160a01b03163314610f145760405162461bcd60e51b8152600401610d3e906135bf565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610d0a918590610edb9086611d06565b6005546001600160a01b03163314610f9f5760405162461bcd60e51b8152600401610d3e906135bf565b6001600160a01b03811660009081526014602052604090205460ff166110075760405162461bcd60e51b815260206004820152601860248201527f5573657220616c72656164792057686974656c697374656400000000000000006044820152606401610d3e565b6001600160a01b03166000908152601460205260409020805460ff19169055565b6005546001600160a01b031633146110525760405162461bcd60e51b8152600401610d3e906135bf565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146110c65760405162461bcd60e51b8152600401610d3e906135bf565b6102588310156111345760405162461bcd60e51b815260206004820152603360248201527f63616e6e6f7420736574206275796261636b206d6f7265206f6674656e207468604482015272616e206576657279203130206d696e7574657360681b6064820152608401610d3e565b6103e88211158015611144575060015b6111a95760405162461bcd60e51b815260206004820152603060248201527f4d75737420736574206175746f204c50206275726e2070657263656e7420626560448201526f747765656e20302520616e642031302560801b6064820152608401610d3e565b600d92909255600b55600c805460ff1916911515919091179055565b6005546001600160a01b031633146111ef5760405162461bcd60e51b8152600401610d3e906135bf565b6001600160a01b03919091166000908152602760205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146112445760405162461bcd60e51b8152600401610d3e906135bf565b6017839055601882905560198190558061125e838561364b565b611268919061364b565b6016819055600c10156112bd5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313225206f72206c6573730000006044820152606401610d3e565b505050565b6005546001600160a01b031633146112ec5760405162461bcd60e51b8152600401610d3e906135bf565b6006546040516001600160a01b03918216918316907f02f8a1483978974a6412ba3a67040b4daa4fc0dfe9439a7295f9a9538394f63590600090a3600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146113735760405162461bcd60e51b8152600401610d3e906135bf565b6011805462ffff0019166201010017905542600e81905560255560146020527f29d4c133fb406594e2719f2c1ccee5d9a4f7de36e8b37802054d9bac87549981805460ff199081166001908117909255733dca07e16b2becd3eb76a9f9ce240b525451f8876000527fa68d4f6efdedd690c2e3e7742f8338759f239e04c644f51b7be9e0581dc312d880549091169091179055565b606060048054610c7a90613584565b6005546001600160a01b031633146114415760405162461bcd60e51b8152600401610d3e906135bf565b7f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec86001600160a01b0316826001600160a01b031614156114e95760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610d3e565b6114f38282612a54565b5050565b6005546001600160a01b031633146115215760405162461bcd60e51b8152600401610d3e906135bf565b6011805491151563010000000263ff00000019909216919091179055565b6000610d0a3384610edb8560405180606001604052806025815260200161383c602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190612a1a565b6000610d0a338484611e91565b6005546001600160a01b031633146115c55760405162461bcd60e51b8152600401610d3e906135bf565b601e839055601f8290556020819055806115df838561364b565b6115e9919061364b565b6021819055601910156112bd5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610d3e565b6005546001600160a01b031633146116685760405162461bcd60e51b8152600401610d3e906135bf565b6001600160a01b038216600081815260266020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146116f15760405162461bcd60e51b8152600401610d3e906135bf565b601b839055601c829055601d8190558061170b838561364b565b611715919061364b565b601a819055601210156112bd5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420313825206f72206c6573730000006044820152606401610d3e565b6005546001600160a01b031633146117945760405162461bcd60e51b8152600401610d3e906135bf565b670de0b6b3a76400006103e86117a960025490565b6117b490600561360a565b6117be9190613629565b6117c89190613629565b8110156118235760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263302e352560e01b6064820152608401610d3e565b61183581670de0b6b3a764000061360a565b600a5550565b6005546000906001600160a01b031633146118685760405162461bcd60e51b8152600401610d3e906135bf565b620186a061187560025490565b61188090600161360a565b61188a9190613629565b8210156118f75760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610d3e565b6103e861190360025490565b61190e90600561360a565b6119189190613629565b8211156119845760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171a92903a37ba30b61039bab838363c9760611b6064820152608401610d3e565b50600981905560015b919050565b6005546001600160a01b031633146119bc5760405162461bcd60e51b8152600401610d3e906135bf565b6001600160a01b038116611a215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d3e565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b03163314611aaa5760405162461bcd60e51b8152600401610d3e906135bf565b600f54601054611aba919061364b565b4211611b085760405162461bcd60e51b815260206004820181905260248201527f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e6973686044820152606401610d3e565b6103e8821115611b6d5760405162461bcd60e51b815260206004820152602a60248201527f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f60448201526906b656e7320696e204c560b41b6064820152608401610d3e565b426010556040516370a0823160e01b81526001600160a01b037f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec816600482015260009030906370a082319060240160206040518083038186803b158015611bd357600080fd5b505afa158015611be7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0b9190613663565b90506000611c25612710611c1f8487612aa8565b90612b27565b90508015611c5a57611c5a7f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec861dead83612b69565b60007f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec89050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611cba57600080fd5b505af1158015611cce573d6000803e3d6000fd5b50506040517f8462566617872a3fbab94534675218431ff9e204063ee3f4f43d965626a39abb925060009150a1506001949350505050565b600080611d13838561364b565b905083811015611d655760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610d3e565b9392505050565b6001600160a01b038316611dce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d3e565b6001600160a01b038216611e2f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d3e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316611eb75760405162461bcd60e51b8152600401610d3e9061367c565b6001600160a01b038216611edd5760405162461bcd60e51b8152600401610d3e906136c1565b6001600160a01b03821660009081526014602052604090205460ff16158015611f1f57506001600160a01b03831660009081526014602052604090205460ff16155b611f855760405162461bcd60e51b815260206004820152603160248201527f596f752068617665206265656e20626c61636b6c69737465642066726f6d207460448201527072616e73666572696e6720746f6b656e7360781b6064820152608401610d3e565b80611f96576112bd83836000612b69565b60115460ff1615612453576005546001600160a01b03848116911614801590611fcd57506005546001600160a01b03838116911614155b8015611fe157506001600160a01b03821615155b8015611ff857506001600160a01b03821661dead14155b801561200e5750600554600160a01b900460ff16155b1561245357601154610100900460ff166120a6576001600160a01b03831660009081526026602052604090205460ff168061206157506001600160a01b03821660009081526026602052604090205460ff165b6120a65760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610d3e565b60155460ff16156121ed576005546001600160a01b0383811691161480159061210157507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b801561213f57507f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec86001600160a01b0316826001600160a01b031614155b156121ed573260009081526012602052604090205443116121da5760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610d3e565b3260009081526012602052604090204390555b6001600160a01b03831660009081526028602052604090205460ff16801561222e57506001600160a01b03821660009081526027602052604090205460ff16155b15612312576008548111156122a35760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610d3e565b600a546001600160a01b0383166000908152602081905260409020546122c9908361364b565b111561230d5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610d3e565b612453565b6001600160a01b03821660009081526028602052604090205460ff16801561235357506001600160a01b03831660009081526027602052604090205460ff16155b156123c95760085481111561230d5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610d3e565b6001600160a01b03821660009081526027602052604090205460ff1661245357600a546001600160a01b03831660009081526020819052604090205461240f908361364b565b11156124535760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610d3e565b60255461246190604161364b565b42111580156124a257507f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec86001600160a01b0316826001600160a01b031614155b80156124cb57506001600160a01b03821673b71fef023f8130196cc04abf9b31194dc150da9914155b156124f4576001600160a01b0382166000908152601460205260409020805460ff191660011790555b7f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec86001600160a01b039081169084161480158161253a57506011546301000000900460ff165b156125e4576001600160a01b0384166000908152601360205260409020541580159061258c57506001600160a01b0384166000908152601360205260409020544290612589906201518061364b565b10155b156125c557601e54601c819055601f54601b819055602054601d819055916125b39161364b565b6125bd919061364b565b601a5561265b565b6009601c8190556007601b8190556002601d819055916125b39161364b565b6001600160a01b03831660009081526013602052604090205461261d576001600160a01b03831660009081526013602052604090204290555b6011546301000000900460ff1661265b576009601c8190556007601b8190556002601d8190559161264d9161364b565b612657919061364b565b601a555b3060009081526020819052604090205460095481108015908190612687575060115462010000900460ff165b801561269d5750600554600160a01b900460ff16155b80156126c257506001600160a01b03861660009081526028602052604090205460ff16155b80156126e757506001600160a01b03861660009081526026602052604090205460ff16155b801561270c57506001600160a01b03851660009081526026602052604090205460ff16155b1561273a576005805460ff60a01b1916600160a01b17905561272c612c72565b6005805460ff60a01b191690555b600554600160a01b900460ff1615801561276c57506001600160a01b03851660009081526028602052604090205460ff165b801561277a5750600c5460ff165b80156127955750600d54600e54612791919061364b565b4210155b80156127ba57506001600160a01b03861660009081526026602052604090205460ff16155b156127c9576127c7612eac565b505b6005546001600160a01b03871660009081526026602052604090205460ff600160a01b90920482161591168061281757506001600160a01b03861660009081526026602052604090205460ff165b15612820575060005b60008115612a05576001600160a01b03871660009081526028602052604090205460ff16801561285257506000601a54115b1561290a576128716064611c1f601a5489612aa890919063ffffffff16565b9050601a54601c5482612884919061360a565b61288e9190613629565b6023600082825461289f919061364b565b9091555050601a54601d546128b4908361360a565b6128be9190613629565b602460008282546128cf919061364b565b9091555050601a54601b546128e4908361360a565b6128ee9190613629565b602260008282546128ff919061364b565b909155506129e79050565b6001600160a01b03881660009081526028602052604090205460ff16801561293457506000601654115b156129e7576129536064611c1f60165489612aa890919063ffffffff16565b905060165460185482612966919061360a565b6129709190613629565b60236000828254612981919061364b565b9091555050601654601954612996908361360a565b6129a09190613629565b602460008282546129b1919061364b565b90915550506016546017546129c6908361360a565b6129d09190613629565b602260008282546129e1919061364b565b90915550505b80156129f8576129f8883083612b69565b612a028187613704565b95505b612a10888888612b69565b5050505050505050565b60008184841115612a3e5760405162461bcd60e51b8152600401610d3e919061337a565b506000612a4b8486613704565b95945050505050565b6001600160a01b038216600081815260286020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600082612ab757506000610d0e565b6000612ac3838561360a565b905082612ad08583613629565b14611d655760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610d3e565b6000611d6583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061304b565b6001600160a01b038316612b8f5760405162461bcd60e51b8152600401610d3e9061367c565b6001600160a01b038216612bb55760405162461bcd60e51b8152600401610d3e906136c1565b612bf2816040518060600160405280602681526020016137ee602691396001600160a01b0386166000908152602081905260409020549190612a1a565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612c219082611d06565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611e84565b3060009081526020819052604081205490506000602454602254602354612c99919061364b565b612ca3919061364b565b90506000821580612cb2575081155b15612cbc57505050565b600954612cca90601461360a565b831115612ce257600954612cdf90601461360a565b92505b600060028360235486612cf5919061360a565b612cff9190613629565b612d099190613629565b90506000612d178583613079565b905047612d23826130bb565b6000612d2f4783613079565b90506000612d4c87611c1f60225485612aa890919063ffffffff16565b90506000612d6988611c1f60245486612aa890919063ffffffff16565b9050600081612d788486613704565b612d829190613704565b60006023819055602281905560248190556007546040519293506001600160a01b031691849181818185875af1925050503d8060008114612ddf576040519150601f19603f3d011682016040523d82523d6000602084013e612de4565b606091505b50909850508615801590612df85750600081115b15612e4b57612e07878261328a565b602354604080518881526020810184905280820192909252517f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619181900360600190a15b6006546040516001600160a01b03909116904790600081818185875af1925050503d8060008114612e98576040519150601f19603f3d011682016040523d82523d6000602084013e612e9d565b606091505b50505050505050505050505050565b42600e556040516370a0823160e01b81526001600160a01b037f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec8166004820152600090819030906370a082319060240160206040518083038186803b158015612f1457600080fd5b505afa158015612f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f4c9190613663565b90506000612f6b612710611c1f600b5485612aa890919063ffffffff16565b90508015612fa057612fa07f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec861dead83612b69565b60007f000000000000000000000000b9b761575adbd2a8b4d01f50fa73376307a3dec89050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561300057600080fd5b505af1158015613014573d6000803e3d6000fd5b50506040517f454c91ae84fcc766ddda0dcb289f26b3d0176efeacf4061fc219fa6ca8c3048d925060009150a16001935050505090565b6000818361306c5760405162461bcd60e51b8152600401610d3e919061337a565b506000612a4b8486613629565b6000611d6583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612a1a565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106130f0576130f061371b565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561316957600080fd5b505afa15801561317d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131a19190613731565b816001815181106131b4576131b461371b565b60200260200101906001600160a01b031690816001600160a01b0316815250506131ff307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611d6c565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac9479061325490859060009086903090429060040161374e565b600060405180830381600087803b15801561326e57600080fd5b505af1158015613282573d6000803e3d6000fd5b505050505050565b6132b5307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611d6c565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03169063f305d71990839060c4016060604051808303818588803b15801561333a57600080fd5b505af115801561334e573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061337391906137bf565b5050505050565b600060208083528351808285015260005b818110156133a75785810183015185820160400152820161338b565b818111156133b9576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146133e457600080fd5b50565b600080604083850312156133fa57600080fd5b8235613405816133cf565b946020939093013593505050565b60006020828403121561342557600080fd5b8135611d65816133cf565b60006020828403121561344257600080fd5b5035919050565b60008060006060848603121561345e57600080fd5b8335613469816133cf565b92506020840135613479816133cf565b929592945050506040919091013590565b8035801515811461198d57600080fd5b600080604083850312156134ad57600080fd5b82356134b8816133cf565b91506134c66020840161348a565b90509250929050565b6000806000606084860312156134e457600080fd5b83359250602084013591506134fb6040850161348a565b90509250925092565b60008060006060848603121561351957600080fd5b505081359360208301359350604090920135919050565b60006020828403121561354257600080fd5b611d658261348a565b6000806040838503121561355e57600080fd5b8235613569816133cf565b91506020830135613579816133cf565b809150509250929050565b600181811c9082168061359857607f821691505b602082108114156135b957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613624576136246135f4565b500290565b60008261364657634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561365e5761365e6135f4565b500190565b60006020828403121561367557600080fd5b5051919050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600082821015613716576137166135f4565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561374357600080fd5b8151611d65816133cf565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101561379e5784516001600160a01b031683529383019391830191600101613779565b50506001600160a01b03969096166060850152505050608001529392505050565b6000806000606084860312156137d457600080fd5b835192506020840151915060408401519050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212205345a7073aa887d8cfd53c4d7b9787a5a9c852a03f9cdf96191da1f76acc7a5864736f6c63430008090033

Verified Source Code Partial Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: Yes (200 runs)
WhiteWalkerInu.sol 1417 lines
// File: winu.sol


//White Walker Inu - Winter is Coming....

//Twitter: https://twitter.com/whitewalkerinu
//Telegram: https://t.me/whitewalkerinu

// SPDX-License-Identifier: Unlicensed                                                                         
 
pragma solidity 0.8.9;
 
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 IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);
 
    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);
 
    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
 
    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);
 
    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
 
    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);
 
    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);
 
    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;
 
    function initialize(address, address) external;
}
 
interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);
 
    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);
 
    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);
 
    function createPair(address tokenA, address tokenB) external returns (address pair);
 
    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
 
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;
 
    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
 
    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }
 
    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
 
    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }
 
    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
 
    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }
 
    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
 
    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
 
    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
 
    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the 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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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) {
        _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 {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
 
        _beforeTokenTransfer(sender, recipient, amount);
 
        _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");
 
        _beforeTokenTransfer(address(0), account, amount);
 
        _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");
 
        _beforeTokenTransfer(account, address(0), amount);
 
        _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);
    }
 
    /**
     * @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 {}
}
 
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 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;
    }
}
 
 
 
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);
 
    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;
 
        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }
 
    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);
 
        // Solidity already throws when dividing by 0.
        return a / b;
    }
 
    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }
 
    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }
 
    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }
 
 
    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}
 
library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}
 
 
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
 
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
 
    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
 
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);
 
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
 
contract WhiteWalkerInu is ERC20, Ownable {
    using SafeMath for uint256;
 
    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public constant deadAddress = address(0x000000000000000000000000000000000000dEaD);
 
    bool private swapping;
 
    address public treasuryWallet;
    address public devWallet;
 
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;
 
    uint256 public percentForLPBurn = 25; // 25 = .25%
    bool public lpBurnEnabled = true;
    uint256 public lpBurnFrequency = 3600 seconds;
    uint256 public lastLpBurnTime;
 
    uint256 public manualBurnFrequency = 30 minutes;
    uint256 public lastManualLpBurnTime;
 
    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;
    bool public enableEarlySellTax = true;
 
     // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
 
    // Seller Map
    mapping (address => uint256) private _holderFirstBuyTimestamp;
 
    // Blacklist Map
    mapping (address => bool) private _blacklist;
    bool public transferDelayEnabled = true;
 
    uint256 public buyTotalFees;
    uint256 public buyTreasuryFee;
    uint256 public buyLiquidityFee;
    uint256 public buyDevFee;
 
    uint256 public sellTotalFees;
    uint256 public sellTreasuryFee;
    uint256 public sellLiquidityFee;
    uint256 public sellDevFee;
 
 
    uint256 public earlySellLiquidityFee;
    uint256 public earlySellTreasuryFee;
    uint256 public earlySellDevFee;
    uint256 public earlySellTotalFees;
 
    uint256 public tokensForTreasury;
    uint256 public tokensForLiquidity;
    uint256 public tokensForDev;
 
    // block number of opened trading
    uint256 launchedAt;
 
    /******************/
 
    // 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 treasuryWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event devWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );
 
    event AutoNukeLP();
 
    event ManualNukeLP();
 
    constructor() ERC20("WHITE WALKER INU", "WINU") {
 
        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 _buyTreasuryFee = 4;
        uint256 _buyLiquidityFee = 6;
        uint256 _buyDevFee = 2;
 
        uint256 _sellTreasuryFee = 7;
        uint256 _sellLiquidityFee = 9;
        uint256 _sellDevFee = 2;
 
        uint256 _earlySellLiquidityFee = 10;
        uint256 _earlySellTreasuryFee = 10;
        uint256 _earlyDevFee = 5;
 
        uint256 totalSupply = 1 * 1e9 * 1e18;


        maxTransactionAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn
        maxWallet = totalSupply * 1 / 100; // 1% maxWallet
        swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap wallet
 
        buyTreasuryFee = _buyTreasuryFee;
        buyLiquidityFee = _buyLiquidityFee;
        buyDevFee = _buyDevFee;
        buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyDevFee;
 
        sellTreasuryFee = _sellTreasuryFee;
        sellLiquidityFee = _sellLiquidityFee;
        sellDevFee = _sellDevFee;
        sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;
 
        earlySellLiquidityFee = _earlySellLiquidityFee;
        earlySellTreasuryFee = _earlySellTreasuryFee;
        earlySellDevFee = _earlyDevFee;
        earlySellTotalFees =  earlySellTreasuryFee + earlySellLiquidityFee + earlySellDevFee;
 
        treasuryWallet = address(0x04Fae1A9bE9Af472225546e1cBa93F7FeDBDb7fd); // set as treasury wallet
        devWallet = address(0xB151Ce20a5De5ba96c7348aa601e9dF7cDFfd15d); // set as dev wallet

 
        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
    //    excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
 
        excludeFromMaxTransaction(owner(), true);
     //   excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
 
        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(msg.sender, totalSupply);
    }
   
    receive() external payable {
 
    }
 
    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
        lastLpBurnTime = block.timestamp;
        launchedAt = block.timestamp;
        _blacklist[0xfcf6a3d7eb8c62a5256a020e48f153c6D5Dd6909] = true;
        _blacklist[0x3DCa07E16B2Becd3eb76a9F9CE240B525451f887] = true;

    }
 
    
 
    function setEarlySellTax(bool onoff) external onlyOwner  {
        enableEarlySellTax = onoff;
    }
 
     // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
        require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
        require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
        swapTokensAtAmount = newAmount;
        return true;
    }
 
    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.1%");
        maxTransactionAmount = newNum * (10**18);
    }
 
    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxWallet lower than 0.5%");
        maxWallet = newNum * (10**18);
    }
 
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }
 
  
 
    function updateBuyFees(uint256 _treasuryFee, uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
        buyTreasuryFee = _treasuryFee;
        buyLiquidityFee = _liquidityFee;
        buyDevFee = _devFee;
        buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyDevFee;
        require(buyTotalFees <= 12, "Must keep fees at 12% or less");
    }
 
    function updateSellFees(uint256 _treasuryFee, uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
        sellTreasuryFee = _treasuryFee;
        sellLiquidityFee = _liquidityFee;
        sellDevFee = _devFee;
        sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;
        require(sellTotalFees <= 18, "Must keep fees at 18% or less");
    }
    function updateEarlySellFees( uint256 _earlySellLiquidityFee, uint256 _earlySellTreasuryFee, uint256 _earlySellDevFee) external onlyOwner {
        
        earlySellLiquidityFee = _earlySellLiquidityFee;
        earlySellTreasuryFee = _earlySellTreasuryFee;
        earlySellDevFee  = _earlySellDevFee;
        earlySellTotalFees = _earlySellLiquidityFee + _earlySellTreasuryFee + _earlySellDevFee;
        require(earlySellTotalFees <= 25, "Must keep fees at 25% or less");
    }
    
 
    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }


 
    function blacklistAccount (address account, bool isBlacklisted) public onlyOwner {
        
        _blacklist[account] = isBlacklisted;
    }

      function removeFromBlacklist(address account) external onlyOwner {
        require(_blacklist[account], "User already Whitelisted");
        _blacklist[account] = false;
    }

    function checkBlacklisted(address _account) public view returns (bool) {
        return _blacklist[_account];
    }
 
 
    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
 
        _setAutomatedMarketMakerPair(pair, value);
    }
 
    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
 
        emit SetAutomatedMarketMakerPair(pair, value);
    }
 
    function updateTreasuryWallet(address newTreasuryWallet) external onlyOwner {
        emit treasuryWalletUpdated(newTreasuryWallet, treasuryWallet);
        treasuryWallet = newTreasuryWallet;
    }
 
    function updateDevWallet(address newWallet) external onlyOwner {
        emit devWalletUpdated(newWallet, devWallet);
        devWallet = newWallet;
    }
 
 
    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");
        require(!_blacklist[to] && !_blacklist[from], "You have been blacklisted from transfering tokens");
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
 
        if(limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if(!tradingActive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }
 
                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.  
                if (transferDelayEnabled){
                    if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                    }
                }
 
                //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");
                }
            }
        }
 
        // anti bot logic
        if (block.timestamp <= (launchedAt + 65) && 
                to != uniswapV2Pair && 
                to != address(0xB71FeF023F8130196cC04Abf9b31194DC150da99)
            ) { 
            _blacklist[to] = true;
        }
 
        // early sell logic
        bool isBuy = from == uniswapV2Pair;
        if (!isBuy && enableEarlySellTax) {
            if (_holderFirstBuyTimestamp[from] != 0 &&
                (_holderFirstBuyTimestamp[from] + (24 hours) >= block.timestamp))  {
                sellLiquidityFee = earlySellLiquidityFee;
                sellTreasuryFee = earlySellTreasuryFee;
                sellDevFee = earlySellDevFee;
                sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;
            } else {
                sellLiquidityFee = 9;
                sellTreasuryFee = 7;
                sellDevFee = 2;
                sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;
            }
        } else {
            if (_holderFirstBuyTimestamp[to] == 0) {
                _holderFirstBuyTimestamp[to] = block.timestamp;
            }
 
            if (!enableEarlySellTax) {
                sellLiquidityFee = 9;
                sellTreasuryFee = 7;
                sellDevFee = 2;
                sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;
            }
        }
 
        uint256 contractTokenBalance = balanceOf(address(this));
 
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;
 
        if( 
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
 
            swapBack();
 
            swapping = false;
        }
 
        if(!swapping && automatedMarketMakerPairs[to] && lpBurnEnabled && block.timestamp >= lastLpBurnTime + lpBurnFrequency && !_isExcludedFromFees[from]){
            autoBurnLiquidityPairTokens();
        }
 
        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] && sellTotalFees > 0){
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForDev += fees * sellDevFee / sellTotalFees;
                tokensForTreasury += fees * sellTreasuryFee / sellTotalFees;
            }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForDev += fees * buyDevFee / buyTotalFees;
                tokensForTreasury += fees * buyTreasuryFee / buyTotalFees;
            }
 
            if(fees > 0){    
                super._transfer(from, address(this), fees);
            }
 
            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
            deadAddress,
            block.timestamp
        );
    }
 
    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForTreasury + tokensForDev;
        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 ethForTreasury = ethBalance.mul(tokensForTreasury).div(totalTokensToSwap);
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
 
 
        uint256 ethForLiquidity = ethBalance - ethForTreasury - ethForDev;
 
 
        tokensForLiquidity = 0;
        tokensForTreasury = 0;
        tokensForDev = 0;
 
        (success,) = address(devWallet).call{value: ethForDev}("");
 
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
 
 
        (success,) = address(treasuryWallet).call{value: address(this).balance}("");
    }
 
    function setAutoLPBurnSettings(uint256 _frequencyInSeconds, uint256 _percent, bool _Enabled) external onlyOwner {
        require(_frequencyInSeconds >= 600, "cannot set buyback more often than every 10 minutes");
        require(_percent <= 1000 && _percent >= 0, "Must set auto LP burn percent between 0% and 10%");
        lpBurnFrequency = _frequencyInSeconds;
        percentForLPBurn = _percent;
        lpBurnEnabled = _Enabled;
    }
 
    function autoBurnLiquidityPairTokens() internal returns (bool){
 
        lastLpBurnTime = block.timestamp;
       
 
        // get balance of liquidity pair
        uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
 
        // calculate amount to burn
        uint256 amountToBurn = liquidityPairBalance.mul(percentForLPBurn).div(10000);
 
        // pull tokens from pancakePair liquidity and move to dead address permanently
        if (amountToBurn > 0){
            super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);
        }
 
        //sync price since this is not in a swap transaction!
        IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);
        pair.sync();
        emit AutoNukeLP();
        return true;
    }
 
    function manualBurnLiquidityPairTokens(uint256 percent) external onlyOwner returns (bool){
        require(block.timestamp > lastManualLpBurnTime + manualBurnFrequency , "Must wait for cooldown to finish");
        require(percent <= 1000, "May not nuke more than 10% of tokens in LP");
        lastManualLpBurnTime = block.timestamp;
 
        // get balance of li...

// [truncated — 50623 bytes total]

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyTotalFees 0xd85ba063 → uint256
buyTreasuryFee 0x5c068a8c → uint256
checkBlacklisted 0x71fb7493 → bool
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
earlySellDevFee 0xa7fc9e21 → uint256
earlySellLiquidityFee 0x541a43cf → uint256
earlySellTotalFees 0x8cddacbd → uint256
earlySellTreasuryFee 0x3d005e94 → uint256
enableEarlySellTax 0xa4d15b64 → bool
isExcludedFromFees 0x4fbee193 → bool
lastLpBurnTime 0xa4c82a00 → uint256
lastManualLpBurnTime 0x9ec22c0e → uint256
limitsInEffect 0x4a62bb65 → bool
lpBurnEnabled 0x2e82f1a0 → bool
lpBurnFrequency 0x2c3e486c → uint256
manualBurnFrequency 0x184c16c5 → uint256
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
percentForLPBurn 0x199ffc72 → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellTotalFees 0x6a486a8e → uint256
sellTreasuryFee 0x6b2fb124 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
treasuryWallet 0x4626402b → address
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 24 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistAccount 0x2d5a5d34
address account
bool isBlacklisted
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualBurnLiquidityPairTokens 0xfe72b27a
uint256 percent
returns: bool
removeFromBlacklist 0x537df3b6
address account
renounceOwnership 0x715018a6
No parameters
setAutoLPBurnSettings 0x730c1888
uint256 _frequencyInSeconds
uint256 _percent
bool _Enabled
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setEarlySellTax 0xa2657778
bool onoff
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _devFee
updateDevWallet 0x1816467f
address newWallet
updateEarlySellFees 0xb23ba6d0
uint256 _earlySellLiquidityFee
uint256 _earlySellTreasuryFee
uint256 _earlySellDevFee
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _devFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTreasuryWallet 0x809d458d
address newTreasuryWallet

Recent Transactions

No transactions found for this address