Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x7A68033F4480d0272618f2dF998A5fc54Bd02C46
Balance 0.005050 ETH
Nonce 1
Code Size 13035 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

13035 bytes
0x60806040526004361061012d575f3560e01c806370a08231116100aa578063a9059cbb1161006e578063a9059cbb146103d2578063b26baf441461040e578063bc66a72d14610436578063c6acc77a1461044c578063dd62ed3e14610474578063f2fde38b146104b057610134565b806370a08231146102f0578063715018a61461032c5780638da5cb5b1461034257806395d89b411461036c578063a457c2d71461039657610134565b80632ab91bba116100f15780632ab91bba1461020e578063313ce56714610238578063395093511461026257806352f5ad771461029e578063606a1be8146102c657610134565b806306fdde0314610138578063095ea7b3146101625780631249c58b1461019e57806318160ddd146101a857806323b872dd146101d257610134565b3661013457005b5f80fd5b348015610143575f80fd5b5061014c6104d8565b6040516101599190611fd7565b60405180910390f35b34801561016d575f80fd5b5061018860048036038101906101839190612095565b610568565b60405161019591906120ed565b60405180910390f35b6101a6610585565b005b3480156101b3575f80fd5b506101bc61081c565b6040516101c99190612115565b60405180910390f35b3480156101dd575f80fd5b506101f860048036038101906101f3919061212e565b610825565b60405161020591906120ed565b60405180910390f35b348015610219575f80fd5b5061022261093f565b60405161022f91906120ed565b60405180910390f35b348015610243575f80fd5b5061024c610951565b6040516102599190612199565b60405180910390f35b34801561026d575f80fd5b5061028860048036038101906102839190612095565b610959565b60405161029591906120ed565b60405180910390f35b3480156102a9575f80fd5b506102c460048036038101906102bf91906121b2565b610a00565b005b3480156102d1575f80fd5b506102da610ad9565b6040516102e79190612238565b60405180910390f35b3480156102fb575f80fd5b50610316600480360381019061031191906121b2565b610afe565b6040516103239190612115565b60405180910390f35b348015610337575f80fd5b50610340610b43565b005b34801561034d575f80fd5b50610356610c96565b6040516103639190612260565b60405180910390f35b348015610377575f80fd5b50610380610cbe565b60405161038d9190611fd7565b60405180910390f35b3480156103a1575f80fd5b506103bc60048036038101906103b79190612095565b610d4e565b6040516103c991906120ed565b60405180910390f35b3480156103dd575f80fd5b506103f860048036038101906103f39190612095565b610e34565b60405161040591906120ed565b60405180910390f35b348015610419575f80fd5b50610434600480360381019061042f91906123b9565b610e51565b005b348015610441575f80fd5b5061044a610f9e565b005b348015610457575f80fd5b50610472600480360381019061046d9190612095565b61109f565b005b34801561047f575f80fd5b5061049a60048036038101906104959190612413565b6113a7565b6040516104a79190612115565b60405180910390f35b3480156104bb575f80fd5b506104d660048036038101906104d191906121b2565b611429565b005b6060600380546104e79061247e565b80601f01602080910402602001604051908101604052809291908181526020018280546105139061247e565b801561055e5780601f106105355761010080835404028352916020019161055e565b820191905f5260205f20905b81548152906001019060200180831161054157829003601f168201915b5050505050905090565b5f61057b6105746115eb565b84846115f2565b6001905092915050565b60075f9054906101000a900460ff16156105d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105cb906124f8565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff166105f3610c96565b73ffffffffffffffffffffffffffffffffffffffff1603610649576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064090612586565b60405180910390fd5b67016345785d8a0000341015610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b906125ee565b60405180910390fd5b5f6106c467016345785d8a00006106b6600654346117b590919063ffffffff16565b6117ca90919063ffffffff16565b90505f309050816106d482610afe565b1015610715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070c9061267c565b60405180910390fd5b6107208133846117df565b6107703460085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611a5490919063ffffffff16565b60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506107ba33611a69565b600e5f8154809291906107cc906126c7565b9190505550343373ffffffffffffffffffffffffffffffffffffffff16600e547fe30efae2a15b2de1829a1c4059a6ea65c2ccb04ff1676eb919cc936f17536b6a60405160405180910390a45050565b5f600254905090565b5f8060015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f61086d6115eb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109285782811015610913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090a9061277e565b60405180910390fd5b6109278561091f6115eb565b8584036115f2565b5b610933858585611e10565b60019150509392505050565b60075f9054906101000a900460ff1681565b5f6012905090565b5f6109f66109656115eb565b848460015f6109726115eb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546109f1919061279c565b6115f2565b6001905092915050565b610a086115eb565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d90612819565b60405180910390fd5b80600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610b4b6115eb565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd090612819565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610ccd9061247e565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf99061247e565b8015610d445780601f10610d1b57610100808354040283529160200191610d44565b820191905f5260205f20905b815481529060010190602001808311610d2757829003601f168201915b5050505050905090565b5f8060015f610d5b6115eb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905082811015610e15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0c906128a7565b60405180910390fd5b610e29610e206115eb565b858584036115f2565b600191505092915050565b5f610e47610e406115eb565b8484611e10565b6001905092915050565b610e596115eb565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ede90612819565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff16610f06610c96565b73ffffffffffffffffffffffffffffffffffffffff1603610f5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5390612586565b60405180910390fd5b5f5b8251811015610f9957610f8c30848381518110610f7e57610f7d6128c5565b5b6020026020010151846117df565b8080600101915050610f5e565b505050565b610fa66115eb565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102b90612819565b60405180910390fd5b60075f9054906101000a900460ff1615611083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107a906124f8565b60405180910390fd5b600160075f6101000a81548160ff021916908315150217905550565b6110a76115eb565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611135576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112c90612819565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119a90612962565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112625747811115611219576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611210906129ca565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f1935050505015801561125c573d5f803e3d5ffd5b506113a3565b5f8290505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112a09190612260565b602060405180830381865afa1580156112bb573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112df91906129fc565b905080831115611324576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131b90612a97565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33856040518363ffffffff1660e01b815260040161135f929190612ab5565b6020604051808303815f875af115801561137b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061139f9190612b06565b5050505b5050565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6114316115eb565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b690612819565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361152d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152490612ba1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611660576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165790612c2f565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c590612cbd565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516117a89190612115565b60405180910390a3505050565b5f81836117c29190612cdb565b905092915050565b5f81836117d79190612d49565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361184d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184490612de9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b290612e77565b60405180910390fd5b6118c6838383611f46565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015611949576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194090612f05565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546119d7919061279c565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611a3b9190612115565b60405180910390a3611a4e848484611f4b565b50505050565b5f8183611a61919061279c565b905092915050565b5f8060085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f600190505b60048160ff1611611d12575f6009600183611acc9190612f23565b60ff1681548110611ae057611adf6128c5565b5b905f5260205f20015490505f611af4610951565b600a611b009190613086565b600a600185611b0f9190612f23565b60ff1681548110611b2357611b226128c5565b5b905f5260205f200154611b369190612cdb565b9050818410611cf6578094505f73ffffffffffffffffffffffffffffffffffffffff16600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611cf157600c5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8460ff1660ff1681526020019081526020015f205f9054906101000a900460ff16611cf0576001600c5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8560ff1660ff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636112e8ac876001866040518463ffffffff1660e01b8152600401611cc293929190613109565b5f604051808303815f87803b158015611cd9575f80fd5b505af1158015611ceb573d5f803e3d5ffd5b505050505b5b611cfd565b5050611d12565b50508080611d0a9061313e565b915050611ab1565b505f600b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905080831115611e0a575f3090505f8285611d6d9190613166565b905080611d7983610afe565b1015611dba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db190613209565b60405180910390fd5b84600b5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550611e078287836117df565b50505b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7590612de9565b60405180910390fd5b611e8782611f50565b8015611ede5750611e96610c96565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611edd575060075f9054906101000a900460ff16155b5b15611f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1590613297565b60405180910390fd5b5f8103611f3557611f3083835f6117df565b611f41565b611f408383836117df565b5b505050565b505050565b505050565b5f80823b90505f8163ffffffff1611915050919050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611fa982611f67565b611fb38185611f71565b9350611fc3818560208601611f81565b611fcc81611f8f565b840191505092915050565b5f6020820190508181035f830152611fef8184611f9f565b905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61203182612008565b9050919050565b61204181612027565b811461204b575f80fd5b50565b5f8135905061205c81612038565b92915050565b5f819050919050565b61207481612062565b811461207e575f80fd5b50565b5f8135905061208f8161206b565b92915050565b5f80604083850312156120ab576120aa612000565b5b5f6120b88582860161204e565b92505060206120c985828601612081565b9150509250929050565b5f8115159050919050565b6120e7816120d3565b82525050565b5f6020820190506121005f8301846120de565b92915050565b61210f81612062565b82525050565b5f6020820190506121285f830184612106565b92915050565b5f805f6060848603121561214557612144612000565b5b5f6121528682870161204e565b93505060206121638682870161204e565b925050604061217486828701612081565b9150509250925092565b5f60ff82169050919050565b6121938161217e565b82525050565b5f6020820190506121ac5f83018461218a565b92915050565b5f602082840312156121c7576121c6612000565b5b5f6121d48482850161204e565b91505092915050565b5f819050919050565b5f6122006121fb6121f684612008565b6121dd565b612008565b9050919050565b5f612211826121e6565b9050919050565b5f61222282612207565b9050919050565b61223281612218565b82525050565b5f60208201905061224b5f830184612229565b92915050565b61225a81612027565b82525050565b5f6020820190506122735f830184612251565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6122b382611f8f565b810181811067ffffffffffffffff821117156122d2576122d161227d565b5b80604052505050565b5f6122e4611ff7565b90506122f082826122aa565b919050565b5f67ffffffffffffffff82111561230f5761230e61227d565b5b602082029050602081019050919050565b5f80fd5b5f612336612331846122f5565b6122db565b9050808382526020820190506020840283018581111561235957612358612320565b5b835b81811015612382578061236e888261204e565b84526020840193505060208101905061235b565b5050509392505050565b5f82601f8301126123a05761239f612279565b5b81356123b0848260208601612324565b91505092915050565b5f80604083850312156123cf576123ce612000565b5b5f83013567ffffffffffffffff8111156123ec576123eb612004565b5b6123f88582860161238c565b925050602061240985828601612081565b9150509250929050565b5f806040838503121561242957612428612000565b5b5f6124368582860161204e565b92505060206124478582860161204e565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061249557607f821691505b6020821081036124a8576124a7612451565b5b50919050565b7f5075626c69632073616c652068617320656e64656400000000000000000000005f82015250565b5f6124e2601583611f71565b91506124ed826124ae565b602082019050919050565b5f6020820190508181035f83015261250f816124d6565b9050919050565b7f4f776e65722061646472657373206973207a65726f2c206f7065726174696f6e5f8201527f206e6f7420616c6c6f7765640000000000000000000000000000000000000000602082015250565b5f612570602c83611f71565b915061257b82612516565b604082019050919050565b5f6020820190508181035f83015261259d81612564565b9050919050565b7f496e73756666696369656e74204554482073656e7400000000000000000000005f82015250565b5f6125d8601583611f71565b91506125e3826125a4565b602082019050919050565b5f6020820190508181035f830152612605816125cc565b9050919050565b7f4f776e657220646f6573206e6f74206861766520656e6f75676820746f6b656e5f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f612666602183611f71565b91506126718261260c565b604082019050919050565b5f6020820190508181035f8301526126938161265a565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6126d182612062565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036127035761270261269a565b5b600182019050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320615f8201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b5f612768602883611f71565b91506127738261270e565b604082019050919050565b5f6020820190508181035f8301526127958161275c565b9050919050565b5f6127a682612062565b91506127b183612062565b92508282019050808211156127c9576127c861269a565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f612803602083611f71565b915061280e826127cf565b602082019050919050565b5f6020820190508181035f830152612830816127f7565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f612891602583611f71565b915061289c82612837565b604082019050919050565b5f6020820190508181035f8301526128be81612885565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4f776e65722063616e6e6f7420636c61696d20636f6e747261637427732062615f8201527f6c616e6365206f6620697473206f776e20746f6b656e73000000000000000000602082015250565b5f61294c603783611f71565b9150612957826128f2565b604082019050919050565b5f6020820190508181035f83015261297981612940565b9050919050565b7f496e73756666696369656e7420636f6e74726163742062616c616e63650000005f82015250565b5f6129b4601d83611f71565b91506129bf82612980565b602082019050919050565b5f6020820190508181035f8301526129e1816129a8565b9050919050565b5f815190506129f68161206b565b92915050565b5f60208284031215612a1157612a10612000565b5b5f612a1e848285016129e8565b91505092915050565b7f496e73756666696369656e7420746f6b656e2062616c616e636520696e20636f5f8201527f6e74726163740000000000000000000000000000000000000000000000000000602082015250565b5f612a81602683611f71565b9150612a8c82612a27565b604082019050919050565b5f6020820190508181035f830152612aae81612a75565b9050919050565b5f604082019050612ac85f830185612251565b612ad56020830184612106565b9392505050565b612ae5816120d3565b8114612aef575f80fd5b50565b5f81519050612b0081612adc565b92915050565b5f60208284031215612b1b57612b1a612000565b5b5f612b2884828501612af2565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f612b8b602683611f71565b9150612b9682612b31565b604082019050919050565b5f6020820190508181035f830152612bb881612b7f565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f612c19602483611f71565b9150612c2482612bbf565b604082019050919050565b5f6020820190508181035f830152612c4681612c0d565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f612ca7602283611f71565b9150612cb282612c4d565b604082019050919050565b5f6020820190508181035f830152612cd481612c9b565b9050919050565b5f612ce582612062565b9150612cf083612062565b9250828202612cfe81612062565b91508282048414831517612d1557612d1461269a565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612d5382612062565b9150612d5e83612062565b925082612d6e57612d6d612d1c565b5b828204905092915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f612dd3602583611f71565b9150612dde82612d79565b604082019050919050565b5f6020820190508181035f830152612e0081612dc7565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f612e61602383611f71565b9150612e6c82612e07565b604082019050919050565b5f6020820190508181035f830152612e8e81612e55565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f612eef602683611f71565b9150612efa82612e95565b604082019050919050565b5f6020820190508181035f830152612f1c81612ee3565b9050919050565b5f612f2d8261217e565b9150612f388361217e565b9250828203905060ff811115612f5157612f5061269a565b5b92915050565b5f8160011c9050919050565b5f808291508390505b6001851115612fac57808604811115612f8857612f8761269a565b5b6001851615612f975780820291505b8081029050612fa585612f57565b9450612f6c565b94509492505050565b5f82612fc4576001905061307f565b81612fd1575f905061307f565b8160018114612fe75760028114612ff157613020565b600191505061307f565b60ff8411156130035761300261269a565b5b8360020a91508482111561301a5761301961269a565b5b5061307f565b5060208310610133831016604e8410600b84101617156130555782820a9050838111156130505761304f61269a565b5b61307f565b6130628484846001612f63565b925090508184048111156130795761307861269a565b5b81810290505b9392505050565b5f61309082612062565b915061309b8361217e565b92506130c87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612fb5565b905092915050565b5f819050919050565b5f6130f36130ee6130e9846130d0565b6121dd565b612062565b9050919050565b613103816130d9565b82525050565b5f60608201905061311c5f830186612251565b61312960208301856130fa565b613136604083018461218a565b949350505050565b5f6131488261217e565b915060ff820361315b5761315a61269a565b5b600182019050919050565b5f61317082612062565b915061317b83612062565b92508282039050818111156131935761319261269a565b5b92915050565b7f4f776e657220646f6573206e6f74206861766520656e6f75676820746f6b656e5f8201527f7320666f72207265776172647300000000000000000000000000000000000000602082015250565b5f6131f3602d83611f71565b91506131fe82613199565b604082019050919050565b5f6020820190508181035f830152613220816131e7565b9050919050565b7f4f6e6c7920746865206f776e65722063616e20616464206c69717569646974795f8201527f206265666f7265207075626c69632073616c6520656e64732e00000000000000602082015250565b5f613281603983611f71565b915061328c82613227565b604082019050919050565b5f6020820190508181035f8301526132ae81613275565b905091905056fea26469706673582212203a555722e898968c81c0791542a61a30917b6e541379e1c1a4b4cf9fcceaf1ca64736f6c634300081a0033

