Address Contract Partially Verified
Address
0x81d982D268DF0B6378f422095D1Bd9bBE9EFE76E
Balance
0.000000000 ETH
Nonce
1
Code Size
18521 bytes
Creator
0x40674C59...45d7 at tx 0x708b047b...616fba
Indexed Transactions
0
Contract Bytecode
18521 bytes
0x6080604052600436106102e7575f3560e01c80638e84afec1161018f578063ba264714116100db578063dda4866f11610094578063e6c1909b1161006e578063e6c1909b14610ac6578063f2fde38b14610af0578063f8b45b0514610b18578063fd72e22a14610b42576102e8565b8063dda4866f14610a4c578063e2f4560514610a74578063e5c6ca3f14610a9e576102e8565b8063ba26471414610956578063cb9637281461096c578063d00efb2f14610994578063d107439b146109be578063d5759ba3146109e6578063dd62ed3e14610a10576102e8565b8063a9059cbb11610148578063afa4f3b211610122578063afa4f3b2146108a0578063b2f3bba2146108c8578063b62496f5146108f0578063b8eb35461461092c576102e8565b8063a9059cbb14610812578063acb2ad6f1461084e578063ad29ffde14610878576102e8565b80638e84afec1461071e578063926443521461074657806395d89b41146107705780639c0db5f31461079a5780639f7f283b146107c2578063a5b1114b146107ea576102e8565b80633bbac5791161024e5780636ca541e511610207578063715018a6116101e1578063715018a61461068a57806375f0a874146106a0578063790ca413146106ca5780638da5cb5b146106f4576102e8565b80636ca541e5146105fa57806370a082311461062457806370db69d614610660576102e8565b80633bbac579146104dc578063470624021461051857806349126a5e1461054257806349bd5a5e146105585780634fbee193146105825780635cce86cd146105be576102e8565b80631fcca0e8116102a05780631fcca0e8146103e257806323b872dd146103f85780632b14ca5614610434578063307aebc91461045e578063313ce5671461048857806336b19cd7146104b2576102e8565b806306fdde03146102ea578063095ea7b314610314578063106a5a8f146103505780631694505e1461037857806318160ddd146103a25780631d97b7cd146103cc576102e8565b5b005b3480156102f5575f5ffd5b506102fe610b6c565b60405161030b9190613d90565b60405180910390f35b34801561031f575f5ffd5b5061033a60048036038101906103359190613e45565b610bfc565b6040516103479190613e9d565b60405180910390f35b34801561035b575f5ffd5b5061037660048036038101906103719190613f41565b610c1e565b005b348015610383575f5ffd5b5061038c610c7a565b6040516103999190613ff9565b60405180910390f35b3480156103ad575f5ffd5b506103b6610c9e565b6040516103c39190614021565b60405180910390f35b3480156103d7575f5ffd5b506103e0610ca7565b005b3480156103ed575f5ffd5b506103f661112a565b005b348015610403575f5ffd5b5061041e6004803603810190610419919061403a565b61119d565b60405161042b9190613e9d565b60405180910390f35b34801561043f575f5ffd5b506104486111cb565b6040516104559190614021565b60405180910390f35b348015610469575f5ffd5b506104726111d1565b60405161047f9190613e9d565b60405180910390f35b348015610493575f5ffd5b5061049c6111e4565b6040516104a991906140a5565b60405180910390f35b3480156104bd575f5ffd5b506104c66111ec565b6040516104d391906140cd565b60405180910390f35b3480156104e7575f5ffd5b5061050260048036038101906104fd91906140e6565b611211565b60405161050f9190613e9d565b60405180910390f35b348015610523575f5ffd5b5061052c61122e565b6040516105399190614021565b60405180910390f35b34801561054d575f5ffd5b50610556611234565b005b348015610563575f5ffd5b5061056c61128f565b60405161057991906140cd565b60405180910390f35b34801561058d575f5ffd5b506105a860048036038101906105a391906140e6565b6112b4565b6040516105b59190613e9d565b60405180910390f35b3480156105c9575f5ffd5b506105e460048036038101906105df91906140e6565b6112d1565b6040516105f19190613e9d565b60405180910390f35b348015610605575f5ffd5b5061060e6112ee565b60405161061b9190613e9d565b60405180910390f35b34801561062f575f5ffd5b5061064a600480360381019061064591906140e6565b611301565b6040516106579190614021565b60405180910390f35b34801561066b575f5ffd5b50610674611347565b6040516106819190614021565b60405180910390f35b348015610695575f5ffd5b5061069e61134d565b005b3480156106ab575f5ffd5b506106b4611360565b6040516106c191906140cd565b60405180910390f35b3480156106d5575f5ffd5b506106de611385565b6040516106eb9190614021565b60405180910390f35b3480156106ff575f5ffd5b5061070861138b565b60405161071591906140cd565b60405180910390f35b348015610729575f5ffd5b50610744600480360381019061073f9190614111565b6113b2565b005b348015610751575f5ffd5b5061075a611440565b6040516107679190613e9d565b60405180910390f35b34801561077b575f5ffd5b50610784611453565b6040516107919190613d90565b60405180910390f35b3480156107a5575f5ffd5b506107c060048036038101906107bb9190613f41565b6114e3565b005b3480156107cd575f5ffd5b506107e860048036038101906107e391906140e6565b611837565b005b3480156107f5575f5ffd5b50610810600480360381019061080b91906140e6565b611967565b005b34801561081d575f5ffd5b5061083860048036038101906108339190613e45565b611a97565b6040516108459190613e9d565b60405180910390f35b348015610859575f5ffd5b50610862611ab9565b60405161086f9190614021565b60405180910390f35b348015610883575f5ffd5b5061089e60048036038101906108999190613f41565b611abf565b005b3480156108ab575f5ffd5b506108c660048036038101906108c19190614111565b611b1b565b005b3480156108d3575f5ffd5b506108ee60048036038101906108e991906140e6565b611c1e565b005b3480156108fb575f5ffd5b50610916600480360381019061091191906140e6565b611c33565b6040516109239190613e9d565b60405180910390f35b348015610937575f5ffd5b50610940611c50565b60405161094d9190614021565b60405180910390f35b348015610961575f5ffd5b5061096a611c56565b005b348015610977575f5ffd5b50610992600480360381019061098d91906140e6565b611cb1565b005b34801561099f575f5ffd5b506109a8611f42565b6040516109b59190614021565b60405180910390f35b3480156109c9575f5ffd5b506109e460048036038101906109df9190614111565b611f48565b005b3480156109f1575f5ffd5b506109fa611fd6565b604051610a079190613e9d565b60405180910390f35b348015610a1b575f5ffd5b50610a366004803603810190610a31919061413c565b611fe9565b604051610a439190614021565b60405180910390f35b348015610a57575f5ffd5b50610a726004803603810190610a6d919061417a565b61206b565b005b348015610a7f575f5ffd5b50610a886120c7565b604051610a959190614021565b60405180910390f35b348015610aa9575f5ffd5b50610ac46004803603810190610abf9190614111565b6120cd565b005b348015610ad1575f5ffd5b50610ada61215b565b604051610ae79190613e9d565b60405180910390f35b348015610afb575f5ffd5b50610b166004803603810190610b1191906140e6565b61216e565b005b348015610b23575f5ffd5b50610b2c6121f2565b604051610b399190614021565b60405180910390f35b348015610b4d575f5ffd5b50610b566121f8565b604051610b6391906140cd565b60405180910390f35b606060048054610b7b906141d2565b80601f0160208091040260200160405190810160405280929190818152602001828054610ba7906141d2565b8015610bf25780601f10610bc957610100808354040283529160200191610bf2565b820191905f5260205f20905b815481529060010190602001808311610bd557829003601f168201915b5050505050905090565b5f5f610c0661221d565b9050610c13818585612224565b600191505092915050565b610c26612236565b5f5f90505b83839050811015610c7457610c67848483818110610c4c57610c4b614202565b5b9050602002016020810190610c6191906140e6565b836122bd565b8080600101915050610c2b565b50505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600354905090565b610caf612236565b600960189054906101000a900460ff1615610cf6576040517fcfa6d87800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d5f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d839190614243565b73ffffffffffffffffffffffffffffffffffffffff1663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e08573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e2c9190614243565b6040518363ffffffff1660e01b8152600401610e4992919061426e565b6020604051808303815f875af1158015610e65573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e899190614243565b60065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610ef460065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600161234e565b610f3f307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612224565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610f8630611301565b5f5f610f9061138b565b426040518863ffffffff1660e01b8152600401610fb2969594939291906142ce565b60606040518083038185885af1158015610fce573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610ff39190614341565b50505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611092929190614391565b6020604051808303815f875af11580156110ae573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110d291906143cc565b506001600960186101000a81548160ff02191690831515021790555043600a8190555042600b819055507f02ac8168caf2f254b394bd39e19417c5c28124ab89c9bc2d44921b19808e266960405160405180910390a1565b611132612236565b600960199054906101000a900460ff16611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117890614441565b60405180910390fd5b5f600960196101000a81548160ff021916908315150217905550565b5f5f6111a761221d565b90506111b48582856123df565b6111bf858585612471565b60019150509392505050565b60125481565b600960189054906101000a900460ff1681565b5f6012905090565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6014602052805f5260405f205f915054906101000a900460ff1681565b60115481565b61123c612236565b5f600960156101000a81548160ff0219169083151502179055507f381fb4c4aa72df83c60e7e567b9b6faf3fc2b05a6da932da9f071d63442c828f5f6040516112859190613e9d565b60405180910390a1565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6015602052805f5260405f205f915054906101000a900460ff1681565b6016602052805f5260405f205f915054906101000a900460ff1681565b600960159054906101000a900460ff1681565b5f60015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b600d5481565b611355612236565b61135e5f612561565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6113ba612236565b6011548111156113f6576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6011549050816011819055507f5fcc0eea159d45a3b8d481be746c9beed251431a542a5fed4484be37ab783e8d828260405161143492919061445f565b60405180910390a15050565b600960199054906101000a900460ff1681565b606060058054611462906141d2565b80601f016020809104026020016040519081016040528092919081815260200182805461148e906141d2565b80156114d95780601f106114b0576101008083540402835291602001916114d9565b820191905f5260205f20905b8154815290600101906020018083116114bc57829003601f168201915b5050505050905090565b6114eb612236565b600960199054906101000a900460ff1661153a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611531906144d0565b60405180910390fd5b5f5f90505b838390508110156118315760175f8585848181106115605761155f614202565b5b905060200201602081019061157591906140e6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615801561163b57507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1684848381811061160d5761160c614202565b5b905060200201602081019061162291906140e6565b73ffffffffffffffffffffffffffffffffffffffff1614155b801561169a57503073ffffffffffffffffffffffffffffffffffffffff1684848381811061166c5761166b614202565b5b905060200201602081019061168191906140e6565b73ffffffffffffffffffffffffffffffffffffffff1614155b80156116f957505f73ffffffffffffffffffffffffffffffffffffffff168484838181106116cb576116ca614202565b5b90506020020160208101906116e091906140e6565b73ffffffffffffffffffffffffffffffffffffffff1614155b80156117ed575060155f85858481811061171657611715614202565b5b905060200201602081019061172b91906140e6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156117ec575060165f85858481811061178f5761178e614202565b5b90506020020160208101906117a491906140e6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b5b156118245761182384848381811061180857611807614202565b5b905060200201602081019061181d91906140e6565b836125d7565b5b808060010191505061153f565b50505050565b61183f612236565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036118a4576040517f9fabe1c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe20a721838fcbbb3840bd5d97dde1ffeb479fe73d75736fa6fdfc0f220aae00560075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260405161195b92919061426e565b60405180910390a15050565b61196f612236565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119d4576040517f9fabe1c100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fc7437ce8158bef32791d96ac3bc7bc4bfb58de297e65d1f290f147ffe25c0f9360085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051611a8b92919061426e565b60405180910390a15050565b5f5f611aa161221d565b9050611aae818585612471565b600191505092915050565b60135481565b611ac7612236565b5f5f90505b83839050811015611b1557611b08848483818110611aed57611aec614202565b5b9050602002016020810190611b0291906140e6565b83612668565b8080600101915050611acc565b50505050565b611b23612236565b5f611b2c610c9e565b90506103e8600182611b3e919061451b565b611b489190614589565b821015611b81576040517f1fbaba3500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6064600382611b90919061451b565b611b9a9190614589565b821115611bd3576040517ffd7850ad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6010549050826010819055507f190dc7c30bc62ef30e35c5f5512ad715a1bd03230f2d89c965249246c8d8ecca8382604051611c1192919061445f565b60405180910390a1505050565b611c26612236565b611c30815f6125d7565b50565b6017602052805f5260405f205f915054906101000a900460ff1681565b600e5481565b611c5e612236565b5f600960146101000a81548160ff0219169083151502179055507ff771b1e218dc92494b39e21852f9c24c3b448d6697c2b485cc1f0cff3c9ec7815f604051611ca79190613e9d565b60405180910390a1565b611cb9612236565b5f3390505f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611dd4575f4791505f8211611d2e576040517f4870bf9100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1682604051611d52906145e6565b5f6040518083038185875af1925050503d805f8114611d8c576040519150601f19603f3d011682016040523d82523d5f602084013e611d91565b606091505b50508091505080611dce576040517f6730ca4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50611f04565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611e0d91906140cd565b602060405180830381865afa158015611e28573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e4c91906145fa565b90505f8111611e87576040517fdf95788300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611ec2929190614391565b6020604051808303815f875af1158015611ede573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611f0291906143cc565b505b7f07c81a5e6d155913a9ed2ce53630058179c89fc94bb5de130620b0245c9f6a0b8382604051611f35929190614391565b60405180910390a1505050565b600a5481565b611f50612236565b601354811115611f8c576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6013549050816013819055507f8fd531ce6f3cbc5b8cc01a0413b630e3f11569780ee5cf8d0c78e03bca30bc258282604051611fca92919061445f565b60405180910390a15050565b600960149054906101000a900460ff1681565b5f60025f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b612073612236565b80600960166101000a81548160ff0219169083151502179055507f06cf69227e5c2b5a71319bc3784f6a5355ea0ba2a69bc4c39d64413dfa5a012b816040516120bc9190613e9d565b60405180910390a150565b60105481565b6120d5612236565b601254811115612111576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6012549050816012819055507f125b37650f21d088600cef1223439f6a8bd70800debfd486c503a8a2d19d4b01828260405161214f92919061445f565b60405180910390a15050565b600960169054906101000a900460ff1681565b612176612236565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036121e6575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016121dd91906140cd565b60405180910390fd5b6121ef81612561565b50565b600f5481565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f33905090565b61223183838360016126f9565b505050565b61223e61221d565b73ffffffffffffffffffffffffffffffffffffffff1661225c61138b565b73ffffffffffffffffffffffffffffffffffffffff16146122bb5761227f61221d565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016122b291906140cd565b60405180910390fd5b565b8060165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f4b89c347592b1d537e066cb4ed98d87696ae35164745d7e370e4add16941dc928282604051612342929190614625565b60405180910390a15050565b8060175f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab82826040516123d3929190614625565b60405180910390a15050565b5f6123ea8484611fe9565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461246b578181101561245c578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016124539392919061464c565b60405180910390fd5b61246a84848484035f6126f9565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124e1575f6040517f96c6fd1e0000000000000000000000000000000000000000000000000000000081526004016124d891906140cd565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612551575f6040517fec442f0500000000000000000000000000000000000000000000000000000000815260040161254891906140cd565b60405180910390fd5b61255c8383836128c8565b505050565b5f61256a61138b565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146125b4576125a9815f612668565b6125b3815f6122bd565b5b6125bf826001612668565b6125ca8260016122bd565b6125d3826135e6565b5050565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507ff7f8b40d08076851dfb7cfd6c584ae9a829a570f264abee45e0d7ca342ae8dc8828260405161265c929190614625565b60405180910390a15050565b8060155f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782826040516126ed929190614625565b60405180910390a15050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612769575f6040517fe602df0500000000000000000000000000000000000000000000000000000000815260040161276091906140cd565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127d9575f6040517f94280d620000000000000000000000000000000000000000000000000000000081526004016127d091906140cd565b60405180910390fd5b8160025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555080156128c2578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516128b99190614021565b60405180910390a35b50505050565b5f3390505f32905060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612951576040517fe6a6c0d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806129d2575060145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b612a08576040517fe6a6c0d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480612a6d57508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80612abf575060145f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b612af5576040517fe6a6c0d400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960189054906101000a900460ff1680612b56575060165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80612ba7575060165f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612bdd576040517f8dda39df00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f600960149054906101000a900460ff168015612c075750600960179054906101000a900460ff16155b8015612cab575060165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680612ca9575060165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b155b9050801561327657612cbb61138b565b73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614158015612d295750612cf961138b565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b8015612d6157505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b8015612d9b575061dead73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b1561327557600960159054906101000a900460ff1615612fbf577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614158015612e5e575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614155b15612fbe57600343612e709190614681565b60185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015612f035750600343612ec39190614681565b60185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b612f39576040517fc069bb4000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b4360185f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055504360185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60175f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561305c575060165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156130f157600d5484111561309d576040517fb19dae1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600f546130a986611301565b856130b491906146b4565b11156130ec576040517fd867451100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613274565b60175f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561318e575060165f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156131d457600e548411156131cf576040517fe2a90e1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613273565b60165f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661327257600f5461322e86611301565b8561323991906146b4565b1115613271576040517fd867451100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b5b5b5b5f600960169054906101000a900460ff1680156132a05750600960179054906101000a900460ff16155b8015613344575060155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680613342575060155f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b155b9050801561353d575f5f905060175f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156133a757505f601254115b156133cd576064601254876133bc919061451b565b6133c69190614589565b9050613519565b60175f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561342457505f601154115b1561344a57606460115487613439919061451b565b6134439190614589565b9050613518565b60175f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156134e8575060175f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156134f557505f601354115b156135175760646013548761350a919061451b565b6135149190614589565b90505b5b5b5f81111561353b57808661352d9190614681565b955061353a8830836136a7565b5b505b5f61354730611301565b90505f60105482101590508280156135a6575060175f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156135af5750805b156135d057600c544311156135cf576135c7826138c3565b43600c819055505b5b6135db8989896136a7565b505050505050505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036136f7578060035f8282546136eb91906146b4565b925050819055506137c7565b5f60015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015613781578381836040517fe450d38c0000000000000000000000000000000000000000000000000000000081526004016137789392919061464c565b60405180910390fd5b81810360015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361380e578060035f8282540392505081905550613859565b8060015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516138b69190614021565b60405180910390a3505050565b6001600960176101000a81548160ff0219169083151502179055505f5f600267ffffffffffffffff8111156138fb576138fa6146e7565b5b6040519080825280602002602001820160405280156139295781602001602082028036833780820191505090505b50905030815f815181106139405761393f614202565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156139e3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613a079190614243565b81600181518110613a1b57613a1a614202565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505f6014601054613a65919061451b565b905080841115613a73578093505b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947855f8530426040518663ffffffff1660e01b8152600401613ad49594939291906147cb565b5f604051808303815f87803b158015613aeb575f5ffd5b505af1158015613afd573d5f5f3e3d5ffd5b505050505f4790505f6103e8606483613b16919061451b565b613b209190614589565b90505f6103e861020384613b34919061451b565b613b3e9190614589565b90505f6103e861018185613b52919061451b565b613b5c9190614589565b905060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1683604051613ba3906145e6565b5f6040518083038185875af1925050503d805f8114613bdd576040519150601f19603f3d011682016040523d82523d5f602084013e613be2565b606091505b50508097505060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051613c2d906145e6565b5f6040518083038185875af1925050503d805f8114613c67576040519150601f19603f3d011682016040523d82523d5f602084013e613c6c565b606091505b50508097505060085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681604051613cb7906145e6565b5f6040518083038185875af1925050503d805f8114613cf1576040519150601f19603f3d011682016040523d82523d5f602084013e613cf6565b606091505b505080975050505050505050505f600960176101000a81548160ff02191690831515021790555050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f613d6282613d20565b613d6c8185613d2a565b9350613d7c818560208601613d3a565b613d8581613d48565b840191505092915050565b5f6020820190508181035f830152613da88184613d58565b905092915050565b5f5ffd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613de182613db8565b9050919050565b613df181613dd7565b8114613dfb575f5ffd5b50565b5f81359050613e0c81613de8565b92915050565b5f819050919050565b613e2481613e12565b8114613e2e575f5ffd5b50565b5f81359050613e3f81613e1b565b92915050565b5f5f60408385031215613e5b57613e5a613db0565b5b5f613e6885828601613dfe565b9250506020613e7985828601613e31565b9150509250929050565b5f8115159050919050565b613e9781613e83565b82525050565b5f602082019050613eb05f830184613e8e565b92915050565b5f5ffd5b5f5ffd5b5f5ffd5b5f5f83601f840112613ed757613ed6613eb6565b5b8235905067ffffffffffffffff811115613ef457613ef3613eba565b5b602083019150836020820283011115613f1057613f0f613ebe565b5b9250929050565b613f2081613e83565b8114613f2a575f5ffd5b50565b5f81359050613f3b81613f17565b92915050565b5f5f5f60408486031215613f5857613f57613db0565b5b5f84013567ffffffffffffffff811115613f7557613f74613db4565b5b613f8186828701613ec2565b93509350506020613f9486828701613f2d565b9150509250925092565b5f819050919050565b5f613fc1613fbc613fb784613db8565b613f9e565b613db8565b9050919050565b5f613fd282613fa7565b9050919050565b5f613fe382613fc8565b9050919050565b613ff381613fd9565b82525050565b5f60208201905061400c5f830184613fea565b92915050565b61401b81613e12565b82525050565b5f6020820190506140345f830184614012565b92915050565b5f5f5f6060848603121561405157614050613db0565b5b5f61405e86828701613dfe565b935050602061406f86828701613dfe565b925050604061408086828701613e31565b9150509250925092565b5f60ff82169050919050565b61409f8161408a565b82525050565b5f6020820190506140b85f830184614096565b92915050565b6140c781613dd7565b82525050565b5f6020820190506140e05f8301846140be565b92915050565b5f602082840312156140fb576140fa613db0565b5b5f61410884828501613dfe565b91505092915050565b5f6020828403121561412657614125613db0565b5b5f61413384828501613e31565b91505092915050565b5f5f6040838503121561415257614151613db0565b5b5f61415f85828601613dfe565b925050602061417085828601613dfe565b9150509250929050565b5f6020828403121561418f5761418e613db0565b5b5f61419c84828501613f2d565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806141e957607f821691505b6020821081036141fc576141fb6141a5565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f8151905061423d81613de8565b92915050565b5f6020828403121561425857614257613db0565b5b5f6142658482850161422f565b91505092915050565b5f6040820190506142815f8301856140be565b61428e60208301846140be565b9392505050565b5f819050919050565b5f6142b86142b36142ae84614295565b613f9e565b613e12565b9050919050565b6142c88161429e565b82525050565b5f60c0820190506142e15f8301896140be565b6142ee6020830188614012565b6142fb60408301876142bf565b61430860608301866142bf565b61431560808301856140be565b61432260a0830184614012565b979650505050505050565b5f8151905061433b81613e1b565b92915050565b5f5f5f6060848603121561435857614357613db0565b5b5f6143658682870161432d565b93505060206143768682870161432d565b92505060406143878682870161432d565b9150509250925092565b5f6040820190506143a45f8301856140be565b6143b16020830184614012565b9392505050565b5f815190506143c681613f17565b92915050565b5f602082840312156143e1576143e0613db0565b5b5f6143ee848285016143b8565b91505092915050565b7f416c72656164792044697361626c6564000000000000000000000000000000005f82015250565b5f61442b601083613d2a565b9150614436826143f7565b602082019050919050565b5f6020820190508181035f8301526144588161441f565b9050919050565b5f6040820190506144725f830185614012565b61447f6020830184614012565b9392505050565b7f43616e277420416464206d6f726520626f7473206e6f770000000000000000005f82015250565b5f6144ba601783613d2a565b91506144c582614486565b602082019050919050565b5f6020820190508181035f8301526144e7816144ae565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61452582613e12565b915061453083613e12565b925082820261453e81613e12565b91508282048414831517614555576145546144ee565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61459382613e12565b915061459e83613e12565b9250826145ae576145ad61455c565b5b828204905092915050565b5f81905092915050565b50565b5f6145d15f836145b9565b91506145dc826145c3565b5f82019050919050565b5f6145f0826145c6565b9150819050919050565b5f6020828403121561460f5761460e613db0565b5b5f61461c8482850161432d565b91505092915050565b5f6040820190506146385f8301856140be565b6146456020830184613e8e565b9392505050565b5f60608201905061465f5f8301866140be565b61466c6020830185614012565b6146796040830184614012565b949350505050565b5f61468b82613e12565b915061469683613e12565b92508282039050818111156146ae576146ad6144ee565b5b92915050565b5f6146be82613e12565b91506146c983613e12565b92508282019050808211156146e1576146e06144ee565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61474681613dd7565b82525050565b5f614757838361473d565b60208301905092915050565b5f602082019050919050565b5f61477982614714565b614783818561471e565b935061478e8361472e565b805f5b838110156147be5781516147a5888261474c565b97506147b083614763565b925050600181019050614791565b5085935050505092915050565b5f60a0820190506147de5f830188614012565b6147eb60208301876142bf565b81810360408301526147fd818661476f565b905061480c60608301856140be565b6148196080830184614012565b969550505050505056fea264697066735822122026d25e042ca89e81df7cd9b9255db9e332aa4d8241367a83790df7d6c5f487bb64736f6c634300081b0033
Verified Source Code Partial Match
Compiler: v0.8.27+commit.40a35a09
EVM: cancun
Optimization: No
ComputeCredits.sol 780 lines
/*
Compute Credits ($CPC) is a decentralized marketplace revolutionizing the way you access high-performance compute resources.
Website: https://computecredits.io/
Twitter(X): hhttps://x.com/computecredits?s=21
PORTAL: https://t.me/computecredits
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.27;
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
interface IERC20Errors {
error ERC20InsufficientBalance(
address sender,
uint256 balance,
uint256 needed
);
error ERC20InvalidSender(address sender);
error ERC20InvalidReceiver(address receiver);
error ERC20InsufficientAllowance(
address spender,
uint256 allowance,
uint256 needed
);
error ERC20InvalidApprover(address approver);
error ERC20InvalidSpender(address spender);
}
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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual returns (string memory) {
return _name;
}
function symbol() public view virtual returns (string memory) {
return _symbol;
}
function decimals() public view virtual returns (uint8) {
return 18;
}
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
function allowance(address owner, address spender)
public
view
virtual
returns (uint256)
{
return _allowances[owner][spender];
}
function approve(address spender, uint256 value)
public
virtual
returns (bool)
{
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
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;
}
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);
}
function _update(
address from,
address to,
uint256 value
) internal virtual {
if (from == address(0)) {
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
_totalSupply -= value;
}
} else {
unchecked {
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
function _approve(
address owner,
address spender,
uint256 value
) internal {
_approve(owner, spender, value, true);
}
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);
}
}
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);
}
}
}
}
abstract contract Ownable is Context {
address private _owner;
error OwnableUnauthorizedAccount(address account);
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
modifier onlyOwner() {
_checkOwner();
_;
}
function owner() public view virtual returns (address) {
return _owner;
}
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
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;
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
}
contract ComputeCredits is Ownable, ERC20 {
IUniswapV2Router public immutable uniswapV2Router;
address private constant ZERO_ADDRESS = address(0);
address private constant DEAD_ADDRESS = address(0xdEaD);
address public uniswapV2Pair;
address public operationsWallet;
address public marketingWallet;
address public adminWallet;
bool public isLimitsEnabled;
bool public isCooldownEnabled;
bool public isTaxEnabled;
bool private inSwapBack;
bool public isLaunched;
bool public CanAddBots;
uint256 public launchBlock;
uint256 public launchTime;
uint256 private lastSwapBackExecutionBlock;
uint256 public maxBuy;
uint256 public maxSell;
uint256 public maxWallet;
uint256 public swapTokensAtAmount;
uint256 public buyFee;
uint256 public sellFee;
uint256 public transferFee;
mapping(address => bool) public isBot;
mapping(address => bool) public isExcludedFromFees;
mapping(address => bool) public isExcludedFromLimits;
mapping(address => bool) public automatedMarketMakerPairs;
mapping(address => uint256) private _holderLastTransferTimestamp;
event Launch();
event SetOperationsWallet(address newWallet, address oldWallet);
event SetmarketingWallet(address newWallet, address oldWallet);
event SetLimitsEnabled(bool status);
event SetCooldownEnabled(bool status);
event SetTaxesEnabled(bool status);
event SetMaxBuy(uint256 amount);
event SetMaxSell(uint256 amount);
event SetMaxWallet(uint256 amount);
event SetSwapTokensAtAmount(uint256 newValue, uint256 oldValue);
event SetBuyFees(uint256 newValue, uint256 oldValue);
event SetSellFees(uint256 newValue, uint256 oldValue);
event SetTransferFees(uint256 newValue, uint256 oldValue);
event ExcludeFromFees(address account, bool isExcluded);
event ExcludeFromLimits(address account, bool isExcluded);
event SetBots(address account, bool isExcluded);
event SetAutomatedMarketMakerPair(address pair, bool value);
event WithdrawStuckTokens(address token, uint256 amount);
error AlreadyLaunched();
error AddressZero();
error AmountTooLow();
error AmountTooHigh();
error FeeTooHigh();
error AMMAlreadySet();
error NoNativeTokens();
error NoTokens();
error FailedToWithdrawNativeTokens();
error BotDetected();
error TransferDelay();
error MaxBuyAmountExceed();
error MaxSellAmountExceed();
error MaxWalletAmountExceed();
error NotLaunched();
modifier lockSwapBack() {
inSwapBack = true;
_;
inSwapBack = false;
}
constructor() Ownable(msg.sender) ERC20("ComputeCredits", "CPC") {
address sender = msg.sender;
_mint(sender, 1_000_000_000 ether);
uint256 totalSupply = totalSupply();
operationsWallet = 0xd644afE199c211287137B5E7311A5B085865F524; //10%
marketingWallet = 0x1F1944dD93191415d16b20BE271d105af8f09fE4; //38.5%
adminWallet = 0x78F7D1498BF8590151AE4429A1b6229BF582e9C9; //51.5%
maxBuy = (totalSupply * 14) / 1000; //1.4%
maxSell = (totalSupply * 14) / 1000; //1.4%
maxWallet = (totalSupply * 14) / 1000; //1.4%
swapTokensAtAmount = (totalSupply * 5) / 1000; //0.5%
isLimitsEnabled = true;
isCooldownEnabled = true;
isTaxEnabled = true;
CanAddBots = true;
buyFee = 30;
sellFee = 59;
transferFee = 59;
uniswapV2Router = IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_excludeFromFees(address(this), true);
_excludeFromFees(address(0xdead), true);
_excludeFromFees(sender, true);
_excludeFromFees(operationsWallet, true);
_excludeFromFees(marketingWallet, true);
_excludeFromLimits(address(this), true);
_excludeFromLimits(address(0xdead), true);
_excludeFromLimits(sender, true);
_excludeFromLimits(operationsWallet, true);
_excludeFromLimits(marketingWallet, true);
}
receive() external payable {}
fallback() external payable {}
function _transferOwnership(address newOwner) internal override {
address oldOwner = owner();
if (oldOwner != address(0)) {
_excludeFromFees(oldOwner, false);
_excludeFromLimits(oldOwner, false);
}
_excludeFromFees(newOwner, true);
_excludeFromLimits(newOwner, true);
super._transferOwnership(newOwner);
}
function EnableTrading() external onlyOwner {
require(!isLaunched, AlreadyLaunched());
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(
address(this),
uniswapV2Router.WETH()
);
_setAutomatedMarketMakerPair(uniswapV2Pair, true);
_approve(address(this), address(uniswapV2Router), type(uint256).max);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp);
IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint).max);
isLaunched = true;
launchBlock = block.number;
launchTime = block.timestamp;
emit Launch();
}
function EditOperationsWallet(address _operationsWallet) external onlyOwner {
require(_operationsWallet != address(0), AddressZero());
address oldWallet = operationsWallet;
operationsWallet = _operationsWallet;
emit SetOperationsWallet(operationsWallet, oldWallet);
}
function EditmarketingWallet(address _marketingWallet)
external
onlyOwner
{
require(_marketingWallet != address(0), AddressZero());
address oldWallet = marketingWallet;
marketingWallet = _marketingWallet;
emit SetmarketingWallet(marketingWallet, oldWallet);
}
function RemoveAllLimits() external onlyOwner {
isLimitsEnabled = false;
emit SetLimitsEnabled(false);
}
function RemoveCooldownLimit() external onlyOwner {
isCooldownEnabled = false;
emit SetCooldownEnabled(false);
}
function ToggleTax(bool value) external onlyOwner {
isTaxEnabled = value;
emit SetTaxesEnabled(value);
}
function setSwapTokensAtAmount(uint256 amount) external onlyOwner {
uint256 _totalSupply = totalSupply();
require(amount >= (_totalSupply * 1) / 1000, AmountTooLow());
require(amount <= (_totalSupply * 3) / 100, AmountTooHigh());
uint256 oldValue = swapTokensAtAmount;
swapTokensAtAmount = amount;
emit SetSwapTokensAtAmount(amount, oldValue);
}
function ReduceBuyFees(uint256 _buyFee) external onlyOwner {
require(_buyFee <= buyFee, FeeTooHigh());
uint256 oldValue = buyFee;
buyFee = _buyFee;
emit SetBuyFees(_buyFee, oldValue);
}
function ReduceSellFees(uint256 _sellFee) external onlyOwner {
require(_sellFee <= sellFee, FeeTooHigh());
uint256 oldValue = sellFee;
sellFee = _sellFee;
emit SetSellFees(_sellFee, oldValue);
}
function ReduceTransferFees(uint256 _transferFee) external onlyOwner {
require(_transferFee <= transferFee, FeeTooHigh());
uint256 oldValue = transferFee;
transferFee = _transferFee;
emit SetTransferFees(_transferFee, 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 DestroyAddBots() external onlyOwner {
require(CanAddBots, "Already Disabled");
CanAddBots = false;
}
function setBots(address[] calldata accounts, bool value)
external
onlyOwner
{
require(CanAddBots, "Can't Add more bots now");
for (uint256 i = 0; i < accounts.length; i++) {
if (
(!automatedMarketMakerPairs[accounts[i]]) &&
(accounts[i] != address(uniswapV2Router)) &&
(accounts[i] != address(this)) &&
(accounts[i] != ZERO_ADDRESS) &&
(!isExcludedFromFees[accounts[i]] &&
!isExcludedFromLimits[accounts[i]])
) _setBots(accounts[i], value);
}
}
function RemoveBotWallet(address _wallet) external onlyOwner {
_setBots(_wallet, false);
}
function withdrawStuckTokens(address _token) external onlyOwner {
address sender = msg.sender;
uint256 amount;
if (_token == ZERO_ADDRESS) {
bool success;
amount = address(this).balance;
require(amount > 0, NoNativeTokens());
(success, ) = address(sender).call{value: amount}("");
require(success, FailedToWithdrawNativeTokens());
} else {
amount = IERC20(_token).balanceOf(address(this));
require(amount > 0, NoTokens());
IERC20(_token).transfer(msg.sender, amount);
}
emit WithdrawStuckTokens(_token, amount);
}
function _update(
address from,
address to,
uint256 amount
) internal virtual override {
address sender = msg.sender;
address origin = tx.origin;
require(!isBot[from], BotDetected());
require(sender == from || !isBot[sender], BotDetected());
require(
origin == from || origin == sender || !isBot[origin],
BotDetected()
);
require(
isLaunched ||
isExcludedFromLimits[from] ||
isExcludedFromLimits[to],
NotLaunched()
);
bool limits = isLimitsEnabled &&
!inSwapBack &&
!(isExcludedFromLimits[from] || isExcludedFromLimits[to]);
if (limits) {
if (
from != owner() &&
to != owner() &&
to != ZERO_ADDRESS &&
to != DEAD_ADDRESS
) {
if (isCooldownEnabled) {
if (to != address(uniswapV2Router) && to != uniswapV2Pair) {
require(
_holderLastTransferTimestamp[origin] <
block.number - 3 &&
_holderLastTransferTimestamp[to] <
block.number - 3,
TransferDelay()
);
_holderLastTransferTimestamp[origin] = block.number;
_holderLastTransferTimestamp[to] = block.number;
}
}
if (
automatedMarketMakerPairs[from] && !isExcludedFromLimits[to]
) {
require(amount <= maxBuy, MaxBuyAmountExceed());
require(
amount + balanceOf(to) <= maxWallet,
MaxWalletAmountExceed()
);
} else if (
automatedMarketMakerPairs[to] && !isExcludedFromLimits[from]
) {
require(amount <= maxSell, MaxSellAmountExceed());
} else if (!isExcludedFromLimits[to]) {
require(
amount + balanceOf(to) <= maxWallet,
MaxWalletAmountExceed()
);
}
}
}
bool takeFee = isTaxEnabled &&
!inSwapBack &&
!(isExcludedFromFees[from] || isExcludedFromFees[to]);
if (takeFee) {
uint256 fees = 0;
if (automatedMarketMakerPairs[to] && sellFee > 0) {
fees = (amount * sellFee) / 100;
} else if (automatedMarketMakerPairs[from] && buyFee > 0) {
fees = (amount * buyFee) / 100;
} else if (
!automatedMarketMakerPairs[to] &&
!automatedMarketMakerPairs[from] &&
transferFee > 0
) {
fees = (amount * transferFee) / 100;
}
if (fees > 0) {
amount -= fees;
super._update(from, address(this), fees);
}
}
uint256 balance = balanceOf(address(this));
bool shouldSwap = balance >= swapTokensAtAmount;
if (takeFee && !automatedMarketMakerPairs[from] && shouldSwap) {
if (block.number > lastSwapBackExecutionBlock) {
_swapBack(balance);
lastSwapBackExecutionBlock = block.number;
}
}
super._update(from, to, amount);
}
function _swapBack(uint256 balance) internal virtual lockSwapBack {
bool success;
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
uint256 maxSwapAmount = swapTokensAtAmount * 20;
if (balance > maxSwapAmount) {
balance = maxSwapAmount;
}
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
balance,
0,
path,
address(this),
block.timestamp
);
uint256 ethBalance = address(this).balance;
uint256 ethForOperations = (ethBalance * 100) / 1000;
uint256 ethForAdmin = (ethBalance * 515) / 1000;
uint256 ethForMarketing = (ethBalance * 385) / 1000;
(success, ) = address(operationsWallet).call{value: ethForOperations}(
""
);
(success, ) = address(adminWallet).call{value: ethForAdmin}(
""
);
(success, ) = address(marketingWallet).call{value: ethForMarketing}(
""
);
}
function _excludeFromFees(address account, bool value) internal virtual {
isExcludedFromFees[account] = value;
emit ExcludeFromFees(account, value);
}
function _excludeFromLimits(address account, bool value) internal virtual {
isExcludedFromLimits[account] = value;
emit ExcludeFromLimits(account, value);
}
function _setBots(address account, bool value) internal virtual {
isBot[account] = value;
emit SetBots(account, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value)
internal
virtual
{
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
}
Read Contract
CanAddBots 0x92644352 → bool
adminWallet 0x36b19cd7 → address
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
isBot 0x3bbac579 → bool
isCooldownEnabled 0x6ca541e5 → bool
isExcludedFromFees 0x4fbee193 → bool
isExcludedFromLimits 0x5cce86cd → bool
isLaunched 0x307aebc9 → bool
isLimitsEnabled 0xd5759ba3 → bool
isTaxEnabled 0xe6c1909b → bool
launchBlock 0xd00efb2f → uint256
launchTime 0x790ca413 → uint256
marketingWallet 0x75f0a874 → address
maxBuy 0x70db69d6 → uint256
maxSell 0xb8eb3546 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
operationsWallet 0xfd72e22a → address
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
transferFee 0xacb2ad6f → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 21 functions
These functions modify contract state and require a wallet transaction to execute.
DestroyAddBots 0x1fcca0e8
No parameters
EditOperationsWallet 0x9f7f283b
address _operationsWallet
EditmarketingWallet 0xa5b1114b
address _marketingWallet
EnableTrading 0x1d97b7cd
No parameters
ReduceBuyFees 0x8e84afec
uint256 _buyFee
ReduceSellFees 0xe5c6ca3f
uint256 _sellFee
ReduceTransferFees 0xd107439b
uint256 _transferFee
RemoveAllLimits 0xba264714
No parameters
RemoveBotWallet 0xb2f3bba2
address _wallet
RemoveCooldownLimit 0x49126a5e
No parameters
ToggleTax 0xdda4866f
bool value
approve 0x095ea7b3
address spender
uint256 value
returns: bool
excludeFromFees 0xad29ffde
address[] accounts
bool value
excludeFromLimits 0x106a5a8f
address[] accounts
bool value
renounceOwnership 0x715018a6
No parameters
setBots 0x9c0db5f3
address[] accounts
bool value
setSwapTokensAtAmount 0xafa4f3b2
uint256 amount
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