Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xf762d60e493CcE043fAA2c30A1FD662879aAf1ED
Balance 0 ETH
Nonce 1
Code Size 15751 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15751 bytes
0x6080604052600436106102cc575f3560e01c8063757765f811610174578063a9059cbb116100db578063cb96372811610094578063dbe66ca01161006e578063dbe66ca014610a97578063dd62ed3e14610ad3578063f2fde38b14610b0f578063fccc281314610b37576102cd565b8063cb96372814610a1b578063cc1776d314610a43578063da4493f614610a6d576102cd565b8063a9059cbb146108ff578063a985ceef1461093b578063ad29ffde14610965578063b4b11b951461098d578063c16dd4a4146109c9578063c31c9c07146109f1576102cd565b80638da5cb5b1161012d5780638da5cb5b146108075780638ea5220f1461083157806395d89b411461085b578063a49a910f14610885578063a64e4f8a146108ad578063a901dd92146108d7576102cd565b8063757765f8146106fd5780637b812b41146107255780637f635cc01461076157806380faa3d21461078b5780638124f7ac146107b55780638b525903146107df576102cd565b806336884b6e11610233578063652e2f04116101ec5780636aa5b37f116101c65780636aa5b37f1461065957806370a0823114610683578063715018a6146106bf578063728d41c9146106d5576102cd565b8063652e2f04146105dd578063667f65261461060757806366a88d961461062f576102cd565b806336884b6e146104e757806341aea9de1461050f5780634a8c1fb4146105375780634f7041a514610561578063538ba4f91461058b5780635932ead1146105b5576102cd565b806323b872dd1161028557806323b872dd146103c7578063259827e31461040357806326991cc81461043f5780632dc0562d14610469578063313ce567146104935780633582ad23146104bd576102cd565b806306fdde03146102cf578063095ea7b3146102f95780630f15f4c014610335578063106a5a8f1461034b57806318160ddd146103735780631ecd7d6e1461039d576102cd565b5b005b3480156102da575f5ffd5b506102e3610b61565b6040516102f091906133e8565b60405180910390f35b348015610304575f5ffd5b5061031f600480360381019061031a919061349d565b610bf1565b60405161032c91906134f5565b60405180910390f35b348015610340575f5ffd5b50610349610c13565b005b348015610356575f5ffd5b50610371600480360381019061036c9190613599565b610cb9565b005b34801561037e575f5ffd5b50610387610d15565b6040516103949190613605565b60405180910390f35b3480156103a8575f5ffd5b506103b1610d1e565b6040516103be9190613605565b60405180910390f35b3480156103d2575f5ffd5b506103ed60048036038101906103e8919061361e565b610d24565b6040516103fa91906134f5565b60405180910390f35b34801561040e575f5ffd5b506104296004803603810190610424919061366e565b610d52565b60405161043691906134f5565b60405180910390f35b34801561044a575f5ffd5b50610453610d6f565b60405161046091906136a8565b60405180910390f35b348015610474575f5ffd5b5061047d610d93565b60405161048a91906136a8565b60405180910390f35b34801561049e575f5ffd5b506104a7610db8565b6040516104b491906136dc565b60405180910390f35b3480156104c8575f5ffd5b506104d1610dc0565b6040516104de91906134f5565b60405180910390f35b3480156104f2575f5ffd5b5061050d600480360381019061050891906136f5565b610dd3565b005b34801561051a575f5ffd5b5061053560048036038101906105309190613720565b610e78565b005b348015610542575f5ffd5b5061054b610ed4565b60405161055891906134f5565b60405180910390f35b34801561056c575f5ffd5b50610575610ee7565b6040516105829190613605565b60405180910390f35b348015610596575f5ffd5b5061059f610eed565b6040516105ac91906136a8565b60405180910390f35b3480156105c0575f5ffd5b506105db60048036038101906105d69190613720565b610ef1565b005b3480156105e8575f5ffd5b506105f1610f4d565b6040516105fe9190613605565b60405180910390f35b348015610612575f5ffd5b5061062d6004803603810190610628919061374b565b610f53565b005b34801561063a575f5ffd5b50610643610fe3565b6040516106509190613605565b60405180910390f35b348015610664575f5ffd5b5061066d610fe9565b60405161067a9190613605565b60405180910390f35b34801561068e575f5ffd5b506106a960048036038101906106a4919061366e565b610fef565b6040516106b69190613605565b60405180910390f35b3480156106ca575f5ffd5b506106d3611035565b005b3480156106e0575f5ffd5b506106fb60048036038101906106f691906136f5565b611048565b005b348015610708575f5ffd5b50610723600480360381019061071e91906136f5565b6110ed565b005b348015610730575f5ffd5b5061074b6004803603810190610746919061366e565b611192565b60405161075891906134f5565b60405180910390f35b34801561076c575f5ffd5b506107756111af565b6040516107829190613605565b60405180910390f35b348015610796575f5ffd5b5061079f6111b4565b6040516107ac9190613605565b60405180910390f35b3480156107c0575f5ffd5b506107c96111ba565b6040516107d69190613605565b60405180910390f35b3480156107ea575f5ffd5b50610805600480360381019061080091906136f5565b6111c0565b005b348015610812575f5ffd5b5061081b61124d565b60405161082891906136a8565b60405180910390f35b34801561083c575f5ffd5b50610845611274565b60405161085291906136a8565b60405180910390f35b348015610866575f5ffd5b5061086f611299565b60405161087c91906133e8565b60405180910390f35b348015610890575f5ffd5b506108ab60048036038101906108a691906136f5565b611329565b005b3480156108b8575f5ffd5b506108c161142e565b6040516108ce91906134f5565b60405180910390f35b3480156108e2575f5ffd5b506108fd60048036038101906108f89190613720565b611441565b005b34801561090a575f5ffd5b506109256004803603810190610920919061349d565b61149d565b60405161093291906134f5565b60405180910390f35b348015610946575f5ffd5b5061094f6114bf565b60405161095c91906134f5565b60405180910390f35b348015610970575f5ffd5b5061098b60048036038101906109869190613599565b6114d2565b005b348015610998575f5ffd5b506109b360048036038101906109ae919061366e565b61152e565b6040516109c091906134f5565b60405180910390f35b3480156109d4575f5ffd5b506109ef60048036038101906109ea9190613789565b61154b565b005b3480156109fc575f5ffd5b50610a056115e2565b604051610a129190613822565b60405180910390f35b348015610a26575f5ffd5b50610a416004803603810190610a3c919061366e565b611606565b005b348015610a4e575f5ffd5b50610a57611897565b604051610a649190613605565b60405180910390f35b348015610a78575f5ffd5b50610a8161189d565b604051610a8e9190613605565b60405180910390f35b348015610aa2575f5ffd5b50610abd6004803603810190610ab8919061366e565b6118a3565b604051610aca91906134f5565b60405180910390f35b348015610ade575f5ffd5b50610af96004803603810190610af4919061383b565b6118c0565b604051610b069190613605565b60405180910390f35b348015610b1a575f5ffd5b50610b356004803603810190610b30919061366e565b611942565b005b348015610b42575f5ffd5b50610b4b6119c6565b604051610b5891906136a8565b60405180910390f35b606060048054610b70906138a6565b80601f0160208091040260200160405190810160405280929190818152602001828054610b9c906138a6565b8015610be75780601f10610bbe57610100808354040283529160200191610be7565b820191905f5260205f20905b815481529060010190602001808311610bca57829003601f168201915b5050505050905090565b5f5f610bfb6119cc565b9050610c088185856119d3565b600191505092915050565b610c1b6119e5565b600760189054906101000a900460ff1615610c62576040517fef65161f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600760186101000a81548160ff02191690831515021790555043600881905550426009819055507f6603428d483ce13b6662b7a6848d769996e12e801bed4b0f1b9e8d10f64d38ba60405160405180910390a1565b610cc16119e5565b5f5f90505b83839050811015610d0f57610d02848483818110610ce757610ce66138d6565b5b9050602002016020810190610cfc919061366e565b83611a6c565b8080600101915050610cc6565b50505050565b5f600354905090565b600e5481565b5f5f610d2e6119cc565b9050610d3b858285611afd565b610d46858585611b8f565b60019150509392505050565b6012602052805f5260405f205f915054906101000a900460ff1681565b7f0000000000000000000000003ec0799420ae06c105364b01da8f329830ffa49481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6012905090565b600760149054906101000a900460ff1681565b610ddb6119e5565b6103e86002610de8610d15565b610df29190613930565b610dfc919061399e565b811015610e35576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600c819055507f1f41d239159181ddefb13e99853e0e4998e0556aa1f2281281c783e309281062600c54604051610e6d9190613605565b60405180910390a150565b610e806119e5565b80600760146101000a81548160ff0219169083151502179055507f1da197dc3cab4eceaefd5d0c34df2ed3a08f20a207fb1910c0eceb361e2c965c81604051610ec991906134f5565b60405180910390a150565b600760189054906101000a900460ff1681565b600f5481565b5f81565b610ef96119e5565b80600760156101000a81548160ff0219169083151502179055507f6a53d6c83a7a55d7a07bd490493fceb559161cce588908714e497e54044777d981604051610f4291906134f5565b60405180910390a150565b600c5481565b610f5b6119e5565b6023821115610f96576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6023811115610fd1576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600f81905550806010819055505050565b600d5481565b600b5481565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b61103d6119e5565b6110465f611c7f565b565b6110506119e5565b6103e8600361105d610d15565b6110679190613930565b611071919061399e565b8110156110aa576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d819055507fe2e6151ed0b472c61401059745339ca42474813911b22d24023385def6377e1c600d546040516110e29190613605565b60405180910390a150565b6110f56119e5565b6103e86002611102610d15565b61110c9190613930565b611116919061399e565b81101561114f576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600b819055507f85668e92bc538f5c140067d68e3375c65b9e4545d2822ec8d807c6782f747d62600b546040516111879190613605565b60405180910390a150565b6014602052805f5260405f205f915054906101000a900460ff1681565b602381565b60085481565b60115481565b6111c86119e5565b6023811115611203576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6011549050816011819055507f6a7b998a4adc393cb692c67fcd563e7971e2ea6f3fe7c9b8fb6dd53cf5b627d082826040516112419291906139ce565b60405180910390a15050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600580546112a8906138a6565b80601f01602080910402602001604051908101604052809291908181526020018280546112d4906138a6565b801561131f5780601f106112f65761010080835404028352916020019161131f565b820191905f5260205f20905b81548152906001019060200180831161130257829003601f168201915b5050505050905090565b6113316119e5565b5f61133a610d15565b9050620f424060018261134d9190613930565b611357919061399e565b821015611390576040517fc2f5625a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103e86005826113a09190613930565b6113aa919061399e565b8211156113e3576040517f0625040100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600e54905082600e819055507f65a8c7442ea496b0a28890f1ef48a9819d1f5d747e9a8df155fe862dfd493c9583826040516114219291906139ce565b60405180910390a1505050565b600760169054906101000a900460ff1681565b6114496119e5565b80600760166101000a81548160ff0219169083151502179055507fa6a3dda702515d3130fef8b72d8e25f9aebd0d02e89d10d63c0c31d80b52f4a08160405161149291906134f5565b60405180910390a150565b5f5f6114a76119cc565b90506114b4818585611b8f565b600191505092915050565b600760159054906101000a900460ff1681565b6114da6119e5565b5f5f90505b838390508110156115285761151b848483818110611500576114ff6138d6565b5b9050602002016020810190611515919061366e565b83611cf5565b80806001019150506114df565b50505050565b6015602052805f5260405f205f915054906101000a900460ff1681565b6115536119e5565b60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156115d4576040517f027106be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6115de8282611d86565b5050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b61160e6119e5565b5f3390505f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611729575f4791505f8211611683576040517fcff858f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16826040516116a790613a22565b5f6040518083038185875af1925050503d805f81146116e1576040519150601f19603f3d011682016040523d82523d5f602084013e6116e6565b606091505b50508091505080611723576040517f81102ece00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50611859565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161176291906136a8565b602060405180830381865afa15801561177d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117a19190613a4a565b90505f81116117dc576040517ffba5154e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611817929190613a75565b6020604051808303815f875af1158015611833573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118579190613ab0565b505b7f7aba7eca7d870d5f2f93298379a43957082ef15cdcf64db1f7c731c6b3a2fa49838260405161188a929190613a75565b60405180910390a1505050565b60105481565b60095481565b6013602052805f5260405f205f915054906101000a900460ff1681565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b61194a6119e5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119ba575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016119b191906136a8565b60405180910390fd5b6119c381611c7f565b50565b61dead81565b5f33905090565b6119e08383836001611e17565b505050565b6119ed6119cc565b73ffffffffffffffffffffffffffffffffffffffff16611a0b61124d565b73ffffffffffffffffffffffffffffffffffffffff1614611a6a57611a2e6119cc565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611a6191906136a8565b60405180910390fd5b565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f74392251b09500cc108c71712e5e7e0392be9075a74a24f1494551cfa8e068708282604051611af1929190613adb565b60405180910390a15050565b5f611b0884846118c0565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611b895781811015611b7a578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401611b7193929190613b02565b60405180910390fd5b611b8884848484035f611e17565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611bff575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401611bf691906136a8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c6f575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401611c6691906136a8565b60405180910390fd5b611c7a838383611fe6565b505050565b5f611c8861124d565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611cd257611cc7815f611cf5565b611cd1815f611a6c565b5b611cdd826001611cf5565b611ce8826001611a6c565b611cf182612d03565b5050565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f3499bfcf9673677ba552f3fe2ea274ec7e6246da31c3c87e115b45a9b0db2efb8282604051611d7a929190613adb565b60405180910390a15050565b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f024f6c8d60a57c94822c46d989fd6935057590269281b07fe8327d7e9bc424218282604051611e0b929190613adb565b60405180910390a15050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611e87575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401611e7e91906136a8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611ef7575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401611eee91906136a8565b60405180910390fd5b8160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015611fe0578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611fd79190613605565b60405180910390a35b50505050565b5f3390505f32905060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561206f576040517fd18781b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806120f0575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b612126576040517fd18781b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061218b57508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b806121dd575060125f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b612213576040517fd18781b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760189054906101000a900460ff1680612274575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b806122c5575060145f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6122fb576040517f037c597f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600760149054906101000a900460ff1680156123255750600760179054906101000a900460ff16155b80156123c9575060145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806123c7575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b155b90508015612993576123d961124d565b73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015612447575061241761124d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b801561247f57505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b80156124b9575061dead73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b1561299257600760159054906101000a900460ff16156126dc577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415801561257b57507f0000000000000000000000003ec0799420ae06c105364b01da8f329830ffa49473ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b156126db5760034361258d9190613b37565b60165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410801561262057506003436125e09190613b37565b60165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b612656576040517f53444d9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4360165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055504360165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60155f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612779575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561280e57600b548411156127ba576040517f89be121e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d546127c686610fef565b856127d19190613b6a565b1115612809576040517f76c7c05200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612991565b60155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156128ab575060145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156128f157600c548411156128ec576040517fa8e28e1000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612990565b60145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661298f57600d5461294b86610fef565b856129569190613b6a565b111561298e576040517f76c7c05200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b5b5b5b5f600760169054906101000a900460ff1680156129bd5750600760179054906101000a900460ff16155b8015612a61575060135f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612a5f575060135f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b155b90508015612c5a575f5f905060155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612ac457505f601054115b15612aea57606460105487612ad99190613930565b612ae3919061399e565b9050612c36565b60155f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612b4157505f600f54115b15612b67576064600f5487612b569190613930565b612b60919061399e565b9050612c35565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015612c05575060155f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612c1257505f601154115b15612c3457606460115487612c279190613930565b612c31919061399e565b90505b5b5b5f811115612c58578086612c4a9190613b37565b9550612c57883083612dc4565b5b505b5f612c6430610fef565b90505f600e548210159050828015612cc3575060155f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612ccc5750805b15612ced57600a54431115612cec57612ce482612fe0565b43600a819055505b5b612cf8898989612dc4565b505050505050505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e14578060035f828254612e089190613b6a565b92505081905550612ee4565b5f60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612e9e578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401612e9593929190613b02565b60405180910390fd5b81810360015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f2b578060035f8282540392505081905550612f76565b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612fd39190613605565b60405180910390a3505050565b6001600760176101000a81548160ff0219169083151502179055505f5f600267ffffffffffffffff81111561301857613017613b9d565b5b6040519080825280602002602001820160405280156130465781602001602082028036833780820191505090505b50905030815f8151811061305d5761305c6138d6565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613100573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906131249190613bde565b81600181518110613138576131376138d6565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f6014600e546131829190613930565b905080841115613190578093505b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947855f8530426040518663ffffffff1660e01b81526004016131f1959493929190613cf9565b5f604051808303815f87803b158015613208575f5ffd5b505af115801561321a573d5f5f3e3d5ffd5b505050505f4790505f600282613230919061399e565b90505f818361323f9190613b37565b905060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161328690613a22565b5f6040518083038185875af1925050503d805f81146132c0576040519150601f19603f3d011682016040523d82523d5f602084013e6132c5565b606091505b50508096505060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161331090613a22565b5f6040518083038185875af1925050503d805f811461334a576040519150601f19603f3d011682016040523d82523d5f602084013e61334f565b606091505b5050809650505050505050505f600760176101000a81548160ff02191690831515021790555050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6133ba82613378565b6133c48185613382565b93506133d4818560208601613392565b6133dd816133a0565b840191505092915050565b5f6020820190508181035f83015261340081846133b0565b905092915050565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61343982613410565b9050919050565b6134498161342f565b8114613453575f5ffd5b50565b5f8135905061346481613440565b92915050565b5f819050919050565b61347c8161346a565b8114613486575f5ffd5b50565b5f8135905061349781613473565b92915050565b5f5f604083850312156134b3576134b2613408565b5b5f6134c085828601613456565b92505060206134d185828601613489565b9150509250929050565b5f8115159050919050565b6134ef816134db565b82525050565b5f6020820190506135085f8301846134e6565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f84011261352f5761352e61350e565b5b8235905067ffffffffffffffff81111561354c5761354b613512565b5b60208301915083602082028301111561356857613567613516565b5b9250929050565b613578816134db565b8114613582575f5ffd5b50565b5f813590506135938161356f565b92915050565b5f5f5f604084860312156135b0576135af613408565b5b5f84013567ffffffffffffffff8111156135cd576135cc61340c565b5b6135d98682870161351a565b935093505060206135ec86828701613585565b9150509250925092565b6135ff8161346a565b82525050565b5f6020820190506136185f8301846135f6565b92915050565b5f5f5f6060848603121561363557613634613408565b5b5f61364286828701613456565b935050602061365386828701613456565b925050604061366486828701613489565b9150509250925092565b5f6020828403121561368357613682613408565b5b5f61369084828501613456565b91505092915050565b6136a28161342f565b82525050565b5f6020820190506136bb5f830184613699565b92915050565b5f60ff82169050919050565b6136d6816136c1565b82525050565b5f6020820190506136ef5f8301846136cd565b92915050565b5f6020828403121561370a57613709613408565b5b5f61371784828501613489565b91505092915050565b5f6020828403121561373557613734613408565b5b5f61374284828501613585565b91505092915050565b5f5f6040838503121561376157613760613408565b5b5f61376e85828601613489565b925050602061377f85828601613489565b9150509250929050565b5f5f6040838503121561379f5761379e613408565b5b5f6137ac85828601613456565b92505060206137bd85828601613585565b9150509250929050565b5f819050919050565b5f6137ea6137e56137e084613410565b6137c7565b613410565b9050919050565b5f6137fb826137d0565b9050919050565b5f61380c826137f1565b9050919050565b61381c81613802565b82525050565b5f6020820190506138355f830184613813565b92915050565b5f5f6040838503121561385157613850613408565b5b5f61385e85828601613456565b925050602061386f85828601613456565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806138bd57607f821691505b6020821081036138d0576138cf613879565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61393a8261346a565b91506139458361346a565b92508282026139538161346a565b9150828204841483151761396a57613969613903565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6139a88261346a565b91506139b38361346a565b9250826139c3576139c2613971565b5b828204905092915050565b5f6040820190506139e15f8301856135f6565b6139ee60208301846135f6565b9392505050565b5f81905092915050565b50565b5f613a0d5f836139f5565b9150613a18826139ff565b5f82019050919050565b5f613a2c82613a02565b9150819050919050565b5f81519050613a4481613473565b92915050565b5f60208284031215613a5f57613a5e613408565b5b5f613a6c84828501613a36565b91505092915050565b5f604082019050613a885f830185613699565b613a9560208301846135f6565b9392505050565b5f81519050613aaa8161356f565b92915050565b5f60208284031215613ac557613ac4613408565b5b5f613ad284828501613a9c565b91505092915050565b5f604082019050613aee5f830185613699565b613afb60208301846134e6565b9392505050565b5f606082019050613b155f830186613699565b613b2260208301856135f6565b613b2f60408301846135f6565b949350505050565b5f613b418261346a565b9150613b4c8361346a565b9250828203905081811115613b6457613b63613903565b5b92915050565b5f613b748261346a565b9150613b7f8361346a565b9250828201905080821115613b9757613b96613903565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f81519050613bd881613440565b92915050565b5f60208284031215613bf357613bf2613408565b5b5f613c0084828501613bca565b91505092915050565b5f819050919050565b5f613c2c613c27613c2284613c09565b6137c7565b61346a565b9050919050565b613c3c81613c12565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c748161342f565b82525050565b5f613c858383613c6b565b60208301905092915050565b5f602082019050919050565b5f613ca782613c42565b613cb18185613c4c565b9350613cbc83613c5c565b805f5b83811015613cec578151613cd38882613c7a565b9750613cde83613c91565b925050600181019050613cbf565b5085935050505092915050565b5f60a082019050613d0c5f8301886135f6565b613d196020830187613c33565b8181036040830152613d2b8186613c9d565b9050613d3a6060830185613699565b613d4760808301846135f6565b969550505050505056fea2646970667358221220775e7148817c86ebd09d34d38adc3d294247274a68c51dcf8d92e083f8e1a9b164736f6c634300081c0033