Verified Source Code Partial Match

Compiler: v0.8.26+commit.8a97fa7a EVM: cancun Optimization: No
TimingFox.sol 530 lines
/**
 *Submitted for verification at Etherscan.io on 2024-12-10
*/

/**
 *Submitted for verification at Etherscan.io on 2024-11-05
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

library SafeMath {
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}
library StringUtils {
    function toString(bytes32 data) internal pure returns (string memory) {
        bytes memory bytesString = new bytes(64);
        for (uint256 i = 0; i < 32; i++) {
            bytesString[i * 2] = _char(bytes1(uint8(data[i]) >> 4));
            bytesString[1 + i * 2] = _char(bytes1(uint8(data[i]) & 0x0f));
        }
        return string(bytesString);
    }

    function _char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) {
            return bytes1(uint8(b) + 0x30);
        } else {
            return bytes1(uint8(b) + 0x57);
        }
    }

    function substring(string memory str, uint startIndex, uint endIndex) internal pure returns (string memory) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(endIndex - startIndex);
        for (uint i = startIndex; i < endIndex; i++) {
            result[i - startIndex] = strBytes[i];
        }
        return string(result);
    }
}
interface IERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
   
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

library Address {
    function sendValue(address payable recipient, uint256 amount) internal returns(bool){
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        return success;
    }
}

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

abstract contract Ownable is Context {
    address private _owner;

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

    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;


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

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

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

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

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

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

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

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

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

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

        _transfer(sender, recipient, amount);

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

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

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /*
    * @notice Creates new tokens and adds them to the specified account.
    * @dev The function creates a specified amount of tokens and adds them to the specified account, increasing the total supply accordingly.
    * @param account The account to which the tokens will be minted.
    * @param amount The amount of tokens to be minted.
    * @return It emits a Transfer event indicating the minting of tokens from the zero address to the specified account.
    */ 
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

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

    /*
    * @notice Burns a specific amount of tokens from the specified account.
    * @dev The function reduces the balance of the specified account by the specified amount and decreases the total supply accordingly.
    * @param account The account from which the tokens will be burned.
    * @param amount The amount of tokens to be burned.
    * @return It emits a Transfer event indicating the burning of tokens from the account to the zero address.
    */ 
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

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

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

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


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

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

    /*
    * @notice Hook that is called before transferring tokens.
    * @dev This function is called before transferring tokens from one account to another.
    * @param from The account from which the tokens are being transferred.
    * @param to The account to which the tokens are being transferred.
    * @param amount The amount of tokens being transferred.
    */ 
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

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

