Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x93f8CB8d67E76A4FC52CF2A4FA14E2fa06e987B0
Balance 0 ETH
Nonce 1
Code Size 17530 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

17530 bytes
0x60806040526004361061031d575f3560e01c80637b812b41116101aa578063a985ceef116100f6578063ce657cce11610094578063dbe66ca01161006e578063dbe66ca014610b60578063dd62ed3e14610b9c578063f2fde38b14610bd8578063fccc281314610c005761031e565b8063ce657cce14610ae6578063da0103bd14610b0e578063da4493f614610b365761031e565b8063b4b11b95116100d0578063b4b11b9514610a2e578063c16dd4a414610a6a578063c31c9c0714610a92578063cc1776d314610abc5761031e565b8063a985ceef146109b4578063abefea03146109de578063ad29ffde14610a065761031e565b80638ea5220f11610163578063a64e4f8a1161013d578063a64e4f8a146108fe578063a901dd9214610928578063a9059cbb14610950578063a91a9eb11461098c5761031e565b80638ea5220f1461088257806395d89b41146108ac578063a49a910f146108d65761031e565b80637b812b41146107885780637f635cc0146107c457806380faa3d2146107ee5780638124f7ac146108185780638a8c523c146108425780638da5cb5b146108585761031e565b806336884b6e1161026957806366a88d961161022257806370a08231116101fc57806370a08231146106e6578063715018a614610722578063728d41c914610738578063757765f8146107605761031e565b806366a88d961461066a57806368b69b9b146106945780636aa5b37f146106bc5761031e565b806336884b6e146105725780634a8c1fb41461059a5780634f7041a5146105c4578063538ba4f9146105ee578063652e2f0414610618578063667f6526146106425761031e565b8063259827e3116102d65780632f6f30ea116102b05780632f6f30ea146104ce578063313ce567146104f6578063346cc7be146105205780633582ad23146105485761031e565b8063259827e31461043e57806326991cc81461047a5780632dc0562d146104a45761031e565b806306fdde0314610320578063095ea7b31461034a578063106a5a8f1461038657806318160ddd146103ae5780631ecd7d6e146103d857806323b872dd146104025761031e565b5b005b34801561032b575f5ffd5b50610334610c2a565b6040516103419190613ab4565b60405180910390f35b348015610355575f5ffd5b50610370600480360381019061036b9190613b69565b610cba565b60405161037d9190613bc1565b60405180910390f35b348015610391575f5ffd5b506103ac60048036038101906103a79190613c65565b610cdc565b005b3480156103b9575f5ffd5b506103c2610d38565b6040516103cf9190613cd1565b60405180910390f35b3480156103e3575f5ffd5b506103ec610d41565b6040516103f99190613cd1565b60405180910390f35b34801561040d575f5ffd5b5061042860048036038101906104239190613cea565b610d47565b6040516104359190613bc1565b60405180910390f35b348015610449575f5ffd5b50610464600480360381019061045f9190613d3a565b610d75565b6040516104719190613bc1565b60405180910390f35b348015610485575f5ffd5b5061048e610d92565b60405161049b9190613d74565b60405180910390f35b3480156104af575f5ffd5b506104b8610db6565b6040516104c59190613d74565b60405180910390f35b3480156104d9575f5ffd5b506104f460048036038101906104ef9190613c65565b610ddb565b005b348015610501575f5ffd5b5061050a6110e0565b6040516105179190613da8565b60405180910390f35b34801561052b575f5ffd5b5061054660048036038101906105419190613d3a565b6110e8565b005b348015610553575f5ffd5b5061055c611379565b6040516105699190613bc1565b60405180910390f35b34801561057d575f5ffd5b5061059860048036038101906105939190613dc1565b61138c565b005b3480156105a5575f5ffd5b506105ae611431565b6040516105bb9190613bc1565b60405180910390f35b3480156105cf575f5ffd5b506105d8611444565b6040516105e59190613cd1565b60405180910390f35b3480156105f9575f5ffd5b5061060261144a565b60405161060f9190613d74565b60405180910390f35b348015610623575f5ffd5b5061062c61144e565b6040516106399190613cd1565b60405180910390f35b34801561064d575f5ffd5b5061066860048036038101906106639190613dec565b611454565b005b348015610675575f5ffd5b5061067e6114e4565b60405161068b9190613cd1565b60405180910390f35b34801561069f575f5ffd5b506106ba60048036038101906106b59190613e2a565b6114ea565b005b3480156106c7575f5ffd5b506106d0611546565b6040516106dd9190613cd1565b60405180910390f35b3480156106f1575f5ffd5b5061070c60048036038101906107079190613d3a565b61154c565b6040516107199190613cd1565b60405180910390f35b34801561072d575f5ffd5b50610736611592565b005b348015610743575f5ffd5b5061075e60048036038101906107599190613dc1565b6115a5565b005b34801561076b575f5ffd5b5061078660048036038101906107819190613dc1565b61164a565b005b348015610793575f5ffd5b506107ae60048036038101906107a99190613d3a565b6116ef565b6040516107bb9190613bc1565b60405180910390f35b3480156107cf575f5ffd5b506107d861170c565b6040516107e59190613cd1565b60405180910390f35b3480156107f9575f5ffd5b50610802611711565b60405161080f9190613cd1565b60405180910390f35b348015610823575f5ffd5b5061082c611717565b6040516108399190613cd1565b60405180910390f35b34801561084d575f5ffd5b5061085661171d565b005b348015610863575f5ffd5b5061086c6117c3565b6040516108799190613d74565b60405180910390f35b34801561088d575f5ffd5b506108966117ea565b6040516108a39190613d74565b60405180910390f35b3480156108b7575f5ffd5b506108c061180f565b6040516108cd9190613ab4565b60405180910390f35b3480156108e1575f5ffd5b506108fc60048036038101906108f79190613dc1565b61189f565b005b348015610909575f5ffd5b506109126119a4565b60405161091f9190613bc1565b60405180910390f35b348015610933575f5ffd5b5061094e60048036038101906109499190613e2a565b6119b7565b005b34801561095b575f5ffd5b5061097660048036038101906109719190613b69565b611a13565b6040516109839190613bc1565b60405180910390f35b348015610997575f5ffd5b506109b260048036038101906109ad9190613d3a565b611a35565b005b3480156109bf575f5ffd5b506109c8611b65565b6040516109d59190613bc1565b60405180910390f35b3480156109e9575f5ffd5b50610a0460048036038101906109ff9190613d3a565b611b78565b005b348015610a11575f5ffd5b50610a2c6004803603810190610a279190613c65565b611ca8565b005b348015610a39575f5ffd5b50610a546004803603810190610a4f9190613d3a565b611d04565b604051610a619190613bc1565b60405180910390f35b348015610a75575f5ffd5b50610a906004803603810190610a8b9190613e55565b611d21565b005b348015610a9d575f5ffd5b50610aa6611db8565b604051610ab39190613eee565b60405180910390f35b348015610ac7575f5ffd5b50610ad0611ddc565b604051610add9190613cd1565b60405180910390f35b348015610af1575f5ffd5b50610b0c6004803603810190610b079190613e2a565b611de2565b005b348015610b19575f5ffd5b50610b346004803603810190610b2f9190613dc1565b611e3e565b005b348015610b41575f5ffd5b50610b4a611ecb565b604051610b579190613cd1565b60405180910390f35b348015610b6b575f5ffd5b50610b866004803603810190610b819190613d3a565b611ed1565b604051610b939190613bc1565b60405180910390f35b348015610ba7575f5ffd5b50610bc26004803603810190610bbd9190613f07565b611eee565b604051610bcf9190613cd1565b60405180910390f35b348015610be3575f5ffd5b50610bfe6004803603810190610bf99190613d3a565b611f70565b005b348015610c0b575f5ffd5b50610c14611ff4565b604051610c219190613d74565b60405180910390f35b606060048054610c3990613f72565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6590613f72565b8015610cb05780601f10610c8757610100808354040283529160200191610cb0565b820191905f5260205f20905b815481529060010190602001808311610c9357829003601f168201915b5050505050905090565b5f5f610cc4611ffa565b9050610cd1818585612001565b600191505092915050565b610ce4612013565b5f5f90505b83839050811015610d3257610d25848483818110610d0a57610d09613fa2565b5b9050602002016020810190610d1f9190613d3a565b8361209a565b8080600101915050610ce9565b50505050565b5f600354905090565b600e5481565b5f5f610d51611ffa565b9050610d5e85828561212b565b610d698585856121bd565b60019150509392505050565b6012602052805f5260405f205f915054906101000a900460ff1681565b7f000000000000000000000000481ad75e00570b2b748d57df0256f847830f701c81565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610de3612013565b5f5f90505b838390508110156110da5760155f858584818110610e0957610e08613fa2565b5b9050602002016020810190610e1e9190613d3a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015610ee457507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff16848483818110610eb657610eb5613fa2565b5b9050602002016020810190610ecb9190613d3a565b73ffffffffffffffffffffffffffffffffffffffff1614155b8015610f4357503073ffffffffffffffffffffffffffffffffffffffff16848483818110610f1557610f14613fa2565b5b9050602002016020810190610f2a9190613d3a565b73ffffffffffffffffffffffffffffffffffffffff1614155b8015610fa257505f73ffffffffffffffffffffffffffffffffffffffff16848483818110610f7457610f73613fa2565b5b9050602002016020810190610f899190613d3a565b73ffffffffffffffffffffffffffffffffffffffff1614155b8015611096575060135f858584818110610fbf57610fbe613fa2565b5b9050602002016020810190610fd49190613d3a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015611095575060145f85858481811061103857611037613fa2565b5b905060200201602081019061104d9190613d3a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b5b156110cd576110cc8484838181106110b1576110b0613fa2565b5b90506020020160208101906110c69190613d3a565b836122ad565b5b8080600101915050610de8565b50505050565b5f6012905090565b6110f0612013565b5f3390505f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361120b575f4791505f8211611165576040517fcff858f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168260405161118990613ffc565b5f6040518083038185875af1925050503d805f81146111c3576040519150601f19603f3d011682016040523d82523d5f602084013e6111c8565b606091505b50508091505080611205576040517f81102ece00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5061133b565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112449190613d74565b602060405180830381865afa15801561125f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112839190614024565b90505f81116112be576040517ffba5154e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016112f992919061404f565b6020604051808303815f875af1158015611315573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611339919061408a565b505b7f7aba7eca7d870d5f2f93298379a43957082ef15cdcf64db1f7c731c6b3a2fa49838260405161136c92919061404f565b60405180910390a1505050565b600760149054906101000a900460ff1681565b611394612013565b6103e860026113a1610d38565b6113ab91906140e2565b6113b59190614150565b8110156113ee576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c819055507f1f41d239159181ddefb13e99853e0e4998e0556aa1f2281281c783e309281062600c546040516114269190613cd1565b60405180910390a150565b600760189054906101000a900460ff1681565b600f5481565b5f81565b600c5481565b61145c612013565b6023821115611497576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60238111156114d2576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600f81905550806010819055505050565b600d5481565b6114f2612013565b80600760156101000a81548160ff0219169083151502179055507f6a53d6c83a7a55d7a07bd490493fceb559161cce588908714e497e54044777d98160405161153b9190613bc1565b60405180910390a150565b600b5481565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61159a612013565b6115a35f61233e565b565b6115ad612013565b6103e860036115ba610d38565b6115c491906140e2565b6115ce9190614150565b811015611607576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d819055507fe2e6151ed0b472c61401059745339ca42474813911b22d24023385def6377e1c600d5460405161163f9190613cd1565b60405180910390a150565b611652612013565b6103e8600261165f610d38565b61166991906140e2565b6116739190614150565b8110156116ac576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b819055507f85668e92bc538f5c140067d68e3375c65b9e4545d2822ec8d807c6782f747d62600b546040516116e49190613cd1565b60405180910390a150565b6014602052805f5260405f205f915054906101000a900460ff1681565b602381565b60085481565b60115481565b611725612013565b600760189054906101000a900460ff161561176c576040517fef65161f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600760186101000a81548160ff02191690831515021790555043600881905550426009819055507f6603428d483ce13b6662b7a6848d769996e12e801bed4b0f1b9e8d10f64d38ba60405160405180910390a1565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606005805461181e90613f72565b80601f016020809104026020016040519081016040528092919081815260200182805461184a90613f72565b80156118955780601f1061186c57610100808354040283529160200191611895565b820191905f5260205f20905b81548152906001019060200180831161187857829003601f168201915b5050505050905090565b6118a7612013565b5f6118b0610d38565b9050620f42406001826118c391906140e2565b6118cd9190614150565b821015611906576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103e860058261191691906140e2565b6119209190614150565b821115611959576040517f0625040100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600e54905082600e819055507f65a8c7442ea496b0a28890f1ef48a9819d1f5d747e9a8df155fe862dfd493c958382604051611997929190614180565b60405180910390a1505050565b600760169054906101000a900460ff1681565b6119bf612013565b80600760166101000a81548160ff0219169083151502179055507fa6a3dda702515d3130fef8b72d8e25f9aebd0d02e89d10d63c0c31d80b52f4a081604051611a089190613bc1565b60405180910390a150565b5f5f611a1d611ffa565b9050611a2a8185856121bd565b600191505092915050565b611a3d612013565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611aa2576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb3dd4b0ccf73b51db7cb2a59fb88d1082b0fa9389d4ce0e85100fe3b26af78c460065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611b599291906141a7565b60405180910390a15050565b600760159054906101000a900460ff1681565b611b80612013565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611be5576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0db17895a9d092fb3ca24d626f2150dd80c185b0706b36f1040ee239f56cb87160075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611c9c9291906141a7565b60405180910390a15050565b611cb0612013565b5f5f90505b83839050811015611cfe57611cf1848483818110611cd657611cd5613fa2565b5b9050602002016020810190611ceb9190613d3a565b836123b4565b8080600101915050611cb5565b50505050565b6015602052805f5260405f205f915054906101000a900460ff1681565b611d29612013565b60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611daa576040517f027106be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611db48282612445565b5050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60105481565b611dea612013565b80600760146101000a81548160ff0219169083151502179055507f1da197dc3cab4eceaefd5d0c34df2ed3a08f20a207fb1910c0eceb361e2c965c81604051611e339190613bc1565b60405180910390a150565b611e46612013565b6023811115611e81576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6011549050816011819055507f6a7b998a4adc393cb692c67fcd563e7971e2ea6f3fe7c9b8fb6dd53cf5b627d08282604051611ebf929190614180565b60405180910390a15050565b60095481565b6013602052805f5260405f205f915054906101000a900460ff1681565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b611f78612013565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611fe8575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611fdf9190613d74565b60405180910390fd5b611ff18161233e565b50565b61dead81565b5f33905090565b61200e83838360016124d6565b505050565b61201b611ffa565b73ffffffffffffffffffffffffffffffffffffffff166120396117c3565b73ffffffffffffffffffffffffffffffffffffffff16146120985761205c611ffa565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161208f9190613d74565b60405180910390fd5b565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f74392251b09500cc108c71712e5e7e0392be9075a74a24f1494551cfa8e06870828260405161211f9291906141ce565b60405180910390a15050565b5f6121368484611eee565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146121b757818110156121a8578281836040517ffb8f41b200000000000000000000000000000000000000000000000000000000815260040161219f939291906141f5565b60405180910390fd5b6121b684848484035f6124d6565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361222d575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016122249190613d74565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361229d575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016122949190613d74565b60405180910390fd5b6122a88383836126a5565b505050565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f066e0c23b9ae0bb92a88e9b0985bb7d85fce062730057312b99a9e243fde5ee182826040516123329291906141ce565b60405180910390a15050565b5f6123476117c3565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461239157612386815f6123b4565b612390815f61209a565b5b61239c8260016123b4565b6123a782600161209a565b6123b0826133cf565b5050565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb82826040516124399291906141ce565b60405180910390a15050565b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f024f6c8d60a57c94822c46d989fd6935057590269281b07fe8327d7e9bc4242182826040516124ca9291906141ce565b60405180910390a15050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612546575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161253d9190613d74565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036125b6575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016125ad9190613d74565b60405180910390fd5b8160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550801561269f578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516126969190613cd1565b60405180910390a35b50505050565b5f3390505f32905060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561272e576040517fd18781b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806127af575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b6127e5576040517fd18781b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061284a57508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b8061289c575060125f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b6128d2576040517fd18781b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760189054906101000a900460ff1680612933575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80612984575060145f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6129ba576040517f037c597f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600760149054906101000a900460ff1680156129e45750600760179054906101000a900460ff16155b8015612a88575060145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612a86575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b155b9050801561305257612a986117c3565b73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015612b065750612ad66117c3565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b8015612b3e57505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b8015612b78575061dead73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b1561305157600760159054906101000a900460ff1615612d9b577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015612c3a57507f000000000000000000000000481ad75e00570b2b748d57df0256f847830f701c73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b15612d9a57600343612c4c919061422a565b60165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015612cdf5750600343612c9f919061422a565b60165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b612d15576040517f53444d9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4360165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055504360165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60155f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612e38575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612ecd57600b54841115612e79576040517f89be121e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d54612e858661154c565b85612e90919061425d565b1115612ec8576040517f76c7c05200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613050565b60155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612f6a575060145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612fb057600c54841115612fab576040517fa8e28e1000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304f565b60145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661304e57600d5461300a8661154c565b85613015919061425d565b111561304d576040517f76c7c05200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b5b5b5b5f600760169054906101000a900460ff16801561307c5750600760179054906101000a900460ff16155b8015613120575060135f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168061311e575060135f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b155b90508015613319575f5f905060155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561318357505f601054115b156131a95760646010548761319891906140e2565b6131a29190614150565b90506132f5565b60155f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561320057505f600f54115b15613226576064600f548761321591906140e2565b61321f9190614150565b90506132f4565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156132c4575060155f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156132d157505f601154115b156132f3576064601154876132e691906140e2565b6132f09190614150565b90505b5b5b5f811115613317578086613309919061422a565b9550613316883083613490565b5b505b5f6133233061154c565b90505f600e548210159050828015613382575060155f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561338b5750805b156133b957600a54431180156133a2575060085443115b156133b8576133b0826136ac565b43600a819055505b5b6133c4898989613490565b505050505050505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036134e0578060035f8282546134d4919061425d565b925050819055506135b0565b5f60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490508181101561356a578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401613561939291906141f5565b60405180910390fd5b81810360015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036135f7578060035f8282540392505081905550613642565b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161369f9190613cd1565b60405180910390a3505050565b6001600760176101000a81548160ff0219169083151502179055505f5f600267ffffffffffffffff8111156136e4576136e3614290565b5b6040519080825280602002602001820160405280156137125781602001602082028036833780820191505090505b50905030815f8151811061372957613728613fa2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156137cc573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906137f091906142d1565b8160018151811061380457613803613fa2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f6014600e5461384e91906140e2565b90508084111561385c578093505b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947855f8530426040518663ffffffff1660e01b81526004016138bd9594939291906143ec565b5f604051808303815f87803b1580156138d4575f5ffd5b505af11580156138e6573d5f5f3e3d5ffd5b505050505f4790505f6002826138fc9190614150565b90505f818361390b919061422a565b905060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161395290613ffc565b5f6040518083038185875af1925050503d805f811461398c576040519150601f19603f3d011682016040523d82523d5f602084013e613991565b606091505b50508096505060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516139dc90613ffc565b5f6040518083038185875af1925050503d805f8114613a16576040519150601f19603f3d011682016040523d82523d5f602084013e613a1b565b606091505b5050809650505050505050505f600760176101000a81548160ff02191690831515021790555050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f613a8682613a44565b613a908185613a4e565b9350613aa0818560208601613a5e565b613aa981613a6c565b840191505092915050565b5f6020820190508181035f830152613acc8184613a7c565b905092915050565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613b0582613adc565b9050919050565b613b1581613afb565b8114613b1f575f5ffd5b50565b5f81359050613b3081613b0c565b92915050565b5f819050919050565b613b4881613b36565b8114613b52575f5ffd5b50565b5f81359050613b6381613b3f565b92915050565b5f5f60408385031215613b7f57613b7e613ad4565b5b5f613b8c85828601613b22565b9250506020613b9d85828601613b55565b9150509250929050565b5f8115159050919050565b613bbb81613ba7565b82525050565b5f602082019050613bd45f830184613bb2565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f840112613bfb57613bfa613bda565b5b8235905067ffffffffffffffff811115613c1857613c17613bde565b5b602083019150836020820283011115613c3457613c33613be2565b5b9250929050565b613c4481613ba7565b8114613c4e575f5ffd5b50565b5f81359050613c5f81613c3b565b92915050565b5f5f5f60408486031215613c7c57613c7b613ad4565b5b5f84013567ffffffffffffffff811115613c9957613c98613ad8565b5b613ca586828701613be6565b93509350506020613cb886828701613c51565b9150509250925092565b613ccb81613b36565b82525050565b5f602082019050613ce45f830184613cc2565b92915050565b5f5f5f60608486031215613d0157613d00613ad4565b5b5f613d0e86828701613b22565b9350506020613d1f86828701613b22565b9250506040613d3086828701613b55565b9150509250925092565b5f60208284031215613d4f57613d4e613ad4565b5b5f613d5c84828501613b22565b91505092915050565b613d6e81613afb565b82525050565b5f602082019050613d875f830184613d65565b92915050565b5f60ff82169050919050565b613da281613d8d565b82525050565b5f602082019050613dbb5f830184613d99565b92915050565b5f60208284031215613dd657613dd5613ad4565b5b5f613de384828501613b55565b91505092915050565b5f5f60408385031215613e0257613e01613ad4565b5b5f613e0f85828601613b55565b9250506020613e2085828601613b55565b9150509250929050565b5f60208284031215613e3f57613e3e613ad4565b5b5f613e4c84828501613c51565b91505092915050565b5f5f60408385031215613e6b57613e6a613ad4565b5b5f613e7885828601613b22565b9250506020613e8985828601613c51565b9150509250929050565b5f819050919050565b5f613eb6613eb1613eac84613adc565b613e93565b613adc565b9050919050565b5f613ec782613e9c565b9050919050565b5f613ed882613ebd565b9050919050565b613ee881613ece565b82525050565b5f602082019050613f015f830184613edf565b92915050565b5f5f60408385031215613f1d57613f1c613ad4565b5b5f613f2a85828601613b22565b9250506020613f3b85828601613b22565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613f8957607f821691505b602082108103613f9c57613f9b613f45565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81905092915050565b50565b5f613fe75f83613fcf565b9150613ff282613fd9565b5f82019050919050565b5f61400682613fdc565b9150819050919050565b5f8151905061401e81613b3f565b92915050565b5f6020828403121561403957614038613ad4565b5b5f61404684828501614010565b91505092915050565b5f6040820190506140625f830185613d65565b61406f6020830184613cc2565b9392505050565b5f8151905061408481613c3b565b92915050565b5f6020828403121561409f5761409e613ad4565b5b5f6140ac84828501614076565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6140ec82613b36565b91506140f783613b36565b925082820261410581613b36565b9150828204841483151761411c5761411b6140b5565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61415a82613b36565b915061416583613b36565b92508261417557614174614123565b5b828204905092915050565b5f6040820190506141935f830185613cc2565b6141a06020830184613cc2565b9392505050565b5f6040820190506141ba5f830185613d65565b6141c76020830184613d65565b9392505050565b5f6040820190506141e15f830185613d65565b6141ee6020830184613bb2565b9392505050565b5f6060820190506142085f830186613d65565b6142156020830185613cc2565b6142226040830184613cc2565b949350505050565b5f61423482613b36565b915061423f83613b36565b9250828203905081811115614257576142566140b5565b5b92915050565b5f61426782613b36565b915061427283613b36565b925082820190508082111561428a576142896140b5565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f815190506142cb81613b0c565b92915050565b5f602082840312156142e6576142e5613ad4565b5b5f6142f3848285016142bd565b91505092915050565b5f819050919050565b5f61431f61431a614315846142fc565b613e93565b613b36565b9050919050565b61432f81614305565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61436781613afb565b82525050565b5f614378838361435e565b60208301905092915050565b5f602082019050919050565b5f61439a82614335565b6143a4818561433f565b93506143af8361434f565b805f5b838110156143df5781516143c6888261436d565b97506143d183614384565b9250506001810190506143b2565b5085935050505092915050565b5f60a0820190506143ff5f830188613cc2565b61440c6020830187614326565b818103604083015261441e8186614390565b905061442d6060830185613d65565b61443a6080830184613cc2565b969550505050505056fea26469706673582212208eb35832116d3933dc94546aa263290f0d856a270d9e5a5ed7c8740b27c0f73e64736f6c634300081c0033

