Address Contract Verified
Address
0xd9ADfB67381D392C6e9671F64cDD9014BFcD74F2
Balance
0 ETH
Nonce
1
Code Size
15605 bytes
Creator
0xc1ad7dBE...d485 at tx 0x016cc460...e59180
Indexed Transactions
0
Contract Bytecode
15605 bytes
0x6080604052600436106104145760003560e01c80637dfcbe341161021e578063c024666811610123578063e99c9d09116100ab578063f2fde38b1161007a578063f2fde38b14610c05578063f34eb0b814610c25578063f5648a4f14610c45578063f637434214610c5a578063f8b45b0514610c7057600080fd5b8063e99c9d0914610ba3578063ee40166e14610bc3578063f11a24d314610bd9578063f20c982614610bef57600080fd5b8063d85ba063116100f2578063d85ba06314610afa578063dcf7952b14610b10578063dd62ed3e14610b32578063e2f4560514610b78578063e884f26014610b8e57600080fd5b8063c024666814610a70578063c1eac47614610a90578063c876d0b914610ac0578063d0d41fe114610ada57600080fd5b80639c3b4fdc116101a6578063a5ece94111610175578063a5ece941146109c1578063a9059cbb146109e1578063afa4f3b214610a01578063b62496f514610a21578063bbc0c74214610a5157600080fd5b80639c3b4fdc1461095f5780639fccce3214610975578063a0d82dc51461098b578063a457c2d7146109a157600080fd5b80638da5cb5b116101ed5780638da5cb5b146108cc5780638ea46aa2146108ea578063906e9dd01461090a57806395d89b411461092a5780639a7a23d61461093f57600080fd5b80637dfcbe341461085f5780637e926b4b1461087657806382aa7c681461089657806388e765ff146108b657600080fd5b806339509351116103245780636098fed1116102ac5780636a486a8e1161027b5780636a486a8e146107be5780636ddd1713146107d457806370a08231146107f4578063751039fc1461082a5780637571336a1461083f57600080fd5b80636098fed114610752578063632d750714610768578063666f68431461078857806366d602ae146107a857600080fd5b806348c492d6116102f357806348c492d6146106cd5780634a62bb65146106e357806351f205e4146106fd578063599d642e146107125780635e6909ab1461073257600080fd5b806339509351146106575780633ad10ef614610677578063452ed4f1146106975780634853e7d9146106b757600080fd5b806318160ddd116103a757806327a14fc21161037657806327a14fc2146105c65780632dd9a823146105e6578063313ce567146105fb57806333251a0b14610617578063347daf661461063757600080fd5b806318160ddd1461055b5780631a8145bb1461057a5780631f3fed8f1461059057806323b872dd146105a657600080fd5b80630d075d9c116103e35780630d075d9c146104c95780630f683e90146104eb57806310d5de531461050b578063131941cf1461053b57600080fd5b806301e0beaf1461042057806306fdde031461044f5780630758d92414610471578063095ea7b3146104a957600080fd5b3661041b57005b600080fd5b34801561042c57600080fd5b5060225461043a9060ff1681565b60405190151581526020015b60405180910390f35b34801561045b57600080fd5b50610464610c86565b6040516104469190613842565b34801561047d57600080fd5b50600954610491906001600160a01b031681565b6040516001600160a01b039091168152602001610446565b3480156104b557600080fd5b5061043a6104c43660046138af565b610d18565b3480156104d557600080fd5b506104e96104e43660046138db565b610d2e565b005b3480156104f757600080fd5b506104e96105063660046138db565b610ddf565b34801561051757600080fd5b5061043a610526366004613907565b60246020526000908152604090205460ff1681565b34801561054757600080fd5b5061049161055636600461392b565b610e82565b34801561056757600080fd5b506002545b604051908152602001610446565b34801561058657600080fd5b5061056c60205481565b34801561059c57600080fd5b5061056c60215481565b3480156105b257600080fd5b5061043a6105c1366004613944565b610eac565b3480156105d257600080fd5b506104e96105e136600461392b565b610f56565b3480156105f257600080fd5b506104e96110fd565b34801561060757600080fd5b5060405160128152602001610446565b34801561062357600080fd5b506104e9610632366004613907565b61119f565b34801561064357600080fd5b506104e9610652366004613993565b611252565b34801561066357600080fd5b5061043a6106723660046138af565b611296565b34801561068357600080fd5b50600c54610491906001600160a01b031681565b3480156106a357600080fd5b50600a54610491906001600160a01b031681565b3480156106c357600080fd5b5061056c601a5481565b3480156106d957600080fd5b5061056c601e5481565b3480156106ef57600080fd5b5060145461043a9060ff1681565b34801561070957600080fd5b506104e96112d2565b34801561071e57600080fd5b506104e961072d3660046139b0565b6113e2565b34801561073e57600080fd5b506104e961074d366004613907565b6114b1565b34801561075e57600080fd5b5061056c60105481565b34801561077457600080fd5b506104e9610783366004613907565b6115d4565b34801561079457600080fd5b50600e54610491906001600160a01b031681565b3480156107b457600080fd5b5061056c60075481565b3480156107ca57600080fd5b5061056c601b5481565b3480156107e057600080fd5b5060145461043a9062010000900460ff1681565b34801561080057600080fd5b5061056c61080f366004613907565b6001600160a01b031660009081526020819052604090205490565b34801561083657600080fd5b506104e96116aa565b34801561084b57600080fd5b506104e961085a3660046139b0565b6116e0565b34801561086b57600080fd5b50601054431061043a565b34801561088257600080fd5b506104e9610891366004613993565b6117a8565b3480156108a257600080fd5b506104e96108b136600461392b565b61186a565b3480156108c257600080fd5b5061056c60065481565b3480156108d857600080fd5b506005546001600160a01b0316610491565b3480156108f657600080fd5b5061043a6109053660046139e9565b61199e565b34801561091657600080fd5b506104e9610925366004613907565b611bd8565b34801561093657600080fd5b50610464611cb0565b34801561094b57600080fd5b506104e961095a3660046139b0565b611cbf565b34801561096b57600080fd5b5061056c60185481565b34801561098157600080fd5b5061056c601f5481565b34801561099757600080fd5b5061056c601c5481565b3480156109ad57600080fd5b5061043a6109bc3660046138af565b611db3565b3480156109cd57600080fd5b50600d54610491906001600160a01b031681565b3480156109ed57600080fd5b5061043a6109fc3660046138af565b611e4c565b348015610a0d57600080fd5b506104e9610a1c36600461392b565b611e59565b348015610a2d57600080fd5b5061043a610a3c366004613907565b60256020526000908152604090205460ff1681565b348015610a5d57600080fd5b5060145461043a90610100900460ff1681565b348015610a7c57600080fd5b506104e9610a8b3660046139b0565b611fa4565b348015610a9c57600080fd5b5061043a610aab366004613907565b60116020526000908152604090205460ff1681565b348015610acc57600080fd5b5060165461043a9060ff1681565b348015610ae657600080fd5b506104e9610af5366004613907565b61202d565b348015610b0657600080fd5b5061056c60175481565b348015610b1c57600080fd5b50610b256120f7565b6040516104469190613a5b565b348015610b3e57600080fd5b5061056c610b4d3660046139e9565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610b8457600080fd5b5061056c600b5481565b348015610b9a57600080fd5b506104e9612158565b348015610baf57600080fd5b506104e9610bbe36600461392b565b61218e565b348015610bcf57600080fd5b5061056c600f5481565b348015610be557600080fd5b5061056c60195481565b348015610bfb57600080fd5b5061056c60135481565b348015610c1157600080fd5b506104e9610c20366004613907565b61232a565b348015610c3157600080fd5b506104e9610c4036600461392b565b612415565b348015610c5157600080fd5b506104e96125af565b348015610c6657600080fd5b5061056c601d5481565b348015610c7c57600080fd5b5061056c60085481565b606060038054610c9590613a6e565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc190613a6e565b8015610d0e5780601f10610ce357610100808354040283529160200191610d0e565b820191906000526020600020905b815481529060010190602001808311610cf157829003601f168201915b5050505050905090565b6000610d25338484612626565b50600192915050565b6005546001600160a01b03163314610d615760405162461bcd60e51b8152600401610d5890613aa9565b60405180910390fd5b60188390556019829055601a81905580610d7b8385613af4565b610d859190613af4565b601781905560141015610dda5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420323025206f72206c6573730000006044820152606401610d58565b505050565b6005546001600160a01b03163314610e095760405162461bcd60e51b8152600401610d5890613aa9565b601c839055601d829055601e81905580610e238385613af4565b610e2d9190613af4565b601b819055601e1015610dda5760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420333025206f72206c6573730000006044820152606401610d58565b60128181548110610e9257600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610eb984848461274a565b6001600160a01b038416600090815260016020908152604080832033845290915290205482811015610f3e5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610d58565b610f4b8533858403612626565b506001949350505050565b6005546001600160a01b03163314610f805760405162461bcd60e51b8152600401610d5890613aa9565b670de0b6b3a76400006103e8610f9560025490565b610fa0906005613b0c565b610faa9190613b2b565b610fb49190613b2b565b8110156110185760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e352560a01b6064820152608401610d58565b670de0b6b3a7640000606461102c60025490565b61103790600a613b0c565b6110419190613b2b565b61104b9190613b2b565b8111156110af5760405162461bcd60e51b815260206004820152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e742068696760448201526b686572207468616e2031302560a01b6064820152608401610d58565b6110c181670de0b6b3a7640000613b0c565b60088190556040519081527fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc906020015b60405180910390a150565b6005546001600160a01b031633146111275760405162461bcd60e51b8152600401610d5890613aa9565b60225460ff166111935760405162461bcd60e51b815260206004820152603160248201527f4d61726b20626f742066756e6374696f6e616c69747920616c72656164792064604482015270697361626c656420666f7265766572212160781b6064820152608401610d58565b6022805460ff19169055565b6005546001600160a01b031633146111c95760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b03811660009081526011602052604090205460ff166112315760405162461bcd60e51b815260206004820152601e60248201527f57616c6c657420697320616c7265616479206e6f7420666c61676765642e00006044820152606401610d58565b6001600160a01b03166000908152601160205260409020805460ff19169055565b6005546001600160a01b0316331461127c5760405162461bcd60e51b8152600401610d5890613aa9565b602280549115156101000261ff0019909216919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610d259185906112cd908690613af4565b612626565b6005546001600160a01b031633146112fc5760405162461bcd60e51b8152600401610d5890613aa9565b600b54306000908152602081905260409020541015611385576040805162461bcd60e51b81526020600482015260248101919091527f43616e206f6e6c792073776170207768656e20746f6b656e20616d6f756e742060448201527f6973206174206f7220686967686572207468616e207265737472696374696f6e6064820152608401610d58565b600a805460ff60a01b1916600160a01b1790556113a0613237565b600a805460ff60a01b191690556040514281527f1b56c383f4f48fc992e45667ea4eabae777b9cca68b516a9562d8cda78f1bb329060200160405180910390a1565b6005546001600160a01b0316331461140c5760405162461bcd60e51b8152600401610d5890613aa9565b601454610100900460ff16156114735760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74207365742061667465722074726164696e672069732066756e636044820152651d1a5bdb985b60d21b6064820152608401610d58565b600980546001600160a01b039093166001600160a01b03199093169290921790915560148054911515620100000262ff000019909216919091179055565b6005546001600160a01b031633146114db5760405162461bcd60e51b8152600401610d5890613aa9565b60225460ff166115475760405162461bcd60e51b815260206004820152603160248201527f4d61726b20626f742066756e6374696f6e616c69747920686173206265656e2060448201527064697361626c656420666f72657665722160781b6064820152608401610d58565b6001600160a01b03811660009081526011602052604090205460ff16156115b05760405162461bcd60e51b815260206004820152601a60248201527f57616c6c657420697320616c726561647920666c61676765642e0000000000006044820152606401610d58565b6001600160a01b03166000908152601160205260409020805460ff19166001179055565b6005546001600160a01b031633146115fe5760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b0381166116605760405162461bcd60e51b8152602060048201526024808201527f5f72657365727665644164647265737320616464726573732063616e6e6f74206044820152630626520360e41b6064820152608401610d58565b600e80546001600160a01b0319166001600160a01b0383169081179091556040517f6cda8d95a505ae3cf2db55e5c4f5f59fcb7d5d3cf8507bb24d5772c7ffb20a5a90600090a250565b6005546001600160a01b031633146116d45760405162461bcd60e51b8152600401610d5890613aa9565b6014805460ff19169055565b6005546001600160a01b0316331461170a5760405162461bcd60e51b8152600401610d5890613aa9565b8061177d57600a546001600160a01b038381169116141561177d5760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152608401610d58565b6001600160a01b03919091166000908152602460205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146117d25760405162461bcd60e51b8152600401610d5890613aa9565b8061181f5760405162461bcd60e51b815260206004820152601860248201527f506c6561736520636f6e6669726d2072656e6f756e63652100000000000000006044820152606401610d58565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a350600580546001600160a01b0319169055565b6005546001600160a01b031633146118945760405162461bcd60e51b8152600401610d5890613aa9565b601454610100900460ff16156118ec5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207265656e61626c652074726164696e670000000000000000006044820152606401610d58565b600a81111561194d5760405162461bcd60e51b815260206004820152602760248201527f43616e6e6f74206d616b652070656e616c747920626c6f636b73206d6f72652060448201526607468616e2031360cc1b6064820152608401610d58565b6014805462ffff0019166201010017905543600f81905561196f908290613af4565b6010556040517fa56feb2d31b9a7424db0be063fd450863979c9e2382cf5110f869bd1ad361bb790600090a150565b6005546000906001600160a01b031633146119cb5760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b038316611a215760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610d58565b6001600160a01b03831630141580611a415750601454610100900460ff16155b611aaa5760405162461bcd60e51b815260206004820152603460248201527f43616e2774207769746864726177206e617469766520746f6b656e73207768696044820152736c652074726164696e672069732061637469766560601b6064820152608401610d58565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015611af1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b159190613b4d565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb906044016020604051808303816000875af1158015611b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8c9190613b66565b604080516001600160a01b0387168152602081018490529193507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e438910160405180910390a15092915050565b6005546001600160a01b03163314611c025760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b038116611c665760405162461bcd60e51b815260206004820152602560248201527f5f6d61726b6574696e674164647265737320616464726573732063616e6e6f74604482015264020626520360dc1b6064820152608401610d58565b600d80546001600160a01b0319166001600160a01b0383169081179091556040517fd1e7d6a3390dd5008bd1c57798817b9f806e4c417264e7d3d67e42e784dc24a990600090a250565b606060048054610c9590613a6e565b6005546001600160a01b03163314611ce95760405162461bcd60e51b8152600401610d5890613aa9565b600a546001600160a01b0383811691161415611d6d5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610d58565b611d77828261344e565b604051811515906001600160a01b038416907fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab90600090a35050565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015611e355760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610d58565b611e423385858403612626565b5060019392505050565b6000610d2533848461274a565b6005546001600160a01b03163314611e835760405162461bcd60e51b8152600401610d5890613aa9565b620186a0611e9060025490565b611e9b906001613b0c565b611ea59190613b2b565b811015611f125760405162461bcd60e51b815260206004820152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608401610d58565b6103e8611f1e60025490565b611f29906001613b0c565b611f339190613b2b565b811115611f9f5760405162461bcd60e51b815260206004820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152608401610d58565b600b55565b6005546001600160a01b03163314611fce5760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b038216600081815260236020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6005546001600160a01b031633146120575760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b0381166120ad5760405162461bcd60e51b815260206004820152601f60248201527f5f6465764164647265737320616464726573732063616e6e6f742062652030006044820152606401610d58565b600c80546001600160a01b0319166001600160a01b0383169081179091556040517f804ec39c1aea0b9f2615a34c3fa437b6ddda2c72e6848abf0f23955589a7ad5490600090a250565b60606012805480602002602001604051908101604052809291908181526020018280548015610d0e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612131575050505050905090565b6005546001600160a01b031633146121825760405162461bcd60e51b8152600401610d5890613aa9565b6016805460ff19169055565b6005546001600160a01b031633146121b85760405162461bcd60e51b8152600401610d5890613aa9565b670de0b6b3a76400006103e86121cd60025490565b6121d8906005613b0c565b6121e29190613b2b565b6121ec9190613b2b565b81101561224e5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e352560b01b6064820152608401610d58565b670de0b6b3a7640000606461226260025490565b61226d90600a613b0c565b6122779190613b2b565b6122819190613b2b565b8111156122e35760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e7420686967686560448201526972207468616e2031302560b01b6064820152608401610d58565b6122f581670de0b6b3a7640000613b0c565b60078190556040519081527f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e906020016110f2565b6005546001600160a01b031633146123545760405162461bcd60e51b8152600401610d5890613aa9565b6001600160a01b0381166123b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d58565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b0316331461243f5760405162461bcd60e51b8152600401610d5890613aa9565b670de0b6b3a76400006103e861245460025490565b61245f906005613b0c565b6124699190613b2b565b6124739190613b2b565b8110156124d45760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e352560b81b6064820152608401610d58565b670de0b6b3a764000060646124e860025490565b6124f390600a613b0c565b6124fd9190613b2b565b6125079190613b2b565b8111156125685760405162461bcd60e51b815260206004820152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e7420686967686572604482015268207468616e2031302560b81b6064820152608401610d58565b61257a81670de0b6b3a7640000613b0c565b60068190556040519081527ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009906020016110f2565b6005546001600160a01b031633146125d95760405162461bcd60e51b8152600401610d5890613aa9565b604051600090339047908381818185875af1925050503d806000811461261b576040519150601f19603f3d011682016040523d82523d6000602084013e612620565b606091505b50505050565b6001600160a01b0383166126885760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610d58565b6001600160a01b0382166126e95760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610d58565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166127705760405162461bcd60e51b8152600401610d5890613b83565b6001600160a01b0382166127965760405162461bcd60e51b8152600401610d5890613bc8565b600081116127e65760405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606401610d58565b601454610100900460ff16612879576001600160a01b03831660009081526023602052604090205460ff168061283457506001600160a01b03821660009081526023602052604090205460ff165b6128795760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610d58565b60105443101580156128925750601454610100900460ff165b15612962576001600160a01b03831660009081526011602052604090205460ff1615806128cc57506005546001600160a01b038381169116145b806128e157506001600160a01b03821661dead145b6129625760405162461bcd60e51b815260206004820152604660248201527f426f74732063616e6e6f74207472616e7366657220746f6b656e7320696e206f60448201527f72206f75742065786365707420746f206f776e6572206f722064656164206164606482015265323932b9b99760d11b608482015260a401610d58565b60145460ff1615612d60576005546001600160a01b0384811691161480159061299957506005546001600160a01b03838116911614155b80156129b057506001600160a01b03821661dead14155b80156129d557506001600160a01b03831660009081526023602052604090205460ff16155b80156129fa57506001600160a01b03821660009081526023602052604090205460ff16155b15612d605760165460ff1615612b13576009546001600160a01b03838116911614801590612a365750600a546001600160a01b03838116911614155b15612b1357612a46600243613c0b565b32600090815260156020526040902054108015612a845750612a69600243613c0b565b6001600160a01b038316600090815260156020526040902054105b612aee5760405162461bcd60e51b815260206004820152603560248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527432b21710102a393c9030b3b0b4b7103630ba32b91760591b6064820152608401610d58565b3260009081526015602052604080822043908190556001600160a01b03851683529120555b6001600160a01b03831660009081526025602052604090205460ff168015612b5457506001600160a01b03821660009081526024602052604090205460ff16155b15612c2b57600654811115612bbc5760405162461bcd60e51b815260206004820152602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608401610d58565b6008546001600160a01b038316600090815260208190526040902054612be29083613af4565b1115612c265760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b6044820152606401610d58565b612d60565b6001600160a01b03821660009081526025602052604090205460ff168015612c6c57506001600160a01b03831660009081526024602052604090205460ff16155b15612cd657600754811115612c265760405162461bcd60e51b815260206004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152608401610d58565b6001600160a01b03821660009081526024602052604090205460ff16612d60576008546001600160a01b038316600090815260208190526040902054612d1c9083613af4565b1115612d605760405162461bcd60e51b815260206004820152601360248201527213585e0815d85b1b195d08115e18d959591959606a1b6044820152606401610d58565b30600090815260208190526040902054600b5481108015908190612d8c575060145462010000900460ff165b8015612da25750600a54600160a01b900460ff16155b8015612dc657506001600160a01b03841660009081526025602052604090205460ff165b15612df457600a805460ff60a01b1916600160a01b179055612de6613237565b600a805460ff60a01b191690555b6001600160a01b03851660009081526023602052604090205460019060ff1680612e3657506001600160a01b03851660009081526023602052604090205460ff165b15612e3f575060005b600081156132235760105443108015612e7057506001600160a01b03871660009081526025602052604090205460ff165b8015612e9557506001600160a01b03861660009081526025602052604090205460ff16155b8015612eba57506001600160a01b03861660009081526023602052604090205460ff16155b8015612ec857506000601754115b1561305d576001600160a01b03861660009081526011602052604090205460ff16612fad576001600160a01b0386166000908152601160205260408120805460ff191660019081179091556013805491929091612f26908490613af4565b9091555050601280546001810182556000919091527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440180546001600160a01b0319166001600160a01b0388169081179091556040519081527fe6d87a7136763cfaf05e7906bfe30079dfc11c4af7a01c3a05819986f6600f9d9060200160405180910390a15b6064612fba866050613b0c565b612fc49190613b2b565b905060175460195482612fd79190613b0c565b612fe19190613b2b565b60206000828254612ff29190613af4565b90915550506017546018546130079083613b0c565b6130119190613b2b565b601f60008282546130229190613af4565b9091555050601754601a546130379083613b0c565b6130419190613b2b565b602160008282546130529190613af4565b909155506131f69050565b6001600160a01b03861660009081526025602052604090205460ff16801561308757506000601b54115b15613119576064601b548661309c9190613b0c565b6130a69190613b2b565b9050601b54601d54826130b99190613b0c565b6130c39190613b2b565b602060008282546130d49190613af4565b9091555050601b54601c546130e99083613b0c565b6130f39190613b2b565b601f60008282546131049190613af4565b9091555050601b54601e546130379083613b0c565b6001600160a01b03871660009081526025602052604090205460ff16801561314357506000601754115b156131f6576064601754866131589190613b0c565b6131629190613b2b565b9050601754601954826131759190613b0c565b61317f9190613b2b565b602060008282546131909190613af4565b90915550506017546018546131a59083613b0c565b6131af9190613b2b565b601f60008282546131c09190613af4565b9091555050601754601a546131d59083613b0c565b6131df9190613b2b565b602160008282546131f09190613af4565b90915550505b602254610100900460ff166132235780156132165761321687308361347c565b6132208186613c0b565b94505b61322e87878761347c565b50505050505050565b3060009081526020819052604081205490506000602154601f5460205461325e9190613af4565b6132689190613af4565b90506000818310613279578161327b565b825b90508061328757505050565b600b5461329590601e613b0c565b8111156132ad57600b546132aa90601e613b0c565b90505b600080600284602054856132c19190613b0c565b6132cb9190613b2b565b6132d59190613b2b565b90506132e96132e48285613c0b565b6135d1565b602054479081906000906132ff90600290613b2b565b6133099088613c0b565b601f546133169085613b0c565b6133209190613b2b565b9050600060026020546133339190613b2b565b61333d9089613c0b565b60215461334a9086613b0c565b6133549190613b2b565b90506133608183613af4565b61336a9084613c0b565b60006020819055601f8190556021559250841580159061338a5750600083115b1561339957613399858461372b565b600d546040516001600160a01b03909116908290600081818185875af1925050503d80600081146133e6576040519150601f19603f3d011682016040523d82523d6000602084013e6133eb565b606091505b5050600c546040519197506001600160a01b0316904790600081818185875af1925050503d806000811461343b576040519150601f19603f3d011682016040523d82523d6000602084013e613440565b606091505b505050505050505050505050565b6001600160a01b0382166000908152602560205260409020805460ff1916821515179055611d7782826137df565b6001600160a01b0383166134a25760405162461bcd60e51b8152600401610d5890613b83565b6001600160a01b0382166134c85760405162461bcd60e51b8152600401610d5890613bc8565b6001600160a01b038316600090815260208190526040902054818110156135405760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610d58565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290613577908490613af4565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516135c391815260200190565b60405180910390a350505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061360657613606613c22565b6001600160a01b03928316602091820292909201810191909152600954604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561365f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136839190613c38565b8160018151811061369657613696613c22565b6001600160a01b0392831660209182029290920101526009546136bc9130911684612626565b60095460405163791ac94760e01b81526001600160a01b039091169063791ac947906136f5908590600090869030904290600401613c55565b600060405180830381600087803b15801561370f57600080fd5b505af1158015613723573d6000803e3d6000fd5b505050505050565b6009546137439030906001600160a01b031684612626565b600954600e5460405163f305d71960e01b81523060048201526024810185905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990839060c40160606040518083038185885af11580156137b3573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906137d89190613c91565b5050505050565b6001600160a01b038216600081815260246020908152604091829020805460ff19168515159081179091558251938452908301527f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd6746910160405180910390a15050565b600060208083528351808285015260005b8181101561386f57858101830151858201604001528201613853565b81811115613881576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b03811681146138ac57600080fd5b50565b600080604083850312156138c257600080fd5b82356138cd81613897565b946020939093013593505050565b6000806000606084860312156138f057600080fd5b505081359360208301359350604090920135919050565b60006020828403121561391957600080fd5b813561392481613897565b9392505050565b60006020828403121561393d57600080fd5b5035919050565b60008060006060848603121561395957600080fd5b833561396481613897565b9250602084013561397481613897565b929592945050506040919091013590565b80151581146138ac57600080fd5b6000602082840312156139a557600080fd5b813561392481613985565b600080604083850312156139c357600080fd5b82356139ce81613897565b915060208301356139de81613985565b809150509250929050565b600080604083850312156139fc57600080fd5b8235613a0781613897565b915060208301356139de81613897565b600081518084526020808501945080840160005b83811015613a505781516001600160a01b031687529582019590820190600101613a2b565b509495945050505050565b6020815260006139246020830184613a17565b600181811c90821680613a8257607f821691505b60208210811415613aa357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613b0757613b07613ade565b500190565b6000816000190483118215151615613b2657613b26613ade565b500290565b600082613b4857634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613b5f57600080fd5b5051919050565b600060208284031215613b7857600080fd5b815161392481613985565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b600082821015613c1d57613c1d613ade565b500390565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613c4a57600080fd5b815161392481613897565b85815284602082015260a060408201526000613c7460a0830186613a17565b6001600160a01b0394909416606083015250608001529392505050565b600080600060608486031215613ca657600080fd5b835192506020840151915060408401519050925092509256fea26469706673582212202413b4da9a6fe56aa06d25c8cad4b44fd9ad8a4b20052f207aea262f10db352564736f6c634300080a0033
Verified Source Code Full Match
Compiler: v0.8.10+commit.fc410830
EVM: london
Optimization: Yes (200 runs)
Morra.sol 977 lines
/**
Morra Games is a web3 studio that incorporates cutting-edge technology and a community-driven
approach to redefine the future of the entertainment industry. It operates as a platform that offers
diverse entertainment ecosystems, including Gaming, Comics, Augmented Reality, and Esport, with
a focus on creating content that resonates with the community's interests and passions.
Linktree: https://linktr.ee/morragames
Telegram (Portal): t.me/morragames
Twitter: twitter.com/morragames
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
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 {
/**
* @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 {
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 _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(bool confirmRenounce)
external
virtual
onlyOwner
{
require(confirmRenounce, "Please confirm renounce!");
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 ILpPair {
function sync() external;
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 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
);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract Morra is ERC20, Ownable {
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWallet;
IDexRouter public dexRouter;
address public lpPair;
bool private swapping;
uint256 public swapTokensAtAmount;
address public devAddress;
address public marketingAddress;
address public reservedAddress;
uint256 public tradingActiveBlock = 0; // 0 means trading is not active
uint256 public antiBotBlock;
mapping(address => bool) public botsBuy;
address[] public identifiedBots;
uint256 public botsIdentified;
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 buyDevFee;
uint256 public buyLiquidityFee;
uint256 public buyMarketingfee;
uint256 public sellTotalFees;
uint256 public sellDevFee;
uint256 public sellLiquidityFee;
uint256 public sellMarketingfee;
uint256 public tokensForDev;
uint256 public tokensForLiquidity;
uint256 public tokensForMarketing;
bool public markBotsEnabled = true;
bool private taxFree = false;
/******************/
// 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 EnabledTrading();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedMaxBuyAmount(uint256 newAmount);
event UpdatedMaxSellAmount(uint256 newAmount);
event UpdatedMaxWalletAmount(uint256 newAmount);
event UpdatedDevAddress(address indexed newWallet);
event UpdatedMarketingAddress(address indexed newWallet);
event UpdatedReservedAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event OwnerForcedSwapBack(uint256 timestamp);
event BotBlocked(address sniper);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
event UpdatedPrivateMaxSell(uint256 amount);
event EnabledSelling();
constructor() payable ERC20("Morra", "MORRA") {
address newOwner = msg.sender;
address _dexRouter = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
// initialize router
dexRouter = IDexRouter(_dexRouter);
// create pair
lpPair = IDexFactory(dexRouter.factory()).createPair(
address(this),
dexRouter.WETH()
);
_excludeFromMaxTransaction(address(lpPair), true);
_setAutomatedMarketMakerPair(address(lpPair), true);
uint256 totalSupply = 500 * 1e6 * 1e18; // 500 million
maxBuyAmount = (totalSupply * 10) / 100; // 10%
maxSellAmount = (totalSupply * 10) / 100; // 10%
maxWallet = (totalSupply * 10) / 100; // 10%
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05 %
buyDevFee = 2;
buyLiquidityFee = 1;
buyMarketingfee = 2;
buyTotalFees = buyDevFee + buyLiquidityFee + buyMarketingfee;
sellDevFee = 3;
sellLiquidityFee = 1;
sellMarketingfee = 3;
sellTotalFees = sellDevFee + sellLiquidityFee + sellMarketingfee;
devAddress = address(msg.sender);
marketingAddress = address(0x92e394743b6d710ec011Ab85A36C01E9a08543c7);
reservedAddress = address(0x13cB8918f77c0D2b7C8FfC7283A6eBF7f605019d);
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
_excludeFromMaxTransaction(address(devAddress), true);
_excludeFromMaxTransaction(address(marketingAddress), true);
_excludeFromMaxTransaction(address(reservedAddress), true);
_excludeFromMaxTransaction(address(dexRouter), true);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(address(devAddress), true);
excludeFromFees(address(marketingAddress), true);
excludeFromFees(address(reservedAddress), true);
excludeFromFees(address(dexRouter), true);
_createInitialSupply(newOwner, totalSupply);
transferOwnership(newOwner);
}
receive() external payable {}
function enableTrading(uint256 blocksForPenalty) external onlyOwner {
require(!tradingActive, "Cannot reenable trading");
require(
blocksForPenalty <= 10,
"Cannot make penalty blocks more than 10"
);
tradingActive = true;
swapEnabled = true;
tradingActiveBlock = block.number;
antiBotBlock = tradingActiveBlock + blocksForPenalty;
emit EnabledTrading();
}
function bots() external view returns (address[] memory) {
return identifiedBots;
}
function identifySniper(address wallet) external onlyOwner {
require(
markBotsEnabled,
"Mark bot functionality has been disabled forever!"
);
require(!botsBuy[wallet], "Wallet is already flagged.");
botsBuy[wallet] = true;
}
function removeSniper(address wallet) external onlyOwner {
require(botsBuy[wallet], "Wallet is already not flagged.");
botsBuy[wallet] = false;
}
function emergencySetRouter(address router, bool _swapEnabled) external onlyOwner {
require(!tradingActive, "Cannot set after trading is functional");
dexRouter = IDexRouter(router);
swapEnabled = _swapEnabled;
}
// disable Transfer delay - cannot be reenabled
function disableTransferDelay() external onlyOwner {
transferDelayEnabled = false;
}
function setTaxFree(bool set) external onlyOwner {
taxFree = set;
}
function setMaxBuyAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set max buy amount lower than 0.5%"
);
require(
newNum <= ((totalSupply() * 10) / 100) / 1e18,
"Cannot set max buy amount higher than 10%"
);
maxBuyAmount = newNum * (10**18);
emit UpdatedMaxBuyAmount(maxBuyAmount);
}
function setMaxSellAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set max sell amount lower than 0.5%"
);
require(
newNum <= ((totalSupply() * 10) / 100) / 1e18,
"Cannot set max sell amount higher than 10%"
);
maxSellAmount = newNum * (10**18);
emit UpdatedMaxSellAmount(maxSellAmount);
}
function setMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set max wallet amount lower than 0.5%"
);
require(
newNum <= ((totalSupply() * 10) / 100) / 1e18,
"Cannot set max wallet amount higher than 10%"
);
maxWallet = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWallet);
}
// change the minimum amount of tokens to sell from fees
function setSwapTokensAtAmount(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 excludeFromMaxTransaction(address updAds, bool isEx)
external
onlyOwner
{
if (!isEx) {
require(
updAds != lpPair,
"Cannot remove uniswap pair from max txn"
);
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function setAutomatedMarketMakerPair(address pair, bool value)
external
onlyOwner
{
require(
pair != lpPair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_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 setBuyFees(
uint256 _operationsFee,
uint256 _liquidityFee,
uint256 _marketingfee
) external onlyOwner {
buyDevFee = _operationsFee;
buyLiquidityFee = _liquidityFee;
buyMarketingfee = _marketingfee;
buyTotalFees = buyDevFee + buyLiquidityFee + buyMarketingfee;
require(buyTotalFees <= 20, "Must keep fees at 20% or less");
}
function setSellFees(
uint256 _operationsFee,
uint256 _liquidityFee,
uint256 _marketingfee
) external onlyOwner {
sellDevFee = _operationsFee;
sellLiquidityFee = _liquidityFee;
sellMarketingfee = _marketingfee;
sellTotalFees = sellDevFee + sellLiquidityFee + sellMarketingfee;
require(sellTotalFees <= 30, "Must keep fees at 30% 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 (!antiBot() && tradingActive) {
require(
!botsBuy[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(0xdead) &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
if (transferDelayEnabled) {
if (to != address(dexRouter) && to != address(lpPair)) {
require(
_holderLastTransferTimestamp[tx.origin] <
block.number - 2 &&
_holderLastTransferTimestamp[to] <
block.number - 2,
"_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 <= maxBuyAmount,
"Buy transfer amount exceeds the max buy."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max Wallet Exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxSellAmount,
"Sell transfer amount exceeds the max sell."
);
} else if (!_isExcludedMaxTransactionAmount[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max Wallet Exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap && swapEnabled && !swapping && automatedMarketMakerPairs[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 (
(antiBot()) &&
automatedMarketMakerPairs[from] &&
!automatedMarketMakerPairs[to] &&
!_isExcludedFromFees[to] &&
buyTotalFees > 0
) {
if (!botsBuy[to]) {
botsBuy[to] = true;
botsIdentified += 1;
identifiedBots.push(to);
emit BotBlocked(to);
}
fees = (amount * 80) / 100;
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForDev += (fees * buyDevFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingfee) / buyTotalFees;
}
// on sell
else if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = (amount * sellTotalFees) / 100;
tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
tokensForDev +=
(fees * sellDevFee) /
sellTotalFees;
tokensForMarketing += (fees * sellMarketingfee) / sellTotalFees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = (amount * buyTotalFees) / 100;
tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
tokensForDev += (fees * buyDevFee) / buyTotalFees;
tokensForMarketing += (fees * buyMarketingfee) / buyTotalFees;
}
if(!taxFree) {
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
}
super._transfer(from, to, amount);
}
function antiBot() public view returns (bool) {
return block.number < antiBotBlock;
}
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
reservedAddress,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForDev +
tokensForMarketing;
uint256 trueTokensToSwap = contractBalance < totalTokensToSwap ? contractBalance : totalTokensToSwap;
if (trueTokensToSwap == 0) {
return;
}
if (trueTokensToSwap > swapTokensAtAmount * 30) {
trueTokensToSwap = swapTokensAtAmount * 30;
}
bool success;
// Halve the amount of liquidity tokens
uint256 liquidityTokens = (trueTokensToSwap * tokensForLiquidity) /
totalTokensToSwap /
2;
swapTokensForEth(trueTokensToSwap - liquidityTokens);
uint256 ethBalance = address(this).balance;
uint256 ethForLiquidity = ethBalance;
uint256 ethForDev = (ethBalance * tokensForDev) /
(totalTokensToSwap - (tokensForLiquidity / 2));
uint256 ethForMarketing = (ethBalance * tokensForMarketing) /
(totalTokensToSwap - (tokensForLiquidity / 2));
ethForLiquidity -= ethForDev + ethForMarketing;
tokensForLiquidity = 0;
tokensForDev = 0;
tokensForMarketing = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success, ) = address(marketingAddress).call{value: ethForMarketing}("");
(success, ) = address(devAddress).call{
value: address(this).balance
}("");
}
function withdrawForeignToken(address _token, address _to)
external
onlyOwner
returns (bool _sent)
{
require(_token != address(0), "_token address cannot be 0");
require(
_token != address(this) || !tradingActive,
"Can't withdraw native tokens while trading is active"
);
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
// withdraw ETH if stuck or someone sends to the address
function withdrawStuckETH() external onlyOwner {
bool success;
(success, ) = address(msg.sender).call{value: address(this).balance}(
""
);
}
function setDevAddress(address _devAddress)
external
onlyOwner
{
require(
_devAddress != address(0),
"_devAddress address cannot be 0"
);
devAddress = payable(_devAddress);
emit UpdatedDevAddress(_devAddress);
}
function setMarketingAddress(address _marketingAddress) external onlyOwner {
require(
_marketingAddress != address(0),
"_marketingAddress address cannot be 0"
);
marketingAddress = payable(_marketingAddress);
emit UpdatedMarketingAddress(_marketingAddress);
}
function setReservedAddress(address _reservedAddress) external onlyOwner {
require(
_reservedAddress != address(0),
"_reservedAddress address cannot be 0"
);
reservedAddress = payable(_reservedAddress);
emit UpdatedReservedAddress(_reservedAddress);
}
// 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);
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
}
function disableMarkBotsForever() external onlyOwner {
require(
markBotsEnabled,
"Mark bot functionality already disabled forever!!"
);
markBotsEnabled = false;
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
antiBot 0x7dfcbe34 → bool
antiBotBlock 0x6098fed1 → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
bots 0xdcf7952b → address[]
botsBuy 0xc1eac476 → bool
botsIdentified 0xf20c9826 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingfee 0x4853e7d9 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
devAddress 0x3ad10ef6 → address
dexRouter 0x0758d924 → address
identifiedBots 0x131941cf → address
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
markBotsEnabled 0x01e0beaf → bool
marketingAddress 0xa5ece941 → address
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reservedAddress 0x666f6843 → address
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingfee 0x48c492d6 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
transferDelayEnabled 0xc876d0b9 → bool
Write Contract 30 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableMarkBotsForever 0x2dd9a823
No parameters
disableTransferDelay 0xe884f260
No parameters
emergencySetRouter 0x599d642e
address router
bool _swapEnabled
enableTrading 0x82aa7c68
uint256 blocksForPenalty
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
forceSwapBack 0x51f205e4
No parameters
identifySniper 0x5e6909ab
address wallet
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
removeSniper 0x33251a0b
address wallet
renounceOwnership 0x7e926b4b
bool confirmRenounce
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setBuyFees 0x0d075d9c
uint256 _operationsFee
uint256 _liquidityFee
uint256 _marketingfee
setDevAddress 0xd0d41fe1
address _devAddress
setMarketingAddress 0x906e9dd0
address _marketingAddress
setMaxBuyAmount 0xf34eb0b8
uint256 newNum
setMaxSellAmount 0xe99c9d09
uint256 newNum
setMaxWalletAmount 0x27a14fc2
uint256 newNum
setReservedAddress 0x632d7507
address _reservedAddress
setSellFees 0x0f683e90
uint256 _operationsFee
uint256 _liquidityFee
uint256 _marketingfee
setSwapTokensAtAmount 0xafa4f3b2
uint256 newAmount
setTaxFree 0x347daf66
bool set
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawForeignToken 0x8ea46aa2
address _token
address _to
returns: bool
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address