interface ITimingFoxNFT{
    function mint(address to, uint256 quantity, uint8 level) external;
}

contract TimingFox is ERC20, Ownable {
    using SafeMath for uint256;
    uint256 private  mintAmount = 250000 * 10**uint256(decimals());
    uint256 private constant mintETHAmount = 0.1 ether;
    bool public publicSaleEnabled = false;
    mapping(address => uint256) private userETHDeposits; // Record the accumulated amount of ETH deposited by users

    uint256[] private rewardThresholds = [5 ether, 10 ether, 20 ether, 30 ether]; // reward threshold
    uint256[] private rewardAmounts = [125000, 625000, 2500000, 6000000]; // Corresponding number of reward tokens
    mapping(address => uint256) private claimedRewards; // Record the total amount of rewards that the user has received
    // User reward collection record: User address -> Reward level -> Whether it has been received
    mapping(address => mapping(uint8 => bool)) private rewardMinted;
    ITimingFoxNFT public TTimingFoxNFTContract;
    uint256 private eventCounter; 

    event CreativeEnergy(uint256 indexed  eventId, address indexed  sender, uint256 indexed  value);

    constructor () ERC20("TimingFox", "TFT") 
    {   
        _mint(address(this), 1e10 * (10 ** decimals()));
       eventCounter = 0; 
    }

    receive() external payable {}

  

    function mint() external payable {
        require(!publicSaleEnabled, "Public sale has ended");
        require(owner() != address(0), "Owner address is zero, operation not allowed");
        require(msg.value >= mintETHAmount, "Insufficient ETH sent");

        // Dynamically calculate the number of tokens a user deserves
        uint256 mintQuantity = msg.value.mul(mintAmount).div(mintETHAmount);
        address contractAddress = address(this);
        require(balanceOf(contractAddress) >= mintQuantity, "Owner does not have enough tokens");
        // Transfer tokens from owner to user
        super._transfer(contractAddress, msg.sender, mintQuantity);

        // Update the user's cumulative deposit amount
        userETHDeposits[msg.sender] = userETHDeposits[msg.sender].add(msg.value);
        // Check whether the reward threshold is reached and issue the reward
        checkAndReward(msg.sender);
        eventCounter++;
        emit CreativeEnergy(eventCounter, msg.sender, msg.value);
    }

    function checkAndReward(address user) internal {
        uint256 totalReward = 0; // Total token rewards currently due
        uint256 userDeposit = userETHDeposits[user]; // Accumulated deposits of users
        // Traverse reward levels
        for (uint8 level = 1; level <= 4; level++) {
            uint256 threshold = rewardThresholds[level - 1];
            uint256 reward = rewardAmounts[level - 1] * (10**decimals());
            // Check if the reward level is reached
            if (userDeposit >= threshold) {
                // Update token rewards
                totalReward = reward;
                // Check if mint method needs to be called
                if (address(TTimingFoxNFTContract) != address(0)) {
                    if (!rewardMinted[user][level]) {
                        rewardMinted[user][level] = true; // Mark the reward for this level as received
                        TTimingFoxNFTContract.mint(user, 1, level); // Call NFT mint method
                    }
                }
            } else {
                break; // User deposit is not enough to reach the next level
            }
        }

        // Check the total amount of token rewards claimed
        uint256 claimedReward = claimedRewards[user];

        // If the total token reward is greater than the received reward, the difference will be reissued
        if (totalReward > claimedReward) {
            address contractAddress = address(this);
            uint256 rewardToSend = totalReward - claimedReward; // Calculate the difference
            require(balanceOf(contractAddress) >= rewardToSend, "Owner does not have enough tokens for rewards");
            claimedRewards[user] = totalReward; // Update the total amount of rewards claimed
            super._transfer(contractAddress, user, rewardToSend); // Issue token rewards
        }
    }


    function setNftContract(address _contract) external onlyOwner {
        TTimingFoxNFTContract = ITimingFoxNFT(_contract);
    }

    
    function sendAirdrops(address[] memory recipients, uint256 amount) external onlyOwner{
        require(owner() != address(0), "Owner address is zero, operation not allowed");
        for (uint i = 0; i < recipients.length; i++) {
            super._transfer(address(this), recipients[i], amount);
        }
    }

    function endedPublicSaleEnabled() external onlyOwner{
        require(!publicSaleEnabled, "Public sale has ended");
        publicSaleEnabled = true;
    }

    function isContract(address _addr) internal view returns (bool) {
        uint32 size;
        assembly {
            size := extcodesize(_addr)
        }
        return (size > 0);
    }

    function _transfer(address from,address to,uint256 amount) internal  override {
        require(from != address(0), "ERC20: transfer from the zero address");
        
        if (isContract(to) && (from != owner() && !publicSaleEnabled)) {
            revert("Only the owner can add liquidity before public sale ends.");
        }

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

        super._transfer(from, to, amount);
    }
   
    function claimStuckTokens(address token, uint256 amount) external onlyOwner {
        require(token != address(this), "Owner cannot claim contract's balance of its own tokens");
        
        if (token == address(0)) {
            require(amount <= address(this).balance, "Insufficient contract balance");
            payable(msg.sender).transfer(amount);
            return;
        }

        IERC20 ERC20token = IERC20(token);
        uint256 contractBalance = ERC20token.balanceOf(address(this));
        require(amount <= contractBalance, "Insufficient token balance in contract");
        ERC20token.transfer(msg.sender, amount);
    }
    
}

Read Contract

TTimingFoxNFTContract 0x606a1be8 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
publicSaleEnabled 0x2ab91bba → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 12 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
claimStuckTokens 0xc6acc77a
address token
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
endedPublicSaleEnabled 0xbc66a72d
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
mint 0x1249c58b
No parameters
renounceOwnership 0x715018a6
No parameters
sendAirdrops 0xb26baf44
address[] recipients
uint256 amount
setNftContract 0x52f5ad77
address _contract
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address