Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x02493e1E24BAA2CAa533d94C343b9B7f32471838
Balance 0.000000000 ETH
Nonce 1
Code Size 11958 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

11958 bytes
0x6080604052600436106101d15760003560e01c80634fbee193116100f75780638da5cb5b11610095578063a9059cbb11610064578063a9059cbb14610683578063b3e94ef0146106c0578063dd62ed3e146106e9578063f2fde38b14610726576101d2565b80638da5cb5b146105d657806395d89b4114610601578063a25ba1831461062c578063a8aa1b3114610658576101d2565b806370a08231116100d157806370a0823114610542578063715018a61461057f57806376b2fa71146105965780638a8c523c146105bf576101d2565b80634fbee1931461049f578063590ffdce146104dc5780636dd3d39f14610505576101d2565b80631b4ef23c1161016f578063313ce5671161013e578063313ce567146103f557806332cb6b0c14610420578063412201041461044b57806348cd4cb114610474576101d2565b80631b4ef23c1461032557806321b024861461035057806323b872dd1461038d57806324a9d853146103ca576101d2565b80630c18d4ce116101ab5780630c18d4ce146102675780630fe3fe7d14610292578063104bfeca146102cf57806318160ddd146102fa576101d2565b806306fdde03146101d457806307159878146101ff578063095ea7b31461022a576101d2565b5b005b3480156101e057600080fd5b506101e961074f565b6040516101f691906122a3565b60405180910390f35b34801561020b57600080fd5b506102146107e1565b6040516102219190612306565b60405180910390f35b34801561023657600080fd5b50610251600480360381019061024c9190612397565b610807565b60405161025e91906123f2565b60405180910390f35b34801561027357600080fd5b5061027c61082a565b604051610289919061241c565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190612397565b610830565b6040516102c6919061241c565b60405180910390f35b3480156102db57600080fd5b506102e4610855565b6040516102f19190612306565b60405180910390f35b34801561030657600080fd5b5061030f61087b565b60405161031c919061241c565b60405180910390f35b34801561033157600080fd5b5061033a610885565b6040516103479190612306565b60405180910390f35b34801561035c57600080fd5b5061037760048036038101906103729190612437565b6108ab565b604051610384919061241c565b60405180910390f35b34801561039957600080fd5b506103b460048036038101906103af9190612464565b6108c3565b6040516103c191906123f2565b60405180910390f35b3480156103d657600080fd5b506103df6108f2565b6040516103ec919061241c565b60405180910390f35b34801561040157600080fd5b5061040a6108f8565b60405161041791906124d3565b60405180910390f35b34801561042c57600080fd5b50610435610901565b604051610442919061241c565b60405180910390f35b34801561045757600080fd5b50610472600480360381019061046d919061251a565b610925565b005b34801561048057600080fd5b50610489610988565b604051610496919061241c565b60405180910390f35b3480156104ab57600080fd5b506104c660048036038101906104c1919061255a565b61098e565b6040516104d391906123f2565b60405180910390f35b3480156104e857600080fd5b5061050360048036038101906104fe919061251a565b6109ae565b005b34801561051157600080fd5b5061052c6004803603810190610527919061255a565b610a11565b60405161053991906123f2565b60405180910390f35b34801561054e57600080fd5b506105696004803603810190610564919061255a565b610a31565b604051610576919061241c565b60405180910390f35b34801561058b57600080fd5b50610594610a79565b005b3480156105a257600080fd5b506105bd60048036038101906105b89190612437565b610a8d565b005b3480156105cb57600080fd5b506105d4610b1c565b005b3480156105e257600080fd5b506105eb610b79565b6040516105f89190612306565b60405180910390f35b34801561060d57600080fd5b50610616610ba3565b60405161062391906122a3565b60405180910390f35b34801561063857600080fd5b50610641610c35565b60405161064f929190612587565b60405180910390f35b34801561066457600080fd5b5061066d610c48565b60405161067a9190612306565b60405180910390f35b34801561068f57600080fd5b506106aa60048036038101906106a59190612397565b610c6c565b6040516106b791906123f2565b60405180910390f35b3480156106cc57600080fd5b506106e760048036038101906106e291906125b0565b610c8f565b005b3480156106f557600080fd5b50610710600480360381019061070b9190612603565b610d5f565b60405161071d919061241c565b60405180910390f35b34801561073257600080fd5b5061074d6004803603810190610748919061255a565b610de6565b005b60606003805461075e90612672565b80601f016020809104026020016040519081016040528092919081815260200182805461078a90612672565b80156107d75780601f106107ac576101008083540402835291602001916107d7565b820191906000526020600020905b8154815290600101906020018083116107ba57829003601f168201915b5050505050905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080610812610e6c565b905061081f818585610e74565b600191505092915050565b600a5481565b600e602052816000526040600020602052806000526040600020600091509150505481565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600254905090565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60106020528060005260406000206000915090505481565b6000806108ce610e6c565b90506108db858285610e86565b6108e6858585610f1b565b60019150509392505050565b600b5481565b60006012905090565b7f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000081565b61092d61100f565b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60095481565b600c6020528060005260406000206000915054906101000a900460ff1681565b6109b661100f565b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600d6020528060005260406000206000915054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610a8161100f565b610a8b6000611096565b565b610a9561100f565b600b54811115610ad1576040517fcd4e616700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600b54905081600b819055507f032dc6a2d839eb179729a55633fdf1c41a1fc4739394154117005db2b354b9b58282604051610b10929190612587565b60405180910390a15050565b610b2461100f565b600060095414610b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b60906126ef565b60405180910390fd5b4360098190555042600a81905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610bb290612672565b80601f0160208091040260200160405190810160405280929190818152602001828054610bde90612672565b8015610c2b5780601f10610c0057610100808354040283529160200191610c2b565b820191906000526020600020905b815481529060010190602001808311610c0e57829003601f168201915b5050505050905090565b600080610c4061115c565b915091509091565b7f000000000000000000000000282ccd8367057a0c35b8410f0921c353fb873c7981565b600080610c77610e6c565b9050610c84818585610f1b565b600191505092915050565b610c9761100f565b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610dee61100f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e605760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610e579190612306565b60405180910390fd5b610e6981611096565b50565b600033905090565b610e818383836001611351565b505050565b6000610e928484610d5f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811015610f155781811015610f05578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610efc9392919061270f565b60405180910390fd5b610f1484848484036000611351565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f8d5760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610f849190612306565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fff5760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610ff69190612306565b60405180910390fd5b61100a838383611528565b505050565b611017610e6c565b73ffffffffffffffffffffffffffffffffffffffff16611035610b79565b73ffffffffffffffffffffffffffffffffffffffff161461109457611058610e6c565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161108b9190612306565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806000600a5403611175576000809150915061134d565b6000600a54426111859190612775565b9050610e1081101561132357603c8110156111d557610fa0925061029a7f0000000000000000000000000000000000000000033b2e3c9fd0803ce80000006111cd91906127d8565b91505061134d565b61012c81101561121a57610bb892506101f47f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000061121291906127d8565b91505061134d565b6101e081101561125f576109c492506101f47f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000061125791906127d8565b91505061134d565b6102d08110156112a4576107d092506101907f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000061129c91906127d8565b91505061134d565b6103848110156112e9576103e8925061014d7f0000000000000000000000000000000000000000033b2e3c9fd0803ce80000006112e191906127d8565b91505061134d565b6101f4925060c87f0000000000000000000000000000000000000000033b2e3c9fd0803ce800000061131b91906127d8565b91505061134d565b7f0000000000000000000000000000000000000000033b2e3c9fd0803ce80000009150600b549250505b9091565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036113c35760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016113ba9190612306565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114355760006040517f94280d6200000000000000000000000000000000000000000000000000000000815260040161142c9190612306565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508015611522578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611519919061241c565b60405180910390a35b50505050565b60008061153361115c565b9150915060007f000000000000000000000000282ccd8367057a0c35b8410f0921c353fb873c7973ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905080806115e157507f000000000000000000000000282ccd8367057a0c35b8410f0921c353fb873c7973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b156119c457600060095411806116405750600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b61167f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167690612855565b60405180910390fd5b6000831461195c578080156116de5750600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156118ba576000600a54118015611702575060b4600a54426117009190612775565b105b1561188257600f54600e60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000438152602001908152602001600020541061179b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611792906128e7565b60405180910390fd5b600e60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600043815260200190815260200160002060008154809291906117fc90612907565b9190505550601154601060004381526020019081526020016000205410611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184f9061299b565b60405180910390fd5b60106000438152602001908152602001600020600081548092919061187c90612907565b91905055505b6000612710848661189391906129bb565b61189d91906127d8565b905080856118ab9190612775565b94506118b8873083611a81565b505b801580156119125750600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611957576000612710848661192891906129bb565b61193291906127d8565b905080856119409190612775565b945061194d873083611a81565b611955611ca6565b505b6119c3565b801580156119b45750600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156119c2576119c1611ca6565b5b5b5b600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611a2f575081611a2186610a31565b85611a2c91906129fd565b11155b611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590612a7d565b60405180910390fd5b611a79868686611a81565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611ad3578060026000828254611ac791906129fd565b92505081905550611ba6565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611b5f578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401611b569392919061270f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bef5780600260008282540392505081905550611c3c565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611c99919061241c565b60405180910390a3505050565b600080600a5442611cb79190612775565b9050610190811015611cca575050612211565b6000611cd530610a31565b905060008103611ce757505050612211565b6000600267ffffffffffffffff811115611d0457611d03612a9d565b5b604051908082528060200260200182016040528015611d325781602001602082028036833780820191505090505b5090507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600081518110611d6a57611d69612acc565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250503081600181518110611db957611db8612acc565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663d06ca61f670de0b6b3a7640000846040518363ffffffff1660e01b8152600401611e4c929190612bfe565b600060405180830381865afa158015611e69573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e929190612d5c565b600181518110611ea557611ea4612acc565b5b6020026020010151905080831115611ebb578092505b3082600081518110611ed057611ecf612acc565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc282600181518110611f3f57611f3e612acc565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478460008530426040518663ffffffff1660e01b8152600401611fcf959493929190612de0565b600060405180830381600087803b158015611fe957600080fd5b505af1158015611ffd573d6000803e3d6000fd5b50505050600047905060006064602d8361201791906129bb565b61202191906127d8565b905060006064602d8461203491906129bb565b61203e91906127d8565b905060006064600a8561205191906129bb565b61205b91906127d8565b9050600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516120a390612e6b565b60006040518083038185875af1925050503d80600081146120e0576040519150601f19603f3d011682016040523d82523d6000602084013e6120e5565b606091505b505080995050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161213190612e6b565b60006040518083038185875af1925050503d806000811461216e576040519150601f19603f3d011682016040523d82523d6000602084013e612173565b606091505b505080995050600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516121bf90612e6b565b60006040518083038185875af1925050503d80600081146121fc576040519150601f19603f3d011682016040523d82523d6000602084013e612201565b606091505b5050809950505050505050505050505b565b600081519050919050565b600082825260208201905092915050565b60005b8381101561224d578082015181840152602081019050612232565b60008484015250505050565b6000601f19601f8301169050919050565b600061227582612213565b61227f818561221e565b935061228f81856020860161222f565b61229881612259565b840191505092915050565b600060208201905081810360008301526122bd818461226a565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006122f0826122c5565b9050919050565b612300816122e5565b82525050565b600060208201905061231b60008301846122f7565b92915050565b6000604051905090565b600080fd5b600080fd5b61233e816122e5565b811461234957600080fd5b50565b60008135905061235b81612335565b92915050565b6000819050919050565b61237481612361565b811461237f57600080fd5b50565b6000813590506123918161236b565b92915050565b600080604083850312156123ae576123ad61232b565b5b60006123bc8582860161234c565b92505060206123cd85828601612382565b9150509250929050565b60008115159050919050565b6123ec816123d7565b82525050565b600060208201905061240760008301846123e3565b92915050565b61241681612361565b82525050565b6000602082019050612431600083018461240d565b92915050565b60006020828403121561244d5761244c61232b565b5b600061245b84828501612382565b91505092915050565b60008060006060848603121561247d5761247c61232b565b5b600061248b8682870161234c565b935050602061249c8682870161234c565b92505060406124ad86828701612382565b9150509250925092565b600060ff82169050919050565b6124cd816124b7565b82525050565b60006020820190506124e860008301846124c4565b92915050565b6124f7816123d7565b811461250257600080fd5b50565b600081359050612514816124ee565b92915050565b600080604083850312156125315761253061232b565b5b600061253f8582860161234c565b925050602061255085828601612505565b9150509250929050565b6000602082840312156125705761256f61232b565b5b600061257e8482850161234c565b91505092915050565b600060408201905061259c600083018561240d565b6125a9602083018461240d565b9392505050565b6000806000606084860312156125c9576125c861232b565b5b60006125d78682870161234c565b93505060206125e88682870161234c565b92505060406125f98682870161234c565b9150509250925092565b6000806040838503121561261a5761261961232b565b5b60006126288582860161234c565b92505060206126398582860161234c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061268a57607f821691505b60208210810361269d5761269c612643565b5b50919050565b7f74726164696e672d616c72656164792d656e61626c6564000000000000000000600082015250565b60006126d960178361221e565b91506126e4826126a3565b602082019050919050565b60006020820190508181036000830152612708816126cc565b9050919050565b600060608201905061272460008301866122f7565b612731602083018561240d565b61273e604083018461240d565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061278082612361565b915061278b83612361565b92508282039050818111156127a3576127a2612746565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006127e382612361565b91506127ee83612361565b9250826127fe576127fd6127a9565b5b828204905092915050565b7f74726164696e672d6e6f742d656e61626c656400000000000000000000000000600082015250565b600061283f60138361221e565b915061284a82612809565b602082019050919050565b6000602082019050818103600083015261286e81612832565b9050919050565b7f6d61782d6275792d7478732d7065722d626c6f636b2d7065722d6f726967696e60008201527f2d65786365656465640000000000000000000000000000000000000000000000602082015250565b60006128d160298361221e565b91506128dc82612875565b604082019050919050565b60006020820190508181036000830152612900816128c4565b9050919050565b600061291282612361565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361294457612943612746565b5b600182019050919050565b7f6d61782d6275792d7478732d7065722d626c6f636b2d65786365656465640000600082015250565b6000612985601e8361221e565b91506129908261294f565b602082019050919050565b600060208201905081810360008301526129b481612978565b9050919050565b60006129c682612361565b91506129d183612361565b92508282026129df81612361565b915082820484148315176129f6576129f5612746565b5b5092915050565b6000612a0882612361565b9150612a1383612361565b9250828201905080821115612a2b57612a2a612746565b5b92915050565b7f6d61782d77616c6c65742d73697a652d65786365656465640000000000000000600082015250565b6000612a6760188361221e565b9150612a7282612a31565b602082019050919050565b60006020820190508181036000830152612a9681612a5a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6000819050919050565b6000612b2a612b25612b2084612afb565b612b05565b612361565b9050919050565b612b3a81612b0f565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612b75816122e5565b82525050565b6000612b878383612b6c565b60208301905092915050565b6000602082019050919050565b6000612bab82612b40565b612bb58185612b4b565b9350612bc083612b5c565b8060005b83811015612bf1578151612bd88882612b7b565b9750612be383612b93565b925050600181019050612bc4565b5085935050505092915050565b6000604082019050612c136000830185612b31565b8181036020830152612c258184612ba0565b90509392505050565b600080fd5b612c3c82612259565b810181811067ffffffffffffffff82111715612c5b57612c5a612a9d565b5b80604052505050565b6000612c6e612321565b9050612c7a8282612c33565b919050565b600067ffffffffffffffff821115612c9a57612c99612a9d565b5b602082029050602081019050919050565b600080fd5b600081519050612cbf8161236b565b92915050565b6000612cd8612cd384612c7f565b612c64565b90508083825260208201905060208402830185811115612cfb57612cfa612cab565b5b835b81811015612d245780612d108882612cb0565b845260208401935050602081019050612cfd565b5050509392505050565b600082601f830112612d4357612d42612c2e565b5b8151612d53848260208601612cc5565b91505092915050565b600060208284031215612d7257612d7161232b565b5b600082015167ffffffffffffffff811115612d9057612d8f612330565b5b612d9c84828501612d2e565b91505092915050565b6000819050919050565b6000612dca612dc5612dc084612da5565b612b05565b612361565b9050919050565b612dda81612daf565b82525050565b600060a082019050612df5600083018861240d565b612e026020830187612dd1565b8181036040830152612e148186612ba0565b9050612e2360608301856122f7565b612e30608083018461240d565b9695505050505050565b600081905092915050565b50565b6000612e55600083612e3a565b9150612e6082612e45565b600082019050919050565b6000612e7682612e48565b915081905091905056fea2646970667358221220d6f6f78f6a760b989be96a62e04e813ba1b678c079faad69a9b558b64da963c264736f6c634300081c0033

