Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xD716D7FF2436769F3e78c77735cfbF405736F9C0
Balance 0 ETH
Nonce 1
Code Size 19326 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19326 bytes
0x608060405260043610610280575f3560e01c80638da5cb5b1161014e578063c18bc195116100c0578063dd62ed3e11610079578063dd62ed3e146109a5578063e2f45605146109e1578063e884f26014610a0b578063eba4c33314610a35578063f2fde38b14610a5d578063f8b45b0514610a8557610287565b8063c18bc1951461089b578063c876d0b9146108c3578063c8c8ebe4146108ed578063d257b34f14610917578063d34628cc14610953578063d85ba0631461097b57610287565b8063a0d82dc511610112578063a0d82dc51461076b578063a457c2d714610795578063a9059cbb146107d1578063b62496f51461080d578063bbc0c74214610849578063c02466681461087357610287565b80638da5cb5b1461069b57806395d89b41146106c55780639a7a23d6146106ef5780639c3b4fdc146107175780639fccce321461074157610287565b806349bd5a5e116101f2578063715018a6116101ab578063715018a6146105cd57806371fc4688146105e3578063751039fc1461060b5780637571336a1461063557806382aa7c681461065d5780638a8c523c1461068557610287565b806349bd5a5e146104af5780634a62bb65146104d95780634fbee193146105035780636a486a8e1461053f5780636c3bbfd71461056957806370a082311461059157610287565b80631816467f116102445780631816467f14610381578063203e727e146103a957806323b872dd146103d1578063313ce5671461040d57806339509351146104375780633bbac5791461047357610287565b806306fdde031461028b578063095ea7b3146102b557806310d5de53146102f15780631694505e1461032d57806318160ddd1461035757610287565b3661028757005b5f80fd5b348015610296575f80fd5b5061029f610aaf565b6040516102ac919061372a565b60405180910390f35b3480156102c0575f80fd5b506102db60048036038101906102d691906137e8565b610b3f565b6040516102e89190613840565b60405180910390f35b3480156102fc575f80fd5b5061031760048036038101906103129190613859565b610b5c565b6040516103249190613840565b60405180910390f35b348015610338575f80fd5b50610341610b79565b60405161034e91906138df565b60405180910390f35b348015610362575f80fd5b5061036b610b9d565b6040516103789190613907565b60405180910390f35b34801561038c575f80fd5b506103a760048036038101906103a29190613859565b610ba6565b005b3480156103b4575f80fd5b506103cf60048036038101906103ca9190613920565b610ce0565b005b3480156103dc575f80fd5b506103f760048036038101906103f2919061394b565b610def565b6040516104049190613840565b60405180910390f35b348015610418575f80fd5b50610421610f09565b60405161042e91906139b6565b60405180910390f35b348015610442575f80fd5b5061045d600480360381019061045891906137e8565b610f11565b60405161046a9190613840565b60405180910390f35b34801561047e575f80fd5b5061049960048036038101906104949190613859565b610fb8565b6040516104a69190613840565b60405180910390f35b3480156104ba575f80fd5b506104c3610fd5565b6040516104d091906139de565b60405180910390f35b3480156104e4575f80fd5b506104ed610ff9565b6040516104fa9190613840565b60405180910390f35b34801561050e575f80fd5b5061052960048036038101906105249190613859565b61100b565b6040516105369190613840565b60405180910390f35b34801561054a575f80fd5b5061055361105d565b6040516105609190613907565b60405180910390f35b348015610574575f80fd5b5061058f600480360381019061058a9190613b37565b611063565b005b34801561059c575f80fd5b506105b760048036038101906105b29190613859565b61116f565b6040516105c49190613907565b60405180910390f35b3480156105d8575f80fd5b506105e16111b4565b005b3480156105ee575f80fd5b5061060960048036038101906106049190613920565b61123b565b005b348015610616575f80fd5b5061061f611310565b60405161062c9190613840565b60405180910390f35b348015610640575f80fd5b5061065b60048036038101906106569190613ba8565b6113ad565b005b348015610668575f80fd5b50610683600480360381019061067e9190613920565b611481565b005b348015610690575f80fd5b5061069961152d565b005b3480156106a6575f80fd5b506106af6115d9565b6040516106bc91906139de565b60405180910390f35b3480156106d0575f80fd5b506106d9611601565b6040516106e6919061372a565b60405180910390f35b3480156106fa575f80fd5b5061071560048036038101906107109190613ba8565b611691565b005b348015610722575f80fd5b5061072b6117a9565b6040516107389190613907565b60405180910390f35b34801561074c575f80fd5b506107556117af565b6040516107629190613907565b60405180910390f35b348015610776575f80fd5b5061077f6117b5565b60405161078c9190613907565b60405180910390f35b3480156107a0575f80fd5b506107bb60048036038101906107b691906137e8565b6117bb565b6040516107c89190613840565b60405180910390f35b3480156107dc575f80fd5b506107f760048036038101906107f291906137e8565b6118a1565b6040516108049190613840565b60405180910390f35b348015610818575f80fd5b50610833600480360381019061082e9190613859565b6118be565b6040516108409190613840565b60405180910390f35b348015610854575f80fd5b5061085d6118db565b60405161086a9190613840565b60405180910390f35b34801561087e575f80fd5b5061089960048036038101906108949190613ba8565b6118ee565b005b3480156108a6575f80fd5b506108c160048036038101906108bc9190613920565b6119c2565b005b3480156108ce575f80fd5b506108d7611ad1565b6040516108e49190613840565b60405180910390f35b3480156108f8575f80fd5b50610901611ae3565b60405161090e9190613907565b60405180910390f35b348015610922575f80fd5b5061093d60048036038101906109389190613920565b611ae9565b60405161094a9190613840565b60405180910390f35b34801561095e575f80fd5b5061097960048036038101906109749190613b37565b611c3d565b005b348015610986575f80fd5b5061098f611e2c565b60405161099c9190613907565b60405180910390f35b3480156109b0575f80fd5b506109cb60048036038101906109c69190613be6565b611e32565b6040516109d89190613907565b60405180910390f35b3480156109ec575f80fd5b506109f5611eb4565b604051610a029190613907565b60405180910390f35b348015610a16575f80fd5b50610a1f611eba565b604051610a2c9190613840565b60405180910390f35b348015610a40575f80fd5b50610a5b6004803603810190610a569190613920565b611f57565b005b348015610a68575f80fd5b50610a836004803603810190610a7e9190613859565b61202c565b005b348015610a90575f80fd5b50610a99612122565b604051610aa69190613907565b60405180910390f35b606060038054610abe90613c51565b80601f0160208091040260200160405190810160405280929190818152602001828054610aea90613c51565b8015610b355780601f10610b0c57610100808354040283529160200191610b35565b820191905f5260205f20905b815481529060010190602001808311610b1857829003601f168201915b5050505050905090565b5f610b52610b4b612128565b848461212f565b6001905092915050565b6017602052805f5260405f205f915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610bae612128565b73ffffffffffffffffffffffffffffffffffffffff16610bcc6115d9565b73ffffffffffffffffffffffffffffffffffffffff1614610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1990613ccb565b60405180910390fd5b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74360405160405180910390a38060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610ce8612128565b73ffffffffffffffffffffffffffffffffffffffff16610d066115d9565b73ffffffffffffffffffffffffffffffffffffffff1614610d5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5390613ccb565b60405180910390fd5b670de0b6b3a76400006103e86001610d72610b9d565b610d7c9190613d16565b610d869190613d84565b610d909190613d84565b811015610dd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc990613e24565b60405180910390fd5b670de0b6b3a764000081610de69190613d16565b600b8190555050565b5f8060015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610e37612128565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ef25782811015610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490613eb2565b60405180910390fd5b610ef185610ee9612128565b85840361212f565b5b610efd8585856122f2565b60019150509392505050565b5f6012905090565b5f610fae610f1d612128565b848460015f610f2a612128565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054610fa99190613ed0565b61212f565b6001905092915050565b6006602052805f5260405f205f915054906101000a900460ff1681565b7f000000000000000000000000104ad942dfa91536726517f984f556dfcb63814f81565b600e5f9054906101000a900460ff1681565b5f60165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60135481565b61106b612128565b73ffffffffffffffffffffffffffffffffffffffff166110896115d9565b73ffffffffffffffffffffffffffffffffffffffff16146110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d690613ccb565b60405180910390fd5b5f5b815181101561116b575f60065f84848151811061110157611100613f03565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550808061116390613f30565b9150506110e1565b5050565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b6111bc612128565b73ffffffffffffffffffffffffffffffffffffffff166111da6115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122790613ccb565b60405180910390fd5b6112395f612f2e565b565b611243612128565b73ffffffffffffffffffffffffffffffffffffffff166112616115d9565b73ffffffffffffffffffffffffffffffffffffffff16146112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae90613ccb565b60405180910390fd5b806012819055506012546011819055506014601154111561130d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130490613fc1565b60405180910390fd5b50565b5f611319612128565b73ffffffffffffffffffffffffffffffffffffffff166113376115d9565b73ffffffffffffffffffffffffffffffffffffffff161461138d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138490613ccb565b60405180910390fd5b5f600e5f6101000a81548160ff0219169083151502179055506001905090565b6113b5612128565b73ffffffffffffffffffffffffffffffffffffffff166113d36115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142090613ccb565b60405180910390fd5b8060175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b611489612128565b73ffffffffffffffffffffffffffffffffffffffff166114a76115d9565b73ffffffffffffffffffffffffffffffffffffffff16146114fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f490613ccb565b60405180910390fd5b6001600e60016101000a81548160ff02191690831515021790555080426115249190613ed0565b60088190555050565b611535612128565b73ffffffffffffffffffffffffffffffffffffffff166115536115d9565b73ffffffffffffffffffffffffffffffffffffffff16146115a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a090613ccb565b60405180910390fd5b6001600e60016101000a81548160ff0219169083151502179055506002426115d19190613ed0565b600881905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461161090613c51565b80601f016020809104026020016040519081016040528092919081815260200182805461163c90613c51565b80156116875780601f1061165e57610100808354040283529160200191611687565b820191905f5260205f20905b81548152906001019060200180831161166a57829003601f168201915b5050505050905090565b611699612128565b73ffffffffffffffffffffffffffffffffffffffff166116b76115d9565b73ffffffffffffffffffffffffffffffffffffffff161461170d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170490613ccb565b60405180910390fd5b7f000000000000000000000000104ad942dfa91536726517f984f556dfcb63814f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061404f565b60405180910390fd5b6117a58282612ff1565b5050565b60125481565b60155481565b60145481565b5f8060015f6117c8612128565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611882576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611879906140dd565b60405180910390fd5b61189661188d612128565b8585840361212f565b600191505092915050565b5f6118b46118ad612128565b84846122f2565b6001905092915050565b6018602052805f5260405f205f915054906101000a900460ff1681565b600e60019054906101000a900460ff1681565b6118f6612128565b73ffffffffffffffffffffffffffffffffffffffff166119146115d9565b73ffffffffffffffffffffffffffffffffffffffff161461196a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196190613ccb565b60405180910390fd5b8060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b6119ca612128565b73ffffffffffffffffffffffffffffffffffffffff166119e86115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3590613ccb565b60405180910390fd5b670de0b6b3a76400006103e86005611a54610b9d565b611a5e9190613d16565b611a689190613d84565b611a729190613d84565b811015611ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aab9061416b565b60405180910390fd5b670de0b6b3a764000081611ac89190613d16565b600d8190555050565b60105f9054906101000a900460ff1681565b600b5481565b5f611af2612128565b73ffffffffffffffffffffffffffffffffffffffff16611b106115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611b66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5d90613ccb565b60405180910390fd5b620186a06001611b74610b9d565b611b7e9190613d16565b611b889190613d84565b821015611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc1906141f9565b60405180910390fd5b6103e86005611bd7610b9d565b611be19190613d16565b611beb9190613d84565b821115611c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2490614287565b60405180910390fd5b81600c8190555060019050919050565b611c45612128565b73ffffffffffffffffffffffffffffffffffffffff16611c636115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb090613ccb565b60405180910390fd5b5f5b8151811015611e28577f000000000000000000000000104ad942dfa91536726517f984f556dfcb63814f73ffffffffffffffffffffffffffffffffffffffff16828281518110611d0e57611d0d613f03565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614158015611da057507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff16828281518110611d7f57611d7e613f03565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614155b15611e1557600160065f848481518110611dbd57611dbc613f03565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505b8080611e2090613f30565b915050611cbb565b5050565b60115481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600c5481565b5f611ec3612128565b73ffffffffffffffffffffffffffffffffffffffff16611ee16115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2e90613ccb565b60405180910390fd5b5f60105f6101000a81548160ff0219169083151502179055506001905090565b611f5f612128565b73ffffffffffffffffffffffffffffffffffffffff16611f7d6115d9565b73ffffffffffffffffffffffffffffffffffffffff1614611fd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fca90613ccb565b60405180910390fd5b8060148190555060145460138190555060146013541115612029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202090613fc1565b60405180910390fd5b50565b612034612128565b73ffffffffffffffffffffffffffffffffffffffff166120526115d9565b73ffffffffffffffffffffffffffffffffffffffff16146120a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209f90613ccb565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210d90614315565b60405180910390fd5b61211f81612f2e565b50565b600d5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361219d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612194906143a3565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361220b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220290614431565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516122e59190613907565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612360576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612357906144bf565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c59061454d565b60405180910390fd5b60065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244f90614601565b60405180910390fd5b5f810361246f5761246a83835f613049565b612f29565b6008544210156124cf57600160065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505b600e5f9054906101000a900460ff1615612b75576124eb6115d9565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561255957506125296115d9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561259157505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125cb575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156125e3575060075f9054906101000a900460ff16155b15612b7457600e60019054906101000a900460ff166126d75760165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612697575060165f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6126d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126cd90614669565b60405180910390fd5b5b60105f9054906101000a900460ff161561289a576126f36115d9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561277a57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156127d257507f000000000000000000000000104ad942dfa91536726517f984f556dfcb63814f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156128995743600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410612856576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284d9061471d565b60405180910390fd5b43600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612937575060175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156129de57600b54811115612981576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612978906147ab565b60405180910390fd5b600d5461298d8361116f565b826129989190613ed0565b11156129d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d090614813565b60405180910390fd5b612b73565b60185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612a7b575060175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612aca57600b54811115612ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abc906148a1565b60405180910390fd5b612b72565b60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612b7157600d54612b248361116f565b82612b2f9190613ed0565b1115612b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6790614813565b60405180910390fd5b5b5b5b5b5b5f612b7f3061116f565b90505f600c548210159050808015612ba3575060075f9054906101000a900460ff16155b8015612bf6575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612c49575060165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612c9c575060165f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612cdd57600160075f6101000a81548160ff021916908315150217905550612cc36132be565b5f60075f6101000a81548160ff0219169083151502179055505b5f60075f9054906101000a900460ff1615905060165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612d8b575060165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612d94575f90505b5f8115612f195760185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612df257505f601354115b15612e4a57606460135486612e079190613d16565b612e119190613d84565b905060135460145482612e249190613d16565b612e2e9190613d84565b60155f828254612e3e9190613ed0565b92505081905550612ef6565b60185f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612ea157505f601154115b15612ef557606460115486612eb69190613d16565b612ec09190613d84565b905060115460125482612ed39190613d16565b612edd9190613d84565b60155f828254612eed9190613ed0565b925050819055505b5b5f811115612f0a57612f09873083613049565b5b8085612f1691906148bf565b94505b612f24878787613049565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036130b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ae906144bf565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311c9061454d565b60405180910390fd5b613130838383613463565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156131b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131aa90614962565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546132419190613ed0565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516132a59190613907565b60405180910390a36132b8848484613468565b50505050565b5f6132c83061116f565b90505f60155490505f808314806132de57505f82145b156132eb57505050613461565b6014600c546132fa9190613d16565b831115613313576014600c546133109190613d16565b92505b61331c8261346d565b5f4790505f600a8261332e9190613d84565b90505f818361333d91906148bf565b90505f601581905550600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161338b906149ad565b5f6040518083038185875af1925050503d805f81146133c5576040519150601f19603f3d011682016040523d82523d5f602084013e6133ca565b606091505b50508094505060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681604051613415906149ad565b5f6040518083038185875af1925050503d805f811461344f576040519150601f19603f3d011682016040523d82523d5f602084013e613454565b606091505b5050809450505050505050505b565b505050565b505050565b5f600267ffffffffffffffff811115613489576134886139fb565b5b6040519080825280602002602001820160405280156134b75781602001602082028036833780820191505090505b50905030815f815181106134ce576134cd613f03565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613571573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061359591906149d5565b816001815181106135a9576135a8613f03565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061360e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461212f565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b815260040161366f959493929190614af0565b5f604051808303815f87803b158015613686575f80fd5b505af1158015613698573d5f803e3d5ffd5b505050505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156136d75780820151818401526020810190506136bc565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6136fc826136a0565b61370681856136aa565b93506137168185602086016136ba565b61371f816136e2565b840191505092915050565b5f6020820190508181035f83015261374281846136f2565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6137848261375b565b9050919050565b6137948161377a565b811461379e575f80fd5b50565b5f813590506137af8161378b565b92915050565b5f819050919050565b6137c7816137b5565b81146137d1575f80fd5b50565b5f813590506137e2816137be565b92915050565b5f80604083850312156137fe576137fd613753565b5b5f61380b858286016137a1565b925050602061381c858286016137d4565b9150509250929050565b5f8115159050919050565b61383a81613826565b82525050565b5f6020820190506138535f830184613831565b92915050565b5f6020828403121561386e5761386d613753565b5b5f61387b848285016137a1565b91505092915050565b5f819050919050565b5f6138a76138a261389d8461375b565b613884565b61375b565b9050919050565b5f6138b88261388d565b9050919050565b5f6138c9826138ae565b9050919050565b6138d9816138bf565b82525050565b5f6020820190506138f25f8301846138d0565b92915050565b613901816137b5565b82525050565b5f60208201905061391a5f8301846138f8565b92915050565b5f6020828403121561393557613934613753565b5b5f613942848285016137d4565b91505092915050565b5f805f6060848603121561396257613961613753565b5b5f61396f868287016137a1565b9350506020613980868287016137a1565b9250506040613991868287016137d4565b9150509250925092565b5f60ff82169050919050565b6139b08161399b565b82525050565b5f6020820190506139c95f8301846139a7565b92915050565b6139d88161377a565b82525050565b5f6020820190506139f15f8301846139cf565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b613a31826136e2565b810181811067ffffffffffffffff82111715613a5057613a4f6139fb565b5b80604052505050565b5f613a6261374a565b9050613a6e8282613a28565b919050565b5f67ffffffffffffffff821115613a8d57613a8c6139fb565b5b602082029050602081019050919050565b5f80fd5b5f613ab4613aaf84613a73565b613a59565b90508083825260208201905060208402830185811115613ad757613ad6613a9e565b5b835b81811015613b005780613aec88826137a1565b845260208401935050602081019050613ad9565b5050509392505050565b5f82601f830112613b1e57613b1d6139f7565b5b8135613b2e848260208601613aa2565b91505092915050565b5f60208284031215613b4c57613b4b613753565b5b5f82013567ffffffffffffffff811115613b6957613b68613757565b5b613b7584828501613b0a565b91505092915050565b613b8781613826565b8114613b91575f80fd5b50565b5f81359050613ba281613b7e565b92915050565b5f8060408385031215613bbe57613bbd613753565b5b5f613bcb858286016137a1565b9250506020613bdc85828601613b94565b9150509250929050565b5f8060408385031215613bfc57613bfb613753565b5b5f613c09858286016137a1565b9250506020613c1a858286016137a1565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613c6857607f821691505b602082108103613c7b57613c7a613c24565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613cb56020836136aa565b9150613cc082613c81565b602082019050919050565b5f6020820190508181035f830152613ce281613ca9565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613d20826137b5565b9150613d2b836137b5565b9250828202613d39816137b5565b91508282048414831517613d5057613d4f613ce9565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613d8e826137b5565b9150613d99836137b5565b925082613da957613da8613d57565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74205f8201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b5f613e0e602f836136aa565b9150613e1982613db4565b604082019050919050565b5f6020820190508181035f830152613e3b81613e02565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f613e9c6028836136aa565b9150613ea782613e42565b604082019050919050565b5f6020820190508181035f830152613ec981613e90565b9050919050565b5f613eda826137b5565b9150613ee5836137b5565b9250828201905080821115613efd57613efc613ce9565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f613f3a826137b5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613f6c57613f6b613ce9565b5b600182019050919050565b7f4d757374206b656570206665657320617420323025206f72206c6573730000005f82015250565b5f613fab601d836136aa565b9150613fb682613f77565b602082019050919050565b5f6020820190508181035f830152613fd881613f9f565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6140396039836136aa565b915061404482613fdf565b604082019050919050565b5f6020820190508181035f8301526140668161402d565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6140c76025836136aa565b91506140d28261406d565b604082019050919050565b5f6020820190508181035f8301526140f4816140bb565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e205f8201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b5f6141556024836136aa565b9150614160826140fb565b604082019050919050565b5f6020820190508181035f83015261418281614149565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f6141e36035836136aa565b91506141ee82614189565b604082019050919050565b5f6020820190508181035f830152614210816141d7565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f6142716034836136aa565b915061427c82614217565b604082019050919050565b5f6020820190508181035f83015261429e81614265565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6142ff6026836136aa565b915061430a826142a5565b604082019050919050565b5f6020820190508181035f83015261432c816142f3565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61438d6024836136aa565b915061439882614333565b604082019050919050565b5f6020820190508181035f8301526143ba81614381565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61441b6022836136aa565b9150614426826143c1565b604082019050919050565b5f6020820190508181035f8301526144488161440f565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6144a96025836136aa565b91506144b48261444f565b604082019050919050565b5f6020820190508181035f8301526144d68161449d565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6145376023836136aa565b9150614542826144dd565b604082019050919050565b5f6020820190508181035f8301526145648161452b565b9050919050565b7f596f7572206164647265737320686173206265656e206d61726b6564206173205f8201527f6120626f742f736e697065722c20796f752061726520756e61626c6520746f2060208201527f7472616e73666572206f7220737761702e000000000000000000000000000000604082015250565b5f6145eb6051836136aa565b91506145f68261456b565b606082019050919050565b5f6020820190508181035f830152614618816145df565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6146536016836136aa565b915061465e8261461f565b602082019050919050565b5f6020820190508181035f83015261468081614647565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b5f6147076049836136aa565b915061471282614687565b606082019050919050565b5f6020820190508181035f830152614734816146fb565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f6147956035836136aa565b91506147a08261473b565b604082019050919050565b5f6020820190508181035f8301526147c281614789565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f6147fd6013836136aa565b9150614808826147c9565b602082019050919050565b5f6020820190508181035f83015261482a816147f1565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f61488b6036836136aa565b915061489682614831565b604082019050919050565b5f6020820190508181035f8301526148b88161487f565b9050919050565b5f6148c9826137b5565b91506148d4836137b5565b92508282039050818111156148ec576148eb613ce9565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f61494c6026836136aa565b9150614957826148f2565b604082019050919050565b5f6020820190508181035f83015261497981614940565b9050919050565b5f81905092915050565b50565b5f6149985f83614980565b91506149a38261498a565b5f82019050919050565b5f6149b78261498d565b9150819050919050565b5f815190506149cf8161378b565b92915050565b5f602082840312156149ea576149e9613753565b5b5f6149f7848285016149c1565b91505092915050565b5f819050919050565b5f614a23614a1e614a1984614a00565b613884565b6137b5565b9050919050565b614a3381614a09565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614a6b8161377a565b82525050565b5f614a7c8383614a62565b60208301905092915050565b5f602082019050919050565b5f614a9e82614a39565b614aa88185614a43565b9350614ab383614a53565b805f5b83811015614ae3578151614aca8882614a71565b9750614ad583614a88565b925050600181019050614ab6565b5085935050505092915050565b5f60a082019050614b035f8301886138f8565b614b106020830187614a2a565b8181036040830152614b228186614a94565b9050614b3160608301856139cf565b614b3e60808301846138f8565b969550505050505056fea26469706673582212200f384af554c321f09d3da2c5a887fe2767d3457efb70553b65c7e6bb9c4aedd364736f6c63430008150033

