Address Contract Partially Verified
Address
0xA3C519683010D59fa54A4A6c4cac0F55cB20BB3F
Balance
0 ETH
Nonce
1
Code Size
20676 bytes
Creator
0x58835088...3Cf1 at tx 0x9483ba4a...0e263c
Indexed Transactions
0
Contract Bytecode
20676 bytes
0x60806040526004361061031d575f3560e01c80637a3841a3116101aa578063bc205ad3116100f6578063dd62ed3e11610094578063f8b45b051161006e578063f8b45b0514610ba2578063f9f92be414610bcc578063fde83a3414610bf4578063fe575a8714610c1e57610324565b8063dd62ed3e14610b14578063e2f4560514610b50578063f2fde38b14610b7a57610324565b8063c8c8ebe4116100d0578063c8c8ebe414610a5a578063d257b34f14610a84578063d729715f14610ac0578063d85ba06314610aea57610324565b8063bc205ad3146109e2578063c024666814610a0a578063c18bc19514610a3257610324565b80639a7a23d611610163578063a9059cbb1161013d578063a9059cbb14610918578063adee28ff14610954578063b62496f51461097c578063bbc0c742146109b857610324565b80639a7a23d61461088a5780639c2e4ac6146108b2578063a457c2d7146108dc57610324565b80637a3841a3146107ba5780637ca8448a146107d05780637cb332bb146107f85780638a8c523c146108205780638da5cb5b1461083657806395d89b411461086057610324565b806349bd5a5e116102695780636ddd171311610222578063751039fc116101fc578063751039fc146107165780637571336a1461074057806375e3661e14610768578063782c4e991461079057610324565b80636ddd17131461069a57806370a08231146106c4578063715018a61461070057610324565b806349bd5a5e1461058e5780634a62bb65146105b85780634fbee193146105e2578063599270441461061e57806366ca9b83146106485780636a486a8e1461067057610324565b806318160ddd116102d657806323b872dd116102b057806323b872dd146104c257806324b9f3c1146104fe578063313ce56714610528578063395093511461055257610324565b806318160ddd1461044657806319eab04214610470578063203e727e1461049a57610324565b806302dbd8f81461032857806306fdde0314610350578063095ea7b31461037a57806310d5de53146103b6578063156c2f35146103f25780631694505e1461041c57610324565b3661032457005b5f80fd5b348015610333575f80fd5b5061034e60048036038101906103499190613cf2565b610c5a565b005b34801561035b575f80fd5b50610364610cfe565b6040516103719190613dba565b60405180910390f35b348015610385575f80fd5b506103a0600480360381019061039b9190613e34565b610d8e565b6040516103ad9190613e8c565b60405180910390f35b3480156103c1575f80fd5b506103dc60048036038101906103d79190613ea5565b610dab565b6040516103e99190613e8c565b60405180910390f35b3480156103fd575f80fd5b50610406610dc8565b6040516104139190613edf565b60405180910390f35b348015610427575f80fd5b50610430610dce565b60405161043d9190613f53565b60405180910390f35b348015610451575f80fd5b5061045a610df2565b6040516104679190613edf565b60405180910390f35b34801561047b575f80fd5b50610484610dfb565b6040516104919190613edf565b60405180910390f35b3480156104a5575f80fd5b506104c060048036038101906104bb9190613f6c565b610e01565b005b3480156104cd575f80fd5b506104e860048036038101906104e39190613f97565b610f10565b6040516104f59190613e8c565b60405180910390f35b348015610509575f80fd5b50610512611002565b60405161051f9190613edf565b60405180910390f35b348015610533575f80fd5b5061053c611008565b6040516105499190614002565b60405180910390f35b34801561055d575f80fd5b5061057860048036038101906105739190613e34565b611010565b6040516105859190613e8c565b60405180910390f35b348015610599575f80fd5b506105a26110b7565b6040516105af919061402a565b60405180910390f35b3480156105c3575f80fd5b506105cc6110db565b6040516105d99190613e8c565b60405180910390f35b3480156105ed575f80fd5b5061060860048036038101906106039190613ea5565b6110ed565b6040516106159190613e8c565b60405180910390f35b348015610629575f80fd5b5061063261113f565b60405161063f919061402a565b60405180910390f35b348015610653575f80fd5b5061066e60048036038101906106699190613cf2565b611164565b005b34801561067b575f80fd5b50610684611208565b6040516106919190613edf565b60405180910390f35b3480156106a5575f80fd5b506106ae61120e565b6040516106bb9190613e8c565b60405180910390f35b3480156106cf575f80fd5b506106ea60048036038101906106e59190613ea5565b611221565b6040516106f79190613edf565b60405180910390f35b34801561070b575f80fd5b50610714611266565b005b348015610721575f80fd5b5061072a6112ed565b6040516107379190613e8c565b60405180910390f35b34801561074b575f80fd5b506107666004803603810190610761919061406d565b61138a565b005b348015610773575f80fd5b5061078e60048036038101906107899190613ea5565b61145e565b005b34801561079b575f80fd5b506107a4611531565b6040516107b1919061402a565b60405180910390f35b3480156107c5575f80fd5b506107ce611556565b005b3480156107db575f80fd5b506107f660048036038101906107f19190613ea5565b61170b565b005b348015610803575f80fd5b5061081e60048036038101906108199190613ea5565b6117fc565b005b34801561082b575f80fd5b50610834611936565b005b348015610841575f80fd5b5061084a6119ea565b604051610857919061402a565b60405180910390f35b34801561086b575f80fd5b50610874611a12565b6040516108819190613dba565b60405180910390f35b348015610895575f80fd5b506108b060048036038101906108ab919061406d565b611aa2565b005b3480156108bd575f80fd5b506108c6611bba565b6040516108d39190613edf565b60405180910390f35b3480156108e7575f80fd5b5061090260048036038101906108fd9190613e34565b611bc0565b60405161090f9190613e8c565b60405180910390f35b348015610923575f80fd5b5061093e60048036038101906109399190613e34565b611ca6565b60405161094b9190613e8c565b60405180910390f35b34801561095f575f80fd5b5061097a60048036038101906109759190613ea5565b611cc3565b005b348015610987575f80fd5b506109a2600480360381019061099d9190613ea5565b611dfd565b6040516109af9190613e8c565b60405180910390f35b3480156109c3575f80fd5b506109cc611e1a565b6040516109d99190613e8c565b60405180910390f35b3480156109ed575f80fd5b50610a086004803603810190610a0391906140ab565b611e2d565b005b348015610a15575f80fd5b50610a306004803603810190610a2b919061406d565b612013565b005b348015610a3d575f80fd5b50610a586004803603810190610a539190613f6c565b612135565b005b348015610a65575f80fd5b50610a6e612244565b604051610a7b9190613edf565b60405180910390f35b348015610a8f575f80fd5b50610aaa6004803603810190610aa59190613f6c565b61224a565b604051610ab79190613e8c565b60405180910390f35b348015610acb575f80fd5b50610ad461239e565b604051610ae19190613edf565b60405180910390f35b348015610af5575f80fd5b50610afe6123a4565b604051610b0b9190613edf565b60405180910390f35b348015610b1f575f80fd5b50610b3a6004803603810190610b3591906140ab565b6123aa565b604051610b479190613edf565b60405180910390f35b348015610b5b575f80fd5b50610b6461242c565b604051610b719190613edf565b60405180910390f35b348015610b85575f80fd5b50610ba06004803603810190610b9b9190613ea5565b612432565b005b348015610bad575f80fd5b50610bb6612528565b604051610bc39190613edf565b60405180910390f35b348015610bd7575f80fd5b50610bf26004803603810190610bed9190613ea5565b61252e565b005b348015610bff575f80fd5b50610c086126dd565b604051610c159190613edf565b60405180910390f35b348015610c29575f80fd5b50610c446004803603810190610c3f9190613ea5565b6126e3565b604051610c519190613e8c565b60405180910390f35b610c62612735565b73ffffffffffffffffffffffffffffffffffffffff16610c806119ea565b73ffffffffffffffffffffffffffffffffffffffff1614610cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccd90614133565b60405180910390fd5b8160118190555080601281905550601254601154610cf4919061417e565b6010819055505050565b606060038054610d0d906141de565b80601f0160208091040260200160405190810160405280929190818152602001828054610d39906141de565b8015610d845780601f10610d5b57610100808354040283529160200191610d84565b820191905f5260205f20905b815481529060010190602001808311610d6757829003601f168201915b5050505050905090565b5f610da1610d9a612735565b848461273c565b6001905092915050565b6016602052805f5260405f205f915054906101000a900460ff1681565b600e5481565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b60115481565b610e09612735565b73ffffffffffffffffffffffffffffffffffffffff16610e276119ea565b73ffffffffffffffffffffffffffffffffffffffff1614610e7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7490614133565b60405180910390fd5b670de0b6b3a76400006103e86005610e93610df2565b610e9d919061420e565b610ea7919061427c565b610eb1919061427c565b811015610ef3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eea9061431c565b60405180910390fd5b670de0b6b3a764000081610f07919061420e565b60088190555050565b5f610f1c8484846128ff565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610f63612735565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610fe2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd9906143aa565b60405180910390fd5b610ff685610fee612735565b85840361273c565b60019150509392505050565b60135481565b5f6012905090565b5f6110ad61101c612735565b848460015f611029612735565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546110a8919061417e565b61273c565b6001905092915050565b7f000000000000000000000000c3eedc4c69c6936a4a71fe67a23b8ea023c3b0e681565b600b5f9054906101000a900460ff1681565b5f60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61116c612735565b73ffffffffffffffffffffffffffffffffffffffff1661118a6119ea565b73ffffffffffffffffffffffffffffffffffffffff16146111e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d790614133565b60405180910390fd5b81600e8190555080600f81905550600f54600e546111fe919061417e565b600d819055505050565b60105481565b600b60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61126e612735565b73ffffffffffffffffffffffffffffffffffffffff1661128c6119ea565b73ffffffffffffffffffffffffffffffffffffffff16146112e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d990614133565b60405180910390fd5b6112eb5f61348f565b565b5f6112f6612735565b73ffffffffffffffffffffffffffffffffffffffff166113146119ea565b73ffffffffffffffffffffffffffffffffffffffff161461136a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136190614133565b60405180910390fd5b5f600b5f6101000a81548160ff0219169083151502179055506001905090565b611392612735565b73ffffffffffffffffffffffffffffffffffffffff166113b06119ea565b73ffffffffffffffffffffffffffffffffffffffff1614611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd90614133565b60405180910390fd5b8060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b611466612735565b73ffffffffffffffffffffffffffffffffffffffff166114846119ea565b73ffffffffffffffffffffffffffffffffffffffff16146114da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d190614133565b60405180910390fd5b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61155e612735565b73ffffffffffffffffffffffffffffffffffffffff1661157c6119ea565b73ffffffffffffffffffffffffffffffffffffffff16146115d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c990614133565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb333073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611628919061402a565b602060405180830381865afa158015611643573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061166791906143dc565b6040518363ffffffff1660e01b8152600401611684929190614407565b6020604051808303815f875af11580156116a0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116c49190614442565b503373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611708573d5f803e3d5ffd5b50565b611713612735565b73ffffffffffffffffffffffffffffffffffffffff166117316119ea565b73ffffffffffffffffffffffffffffffffffffffff1614611787576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177e90614133565b60405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff16476040516117ac9061449a565b5f6040518083038185875af1925050503d805f81146117e6576040519150601f19603f3d011682016040523d82523d5f602084013e6117eb565b606091505b50509050806117f8575f80fd5b5050565b611804612735565b73ffffffffffffffffffffffffffffffffffffffff166118226119ea565b73ffffffffffffffffffffffffffffffffffffffff1614611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f90614133565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fd9a2a08302ed3220f4e646ff99d6780d87e27baddf1af05679dc930ce811309560405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61193e612735565b73ffffffffffffffffffffffffffffffffffffffff1661195c6119ea565b73ffffffffffffffffffffffffffffffffffffffff16146119b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a990614133565b60405180910390fd5b6001600b60026101000a81548160ff0219169083151502179055506001600b60016101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611a21906141de565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4d906141de565b8015611a985780601f10611a6f57610100808354040283529160200191611a98565b820191905f5260205f20905b815481529060010190602001808311611a7b57829003601f168201915b5050505050905090565b611aaa612735565b73ffffffffffffffffffffffffffffffffffffffff16611ac86119ea565b73ffffffffffffffffffffffffffffffffffffffff1614611b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1590614133565b60405180910390fd5b7f000000000000000000000000c3eedc4c69c6936a4a71fe67a23b8ea023c3b0e673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba39061451e565b60405180910390fd5b611bb68282613552565b5050565b600f5481565b5f8060015f611bcd612735565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611c87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7e906145ac565b60405180910390fd5b611c9b611c92612735565b8585840361273c565b600191505092915050565b5f611cb9611cb2612735565b84846128ff565b6001905092915050565b611ccb612735565b73ffffffffffffffffffffffffffffffffffffffff16611ce96119ea565b73ffffffffffffffffffffffffffffffffffffffff1614611d3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3690614133565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fcb24b9cc1975a8c5afd1fcc8deca22156b8f357af3485db1f9382b3c584d671f60405160405180910390a38060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6017602052805f5260405f205f915054906101000a900460ff1681565b600b60019054906101000a900460ff1681565b611e35612735565b73ffffffffffffffffffffffffffffffffffffffff16611e536119ea565b73ffffffffffffffffffffffffffffffffffffffff1614611ea9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea090614133565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0e90614614565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611f51919061402a565b602060405180830381865afa158015611f6c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f9091906143dc565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401611fcd929190614407565b6020604051808303815f875af1158015611fe9573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061200d9190614442565b50505050565b61201b612735565b73ffffffffffffffffffffffffffffffffffffffff166120396119ea565b73ffffffffffffffffffffffffffffffffffffffff161461208f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208690614133565b60405180910390fd5b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516121299190613e8c565b60405180910390a25050565b61213d612735565b73ffffffffffffffffffffffffffffffffffffffff1661215b6119ea565b73ffffffffffffffffffffffffffffffffffffffff16146121b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a890614133565b60405180910390fd5b670de0b6b3a76400006103e8600a6121c7610df2565b6121d1919061420e565b6121db919061427c565b6121e5919061427c565b811015612227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221e906146a2565b60405180910390fd5b670de0b6b3a76400008161223b919061420e565b600a8190555050565b60085481565b5f612253612735565b73ffffffffffffffffffffffffffffffffffffffff166122716119ea565b73ffffffffffffffffffffffffffffffffffffffff16146122c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122be90614133565b60405180910390fd5b620186a060016122d5610df2565b6122df919061420e565b6122e9919061427c565b82101561232b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232290614730565b60405180910390fd5b6103e86005612338610df2565b612342919061420e565b61234c919061427c565b82111561238e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612385906147be565b60405180910390fd5b8160098190555060019050919050565b60125481565b600d5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60095481565b61243a612735565b73ffffffffffffffffffffffffffffffffffffffff166124586119ea565b73ffffffffffffffffffffffffffffffffffffffff16146124ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a590614133565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361251c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125139061484c565b60405180910390fd5b6125258161348f565b50565b600a5481565b612536612735565b73ffffffffffffffffffffffffffffffffffffffff166125546119ea565b73ffffffffffffffffffffffffffffffffffffffff16146125aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a190614133565b60405180910390fd5b7f000000000000000000000000c3eedc4c69c6936a4a71fe67a23b8ea023c3b0e673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156126465750737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b612685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267c906148da565b60405180910390fd5b6001600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60145481565b5f600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a190614968565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280f906149f6565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516128f29190613edf565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361296d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296490614a84565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036129db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d290614b12565b60405180910390fd5b600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5c90614b7a565b60405180910390fd5b600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612aef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae690614be2565b60405180910390fd5b5f8103612b0657612b0183835f6135f0565b61348a565b600b5f9054906101000a900460ff1615612fea57612b226119ea565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b905750612b606119ea565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612bc857505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612c02575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612c1b5750600560149054906101000a900460ff16155b15612fe957600b60019054906101000a900460ff16612d0f5760155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612ccf575060155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0590614c4a565b60405180910390fd5b5b60175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612dac575060165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612e5357600854811115612df6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ded90614cd8565b60405180910390fd5b600a54612e0283611221565b82612e0d919061417e565b1115612e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4590614d40565b60405180910390fd5b612fe8565b60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612ef0575060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612f3f57600854811115612f3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3190614dce565b60405180910390fd5b612fe7565b60165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612fe657600a54612f9983611221565b82612fa4919061417e565b1115612fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdc90614d40565b60405180910390fd5b5b5b5b5b5b5f612ff430611221565b90505f60095482101590508080156130185750600b60029054906101000a900460ff165b80156130315750600560149054906101000a900460ff16155b8015613084575060175f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156130d7575060155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561312a575060155f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561316d576001600560146101000a81548160ff021916908315150217905550613152613865565b5f600560146101000a81548160ff0219169083151502179055505b5f600560149054906101000a900460ff1615905060155f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061321c575060155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15613225575f90505b5f811561347a5760175f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561328357505f601054115b1561331c576132b16127106132a360105488613a3f90919063ffffffff16565b613a5490919063ffffffff16565b9050601054601254826132c4919061420e565b6132ce919061427c565b60145f8282546132de919061417e565b92505081905550601054601154826132f6919061420e565b613300919061427c565b60135f828254613310919061417e565b92505081905550613409565b60175f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561337357505f600d54115b15613408576133a1612710613393600d5488613a3f90919063ffffffff16565b613a5490919063ffffffff16565b9050600d54600f54826133b4919061420e565b6133be919061427c565b60145f8282546133ce919061417e565b92505081905550600d54600e54826133e6919061420e565b6133f0919061427c565b60135f828254613400919061417e565b925050819055505b5b5f81111561346b5761341c8730836135f0565b8673ffffffffffffffffffffffffffffffffffffffff167f9dc46f23cfb5ddcad0ae7ea2be38d47fec07bb9382ec7e564efc69e036dd66ce826040516134629190613edf565b60405180910390a25b80856134779190614dec565b94505b6134858787876135f0565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361365e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365590614a84565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036136cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136c390614b12565b60405180910390fd5b6136d7838383613a69565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561375a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161375190614e8f565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546137e8919061417e565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161384c9190613edf565b60405180910390a361385f848484613a6e565b50505050565b5f61386f30611221565b90505f601454601354613882919061417e565b90505f8083148061389257505f82145b1561389f57505050613a3d565b60146009546138ae919061420e565b8311156138c75760146009546138c4919061420e565b92505b5f4790506138d484613a73565b5f6138e88247613ca690919063ffffffff16565b90505f6139128561390460145485613a3f90919063ffffffff16565b613a5490919063ffffffff16565b90505f6013819055505f60148190555060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516139679061449a565b5f6040518083038185875af1925050503d805f81146139a1576040519150601f19603f3d011682016040523d82523d5f602084013e6139a6565b606091505b50508094505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516139f19061449a565b5f6040518083038185875af1925050503d805f8114613a2b576040519150601f19603f3d011682016040523d82523d5f602084013e613a30565b606091505b5050809450505050505050505b565b5f8183613a4c919061420e565b905092915050565b5f8183613a61919061427c565b905092915050565b505050565b505050565b5f600267ffffffffffffffff811115613a8f57613a8e614ead565b5b604051908082528060200260200182016040528015613abd5781602001602082028036833780820191505090505b50905030815f81518110613ad457613ad3614eda565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613b77573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613b9b9190614f1b565b81600181518110613baf57613bae614eda565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613c14307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461273c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401613c75959493929190615036565b5f604051808303815f87803b158015613c8c575f80fd5b505af1158015613c9e573d5f803e3d5ffd5b505050505050565b5f8183613cb39190614dec565b905092915050565b5f80fd5b5f819050919050565b613cd181613cbf565b8114613cdb575f80fd5b50565b5f81359050613cec81613cc8565b92915050565b5f8060408385031215613d0857613d07613cbb565b5b5f613d1585828601613cde565b9250506020613d2685828601613cde565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613d67578082015181840152602081019050613d4c565b5f8484015250505050565b5f601f19601f8301169050919050565b5f613d8c82613d30565b613d968185613d3a565b9350613da6818560208601613d4a565b613daf81613d72565b840191505092915050565b5f6020820190508181035f830152613dd28184613d82565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613e0382613dda565b9050919050565b613e1381613df9565b8114613e1d575f80fd5b50565b5f81359050613e2e81613e0a565b92915050565b5f8060408385031215613e4a57613e49613cbb565b5b5f613e5785828601613e20565b9250506020613e6885828601613cde565b9150509250929050565b5f8115159050919050565b613e8681613e72565b82525050565b5f602082019050613e9f5f830184613e7d565b92915050565b5f60208284031215613eba57613eb9613cbb565b5b5f613ec784828501613e20565b91505092915050565b613ed981613cbf565b82525050565b5f602082019050613ef25f830184613ed0565b92915050565b5f819050919050565b5f613f1b613f16613f1184613dda565b613ef8565b613dda565b9050919050565b5f613f2c82613f01565b9050919050565b5f613f3d82613f22565b9050919050565b613f4d81613f33565b82525050565b5f602082019050613f665f830184613f44565b92915050565b5f60208284031215613f8157613f80613cbb565b5b5f613f8e84828501613cde565b91505092915050565b5f805f60608486031215613fae57613fad613cbb565b5b5f613fbb86828701613e20565b9350506020613fcc86828701613e20565b9250506040613fdd86828701613cde565b9150509250925092565b5f60ff82169050919050565b613ffc81613fe7565b82525050565b5f6020820190506140155f830184613ff3565b92915050565b61402481613df9565b82525050565b5f60208201905061403d5f83018461401b565b92915050565b61404c81613e72565b8114614056575f80fd5b50565b5f8135905061406781614043565b92915050565b5f806040838503121561408357614082613cbb565b5b5f61409085828601613e20565b92505060206140a185828601614059565b9150509250929050565b5f80604083850312156140c1576140c0613cbb565b5b5f6140ce85828601613e20565b92505060206140df85828601613e20565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61411d602083613d3a565b9150614128826140e9565b602082019050919050565b5f6020820190508181035f83015261414a81614111565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61418882613cbf565b915061419383613cbf565b92508282019050808211156141ab576141aa614151565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806141f557607f821691505b602082108103614208576142076141b1565b5b50919050565b5f61421882613cbf565b915061422383613cbf565b925082820261423181613cbf565b9150828204841483151761424857614247614151565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61428682613cbf565b915061429183613cbf565b9250826142a1576142a061424f565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74205f8201527f6c6f776572207468616e20302e35250000000000000000000000000000000000602082015250565b5f614306602f83613d3a565b9150614311826142ac565b604082019050919050565b5f6020820190508181035f830152614333816142fa565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f614394602883613d3a565b915061439f8261433a565b604082019050919050565b5f6020820190508181035f8301526143c181614388565b9050919050565b5f815190506143d681613cc8565b92915050565b5f602082840312156143f1576143f0613cbb565b5b5f6143fe848285016143c8565b91505092915050565b5f60408201905061441a5f83018561401b565b6144276020830184613ed0565b9392505050565b5f8151905061443c81614043565b92915050565b5f6020828403121561445757614456613cbb565b5b5f6144648482850161442e565b91505092915050565b5f81905092915050565b50565b5f6144855f8361446d565b915061449082614477565b5f82019050919050565b5f6144a48261447a565b9150819050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f614508603983613d3a565b9150614513826144ae565b604082019050919050565b5f6020820190508181035f830152614535816144fc565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f614596602583613d3a565b91506145a18261453c565b604082019050919050565b5f6020820190508181035f8301526145c38161458a565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000005f82015250565b5f6145fe601a83613d3a565b9150614609826145ca565b602082019050919050565b5f6020820190508181035f83015261462b816145f2565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e205f8201527f312e302500000000000000000000000000000000000000000000000000000000602082015250565b5f61468c602483613d3a565b915061469782614632565b604082019050919050565b5f6020820190508181035f8301526146b981614680565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f61471a603583613d3a565b9150614725826146c0565b604082019050919050565b5f6020820190508181035f8301526147478161470e565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f6147a8603483613d3a565b91506147b38261474e565b604082019050919050565b5f6020820190508181035f8301526147d58161479c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f614836602683613d3a565b9150614841826147dc565b604082019050919050565b5f6020820190508181035f8301526148638161482a565b9050919050565b7f43616e6e6f7420626c61636b6c69737420746f6b656e277320763220726f75745f8201527f6572206f7220763220706f6f6c2e000000000000000000000000000000000000602082015250565b5f6148c4602e83613d3a565b91506148cf8261486a565b604082019050919050565b5f6020820190508181035f8301526148f1816148b8565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f614952602483613d3a565b915061495d826148f8565b604082019050919050565b5f6020820190508181035f83015261497f81614946565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6149e0602283613d3a565b91506149eb82614986565b604082019050919050565b5f6020820190508181035f830152614a0d816149d4565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f614a6e602583613d3a565b9150614a7982614a14565b604082019050919050565b5f6020820190508181035f830152614a9b81614a62565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f614afc602383613d3a565b9150614b0782614aa2565b604082019050919050565b5f6020820190508181035f830152614b2981614af0565b9050919050565b7f53656e64657220626c61636b6c697374656400000000000000000000000000005f82015250565b5f614b64601283613d3a565b9150614b6f82614b30565b602082019050919050565b5f6020820190508181035f830152614b9181614b58565b9050919050565b7f526563656976657220626c61636b6c69737465640000000000000000000000005f82015250565b5f614bcc601483613d3a565b9150614bd782614b98565b602082019050919050565b5f6020820190508181035f830152614bf981614bc0565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f614c34601683613d3a565b9150614c3f82614c00565b602082019050919050565b5f6020820190508181035f830152614c6181614c28565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f614cc2603583613d3a565b9150614ccd82614c68565b604082019050919050565b5f6020820190508181035f830152614cef81614cb6565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f614d2a601383613d3a565b9150614d3582614cf6565b602082019050919050565b5f6020820190508181035f830152614d5781614d1e565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f614db8603683613d3a565b9150614dc382614d5e565b604082019050919050565b5f6020820190508181035f830152614de581614dac565b9050919050565b5f614df682613cbf565b9150614e0183613cbf565b9250828203905081811115614e1957614e18614151565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614e79602683613d3a565b9150614e8482614e1f565b604082019050919050565b5f6020820190508181035f830152614ea681614e6d565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050614f1581613e0a565b92915050565b5f60208284031215614f3057614f2f613cbb565b5b5f614f3d84828501614f07565b91505092915050565b5f819050919050565b5f614f69614f64614f5f84614f46565b613ef8565b613cbf565b9050919050565b614f7981614f4f565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614fb181613df9565b82525050565b5f614fc28383614fa8565b60208301905092915050565b5f602082019050919050565b5f614fe482614f7f565b614fee8185614f89565b9350614ff983614f99565b805f5b838110156150295781516150108882614fb7565b975061501b83614fce565b925050600181019050614ffc565b5085935050505092915050565b5f60a0820190506150495f830188613ed0565b6150566020830187614f70565b81810360408301526150688186614fda565b9050615077606083018561401b565b6150846080830184613ed0565b969550505050505056fea2646970667358221220f5d517aa070f71781edb907225e102a679a12c196ef40fe16bcb01dc8a634f5764736f6c63430008140033
Verified Source Code Partial Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: No
BETIT.sol 1399 lines
/**
Telegram: https://t.me/betitportal
Website: https://betitapp.com/
X: https://x.com/teambetit
*/
pragma solidity 0.8.20;
pragma experimental ABIEncoderV2;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract 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() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual 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 {
_transferOwnership(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");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
/* pragma solidity ^0.8.0; */
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
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);
}
////// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)
/* pragma solidity ^0.8.0; */
/* import "../IERC20.sol"; */
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `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);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `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);
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);
_afterTokenTransfer(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 += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the 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) {
return a + b;
}
/**
* @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 a - b;
}
/**
* @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) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting 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 a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting 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) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* 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) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
////// src/IUniswapV2Pair.sol
/* pragma solidity 0.8.10; */
/* pragma experimental ABIEncoderV2; */
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function burn(address to)
external
returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
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 swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract BETIT is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public revShareWallet;
address public teamWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
uint256 public maxWallet;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
mapping(address => bool) blacklisted;
uint256 public buyTotalFees;
uint256 public buyRevShareFee;
uint256 public buyTeamFee;
uint256 public sellTotalFees;
uint256 public sellRevShareFee;
uint256 public sellTeamFee;
uint256 public tokensForRevShare;
uint256 public tokensForTeam;
/******************/
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
mapping(address => bool) public automatedMarketMakerPairs;
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event RevShareWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event TeamWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event FeesCollected(
address indexed feePayer,
uint256 feesReceived
);
constructor() ERC20("BetIT", "BETIT") {
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 totalSupply = 1_000_000 * 1e18;
maxTransactionAmount = 10_000 * 1e18; // 1%
maxWallet = 10_000 * 1e18; // 1%
swapTokensAtAmount = (totalSupply * 5) / 10000; // 0.05%
buyRevShareFee = 1750;
buyTeamFee = 750;
buyTotalFees = buyRevShareFee + buyTeamFee;
sellRevShareFee = 2800;
sellTeamFee = 1200;
sellTotalFees = sellRevShareFee + sellTeamFee;
revShareWallet = address(0x1DE46317cF8067Db5f69ed8726840101aEe89A78);
teamWallet = address(0xDF0409535a1166623c2Ee856A8307f867AbE0205);
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(msg.sender, totalSupply);
}
receive() external payable {}
function enableTrading() external onlyOwner {
swapEnabled = true;
tradingActive = true;
}
function updateSwapTokensAtAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 5) / 1000,
"Swap amount cannot be higher than 0.5% total supply."
);
swapTokensAtAmount = newAmount;
return true;
}
function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 5) / 1000) / 1e18,
"Cannot set maxTransactionAmount lower than 0.5%"
);
maxTransactionAmount = newNum * (10 ** 18);
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 10) / 1000) / 1e18,
"Cannot set maxWallet lower than 1.0%"
);
maxWallet = newNum * (10 ** 18);
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateBuyFees(
uint256 _revShareFee,
uint256 _teamFee
) external onlyOwner {
buyRevShareFee = _revShareFee;
buyTeamFee = _teamFee;
buyTotalFees = buyRevShareFee + buyTeamFee;
}
function updateSellFees(
uint256 _revShareFee,
uint256 _teamFee
) external onlyOwner {
sellRevShareFee = _revShareFee;
sellTeamFee = _teamFee;
sellTotalFees = sellRevShareFee + sellTeamFee;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value)
public
onlyOwner
{
require(
pair != uniswapV2Pair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function updateRevShareWallet(address newRevShareWallet) external onlyOwner {
emit RevShareWalletUpdated(newRevShareWallet, revShareWallet);
revShareWallet = newRevShareWallet;
}
function updateTeamWallet(address newWallet) external onlyOwner {
emit TeamWalletUpdated(newWallet, teamWallet);
teamWallet = newWallet;
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function isBlacklisted(address account) public view returns (bool) {
return blacklisted[account];
}
function removeLimits() external onlyOwner returns (bool) {
limitsInEffect = false;
return true;
}
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(!blacklisted[from], "Sender blacklisted");
require(!blacklisted[to], "Receiver 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(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
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 (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
fees = amount.mul(sellTotalFees).div(10000);
tokensForTeam += (fees * sellTeamFee) / sellTotalFees;
tokensForRevShare += (fees * sellRevShareFee) / sellTotalFees;
}
else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount.mul(buyTotalFees).div(10000);
tokensForTeam += (fees * buyTeamFee) / buyTotalFees;
tokensForRevShare += (fees * buyRevShareFee) / buyTotalFees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
emit FeesCollected(from, fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
owner(),
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForRevShare + tokensForTeam;
bool success;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 20) {
contractBalance = swapTokensAtAmount * 20;
}
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(contractBalance);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForTeam = ethBalance.mul(tokensForTeam).div(totalTokensToSwap);
tokensForRevShare = 0;
tokensForTeam = 0;
(success,) = address(teamWallet).call{value: ethForTeam}("");
(success,) = address(revShareWallet).call{value: address(this).balance}("");
}
function withdrawStuckBETIT() external onlyOwner {
IERC20(address(this)).transfer(msg.sender, IERC20(address(this)).balanceOf(address(this)));
payable(msg.sender).transfer(address(this).balance);
}
function withdrawStuckToken(address _token, address _to) external onlyOwner {
require(_token != address(0), "_token address cannot be 0");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
IERC20(_token).transfer(_to, _contractBalance);
}
function withdrawStuckEth(address toAddr) external onlyOwner {
(bool success,) = toAddr.call{
value: address(this).balance
} ("");
require(success);
}
function blacklist(address _addr) public onlyOwner {
require(
_addr != address(uniswapV2Pair) && _addr != address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D),
"Cannot blacklist token's v2 router or v2 pool."
);
blacklisted[_addr] = true;
}
function unblacklist(address _addr) public onlyOwner {
blacklisted[_addr] = false;
}
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyRevShareFee 0x156c2f35 → uint256
buyTeamFee 0x9c2e4ac6 → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
isBlacklisted 0xfe575a87 → bool
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
revShareWallet 0x782c4e99 → address
sellRevShareFee 0x19eab042 → uint256
sellTeamFee 0xd729715f → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamWallet 0x59927044 → address
tokensForRevShare 0x24b9f3c1 → uint256
tokensForTeam 0xfde83a34 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklist 0xf9f92be4
address _addr
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unblacklist 0x75e3661e
address _addr
updateBuyFees 0x66ca9b83
uint256 _revShareFee
uint256 _teamFee
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateRevShareWallet 0xadee28ff
address newRevShareWallet
updateSellFees 0x02dbd8f8
uint256 _revShareFee
uint256 _teamFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTeamWallet 0x7cb332bb
address newWallet
withdrawStuckBETIT 0x7a3841a3
No parameters
withdrawStuckEth 0x7ca8448a
address toAddr
withdrawStuckToken 0xbc205ad3
address _token
address _to
Recent Transactions
No transactions found for this address