Verified Source Code Full Match

Compiler: v0.8.28+commit.7893614a EVM: paris Optimization: No
Ownable.sol 100 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
draft-IERC6093.sol 161 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
ERC20.sol 311 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * Both values are immutable: they can only be set once during construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Skips emitting an {Approval} event indicating an allowance update. This is not
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}
IERC20Metadata.sol 26 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}
IERC20.sol 79 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}
Context.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
IUniswapV2Factory.sol 17 lines
pragma solidity >=0.5.0;

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

    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(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
IUniswapV2Router01.sol 95 lines
pragma solidity >=0.6.2;

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

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    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);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
IUniswapV2Router02.sol 44 lines
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    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.sol 273 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";

contract Token is ERC20, Ownable {
    uint256 public immutable MAX_SUPPLY;
    address public immutable pair;
    address public Operation_Wallet;
    address public Development_Wallet;
    address public Admin_Wallet;

    IUniswapV2Router02 private constant _router =
        IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);

    address private immutable _weth;

    uint256 public startBlock;
    uint256 public startBlockTime;
    
    uint256 public feeBps;

    event SetFee(uint256 newValue, uint256 oldValue);

    error FeeTooHigh();

    mapping(address account => bool) public isExcludedFromFees;
    mapping(address account => bool) public isExcludedFromMaxWallet;
    mapping(address origin => mapping(uint256 blockNumber => uint256 txCount))
        public maxBuyTxsPerBlockPerOrigin;
    uint256 private _maxBuyTxsPerBlockPerOrigin = 10;
    mapping(uint256 blockNumber => uint256 txCount) public maxBuyTxsPerBlock;
    uint256 private _maxBuyTxsPerBlock = 100;

    constructor() ERC20("SIMPLE", "$TEST") Ownable(msg.sender) {
        MAX_SUPPLY = 1000_000_000 ether;
        _weth = _router.WETH();

        Operation_Wallet = 0xEe4ABbC472f0046156eF97860Ae704E14d188548; //45
        Development_Wallet = 0x9DED93F338B974dfe177A671fE8fC1426ea69D88; //45
        Admin_Wallet = 0x5Bf9A7871b571df229bEe8Da43Cd7d54DAf6255c; //10

        pair = IUniswapV2Factory(_router.factory()).createPair(
            address(this),
            _weth
        );

        feeBps = 500;

        isExcludedFromFees[msg.sender] = true;
        isExcludedFromFees[address(this)] = true;
        isExcludedFromFees[pair] = true;
        isExcludedFromFees[Operation_Wallet] = true;
        isExcludedFromFees[Development_Wallet] = true;
        isExcludedFromFees[Admin_Wallet] = true;
        isExcludedFromMaxWallet[msg.sender] = true;
        isExcludedFromMaxWallet[address(this)] = true;
        isExcludedFromMaxWallet[pair] = true;
        isExcludedFromMaxWallet[Operation_Wallet] = true;
        isExcludedFromMaxWallet[Development_Wallet] = true;
        isExcludedFromMaxWallet[Admin_Wallet] = true;

        _mint(msg.sender, MAX_SUPPLY);
        _approve(msg.sender, address(_router), type(uint256).max);
        _approve(address(this), address(_router), type(uint256).max);
    }

    receive() external payable {}

    fallback() external payable {}

    function enableTrading() external onlyOwner {
        require(startBlock == 0, "trading-already-enabled");
        startBlock = block.number;
        startBlockTime = block.timestamp;
    }

    function setExcludedFromFees(
        address account,
        bool excluded
    ) external onlyOwner {
        isExcludedFromFees[account] = excluded;
    }

    function setExcludedFromMaxWallet(
        address account,
        bool excluded
    ) external onlyOwner {
        isExcludedFromMaxWallet[account] = excluded;
    }

    function feesAndMaxWallet()
        external
        view
        returns (uint256 _feeBps, uint256 _maxWallet)
    {
        return _feesAndMaxWallet();
    }

    function _feesAndMaxWallet()
        internal
        view
        returns (uint256 _feeBps, uint256 _maxWallet)
    {
        if (startBlockTime == 0) {
            return (0, 0);
        }
        uint256 _diffSeconds = block.timestamp - startBlockTime;

        if (_diffSeconds < 3600) {
            // 1 min
            if (_diffSeconds < 60) {
                _feeBps = 4000; // 40%
                _maxWallet = MAX_SUPPLY / 666; // 0.15%
                return (_feeBps, _maxWallet);
            }
            // 2-5 min
            if (_diffSeconds < 300) {
                _feeBps = 3000; // 30%
                _maxWallet = MAX_SUPPLY / 500; // 0.2%
                return (_feeBps, _maxWallet);
            }
            // 6-8 min
            if (_diffSeconds < 480) {
                _feeBps = 2500; // 25%
                _maxWallet = MAX_SUPPLY / 500; // 0.2%
                return (_feeBps, _maxWallet);
            }
            // 9-12 min
            if (_diffSeconds < 720) {
                _feeBps = 2000; // 20%
                _maxWallet = MAX_SUPPLY / 400; // 0.25%
                return (_feeBps, _maxWallet);
            }

            if (_diffSeconds < 900) {
                // 12-15 min
                _feeBps = 1000; // 10%
                _maxWallet = MAX_SUPPLY / 333; // 0.3%
                return (_feeBps, _maxWallet);
            }

            _feeBps = 500; // 5%
            _maxWallet = MAX_SUPPLY / 200; // 0.5%
            return (_feeBps, _maxWallet);
        }

        _maxWallet = MAX_SUPPLY; // no limit
        return (feeBps, _maxWallet);
    }

    function _update(
        address from,
        address to,
        uint256 value
    ) internal override {
        (uint256 _feeBps, uint256 _maxWallet) = _feesAndMaxWallet();

        bool isBuy = from == pair;
        if (isBuy || to == pair) {
            require(
                startBlock > 0 || isExcludedFromFees[to],
                "trading-not-enabled"
            );

            if (_feeBps != 0) {
                if (isBuy && !isExcludedFromFees[to]) {
                    if (
                        startBlockTime > 0 &&
                        block.timestamp - startBlockTime < 180
                    ) {
                        require(
                            maxBuyTxsPerBlockPerOrigin[tx.origin][
                                block.number
                            ] < _maxBuyTxsPerBlockPerOrigin,
                            "max-buy-txs-per-block-per-origin-exceeded"
                        );
                        maxBuyTxsPerBlockPerOrigin[tx.origin][block.number]++;

                        require(
                            maxBuyTxsPerBlock[block.number] <
                                _maxBuyTxsPerBlock,
                            "max-buy-txs-per-block-exceeded"
                        );
                        maxBuyTxsPerBlock[block.number]++;
                    }

                    uint256 fee = (value * _feeBps) / 10000;
                    value -= fee;
                    super._update(from, address(this), fee);
                }

                if (!isBuy && !isExcludedFromFees[from]) {
                    uint256 fee = (value * _feeBps) / 10000;
                    value -= fee;
                    super._update(from, address(this), fee);
                    _swapTokensForEth_();
                }
            } else {
                if (!isBuy && !isExcludedFromFees[from]) {
                    _swapTokensForEth_();
                }
            }
        }

        require(
            isExcludedFromMaxWallet[to] || value + balanceOf(to) <= _maxWallet,
            "max-wallet-size-exceeded"
        );
        super._update(from, to, value);
    }

    function _swapTokensForEth_() internal {
        bool success;
        uint256 startDiff = block.timestamp - startBlockTime;
        if (startDiff < 400) {
            return;
        }

        uint256 _tokenAmount = balanceOf(address(this));

        if (_tokenAmount == 0) {
            return;
        }

        address[] memory _path = new address[](2);
        _path[0] = _weth;
        _path[1] = address(this);

        // sell max 1 eth worth of tokens
        uint256 _maxTokenAmount = _router.getAmountsOut(1 ether, _path)[1];

        if (_tokenAmount > _maxTokenAmount) {
            _tokenAmount = _maxTokenAmount;
        }

        _path[0] = address(this);
        _path[1] = _weth;

        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            _tokenAmount,
            0,
            _path,
            address(this),
            block.timestamp
        );

        uint256 ethBalance = address(this).balance;

        uint256 ethForOperation = (ethBalance * 45) / 100;
        uint256 ethForDevelopment = (ethBalance * 45) / 100;
        uint256 ethForAdmin = (ethBalance * 10) / 100;

        (success, ) = address(Operation_Wallet).call{value: ethForOperation}("");
        (success, ) = address(Development_Wallet).call{value: ethForDevelopment}("");
        (success, ) = address(Admin_Wallet).call{value: ethForAdmin}("");
    }

    function SetTaxWallets(address _OperationWallet, address _DevelopmentWallet, address _AdminWallet) external onlyOwner {
        Operation_Wallet = _OperationWallet;
        Development_Wallet = _DevelopmentWallet;
        Admin_Wallet = _AdminWallet;
    }

    function ReduceFee(uint256 _fee) external onlyOwner {
        require(_fee <= feeBps, FeeTooHigh());
        uint256 oldValue = feeBps;
        feeBps = _fee;
        emit SetFee(_fee, oldValue);
    }
}

Read Contract

Admin_Wallet 0x1b4ef23c → address
Development_Wallet 0x104bfeca → address
MAX_SUPPLY 0x32cb6b0c → uint256
Operation_Wallet 0x07159878 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
feeBps 0x24a9d853 → uint256
feesAndMaxWallet 0xa25ba183 → uint256, uint256
isExcludedFromFees 0x4fbee193 → bool
isExcludedFromMaxWallet 0x6dd3d39f → bool
maxBuyTxsPerBlock 0x21b02486 → uint256
maxBuyTxsPerBlockPerOrigin 0x0fe3fe7d → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pair 0xa8aa1b31 → address
startBlock 0x48cd4cb1 → uint256
startBlockTime 0x0c18d4ce → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256

Write Contract 10 functions

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

ReduceFee 0x76b2fa71
uint256 _fee
SetTaxWallets 0xb3e94ef0
address _OperationWallet
address _DevelopmentWallet
address _AdminWallet
approve 0x095ea7b3
address spender
uint256 value
returns: bool
enableTrading 0x8a8c523c
No parameters
renounceOwnership 0x715018a6
No parameters
setExcludedFromFees 0x590ffdce
address account
bool excluded
setExcludedFromMaxWallet 0x41220104
address account
bool excluded
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address