Address Contract Partially Verified
Address
0xD06E08Cf5552e2fc6a92235e5B5b0E37D8c93b2d
Balance
0 ETH
Nonce
1
Code Size
14654 bytes
Creator
0x03422D2E...CcF3 at tx 0xaadf06ba...880433
Indexed Transactions
0
Contract Bytecode
14654 bytes
0x6080604052600436106103d25760003560e01c80638366e79a116101fd578063bbc0c74211610118578063e7ad9fcd116100ab578063f2fde38b1161007a578063f2fde38b14610ad6578063f5648a4f14610af6578063f637434214610b0b578063f8b45b0514610b21578063fb002c9714610b3757600080fd5b8063e7ad9fcd14610a75578063e884f26014610a95578063ee40166e14610aaa578063f11a24d314610ac057600080fd5b8063d85ba063116100e7578063d85ba063146109ed578063dd62ed3e14610a03578063e2f4560514610a49578063e71dc3f514610a5f57600080fd5b8063bbc0c74214610974578063c024666814610993578063c876d0b9146109b3578063d0d41fe1146109cd57600080fd5b8063a457c2d711610190578063adb873bd1161015f578063adb873bd146108f8578063b62496f51461090e578063b8eb35461461093e578063b94279ea1461095457600080fd5b8063a457c2d714610882578063a62068ce146108a2578063a9059cbb146108b8578063a9d3cd8a146108d857600080fd5b806395d89b41116101cc57806395d89b411461082b5780639c3b4fdc146108405780639fccce3214610856578063a0d82dc51461086c57600080fd5b80638366e79a1461079d57806385ecfd28146107bd5780638da5cb5b146107ed5780639164f9db1461080b57600080fd5b806346f1f5de116102ed5780636a486a8e1161028057806370a082311161024f57806370a082311461073d57806370db69d61461075d578063715018a614610773578063751039fc1461078857600080fd5b80636a486a8e146106d15780636b0a894c146106e75780636ddd1713146106fd578063707789c51461071d57600080fd5b806358881304116102bc578063588813041461066457806358a6d531146106845780635a139dd41461069b5780635b0327a2146106b157600080fd5b806346f1f5de146105ff5780634a62bb651461061f5780634f77f6c01461063957806351f205e41461064f57600080fd5b80631d777856116103655780632e6ed7ef116103345780632e6ed7ef14610583578063313ce567146105a357806339509351146105bf578063452ed4f1146105df57600080fd5b80631d7778561461051857806323b872dd1461052e578063249ec2bb1461054e5780632e5091031461056e57600080fd5b806310d5de53116103a157806310d5de531461049357806318160ddd146104c35780631a8145bb146104e25780631c499ab0146104f857600080fd5b8063053f9040146103de57806306fdde03146104005780630758d9241461042b578063095ea7b31461046357600080fd5b366103d957005b600080fd5b3480156103ea57600080fd5b506103fe6103f936600461344a565b610b4d565b005b34801561040c57600080fd5b50610415610d9a565b6040516104229190613463565b60405180910390f35b34801561043757600080fd5b5060095461044b906001600160a01b031681565b6040516001600160a01b039091168152602001610422565b34801561046f57600080fd5b5061048361047e3660046134d0565b610e2c565b6040519015158152602001610422565b34801561049f57600080fd5b506104836104ae3660046134fc565b60246020526000908152604090205460ff1681565b3480156104cf57600080fd5b506002545b604051908152602001610422565b3480156104ee57600080fd5b506104d460205481565b34801561050457600080fd5b506103fe61051336600461344a565b610e42565b34801561052457600080fd5b506104d460225481565b34801561053a57600080fd5b50610483610549366004613520565b610f52565b34801561055a57600080fd5b506103fe61056936600461356f565b610ffc565b34801561057a57600080fd5b506103fe6110c4565b34801561058f57600080fd5b506103fe61059e3660046135a8565b6111ac565b3480156105af57600080fd5b5060405160128152602001610422565b3480156105cb57600080fd5b506104836105da3660046134d0565b611235565b3480156105eb57600080fd5b50600a5461044b906001600160a01b031681565b34801561060b57600080fd5b506103fe61061a36600461344a565b611271565b34801561062b57600080fd5b506012546104839060ff1681565b34801561064557600080fd5b506104d4601b5481565b34801561065b57600080fd5b506103fe6113bc565b34801561067057600080fd5b506103fe61067f36600461344a565b6114c5565b34801561069057600080fd5b50600f544310610483565b3480156106a757600080fd5b506104d460165481565b3480156106bd57600080fd5b506103fe6106cc36600461344a565b6115cb565b3480156106dd57600080fd5b506104d4601a5481565b3480156106f357600080fd5b506104d460115481565b34801561070957600080fd5b506012546104839062010000900460ff1681565b34801561072957600080fd5b506103fe6107383660046134fc565b61169e565b34801561074957600080fd5b506104d46107583660046134fc565b61174f565b34801561076957600080fd5b506104d460065481565b34801561077f57600080fd5b506103fe61176a565b34801561079457600080fd5b506103fe6117de565b3480156107a957600080fd5b506104836107b83660046135da565b611849565b3480156107c957600080fd5b506104836107d83660046134fc565b60106020526000908152604090205460ff1681565b3480156107f957600080fd5b506005546001600160a01b031661044b565b34801561081757600080fd5b506103fe61082636600461344a565b611a52565b34801561083757600080fd5b50610415611b59565b34801561084c57600080fd5b506104d460185481565b34801561086257600080fd5b506104d460215481565b34801561087857600080fd5b506104d4601d5481565b34801561088e57600080fd5b5061048361089d3660046134d0565b611b68565b3480156108ae57600080fd5b506104d4600f5481565b3480156108c457600080fd5b506104836108d33660046134d0565b611c01565b3480156108e457600080fd5b506103fe6108f336600461356f565b611c0e565b34801561090457600080fd5b506104d4601e5481565b34801561091a57600080fd5b506104836109293660046134fc565b60256020526000908152604090205460ff1681565b34801561094a57600080fd5b506104d460075481565b34801561096057600080fd5b506103fe61096f36600461356f565b611cdc565b34801561098057600080fd5b5060125461048390610100900460ff1681565b34801561099f57600080fd5b506103fe6109ae36600461356f565b611d31565b3480156109bf57600080fd5b506014546104839060ff1681565b3480156109d957600080fd5b506103fe6109e83660046134fc565b611dba565b3480156109f957600080fd5b506104d460155481565b348015610a0f57600080fd5b506104d4610a1e3660046135da565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a5557600080fd5b506104d4600b5481565b348015610a6b57600080fd5b506104d460195481565b348015610a8157600080fd5b506103fe610a903660046135a8565b611e5c565b348015610aa157600080fd5b506103fe611f0f565b348015610ab657600080fd5b506104d4600e5481565b348015610acc57600080fd5b506104d460175481565b348015610ae257600080fd5b506103fe610af13660046134fc565b611f45565b348015610b0257600080fd5b506103fe612030565b348015610b1757600080fd5b506104d4601c5481565b348015610b2d57600080fd5b506104d460085481565b348015610b4357600080fd5b506104d4601f5481565b6005546001600160a01b03163314610b805760405162461bcd60e51b8152600401610b7790613608565b60405180910390fd5b678ac7230489e80000811115610c0e5760405162461bcd60e51b815260206004820152604760248201527f4d6179206e6f7420627579206d6f7265207468616e2031302045544820696e2060448201527f612073696e676c652062757920746f207265647563652073616e64776963682060648201526661747461636b7360c81b608482015260a401610b77565b6040805160028082526060820183526000926020830190803683375050600954604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c4648925060048083019260209291908290030181865afa158015610c78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9c919061363d565b81600081518110610caf57610caf61365a565b60200260200101906001600160a01b031690816001600160a01b0316815250503081600181518110610ce357610ce361365a565b6001600160a01b03928316602091820292909201015260095460405163b6f9de9560e01b815291169063b6f9de95908490610d2b90600090869061dead9042906004016136b4565b6000604051808303818588803b158015610d4457600080fd5b505af1158015610d58573d6000803e3d6000fd5b50505050507fa017c1567cfcdd2d750a8c01e39fe2a846bcebc293c7d078477014d68482056882604051610d8e91815260200190565b60405180910390a15050565b606060038054610da9906136e9565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd5906136e9565b8015610e225780601f10610df757610100808354040283529160200191610e22565b820191906000526020600020905b815481529060010190602001808311610e0557829003601f168201915b5050505050905090565b6000610e3933848461209c565b50600192915050565b6005546001600160a01b03163314610e6c5760405162461bcd60e51b8152600401610b7790613608565b670de0b6b3a76400006103e8610e8160025490565b610e8c906003613739565b610e969190613758565b610ea09190613758565b811015610f045760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e332560a01b6064820152608401610b77565b610f1681670de0b6b3a7640000613739565b60088190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc906020015b60405180910390a150565b6000610f5f8484846121c1565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610fe45760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610b77565b610ff1853385840361209c565b506001949350505050565b6005546001600160a01b031633146110265760405162461bcd60e51b8152600401610b7790613608565b8061109957600a546001600160a01b03908116908316036110995760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152608401610b77565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146110ee5760405162461bcd60e51b8152600401610b7790613608565b6014601b8190556000601c819055601d819055601e81905590819061111490829061377a565b61111e919061377a565b611128919061377a565b601a8190556014101561114d5760405162461bcd60e51b8152600401610b7790613792565b6019601681905560006017819055601881905580825590819061117190829061377a565b61117b919061377a565b611185919061377a565b6015819055601410156111aa5760405162461bcd60e51b8152600401610b7790613792565b565b6005546001600160a01b031633146111d65760405162461bcd60e51b8152600401610b7790613608565b601684905560178390556018829055601981905580826111f6858761377a565b611200919061377a565b61120a919061377a565b60158190556014101561122f5760405162461bcd60e51b8152600401610b7790613792565b50505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610e3991859061126c90869061377a565b61209c565b6005546001600160a01b0316331461129b5760405162461bcd60e51b8152600401610b7790613608565b620186a06112a860025490565b6112b3906001613739565b6112bd9190613758565b81101561132a5760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610b77565b6103e861133660025490565b611341906001613739565b61134b9190613758565b8111156113b75760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152608401610b77565b600b55565b6005546001600160a01b031633146113e65760405162461bcd60e51b8152600401610b7790613608565b600b546113f23061174f565b1015611468576040805162461bcd60e51b81526020600482015260248101919091527f43616e206f6e6c792073776170207768656e20746f6b656e20616d6f756e742060448201527f6973206174206f7220686967686572207468616e207265737472696374696f6e6064820152608401610b77565b600a805460ff60a01b1916600160a01b179055611483612cf6565b600a805460ff60a01b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b6005546001600160a01b031633146114ef5760405162461bcd60e51b8152600401610b7790613608565b670de0b6b3a76400006103e861150460025490565b61150f906002613739565b6115199190613758565b6115239190613758565b8110156115845760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e322560b81b6064820152608401610b77565b61159681670de0b6b3a7640000613739565b60068190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de4100990602001610f47565b6005546001600160a01b031633146115f55760405162461bcd60e51b8152600401610b7790613608565b601254610100900460ff161561164d5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207265656e61626c652074726164696e670000000000000000006044820152606401610b77565b6012805462ffff0019166201010017905543600e81905561166f90829061377a565b600f556040517fba61a96074b3d636edeee92caddc86293c917d5b6818b7d3698bb52e02ec86c890600090a150565b6005546001600160a01b031633146116c85760405162461bcd60e51b8152600401610b7790613608565b6001600160a01b03811661172d5760405162461bcd60e51b815260206004820152602660248201527f5f6f7065726174696f6e734164647265737320616464726573732063616e6e6f60448201526507420626520360d41b6064820152608401610b77565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526020819052604090205490565b6005546001600160a01b031633146117945760405162461bcd60e51b8152600401610b7790613608565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b031633146118085760405162461bcd60e51b8152600401610b7790613608565b6012805460ff199081169091556014805490911690556040517fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c90600090a1565b6005546000906001600160a01b031633146118765760405162461bcd60e51b8152600401610b7790613608565b6001600160a01b0383166118cc5760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610b77565b306001600160a01b038416036119245760405162461bcd60e51b815260206004820152601c60248201527f43616e2774207769746864726177206e617469766520746f6b656e73000000006044820152606401610b77565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa15801561196b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198f91906137c9565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303816000875af11580156119e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0691906137e2565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6005546001600160a01b03163314611a7c5760405162461bcd60e51b8152600401610b7790613608565b670de0b6b3a76400006103e8611a9160025490565b611a9c906002613739565b611aa69190613758565b611ab09190613758565b811015611b125760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e322560b01b6064820152608401610b77565b611b2481670de0b6b3a7640000613739565b60078190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e90602001610f47565b606060048054610da9906136e9565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611bea5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610b77565b611bf7338585840361209c565b5060019392505050565b6000610e393384846121c1565b6005546001600160a01b03163314611c385760405162461bcd60e51b8152600401610b7790613608565b600a546001600160a01b0390811690831603611c965760405162461bcd60e51b815260206004820152601a60248201527f54686520706169722063616e6e6f742062652072656d6f7665640000000000006044820152606401610b77565b611ca08282612f35565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b6005546001600160a01b03163314611d065760405162461bcd60e51b8152600401610b7790613608565b6001600160a01b03919091166000908152601060205260409020805460ff1916911515919091179055565b6005546001600160a01b03163314611d5b5760405162461bcd60e51b8152600401610b7790613608565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b03163314611de45760405162461bcd60e51b8152600401610b7790613608565b6001600160a01b038116611e3a5760405162461bcd60e51b815260206004820152601f60248201527f5f6465764164647265737320616464726573732063616e6e6f742062652030006044820152606401610b77565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314611e865760405162461bcd60e51b8152600401610b7790613608565b601b849055601c839055601d829055601e8190558082611ea6858761377a565b611eb0919061377a565b611eba919061377a565b601a8190556019101561122f5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323525206f72206c6573730000006044820152606401610b77565b6005546001600160a01b03163314611f395760405162461bcd60e51b8152600401610b7790613608565b6014805460ff19169055565b6005546001600160a01b03163314611f6f5760405162461bcd60e51b8152600401610b7790613608565b6001600160a01b038116611fd45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b77565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461205a5760405162461bcd60e51b8152600401610b7790613608565b604051600090339047908381818185875af1925050503d806000811461122f576040519150601f19603f3d011682016040523d82523d6000602084013e61122f565b6001600160a01b0383166120fe5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610b77565b6001600160a01b03821661215f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610b77565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166121e75760405162461bcd60e51b8152600401610b77906137ff565b6001600160a01b03821661220d5760405162461bcd60e51b8152600401610b7790613844565b6000811161225d5760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610b77565b601254610100900460ff166122f0576001600160a01b03831660009081526023602052604090205460ff16806122ab57506001600160a01b03821660009081526023602052604090205460ff165b6122f05760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610b77565b600f54156123c3576001600160a01b03831660009081526010602052604090205460ff16158061232d57506005546001600160a01b038381169116145b8061234257506001600160a01b03821661dead145b6123c35760405162461bcd60e51b815260206004820152604660248201527f426f74732063616e6e6f74207472616e7366657220746f6b656e7320696e206f60448201527f72206f75742065786365707420746f206f776e6572206f722064656164206164606482015265323932b9b99760d11b608482015260a401610b77565b60125460ff16156127bf576005546001600160a01b038481169116148015906123fa57506005546001600160a01b03838116911614155b801561240e57506001600160a01b03821615155b801561242557506001600160a01b03821661dead14155b801561244a57506001600160a01b03831660009081526023602052604090205460ff16155b801561246f57506001600160a01b03821660009081526023602052604090205460ff16155b156127bf5760145460ff1615612588576009546001600160a01b038381169116148015906124ab5750600a546001600160a01b03838116911614155b15612588576124bb600f43613887565b326000908152601360205260409020541080156124f957506124de600f43613887565b6001600160a01b038316600090815260136020526040902054105b6125635760405162461bcd60e51b815260206004820152603560248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527432b21710102a393c9030b3b0b4b7103630ba32b91760591b6064820152608401610b77565b3260009081526013602052604080822043908190556001600160a01b03851683529120555b6001600160a01b03831660009081526025602052604090205460ff1680156125c957506001600160a01b03821660009081526024602052604090205460ff16155b15612695576006548111156126315760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608401610b77565b60085461263d8361174f565b612647908361377a565b11156126905760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610b77565b6127bf565b6001600160a01b03821660009081526025602052604090205460ff1680156126d657506001600160a01b03831660009081526024602052604090205460ff16155b15612740576007548111156126905760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152608401610b77565b6001600160a01b03821660009081526024602052604090205460ff166127bf5760085461276c8361174f565b612776908361377a565b11156127bf5760405162461bcd60e51b815260206004820152601860248201527710d85b9b9bdd08115e18d95959081b585e081dd85b1b195d60421b6044820152606401610b77565b60006127ca3061174f565b600b54909150811080159081906127e9575060125462010000900460ff165b80156127ff5750600a54600160a01b900460ff16155b801561282457506001600160a01b03851660009081526025602052604090205460ff16155b801561284957506001600160a01b03851660009081526023602052604090205460ff16155b801561286e57506001600160a01b03841660009081526023602052604090205460ff16155b1561289c57600a805460ff60a01b1916600160a01b17905561288e612cf6565b600a805460ff60a01b191690555b6001600160a01b03851660009081526023602052604090205460019060ff16806128de57506001600160a01b03851660009081526023602052604090205460ff165b156128e7575060005b60008115612ce257600f544310801561291857506001600160a01b03871660009081526025602052604090205460ff165b801561293d57506001600160a01b03861660009081526025602052604090205460ff16155b801561294b57506000601554115b15612acb576001600160a01b03861660009081526010602052604090205460ff166129eb576001600160a01b0386166000908152601060205260408120805460ff1916600190811790915560118054919290916129a990849061377a565b90915550506040516001600160a01b03871681527f55678e47d0a699d3ab99b0184c4ff14f2246ba80522deb921aa0c8823578c44a9060200160405180910390a15b60646129f8866063613739565b612a029190613758565b905060155460175482612a159190613739565b612a1f9190613758565b60206000828254612a30919061377a565b9091555050601554601654612a459083613739565b612a4f9190613758565b601f6000828254612a60919061377a565b9091555050601554601854612a759083613739565b612a7f9190613758565b60216000828254612a90919061377a565b9091555050601554601954612aa59083613739565b612aaf9190613758565b60226000828254612ac0919061377a565b90915550612cc49050565b6001600160a01b03861660009081526025602052604090205460ff168015612af557506000601a54115b15612bb7576064601a5486612b0a9190613739565b612b149190613758565b9050601a54601c5482612b279190613739565b612b319190613758565b60206000828254612b42919061377a565b9091555050601a54601b54612b579083613739565b612b619190613758565b601f6000828254612b72919061377a565b9091555050601a54601d54612b879083613739565b612b919190613758565b60216000828254612ba2919061377a565b9091555050601a54601e54612aa59083613739565b6001600160a01b03871660009081526025602052604090205460ff168015612be157506000601554115b15612cc457606460155486612bf69190613739565b612c009190613758565b905060155460175482612c139190613739565b612c1d9190613758565b60206000828254612c2e919061377a565b9091555050601554601654612c439083613739565b612c4d9190613758565b601f6000828254612c5e919061377a565b9091555050601554601854612c739083613739565b612c7d9190613758565b60216000828254612c8e919061377a565b9091555050601554601954612ca39083613739565b612cad9190613758565b60226000828254612cbe919061377a565b90915550505b8015612cd557612cd5873083612f63565b612cdf8186613887565b94505b612ced878787612f63565b50505050505050565b6000602254118015612d125750602254612d0f3061174f565b10155b15612d2357612d23306022546130b8565b60006022819055612d333061174f565b90506000602154601f54602054612d4a919061377a565b612d54919061377a565b9050811580612d61575080155b15612d6a575050565b600b54612d78906014613739565b821115612d9057600b54612d8d906014613739565b91505b60008060028360205486612da49190613739565b612dae9190613758565b612db89190613758565b9050612dcc612dc78286613887565b6131e2565b60205447908190600090612de290600290613758565b612dec9087613887565b601f54612df99085613739565b612e039190613758565b905060006002602054612e169190613758565b612e209088613887565b602154612e2d9086613739565b612e379190613758565b9050612e43818361377a565b612e4d9084613887565b60006020819055601f819055602181905560225592508415801590612e725750600083115b15612e8157612e81858461333c565b600d546040516001600160a01b03909116908290600081818185875af1925050503d8060008114612ece576040519150601f19603f3d011682016040523d82523d6000602084013e612ed3565b606091505b5050600c546040519197506001600160a01b0316904790600081818185875af1925050503d8060008114612f23576040519150601f19603f3d011682016040523d82523d6000602084013e612f28565b606091505b5050505050505050505050565b6001600160a01b0382166000908152602560205260409020805460ff1916821515179055611ca082826133ee565b6001600160a01b038316612f895760405162461bcd60e51b8152600401610b77906137ff565b6001600160a01b038216612faf5760405162461bcd60e51b8152600401610b7790613844565b6001600160a01b038316600090815260208190526040902054818110156130275760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610b77565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061305e90849061377a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516130aa91815260200190565b60405180910390a350505050565b6001600160a01b0382166131185760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610b77565b6001600160a01b0382166000908152602081905260409020548181101561318c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610b77565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016121b4565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106132175761321761365a565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015613270573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613294919061363d565b816001815181106132a7576132a761365a565b6001600160a01b0392831660209182029290920101526009546132cd913091168461209c565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac9479061330690859060009086903090429060040161389e565b600060405180830381600087803b15801561332057600080fd5b505af1158015613334573d6000803e3d6000fd5b505050505050565b6009546133549030906001600160a01b03168461209c565b60095460405163f305d71960e01b815230600482015260248101849052600060448201819052606482015261dead60848201524260a48201526001600160a01b039091169063f305d71990839060c40160606040518083038185885af11580156133c2573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906133e791906138da565b5050505050565b6001600160a01b038216600081815260246020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd67469101610d8e565b60006020828403121561345c57600080fd5b5035919050565b600060208083528351808285015260005b8181101561349057858101830151858201604001528201613474565b818111156134a2576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146134cd57600080fd5b50565b600080604083850312156134e357600080fd5b82356134ee816134b8565b946020939093013593505050565b60006020828403121561350e57600080fd5b8135613519816134b8565b9392505050565b60008060006060848603121561353557600080fd5b8335613540816134b8565b92506020840135613550816134b8565b929592945050506040919091013590565b80151581146134cd57600080fd5b6000806040838503121561358257600080fd5b823561358d816134b8565b9150602083013561359d81613561565b809150509250929050565b600080600080608085870312156135be57600080fd5b5050823594602084013594506040840135936060013592509050565b600080604083850312156135ed57600080fd5b82356135f8816134b8565b9150602083013561359d816134b8565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561364f57600080fd5b8151613519816134b8565b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b838110156136a95781516001600160a01b031687529582019590820190600101613684565b509495945050505050565b8481526080602082015260006136cd6080830186613670565b6001600160a01b03949094166040830152506060015292915050565b600181811c908216806136fd57607f821691505b60208210810361371d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561375357613753613723565b500290565b60008261377557634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561378d5761378d613723565b500190565b6020808252601d908201527f4d757374206b656570206665657320617420323025206f72206c657373000000604082015260600190565b6000602082840312156137db57600080fd5b5051919050565b6000602082840312156137f457600080fd5b815161351981613561565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60008282101561389957613899613723565b500390565b85815284602082015260a0604082015260006138bd60a0830186613670565b6001600160a01b0394909416606083015250608001529392505050565b6000806000606084860312156138ef57600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212208cc674d7a24d853a2cec43f9973fa3c0aeffce9021615f1343547da5f8494d9b64736f6c634300080f0033
Verified Source Code Partial Match
Compiler: v0.8.15+commit.e14f2714
EVM: london
Optimization: Yes (200 runs)
token.sol 741 lines
/**
Such Doge, Many China
Memes - https://t.me/zongdumemes
Portal - https://t.me/zongducoineth
Twitter - https://x.com/zongducoineth
Website - https://zongdu.xyz
**/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;
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 IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
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");
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
function _createInitialSupply(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
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);
}
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);
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface IDexRouter {
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;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract token is ERC20, Ownable {
uint256 public maxBuy;
uint256 public maxSell;
uint256 public maxWallet;
IDexRouter public dexRouter;
address public lpPair;
bool private swapping;
uint256 public swapTokensAtAmount;
address operationsAddress;
address devAddress;
uint256 public tradingActiveBlock = 0; // 0 means trading is not active
uint256 public blockForPenaltyEnd;
mapping (address => bool) public boughtEarly;
uint256 public botsCaught;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool public transferDelayEnabled = true;
uint256 public buyTotalFees;
uint256 public buyOperationsFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public buyBurnFee;
uint256 public sellTotalFees;
uint256 public sellOperationsFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public sellBurnFee;
uint256 public tokensForOperations;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
uint256 public tokensForBurn;
/******************/
// exlcude 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 SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event Launched();
event RemovedLimits();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedMaxBuyAmount(uint256 newAmount);
event UpdatedMaxSellAmount(uint256 newAmount);
event UpdatedMaxWalletAmount(uint256 newAmount);
event UpdatedOperationsAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event BuyBackTriggered(uint256 amount);
event OwnerForcedSwapBack(uint256 timestamp);
event CaughtEarlyBuyer(address sniper);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
constructor() ERC20("Zongdu", "ZONGDU") {
address newOwner = msg.sender;
IDexRouter _dexRouter = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
dexRouter = _dexRouter;
// create pair
lpPair = IDexFactory(_dexRouter.factory()).createPair(address(this), _dexRouter.WETH());
_excludeFromMaxTransaction(address(lpPair), true);
_setAutomatedMarketMakerPair(address(lpPair), true);
uint256 totalSupply = 42069 * (10 ** 10) * (10 ** 18);
maxBuy = totalSupply * 1 / 100;
maxSell = totalSupply * 1 / 100;
maxWallet = totalSupply * 1 / 100;
swapTokensAtAmount = totalSupply * 5 / 10000;
buyOperationsFee = 10;
buyLiquidityFee = 0;
buyDevFee = 0;
buyBurnFee = 0;
buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
sellOperationsFee = 45;
sellLiquidityFee = 0;
sellDevFee = 0;
sellBurnFee = 0;
sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
operationsAddress = address(newOwner);
devAddress = address(newOwner);
_createInitialSupply(newOwner, totalSupply);
transferOwnership(newOwner);
}
receive() external payable {}
// only enable if no plan to airdrop
function woofWoof(uint256 _deadblocks) external onlyOwner {
require(!tradingActive, "Cannot reenable trading");
tradingActive = true;
swapEnabled = true;
tradingActiveBlock = block.number;
blockForPenaltyEnd = tradingActiveBlock + _deadblocks;
emit Launched();
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
transferDelayEnabled = false;
emit RemovedLimits();
}
function manageEarly(address wallet, bool flag) external onlyOwner {
boughtEarly[wallet] = flag;
}
function disableTransferDelay() external onlyOwner {
transferDelayEnabled = false;
}
function updateMaxBuy(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max buy amount lower than 0.2%");
maxBuy = newNum * (10**18);
emit UpdatedMaxBuyAmount(maxBuy);
}
function updateMaxSell(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 2 / 1000)/1e18, "Cannot set max sell amount lower than 0.2%");
maxSell = newNum * (10**18);
emit UpdatedMaxSellAmount(maxSell);
}
function updateMaxWallet(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 3 / 1000)/1e18, "Cannot set max wallet amount lower than 0.3%");
maxWallet = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWallet);
}
function updateSwapTokens(uint256 newAmount) external onlyOwner {
require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= totalSupply() * 1 / 1000, "Swap amount cannot be higher than 0.1% total supply.");
swapTokensAtAmount = newAmount;
}
function _excludeFromMaxTransaction(address updAds, bool isExcluded) private {
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
emit MaxTransactionExclusion(updAds, isExcluded);
}
function excludeFromMax(address updAds, bool isEx) external onlyOwner {
if(!isEx){
require(updAds != lpPair, "Cannot remove uniswap pair from max txn");
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function setAMM(address pair, bool value) external onlyOwner {
require(pair != lpPair, "The pair cannot be removed");
_setAutomatedMarketMakerPair(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
_excludeFromMaxTransaction(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateBuyFees(uint256 _operationsFee, uint256 _liquidityFee, uint256 _DevFee, uint256 _burnFee) external onlyOwner {
buyOperationsFee = _operationsFee;
buyLiquidityFee = _liquidityFee;
buyDevFee = _DevFee;
buyBurnFee = _burnFee;
buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
require(buyTotalFees <= 20, "Must keep fees at 20% or less");
}
function updateSellFees(uint256 _operationsFee, uint256 _liquidityFee, uint256 _DevFee, uint256 _burnFee) external onlyOwner {
sellOperationsFee = _operationsFee;
sellLiquidityFee = _liquidityFee;
sellDevFee = _DevFee;
sellBurnFee = _burnFee;
sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
require(sellTotalFees <= 25, "Must keep fees at 25% or less");
}
function returnToStandardTax() external onlyOwner {
sellOperationsFee = 20;
sellLiquidityFee = 0;
sellDevFee = 0;
sellBurnFee = 0;
sellTotalFees = sellOperationsFee + sellLiquidityFee + sellDevFee + sellBurnFee;
require(sellTotalFees <= 20, "Must keep fees at 20% or less");
buyOperationsFee = 25;
buyLiquidityFee = 0;
buyDevFee = 0;
buyBurnFee = 0;
buyTotalFees = buyOperationsFee + buyLiquidityFee + buyDevFee + buyBurnFee;
require(buyTotalFees <= 20, "Must keep fees at 20% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
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(amount > 0, "amount must be greater than 0");
if(!tradingActive){
require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
}
if(blockForPenaltyEnd > 0){
require(!boughtEarly[from] || to == owner() || to == address(0xdead), "Bots cannot transfer tokens in or out except to owner or dead address.");
}
if(limitsInEffect){
if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled){
if (to != address(dexRouter) && to != address(lpPair)){
require(_holderLastTransferTimestamp[tx.origin] < block.number - 15 && _holderLastTransferTimestamp[to] < block.number - 15, "_transfer:: Transfer Delay enabled. Try again later.");
_holderLastTransferTimestamp[tx.origin] = block.number;
_holderLastTransferTimestamp[to] = block.number;
}
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxBuy, "Buy transfer amount exceeds the max buy.");
require(amount + balanceOf(to) <= maxWallet, "Cannot Exceed max wallet");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxSell, "Sell transfer amount exceeds the max sell.");
}
else if (!_isExcludedMaxTransactionAmount[to]){
require(amount + balanceOf(to) <= maxWallet, "Cannot Exceed max wallet");
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if(canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = true;
// 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){
// bot/sniper penalty.
if(earlyBuyPenaltyInEffect() && automatedMarketMakerPairs[from] && !automatedMarketMakerPairs[to] && buyTotalFees > 0){
if(!boughtEarly[to]){
boughtEarly[to] = true;
botsCaught += 1;
emit CaughtEarlyBuyer(to);
}
fees = amount * 99 / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForOperations += fees * buyOperationsFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
tokensForBurn += fees * buyBurnFee / buyTotalFees;
}
// on sell
else if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
fees = amount * sellTotalFees / 100;
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForOperations += fees * sellOperationsFee / sellTotalFees;
tokensForDev += fees * sellDevFee / sellTotalFees;
tokensForBurn += fees * sellBurnFee / sellTotalFees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForOperations += fees * buyOperationsFee / buyTotalFees;
tokensForDev += fees * buyDevFee / buyTotalFees;
tokensForBurn += fees * buyBurnFee / buyTotalFees;
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function earlyBuyPenaltyInEffect() public view returns (bool){
return block.number < blockForPenaltyEnd;
}
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] = dexRouter.WETH();
_approve(address(this), address(dexRouter), tokenAmount);
// make the swap
dexRouter.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(dexRouter), tokenAmount);
// add the liquidity
dexRouter.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
address(0xdead),
block.timestamp
);
}
function swapBack() private {
if(tokensForBurn > 0 && balanceOf(address(this)) >= tokensForBurn) {
_burn(address(this), tokensForBurn);
}
tokensForBurn = 0;
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForOperations + tokensForDev;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 20){
contractBalance = swapTokensAtAmount * 20;
}
bool success;
// Halve the amount of liquidity tokens
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
swapTokensForEth(contractBalance - liquidityTokens);
uint256 ethBalance = address(this).balance;
uint256 ethForLiquidity = ethBalance;
uint256 ethForOperations = ethBalance * tokensForOperations / (totalTokensToSwap - (tokensForLiquidity/2));
uint256 ethForDev = ethBalance * tokensForDev / (totalTokensToSwap - (tokensForLiquidity/2));
ethForLiquidity -= ethForOperations + ethForDev;
tokensForLiquidity = 0;
tokensForOperations = 0;
tokensForDev = 0;
tokensForBurn = 0;
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success,) = address(devAddress).call{value: ethForDev}("");
(success,) = address(operationsAddress).call{value: address(this).balance}("");
}
function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) {
require(_token != address(0), "_token address cannot be 0");
require(_token != address(this), "Can't withdraw native tokens");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
function withdrawStuckETH() external onlyOwner {
bool success;
(success,) = address(msg.sender).call{value: address(this).balance}("");
}
function setOpsAddress(address _operationsAddress) external onlyOwner {
require(_operationsAddress != address(0), "_operationsAddress address cannot be 0");
operationsAddress = payable(_operationsAddress);
}
function setDevAddress(address _devAddress) external onlyOwner {
require(_devAddress != address(0), "_devAddress address cannot be 0");
devAddress = payable(_devAddress);
}
// force Swap back if slippage issues.
function forceSwapBack() external onlyOwner {
require(balanceOf(address(this)) >= swapTokensAtAmount, "Can only swap when token amount is at or higher than restriction");
swapping = true;
swapBack();
swapping = false;
emit OwnerForcedSwapBack(block.timestamp);
}
// useful for buybacks or to reclaim any ETH on the contract in a way that helps holders.
function buyBack(uint256 amountInWei) external onlyOwner {
require(amountInWei <= 10 ether, "May not buy more than 10 ETH in a single buy to reduce sandwich attacks");
address[] memory path = new address[](2);
path[0] = dexRouter.WETH();
path[1] = address(this);
// make the swap
dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountInWei}(
0, // accept any amount of Ethereum
path,
address(0xdead),
block.timestamp
);
emit BuyBackTriggered(amountInWei);
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
blockForPenaltyEnd 0xa62068ce → uint256
botsCaught 0x6b0a894c → uint256
boughtEarly 0x85ecfd28 → bool
buyBurnFee 0xe71dc3f5 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyOperationsFee 0x5a139dd4 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
earlyBuyPenaltyInEffect 0x58a6d531 → bool
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxBuy 0x70db69d6 → uint256
maxSell 0xb8eb3546 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnFee 0xadb873bd → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellOperationsFee 0x4f77f6c0 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForBurn 0x1d777856 → uint256
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
transferDelayEnabled 0xc876d0b9 → bool
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buyBack 0x053f9040
uint256 amountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMax 0x249ec2bb
address updAds
bool isEx
forceSwapBack 0x51f205e4
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manageEarly 0xb94279ea
address wallet
bool flag
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
returnToStandardTax 0x2e509103
No parameters
setAMM 0xa9d3cd8a
address pair
bool value
setDevAddress 0xd0d41fe1
address _devAddress
setOpsAddress 0x707789c5
address _operationsAddress
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x2e6ed7ef
uint256 _operationsFee
uint256 _liquidityFee
uint256 _DevFee
uint256 _burnFee
updateMaxBuy 0x58881304
uint256 newNum
updateMaxSell 0x9164f9db
uint256 newNum
updateMaxWallet 0x1c499ab0
uint256 newNum
updateSellFees 0xe7ad9fcd
uint256 _operationsFee
uint256 _liquidityFee
uint256 _DevFee
uint256 _burnFee
updateSwapTokens 0x46f1f5de
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters
woofWoof 0x5b0327a2
uint256 _deadblocks
Recent Transactions
No transactions found for this address