Verified Source Code Full Match

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

/*


$MOGoose

The mongoose is back, and it’s here to mog.

Web: https://mogoose.com/
X: https://x.com/MOGooseToken
Telegram: https://t.me/MOGooseETH

*/

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 MOGoose 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("MOGoose", "MOGoose") {
        address owner = msg.sender;
        _mint(owner, 2_000_000_000 ether);
        uint256 totalSupplyTokens = totalSupply();

        taxWallet = 0xcc95A5CF21886F29104Ad943B10e437EEFD41c88;
        devWallet = 0x01d6A69931B5150BCC3E9153A25835B6eb80907E;

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

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

        buyTax = 35;
        sellTax = 35;
        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 activate() external onlyOwner {
        require(!isActivated, AlreadyActivated());
        isActivated = true;
        activationBlock = block.number;
        activationTime = block.timestamp;
        emit Activation();
    }

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

    function setCooldownEnabled(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 setTransferTax(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 setMarketPair(address pair, bool value) external onlyOwner {
        require(!marketPairs[pair], PairAlreadySet());
        _setMarketPair(pair, value);
    }

    function withdrawStuckTokens(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) {
                _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 _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 19 functions

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

activate 0x0f15f4c0
No parameters
approve 0x095ea7b3
address spender
uint256 value
returns: bool
excludeFromFees 0xad29ffde
address[] accounts
bool value
excludeFromLimits 0x106a5a8f
address[] accounts
bool value
renounceOwnership 0x715018a6
No parameters
setCooldownEnabled 0x5932ead1
bool value
setFeesEnabled 0xa901dd92
bool value
setLimitsEnabled 0x41aea9de
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
setTransferTax 0x8b525903
uint256 _transferTax
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawStuckTokens 0xcb963728
address _token

Recent Transactions

No transactions found for this address