Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x877f035c83df617B6C901891F90EEBc78f8CE050
Balance 0 ETH
Nonce 1
Code Size 21640 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

21640 bytes
0x608060405260043610610384575f3560e01c80638095d564116101d0578063c024666811610101578063dd62ed3e1161009f578063f2fde38b1161006e578063f2fde38b14610ced578063f637434214610d15578063f8b45b0514610d3f578063fde83a3414610d695761038b565b8063dd62ed3e14610c35578063e2f4560514610c71578063e82493a914610c9b578063f11a24d314610cc35761038b565b8063c8c8ebe4116100db578063c8c8ebe414610b7b578063d257b34f14610ba5578063d729715f14610be1578063d85ba06314610c0b5761038b565b8063c024666814610b03578063c17b5b8c14610b2b578063c18bc19514610b535761038b565b80639c2e4ac61161016e578063adee28ff11610148578063adee28ff14610a4d578063b62496f514610a75578063bbc0c74214610ab1578063bc205ad314610adb5761038b565b80639c2e4ac6146109ab578063a457c2d7146109d5578063a9059cbb14610a115761038b565b80638da5cb5b116101aa5780638da5cb5b14610907578063924de9b71461093157806395d89b41146109595780639a7a23d6146109835761038b565b80638095d564146108b357806384dd4452146108db5780638a8c523c146108f15761038b565b806339509351116102b55780636ddd1713116102535780637571336a116102225780637571336a14610811578063782c4e99146108395780637ca8448a146108635780637cb332bb1461088b5761038b565b80636ddd17131461076b57806370a0823114610795578063715018a6146107d1578063751039fc146107e75761038b565b80634fbee1931161028f5780634fbee193146106b157806359927044146106ed5780636490015c146107175780636a486a8e146107415761038b565b8063395093511461062157806349bd5a5e1461065d5780634a62bb65146106875761038b565b806319eab0421161032257806323b872dd116102fc57806323b872dd1461056757806324b9f3c1146105a357806327c8f835146105cd578063313ce567146105f75761038b565b806319eab042146104eb5780631a8145bb14610515578063203e727e1461053f5761038b565b806310d5de531161035e57806310d5de5314610431578063156c2f351461046d5780631694505e1461049757806318160ddd146104c15761038b565b806304fa50c21461038f57806306fdde03146103cb578063095ea7b3146103f55761038b565b3661038b57005b5f80fd5b34801561039a575f80fd5b506103b560048036038101906103b09190613fbc565b610d93565b6040516103c29190614001565b60405180910390f35b3480156103d6575f80fd5b506103df610db0565b6040516103ec91906140a4565b60405180910390f35b348015610400575f80fd5b5061041b600480360381019061041691906140f7565b610e40565b6040516104289190614001565b60405180910390f35b34801561043c575f80fd5b5061045760048036038101906104529190613fbc565b610e5d565b6040516104649190614001565b60405180910390f35b348015610478575f80fd5b50610481610e7a565b60405161048e9190614144565b60405180910390f35b3480156104a2575f80fd5b506104ab610e80565b6040516104b891906141b8565b60405180910390f35b3480156104cc575f80fd5b506104d5610ea4565b6040516104e29190614144565b60405180910390f35b3480156104f6575f80fd5b506104ff610ead565b60405161050c9190614144565b60405180910390f35b348015610520575f80fd5b50610529610eb3565b6040516105369190614144565b60405180910390f35b34801561054a575f80fd5b50610565600480360381019061056091906141d1565b610eb9565b005b348015610572575f80fd5b5061058d600480360381019061058891906141fc565b610fc8565b60405161059a9190614001565b60405180910390f35b3480156105ae575f80fd5b506105b76110ba565b6040516105c49190614144565b60405180910390f35b3480156105d8575f80fd5b506105e16110c0565b6040516105ee919061425b565b60405180910390f35b348015610602575f80fd5b5061060b6110c6565b604051610618919061428f565b60405180910390f35b34801561062c575f80fd5b50610647600480360381019061064291906140f7565b6110ce565b6040516106549190614001565b60405180910390f35b348015610668575f80fd5b50610671611175565b60405161067e919061425b565b60405180910390f35b348015610692575f80fd5b5061069b611199565b6040516106a89190614001565b60405180910390f35b3480156106bc575f80fd5b506106d760048036038101906106d29190613fbc565b6111ab565b6040516106e49190614001565b60405180910390f35b3480156106f8575f80fd5b506107016111fd565b60405161070e919061425b565b60405180910390f35b348015610722575f80fd5b5061072b611222565b6040516107389190614001565b60405180910390f35b34801561074c575f80fd5b50610755611234565b6040516107629190614144565b60405180910390f35b348015610776575f80fd5b5061077f61123a565b60405161078c9190614001565b60405180910390f35b3480156107a0575f80fd5b506107bb60048036038101906107b69190613fbc565b61124d565b6040516107c89190614144565b60405180910390f35b3480156107dc575f80fd5b506107e5611292565b005b3480156107f2575f80fd5b506107fb611319565b6040516108089190614001565b60405180910390f35b34801561081c575f80fd5b50610837600480360381019061083291906142d2565b6113b6565b005b348015610844575f80fd5b5061084d61148a565b60405161085a919061425b565b60405180910390f35b34801561086e575f80fd5b5061088960048036038101906108849190613fbc565b6114af565b005b348015610896575f80fd5b506108b160048036038101906108ac9190613fbc565b6115a0565b005b3480156108be575f80fd5b506108d960048036038101906108d49190614310565b6116da565b005b3480156108e6575f80fd5b506108ef6117d9565b005b3480156108fc575f80fd5b50610905611993565b005b348015610912575f80fd5b5061091b611a60565b604051610928919061425b565b60405180910390f35b34801561093c575f80fd5b5061095760048036038101906109529190614360565b611a88565b005b348015610964575f80fd5b5061096d611b21565b60405161097a91906140a4565b60405180910390f35b34801561098e575f80fd5b506109a960048036038101906109a491906142d2565b611bb1565b005b3480156109b6575f80fd5b506109bf611cc9565b6040516109cc9190614144565b60405180910390f35b3480156109e0575f80fd5b506109fb60048036038101906109f691906140f7565b611ccf565b604051610a089190614001565b60405180910390f35b348015610a1c575f80fd5b50610a376004803603810190610a3291906140f7565b611db5565b604051610a449190614001565b60405180910390f35b348015610a58575f80fd5b50610a736004803603810190610a6e9190613fbc565b611dd2565b005b348015610a80575f80fd5b50610a9b6004803603810190610a969190613fbc565b611f0c565b604051610aa89190614001565b60405180910390f35b348015610abc575f80fd5b50610ac5611f29565b604051610ad29190614001565b60405180910390f35b348015610ae6575f80fd5b50610b016004803603810190610afc919061438b565b611f3c565b005b348015610b0e575f80fd5b50610b296004803603810190610b2491906142d2565b612122565b005b348015610b36575f80fd5b50610b516004803603810190610b4c9190614310565b612244565b005b348015610b5e575f80fd5b50610b796004803603810190610b7491906141d1565b612343565b005b348015610b86575f80fd5b50610b8f612452565b604051610b9c9190614144565b60405180910390f35b348015610bb0575f80fd5b50610bcb6004803603810190610bc691906141d1565b612458565b604051610bd89190614001565b60405180910390f35b348015610bec575f80fd5b50610bf56125ab565b604051610c029190614144565b60405180910390f35b348015610c16575f80fd5b50610c1f6125b1565b604051610c2c9190614144565b60405180910390f35b348015610c40575f80fd5b50610c5b6004803603810190610c56919061438b565b6125b7565b604051610c689190614144565b60405180910390f35b348015610c7c575f80fd5b50610c85612639565b604051610c929190614144565b60405180910390f35b348015610ca6575f80fd5b50610cc16004803603810190610cbc91906142d2565b61263f565b005b348015610cce575f80fd5b50610cd7612727565b604051610ce49190614144565b60405180910390f35b348015610cf8575f80fd5b50610d136004803603810190610d0e9190613fbc565b61272d565b005b348015610d20575f80fd5b50610d29612823565b604051610d369190614144565b60405180910390f35b348015610d4a575f80fd5b50610d53612829565b604051610d609190614144565b60405180910390f35b348015610d74575f80fd5b50610d7d61282f565b604051610d8a9190614144565b60405180910390f35b601b602052805f5260405f205f915054906101000a900460ff1681565b606060038054610dbf906143f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610deb906143f6565b8015610e365780601f10610e0d57610100808354040283529160200191610e36565b820191905f5260205f20905b815481529060010190602001808311610e1957829003601f168201915b5050505050905090565b5f610e53610e4c612835565b848461283c565b6001905092915050565b6018602052805f5260405f205f915054906101000a900460ff1681565b600d5481565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b60115481565b60155481565b610ec1612835565b73ffffffffffffffffffffffffffffffffffffffff16610edf611a60565b73ffffffffffffffffffffffffffffffffffffffff1614610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c90614470565b60405180910390fd5b670de0b6b3a76400006103e86005610f4b610ea4565b610f5591906144bb565b610f5f9190614529565b610f699190614529565b811015610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa2906145c9565b60405180910390fd5b670de0b6b3a764000081610fbf91906144bb565b60088190555050565b5f610fd48484846129ff565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f61101b612835565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508281101561109a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109190614657565b60405180910390fd5b6110ae856110a6612835565b85840361283c565b60019150509392505050565b60145481565b61dead81565b5f6012905090565b5f61116b6110da612835565b848460015f6110e7612835565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111669190614675565b61283c565b6001905092915050565b7f000000000000000000000000ac03e049ca564d923321610747c072a325f18acc81565b600b5f9054906101000a900460ff1681565b5f60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601a5f9054906101000a900460ff1681565b60105481565b600b60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61129a612835565b73ffffffffffffffffffffffffffffffffffffffff166112b8611a60565b73ffffffffffffffffffffffffffffffffffffffff161461130e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130590614470565b60405180910390fd5b6113175f61352d565b565b5f611322612835565b73ffffffffffffffffffffffffffffffffffffffff16611340611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138d90614470565b60405180910390fd5b5f600b5f6101000a81548160ff0219169083151502179055506001905090565b6113be612835565b73ffffffffffffffffffffffffffffffffffffffff166113dc611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142990614470565b60405180910390fd5b8060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114b7612835565b73ffffffffffffffffffffffffffffffffffffffff166114d5611a60565b73ffffffffffffffffffffffffffffffffffffffff161461152b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152290614470565b60405180910390fd5b5f8173ffffffffffffffffffffffffffffffffffffffff1647604051611550906146d5565b5f6040518083038185875af1925050503d805f811461158a576040519150601f19603f3d011682016040523d82523d5f602084013e61158f565b606091505b505090508061159c575f80fd5b5050565b6115a8612835565b73ffffffffffffffffffffffffffffffffffffffff166115c6611a60565b73ffffffffffffffffffffffffffffffffffffffff161461161c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161390614470565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8aa0f85050aca99be43beb823e0457e77966b3baf697a289b03681978f96166860405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6116e2612835565b73ffffffffffffffffffffffffffffffffffffffff16611700611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611756576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174d90614470565b60405180910390fd5b82600d8190555081600e8190555080600f81905550600f54600e54600d5461177e9190614675565b6117889190614675565b600c819055506031600c5411156117d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cb90614733565b60405180910390fd5b505050565b6117e1612835565b73ffffffffffffffffffffffffffffffffffffffff166117ff611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184c90614470565b60405180910390fd5b5f3073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161188f919061425b565b602060405180830381865afa1580156118aa573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118ce9190614765565b90503073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161190b929190614790565b6020604051808303815f875af1158015611927573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061194b91906147cb565b503373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f1935050505015801561198f573d5f803e3d5ffd5b5050565b61199b612835565b73ffffffffffffffffffffffffffffffffffffffff166119b9611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611a0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0690614470565b60405180910390fd5b6001600b60016101000a81548160ff0219169083151502179055506001600b60026101000a81548160ff0219169083151502179055505f601a5f6101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a90612835565b73ffffffffffffffffffffffffffffffffffffffff16611aae611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611b04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afb90614470565b60405180910390fd5b80600b60026101000a81548160ff02191690831515021790555050565b606060048054611b30906143f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611b5c906143f6565b8015611ba75780601f10611b7e57610100808354040283529160200191611ba7565b820191905f5260205f20905b815481529060010190602001808311611b8a57829003601f168201915b5050505050905090565b611bb9612835565b73ffffffffffffffffffffffffffffffffffffffff16611bd7611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611c2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2490614470565b60405180910390fd5b7f000000000000000000000000ac03e049ca564d923321610747c072a325f18acc73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb290614866565b60405180910390fd5b611cc582826135f0565b5050565b600f5481565b5f8060015f611cdc612835565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015611d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8d906148f4565b60405180910390fd5b611daa611da1612835565b8585840361283c565b600191505092915050565b5f611dc8611dc1612835565b84846129ff565b6001905092915050565b611dda612835565b73ffffffffffffffffffffffffffffffffffffffff16611df8611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611e4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4590614470565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fc9f2d63eee8632b33d7a7db5252eb29036e81ee4fbe29260febe0c49ffb8a7bb60405160405180910390a38060065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6019602052805f5260405f205f915054906101000a900460ff1681565b600b60019054906101000a900460ff1681565b611f44612835565b73ffffffffffffffffffffffffffffffffffffffff16611f62611a60565b73ffffffffffffffffffffffffffffffffffffffff1614611fb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611faf90614470565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612026576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201d9061495c565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401612060919061425b565b602060405180830381865afa15801561207b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061209f9190614765565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016120dc929190614790565b6020604051808303815f875af11580156120f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061211c91906147cb565b50505050565b61212a612835565b73ffffffffffffffffffffffffffffffffffffffff16612148611a60565b73ffffffffffffffffffffffffffffffffffffffff161461219e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219590614470565b60405180910390fd5b8060175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516122389190614001565b60405180910390a25050565b61224c612835565b73ffffffffffffffffffffffffffffffffffffffff1661226a611a60565b73ffffffffffffffffffffffffffffffffffffffff16146122c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b790614470565b60405180910390fd5b8260118190555081601281905550806013819055506013546012546011546122e89190614675565b6122f29190614675565b6010819055506031601054111561233e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612335906149c4565b60405180910390fd5b505050565b61234b612835565b73ffffffffffffffffffffffffffffffffffffffff16612369611a60565b73ffffffffffffffffffffffffffffffffffffffff16146123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690614470565b60405180910390fd5b670de0b6b3a76400006103e8600a6123d5610ea4565b6123df91906144bb565b6123e99190614529565b6123f39190614529565b811015612435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242c90614a52565b60405180910390fd5b670de0b6b3a76400008161244991906144bb565b600a8190555050565b60085481565b5f612461612835565b73ffffffffffffffffffffffffffffffffffffffff1661247f611a60565b73ffffffffffffffffffffffffffffffffffffffff16146124d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cc90614470565b60405180910390fd5b620186a060016124e3610ea4565b6124ed91906144bb565b6124f79190614529565b821015612539576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253090614ae0565b60405180910390fd5b60646001612545610ea4565b61254f91906144bb565b6125599190614529565b82111561259b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259290614b6e565b60405180910390fd5b8160098190555060019050919050565b60135481565b600c5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60095481565b612647612835565b73ffffffffffffffffffffffffffffffffffffffff16612665611a60565b73ffffffffffffffffffffffffffffffffffffffff16146126bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b290614470565b60405180910390fd5b80601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506127198282612122565b61272382826113b6565b5050565b600e5481565b612735612835565b73ffffffffffffffffffffffffffffffffffffffff16612753611a60565b73ffffffffffffffffffffffffffffffffffffffff16146127a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a090614470565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280e90614bfc565b60405180910390fd5b6128208161352d565b50565b60125481565b600a5481565b60165481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a190614c8a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290f90614d18565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516129f29190614144565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612a6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6490614da6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad290614e34565b60405180910390fd5b601a5f9054906101000a900460ff1615612b7957601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6f90614ec2565b60405180910390fd5b5b5f8103612b9057612b8b83835f61368e565b613528565b600b5f9054906101000a900460ff161561307457612bac611a60565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612c1a5750612bea611a60565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612c5257505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612c8c575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612ca55750600560149054906101000a900460ff16155b1561307357600b60019054906101000a900460ff16612d995760175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612d59575060175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8f90614f2a565b60405180910390fd5b5b60195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612e36575060185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612edd57600854811115612e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7790614fb8565b60405180910390fd5b600a54612e8c8361124d565b82612e979190614675565b1115612ed8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ecf90615020565b60405180910390fd5b613072565b60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612f7a575060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612fc957600854811115612fc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbb906150ae565b60405180910390fd5b613071565b60185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661307057600a546130238361124d565b8261302e9190614675565b111561306f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306690615020565b60405180910390fd5b5b5b5b5b5b5f61307e3061124d565b90505f60095482101590508080156130a25750600b60029054906101000a900460ff165b80156130bb5750600560149054906101000a900460ff16155b801561310e575060195f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015613161575060175f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156131b4575060175f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156131f7576001600560146101000a81548160ff0219169083151502179055506131dc613903565b5f600560146101000a81548160ff0219169083151502179055505b5f600560149054906101000a900460ff1615905060175f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806132a6575060175f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b156132af575f90505b5f81156135185760195f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561330d57505f601054115b156133d75761333a606461332c60105488613c0490919063ffffffff16565b613c1990919063ffffffff16565b90506010546012548261334d91906144bb565b6133579190614529565b60155f8282546133679190614675565b925050819055506010546013548261337f91906144bb565b6133899190614529565b60165f8282546133999190614675565b92505081905550601054601154826133b191906144bb565b6133bb9190614529565b60145f8282546133cb9190614675565b925050819055506134f5565b60195f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561342e57505f600c54115b156134f45761345b606461344d600c5488613c0490919063ffffffff16565b613c1990919063ffffffff16565b9050600c54600e548261346e91906144bb565b6134789190614529565b60155f8282546134889190614675565b92505081905550600c54600f54826134a091906144bb565b6134aa9190614529565b60165f8282546134ba9190614675565b92505081905550600c54600d54826134d291906144bb565b6134dc9190614529565b60145f8282546134ec9190614675565b925050819055505b5b5f8111156135095761350887308361368e565b5b808561351591906150cc565b94505b61352387878761368e565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036136fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f390614da6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361376a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376190614e34565b60405180910390fd5b613775838383613c2e565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156137f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ef9061516f565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546138869190614675565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516138ea9190614144565b60405180910390a36138fd848484613c33565b50505050565b5f61390d3061124d565b90505f6016546014546015546139239190614675565b61392d9190614675565b90505f8083148061393d57505f82145b1561394a57505050613c02565b601460095461395991906144bb565b83111561397257601460095461396f91906144bb565b92505b5f6002836015548661398491906144bb565b61398e9190614529565b6139989190614529565b90505f6139ae8286613c3890919063ffffffff16565b90505f4790506139bd82613c4d565b5f6139d18247613c3890919063ffffffff16565b90505f613a1460026015546139e69190614529565b886139f191906150cc565b613a0660145485613c0490919063ffffffff16565b613c1990919063ffffffff16565b90505f613a576002601554613a299190614529565b89613a3491906150cc565b613a4960165486613c0490919063ffffffff16565b613c1990919063ffffffff16565b90505f818385613a6791906150cc565b613a7191906150cc565b90505f6015819055505f6014819055505f60168190555060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051613acd906146d5565b5f6040518083038185875af1925050503d805f8114613b07576040519150601f19603f3d011682016040523d82523d5f602084013e613b0c565b606091505b5050809850505f87118015613b2057505f81115b15613b6d57613b2f8782613e80565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618682601554604051613b649392919061518d565b60405180910390a15b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051613bb2906146d5565b5f6040518083038185875af1925050503d805f8114613bec576040519150601f19603f3d011682016040523d82523d5f602084013e613bf1565b606091505b505080985050505050505050505050505b565b5f8183613c1191906144bb565b905092915050565b5f8183613c269190614529565b905092915050565b505050565b505050565b5f8183613c4591906150cc565b905092915050565b5f600267ffffffffffffffff811115613c6957613c686151c2565b5b604051908082528060200260200182016040528015613c975781602001602082028036833780820191505090505b50905030815f81518110613cae57613cad6151ef565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613d51573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613d759190615230565b81600181518110613d8957613d886151ef565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613dee307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461283c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401613e4f95949392919061534b565b5f604051808303815f87803b158015613e66575f80fd5b505af1158015613e78573d5f803e3d5ffd5b505050505050565b613eab307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461283c565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f80613ef4611a60565b426040518863ffffffff1660e01b8152600401613f16969594939291906153a3565b60606040518083038185885af1158015613f32573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190613f579190615402565b5050505050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613f8b82613f62565b9050919050565b613f9b81613f81565b8114613fa5575f80fd5b50565b5f81359050613fb681613f92565b92915050565b5f60208284031215613fd157613fd0613f5e565b5b5f613fde84828501613fa8565b91505092915050565b5f8115159050919050565b613ffb81613fe7565b82525050565b5f6020820190506140145f830184613ff2565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015614051578082015181840152602081019050614036565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6140768261401a565b6140808185614024565b9350614090818560208601614034565b6140998161405c565b840191505092915050565b5f6020820190508181035f8301526140bc818461406c565b905092915050565b5f819050919050565b6140d6816140c4565b81146140e0575f80fd5b50565b5f813590506140f1816140cd565b92915050565b5f806040838503121561410d5761410c613f5e565b5b5f61411a85828601613fa8565b925050602061412b858286016140e3565b9150509250929050565b61413e816140c4565b82525050565b5f6020820190506141575f830184614135565b92915050565b5f819050919050565b5f61418061417b61417684613f62565b61415d565b613f62565b9050919050565b5f61419182614166565b9050919050565b5f6141a282614187565b9050919050565b6141b281614198565b82525050565b5f6020820190506141cb5f8301846141a9565b92915050565b5f602082840312156141e6576141e5613f5e565b5b5f6141f3848285016140e3565b91505092915050565b5f805f6060848603121561421357614212613f5e565b5b5f61422086828701613fa8565b935050602061423186828701613fa8565b9250506040614242868287016140e3565b9150509250925092565b61425581613f81565b82525050565b5f60208201905061426e5f83018461424c565b92915050565b5f60ff82169050919050565b61428981614274565b82525050565b5f6020820190506142a25f830184614280565b92915050565b6142b181613fe7565b81146142bb575f80fd5b50565b5f813590506142cc816142a8565b92915050565b5f80604083850312156142e8576142e7613f5e565b5b5f6142f585828601613fa8565b9250506020614306858286016142be565b9150509250929050565b5f805f6060848603121561432757614326613f5e565b5b5f614334868287016140e3565b9350506020614345868287016140e3565b9250506040614356868287016140e3565b9150509250925092565b5f6020828403121561437557614374613f5e565b5b5f614382848285016142be565b91505092915050565b5f80604083850312156143a1576143a0613f5e565b5b5f6143ae85828601613fa8565b92505060206143bf85828601613fa8565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061440d57607f821691505b6020821081036144205761441f6143c9565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61445a602083614024565b915061446582614426565b602082019050919050565b5f6020820190508181035f8301526144878161444e565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6144c5826140c4565b91506144d0836140c4565b92508282026144de816140c4565b915082820484148315176144f5576144f461448e565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614533826140c4565b915061453e836140c4565b92508261454e5761454d6144fc565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74205f8201527f6c6f776572207468616e20302e35250000000000000000000000000000000000602082015250565b5f6145b3602f83614024565b91506145be82614559565b604082019050919050565b5f6020820190508181035f8301526145e0816145a7565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f614641602883614024565b915061464c826145e7565b604082019050919050565b5f6020820190508181035f83015261466e81614635565b9050919050565b5f61467f826140c4565b915061468a836140c4565b92508282019050808211156146a2576146a161448e565b5b92915050565b5f81905092915050565b50565b5f6146c05f836146a8565b91506146cb826146b2565b5f82019050919050565b5f6146df826146b5565b9150819050919050565b7f4275792066656573206d757374206265203c3d2034392e0000000000000000005f82015250565b5f61471d601783614024565b9150614728826146e9565b602082019050919050565b5f6020820190508181035f83015261474a81614711565b9050919050565b5f8151905061475f816140cd565b92915050565b5f6020828403121561477a57614779613f5e565b5b5f61478784828501614751565b91505092915050565b5f6040820190506147a35f83018561424c565b6147b06020830184614135565b9392505050565b5f815190506147c5816142a8565b92915050565b5f602082840312156147e0576147df613f5e565b5b5f6147ed848285016147b7565b91505092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f614850603983614024565b915061485b826147f6565b604082019050919050565b5f6020820190508181035f83015261487d81614844565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6148de602583614024565b91506148e982614884565b604082019050919050565b5f6020820190508181035f83015261490b816148d2565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000005f82015250565b5f614946601a83614024565b915061495182614912565b602082019050919050565b5f6020820190508181035f8301526149738161493a565b9050919050565b7f53656c6c2066656573206d757374206265203c3d2034392e00000000000000005f82015250565b5f6149ae601883614024565b91506149b98261497a565b602082019050919050565b5f6020820190508181035f8301526149db816149a2565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e205f8201527f312e302500000000000000000000000000000000000000000000000000000000602082015250565b5f614a3c602483614024565b9150614a47826149e2565b604082019050919050565b5f6020820190508181035f830152614a6981614a30565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f614aca603583614024565b9150614ad582614a70565b604082019050919050565b5f6020820190508181035f830152614af781614abe565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20312e302520746f74616c20737570706c792e000000000000000000000000602082015250565b5f614b58603483614024565b9150614b6382614afe565b604082019050919050565b5f6020820190508181035f830152614b8581614b4c565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f614be6602683614024565b9150614bf182614b8c565b604082019050919050565b5f6020820190508181035f830152614c1381614bda565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f614c74602483614024565b9150614c7f82614c1a565b604082019050919050565b5f6020820190508181035f830152614ca181614c68565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f614d02602283614024565b9150614d0d82614ca8565b604082019050919050565b5f6020820190508181035f830152614d2f81614cf6565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f614d90602583614024565b9150614d9b82614d36565b604082019050919050565b5f6020820190508181035f830152614dbd81614d84565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f614e1e602383614024565b9150614e2982614dc4565b604082019050919050565b5f6020820190508181035f830152614e4b81614e12565b9050919050565b7f4e6f7420617574686f72697a656420746f207472616e73666572207072652d6c5f8201527f697374696e672e00000000000000000000000000000000000000000000000000602082015250565b5f614eac602783614024565b9150614eb782614e52565b604082019050919050565b5f6020820190508181035f830152614ed981614ea0565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f614f14601683614024565b9150614f1f82614ee0565b602082019050919050565b5f6020820190508181035f830152614f4181614f08565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f614fa2603583614024565b9150614fad82614f48565b604082019050919050565b5f6020820190508181035f830152614fcf81614f96565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f61500a601383614024565b915061501582614fd6565b602082019050919050565b5f6020820190508181035f83015261503781614ffe565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f615098603683614024565b91506150a38261503e565b604082019050919050565b5f6020820190508181035f8301526150c58161508c565b9050919050565b5f6150d6826140c4565b91506150e1836140c4565b92508282039050818111156150f9576150f861448e565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f615159602683614024565b9150615164826150ff565b604082019050919050565b5f6020820190508181035f8301526151868161514d565b9050919050565b5f6060820190506151a05f830186614135565b6151ad6020830185614135565b6151ba6040830184614135565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8151905061522a81613f92565b92915050565b5f6020828403121561524557615244613f5e565b5b5f6152528482850161521c565b91505092915050565b5f819050919050565b5f61527e6152796152748461525b565b61415d565b6140c4565b9050919050565b61528e81615264565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6152c681613f81565b82525050565b5f6152d783836152bd565b60208301905092915050565b5f602082019050919050565b5f6152f982615294565b615303818561529e565b935061530e836152ae565b805f5b8381101561533e57815161532588826152cc565b9750615330836152e3565b925050600181019050615311565b5085935050505092915050565b5f60a08201905061535e5f830188614135565b61536b6020830187615285565b818103604083015261537d81866152ef565b905061538c606083018561424c565b6153996080830184614135565b9695505050505050565b5f60c0820190506153b65f83018961424c565b6153c36020830188614135565b6153d06040830187615285565b6153dd6060830186615285565b6153ea608083018561424c565b6153f760a0830184614135565b979650505050505050565b5f805f6060848603121561541957615418613f5e565b5b5f61542686828701614751565b935050602061543786828701614751565b925050604061544886828701614751565b915050925092509256fea2646970667358221220c3b73a70679433e270efadbb776a157d6b8f7dbbe24f4f9725d6a786c367808d64736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: No
SentAI.sol 1471 lines
/**
    SentAI

    Website:      https://sentai.info/
    Twitter:      https://x.com/SentAI_ETH
    Telegram:     https://t.me/SentAI_ETH
**/