Verified Source Code Partial Match

Compiler: v0.8.28+commit.7893614a EVM: cancun Optimization: No
testTest.sol 1178 lines
// SPDX-License-Identifier: MIT


pragma solidity 0.8.28;

// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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
    );

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);
}

// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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);
}

// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

/**
 * @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;
    }
}

// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(
        address sender,
        uint256 balance,
        uint256 needed
    );

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(
        address spender,
        uint256 allowance,
        uint256 needed
    );

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(
        address sender,
        uint256 balance,
        uint256 needed,
        uint256 tokenId
    );

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

/**
 * @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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    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}.
     *
     * 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(
        address owner,
        address spender
    ) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(
        address spender,
        uint256 value
    ) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 value
    ) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(
        address owner,
        address spender,
        uint256 value,
        bool emitEvent
    ) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 value
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(
                    spender,
                    currentAllowance,
                    value
                );
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

/**
 * @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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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);
    }
}

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

interface IUniswapV2Router {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

pragma solidity ^0.8.0;

contract testTest is Ownable, ERC20 {
    IUniswapV2Router public immutable swapRouter;

    address public constant ZERO_ADDRESS = address(0);
    address public constant BURN_ADDRESS = address(0xdEaD);

    address public immutable swapPair;
    address public taxWallet;
    address public devWallet;

    bool public limitsEnabled;
    bool public cooldownEnabled;
    bool public feesEnabled;
    bool private inSwapProcess;
    bool public isActivated;

    uint256 public activationBlock;
    uint256 public activationTime;

    uint256 private lastSwapBlock;

    uint256 public constant MAX_TOTAL_FEE = 35;

    uint256 public maxBuyLimit;
    uint256 public maxSellLimit;
    uint256 public maxWalletLimit;

    uint256 public tokensForSwap;
    uint256 public buyTax;
    uint256 public sellTax;
    uint256 public transferTax;

    mapping(address => bool) public blacklistedBots;
    mapping(address => bool) public excludedFromFees;
    mapping(address => bool) public excludedFromLimits;
    mapping(address => bool) public marketPairs;
    mapping(address => uint256) private _lastTransferBlock;

    event Activation();
    event taxWalletUpdated(address newWallet, address oldWallet);
    event DevWalletUpdated(address newWallet, address oldWallet);
    event LimitsStatusChanged(bool status);
    event CooldownStatusChanged(bool status);
    event FeesStatusChanged(bool status);
    event MaxBuyLimitUpdated(uint256 amount);
    event MaxSellLimitUpdated(uint256 amount);
    event MaxWalletLimitUpdated(uint256 amount);
    event TokensForSwapUpdated(uint256 newValue, uint256 oldValue);
    event BuyTaxUpdated(uint256 newValue, uint256 oldValue);
    event SellTaxUpdated(uint256 newValue, uint256 oldValue);
    event TransferTaxUpdated(uint256 newValue, uint256 oldValue);
    event ExcludedFromFees(address account, bool isExcluded);
    event ExcludedFromLimits(address account, bool isExcluded);
    event BotStatusUpdated(address account, bool isBlacklisted);
    event MarketPairStatusUpdated(address pair, bool value);
    event StuckTokensWithdrawn(address token, uint256 amount);

    error AlreadyActivated();
    error InvalidAddress();
    error AmountTooSmall();
    error AmountTooLarge();
    error FeeTooHigh();
    error PairAlreadySet();
    error NoETHToWithdraw();
    error NoTokensToWithdraw();
    error ETHWithdrawalFailed();
    error BotActivityDetected();
    error TransferCooldown();
    error ExceedsMaxBuyLimit();
    error ExceedsMaxSellLimit();
    error ExceedsMaxWalletLimit();
    error NotActivated();

    modifier lockSwapProcess() {
        inSwapProcess = true;
        _;
        inSwapProcess = false;
    }

    constructor() Ownable(msg.sender) ERC20("test", "TEST") {
        address owner = msg.sender;
        _mint(owner, 1_000_000_000 ether);
        uint256 totalSupplyTokens = totalSupply();

        taxWallet = 0xEC90AA2453d4CEaa86510155F959BdA57Ad1542a;
        devWallet = 0xEC90AA2453d4CEaa86510155F959BdA57Ad1542a;

        maxBuyLimit = (totalSupplyTokens * 155) / 10000;
        maxSellLimit = (totalSupplyTokens * 155) / 10000;
        maxWalletLimit = (totalSupplyTokens * 155) / 10000;
        tokensForSwap = (totalSupplyTokens * 5) / 10000;

        limitsEnabled = true;
        cooldownEnabled = false;
        feesEnabled = true;

        buyTax = 30;
        sellTax = 30;
        transferTax = 0;

        swapRouter = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        swapPair = IUniswapV2Factory(swapRouter.factory()).createPair(
            address(this),
            swapRouter.WETH()
        );

        SetMarketPair(swapPair, true);
        _approve(address(this), address(swapRouter), type(uint256).max);
        _excludeFromFees(address(this), true);
        _excludeFromFees(BURN_ADDRESS, true);
        _excludeFromFees(owner, true);
        _excludeFromFees(taxWallet, true);
        _excludeFromFees(devWallet, true);
        ExcludeFromLimits(address(this), true);
        ExcludeFromLimits(BURN_ADDRESS, true);
        ExcludeFromLimits(owner, true);
        ExcludeFromLimits(taxWallet, true);
        ExcludeFromLimits(devWallet, true);
    }

    receive() external payable {}

    fallback() external payable {}

    function _transferOwnership(address newOwner) internal override {
        address oldOwner = owner();
        if (oldOwner != ZERO_ADDRESS) {
            _excludeFromFees(oldOwner, false);
            ExcludeFromLimits(oldOwner, false);
        }
        _excludeFromFees(newOwner, true);
        ExcludeFromLimits(newOwner, true);
        super._transferOwnership(newOwner);
    }

    function enableTrading() external onlyOwner {
        require(!isActivated, AlreadyActivated());
        isActivated = true;
        activationBlock = block.number;
        activationTime = block.timestamp;
        emit Activation();
    }

    function _updatetaxWallet(address _taxWallet) external onlyOwner {
        require(_taxWallet != ZERO_ADDRESS, InvalidAddress());
        address oldWallet = taxWallet;
        taxWallet = _taxWallet;
        emit taxWalletUpdated(taxWallet, oldWallet);
    }

    function _updateDevWallet(address _devWallet) external onlyOwner {
        require(_devWallet != ZERO_ADDRESS, InvalidAddress());
        address oldWallet = devWallet;
        devWallet = _devWallet;
        emit DevWalletUpdated(devWallet, oldWallet);
    }

    function changeLimitsEnabled(bool value) external onlyOwner {
        limitsEnabled = value;
        emit LimitsStatusChanged(value);
    }

    function changeCooldownEnabled(bool value) external onlyOwner {
        cooldownEnabled = value;
        emit CooldownStatusChanged(value);
    }

    function setFeesEnabled(bool value) external onlyOwner {
        feesEnabled = value;
        emit FeesStatusChanged(value);
    }

    function setMaxBuyLimit(uint256 amount) external onlyOwner {
        require(amount >= ((totalSupply() * 2) / 1000), AmountTooSmall());
        maxBuyLimit = amount;
        emit MaxBuyLimitUpdated(maxBuyLimit);
    }

    function setMaxSellLimit(uint256 amount) external onlyOwner {
        require(amount >= ((totalSupply() * 2) / 1000), AmountTooSmall());
        maxSellLimit = amount;
        emit MaxSellLimitUpdated(maxSellLimit);
    }

    function setMaxWalletLimit(uint256 amount) external onlyOwner {
        require(amount >= ((totalSupply() * 3) / 1000), AmountTooSmall());
        maxWalletLimit = amount;
        emit MaxWalletLimitUpdated(maxWalletLimit);
    }

    function setTokensForSwap(uint256 amount) external onlyOwner {
        uint256 totalSupplyTokens = totalSupply();
        require(amount >= (totalSupplyTokens * 1) / 1000000, AmountTooSmall());
        require(amount <= (totalSupplyTokens * 5) / 1000, AmountTooLarge());
        uint256 oldValue = tokensForSwap;
        tokensForSwap = amount;
        emit TokensForSwapUpdated(amount, oldValue);
    }

    function setTax(uint256 _buyTax, uint256 _sellTax) external onlyOwner {
        require(_buyTax <= MAX_TOTAL_FEE, FeeTooHigh());
        require(_sellTax <= MAX_TOTAL_FEE, FeeTooHigh());

        buyTax = _buyTax;
        sellTax = _sellTax;
    }

    function changeTransferTax(uint256 _transferTax) external onlyOwner {
        require(_transferTax <= MAX_TOTAL_FEE, FeeTooHigh());
        uint256 oldValue = transferTax;
        transferTax = _transferTax;
        emit TransferTaxUpdated(_transferTax, oldValue);
    }

    function excludeFromFees(
        address[] calldata accounts,
        bool value
    ) external onlyOwner {
        for (uint256 i = 0; i < accounts.length; i++) {
            _excludeFromFees(accounts[i], value);
        }
    }

    function excludeFromLimits(
        address[] calldata accounts,
        bool value
    ) external onlyOwner {
        for (uint256 i = 0; i < accounts.length; i++) {
            ExcludeFromLimits(accounts[i], value);
        }
    }

    function setBlacklistedBots(
        address[] calldata accounts,
        bool value
    ) external onlyOwner {
        for (uint256 i = 0; i < accounts.length; i++) {
            if (
                (!marketPairs[accounts[i]]) &&
                (accounts[i] != address(swapRouter)) &&
                (accounts[i] != address(this)) &&
                (accounts[i] != ZERO_ADDRESS) &&
                (!excludedFromFees[accounts[i]] &&
                    !excludedFromLimits[accounts[i]])
            ) UpdateBotStatus(accounts[i], value);
        }
    }

    function setMarketPair(address pair, bool value) external onlyOwner {
        require(!marketPairs[pair], PairAlreadySet());
        SetMarketPair(pair, value);
    }

    function clearStuckTokens(address _token) external onlyOwner {
        address owner = msg.sender;
        uint256 amount;
        if (_token == ZERO_ADDRESS) {
            bool success;
            amount = address(this).balance;
            require(amount > 0, NoETHToWithdraw());
            (success, ) = address(owner).call{value: amount}("");
            require(success, ETHWithdrawalFailed());
        } else {
            amount = IERC20(_token).balanceOf(address(this));
            require(amount > 0, NoTokensToWithdraw());
            IERC20(_token).transfer(msg.sender, amount);
        }
        emit StuckTokensWithdrawn(_token, amount);
    }

    function _update(
        address from,
        address to,
        uint256 amount
    ) internal virtual override {
        address sender = msg.sender;
        address origin = tx.origin;

        require(!blacklistedBots[from], BotActivityDetected());
        require(
            sender == from || !blacklistedBots[sender],
            BotActivityDetected()
        );
        require(
            origin == from || origin == sender || !blacklistedBots[origin],
            BotActivityDetected()
        );

        require(
            isActivated || excludedFromLimits[from] || excludedFromLimits[to],
            NotActivated()
        );

        bool applyLimits = limitsEnabled &&
            !inSwapProcess &&
            !(excludedFromLimits[from] || excludedFromLimits[to]);
        if (applyLimits) {
            if (
                from != owner() &&
                to != owner() &&
                to != ZERO_ADDRESS &&
                to != BURN_ADDRESS
            ) {
                if (cooldownEnabled) {
                    if (to != address(swapRouter) && to != swapPair) {
                        require(
                            _lastTransferBlock[origin] < block.number - 3 &&
                                _lastTransferBlock[to] < block.number - 3,
                            TransferCooldown()
                        );
                        _lastTransferBlock[origin] = block.number;
                        _lastTransferBlock[to] = block.number;
                    }
                }

                if (marketPairs[from] && !excludedFromLimits[to]) {
                    require(amount <= maxBuyLimit, ExceedsMaxBuyLimit());
                    require(
                        amount + balanceOf(to) <= maxWalletLimit,
                        ExceedsMaxWalletLimit()
                    );
                } else if (marketPairs[to] && !excludedFromLimits[from]) {
                    require(amount <= maxSellLimit, ExceedsMaxSellLimit());
                } else if (!excludedFromLimits[to]) {
                    require(
                        amount + balanceOf(to) <= maxWalletLimit,
                        ExceedsMaxWalletLimit()
                    );
                }
            }
        }

        bool applyFee = feesEnabled &&
            !inSwapProcess &&
            !(excludedFromFees[from] || excludedFromFees[to]);

        if (applyFee) {
            uint256 feeAmount = 0;
            if (marketPairs[to] && sellTax > 0) {
                feeAmount = (amount * sellTax) / 100;
            } else if (marketPairs[from] && buyTax > 0) {
                feeAmount = (amount * buyTax) / 100;
            } else if (
                !marketPairs[to] && !marketPairs[from] && transferTax > 0
            ) {
                feeAmount = (amount * transferTax) / 100;
            }

            if (feeAmount > 0) {
                amount -= feeAmount;
                super._update(from, address(this), feeAmount);
            }
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= tokensForSwap;
        if (applyFee && !marketPairs[from] && canSwap) {
            if (block.number > lastSwapBlock && block.number > activationBlock) {
                _swapTokens(contractTokenBalance);
                lastSwapBlock = block.number;
            }
        }

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

    function _swapTokens(uint256 tokenAmount) internal virtual lockSwapProcess {
        bool success;
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = swapRouter.WETH();

        uint256 maxSwapAmount = tokensForSwap * 20;

        if (tokenAmount > maxSwapAmount) {
            tokenAmount = maxSwapAmount;
        }

        swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 ethBalance = address(this).balance;

        uint256 ethForRevenue = ethBalance / 2;
        uint256 ethForDevelopment = ethBalance - ethForRevenue;

        (success, ) = address(taxWallet).call{value: ethForRevenue}("");
        (success, ) = address(devWallet).call{value: ethForDevelopment}("");
    }

    function _excludeFromFees(address account, bool value) internal virtual {
        excludedFromFees[account] = value;
        emit ExcludedFromFees(account, value);
    }

    function ExcludeFromLimits(address account, bool value) internal virtual {
        excludedFromLimits[account] = value;
        emit ExcludedFromLimits(account, value);
    }

    function UpdateBotStatus(address account, bool value) internal virtual {
        blacklistedBots[account] = value;
        emit BotStatusUpdated(account, value);
    }

    function SetMarketPair(address pair, bool value) internal virtual {
        marketPairs[pair] = value;
        emit MarketPairStatusUpdated(pair, value);
    }
}

Read Contract

BURN_ADDRESS 0xfccc2813 → address
MAX_TOTAL_FEE 0x7f635cc0 → uint256
ZERO_ADDRESS 0x538ba4f9 → address
activationBlock 0x80faa3d2 → uint256
activationTime 0xda4493f6 → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
blacklistedBots 0x259827e3 → bool
buyTax 0x4f7041a5 → uint256
cooldownEnabled 0xa985ceef → bool
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
excludedFromFees 0xdbe66ca0 → bool
excludedFromLimits 0x7b812b41 → bool
feesEnabled 0xa64e4f8a → bool
isActivated 0x4a8c1fb4 → bool
limitsEnabled 0x3582ad23 → bool
marketPairs 0xb4b11b95 → bool
maxBuyLimit 0x6aa5b37f → uint256
maxSellLimit 0x652e2f04 → uint256
maxWalletLimit 0x66a88d96 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellTax 0xcc1776d3 → uint256
swapPair 0x26991cc8 → address
swapRouter 0xc31c9c07 → address
symbol 0x95d89b41 → string
taxWallet 0x2dc0562d → address
tokensForSwap 0x1ecd7d6e → uint256
totalSupply 0x18160ddd → uint256
transferTax 0x8124f7ac → uint256

Write Contract 22 functions

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

_updateDevWallet 0xabefea03
address _devWallet
_updatetaxWallet 0xa91a9eb1
address _taxWallet
approve 0x095ea7b3
address spender
uint256 value
returns: bool
changeCooldownEnabled 0x68b69b9b
bool value
changeLimitsEnabled 0xce657cce
bool value
changeTransferTax 0xda0103bd
uint256 _transferTax
clearStuckTokens 0x346cc7be
address _token
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xad29ffde
address[] accounts
bool value
excludeFromLimits 0x106a5a8f
address[] accounts
bool value
renounceOwnership 0x715018a6
No parameters
setBlacklistedBots 0x2f6f30ea
address[] accounts
bool value
setFeesEnabled 0xa901dd92
bool value
setMarketPair 0xc16dd4a4
address pair
bool value
setMaxBuyLimit 0x757765f8
uint256 amount
setMaxSellLimit 0x36884b6e
uint256 amount
setMaxWalletLimit 0x728d41c9
uint256 amount
setTax 0x667f6526
uint256 _buyTax
uint256 _sellTax
setTokensForSwap 0xa49a910f
uint256 amount
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address