Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x712c89892942CD107Ce18cF5BB40F9bDd0849A8F
Balance 0 ETH
Nonce 1
Code Size 19737 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19737 bytes
0x608060405260043610610302575f3560e01c80638a8c523c1161018f578063b70143c9116100db578063d85ba06311610094578063e6819ba71161006e578063e6819ba714610b65578063e884f26014610ba1578063f1b9ad6b14610bcb578063f2fde38b14610bf357610309565b8063d85ba06314610ad5578063dd62ed3e14610aff578063e2f4560514610b3b57610309565b8063b70143c9146109cd578063b819a1a9146109f5578063bbc0c74214610a1d578063c024666814610a47578063c876d0b914610a6f578063d257b34f14610a9957610309565b80639c3b4fdc11610148578063a457c2d711610122578063a457c2d7146108ef578063a72f45861461092b578063a9059cbb14610955578063b62496f51461099157610309565b80639c3b4fdc146108715780639fccce321461089b578063a0d82dc5146108c557610309565b80638a8c523c1461078d5780638da5cb5b146107a357806392136913146107cd578063924de9b7146107f757806395d89b411461081f5780639a7a23d61461084957610309565b806349bd5a5e1161024e5780636a486a8e11610207578063715018a6116101e1578063715018a6146106f95780637437681e1461070f578063751039fc146107395780637bce5a041461076357610309565b80636a486a8e146106695780636ddd17131461069357806370a08231146106bd57610309565b806349bd5a5e1461055f5780634a62bb65146105895780634fbee193146105b357806361528e27146105ef578063644130d81461061957806366ca9b831461064157610309565b8063217580a2116102bb57806330a136ad1161029557806330a136ad146104a55780633103b39e146104cf578063313ce567146104f9578063395093511461052357610309565b8063217580a21461041757806323b872dd1461043f57806327c8f8351461047b57610309565b806302dbd8f81461030d57806306fdde0314610335578063095ea7b31461035f5780631694505e1461039b57806318160ddd146103c5578063203e727e146103ef57610309565b3661030957005b5f80fd5b348015610318575f80fd5b50610333600480360381019061032e9190613959565b610c1b565b005b348015610340575f80fd5b50610349610d05565b6040516103569190613a21565b60405180910390f35b34801561036a575f80fd5b5061038560048036038101906103809190613a9b565b610d95565b6040516103929190613af3565b60405180910390f35b3480156103a6575f80fd5b506103af610db2565b6040516103bc9190613b67565b60405180910390f35b3480156103d0575f80fd5b506103d9610dd6565b6040516103e69190613b8f565b60405180910390f35b3480156103fa575f80fd5b5061041560048036038101906104109190613ba8565b610ddf565b005b348015610422575f80fd5b5061043d60048036038101906104389190613ba8565b610eee565b005b34801561044a575f80fd5b5061046560048036038101906104609190613bd3565b610ffd565b6040516104729190613af3565b60405180910390f35b348015610486575f80fd5b5061048f6110ef565b60405161049c9190613c32565b60405180910390f35b3480156104b0575f80fd5b506104b96110f5565b6040516104c69190613b8f565b60405180910390f35b3480156104da575f80fd5b506104e36110fb565b6040516104f09190613c32565b60405180910390f35b348015610504575f80fd5b5061050d611120565b60405161051a9190613c66565b60405180910390f35b34801561052e575f80fd5b5061054960048036038101906105449190613a9b565b611128565b6040516105569190613af3565b60405180910390f35b34801561056a575f80fd5b506105736111cf565b6040516105809190613c32565b60405180910390f35b348015610594575f80fd5b5061059d6111f4565b6040516105aa9190613af3565b60405180910390f35b3480156105be575f80fd5b506105d960048036038101906105d49190613c7f565b611206565b6040516105e69190613af3565b60405180910390f35b3480156105fa575f80fd5b50610603611258565b6040516106109190613b8f565b60405180910390f35b348015610624575f80fd5b5061063f600480360381019061063a9190613cd4565b61125e565b005b34801561064c575f80fd5b5061066760048036038101906106629190613959565b611332565b005b348015610674575f80fd5b5061067d61141c565b60405161068a9190613b8f565b60405180910390f35b34801561069e575f80fd5b506106a7611422565b6040516106b49190613af3565b60405180910390f35b3480156106c8575f80fd5b506106e360048036038101906106de9190613c7f565b611435565b6040516106f09190613b8f565b60405180910390f35b348015610704575f80fd5b5061070d61147a565b005b34801561071a575f80fd5b50610723611501565b6040516107309190613b8f565b60405180910390f35b348015610744575f80fd5b5061074d611507565b60405161075a9190613af3565b60405180910390f35b34801561076e575f80fd5b506107776115a4565b6040516107849190613b8f565b60405180910390f35b348015610798575f80fd5b506107a16115aa565b005b3480156107ae575f80fd5b506107b761165e565b6040516107c49190613c32565b60405180910390f35b3480156107d8575f80fd5b506107e1611686565b6040516107ee9190613b8f565b60405180910390f35b348015610802575f80fd5b5061081d60048036038101906108189190613d12565b61168c565b005b34801561082a575f80fd5b50610833611725565b6040516108409190613a21565b60405180910390f35b348015610854575f80fd5b5061086f600480360381019061086a9190613cd4565b6117b5565b005b34801561087c575f80fd5b506108856118ce565b6040516108929190613b8f565b60405180910390f35b3480156108a6575f80fd5b506108af6118d4565b6040516108bc9190613b8f565b60405180910390f35b3480156108d0575f80fd5b506108d96118da565b6040516108e69190613b8f565b60405180910390f35b3480156108fa575f80fd5b5061091560048036038101906109109190613a9b565b6118e0565b6040516109229190613af3565b60405180910390f35b348015610936575f80fd5b5061093f6119c6565b60405161094c9190613c32565b60405180910390f35b348015610960575f80fd5b5061097b60048036038101906109769190613a9b565b6119eb565b6040516109889190613af3565b60405180910390f35b34801561099c575f80fd5b506109b760048036038101906109b29190613c7f565b611a08565b6040516109c49190613af3565b60405180910390f35b3480156109d8575f80fd5b506109f360048036038101906109ee9190613ba8565b611a25565b005b348015610a00575f80fd5b50610a1b6004803603810190610a169190613c7f565b611ae6565b005b348015610a28575f80fd5b50610a31611c20565b604051610a3e9190613af3565b60405180910390f35b348015610a52575f80fd5b50610a6d6004803603810190610a689190613cd4565b611c33565b005b348015610a7a575f80fd5b50610a83611d55565b604051610a909190613af3565b60405180910390f35b348015610aa4575f80fd5b50610abf6004803603810190610aba9190613ba8565b611d67565b604051610acc9190613af3565b60405180910390f35b348015610ae0575f80fd5b50610ae9611ebb565b604051610af69190613b8f565b60405180910390f35b348015610b0a575f80fd5b50610b256004803603810190610b209190613d3d565b611ec1565b604051610b329190613b8f565b60405180910390f35b348015610b46575f80fd5b50610b4f611f43565b604051610b5c9190613b8f565b60405180910390f35b348015610b70575f80fd5b50610b8b6004803603810190610b869190613c7f565b611f49565b604051610b989190613af3565b60405180910390f35b348015610bac575f80fd5b50610bb5611f66565b604051610bc29190613af3565b60405180910390f35b348015610bd6575f80fd5b50610bf16004803603810190610bec9190613c7f565b612003565b005b348015610bfe575f80fd5b50610c196004803603810190610c149190613c7f565b61213d565b005b610c23612233565b73ffffffffffffffffffffffffffffffffffffffff16610c4161165e565b73ffffffffffffffffffffffffffffffffffffffff1614610c97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8e90613dc5565b60405180910390fd5b8160138190555080601481905550601454601354610cb59190613e10565b601281905550604b6012541115610d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf890613e8d565b60405180910390fd5b5050565b606060038054610d1490613ed8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d4090613ed8565b8015610d8b5780601f10610d6257610100808354040283529160200191610d8b565b820191905f5260205f20905b815481529060010190602001808311610d6e57829003601f168201915b5050505050905090565b5f610da8610da1612233565b848461223a565b6001905092915050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610de7612233565b73ffffffffffffffffffffffffffffffffffffffff16610e0561165e565b73ffffffffffffffffffffffffffffffffffffffff1614610e5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5290613dc5565b60405180910390fd5b670de0b6b3a76400006103e86001610e71610dd6565b610e7b9190613f08565b610e859190613f76565b610e8f9190613f76565b811015610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890613ff0565b60405180910390fd5b670de0b6b3a764000081610ee59190613f08565b60098190555050565b610ef6612233565b73ffffffffffffffffffffffffffffffffffffffff16610f1461165e565b73ffffffffffffffffffffffffffffffffffffffff1614610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6190613dc5565b60405180910390fd5b670de0b6b3a76400006103e86005610f80610dd6565b610f8a9190613f08565b610f949190613f76565b610f9e9190613f76565b811015610fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd79061407e565b60405180910390fd5b670de0b6b3a764000081610ff49190613f08565b600b8190555050565b5f6110098484846123fd565b5f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f611050612233565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050828110156110cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c69061410c565b60405180910390fd5b6110e3856110db612233565b85840361223a565b60019150509392505050565b61dead81565b600b5481565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6012905090565b5f6111c5611134612233565b848460015f611141612233565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546111c09190613e10565b61223a565b6001905092915050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5f9054906101000a900460ff1681565b5f60185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60155481565b611266612233565b73ffffffffffffffffffffffffffffffffffffffff1661128461165e565b73ffffffffffffffffffffffffffffffffffffffff16146112da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d190613dc5565b60405180910390fd5b8060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b61133a612233565b73ffffffffffffffffffffffffffffffffffffffff1661135861165e565b73ffffffffffffffffffffffffffffffffffffffff16146113ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a590613dc5565b60405180910390fd5b81601081905550806011819055506011546010546113cc9190613e10565b600f81905550604b600f541115611418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140f90613e8d565b60405180910390fd5b5050565b60125481565b600c60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611482612233565b73ffffffffffffffffffffffffffffffffffffffff166114a061165e565b73ffffffffffffffffffffffffffffffffffffffff16146114f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ed90613dc5565b60405180910390fd5b6114ff5f613101565b565b60095481565b5f611510612233565b73ffffffffffffffffffffffffffffffffffffffff1661152e61165e565b73ffffffffffffffffffffffffffffffffffffffff1614611584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157b90613dc5565b60405180910390fd5b5f600c5f6101000a81548160ff0219169083151502179055506001905090565b60105481565b6115b2612233565b73ffffffffffffffffffffffffffffffffffffffff166115d061165e565b73ffffffffffffffffffffffffffffffffffffffff1614611626576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161d90613dc5565b60405180910390fd5b6001600c60016101000a81548160ff0219169083151502179055506001600c60026101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60135481565b611694612233565b73ffffffffffffffffffffffffffffffffffffffff166116b261165e565b73ffffffffffffffffffffffffffffffffffffffff1614611708576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ff90613dc5565b60405180910390fd5b80600c60026101000a81548160ff02191690831515021790555050565b60606004805461173490613ed8565b80601f016020809104026020016040519081016040528092919081815260200182805461176090613ed8565b80156117ab5780601f10611782576101008083540402835291602001916117ab565b820191905f5260205f20905b81548152906001019060200180831161178e57829003601f168201915b5050505050905090565b6117bd612233565b73ffffffffffffffffffffffffffffffffffffffff166117db61165e565b73ffffffffffffffffffffffffffffffffffffffff1614611831576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182890613dc5565b60405180910390fd5b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b79061419a565b60405180910390fd5b6118ca82826131c4565b5050565b60115481565b60165481565b60145481565b5f8060015f6118ed612233565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050828110156119a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199e90614228565b60405180910390fd5b6119bb6119b2612233565b8585840361223a565b600191505092915050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6119fe6119f7612233565b84846123fd565b6001905092915050565b601a602052805f5260405f205f915054906101000a900460ff1681565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a65612233565b73ffffffffffffffffffffffffffffffffffffffff1614611a84575f80fd5b611a8d30611435565b8111158015611a9b57505f81115b611ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad190614290565b60405180910390fd5b611ae381613262565b50565b611aee612233565b73ffffffffffffffffffffffffffffffffffffffff16611b0c61165e565b73ffffffffffffffffffffffffffffffffffffffff1614611b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5990613dc5565b60405180910390fd5b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f9e3da7e72199adc414f24e73d3985f288cce5edbc5c370e29af583afdd78c2c260405160405180910390a38060085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60019054906101000a900460ff1681565b611c3b612233565b73ffffffffffffffffffffffffffffffffffffffff16611c5961165e565b73ffffffffffffffffffffffffffffffffffffffff1614611caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca690613dc5565b60405180910390fd5b8060185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611d499190613af3565b60405180910390a25050565b600e5f9054906101000a900460ff1681565b5f611d70612233565b73ffffffffffffffffffffffffffffffffffffffff16611d8e61165e565b73ffffffffffffffffffffffffffffffffffffffff1614611de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ddb90613dc5565b60405180910390fd5b620186a06001611df2610dd6565b611dfc9190613f08565b611e069190613f76565b821015611e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3f9061431e565b60405180910390fd5b6103e86005611e55610dd6565b611e5f9190613f08565b611e699190613f76565b821115611eab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea2906143ac565b60405180910390fd5b81600a8190555060019050919050565b600f5481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600a5481565b6019602052805f5260405f205f915054906101000a900460ff1681565b5f611f6f612233565b73ffffffffffffffffffffffffffffffffffffffff16611f8d61165e565b73ffffffffffffffffffffffffffffffffffffffff1614611fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fda90613dc5565b60405180910390fd5b5f600e5f6101000a81548160ff0219169083151502179055506001905090565b61200b612233565b73ffffffffffffffffffffffffffffffffffffffff1661202961165e565b73ffffffffffffffffffffffffffffffffffffffff161461207f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207690613dc5565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f455cf943964d06e77e44126ecca5a66b2c9721f4576a31f8693127282c55700f60405160405180910390a38060075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612145612233565b73ffffffffffffffffffffffffffffffffffffffff1661216361165e565b73ffffffffffffffffffffffffffffffffffffffff16146121b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b090613dc5565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221e9061443a565b60405180910390fd5b61223081613101565b50565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f906144c8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230d90614556565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516123f09190613b8f565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361246b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612462906145e4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090614672565b60405180910390fd5b60175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612563576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255a906146da565b60405180910390fd5b60175f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156125ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e490614742565b60405180910390fd5b5f8103612604576125ff83835f613495565b6130fc565b600c5f9054906101000a900460ff1615612cac5761262061165e565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561268e575061265e61165e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126c657505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612700575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156127195750600660149054906101000a900460ff16155b15612cab57600c60019054906101000a900460ff1661280d5760185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806127cd575060185f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b61280c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612803906147aa565b60405180910390fd5b5b600e5f9054906101000a900460ff16156129d15761282961165e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156128b057507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612909575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156129d05743600d5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541061298d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129849061485e565b60405180910390fd5b43600d5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612a6e575060195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612b1557600954811115612ab8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aaf906148ec565b60405180910390fd5b600b54612ac483611435565b82612acf9190613e10565b1115612b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0790614954565b60405180910390fd5b612caa565b601a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612bb2575060195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612c0157600954811115612bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf3906149e2565b60405180910390fd5b612ca9565b60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612ca857600b54612c5b83611435565b82612c669190613e10565b1115612ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9e90614954565b60405180910390fd5b5b5b5b5b5b5f612cb630611435565b90505f600a548210159050808015612cda5750600c60029054906101000a900460ff165b8015612cf35750600660149054906101000a900460ff16155b8015612d465750601a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612d99575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612dec575060185f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612e2f576001600660146101000a81548160ff021916908315150217905550612e1461370a565b5f600660146101000a81548160ff0219169083151502179055505b5f600660149054906101000a900460ff1615905060185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612ede575060185f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15612ee7575f90505b5f81156130ec57601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612f4557505f601254115b15612fdd57612f726064612f64601254886138d990919063ffffffff16565b6138ee90919063ffffffff16565b905060125460145482612f859190613f08565b612f8f9190613f76565b60165f828254612f9f9190613e10565b9250508190555060125460135482612fb79190613f08565b612fc19190613f76565b60155f828254612fd19190613e10565b925050819055506130c9565b601a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561303457505f600f54115b156130c8576130616064613053600f54886138d990919063ffffffff16565b6138ee90919063ffffffff16565b9050600f54601154826130749190613f08565b61307e9190613f76565b60165f82825461308e9190613e10565b92505081905550600f54601054826130a69190613f08565b6130b09190613f76565b60155f8282546130c09190613e10565b925050819055505b5b5f8111156130dd576130dc873083613495565b5b80856130e99190614a00565b94505b6130f7878787613495565b505050505b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f600267ffffffffffffffff81111561327e5761327d614a33565b5b6040519080825280602002602001820160405280156132ac5781602001602082028036833780820191505090505b50905030815f815181106132c3576132c2614a60565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613366573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061338a9190614aa1565b8160018151811061339e5761339d614a60565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613403307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461223a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401613464959493929190614bbc565b5f604051808303815f87803b15801561347b575f80fd5b505af115801561348d573d5f803e3d5ffd5b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603613503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134fa906145e4565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161356890614672565b60405180910390fd5b61357c838383613903565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156135ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135f690614c84565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825461368d9190613e10565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516136f19190613b8f565b60405180910390a3613704848484613908565b50505050565b5f61371430611435565b90505f6016546015546137279190613e10565b90505f808303613739575050506138d7565b6014600a546137489190613f08565b831115613761576014600a5461375e9190613f08565b92505b5f47905061376e84613262565b5f613782824761390d90919063ffffffff16565b90505f6137ac8561379e601654856138d990919063ffffffff16565b6138ee90919063ffffffff16565b90505f6015819055505f60168190555060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161380190614ccf565b5f6040518083038185875af1925050503d805f811461383b576040519150601f19603f3d011682016040523d82523d5f602084013e613840565b606091505b50508094505060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161388b90614ccf565b5f6040518083038185875af1925050503d805f81146138c5576040519150601f19603f3d011682016040523d82523d5f602084013e6138ca565b606091505b5050809450505050505050505b565b5f81836138e69190613f08565b905092915050565b5f81836138fb9190613f76565b905092915050565b505050565b505050565b5f818361391a9190614a00565b905092915050565b5f80fd5b5f819050919050565b61393881613926565b8114613942575f80fd5b50565b5f813590506139538161392f565b92915050565b5f806040838503121561396f5761396e613922565b5b5f61397c85828601613945565b925050602061398d85828601613945565b9150509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156139ce5780820151818401526020810190506139b3565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6139f382613997565b6139fd81856139a1565b9350613a0d8185602086016139b1565b613a16816139d9565b840191505092915050565b5f6020820190508181035f830152613a3981846139e9565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613a6a82613a41565b9050919050565b613a7a81613a60565b8114613a84575f80fd5b50565b5f81359050613a9581613a71565b92915050565b5f8060408385031215613ab157613ab0613922565b5b5f613abe85828601613a87565b9250506020613acf85828601613945565b9150509250929050565b5f8115159050919050565b613aed81613ad9565b82525050565b5f602082019050613b065f830184613ae4565b92915050565b5f819050919050565b5f613b2f613b2a613b2584613a41565b613b0c565b613a41565b9050919050565b5f613b4082613b15565b9050919050565b5f613b5182613b36565b9050919050565b613b6181613b47565b82525050565b5f602082019050613b7a5f830184613b58565b92915050565b613b8981613926565b82525050565b5f602082019050613ba25f830184613b80565b92915050565b5f60208284031215613bbd57613bbc613922565b5b5f613bca84828501613945565b91505092915050565b5f805f60608486031215613bea57613be9613922565b5b5f613bf786828701613a87565b9350506020613c0886828701613a87565b9250506040613c1986828701613945565b9150509250925092565b613c2c81613a60565b82525050565b5f602082019050613c455f830184613c23565b92915050565b5f60ff82169050919050565b613c6081613c4b565b82525050565b5f602082019050613c795f830184613c57565b92915050565b5f60208284031215613c9457613c93613922565b5b5f613ca184828501613a87565b91505092915050565b613cb381613ad9565b8114613cbd575f80fd5b50565b5f81359050613cce81613caa565b92915050565b5f8060408385031215613cea57613ce9613922565b5b5f613cf785828601613a87565b9250506020613d0885828601613cc0565b9150509250929050565b5f60208284031215613d2757613d26613922565b5b5f613d3484828501613cc0565b91505092915050565b5f8060408385031215613d5357613d52613922565b5b5f613d6085828601613a87565b9250506020613d7185828601613a87565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613daf6020836139a1565b9150613dba82613d7b565b602082019050919050565b5f6020820190508181035f830152613ddc81613da3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613e1a82613926565b9150613e2583613926565b9250828201905080821115613e3d57613e3c613de3565b5b92915050565b7f4d757374206b656570206665657320617420373525206f72206c6573730000005f82015250565b5f613e77601d836139a1565b9150613e8282613e43565b602082019050919050565b5f6020820190508181035f830152613ea481613e6b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613eef57607f821691505b602082108103613f0257613f01613eab565b5b50919050565b5f613f1282613926565b9150613f1d83613926565b9250828202613f2b81613926565b91508282048414831517613f4257613f41613de3565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613f8082613926565b9150613f8b83613926565b925082613f9b57613f9a613f49565b5b828204905092915050565b7f43616e6e6f7420736574206d61785478206c6f776572207468616e20302e31255f82015250565b5f613fda6020836139a1565b9150613fe582613fa6565b602082019050919050565b5f6020820190508181035f83015261400781613fce565b9050919050565b7f43616e6e6f7420736574206d617857616c6c657473206c6f776572207468616e5f8201527f20302e3525000000000000000000000000000000000000000000000000000000602082015250565b5f6140686025836139a1565b91506140738261400e565b604082019050919050565b5f6020820190508181035f8301526140958161405c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f6140f66028836139a1565b91506141018261409c565b604082019050919050565b5f6020820190508181035f830152614123816140ea565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6141846039836139a1565b915061418f8261412a565b604082019050919050565b5f6020820190508181035f8301526141b181614178565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f6142126025836139a1565b915061421d826141b8565b604082019050919050565b5f6020820190508181035f83015261423f81614206565b9050919050565b7f57726f6e6720616d6f756e7400000000000000000000000000000000000000005f82015250565b5f61427a600c836139a1565b915061428582614246565b602082019050919050565b5f6020820190508181035f8301526142a78161426e565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f6143086035836139a1565b9150614313826142ae565b604082019050919050565b5f6020820190508181035f830152614335816142fc565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f6143966034836139a1565b91506143a18261433c565b604082019050919050565b5f6020820190508181035f8301526143c38161438a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6144246026836139a1565b915061442f826143ca565b604082019050919050565b5f6020820190508181035f83015261445181614418565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6144b26024836139a1565b91506144bd82614458565b604082019050919050565b5f6020820190508181035f8301526144df816144a6565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6145406022836139a1565b915061454b826144e6565b604082019050919050565b5f6020820190508181035f83015261456d81614534565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6145ce6025836139a1565b91506145d982614574565b604082019050919050565b5f6020820190508181035f8301526145fb816145c2565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f61465c6023836139a1565b915061466782614602565b604082019050919050565b5f6020820190508181035f83015261468981614650565b9050919050565b7f5b66726f6d5d20626c61636b206c6973740000000000000000000000000000005f82015250565b5f6146c46011836139a1565b91506146cf82614690565b602082019050919050565b5f6020820190508181035f8301526146f1816146b8565b9050919050565b7f5b746f5d20626c61636b206c69737400000000000000000000000000000000005f82015250565b5f61472c600f836139a1565b9150614737826146f8565b602082019050919050565b5f6020820190508181035f83015261475981614720565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6147946016836139a1565b915061479f82614760565b602082019050919050565b5f6020820190508181035f8301526147c181614788565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b5f6148486049836139a1565b9150614853826147c8565b606082019050919050565b5f6020820190508181035f8301526148758161483c565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d617854782e0000000000000000000000000000000000000000000000000000602082015250565b5f6148d66026836139a1565b91506148e18261487c565b604082019050919050565b5f6020820190508181035f830152614903816148ca565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f61493e6013836139a1565b91506149498261490a565b602082019050919050565b5f6020820190508181035f83015261496b81614932565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d617854782e00000000000000000000000000000000000000000000000000602082015250565b5f6149cc6027836139a1565b91506149d782614972565b604082019050919050565b5f6020820190508181035f8301526149f9816149c0565b9050919050565b5f614a0a82613926565b9150614a1583613926565b9250828203905081811115614a2d57614a2c613de3565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050614a9b81613a71565b92915050565b5f60208284031215614ab657614ab5613922565b5b5f614ac384828501614a8d565b91505092915050565b5f819050919050565b5f614aef614aea614ae584614acc565b613b0c565b613926565b9050919050565b614aff81614ad5565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614b3781613a60565b82525050565b5f614b488383614b2e565b60208301905092915050565b5f602082019050919050565b5f614b6a82614b05565b614b748185614b0f565b9350614b7f83614b1f565b805f5b83811015614baf578151614b968882614b3d565b9750614ba183614b54565b925050600181019050614b82565b5085935050505092915050565b5f60a082019050614bcf5f830188613b80565b614bdc6020830187614af6565b8181036040830152614bee8186614b60565b9050614bfd6060830185613c23565b614c0a6080830184613b80565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f614c6e6026836139a1565b9150614c7982614c14565b604082019050919050565b5f6020820190508181035f830152614c9b81614c62565b9050919050565b5f81905092915050565b50565b5f614cba5f83614ca2565b9150614cc582614cac565b5f82019050919050565b5f614cd982614caf565b915081905091905056fea2646970667358221220b2de69c7e089060fd1ff952e29ae4d9b2cbe98171e3d39883d762a631e4f2abf64736f6c63430008170033