// SPDX-License-Identifier: MIT
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 SentAI is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public constant deadAddress = address(0xdead);

    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 = true;
    bool public swapEnabled = true;

    uint256 public buyTotalFees;
    uint256 public buyRevShareFee;
    uint256 public buyLiquidityFee;
    uint256 public buyTeamFee;

    uint256 public sellTotalFees;
    uint256 public sellRevShareFee;
    uint256 public sellLiquidityFee;
    uint256 public sellTeamFee;

    uint256 public tokensForRevShare;
    uint256 public tokensForLiquidity;
    uint256 public tokensForTeam;

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

    // exclude 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;

    bool public preListingPhase = false;
    mapping(address => bool) public preListingTransferrable;

    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 SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );

    constructor() ERC20("SentAI", "SENTAI") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );

        excludeFromMaxTransaction(address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D), true);
        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f)
            .createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        uint256 _buyRevShareFee = 4;
        uint256 _buyLiquidityFee = 0;
        uint256 _buyTeamFee = 1;

        uint256 _sellRevShareFee = 4;
        uint256 _sellLiquidityFee = 0;
        uint256 _sellTeamFee = 1;

        uint256 totalSupply = 1_000_000 * 1e18;

        maxTransactionAmount = 10_000 * 1e18; // 1%
        maxWallet = 10_000 * 1e18; // 1%
        swapTokensAtAmount = (totalSupply * 1) / 500; // 0.2%

        buyRevShareFee = _buyRevShareFee;
        buyLiquidityFee = _buyLiquidityFee;
        buyTeamFee = _buyTeamFee;
        buyTotalFees = buyRevShareFee + buyLiquidityFee + buyTeamFee;

        sellRevShareFee = _sellRevShareFee;
        sellLiquidityFee = _sellLiquidityFee;
        sellTeamFee = _sellTeamFee;
        sellTotalFees = sellRevShareFee + sellLiquidityFee + sellTeamFee;

        revShareWallet = address(0xF2ae345E06f5DaDEfCE769E4273D729491aB57f0); // set as MW wallet
        teamWallet = address(0x61849e17A41EE831aA5c9689C3680933EB07c94c); // set as Team wallet

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

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

        excludeFromFees(revShareWallet, true);
        excludeFromFees(teamWallet, true);

        excludeFromMaxTransaction(revShareWallet, true);
        excludeFromMaxTransaction(teamWallet, true);

        preListingTransferrable[owner()] = 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 {}

    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
        preListingPhase = false;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool) {
        limitsInEffect = 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() * 1) / 100,
            "Swap amount cannot be higher than 1.0% 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;
    }

    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    function updateBuyFees(
        uint256 _revShareFee,
        uint256 _liquidityFee,
        uint256 _teamFee
    ) external onlyOwner {
        buyRevShareFee = _revShareFee;
        buyLiquidityFee = _liquidityFee;
        buyTeamFee = _teamFee;
        buyTotalFees = buyRevShareFee + buyLiquidityFee + buyTeamFee;
        require(buyTotalFees <= 49, "Buy fees must be <= 49.");
    }

    function updateSellFees(
        uint256 _revShareFee,
        uint256 _liquidityFee,
        uint256 _teamFee
    ) external onlyOwner {
        sellRevShareFee = _revShareFee;
        sellLiquidityFee = _liquidityFee;
        sellTeamFee = _teamFee;
        sellTotalFees = sellRevShareFee + sellLiquidityFee + sellTeamFee;
        require(sellTotalFees <= 49, "Sell fees must be <= 49.");
    }

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

        if (preListingPhase) {
            require(preListingTransferrable[from], "Not authorized to transfer pre-listing.");
        }

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

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

        uint256 contractTokenBalance = balanceOf(address(this));

        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;

            swapBack();

            swapping = false;
        }

        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0) {
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees;
                tokensForTeam += (fees * sellTeamFee) / sellTotalFees;
                tokensForRevShare += (fees * sellRevShareFee) / sellTotalFees;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees;
                tokensForTeam += (fees * buyTeamFee) / buyTotalFees;
                tokensForRevShare += (fees * buyRevShareFee) / 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 = tokensForLiquidity +
            tokensForRevShare +
            tokensForTeam;
        bool success;

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

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

        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
            totalTokensToSwap /
            2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);

        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH);

        uint256 ethBalance = address(this).balance.sub(initialETHBalance);

        uint256 ethForRevShare = ethBalance.mul(tokensForRevShare).div(totalTokensToSwap - (tokensForLiquidity / 2));

        uint256 ethForTeam = ethBalance.mul(tokensForTeam).div(totalTokensToSwap - (tokensForLiquidity / 2));

        uint256 ethForLiquidity = ethBalance - ethForRevShare - ethForTeam;

        tokensForLiquidity = 0;
        tokensForRevShare = 0;
        tokensForTeam = 0;

        (success, ) = address(teamWallet).call{value: ethForTeam}("");

        if (liquidityTokens > 0 && ethForLiquidity > 0) {
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(
                amountToSwapForETH,
                ethForLiquidity,
                tokensForLiquidity
            );
        }

        (success, ) = address(revShareWallet).call{value: address(this).balance}("");
    }

    function withdrawStuckToken() external onlyOwner {
        uint256 balance = IERC20(address(this)).balanceOf(address(this));
        IERC20(address(this)).transfer(msg.sender, balance);
        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 setPreListingTransferable(address _addr, bool isAuthorized) public onlyOwner {
        preListingTransferrable[_addr] = isAuthorized;
        excludeFromFees(_addr, isAuthorized);
        excludeFromMaxTransaction(_addr, isAuthorized);
    }
}

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyRevShareFee 0x156c2f35 → uint256
buyTeamFee 0x9c2e4ac6 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
preListingPhase 0x6490015c → bool
preListingTransferrable 0x04fa50c2 → bool
revShareWallet 0x782c4e99 → address
sellLiquidityFee 0xf6374342 → uint256
sellRevShareFee 0x19eab042 → uint256
sellTeamFee 0xd729715f → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
teamWallet 0x59927044 → address
tokensForLiquidity 0x1a8145bb → uint256
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
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
setPreListingTransferable 0xe82493a9
address _addr
bool isAuthorized
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x8095d564
uint256 _revShareFee
uint256 _liquidityFee
uint256 _teamFee
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateRevShareWallet 0xadee28ff
address newRevShareWallet
updateSellFees 0xc17b5b8c
uint256 _revShareFee
uint256 _liquidityFee
uint256 _teamFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updateTeamWallet 0x7cb332bb
address newWallet
withdrawStuckEth 0x7ca8448a
address toAddr
withdrawStuckToken 0x84dd4452
No parameters
withdrawStuckToken 0xbc205ad3
address _token
address _to

Recent Transactions

No transactions found for this address