Verified Source Code Partial Match

Compiler: v0.8.21+commit.d9974bed EVM: shanghai Optimization: No
TOKEN.sol 637 lines
// SPDX-License-Identifier: MIT

pragma solidity 0.8.21;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function factory() external view returns (address);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
}

interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

interface IERC20Metadata is IERC20 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}


contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        uint256 currentAllowance = _allowances[sender][_msgSender()];
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
            unchecked {
                _approve(sender, _msgSender(), currentAllowance - amount);
            }
        }

        _transfer(sender, recipient, amount);

        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _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);
    }

    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);
    }

    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);
    }

    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);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() {
        _transferOwnership(_msgSender());
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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 TOKEN is ERC20, Ownable {

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;

    mapping (address => bool) public isBot;
    bool private _swapping;
    uint256 private _launchTime;

    address private devWallet;
    address private serviceFeeWallet;

    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    bool public limitsInEffect = true;
    bool public tradingActive = false;

    // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
    bool public transferDelayEnabled = true;

    uint256 public buyTotalFees;
    uint256 public buyDevFee;

    uint256 public sellTotalFees;
    uint256 public sellDevFee;

    uint256 public tokensForDev;

    /******************/

    // exlcude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;

    event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiquidity);

    event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);

    event devWalletUpdated(address indexed newWallet, address indexed oldWallet);

    constructor(string memory name, string memory symbol, uint256 buyTax, uint256 sellTax, address feeWallet, uint256 supplyAmount) ERC20(name, symbol) {
        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 _buyDevFee = buyTax;
        uint256 _sellDevFee = sellTax;
        uint256 totalSupply = supplyAmount * 1e18;

        maxTransactionAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn
        maxWallet = totalSupply * 2 / 100; // 2% maxWallet
        swapTokensAtAmount = totalSupply * 5 / 10000; // 0.05% swap wallet

        // Set Fees
        buyDevFee = _buyDevFee;
        buyTotalFees =  buyDevFee;

        sellDevFee = _sellDevFee;
        sellTotalFees = sellDevFee;

        // Set Fee Wallet
        devWallet = address(owner()); // set as dev wallet
        serviceFeeWallet = address(feeWallet);



        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);

        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);

        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(msg.sender, totalSupply);
        _approve(msg.sender, address(uniswapV2Router), totalSupply);
    }

        receive() external payable {

    }


    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        _launchTime = block.timestamp + 2;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = false;
        return true;
    }

    // disable Transfer delay - cannot be reenabled
    function disableTransferDelay() external onlyOwner returns (bool) {
        transferDelayEnabled = false;
        return true;
    }

     // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) {
  	    require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
  	    require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
  	    swapTokensAtAmount = newAmount;
  	    return true;
  	}

    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 1000) / 1e18, "Cannot set maxTransactionAmount lower than 0.1%");
        maxTransactionAmount = newNum * 1e18;
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxWallet lower than 0.5%");
        maxWallet = newNum * 1e18;
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function updateBuyFees(uint256 _devFee) external onlyOwner {
        buyDevFee = _devFee;
        buyTotalFees = buyDevFee;
        require(buyTotalFees <= 20, "Must keep fees at 20% or less");
    }

    function updateSellFees(uint256 _devFee) external onlyOwner {
        sellDevFee = _devFee;
        sellTotalFees = sellDevFee;
        require(sellTotalFees <= 20, "Must keep fees at 20% or less");
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(pair, value);
    }

    // Variable Block - once enabled, can never be turned off
    function enableTrading(uint256 Bblock) external onlyOwner {
        tradingActive = true;
        _launchTime = block.timestamp + Bblock;
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
    }


    function updateDevWallet(address newWallet) external onlyOwner {
        emit devWalletUpdated(newWallet, devWallet);
        devWallet = newWallet;
    }


    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    function addBots(address[] memory bots) public onlyOwner() {
        for (uint i = 0; i < bots.length; i++) {
            if (bots[i] != uniswapV2Pair && bots[i] != address(uniswapV2Router)) {
                isBot[bots[i]] = true;
            }
        }
    }

    function removeBots(address[] memory bots) public onlyOwner() {
        for (uint i = 0; i < bots.length; i++) {
            isBot[bots[i]] = false;
        }
    }

    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(!isBot[from], "Your address has been marked as a bot/sniper, you are unable to transfer or swap.");

         if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (block.timestamp < _launchTime) isBot[to] = true;

        if (limitsInEffect) {
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !_swapping
            ) {
                if (!tradingActive) {
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }

                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
                if (transferDelayEnabled){
                    if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number, "_transfer:: Transfer Delay enabled.  Only one purchase per block allowed.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                    }
                }

                // On buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                    require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }

                // On 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 &&
            !_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 ;
                tokensForDev += fees * sellDevFee / sellTotalFees;
            }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = (amount * buyTotalFees) / 100;
                tokensForDev += fees * buyDevFee / 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
            owner(),
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForDev;
        bool success;

        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}

        if(contractBalance > swapTokensAtAmount * 20){
          contractBalance = swapTokensAtAmount * 20;
        }


        _swapTokensForEth(totalTokensToSwap);

        uint256 ethBalance = address(this).balance;
        uint256 serviceFee = ethBalance / 10;
        uint256 ethForDev = ethBalance - serviceFee;


        tokensForDev = 0;

        (success,) = address(serviceFeeWallet).call{value: serviceFee}("");
        (success,) = address(devWallet).call{value: ethForDev}("");
    }
}

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyTotalFees 0xd85ba063 → uint256
decimals 0x313ce567 → uint8
isBot 0x3bbac579 → bool
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellTotalFees 0x6a486a8e → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 22 functions

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

addBots 0xd34628cc
address[] bots
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableTrading 0x82aa7c68
uint256 Bblock
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeBots 0x6c3bbfd7
address[] bots
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
updateBuyFees 0x71fc4688
uint256 _devFee
updateDevWallet 0x1816467f
address newWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xeba4c333
uint256 _devFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool

Recent Transactions

No transactions found for this address