Address Contract Verified
Address
0x858cA1dB5D55DCa8bd8c0B3155CD9321fB1C3a4A
Balance
0 ETH
Nonce
1
Code Size
21152 bytes
Creator
0xcDEBf5ff...8619 at tx 0x6ae4bb58...dac3d8
Indexed Transactions
0
Contract Bytecode
21152 bytes
0x6080604052600436106102e85760003560e01c80638366e79a11610190578063c17b5b8c116100dc578063dd62ed3e11610095578063f11a24d31161006f578063f11a24d314610b3f578063f2fde38b14610b6a578063f54afa7814610b93578063f637434214610bbe576102ef565b8063dd62ed3e14610aac578063e2f4560514610ae9578063ee40166e14610b14576102ef565b8063c17b5b8c146109b2578063c18bc195146109db578063cc274b2914610a04578063cc2ffe7c14610a2d578063d85ba06314610a58578063dc3f0d0f14610a83576102ef565b8063a457c2d711610149578063b62496f511610123578063b62496f5146108f6578063bb8d513114610933578063bbc0c7421461095e578063c024666814610989576102ef565b8063a457c2d714610851578063a9059cbb1461088e578063aa4bde28146108cb576102ef565b80638366e79a1461075357806388e765ff146107905780638a8c523c146107bb5780638da5cb5b146107d257806395d89b41146107fd5780639a7a23d614610828576102ef565b80635b5c251f1161024f57806370a08231116102085780637571336a116101e25780637571336a146106ab57806377a3b609146106d45780638013f73a146106ff5780638095d5641461072a576102ef565b806370a0823114610640578063715018a61461067d578063751039fc14610694576102ef565b80635b5c251f1461053e5780635c068a8c1461056957806366d602ae146105945780636a486a8e146105bf5780636b2fb124146105ea5780636ddd171314610615576102ef565b806323b872dd116102a157806323b872dd1461041a5780632be32b6114610457578063313ce5671461048057806339509351146104ab57806349bd5a5e146104e85780634a62bb6514610513576102ef565b806306fdde03146102f4578063095ea7b31461031f57806310d5de531461035c5780631694505e1461039957806318160ddd146103c45780631a8145bb146103ef576102ef565b366102ef57005b600080fd5b34801561030057600080fd5b50610309610be9565b6040516103169190613c71565b60405180910390f35b34801561032b57600080fd5b5061034660048036038101906103419190613d2c565b610c7b565b6040516103539190613d87565b60405180910390f35b34801561036857600080fd5b50610383600480360381019061037e9190613da2565b610c99565b6040516103909190613d87565b60405180910390f35b3480156103a557600080fd5b506103ae610cb9565b6040516103bb9190613e2e565b60405180910390f35b3480156103d057600080fd5b506103d9610cdd565b6040516103e69190613e58565b60405180910390f35b3480156103fb57600080fd5b50610404610ce7565b6040516104119190613e58565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c9190613e73565b610ced565b60405161044e9190613d87565b60405180910390f35b34801561046357600080fd5b5061047e60048036038101906104799190613ec6565b610de5565b005b34801561048c57600080fd5b50610495610f48565b6040516104a29190613f0f565b60405180910390f35b3480156104b757600080fd5b506104d260048036038101906104cd9190613d2c565b610f51565b6040516104df9190613d87565b60405180910390f35b3480156104f457600080fd5b506104fd610ffd565b60405161050a9190613f39565b60405180910390f35b34801561051f57600080fd5b50610528611021565b6040516105359190613d87565b60405180910390f35b34801561054a57600080fd5b50610553611034565b6040516105609190613f39565b60405180910390f35b34801561057557600080fd5b5061057e61105a565b60405161058b9190613e58565b60405180910390f35b3480156105a057600080fd5b506105a9611060565b6040516105b69190613e58565b60405180910390f35b3480156105cb57600080fd5b506105d4611066565b6040516105e19190613e58565b60405180910390f35b3480156105f657600080fd5b506105ff61106c565b60405161060c9190613e58565b60405180910390f35b34801561062157600080fd5b5061062a611072565b6040516106379190613d87565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613da2565b611085565b6040516106749190613e58565b60405180910390f35b34801561068957600080fd5b506106926110cd565b005b3480156106a057600080fd5b506106a9611225565b005b3480156106b757600080fd5b506106d260048036038101906106cd9190613f80565b611305565b005b3480156106e057600080fd5b506106e961148c565b6040516106f69190613e58565b60405180910390f35b34801561070b57600080fd5b50610714611492565b6040516107219190613f39565b60405180910390f35b34801561073657600080fd5b50610751600480360381019061074c9190613fc0565b6114b8565b005b34801561075f57600080fd5b5061077a60048036038101906107759190614013565b6115d2565b6040516107879190613d87565b60405180910390f35b34801561079c57600080fd5b506107a5611811565b6040516107b29190613e58565b60405180910390f35b3480156107c757600080fd5b506107d0611817565b005b3480156107de57600080fd5b506107e76119a7565b6040516107f49190613f39565b60405180910390f35b34801561080957600080fd5b506108126119d1565b60405161081f9190613c71565b60405180910390f35b34801561083457600080fd5b5061084f600480360381019061084a9190613f80565b611a63565b005b34801561085d57600080fd5b5061087860048036038101906108739190613d2c565b611b97565b6040516108859190613d87565b60405180910390f35b34801561089a57600080fd5b506108b560048036038101906108b09190613d2c565b611c82565b6040516108c29190613d87565b60405180910390f35b3480156108d757600080fd5b506108e0611ca0565b6040516108ed9190613e58565b60405180910390f35b34801561090257600080fd5b5061091d60048036038101906109189190613da2565b611ca6565b60405161092a9190613d87565b60405180910390f35b34801561093f57600080fd5b50610948611cc6565b6040516109559190613e58565b60405180910390f35b34801561096a57600080fd5b50610973611ccc565b6040516109809190613d87565b60405180910390f35b34801561099557600080fd5b506109b060048036038101906109ab9190613f80565b611cdf565b005b3480156109be57600080fd5b506109d960048036038101906109d49190613fc0565b611e1f565b005b3480156109e757600080fd5b50610a0260048036038101906109fd9190613ec6565b611f03565b005b348015610a1057600080fd5b50610a2b6004803603810190610a269190613ec6565b612066565b005b348015610a3957600080fd5b50610a42612113565b604051610a4f9190613e58565b60405180910390f35b348015610a6457600080fd5b50610a6d612119565b604051610a7a9190613e58565b60405180910390f35b348015610a8f57600080fd5b50610aaa6004803603810190610aa59190613ec6565b61211f565b005b348015610ab857600080fd5b50610ad36004803603810190610ace9190614013565b612282565b604051610ae09190613e58565b60405180910390f35b348015610af557600080fd5b50610afe612309565b604051610b0b9190613e58565b60405180910390f35b348015610b2057600080fd5b50610b2961230f565b604051610b369190613e58565b60405180910390f35b348015610b4b57600080fd5b50610b54612315565b604051610b619190613e58565b60405180910390f35b348015610b7657600080fd5b50610b916004803603810190610b8c9190613da2565b61231b565b005b348015610b9f57600080fd5b50610ba86124e2565b604051610bb59190613e58565b60405180910390f35b348015610bca57600080fd5b50610bd36124e8565b604051610be09190613e58565b60405180910390f35b606060038054610bf890614082565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2490614082565b8015610c715780601f10610c4657610100808354040283529160200191610c71565b820191906000526020600020905b815481529060010190602001808311610c5457829003601f168201915b5050505050905090565b6000610c8f610c886124ee565b84846124f6565b6001905092915050565b601b6020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b60185481565b6000610cfa8484846126c1565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610d456124ee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc90614126565b60405180910390fd5b610dd985610dd16124ee565b8584036124f6565b60019150509392505050565b610ded6124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7390614192565b60405180910390fd5b670de0b6b3a76400006103e86001610e92610cdd565b610e9c91906141e1565b610ea6919061426a565b610eb0919061426a565b811015610ef2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee99061430d565b60405180910390fd5b670de0b6b3a764000081610f0691906141e1565b6006819055507ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009600654604051610f3d9190613e58565b60405180910390a150565b60006012905090565b6000610ff3610f5e6124ee565b848460016000610f6c6124ee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fee919061432d565b6124f6565b6001905092915050565b7f000000000000000000000000920a69cded9d1d0a51f42b5590938bba70b378f381565b600e60009054906101000a900460ff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b60075481565b60135481565b60145481565b600e60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110d56124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611164576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115b90614192565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61122d6124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b390614192565b60405180910390fd5b6000600e60006101000a81548160ff0219169083151502179055507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c60405160405180910390a1565b61130d6124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461139c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139390614192565b60405180910390fd5b80611431577f000000000000000000000000920a69cded9d1d0a51f42b5590938bba70b378f373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611430576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611427906143f5565b60405180910390fd5b5b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60125481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114c06124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461154f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154690614192565b60405180910390fd5b826010819055508160118190555080601281905550601254601154601054611577919061432d565b611581919061432d565b600f81905550601e600f5411156115cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c490614461565b60405180910390fd5b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163a906144cd565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ca9061455f565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161170e9190613f39565b602060405180830381865afa15801561172b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061174f9190614594565b90508373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b815260040161178c9291906145c1565b6020604051808303816000875af11580156117ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cf91906145ff565b91507fdeda980967fcead7b61e78ac46a4da14274af29e894d4d61e8b81ec38ab3e43884826040516118029291906145c1565b60405180910390a15092915050565b60065481565b61181f6124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a590614192565b60405180910390fd5b600e60019054906101000a900460ff16156118fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f590614678565b60405180910390fd5b6001600e60016101000a81548160ff0219169083151502179055506001600e60026101000a81548160ff0219169083151502179055507fe8a59d3db38e5220ac9d0f72590b7ac876e0916dc8f4db3e7614e6f91fe52089600e60019054906101000a900460ff166040516119729190613d87565b60405180910390a1600e60019054906101000a900460ff16801561199857506000600d54145b156119a55743600d819055505b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546119e090614082565b80601f0160208091040260200160405190810160405280929190818152602001828054611a0c90614082565b8015611a595780601f10611a2e57610100808354040283529160200191611a59565b820191906000526020600020905b815481529060010190602001808311611a3c57829003601f168201915b5050505050905090565b611a6b6124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af190614192565b60405180910390fd5b7f000000000000000000000000920a69cded9d1d0a51f42b5590938bba70b378f373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b89576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b809061470a565b60405180910390fd5b611b938282613273565b5050565b60008060016000611ba66124ee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611c63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5a9061479c565b60405180910390fd5b611c77611c6e6124ee565b858584036124f6565b600191505092915050565b6000611c96611c8f6124ee565b84846126c1565b6001905092915050565b60085481565b601c6020528060005260406000206000915054906101000a900460ff1681565b60165481565b600e60019054906101000a900460ff1681565b611ce76124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6d90614192565b60405180910390fd5b80601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611e139190613d87565b60405180910390a25050565b611e276124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611eb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ead90614192565b60405180910390fd5b826014819055508160158190555080601681905550601654601554601454611ede919061432d565b611ee8919061432d565b60138190555060596013541115611efe57600080fd5b505050565b611f0b6124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9190614192565b60405180910390fd5b670de0b6b3a76400006103e86003611fb0610cdd565b611fba91906141e1565b611fc4919061426a565b611fce919061426a565b811015612010576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120079061482e565b60405180910390fd5b670de0b6b3a76400008161202491906141e1565b6008819055507fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc60085460405161205b9190613e58565b60405180910390a150565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146120f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ed9061455f565b60405180910390fd5b670de0b6b3a76400008161210a91906141e1565b600a8190555050565b60175481565b600f5481565b6121276124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146121b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ad90614192565b60405180910390fd5b670de0b6b3a76400006103e860016121cc610cdd565b6121d691906141e1565b6121e0919061426a565b6121ea919061426a565b81101561222c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612223906148c0565b60405180910390fd5b670de0b6b3a76400008161224091906141e1565b6007819055507f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e6007546040516122779190613e58565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a5481565b600d5481565b60115481565b6123236124ee565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a990614192565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612422576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161241990614952565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60195481565b60155481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255d906149e4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cd90614a76565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516126b49190613e58565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272890614b08565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156127a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279890614b9a565b60405180910390fd5b600081116127e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127db90614c06565b60405180910390fd5b600e60009054906101000a900460ff1615612d43576128016119a7565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561286f575061283f6119a7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128a85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128e2575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612d4257600e60019054906101000a900460ff16612a5157601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061299c5750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6129db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d290614c72565b60405180910390fd5b6129e36119a7565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4790614cde565b60405180910390fd5b5b601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612af45750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612b015750600d5443115b15612b5057600654811115612b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4290614d70565b60405180910390fd5b612c3f565b601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612bf35750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612c3e57600754811115612c3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3490614e02565b60405180910390fd5b5b5b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16158015612ce35750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612d4157600854612cf483611085565b82612cff919061432d565b1115612d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3790614e6e565b60405180910390fd5b5b5b5b6000612d4e30611085565b90506000600a548210159050808015612d735750600e60029054906101000a900460ff165b8015612d8c5750600960009054906101000a900460ff16155b8015612de25750601c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612e385750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612e8e5750601a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612ed2576001600960006101000a81548160ff021916908315150217905550612eb661331e565b6000600960006101000a81548160ff0219169083151502179055505b600060019050601a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612f795750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612f8357600090505b600080821561325e576000600d54118015612fab5750436001600d54612fa9919061432d565b115b15612ffd576064600a87612fbf91906141e1565b612fc9919061426a565b9050612ff888600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836135bb565b61322f565b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561305857506000601354115b156131175760646013548761306d91906141e1565b613077919061426a565b91506013546015548361308a91906141e1565b613094919061426a565b601860008282546130a5919061432d565b92505081905550601354601454836130bd91906141e1565b6130c7919061426a565b601760008282546130d8919061432d565b92505081905550601354601654836130f091906141e1565b6130fa919061426a565b6019600082825461310b919061432d565b9250508190555061322e565b601c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561317257506000600f54115b1561322d576064600f548761318791906141e1565b613191919061426a565b9150600f54601154836131a491906141e1565b6131ae919061426a565b601860008282546131bf919061432d565b92505081905550600f54601054836131d791906141e1565b6131e1919061426a565b601760008282546131f2919061432d565b92505081905550600f546012548361320a91906141e1565b613214919061426a565b60196000828254613225919061432d565b925050819055505b5b5b6000821115613244576132438830846135bb565b5b8082613250919061432d565b8661325b9190614e8e565b95505b6132698888886135bb565b5050505050505050565b80601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506132d48282613826565b8015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600061332930611085565b90506000601954601754601854613340919061432d565b61334a919061432d565b9050600082148061335b5750600081145b156133675750506135b9565b6005600a5461337691906141e1565b82111561338f576005600a5461338c91906141e1565b91505b600080600283601854866133a391906141e1565b6133ad919061426a565b6133b7919061426a565b90506133cd81856133c89190614e8e565b6138ba565b60004790506000819050600060026018546133e8919061426a565b866133f39190614e8e565b6017548461340191906141e1565b61340b919061426a565b90506000600260185461341e919061426a565b876134299190614e8e565b6019548561343791906141e1565b613441919061426a565b9050808261344f919061432d565b8361345a9190614e8e565b92506000601881905550600060178190555060006019819055506000851180156134845750600083115b15613494576134938584613af7565b5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516134da90614ef3565b60006040518083038185875af1925050503d8060008114613517576040519150601f19603f3d011682016040523d82523d6000602084013e61351c565b606091505b505080965050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161356890614ef3565b60006040518083038185875af1925050503d80600081146135a5576040519150601f19603f3d011682016040523d82523d6000602084013e6135aa565b606091505b50508096505050505050505050505b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561362b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362290614b08565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561369b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161369290614b9a565b60405180910390fd5b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015613721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161371890614f7a565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546137b4919061432d565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516138189190613e58565b60405180910390a350505050565b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd674682826040516138ae929190614f9a565b60405180910390a15050565b6000600267ffffffffffffffff8111156138d7576138d6614fc3565b5b6040519080825280602002602001820160405280156139055781602001602082028036833780820191505090505b509050308160008151811061391d5761391c614ff2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156139c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139e69190615036565b816001815181106139fa576139f9614ff2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613a5f307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846124f6565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613ac195949392919061515c565b600060405180830381600087803b158015613adb57600080fd5b505af1158015613aef573d6000803e3d6000fd5b505050505050565b613b22307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846124f6565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080613b6c6119a7565b426040518863ffffffff1660e01b8152600401613b8e969594939291906151b6565b60606040518083038185885af1158015613bac573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613bd19190615217565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c12578082015181840152602081019050613bf7565b83811115613c21576000848401525b50505050565b6000601f19601f8301169050919050565b6000613c4382613bd8565b613c4d8185613be3565b9350613c5d818560208601613bf4565b613c6681613c27565b840191505092915050565b60006020820190508181036000830152613c8b8184613c38565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613cc382613c98565b9050919050565b613cd381613cb8565b8114613cde57600080fd5b50565b600081359050613cf081613cca565b92915050565b6000819050919050565b613d0981613cf6565b8114613d1457600080fd5b50565b600081359050613d2681613d00565b92915050565b60008060408385031215613d4357613d42613c93565b5b6000613d5185828601613ce1565b9250506020613d6285828601613d17565b9150509250929050565b60008115159050919050565b613d8181613d6c565b82525050565b6000602082019050613d9c6000830184613d78565b92915050565b600060208284031215613db857613db7613c93565b5b6000613dc684828501613ce1565b91505092915050565b6000819050919050565b6000613df4613def613dea84613c98565b613dcf565b613c98565b9050919050565b6000613e0682613dd9565b9050919050565b6000613e1882613dfb565b9050919050565b613e2881613e0d565b82525050565b6000602082019050613e436000830184613e1f565b92915050565b613e5281613cf6565b82525050565b6000602082019050613e6d6000830184613e49565b92915050565b600080600060608486031215613e8c57613e8b613c93565b5b6000613e9a86828701613ce1565b9350506020613eab86828701613ce1565b9250506040613ebc86828701613d17565b9150509250925092565b600060208284031215613edc57613edb613c93565b5b6000613eea84828501613d17565b91505092915050565b600060ff82169050919050565b613f0981613ef3565b82525050565b6000602082019050613f246000830184613f00565b92915050565b613f3381613cb8565b82525050565b6000602082019050613f4e6000830184613f2a565b92915050565b613f5d81613d6c565b8114613f6857600080fd5b50565b600081359050613f7a81613f54565b92915050565b60008060408385031215613f9757613f96613c93565b5b6000613fa585828601613ce1565b9250506020613fb685828601613f6b565b9150509250929050565b600080600060608486031215613fd957613fd8613c93565b5b6000613fe786828701613d17565b9350506020613ff886828701613d17565b925050604061400986828701613d17565b9150509250925092565b6000806040838503121561402a57614029613c93565b5b600061403885828601613ce1565b925050602061404985828601613ce1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061409a57607f821691505b602082108114156140ae576140ad614053565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000614110602883613be3565b915061411b826140b4565b604082019050919050565b6000602082019050818103600083015261413f81614103565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061417c602083613be3565b915061418782614146565b602082019050919050565b600060208201905081810360008301526141ab8161416f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141ec82613cf6565b91506141f783613cf6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142305761422f6141b2565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061427582613cf6565b915061428083613cf6565b9250826142905761428f61423b565b5b828204905092915050565b7f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f7765722060008201527f7468616e20302e31250000000000000000000000000000000000000000000000602082015250565b60006142f7602983613be3565b91506143028261429b565b604082019050919050565b60006020820190508181036000830152614326816142ea565b9050919050565b600061433882613cf6565b915061434383613cf6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614378576143776141b2565b5b828201905092915050565b7f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060008201527f6d61782074786e00000000000000000000000000000000000000000000000000602082015250565b60006143df602783613be3565b91506143ea82614383565b604082019050919050565b6000602082019050818103600083015261440e816143d2565b9050919050565b7f46656573206d7573742062652033302520206f72206c65737300000000000000600082015250565b600061444b601983613be3565b915061445682614415565b602082019050919050565b6000602082019050818103600083015261447a8161443e565b9050919050565b7f5f746f6b656e20616464726573732063616e6e6f742062652030000000000000600082015250565b60006144b7601a83613be3565b91506144c282614481565b602082019050919050565b600060208201905081810360008301526144e6816144aa565b9050919050565b7f6f6e6c79205472656173757279416464726573732063616e207769746864726160008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b6000614549602183613be3565b9150614554826144ed565b604082019050919050565b600060208201905081810360008301526145788161453c565b9050919050565b60008151905061458e81613d00565b92915050565b6000602082840312156145aa576145a9613c93565b5b60006145b88482850161457f565b91505092915050565b60006040820190506145d66000830185613f2a565b6145e36020830184613e49565b9392505050565b6000815190506145f981613f54565b92915050565b60006020828403121561461557614614613c93565b5b6000614623848285016145ea565b91505092915050565b7f43616e6e6f7420726520656e61626c652074726164696e670000000000000000600082015250565b6000614662601883613be3565b915061466d8261462c565b602082019050919050565b6000602082019050818103600083015261469181614655565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006146f4603983613be3565b91506146ff82614698565b604082019050919050565b60006020820190508181036000830152614723816146e7565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b6000614786602583613be3565b91506147918261472a565b604082019050919050565b600060208201905081810360008301526147b581614779565b9050919050565b7f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760008201527f6572207468616e20302e33250000000000000000000000000000000000000000602082015250565b6000614818602c83613be3565b9150614823826147bc565b604082019050919050565b600060208201905081810360008301526148478161480b565b9050919050565b7f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f77657260008201527f207468616e20302e312500000000000000000000000000000000000000000000602082015250565b60006148aa602a83613be3565b91506148b58261484e565b604082019050919050565b600060208201905081810360008301526148d98161489d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061493c602683613be3565b9150614947826148e0565b604082019050919050565b6000602082019050818103600083015261496b8161492f565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006149ce602483613be3565b91506149d982614972565b604082019050919050565b600060208201905081810360008301526149fd816149c1565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a60602283613be3565b9150614a6b82614a04565b604082019050919050565b60006020820190508181036000830152614a8f81614a53565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614af2602583613be3565b9150614afd82614a96565b604082019050919050565b60006020820190508181036000830152614b2181614ae5565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614b84602383613be3565b9150614b8f82614b28565b604082019050919050565b60006020820190508181036000830152614bb381614b77565b9050919050565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614bf0601d83613be3565b9150614bfb82614bba565b602082019050919050565b60006020820190508181036000830152614c1f81614be3565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000614c5c601683613be3565b9150614c6782614c26565b602082019050919050565b60006020820190508181036000830152614c8b81614c4f565b9050919050565b7f54726164696e67206973206e6f7420656e61626c656400000000000000000000600082015250565b6000614cc8601683613be3565b9150614cd382614c92565b602082019050919050565b60006020820190508181036000830152614cf781614cbb565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d6178206275792e000000000000000000000000000000000000000000000000602082015250565b6000614d5a602883613be3565b9150614d6582614cfe565b604082019050919050565b60006020820190508181036000830152614d8981614d4d565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61782073656c6c2e00000000000000000000000000000000000000000000602082015250565b6000614dec602a83613be3565b9150614df782614d90565b604082019050919050565b60006020820190508181036000830152614e1b81614ddf565b9050919050565b7f43616e6e6f7420457863656564206d61782077616c6c65740000000000000000600082015250565b6000614e58601883613be3565b9150614e6382614e22565b602082019050919050565b60006020820190508181036000830152614e8781614e4b565b9050919050565b6000614e9982613cf6565b9150614ea483613cf6565b925082821015614eb757614eb66141b2565b5b828203905092915050565b600081905092915050565b50565b6000614edd600083614ec2565b9150614ee882614ecd565b600082019050919050565b6000614efe82614ed0565b9150819050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614f64602683613be3565b9150614f6f82614f08565b604082019050919050565b60006020820190508181036000830152614f9381614f57565b9050919050565b6000604082019050614faf6000830185613f2a565b614fbc6020830184613d78565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061503081613cca565b92915050565b60006020828403121561504c5761504b613c93565b5b600061505a84828501615021565b91505092915050565b6000819050919050565b600061508861508361507e84615063565b613dcf565b613cf6565b9050919050565b6150988161506d565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6150d381613cb8565b82525050565b60006150e583836150ca565b60208301905092915050565b6000602082019050919050565b60006151098261509e565b61511381856150a9565b935061511e836150ba565b8060005b8381101561514f57815161513688826150d9565b9750615141836150f1565b925050600181019050615122565b5085935050505092915050565b600060a0820190506151716000830188613e49565b61517e602083018761508f565b818103604083015261519081866150fe565b905061519f6060830185613f2a565b6151ac6080830184613e49565b9695505050505050565b600060c0820190506151cb6000830189613f2a565b6151d86020830188613e49565b6151e5604083018761508f565b6151f2606083018661508f565b6151ff6080830185613f2a565b61520c60a0830184613e49565b979650505050505050565b6000806000606084860312156152305761522f613c93565b5b600061523e8682870161457f565b935050602061524f8682870161457f565b92505060406152608682870161457f565b915050925092509256fea26469706673582212209d900519cec715d813c07fdec4870da5b1addee326308ac7d043c1b5d31e8fe964736f6c634300080c0033
Verified Source Code Full Match
Compiler: v0.8.12+commit.f00d7308
EVM: london
Optimization: No
limitus.sol 591 lines
/**
*Submitted for verification at Etherscan.io on 2025-06-18
*/
// SPDX-License-Identifier: MIT
/*
Limitus AI - Redefining Intelligence.
Website: https://www.limitus.ai/
Twitter/X: https://x.com/limitusintel
Whitepaper: https://www.limitus.ai/whitepaper
*/
pragma solidity ^0.8.12;
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 LMTS 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;
address public EcosystemAddress;
uint256 public tradingActiveBlock = 0;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
uint256 public buyTotalFees;
uint256 public buyTreasuryFee;
uint256 public buyLiquidityFee;
uint256 public buyRewardsFee;
uint256 public sellTotalFees;
uint256 public sellTreasuryFee;
uint256 public sellLiquidityFee;
uint256 public sellRewardsFee;
uint256 public tokensForTreasury;
uint256 public tokensForLiquidity;
uint256 public tokensForRewards;
mapping (address => bool) private _isExcludedFromFees;
mapping (address => bool) public _isExcludedMaxTransactionAmount;
mapping (address => bool) public automatedMarketMakerPairs;
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event EnabledTrading(bool tradingActive);
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 UpdatedEcosystemAddress(address indexed newWallet);
event MaxTransactionExclusion(address _address, bool excluded);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event TransferForeignToken(address token, uint256 amount);
constructor() ERC20("Limitus", "LMTS") {
address newOwner = msg.sender;
IDexRouter _uniswapV2Router = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
_excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IDexFactory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
uint256 totalSupply = 100000000 * 1e18;
maxBuyAmount = totalSupply * 12 / 1000;
maxSellAmount = totalSupply * 12 / 1000;
maxWalletAmount = totalSupply * 12 / 1000;
swapTokensAtAmount = totalSupply * 50 / 100000;
buyTreasuryFee = 2;
buyLiquidityFee = 0;
buyRewardsFee = 0;
buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyRewardsFee;
sellTreasuryFee = 2;
sellLiquidityFee = 0;
sellRewardsFee = 0;
sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellRewardsFee;
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
TreasuryAddress = address(0x2a2A9Fe3BAB4e41D3f6E2a45C0A6f2A8D2e86103);
EcosystemAddress = address(0xcDEBf5ff033eE4c8d9eCC3654dA6b8b1d5638619);
excludeFromFees(newOwner, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(EcosystemAddress, 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);
}
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() * 3 / 1000)/1e18, "Cannot set max wallet amount lower than 0.3%");
maxWalletAmount = newNum * (10**18);
emit UpdatedMaxWalletAmount(maxWalletAmount);
}
function updateSwapThreshold(uint256 newAmount) public {
require(msg.sender==TreasuryAddress,"only TreasuryAddress can withdraw");
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);
}
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");
}
if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to] && block.number>tradingActiveBlock) {
require(amount <= maxBuyAmount, "Buy transfer amount exceeds the max buy.");
}
else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
require(amount <= maxSellAmount, "Sell transfer amount exceeds the max sell.");
}
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(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
uint256 penaltyAmount = 0;
if(takeFee){
if(tradingActiveBlock>0 && (tradingActiveBlock + 1) > block.number){
penaltyAmount = amount * 10 / 100;
super._transfer(from, EcosystemAddress, penaltyAmount);
}
else if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
fees = amount * sellTotalFees /100;
tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
tokensForTreasury += fees * sellTreasuryFee / sellTotalFees;
tokensForRewards += fees * sellRewardsFee / sellTotalFees;
}
else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
fees = amount * buyTotalFees / 100;
tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
tokensForTreasury += fees * buyTreasuryFee / buyTotalFees;
tokensForRewards += fees * buyRewardsFee / buyTotalFees;
}
if(fees > 0){
super._transfer(from, address(this), fees);
}
amount -= fees + penaltyAmount;
}
super._transfer(from, to, amount);
}
function updateBuyFees(uint256 _treasuryFee, uint256 _liquidityFee, uint256 _rewardsFee) external onlyOwner {
buyTreasuryFee = _treasuryFee;
buyLiquidityFee = _liquidityFee;
buyRewardsFee = _rewardsFee;
buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyRewardsFee;
require(buyTotalFees <= 30, "Fees must be 30% or less");
}
function updateSellFees(uint256 _treasuryFee, uint256 _liquidityFee, uint256 _rewardsFee) external onlyOwner {
sellTreasuryFee = _treasuryFee;
sellLiquidityFee = _liquidityFee;
sellRewardsFee = _rewardsFee;
sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellRewardsFee;
require(sellTotalFees <= 89);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity + tokensForTreasury + tokensForRewards;
if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
if(contractBalance > swapTokensAtAmount * 5){
contractBalance = swapTokensAtAmount * 5;
}
bool success;
uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
swapTokensForEth(contractBalance - liquidityTokens);
uint256 ethBalance = address(this).balance;
uint256 ethForLiquidity = ethBalance;
uint256 ethForTreasury = ethBalance * tokensForTreasury / (totalTokensToSwap - (tokensForLiquidity/2));
uint256 ethForRewards = ethBalance * tokensForRewards / (totalTokensToSwap - (tokensForLiquidity/2));
ethForLiquidity -= ethForTreasury + ethForRewards;
tokensForLiquidity = 0;
tokensForTreasury = 0;
tokensForRewards = 0;
if(liquidityTokens > 0 && ethForLiquidity > 0){
addLiquidity(liquidityTokens, ethForLiquidity);
}
(success,) = address(EcosystemAddress).call{value: ethForRewards}("");
(success,) = address(TreasuryAddress).call{value: address(this).balance}("");
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
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(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
address(owner()),
block.timestamp
);
}
function enableTrading() external onlyOwner {
require(!tradingActive, "Cannot re enable trading");
tradingActive = true;
swapEnabled = true;
emit EnabledTrading(tradingActive);
if (tradingActive && tradingActiveBlock == 0) {
tradingActiveBlock = block.number;
}
}
}
Read Contract
EcosystemAddress 0x8013f73a → address
TreasuryAddress 0x5b5c251f → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyRewardsFee 0x77a3b609 → uint256
buyTotalFees 0xd85ba063 → uint256
buyTreasuryFee 0x5c068a8c → uint256
decimals 0x313ce567 → uint8
limitsInEffect 0x4a62bb65 → bool
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellLiquidityFee 0xf6374342 → uint256
sellRewardsFee 0xbb8d5131 → uint256
sellTotalFees 0x6a486a8e → uint256
sellTreasuryFee 0x6b2fb124 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForRewards 0xf54afa78 → uint256
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
tradingActiveBlock 0xee40166e → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
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
updateBuyFees 0x8095d564
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _rewardsFee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xc17b5b8c
uint256 _treasuryFee
uint256 _liquidityFee
uint256 _rewardsFee
updateSwapThreshold 0xcc274b29
uint256 newAmount
Recent Transactions
No transactions found for this address