Verified Source Code Partial Match

Compiler: v0.8.23+commit.f704f362 EVM: shanghai Optimization: No
Kairo.sol 919 lines
/*
Website: https://kairolabs.io/
Documentation: https://docs.kairolabs.io
Twitter: https://x.com/kairodapp
Telegram: https://t.me/kairolabs
Discord: https://discord.gg/kairolabs
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.23;

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

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

abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

interface IERC20 {

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

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

interface IERC20Metadata is IERC20 {

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

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

library SafeMath {

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

    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

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

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 Kairo is ERC20, Ownable {
    using SafeMath for uint256;

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

    bool private swapping;

    address public marketerWallet;
    address public DevsWallet;

    uint256 public maxTx;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallets;

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

    // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp;
    bool public transferDelayEnabled = true;

    uint256 public buyTotalFees;
    uint256 public buyMarketingFee;
    uint256 public buyDevFee;

    uint256 public sellTotalFees;
    uint256 public sellMarketingFee;
    uint256 public sellDevFee;

    uint256 public tokensForMarkets;
    uint256 public tokensForDev;

    mapping(address => bool) private _isBlackList;
    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) public _isExcludedmaxTx;

    mapping(address => bool) public automatedMarketMakerPairs;

    event UpdateUniswapV2Router(
        address indexed newAddress,
        address indexed oldAddress
    );

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    event marketerWalletUpdated(
        address indexed newWallet,
        address indexed olDevsWalletallet
    );

    event DevsWalletUpdated(
        address indexed newWallet,
        address indexed olDevsWalletallet
    );

    constructor() ERC20("Kairo Labs", "KAIRO") {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

        excludeFrommaxTx(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFrommaxTx(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        uint256 _buyMarketingFee = 20;
        uint256 _buyDevFee = 5;

        uint256 _sellMarketingFee = 20;
        uint256 _sellDevFee = 10;

        uint256 totalSupply = 100_000_000 * 1e18;

        maxTx = 500_000 * 1e18; // 0.5% from total supply 
        maxWallets = 500_000 * 1e18; // 0.5% from total supply
        swapTokensAtAmount = (totalSupply * 10) / 10000; // 0.1% swap wallet

        buyMarketingFee = _buyMarketingFee;
        buyDevFee = _buyDevFee;
        buyTotalFees = buyMarketingFee + buyDevFee;

        sellMarketingFee = _sellMarketingFee;
        sellDevFee = _sellDevFee;
        sellTotalFees = sellMarketingFee + sellDevFee;

        marketerWallet = address(0x459B95E24849Eba7e0c6A01B20D7056D45329f8e);
        DevsWallet = address(0x5A0999bB5b3922C356a0840a702EB24aeEe571D7);

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

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

        _mint(msg.sender, totalSupply);
    }

    receive() external payable {}

    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }

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

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

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

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

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

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

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

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

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

    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 updatemarketerWallet(address newmarketerWallet) external onlyOwner {
        emit marketerWalletUpdated(newmarketerWallet, marketerWallet);
        marketerWallet = newmarketerWallet;
    }

    function updateDevsWallet(address newWallet) external onlyOwner {
        emit DevsWalletUpdated(newWallet, DevsWallet);
        DevsWallet = newWallet;
    }

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

    event BoughtEarly(address indexed sniper);

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(!_isBlackList[from], "[from] black list");
        require(!_isBlackList[to], "[to] black list");

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

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

                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedmaxTx[to]) {
                    require(amount <= maxTx, "Buy transfer amount exceeds the maxTx.");
                    require(amount + balanceOf(to) <= maxWallets, "Max wallet exceeded");
                }
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedmaxTx[from]) {
                    require(amount <= maxTx, "Sell transfer amount exceeds the maxTx.");
                }
                else if (!_isExcludedmaxTx[to]) {
                    require(amount + balanceOf(to) <= maxWallets, "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);
                tokensForDev += (fees * sellDevFee) / sellTotalFees;
                tokensForMarkets += (fees * sellMarketingFee) / sellTotalFees;
            }
            // on buy
            else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForDev += (fees * buyDevFee) / buyTotalFees;
                tokensForMarkets += (fees * buyMarketingFee) / buyTotalFees;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

            amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    function min(uint256 a, uint256 b) private pure returns (uint256) {
        return (a > b) ? b : a;
    }

    function manualSwap(uint256 amount) external {
        require(_msgSender() == marketerWallet);
        require(amount <= balanceOf(address(this)) && amount > 0, "Wrong amount");
        swapTokensForEth(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 swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForMarkets + tokensForDev;
        bool success;

        if (contractBalance == 0) {
            return;
        }

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

        uint256 initialETHBalance = address(this).balance;
        swapTokensForEth(contractBalance);

        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);

        tokensForMarkets = 0;
        tokensForDev = 0;

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

Read Contract

DevsWallet 0x3103b39e → address
_isExcludedmaxTx 0xe6819ba7 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyMarketingFee 0x7bce5a04 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
marketerWallet 0xa72f4586 → address
maxTx 0x7437681e → uint256
maxWallets 0x30a136ad → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellMarketingFee 0x92136913 → uint256
sellTotalFees 0x6a486a8e → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForMarkets 0x61528e27 → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 22 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFrommaxTx 0x644130d8
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwap 0xb70143c9
uint256 amount
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 _marketingFee
uint256 _devFee
updateDevsWallet 0xb819a1a9
address newWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateSellFees 0x02dbd8f8
uint256 _marketingFee
uint256 _devFee
updateSwapEnabled 0x924de9b7
bool enabled
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool
updatemarketerWallet 0xf1b9ad6b
address newmarketerWallet
updatemaxWalletsAmount 0x217580a2
uint256 newNum

Recent Transactions

No transactions found for this address