Address Contract Verified
Address
0xd888A5460fFFA4B14340DD9Fe2710cbABd520659
Balance
0 ETH
Nonce
1
Code Size
21290 bytes
Creator
0xa0D973c9...4e7a at tx 0x25c6116d...e7804a
Indexed Transactions
0
Contract Bytecode
21290 bytes
0x6080604052600436106102975760003560e01c8063715018a61161015a578063bbc0c742116100c1578063dd62ed3e1161007a578063dd62ed3e14610a01578063e2f4560514610a3e578063ee40166e14610a69578063f2fde38b14610a94578063f5648a4f14610abd578063fabb0b4f14610ad45761029e565b8063bbc0c74214610907578063c024666814610932578063c18bc1951461095b578063cc274b2914610984578063cc2ffe7c146109ad578063dc3f0d0f146109d85761029e565b806395d89b411161011357806395d89b41146107d15780639a7a23d6146107fc578063a457c2d714610825578063a9059cbb14610862578063aa4bde281461089f578063b62496f5146108ca5761029e565b8063715018a6146106e7578063751039fc146106fe5780637571336a146107155780638366e79a1461073e57806388e765ff1461077b5780638da5cb5b146107a65761029e565b8063467abe0a116101fe5780635b5c251f116101b75780635b5c251f146105d75780635e83ae76146106025780636605bfda1461062b57806366d602ae146106545780636ddd17131461067f57806370a08231146106aa5761029e565b8063467abe0a146104eb578063470624021461051457806349bd5a5e1461053f5780634a62bb651461056a57806351bc3c85146105955780635308b7fb146105ac5761029e565b80631d933a4a116102505780631d933a4a146103c957806323b872dd146103f25780632b14ca561461042f5780632be32b611461045a578063313ce5671461048357806339509351146104ae5761029e565b806306fdde03146102a3578063095ea7b3146102ce5780630f6b671b1461030b57806310d5de53146103365780631694505e1461037357806318160ddd1461039e5761029e565b3661029e57005b600080fd5b3480156102af57600080fd5b506102b8610aff565b6040516102c59190613be3565b60405180910390f35b3480156102da57600080fd5b506102f560048036038101906102f09190613c9e565b610b91565b6040516103029190613cf9565b60405180910390f35b34801561031757600080fd5b50610320610baf565b60405161032d9190613d23565b60405180910390f35b34801561034257600080fd5b5061035d60048036038101906103589190613d3e565b610bb4565b60405161036a9190613cf9565b60405180910390f35b34801561037f57600080fd5b50610388610bd4565b6040516103959190613dca565b60405180910390f35b3480156103aa57600080fd5b506103b3610bf8565b6040516103c09190613d23565b60405180910390f35b3480156103d557600080fd5b506103f060048036038101906103eb9190613de5565b610c02565b005b3480156103fe57600080fd5b5061041960048036038101906104149190613e12565b610d64565b6040516104269190613cf9565b60405180910390f35b34801561043b57600080fd5b50610444610e5c565b6040516104519190613d23565b60405180910390f35b34801561046657600080fd5b50610481600480360381019061047c9190613de5565b610e62565b005b34801561048f57600080fd5b50610498610fc5565b6040516104a59190613e81565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d09190613c9e565b610fce565b6040516104e29190613cf9565b60405180910390f35b3480156104f757600080fd5b50610512600480360381019061050d9190613de5565b61107a565b005b34801561052057600080fd5b506105296111dc565b6040516105369190613d23565b60405180910390f35b34801561054b57600080fd5b506105546111e2565b6040516105619190613eab565b60405180910390f35b34801561057657600080fd5b5061057f611206565b60405161058c9190613cf9565b60405180910390f35b3480156105a157600080fd5b506105aa611219565b005b3480156105b857600080fd5b506105c16112d2565b6040516105ce9190613d23565b60405180910390f35b3480156105e357600080fd5b506105ec6112d7565b6040516105f99190613eab565b60405180910390f35b34801561060e57600080fd5b5061062960048036038101906106249190613ef2565b6112fd565b005b34801561063757600080fd5b50610652600480360381019061064d9190613d3e565b611497565b005b34801561066057600080fd5b50610669611625565b6040516106769190613d23565b60405180910390f35b34801561068b57600080fd5b5061069461162b565b6040516106a19190613cf9565b60405180910390f35b3480156106b657600080fd5b506106d160048036038101906106cc9190613d3e565b61163e565b6040516106de9190613d23565b60405180910390f35b3480156106f357600080fd5b506106fc611686565b005b34801561070a57600080fd5b506107136117de565b005b34801561072157600080fd5b5061073c60048036038101906107379190613f32565b6118be565b005b34801561074a57600080fd5b5061076560048036038101906107609190613f72565b611a45565b6040516107729190613cf9565b60405180910390f35b34801561078757600080fd5b50610790611c84565b60405161079d9190613d23565b60405180910390f35b3480156107b257600080fd5b506107bb611c8a565b6040516107c89190613eab565b60405180910390f35b3480156107dd57600080fd5b506107e6611cb4565b6040516107f39190613be3565b60405180910390f35b34801561080857600080fd5b50610823600480360381019061081e9190613f32565b611d46565b005b34801561083157600080fd5b5061084c60048036038101906108479190613c9e565b611e7a565b6040516108599190613cf9565b60405180910390f35b34801561086e57600080fd5b5061088960048036038101906108849190613c9e565b611f65565b6040516108969190613cf9565b60405180910390f35b3480156108ab57600080fd5b506108b4611f83565b6040516108c19190613d23565b60405180910390f35b3480156108d657600080fd5b506108f160048036038101906108ec9190613d3e565b611f89565b6040516108fe9190613cf9565b60405180910390f35b34801561091357600080fd5b5061091c611fa9565b6040516109299190613cf9565b60405180910390f35b34801561093e57600080fd5b5061095960048036038101906109549190613f32565b611fbc565b005b34801561096757600080fd5b50610982600480360381019061097d9190613de5565b6120fc565b005b34801561099057600080fd5b506109ab60048036038101906109a69190613de5565b61225f565b005b3480156109b957600080fd5b506109c261230c565b6040516109cf9190613d23565b60405180910390f35b3480156109e457600080fd5b506109ff60048036038101906109fa9190613de5565b612312565b005b348015610a0d57600080fd5b50610a286004803603810190610a239190613f72565b612475565b604051610a359190613d23565b60405180910390f35b348015610a4a57600080fd5b50610a536124fc565b604051610a609190613d23565b60405180910390f35b348015610a7557600080fd5b50610a7e612502565b604051610a8b9190613d23565b60405180910390f35b348015610aa057600080fd5b50610abb6004803603810190610ab69190613d3e565b612508565b005b348015610ac957600080fd5b50610ad26126cf565b005b348015610ae057600080fd5b50610ae96127d0565b604051610af69190613d23565b60405180910390f35b606060038054610b0e90613fe1565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3a90613fe1565b8015610b875780601f10610b5c57610100808354040283529160200191610b87565b820191906000526020600020905b815481529060010190602001808311610b6a57829003601f168201915b5050505050905090565b6000610ba5610b9e6127d6565b84846127de565b6001905092915050565b602881565b60136020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b610c0a6127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610c99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c909061405f565b60405180910390fd5b6010548110610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd4906140f1565b60405180910390fd5b6028811115610d21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d189061415d565b60405180910390fd5b806010819055507f274faecd49018fb411281f27986b6b4acc86e5db4100735531acd18b7b6d5f93601054604051610d599190613d23565b60405180910390a150565b6000610d718484846129a9565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610dbc6127d6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610e3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e33906141ef565b60405180910390fd5b610e5085610e486127d6565b8584036127de565b60019150509392505050565b60105481565b610e6a6127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef09061405f565b60405180910390fd5b670de0b6b3a76400006103e86001610f0f610bf8565b610f19919061423e565b610f2391906142c7565b610f2d91906142c7565b811015610f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f669061436a565b60405180910390fd5b670de0b6b3a764000081610f83919061423e565b6006819055507ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009600654604051610fba9190613d23565b60405180910390a150565b60006012905090565b6000611070610fdb6127d6565b848460016000610fe96127d6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461106b919061438a565b6127de565b6001905092915050565b6110826127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611111576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111089061405f565b60405180910390fd5b600f548110611155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114c906140f1565b60405180910390fd5b6028811115611199576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111909061415d565b60405180910390fd5b80600f819055507f03cd3090e7c409e4a7ffd2d90ff610979f4a94a87a512188b7b615671bfb772f600f546040516111d19190613d23565b60405180910390a150565b600f5481565b7f00000000000000000000000009416c9061cd02b36739381bea015327e0b44de681565b600e60009054906101000a900460ff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661125a6127d6565b73ffffffffffffffffffffffffffffffffffffffff161461127a57600080fd5b60006112853061163e565b905060008111156112cf576001600960006101000a81548160ff0219169083151502179055506112b3613455565b6000600960006101000a81548160ff0219169083151502179055505b50565b602881565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113056127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b9061405f565b60405180910390fd5b600e60019054906101000a900460ff16156113e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113db9061442c565b60405180910390fd5b81600e60016101000a81548160ff0219169083151502179055506001600e60026101000a81548160ff0219169083151502179055507fe185248899f361d51a48833938ab33493ebd7272d195abf7f51a833ea8138812600e60019054906101000a900460ff168260405161145992919061444c565b60405180910390a1600e60019054906101000a900460ff16801561147f57506000600c54145b156114935743600c8190555080600d819055505b5050565b61149f6127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461152e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115259061405f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561159e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611595906144e7565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f2e1e696cfb265fa16e1170d24ef04cb2262772bde00ecf34d80bae6722487b7f60405160405180910390a250565b60075481565b600e60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61168e6127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461171d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117149061405f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6117e66127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611875576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186c9061405f565b60405180910390fd5b6000600e60006101000a81548160ff0219169083151502179055507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c60405160405180910390a1565b6118c66127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611955576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194c9061405f565b60405180910390fd5b806119ea577f00000000000000000000000009416c9061cd02b36739381bea015327e0b44de673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090614579565b60405180910390fd5b5b80601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ab6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aad906145e5565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3d90614677565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611b819190613eab565b602060405180830381865afa158015611b9e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc291906146ac565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401611bff9291906146d9565b6020604051808303816000875af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c429190614717565b91507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e4388482604051611c759291906146d9565b60405180910390a15092915050565b60065481565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054611cc390613fe1565b80601f0160208091040260200160405190810160405280929190818152602001828054611cef90613fe1565b8015611d3c5780601f10611d1157610100808354040283529160200191611d3c565b820191906000526020600020905b815481529060010190602001808311611d1f57829003601f168201915b5050505050905090565b611d4e6127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ddd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd49061405f565b60405180910390fd5b7f00000000000000000000000009416c9061cd02b36739381bea015327e0b44de673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e63906147b6565b60405180910390fd5b611e768282613563565b5050565b60008060016000611e896127d6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611f46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3d90614848565b60405180910390fd5b611f5a611f516127d6565b858584036127de565b600191505092915050565b6000611f79611f726127d6565b84846129a9565b6001905092915050565b60085481565b60146020528060005260406000206000915054906101000a900460ff1681565b600e60019054906101000a900460ff1681565b611fc46127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204a9061405f565b60405180910390fd5b80601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516120f09190613cf9565b60405180910390a25050565b6121046127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218a9061405f565b60405180910390fd5b670de0b6b3a76400006103e860016121a9610bf8565b6121b3919061423e565b6121bd91906142c7565b6121c791906142c7565b811015612209576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612200906148da565b60405180910390fd5b670de0b6b3a76400008161221d919061423e565b6008819055507fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc6008546040516122549190613d23565b60405180910390a150565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e69061496c565b60405180910390fd5b670de0b6b3a764000081612303919061423e565b600a8190555050565b60115481565b61231a6127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a09061405f565b60405180910390fd5b670de0b6b3a76400006103e860016123bf610bf8565b6123c9919061423e565b6123d391906142c7565b6123dd91906142c7565b81101561241f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612416906149fe565b60405180910390fd5b670de0b6b3a764000081612433919061423e565b6007819055507f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e60075460405161246a9190613d23565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a5481565b600c5481565b6125106127d6565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461259f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125969061405f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561260f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260690614a90565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612761576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275890614677565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff164760405161278590614ae1565b60006040518083038185875af1925050503d80600081146127c2576040519150601f19603f3d011682016040523d82523d6000602084013e6127c7565b606091505b50508091505050565b600d5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561284e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284590614b68565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156128be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b590614bfa565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161299c9190613d23565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1090614c8c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8090614d1e565b60405180910390fd5b60008111612acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac390614d8a565b60405180910390fd5b600e60009054906101000a900460ff161561307b57612ae9611c8a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612b575750612b27611c8a565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612b905750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612bca575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b1561307a57600e60019054906101000a900460ff16612d3957601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612c845750601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cba90614df6565b60405180910390fd5b612ccb611c8a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612d38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2f90614e62565b60405180910390fd5b5b601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612ddc5750601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612e8357600654811115612e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e1d90614ef4565b60405180910390fd5b600854612e328361163e565b82612e3d919061438a565b1115612e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7590614f60565b60405180910390fd5b613079565b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612f265750601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612f7557600754811115612f70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6790614ff2565b60405180910390fd5b613078565b601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156130195750601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156130775760085461302a8361163e565b82613035919061438a565b1115613076576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306d90614f60565b60405180910390fd5b5b5b5b5b5b60006130863061163e565b90506000600a5482101590508080156130ab5750600e60029054906101000a900460ff165b80156130c45750600960009054906101000a900460ff16155b801561311a5750601460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156131705750601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156131c65750601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561320a576001600960006101000a81548160ff0219169083151502179055506131ee613455565b6000600960006101000a81548160ff0219169083151502179055505b600060019050601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806132b15750601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b156132bb57600090505b6000808280156132cd57506000600c54115b80156132db5750600c544310155b1561344057601460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561333b57506000601054115b1561337a57606460105487613350919061423e565b61335a91906142c7565b9150816011600082825461336e919061438a565b92505081905550613411565b601460008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156133d557506000600f54115b15613410576064600f54876133ea919061423e565b6133f491906142c7565b91508160116000828254613408919061438a565b925050819055505b5b60008211156134265761342588308461360e565b5b8082613432919061438a565b8661343d9190615012565b95505b61344b88888861360e565b5050505050505050565b60006134603061163e565b90506000601154905060008214806134785750600081145b15613484575050613561565b6005600a54613493919061423e565b8211156134ac576005600a546134a9919061423e565b91505b60006134b783613879565b60006011819055506000479050600081111561355c57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161351390614ae1565b60006040518083038185875af1925050503d8060008114613550576040519150601f19603f3d011682016040523d82523d6000602084013e613555565b606091505b5050809250505b505050505b565b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506135c48282613ab6565b8015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561367e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367590614c8c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e590614d1e565b60405180910390fd5b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376b906150b8565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613807919061438a565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161386b9190613d23565b60405180910390a350505050565b6000600267ffffffffffffffff811115613896576138956150d8565b5b6040519080825280602002602001820160405280156138c45781602001602082028036833780820191505090505b50905030816000815181106138dc576138db615107565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613981573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139a5919061514b565b816001815181106139b9576139b8615107565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613a1e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846127de565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613a80959493929190615271565b600060405180830381600087803b158015613a9a57600080fd5b505af1158015613aae573d6000803e3d6000fd5b505050505050565b80601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd67468282604051613b3e9291906152cb565b60405180910390a15050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b84578082015181840152602081019050613b69565b83811115613b93576000848401525b50505050565b6000601f19601f8301169050919050565b6000613bb582613b4a565b613bbf8185613b55565b9350613bcf818560208601613b66565b613bd881613b99565b840191505092915050565b60006020820190508181036000830152613bfd8184613baa565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c3582613c0a565b9050919050565b613c4581613c2a565b8114613c5057600080fd5b50565b600081359050613c6281613c3c565b92915050565b6000819050919050565b613c7b81613c68565b8114613c8657600080fd5b50565b600081359050613c9881613c72565b92915050565b60008060408385031215613cb557613cb4613c05565b5b6000613cc385828601613c53565b9250506020613cd485828601613c89565b9150509250929050565b60008115159050919050565b613cf381613cde565b82525050565b6000602082019050613d0e6000830184613cea565b92915050565b613d1d81613c68565b82525050565b6000602082019050613d386000830184613d14565b92915050565b600060208284031215613d5457613d53613c05565b5b6000613d6284828501613c53565b91505092915050565b6000819050919050565b6000613d90613d8b613d8684613c0a565b613d6b565b613c0a565b9050919050565b6000613da282613d75565b9050919050565b6000613db482613d97565b9050919050565b613dc481613da9565b82525050565b6000602082019050613ddf6000830184613dbb565b92915050565b600060208284031215613dfb57613dfa613c05565b5b6000613e0984828501613c89565b91505092915050565b600080600060608486031215613e2b57613e2a613c05565b5b6000613e3986828701613c53565b9350506020613e4a86828701613c53565b9250506040613e5b86828701613c89565b9150509250925092565b600060ff82169050919050565b613e7b81613e65565b82525050565b6000602082019050613e966000830184613e72565b92915050565b613ea581613c2a565b82525050565b6000602082019050613ec06000830184613e9c565b92915050565b613ecf81613cde565b8114613eda57600080fd5b50565b600081359050613eec81613ec6565b92915050565b60008060408385031215613f0957613f08613c05565b5b6000613f1785828601613edd565b9250506020613f2885828601613c89565b9150509250929050565b60008060408385031215613f4957613f48613c05565b5b6000613f5785828601613c53565b9250506020613f6885828601613edd565b9150509250929050565b60008060408385031215613f8957613f88613c05565b5b6000613f9785828601613c53565b9250506020613fa885828601613c53565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ff957607f821691505b6020821081141561400d5761400c613fb2565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614049602083613b55565b915061405482614013565b602082019050919050565b600060208201905081810360008301526140788161403c565b9050919050565b7f4e657720666565206d757374206265206c6f776572207468616e20637572726560008201527f6e74206665650000000000000000000000000000000000000000000000000000602082015250565b60006140db602683613b55565b91506140e68261407f565b604082019050919050565b6000602082019050818103600083015261410a816140ce565b9050919050565b7f4665652063616e6e6f7420657863656564203430250000000000000000000000600082015250565b6000614147601583613b55565b915061415282614111565b602082019050919050565b600060208201905081810360008301526141768161413a565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b60006141d9602883613b55565b91506141e48261417d565b604082019050919050565b60006020820190508181036000830152614208816141cc565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061424982613c68565b915061425483613c68565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561428d5761428c61420f565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142d282613c68565b91506142dd83613c68565b9250826142ed576142ec614298565b5b828204905092915050565b7f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f7765722060008201527f7468616e20302e31250000000000000000000000000000000000000000000000602082015250565b6000614354602983613b55565b915061435f826142f8565b604082019050919050565b6000602082019050818103600083015261438381614347565b9050919050565b600061439582613c68565b91506143a083613c68565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143d5576143d461420f565b5b828201905092915050565b7f43616e6e6f7420726520656e61626c652074726164696e670000000000000000600082015250565b6000614416601883613b55565b9150614421826143e0565b602082019050919050565b6000602082019050818103600083015261444581614409565b9050919050565b60006040820190506144616000830185613cea565b61446e6020830184613d14565b9392505050565b7f5f54726561737572794164647265737320616464726573732063616e6e6f742060008201527f6265203000000000000000000000000000000000000000000000000000000000602082015250565b60006144d1602483613b55565b91506144dc82614475565b604082019050919050565b60006020820190508181036000830152614500816144c4565b9050919050565b7f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060008201527f6d61782074786e00000000000000000000000000000000000000000000000000602082015250565b6000614563602783613b55565b915061456e82614507565b604082019050919050565b6000602082019050818103600083015261459281614556565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f742062652030000000000000600082015250565b60006145cf601a83613b55565b91506145da82614599565b602082019050919050565b600060208201905081810360008301526145fe816145c2565b9050919050565b7f6f6e6c79205472656173757279416464726573732063616e207769746864726160008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b6000614661602183613b55565b915061466c82614605565b604082019050919050565b6000602082019050818103600083015261469081614654565b9050919050565b6000815190506146a681613c72565b92915050565b6000602082840312156146c2576146c1613c05565b5b60006146d084828501614697565b91505092915050565b60006040820190506146ee6000830185613e9c565b6146fb6020830184613d14565b9392505050565b60008151905061471181613ec6565b92915050565b60006020828403121561472d5761472c613c05565b5b600061473b84828501614702565b91505092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006147a0603983613b55565b91506147ab82614744565b604082019050919050565b600060208201905081810360008301526147cf81614793565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000614832602583613b55565b915061483d826147d6565b604082019050919050565b6000602082019050818103600083015261486181614825565b9050919050565b7f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760008201527f6572207468616e20302e31250000000000000000000000000000000000000000602082015250565b60006148c4602c83613b55565b91506148cf82614868565b604082019050919050565b600060208201905081810360008301526148f3816148b7565b9050919050565b7f6f6e6c79205472656173757279416464726573732063616e206368616e67652060008201527f737761705468726573686f6c6400000000000000000000000000000000000000602082015250565b6000614956602d83613b55565b9150614961826148fa565b604082019050919050565b6000602082019050818103600083015261498581614949565b9050919050565b7f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f77657260008201527f207468616e20302e312500000000000000000000000000000000000000000000602082015250565b60006149e8602a83613b55565b91506149f38261498c565b604082019050919050565b60006020820190508181036000830152614a17816149db565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a7a602683613b55565b9150614a8582614a1e565b604082019050919050565b60006020820190508181036000830152614aa981614a6d565b9050919050565b600081905092915050565b50565b6000614acb600083614ab0565b9150614ad682614abb565b600082019050919050565b6000614aec82614abe565b9150819050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614b52602483613b55565b9150614b5d82614af6565b604082019050919050565b60006020820190508181036000830152614b8181614b45565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614be4602283613b55565b9150614bef82614b88565b604082019050919050565b60006020820190508181036000830152614c1381614bd7565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614c76602583613b55565b9150614c8182614c1a565b604082019050919050565b60006020820190508181036000830152614ca581614c69565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d08602383613b55565b9150614d1382614cac565b604082019050919050565b60006020820190508181036000830152614d3781614cfb565b9050919050565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614d74601d83613b55565b9150614d7f82614d3e565b602082019050919050565b60006020820190508181036000830152614da381614d67565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000614de0601683613b55565b9150614deb82614daa565b602082019050919050565b60006020820190508181036000830152614e0f81614dd3565b9050919050565b7f54726164696e67206973206e6f7420656e61626c656400000000000000000000600082015250565b6000614e4c601683613b55565b9150614e5782614e16565b602082019050919050565b60006020820190508181036000830152614e7b81614e3f565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d6178206275792e000000000000000000000000000000000000000000000000602082015250565b6000614ede602883613b55565b9150614ee982614e82565b604082019050919050565b60006020820190508181036000830152614f0d81614ed1565b9050919050565b7f43616e6e6f7420457863656564206d61782077616c6c65740000000000000000600082015250565b6000614f4a601883613b55565b9150614f5582614f14565b602082019050919050565b60006020820190508181036000830152614f7981614f3d565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61782073656c6c2e00000000000000000000000000000000000000000000602082015250565b6000614fdc602a83613b55565b9150614fe782614f80565b604082019050919050565b6000602082019050818103600083015261500b81614fcf565b9050919050565b600061501d82613c68565b915061502883613c68565b92508282101561503b5761503a61420f565b5b828203905092915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b60006150a2602683613b55565b91506150ad82615046565b604082019050919050565b600060208201905081810360008301526150d181615095565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061514581613c3c565b92915050565b60006020828403121561516157615160613c05565b5b600061516f84828501615136565b91505092915050565b6000819050919050565b600061519d61519861519384615178565b613d6b565b613c68565b9050919050565b6151ad81615182565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6151e881613c2a565b82525050565b60006151fa83836151df565b60208301905092915050565b6000602082019050919050565b600061521e826151b3565b61522881856151be565b9350615233836151cf565b8060005b8381101561526457815161524b88826151ee565b975061525683615206565b925050600181019050615237565b5085935050505092915050565b600060a0820190506152866000830188613d14565b61529360208301876151a4565b81810360408301526152a58186615213565b90506152b46060830185613e9c565b6152c16080830184613d14565b9695505050505050565b60006040820190506152e06000830185613e9c565b6152ed6020830184613cea565b939250505056fea2646970667358221220e8d6ac0330a3705ffb19f3a8d27ca5eb106d8174c3dceadb83ead47865d3911264736f6c634300080c0033
Verified Source Code Full Match
Compiler: v0.8.12+commit.f00d7308
EVM: london
Optimization: No
ProtoKOLs.sol 582 lines
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
/*
██████ ██████ ██████ ████████ ██████ ██ ██ ██████ ██ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██████ ██ ██ ██ ██ ██ █████ ██ ██ ██ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██████ ██ ██████ ██ ██ ██████ ███████ ███████
KOL Performance & Data Analytics delivered to you in Real Time.
Website: https://www.protokols.io
Telegram: https://t.me/protokols_community
X/Twitter: https://x.com/protokols_io
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this;
return msg.data;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
unchecked {
_approve(sender, _msgSender(), currentAllowance - amount);
}
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
uint256 senderBalance = _balances[sender];
require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
}
function _createInitialSupply(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
}
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
}
interface IDexFactory {
function createPair(address tokenA, address tokenB)
external
returns (address pair);
}
contract ProtoKOLs is ERC20, Ownable {
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWalletAmount;
IDexRouter public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
uint256 public swapTokensAtAmount;
address public TreasuryAddress;
uint256 public tradingActiveBlock = 0; // 0 means trading is not active
uint256 public deadBlocks = 1;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public constant INITIAL_BUY_FEE = 40;
uint256 public constant INITIAL_SELL_FEE = 40;
uint256 public buyFee;
uint256 public sellFee;
uint256 public tokensForTreasury;
// exlcude from fees and max transaction amount
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping (address => bool) public automatedMarketMakerPairs;
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event EnabledTrading(bool tradingActive, uint256 deadBlocks);
event RemovedLimits();
event ExcludeFromFees(address indexed account, bool isExcluded);
event UpdatedMaxBuyAmount(uint256 newAmount);
event UpdatedMaxSellAmount(uint256 newAmount);
event UpdatedMaxWalletAmount(uint256 newAmount);
event UpdatedTreasuryAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
event UpdatedBuyFee(uint256 newFee);
event UpdatedSellFee(uint256 newFee);
constructor() ERC20("ProtoKOLs", "KOL") {
address newOwner = msg.sender;
IDexRouter _uniswapV2Router = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); //Mainnet Router
_excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IDexFactory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 totalSupply = 10000000 * 1e18;
maxBuyAmount = totalSupply * 5 / 1000;
maxSellAmount = totalSupply * 5 / 1000;
maxWalletAmount = totalSupply * 1 / 1000;
swapTokensAtAmount = totalSupply * 50 / 100000;
buyFee = INITIAL_BUY_FEE;
sellFee = INITIAL_SELL_FEE;
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
TreasuryAddress = address(0x7E0916154aBf809A7bDBd508F3D6fF1Ba9483c24); // Treasury for ETH
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(TreasuryAddress, true);
_createInitialSupply(newOwner, totalSupply);
transferOwnership(newOwner);
}
receive() external payable {}
function updateMaxBuyAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set max buy amount lower than 0.1%");
maxBuyAmount = newNum * (10**18);
emit UpdatedMaxBuyAmount(maxBuyAmount);
}
function updateMaxSellAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set max sell amount lower than 0.1%");
maxSellAmount = newNum * (10**18);
emit UpdatedMaxSellAmount(maxSellAmount);
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
emit RemovedLimits();
}
function _excludeFromMaxTransaction(address updAds, bool isExcluded) private {
_isExcludedMaxTransactionAmount[updAds] = isExcluded;
emit MaxTransactionExclusion(updAds, isExcluded);
}
function excludeFromMaxTransaction(address updAds, bool isEx) external onlyOwner {
if(!isEx){
require(updAds != uniswapV2Pair, "Cannot remove uniswap pair from max txn");
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(newNum >= (totalSupply() * 1 / 1000)/1e18, "Cannot set max wallet amount lower than 0.1%");
maxWalletAmount = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWalletAmount);
}
function updateSwapThreshold(uint256 newAmount) public {
require(msg.sender==TreasuryAddress,"only TreasuryAddress can change swapThreshold");
swapTokensAtAmount = newAmount* (10**18);
}
function transferForeignToken(address _token, address _to) public returns (bool _sent) {
require(_token != address(0), "_token address cannot be 0");
require(msg.sender==TreasuryAddress,"only TreasuryAddress can withdraw");
uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
_sent = IERC20(_token).transfer(_to, _contractBalance);
emit TransferForeignToken(_token, _contractBalance);
}
// withdraw ETH if stuck or someone sends to the address
function withdrawStuckETH() public {
bool success;
require(msg.sender==TreasuryAddress,"only TreasuryAddress can withdraw");
(success,) = address(msg.sender).call{value: address(this).balance}("");
}
function updateBuyFee(uint256 _fee) external onlyOwner {
require(_fee < buyFee, "New fee must be lower than current fee");
require(_fee <= 40, "Fee cannot exceed 40%");
buyFee = _fee;
emit UpdatedBuyFee(buyFee);
}
function updateSellFee(uint256 _fee) external onlyOwner {
require(_fee < sellFee, "New fee must be lower than current fee");
require(_fee <= 40, "Fee cannot exceed 40%");
sellFee = _fee;
emit UpdatedSellFee(sellFee);
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function _transfer(address from, address to, uint256 amount) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "amount must be greater than 0");
if(limitsInEffect){
if (from != owner() && to != owner() && to != address(0) && to != address(0xdead)){
if(!tradingActive){
require(_isExcludedMaxTransactionAmount[from] || _isExcludedMaxTransactionAmount[to], "Trading is not active.");
require(from == owner(), "Trading is not enabled");
}
//when buy
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
require(amount <= maxBuyAmount, "Buy transfer amount exceeds the max buy.");
require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet");
}
//when sell
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxSellAmount, "Sell transfer amount exceeds the max sell.");
}
else if (!_isExcludedMaxTransactionAmount[to] && !_isExcludedMaxTransactionAmount[from]){
require(amount + balanceOf(to) <= maxWalletAmount, "Cannot Exceed max wallet");
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if(canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = true;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
uint256 penaltyAmount = 0;
// only take fees on Trades, not on wallet transfers
if(takeFee && tradingActiveBlock>0 && (block.number>=tradingActiveBlock)) {
// on sell
if (automatedMarketMakerPairs[to] && sellFee > 0) {
fees = amount * sellFee / 100;
tokensForTreasury += fees;
}
// on buy
else if(automatedMarketMakerPairs[from] && buyFee > 0) {
fees = amount * buyFee / 100;
tokensForTreasury += fees;
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees + penaltyAmount;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function setAutomatedMarketMakerPair(address pair, bool value) external onlyOwner {
require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
_excludeFromMaxTransaction(pair, value);
emit SetAutomatedMarketMakerPair(pair, value);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
address(owner()),
block.timestamp
);
}
function setTreasuryAddress(address _TreasuryAddress) external onlyOwner {
require(_TreasuryAddress != address(0), "_TreasuryAddress address cannot be 0");
TreasuryAddress = payable(_TreasuryAddress);
emit UpdatedTreasuryAddress(_TreasuryAddress);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForTreasury;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 5){
contractBalance = swapTokensAtAmount * 5;
}
bool success;
swapTokensForEth(contractBalance);
tokensForTreasury = 0;
uint256 ethBalance=address(this).balance;
if(ethBalance>0){
(success,) = address(TreasuryAddress).call{value: address(this).balance}("");
}
}
function manualSwap() external {
require(_msgSender()==TreasuryAddress);
uint256 tokenBalance=balanceOf(address(this));
if(tokenBalance>0){
swapping = true;
swapBack();
swapping = false;
}
}
// once enabled, can never be turned off
function enableTrading(bool _status, uint256 _deadBlocks) external onlyOwner {
require(!tradingActive, "Cannot re enable trading");
tradingActive = _status;
swapEnabled = true;
emit EnabledTrading(tradingActive, _deadBlocks);
if (tradingActive && tradingActiveBlock == 0) {
tradingActiveBlock = block.number;
deadBlocks = _deadBlocks;
}
}
}
Read Contract
INITIAL_BUY_FEE 0x0f6b671b → uint256
INITIAL_SELL_FEE 0x5308b7fb → uint256
TreasuryAddress 0x5b5c251f → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
deadBlocks 0xfabb0b4f → uint256
decimals 0x313ce567 → uint8
limitsInEffect 0x4a62bb65 → bool
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 22 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x5e83ae76
bool _status
uint256 _deadBlocks
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwap 0x51bc3c85
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setTreasuryAddress 0x6605bfda
address _TreasuryAddress
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferForeignToken 0x8366e79a
address _token
address _to
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFee 0x467abe0a
uint256 _fee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFee 0x1d933a4a
uint256 _fee
updateSwapThreshold 0xcc274b29
uint256 newAmount
withdrawStuckETH 0xf5648a4f
No parameters
Recent Transactions
No transactions found for this address