Address Contract Partially Verified
Address
0x8d4d1BAcA960aA9EE2329eCE1e61298ffF6f3d18
Balance
0 ETH
Nonce
1
Code Size
11661 bytes
Creator
0x92b6e98E...C499 at tx 0x7ccf3aa5...8c2f2b
Indexed Transactions
0
Contract Bytecode
11661 bytes
0x6080604052600436106103b15760003560e01c80638da5cb5b116101e7578063c17b5b8c1161010d578063e2f45605116100a0578063f63743421161006f578063f637434214610aed578063f8b45b0514610b03578063fe575a8714610b19578063fe72b27a14610b4957600080fd5b8063e2f4560514610a81578063f11a24d314610a97578063f2fde38b14610aad578063f421764814610acd57600080fd5b8063c9567bf9116100dc578063c9567bf9146109f0578063d257b34f14610a05578063d85ba06314610a25578063dd62ed3e14610a3b57600080fd5b8063c17b5b8c14610980578063c876d0b9146109a0578063c8c8ebe4146109ba578063c9413b26146109d057600080fd5b80639fccce3211610185578063a9059cbb11610154578063a9059cbb146108f1578063b62496f514610911578063bbc0c74214610941578063c02466681461096057600080fd5b80639fccce321461088f578063a0d82dc5146108a5578063a457c2d7146108bb578063a4c82a00146108db57600080fd5b8063924de9b7116101c1578063924de9b71461082e57806395d89b411461084e5780639c3b4fdc146108635780639ec22c0e1461087957600080fd5b80638da5cb5b146107da5780638ea5220f146107f8578063921369131461081857600080fd5b80632e8de6a0116102d75780636ddd17131161026a5780637571336a116102395780637571336a1461076457806375f0a874146107845780637bce5a04146107a45780638095d564146107ba57600080fd5b80636ddd1713146106c15780636f9170f6146106e157806370a0823114610719578063715018a61461074f57600080fd5b806349bd5a5e116102a657806349bd5a5e146106245780634a62bb65146106585780634fbee193146106725780636a486a8e146106ab57600080fd5b80632e8de6a0146105b35780632f18dd91146105d3578063313ce567146105e8578063395093511461060457600080fd5b8063184c16c51161034f57806323b872dd1161031e57806323b872dd1461054d57806327c8f8351461056d5780632c3e486c146105835780632e82f1a01461059957600080fd5b8063184c16c5146104f5578063199ffc721461050b5780631a8145bb146105215780631f3fed8f1461053757600080fd5b806310d5de531161038b57806310d5de531461043a57806311a582c31461046a5780631694505e1461048a57806318160ddd146104d657600080fd5b806306fdde03146103bd57806308a925ce146103e8578063095ea7b31461040a57600080fd5b366103b857005b600080fd5b3480156103c957600080fd5b506103d2610b69565b6040516103df919061279e565b60405180910390f35b3480156103f457600080fd5b5061040861040336600461281f565b610bfb565b005b34801561041657600080fd5b5061042a610425366004612854565b610caf565b60405190151581526020016103df565b34801561044657600080fd5b5061042a610455366004612880565b60226020526000908152604090205460ff1681565b34801561047657600080fd5b5061040861048536600461289d565b610cc6565b34801561049657600080fd5b506104be7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b0390911681526020016103df565b3480156104e257600080fd5b506002545b6040519081526020016103df565b34801561050157600080fd5b506104e7600f5481565b34801561051757600080fd5b506104e7600b5481565b34801561052d57600080fd5b506104e7601e5481565b34801561054357600080fd5b506104e7601d5481565b34801561055957600080fd5b5061042a6105683660046128bf565b610e23565b34801561057957600080fd5b506104be61dead81565b34801561058f57600080fd5b506104e7600d5481565b3480156105a557600080fd5b50600c5461042a9060ff1681565b3480156105bf57600080fd5b506104086105ce366004612880565b610e8c565b3480156105df57600080fd5b5061042a610ed8565b3480156105f457600080fd5b50604051601281526020016103df565b34801561061057600080fd5b5061042a61061f366004612854565b610f21565b34801561063057600080fd5b506104be7f000000000000000000000000a0bf3841d3cb85aa68a5462333debc149e000c2381565b34801561066457600080fd5b5060115461042a9060ff1681565b34801561067e57600080fd5b5061042a61068d366004612880565b6001600160a01b031660009081526021602052604090205460ff1690565b3480156106b757600080fd5b506104e760195481565b3480156106cd57600080fd5b5060115461042a9062010000900460ff1681565b3480156106ed57600080fd5b5061042a6106fc366004612880565b6001600160a01b0316600090815260208052604090205460ff1690565b34801561072557600080fd5b506104e7610734366004612880565b6001600160a01b031660009081526020819052604090205490565b34801561075b57600080fd5b50610408610f57565b34801561077057600080fd5b5061040861077f36600461281f565b610fcb565b34801561079057600080fd5b506006546104be906001600160a01b031681565b3480156107b057600080fd5b506104e760165481565b3480156107c657600080fd5b506104086107d5366004612900565b611020565b3480156107e657600080fd5b506005546001600160a01b03166104be565b34801561080457600080fd5b506007546104be906001600160a01b031681565b34801561082457600080fd5b506104e7601a5481565b34801561083a57600080fd5b5061040861084936600461292c565b6110c8565b34801561085a57600080fd5b506103d261110e565b34801561086f57600080fd5b506104e760185481565b34801561088557600080fd5b506104e760105481565b34801561089b57600080fd5b506104e7601f5481565b3480156108b157600080fd5b506104e7601c5481565b3480156108c757600080fd5b5061042a6108d6366004612854565b61111d565b3480156108e757600080fd5b506104e7600e5481565b3480156108fd57600080fd5b5061042a61090c366004612854565b61116c565b34801561091d57600080fd5b5061042a61092c366004612880565b60236020526000908152604090205460ff1681565b34801561094d57600080fd5b5060115461042a90610100900460ff1681565b34801561096c57600080fd5b5061040861097b36600461281f565b611179565b34801561098c57600080fd5b5061040861099b366004612900565b6111ce565b3480156109ac57600080fd5b5060145461042a9060ff1681565b3480156109c657600080fd5b506104e760085481565b3480156109dc57600080fd5b506104086109eb366004612880565b611271565b3480156109fc57600080fd5b506104086112bd565b348015610a1157600080fd5b5061042a610a20366004612947565b6112fe565b348015610a3157600080fd5b506104e760155481565b348015610a4757600080fd5b506104e7610a56366004612960565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b348015610a8d57600080fd5b506104e760095481565b348015610aa357600080fd5b506104e760175481565b348015610ab957600080fd5b50610408610ac8366004612880565b6113c3565b348015610ad957600080fd5b50610408610ae83660046129af565b6114ae565b348015610af957600080fd5b506104e7601b5481565b348015610b0f57600080fd5b506104e7600a5481565b348015610b2557600080fd5b5061042a610b34366004612880565b60136020526000908152604090205460ff1681565b348015610b5557600080fd5b5061042a610b64366004612947565b611544565b606060038054610b7890612a74565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba490612a74565b8015610bf15780601f10610bc657610100808354040283529160200191610bf1565b820191906000526020600020905b815481529060010190602001808311610bd457829003601f168201915b5050505050905090565b6005546001600160a01b03163314610c2e5760405162461bcd60e51b8152600401610c2590612aae565b60405180910390fd5b6001600160a01b038216610c845760405162461bcd60e51b815260206004820152601760248201527f416464726573732073686f756c64206e6f7420626520300000000000000000006044820152606401610c25565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b6000610cbc338484611796565b5060015b92915050565b6005546001600160a01b03163314610cf05760405162461bcd60e51b8152600401610c2590612aae565b6001821015610d575760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526c6c6f776572207468616e20312560981b6064820152608401610c25565b670de0b6b3a7640000606483610d6c60025490565b610d769190612af9565b610d809190612b10565b610d8a9190612b10565b6008556001811015610de95760405162461bcd60e51b815260206004820152602260248201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015261312560f01b6064820152608401610c25565b670de0b6b3a7640000606482610dfe60025490565b610e089190612af9565b610e129190612b10565b610e1c9190612b10565b600a555050565b6000610e308484846118bb565b610e828433610e7d85604051806060016040528060288152602001612d0b602891396001600160a01b038a166000908152600160209081526040808320338452909152902054919061215e565b611796565b5060019392505050565b6005546001600160a01b03163314610eb65760405162461bcd60e51b8152600401610c2590612aae565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546000906001600160a01b03163314610f055760405162461bcd60e51b8152600401610c2590612aae565b506011805460ff19908116909155601480549091169055600190565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610cbc918590610e7d9086612198565b6005546001600160a01b03163314610f815760405162461bcd60e51b8152600401610c2590612aae565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610ff55760405162461bcd60e51b8152600401610c2590612aae565b6001600160a01b03919091166000908152602260205260409020805460ff1916911515919091179055565b6005546001600160a01b0316331461104a5760405162461bcd60e51b8152600401610c2590612aae565b601683905560178290556018819055806110648385612b32565b61106e9190612b32565b6015819055602810156110c35760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420343025206f72206c6573730000006044820152606401610c25565b505050565b6005546001600160a01b031633146110f25760405162461bcd60e51b8152600401610c2590612aae565b60118054911515620100000262ff000019909216919091179055565b606060048054610b7890612a74565b6000610cbc3384610e7d85604051806060016040528060258152602001612d33602591393360009081526001602090815260408083206001600160a01b038d168452909152902054919061215e565b6000610cbc3384846118bb565b6005546001600160a01b031633146111a35760405162461bcd60e51b8152600401610c2590612aae565b6001600160a01b03919091166000908152602160205260409020805460ff1916911515919091179055565b6005546001600160a01b031633146111f85760405162461bcd60e51b8152600401610c2590612aae565b601a839055601b829055601c819055806112128385612b32565b61121c9190612b32565b6019819055606310156110c35760405162461bcd60e51b815260206004820152601d60248201527f4d757374206b656570206665657320617420393925206f72206c6573730000006044820152606401610c25565b6005546001600160a01b0316331461129b5760405162461bcd60e51b8152600401610c2590612aae565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146112e75760405162461bcd60e51b8152600401610c2590612aae565b6011805462ffff0019166201010017905542600e55565b6005546000906001600160a01b0316331461132b5760405162461bcd60e51b8152600401610c2590612aae565b60018211156113975760405162461bcd60e51b815260206004820152603260248201527f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160448201527137101892903a37ba30b61039bab838363c9760711b6064820152608401610c25565b6064826113a360025490565b6113ad9190612af9565b6113b79190612b10565b6009555060015b919050565b6005546001600160a01b031633146113ed5760405162461bcd60e51b8152600401610c2590612aae565b6001600160a01b0381166114525760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c25565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146114d85760405162461bcd60e51b8152600401610c2590612aae565b60005b8151811015611540576001602060008484815181106114fc576114fc612b45565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061153881612b5b565b9150506114db565b5050565b6005546000906001600160a01b031633146115715760405162461bcd60e51b8152600401610c2590612aae565b600f546010546115819190612b32565b42116115cf5760405162461bcd60e51b815260206004820181905260248201527f4d757374207761697420666f7220636f6f6c646f776e20746f2066696e6973686044820152606401610c25565b6103e88211156116345760405162461bcd60e51b815260206004820152602a60248201527f4d6179206e6f74206e756b65206d6f7265207468616e20313025206f6620746f60448201526906b656e7320696e204c560b41b6064820152608401610c25565b426010556040516370a0823160e01b81526001600160a01b037f000000000000000000000000a0bf3841d3cb85aa68a5462333debc149e000c2316600482015260009030906370a0823190602401602060405180830381865afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c39190612b74565b905060006127106116d48584612af9565b6116de9190612b10565b90508015611713576117137f000000000000000000000000a0bf3841d3cb85aa68a5462333debc149e000c2361dead836121fe565b60007f000000000000000000000000a0bf3841d3cb85aa68a5462333debc149e000c239050806001600160a01b031663fff6cae96040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561177357600080fd5b505af1158015611787573d6000803e3d6000fd5b50600198975050505050505050565b6001600160a01b0383166117f85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610c25565b6001600160a01b0382166118595760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610c25565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166118e15760405162461bcd60e51b8152600401610c2590612b8d565b6001600160a01b0382166119075760405162461bcd60e51b8152600401610c2590612bd2565b6001600160a01b03831660009081526013602052604090205460ff1615801561194957506001600160a01b03821660009081526013602052604090205460ff16155b6119835760405162461bcd60e51b815260206004820152600b60248201526a109b1858dadb1a5cdd195960aa1b6044820152606401610c25565b80600003611997576110c3838360006121fe565b60115460ff1615611e2f576005546001600160a01b038481169116148015906119ce57506005546001600160a01b03838116911614155b80156119e257506001600160a01b03821615155b80156119f957506001600160a01b03821661dead14155b8015611a0f5750600554600160a01b900460ff16155b15611e2f57601154610100900460ff16611a82576001600160a01b038316600090815260208052604090205460ff1680611a6057506001600160a01b038216600090815260208052604090205460ff165b80611a79575033600090815260208052604090205460ff165b611a8257600080fd5b60145460ff1615611bc9576005546001600160a01b03838116911614801590611add57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0316826001600160a01b031614155b8015611b1b57507f000000000000000000000000a0bf3841d3cb85aa68a5462333debc149e000c236001600160a01b0316826001600160a01b031614155b15611bc957326000908152601260205260409020544311611bb65760405162461bcd60e51b815260206004820152604960248201527f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60448201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b6064820152681030b63637bbb2b21760b91b608482015260a401610c25565b3260009081526012602052604090204390555b6001600160a01b03831660009081526023602052604090205460ff168015611c0a57506001600160a01b03821660009081526022602052604090205460ff16155b15611cee57600854811115611c7f5760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610c25565b600a546001600160a01b038316600090815260208190526040902054611ca59083612b32565b1115611ce95760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610c25565b611e2f565b6001600160a01b03821660009081526023602052604090205460ff168015611d2f57506001600160a01b03831660009081526022602052604090205460ff16155b15611da557600854811115611ce95760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610c25565b6001600160a01b03821660009081526022602052604090205460ff16611e2f57600a546001600160a01b038316600090815260208190526040902054611deb9083612b32565b1115611e2f5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610c25565b3060009081526020819052604090205460095481108015908190611e5b575060115462010000900460ff165b8015611e715750600554600160a01b900460ff16155b8015611e9657506001600160a01b03851660009081526023602052604090205460ff16155b8015611ebb57506001600160a01b03851660009081526021602052604090205460ff16155b8015611ee057506001600160a01b03841660009081526021602052604090205460ff16155b15611f0e576005805460ff60a01b1916600160a01b179055611f00612307565b6005805460ff60a01b191690555b6005546001600160a01b03861660009081526021602052604090205460ff600160a01b909204821615911680611f5c57506001600160a01b03851660009081526021602052604090205460ff165b15611f65575060005b6000811561214a576001600160a01b03861660009081526023602052604090205460ff168015611f9757506000601954115b1561204f57606460195486611fac9190612af9565b611fb69190612b10565b9050601954601b5482611fc99190612af9565b611fd39190612b10565b601e6000828254611fe49190612b32565b9091555050601954601c54611ff99083612af9565b6120039190612b10565b601f60008282546120149190612b32565b9091555050601954601a546120299083612af9565b6120339190612b10565b601d60008282546120449190612b32565b9091555061212c9050565b6001600160a01b03871660009081526023602052604090205460ff16801561207957506000601554115b1561212c5760646015548661208e9190612af9565b6120989190612b10565b9050601554601754826120ab9190612af9565b6120b59190612b10565b601e60008282546120c69190612b32565b90915550506015546018546120db9083612af9565b6120e59190612b10565b601f60008282546120f69190612b32565b909155505060155460165461210b9083612af9565b6121159190612b10565b601d60008282546121269190612b32565b90915550505b801561213d5761213d8730836121fe565b6121478186612c15565b94505b6121558787876121fe565b50505050505050565b600081848411156121825760405162461bcd60e51b8152600401610c25919061279e565b50600061218f8486612c15565b95945050505050565b6000806121a58385612b32565b9050838110156121f75760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610c25565b9392505050565b6001600160a01b0383166122245760405162461bcd60e51b8152600401610c2590612b8d565b6001600160a01b03821661224a5760405162461bcd60e51b8152600401610c2590612bd2565b61228781604051806060016040528060268152602001612ce5602691396001600160a01b038616600090815260208190526040902054919061215e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546122b69082612198565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016118ae565b3060009081526020819052604081205490506000601f54601d54601e5461232e9190612b32565b6123389190612b32565b90506000821580612347575081155b1561235157505050565b60095461235f906014612af9565b83111561237757600954612374906014612af9565b92505b6000600283601e548661238a9190612af9565b6123949190612b10565b61239e9190612b10565b905060006123ac8286612c15565b9050476123b8826124fd565b60006123c48247612c15565b9050600086601d54836123d79190612af9565b6123e19190612b10565b9050600087601f54846123f49190612af9565b6123fe9190612b10565b905060008161240d8486612c15565b6124179190612c15565b6000601e819055601d819055601f8190556007546040519293506001600160a01b031691849181818185875af1925050503d8060008114612474576040519150601f19603f3d011682016040523d82523d6000602084013e612479565b606091505b5090985050861580159061248d5750600081115b1561249c5761249c87826126bd565b6006546040516001600160a01b03909116904790600081818185875af1925050503d80600081146124e9576040519150601f19603f3d011682016040523d82523d6000602084013e6124ee565b606091505b50505050505050505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061253257612532612b45565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d49190612c28565b816001815181106125e7576125e7612b45565b60200260200101906001600160a01b031690816001600160a01b031681525050612632307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611796565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790612687908590600090869030904290600401612c45565b600060405180830381600087803b1580156126a157600080fd5b505af11580156126b5573d6000803e3d6000fd5b505050505050565b6126e8307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611796565b60405163f305d71960e01b815230600482015260248101839052600060448201819052606482015261dead60848201524260a48201527f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b03169063f305d71990839060c40160606040518083038185885af1158015612772573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906127979190612cb6565b5050505050565b600060208083528351808285015260005b818110156127cb578581018301518582016040015282016127af565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461280157600080fd5b50565b80356113be816127ec565b803580151581146113be57600080fd5b6000806040838503121561283257600080fd5b823561283d816127ec565b915061284b6020840161280f565b90509250929050565b6000806040838503121561286757600080fd5b8235612872816127ec565b946020939093013593505050565b60006020828403121561289257600080fd5b81356121f7816127ec565b600080604083850312156128b057600080fd5b50508035926020909101359150565b6000806000606084860312156128d457600080fd5b83356128df816127ec565b925060208401356128ef816127ec565b929592945050506040919091013590565b60008060006060848603121561291557600080fd5b505081359360208301359350604090920135919050565b60006020828403121561293e57600080fd5b6121f78261280f565b60006020828403121561295957600080fd5b5035919050565b6000806040838503121561297357600080fd5b823561297e816127ec565b9150602083013561298e816127ec565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156129c257600080fd5b823567ffffffffffffffff808211156129da57600080fd5b818501915085601f8301126129ee57600080fd5b813581811115612a0057612a00612999565b8060051b604051601f19603f83011681018181108582111715612a2557612a25612999565b604052918252848201925083810185019188831115612a4357600080fd5b938501935b82851015612a6857612a5985612804565b84529385019392850192612a48565b98975050505050505050565b600181811c90821680612a8857607f821691505b602082108103612aa857634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610cc057610cc0612ae3565b600082612b2d57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610cc057610cc0612ae3565b634e487b7160e01b600052603260045260246000fd5b600060018201612b6d57612b6d612ae3565b5060010190565b600060208284031215612b8657600080fd5b5051919050565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b81810381811115610cc057610cc0612ae3565b600060208284031215612c3a57600080fd5b81516121f7816127ec565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015612c955784516001600160a01b031683529383019391830191600101612c70565b50506001600160a01b03969096166060850152505050608001529392505050565b600080600060608486031215612ccb57600080fd5b835192506020840151915060408401519050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ec240ce1cc422acbdb98299f31415769023835eb83d640232b619221bb06d6b864736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: Yes (200 runs)
Poodle.sol 1096 lines
/*
$POODLE a special breed.
📣TG: https://t.me/PoodleEthPortal
🌐Website: https://poodleeth.com
🐦Twitter: https://x.com/poodleeth
*/
// SPDX-License-Identifier: MIT
pragma solidity = 0.8.19;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
interface IUniswapV2Pair {
event Sync(uint112 reserve0, uint112 reserve1);
function sync() external;
}
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
/**
* @dev Division of two int256 variables and fails on overflow.
*/
function div(int256 a, int256 b) internal pure returns (int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
/**
* @dev Subtracts two int256 variables and fails on overflow.
*/
function sub(int256 a, int256 b) internal pure returns (int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
/**
* @dev Adds two int256 variables and fails on overflow.
*/
function add(int256 a, int256 b) internal pure returns (int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
/**
* @dev Converts to absolute value, and fails on overflow.
*/
function abs(int256 a) internal pure returns (int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns (uint256) {
require(a >= 0);
return uint256(a);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns (int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract Poodle is ERC20, Ownable {
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public devWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
uint256 public percentForLPBurn = 25; // 25 = .25%
bool public lpBurnEnabled = false;
uint256 public lpBurnFrequency = 3600 seconds;
uint256 public lastLpBurnTime;
uint256 public manualBurnFrequency = 30 minutes;
uint256 public lastManualLpBurnTime;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
// Anti-bot and anti-whale mappings and variables
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
mapping (address => bool) public isBlacklisted;
bool public transferDelayEnabled = true;
uint256 public buyTotalFees;
uint256 public buyMarketingFee;
uint256 public buyLiquidityFee;
uint256 public buyDevFee;
uint256 public sellTotalFees;
uint256 public sellMarketingFee;
uint256 public sellLiquidityFee;
uint256 public sellDevFee;
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
mapping(address => bool) private whitelist;
// 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;
constructor() ERC20("Poodle", "POODLE") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 _buyMarketingFee = 35;
uint256 _buyLiquidityFee = 0;
uint256 _buyDevFee = 0;
uint256 _sellMarketingFee = 35;
uint256 _sellLiquidityFee = 0;
uint256 _sellDevFee = 0;
uint256 totalSupply = 1000000000 * 1e18;
maxTransactionAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn
maxWallet = totalSupply * 2 / 100; // 2% maxWallet
swapTokensAtAmount = totalSupply * 5 / 1000; // 0.5% swap wallet
buyMarketingFee = _buyMarketingFee;
buyLiquidityFee = _buyLiquidityFee;
buyDevFee = _buyDevFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
sellMarketingFee = _sellMarketingFee;
sellLiquidityFee = _sellLiquidityFee;
sellDevFee = _sellDevFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
marketingWallet = address(owner()); // set as marketing wallet
devWallet = address(owner()); // set as dev wallet
// exclude from paying fees or having max transaction amount
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
_mint(msg.sender, totalSupply);
}
receive() external payable {
}
function setWhitelist(address[] memory whitelist_) public onlyOwner {
for (uint256 i = 0; i < whitelist_.length; i++) {
whitelist[whitelist_[i]] = true;
}
}
function isWhiteListed(address account) public view returns (bool) {
return whitelist[account];
}
// once enabled, can never be turned off
function openTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
lastLpBurnTime = block.timestamp;
}
// remove limits after token is stable
function removealllimits() external onlyOwner returns (bool){
limitsInEffect = false;
transferDelayEnabled = false;
return true;
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
require(newAmount <= 1, "Swap amount cannot be higher than 1% total supply.");
swapTokensAtAmount = totalSupply() * newAmount / 100;
return true;
}
function updateMaxTxnAmount(uint256 txNum, uint256 walNum) external onlyOwner {
require(txNum >= 1, "Cannot set maxTransactionAmount lower than 1%");
maxTransactionAmount = (totalSupply() * txNum / 100)/1e18;
require(walNum >= 1, "Cannot set maxWallet lower than 1%");
maxWallet = (totalSupply() * walNum / 100)/1e18;
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function updateSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
function updateBuyFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLiquidityFee = _liquidityFee;
buyDevFee = _devFee;
buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee;
require(buyTotalFees <= 40, "Must keep fees at 40% or less");
}
function updateSellFees(uint256 _marketingFee, uint256 _liquidityFee, uint256 _devFee) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLiquidityFee = _liquidityFee;
sellDevFee = _devFee;
sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee;
require(sellTotalFees <= 99, "Must keep fees at 99% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
}
function updateMarketingWalletdetails(address newMarketingWallet) external onlyOwner {
marketingWallet = newMarketingWallet;
}
function updateDevWalletdetails(address newWallet) external onlyOwner {
devWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function manageall_bots(address _address, bool status) external onlyOwner {
require(_address != address(0),"Address should not be 0");
isBlacklisted[_address] = status;
}
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(!isBlacklisted[from] && !isBlacklisted[to],"Blacklisted");
if(amount == 0) {
super._transfer(from, to, 0);
return;
}
if(limitsInEffect){
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
){
if(!tradingActive){
require(whitelist[from] || whitelist[to] || whitelist[msg.sender]);
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (transferDelayEnabled){
if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled. Only one purchase per block allowed.");
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
}
else if(!_isExcludedMaxTransactionAmount[to]){
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
}
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 = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if(takeFee){
// on sell
if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
fees = amount * 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(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
deadAddress,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForDev;
bool success;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 20){
contractBalance = swapTokensAtAmount * 20;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
uint256 amountToSwapForETH = contractBalance - liquidityTokens;
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance - initialETHBalance;
uint256 ethForMarketing = ethBalance * tokensForMarketing/totalTokensToSwap;
uint256 ethForDev = ethBalance * tokensForDev/totalTokensToSwap;
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForDev = 0;
(success,) = address(devWallet).call{value: ethForDev}("");
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success,) = address(marketingWallet).call{value: address(this).balance}("");
}
function manualBurnLiquidityPairTokens(uint256 percent) external onlyOwner returns (bool){
require(block.timestamp > lastManualLpBurnTime + manualBurnFrequency , "Must wait for cooldown to finish");
require(percent <= 1000, "May not nuke more than 10% of tokens in LP");
lastManualLpBurnTime = block.timestamp;
// get balance of liquidity pair
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
// calculate amount to burn
uint256 amountToBurn = liquidityPairBalance * percent/10000;
// pull tokens from pancakePair liquidity and move to dead address permanently
if (amountToBurn > 0){
super._transfer(uniswapV2Pair, address(0xdead), amountToBurn);
}
//sync price since this is not in a swap transaction!
IUniswapV2Pair pair = IUniswapV2Pair(uniswapV2Pair);
pair.sync();
return true;
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isBlacklisted 0xfe575a87 → bool
isExcludedFromFees 0x4fbee193 → bool
isWhiteListed 0x6f9170f6 → bool
lastLpBurnTime 0xa4c82a00 → uint256
lastManualLpBurnTime 0x9ec22c0e → uint256
limitsInEffect 0x4a62bb65 → bool
lpBurnEnabled 0x2e82f1a0 → bool
lpBurnFrequency 0x2c3e486c → uint256
manualBurnFrequency 0x184c16c5 → uint256
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
percentForLPBurn 0x199ffc72 → uint256
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellMarketingFee 0x92136913 → 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
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 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
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manageall_bots 0x08a925ce
address _address
bool status
manualBurnLiquidityPairTokens 0xfe72b27a
uint256 percent
returns: bool
openTrading 0xc9567bf9
No parameters
removealllimits 0x2f18dd91
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setWhitelist 0xf4217648
address[] whitelist_
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
updateDevWalletdetails 0xc9413b26
address newWallet
updateMarketingWalletdetails 0x2e8de6a0
address newMarketingWallet
updateMaxTxnAmount 0x11a582c3
uint256 txNum
uint256 walNum
updateSellFees 0xc17b5b8c
uint256 _marketingFee
uint256 _liquidityFee
uint256 _devFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
Recent Transactions
No transactions found for this address