Address Contract Verified
Address
0x5234Ee4C544992DB0bD8fcF4d307D0AB428e7578
Balance
0 ETH
Nonce
1
Code Size
20508 bytes
Creator
0x45a67703...440e at tx 0xede4b29f...139c4e
Indexed Transactions
0
Contract Bytecode
20508 bytes
0x6080604052600436106102cd5760003560e01c806388e765ff11610175578063c0246668116100dc578063dd62ed3e11610095578063f11a24d31161006f578063f11a24d314610ae7578063f2fde38b14610b12578063f54afa7814610b3b578063f637434214610b66576102d4565b8063dd62ed3e14610a54578063e2f4560514610a91578063ee40166e14610abc576102d4565b8063c02466681461095a578063c17b5b8c14610983578063c18bc195146109ac578063cc2ffe7c146109d5578063d85ba06314610a00578063dc3f0d0f14610a2b576102d4565b8063a8e01b281161012e578063a8e01b2814610836578063a9059cbb1461085f578063aa4bde281461089c578063b62496f5146108c7578063bb8d513114610904578063bbc0c7421461092f576102d4565b806388e765ff146107385780638a8c523c146107635780638da5cb5b1461077a57806395d89b41146107a55780639a7a23d6146107d0578063a457c2d7146107f9576102d4565b80635b5c251f1161023457806370a08231116101ed5780637571336a116101c75780637571336a1461069057806377a3b609146106b95780638013f73a146106e45780638095d5641461070f576102d4565b806370a0823114610625578063715018a614610662578063751039fc14610679576102d4565b80635b5c251f146105235780635c068a8c1461054e57806366d602ae146105795780636a486a8e146105a45780636b2fb124146105cf5780636ddd1713146105fa576102d4565b806323b872dd1161028657806323b872dd146103ff5780632be32b611461043c578063313ce56714610465578063395093511461049057806349bd5a5e146104cd5780634a62bb65146104f8576102d4565b806306fdde03146102d9578063095ea7b31461030457806310d5de53146103415780631694505e1461037e57806318160ddd146103a95780631a8145bb146103d4576102d4565b366102d457005b600080fd5b3480156102e557600080fd5b506102ee610b91565b6040516102fb9190613af1565b60405180910390f35b34801561031057600080fd5b5061032b60048036038101906103269190613bac565b610c23565b6040516103389190613c07565b60405180910390f35b34801561034d57600080fd5b5061036860048036038101906103639190613c22565b610c41565b6040516103759190613c07565b60405180910390f35b34801561038a57600080fd5b50610393610c61565b6040516103a09190613cae565b60405180910390f35b3480156103b557600080fd5b506103be610c85565b6040516103cb9190613cd8565b60405180910390f35b3480156103e057600080fd5b506103e9610c8f565b6040516103f69190613cd8565b60405180910390f35b34801561040b57600080fd5b5061042660048036038101906104219190613cf3565b610c95565b6040516104339190613c07565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e9190613d46565b610d8d565b005b34801561047157600080fd5b5061047a610ef0565b6040516104879190613d8f565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b29190613bac565b610ef9565b6040516104c49190613c07565b60405180910390f35b3480156104d957600080fd5b506104e2610fa5565b6040516104ef9190613db9565b60405180910390f35b34801561050457600080fd5b5061050d610fc9565b60405161051a9190613c07565b60405180910390f35b34801561052f57600080fd5b50610538610fdc565b6040516105459190613db9565b60405180910390f35b34801561055a57600080fd5b50610563611002565b6040516105709190613cd8565b60405180910390f35b34801561058557600080fd5b5061058e611008565b60405161059b9190613cd8565b60405180910390f35b3480156105b057600080fd5b506105b961100e565b6040516105c69190613cd8565b60405180910390f35b3480156105db57600080fd5b506105e4611014565b6040516105f19190613cd8565b60405180910390f35b34801561060657600080fd5b5061060f61101a565b60405161061c9190613c07565b60405180910390f35b34801561063157600080fd5b5061064c60048036038101906106479190613c22565b61102d565b6040516106599190613cd8565b60405180910390f35b34801561066e57600080fd5b50610677611075565b005b34801561068557600080fd5b5061068e6111cd565b005b34801561069c57600080fd5b506106b760048036038101906106b29190613e00565b6112ad565b005b3480156106c557600080fd5b506106ce611434565b6040516106db9190613cd8565b60405180910390f35b3480156106f057600080fd5b506106f961143a565b6040516107069190613db9565b60405180910390f35b34801561071b57600080fd5b5061073660048036038101906107319190613e40565b611460565b005b34801561074457600080fd5b5061074d61157a565b60405161075a9190613cd8565b60405180910390f35b34801561076f57600080fd5b50610778611580565b005b34801561078657600080fd5b5061078f611710565b60405161079c9190613db9565b60405180910390f35b3480156107b157600080fd5b506107ba61173a565b6040516107c79190613af1565b60405180910390f35b3480156107dc57600080fd5b506107f760048036038101906107f29190613e00565b6117cc565b005b34801561080557600080fd5b50610820600480360381019061081b9190613bac565b611900565b60405161082d9190613c07565b60405180910390f35b34801561084257600080fd5b5061085d60048036038101906108589190613c22565b6119eb565b005b34801561086b57600080fd5b5061088660048036038101906108819190613bac565b611b79565b6040516108939190613c07565b60405180910390f35b3480156108a857600080fd5b506108b1611b97565b6040516108be9190613cd8565b60405180910390f35b3480156108d357600080fd5b506108ee60048036038101906108e99190613c22565b611b9d565b6040516108fb9190613c07565b60405180910390f35b34801561091057600080fd5b50610919611bbd565b6040516109269190613cd8565b60405180910390f35b34801561093b57600080fd5b50610944611bc3565b6040516109519190613c07565b60405180910390f35b34801561096657600080fd5b50610981600480360381019061097c9190613e00565b611bd6565b005b34801561098f57600080fd5b506109aa60048036038101906109a59190613e40565b611d16565b005b3480156109b857600080fd5b506109d360048036038101906109ce9190613d46565b611e30565b005b3480156109e157600080fd5b506109ea611f93565b6040516109f79190613cd8565b60405180910390f35b348015610a0c57600080fd5b50610a15611f99565b604051610a229190613cd8565b60405180910390f35b348015610a3757600080fd5b50610a526004803603810190610a4d9190613d46565b611f9f565b005b348015610a6057600080fd5b50610a7b6004803603810190610a769190613e93565b612102565b604051610a889190613cd8565b60405180910390f35b348015610a9d57600080fd5b50610aa6612189565b604051610ab39190613cd8565b60405180910390f35b348015610ac857600080fd5b50610ad161218f565b604051610ade9190613cd8565b60405180910390f35b348015610af357600080fd5b50610afc612195565b604051610b099190613cd8565b60405180910390f35b348015610b1e57600080fd5b50610b396004803603810190610b349190613c22565b61219b565b005b348015610b4757600080fd5b50610b50612362565b604051610b5d9190613cd8565b60405180910390f35b348015610b7257600080fd5b50610b7b612368565b604051610b889190613cd8565b60405180910390f35b606060038054610ba090613f02565b80601f0160208091040260200160405190810160405280929190818152602001828054610bcc90613f02565b8015610c195780601f10610bee57610100808354040283529160200191610c19565b820191906000526020600020905b815481529060010190602001808311610bfc57829003601f168201915b5050505050905090565b6000610c37610c3061236e565b8484612376565b6001905092915050565b601b6020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b60185481565b6000610ca2848484612541565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610ced61236e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6490613fa6565b60405180910390fd5b610d8185610d7961236e565b858403612376565b60019150509392505050565b610d9561236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1b90614012565b60405180910390fd5b670de0b6b3a76400006103e86001610e3a610c85565b610e449190614061565b610e4e91906140ea565b610e5891906140ea565b811015610e9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e919061418d565b60405180910390fd5b670de0b6b3a764000081610eae9190614061565b6006819055507ffcc0366804aaa8dbf88a2924100c733b70dec8445957a5d5f8ff92898de41009600654604051610ee59190613cd8565b60405180910390a150565b60006012905090565b6000610f9b610f0661236e565b848460016000610f1461236e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f9691906141ad565b612376565b6001905092915050565b7f000000000000000000000000bccded61b3fe93cfc0875e05e15935162c71d1a781565b600e60009054906101000a900460ff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b60075481565b60135481565b60145481565b600e60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61107d61236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461110c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110390614012565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6111d561236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611264576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125b90614012565b60405180910390fd5b6000600e60006101000a81548160ff0219169083151502179055507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c60405160405180910390a1565b6112b561236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b90614012565b60405180910390fd5b806113d9577f000000000000000000000000bccded61b3fe93cfc0875e05e15935162c71d1a773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cf90614275565b60405180910390fd5b5b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60125481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61146861236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ee90614012565b60405180910390fd5b82601081905550816011819055508060128190555060125460115460105461151f91906141ad565b61152991906141ad565b600f819055506014600f541115611575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156c906142e1565b60405180910390fd5b505050565b60065481565b61158861236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160e90614012565b60405180910390fd5b600e60019054906101000a900460ff1615611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e9061434d565b60405180910390fd5b6001600e60016101000a81548160ff0219169083151502179055506001600e60026101000a81548160ff0219169083151502179055507fe8a59d3db38e5220ac9d0f72590b7ac876e0916dc8f4db3e7614e6f91fe52089600e60019054906101000a900460ff166040516116db9190613c07565b60405180910390a1600e60019054906101000a900460ff16801561170157506000600d54145b1561170e5743600d819055505b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461174990613f02565b80601f016020809104026020016040519081016040528092919081815260200182805461177590613f02565b80156117c25780601f10611797576101008083540402835291602001916117c2565b820191906000526020600020905b8154815290600101906020018083116117a557829003601f168201915b5050505050905090565b6117d461236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611863576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185a90614012565b60405180910390fd5b7f000000000000000000000000bccded61b3fe93cfc0875e05e15935162c71d1a773ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e9906143df565b60405180910390fd5b6118fc82826130f3565b5050565b6000806001600061190f61236e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156119cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c390614471565b60405180910390fd5b6119e06119d761236e565b85858403612376565b600191505092915050565b6119f361236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7990614012565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611af2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae990614503565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f3a687f29cd2e7ea2126d7cf7ad8c5facb38ce4a43cc356eb40f9fb6e628172e560405160405180910390a250565b6000611b8d611b8661236e565b8484612541565b6001905092915050565b60085481565b601c6020528060005260406000206000915054906101000a900460ff1681565b60165481565b600e60019054906101000a900460ff1681565b611bde61236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6490614012565b60405180910390fd5b80601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611d0a9190613c07565b60405180910390a25050565b611d1e61236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611dad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da490614012565b60405180910390fd5b826014819055508160158190555080601681905550601654601554601454611dd591906141ad565b611ddf91906141ad565b60138190555060146013541115611e2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e22906142e1565b60405180910390fd5b505050565b611e3861236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ec7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebe90614012565b60405180910390fd5b670de0b6b3a76400006103e86003611edd610c85565b611ee79190614061565b611ef191906140ea565b611efb91906140ea565b811015611f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3490614595565b60405180910390fd5b670de0b6b3a764000081611f519190614061565b6008819055507fefc9add9a9b7382de284ef5ad69d8ea863e2680492b21a81948c2d5f04a442bc600854604051611f889190613cd8565b60405180910390a150565b60175481565b600f5481565b611fa761236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202d90614012565b60405180910390fd5b670de0b6b3a76400006103e8600161204c610c85565b6120569190614061565b61206091906140ea565b61206a91906140ea565b8110156120ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a390614627565b60405180910390fd5b670de0b6b3a7640000816120c09190614061565b6007819055507f53c4eb831d8cfeb750f1c62590d8cd30f4c6f0380d29a05caa09f0d92588560e6007546040516120f79190613cd8565b60405180910390a150565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600a5481565b600d5481565b60115481565b6121a361236e565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222990614012565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612299906146b9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60195481565b60155481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156123e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dd9061474b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244d906147dd565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516125349190613cd8565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125a89061486f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612621576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261890614901565b60405180910390fd5b60008111612664576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265b9061496d565b60405180910390fd5b600e60009054906101000a900460ff1615612bc357612681611710565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156126ef57506126bf611710565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156127285750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612762575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612bc257600e60019054906101000a900460ff166128d157601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061281c5750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b61285b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612852906149d9565b60405180910390fd5b612863611710565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146128d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c790614a45565b60405180910390fd5b5b601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156129745750601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156129815750600d5443115b156129d0576006548111156129cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c290614ad7565b60405180910390fd5b612abf565b601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612a735750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612abe57600754811115612abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab490614b69565b60405180910390fd5b5b5b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16158015612b635750601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612bc157600854612b748361102d565b82612b7f91906141ad565b1115612bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb790614bd5565b60405180910390fd5b5b5b5b6000612bce3061102d565b90506000600a548210159050808015612bf35750600e60029054906101000a900460ff165b8015612c0c5750600960009054906101000a900460ff16155b8015612c625750601c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612cb85750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612d0e5750601a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612d52576001600960006101000a81548160ff021916908315150217905550612d3661319e565b6000600960006101000a81548160ff0219169083151502179055505b600060019050601a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612df95750601a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612e0357600090505b60008082156130de576000600d54118015612e2b5750436001600d54612e2991906141ad565b115b15612e7d576064600a87612e3f9190614061565b612e4991906140ea565b9050612e7888600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168361343b565b6130af565b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612ed857506000601354115b15612f9757606460135487612eed9190614061565b612ef791906140ea565b915060135460155483612f0a9190614061565b612f1491906140ea565b60186000828254612f2591906141ad565b9250508190555060135460145483612f3d9190614061565b612f4791906140ea565b60176000828254612f5891906141ad565b9250508190555060135460165483612f709190614061565b612f7a91906140ea565b60196000828254612f8b91906141ad565b925050819055506130ae565b601c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612ff257506000600f54115b156130ad576064600f54876130079190614061565b61301191906140ea565b9150600f54601154836130249190614061565b61302e91906140ea565b6018600082825461303f91906141ad565b92505081905550600f54601054836130579190614061565b61306191906140ea565b6017600082825461307291906141ad565b92505081905550600f546012548361308a9190614061565b61309491906140ea565b601960008282546130a591906141ad565b925050819055505b5b5b60008211156130c4576130c388308461343b565b5b80826130d091906141ad565b866130db9190614bf5565b95505b6130e988888861343b565b5050505050505050565b80601c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061315482826136a6565b8015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b60006131a93061102d565b905060006019546017546018546131c091906141ad565b6131ca91906141ad565b905060008214806131db5750600081145b156131e7575050613439565b6005600a546131f69190614061565b82111561320f576005600a5461320c9190614061565b91505b600080600283601854866132239190614061565b61322d91906140ea565b61323791906140ea565b905061324d81856132489190614bf5565b61373a565b600047905060008190506000600260185461326891906140ea565b866132739190614bf5565b601754846132819190614061565b61328b91906140ea565b90506000600260185461329e91906140ea565b876132a99190614bf5565b601954856132b79190614061565b6132c191906140ea565b905080826132cf91906141ad565b836132da9190614bf5565b92506000601881905550600060178190555060006019819055506000851180156133045750600083115b15613314576133138584613977565b5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161335a90614c5a565b60006040518083038185875af1925050503d8060008114613397576040519150601f19603f3d011682016040523d82523d6000602084013e61339c565b606091505b505080965050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516133e890614c5a565b60006040518083038185875af1925050503d8060008114613425576040519150601f19603f3d011682016040523d82523d6000602084013e61342a565b606091505b50508096505050505050505050505b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156134ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a29061486f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561351b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161351290614901565b60405180910390fd5b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156135a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359890614ce1565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461363491906141ad565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516136989190613cd8565b60405180910390a350505050565b80601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f6b4f1be9103e6cbcd38ca4a922334f2c3109b260130a6676a987f94088fd6746828260405161372e929190614d01565b60405180910390a15050565b6000600267ffffffffffffffff81111561375757613756614d2a565b5b6040519080825280602002602001820160405280156137855781602001602082028036833780820191505090505b509050308160008151811061379d5761379c614d59565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613842573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138669190614d9d565b8160018151811061387a57613879614d59565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506138df307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612376565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613941959493929190614ec3565b600060405180830381600087803b15801561395b57600080fd5b505af115801561396f573d6000803e3d6000fd5b505050505050565b6139a2307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612376565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230856000806139ec611710565b426040518863ffffffff1660e01b8152600401613a0e96959493929190614f1d565b60606040518083038185885af1158015613a2c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613a519190614f93565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a92578082015181840152602081019050613a77565b83811115613aa1576000848401525b50505050565b6000601f19601f8301169050919050565b6000613ac382613a58565b613acd8185613a63565b9350613add818560208601613a74565b613ae681613aa7565b840191505092915050565b60006020820190508181036000830152613b0b8184613ab8565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b4382613b18565b9050919050565b613b5381613b38565b8114613b5e57600080fd5b50565b600081359050613b7081613b4a565b92915050565b6000819050919050565b613b8981613b76565b8114613b9457600080fd5b50565b600081359050613ba681613b80565b92915050565b60008060408385031215613bc357613bc2613b13565b5b6000613bd185828601613b61565b9250506020613be285828601613b97565b9150509250929050565b60008115159050919050565b613c0181613bec565b82525050565b6000602082019050613c1c6000830184613bf8565b92915050565b600060208284031215613c3857613c37613b13565b5b6000613c4684828501613b61565b91505092915050565b6000819050919050565b6000613c74613c6f613c6a84613b18565b613c4f565b613b18565b9050919050565b6000613c8682613c59565b9050919050565b6000613c9882613c7b565b9050919050565b613ca881613c8d565b82525050565b6000602082019050613cc36000830184613c9f565b92915050565b613cd281613b76565b82525050565b6000602082019050613ced6000830184613cc9565b92915050565b600080600060608486031215613d0c57613d0b613b13565b5b6000613d1a86828701613b61565b9350506020613d2b86828701613b61565b9250506040613d3c86828701613b97565b9150509250925092565b600060208284031215613d5c57613d5b613b13565b5b6000613d6a84828501613b97565b91505092915050565b600060ff82169050919050565b613d8981613d73565b82525050565b6000602082019050613da46000830184613d80565b92915050565b613db381613b38565b82525050565b6000602082019050613dce6000830184613daa565b92915050565b613ddd81613bec565b8114613de857600080fd5b50565b600081359050613dfa81613dd4565b92915050565b60008060408385031215613e1757613e16613b13565b5b6000613e2585828601613b61565b9250506020613e3685828601613deb565b9150509250929050565b600080600060608486031215613e5957613e58613b13565b5b6000613e6786828701613b97565b9350506020613e7886828701613b97565b9250506040613e8986828701613b97565b9150509250925092565b60008060408385031215613eaa57613ea9613b13565b5b6000613eb885828601613b61565b9250506020613ec985828601613b61565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f1a57607f821691505b60208210811415613f2e57613f2d613ed3565b5b50919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000613f90602883613a63565b9150613f9b82613f34565b604082019050919050565b60006020820190508181036000830152613fbf81613f83565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613ffc602083613a63565b915061400782613fc6565b602082019050919050565b6000602082019050818103600083015261402b81613fef565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061406c82613b76565b915061407783613b76565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156140b0576140af614032565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006140f582613b76565b915061410083613b76565b9250826141105761410f6140bb565b5b828204905092915050565b7f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f7765722060008201527f7468616e20302e31250000000000000000000000000000000000000000000000602082015250565b6000614177602983613a63565b91506141828261411b565b604082019050919050565b600060208201905081810360008301526141a68161416a565b9050919050565b60006141b882613b76565b91506141c383613b76565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156141f8576141f7614032565b5b828201905092915050565b7f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060008201527f6d61782074786e00000000000000000000000000000000000000000000000000602082015250565b600061425f602783613a63565b915061426a82614203565b604082019050919050565b6000602082019050818103600083015261428e81614252565b9050919050565b7f46656573206d7573742062652033302520206f72206c65737300000000000000600082015250565b60006142cb601983613a63565b91506142d682614295565b602082019050919050565b600060208201905081810360008301526142fa816142be565b9050919050565b7f43616e6e6f7420726520656e61626c652074726164696e670000000000000000600082015250565b6000614337601883613a63565b915061434282614301565b602082019050919050565b600060208201905081810360008301526143668161432a565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006143c9603983613a63565b91506143d48261436d565b604082019050919050565b600060208201905081810360008301526143f8816143bc565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061445b602583613a63565b9150614466826143ff565b604082019050919050565b6000602082019050818103600083015261448a8161444e565b9050919050565b7f5f45636f73797374656d4164647265737320616464726573732063616e6e6f7460008201527f2062652030000000000000000000000000000000000000000000000000000000602082015250565b60006144ed602583613a63565b91506144f882614491565b604082019050919050565b6000602082019050818103600083015261451c816144e0565b9050919050565b7f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760008201527f6572207468616e20302e33250000000000000000000000000000000000000000602082015250565b600061457f602c83613a63565b915061458a82614523565b604082019050919050565b600060208201905081810360008301526145ae81614572565b9050919050565b7f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f77657260008201527f207468616e20302e312500000000000000000000000000000000000000000000602082015250565b6000614611602a83613a63565b915061461c826145b5565b604082019050919050565b6000602082019050818103600083015261464081614604565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146a3602683613a63565b91506146ae82614647565b604082019050919050565b600060208201905081810360008301526146d281614696565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614735602483613a63565b9150614740826146d9565b604082019050919050565b6000602082019050818103600083015261476481614728565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b60006147c7602283613a63565b91506147d28261476b565b604082019050919050565b600060208201905081810360008301526147f6816147ba565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614859602583613a63565b9150614864826147fd565b604082019050919050565b600060208201905081810360008301526148888161484c565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006148eb602383613a63565b91506148f68261488f565b604082019050919050565b6000602082019050818103600083015261491a816148de565b9050919050565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000614957601d83613a63565b915061496282614921565b602082019050919050565b600060208201905081810360008301526149868161494a565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b60006149c3601683613a63565b91506149ce8261498d565b602082019050919050565b600060208201905081810360008301526149f2816149b6565b9050919050565b7f54726164696e67206973206e6f7420656e61626c656400000000000000000000600082015250565b6000614a2f601683613a63565b9150614a3a826149f9565b602082019050919050565b60006020820190508181036000830152614a5e81614a22565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d6178206275792e000000000000000000000000000000000000000000000000602082015250565b6000614ac1602883613a63565b9150614acc82614a65565b604082019050919050565b60006020820190508181036000830152614af081614ab4565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61782073656c6c2e00000000000000000000000000000000000000000000602082015250565b6000614b53602a83613a63565b9150614b5e82614af7565b604082019050919050565b60006020820190508181036000830152614b8281614b46565b9050919050565b7f43616e6e6f7420457863656564206d61782077616c6c65740000000000000000600082015250565b6000614bbf601883613a63565b9150614bca82614b89565b602082019050919050565b60006020820190508181036000830152614bee81614bb2565b9050919050565b6000614c0082613b76565b9150614c0b83613b76565b925082821015614c1e57614c1d614032565b5b828203905092915050565b600081905092915050565b50565b6000614c44600083614c29565b9150614c4f82614c34565b600082019050919050565b6000614c6582614c37565b9150819050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000614ccb602683613a63565b9150614cd682614c6f565b604082019050919050565b60006020820190508181036000830152614cfa81614cbe565b9050919050565b6000604082019050614d166000830185613daa565b614d236020830184613bf8565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614d9781613b4a565b92915050565b600060208284031215614db357614db2613b13565b5b6000614dc184828501614d88565b91505092915050565b6000819050919050565b6000614def614dea614de584614dca565b613c4f565b613b76565b9050919050565b614dff81614dd4565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614e3a81613b38565b82525050565b6000614e4c8383614e31565b60208301905092915050565b6000602082019050919050565b6000614e7082614e05565b614e7a8185614e10565b9350614e8583614e21565b8060005b83811015614eb6578151614e9d8882614e40565b9750614ea883614e58565b925050600181019050614e89565b5085935050505092915050565b600060a082019050614ed86000830188613cc9565b614ee56020830187614df6565b8181036040830152614ef78186614e65565b9050614f066060830185613daa565b614f136080830184613cc9565b9695505050505050565b600060c082019050614f326000830189613daa565b614f3f6020830188613cc9565b614f4c6040830187614df6565b614f596060830186614df6565b614f666080830185613daa565b614f7360a0830184613cc9565b979650505050505050565b600081519050614f8d81613b80565b92915050565b600080600060608486031215614fac57614fab613b13565b5b6000614fba86828701614f7e565b9350506020614fcb86828701614f7e565b9250506040614fdc86828701614f7e565b915050925092509256fea2646970667358221220cdd81dab090d70d5f1e00740d9454b03c3fdfd856062291c988ac50f7ecd96f564736f6c634300080c0033
Verified Source Code Full Match
Compiler: v0.8.12+commit.f00d7308
EVM: london
Optimization: No
syloai.sol 568 lines
// SPDX-License-Identifier: MIT
// Sylo AI
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 SYLOAI 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
);
constructor() ERC20("Sylo AI", "SYLOAI") {
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 * 10 / 1000;
maxSellAmount = totalSupply * 10 / 1000;
maxWalletAmount = totalSupply * 10 / 1000;
swapTokensAtAmount = totalSupply * 15 / 100000;
buyTreasuryFee = 10;
buyLiquidityFee = 0;
buyRewardsFee = 0;
buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyRewardsFee;
sellTreasuryFee = 10;
sellLiquidityFee = 0;
sellRewardsFee = 0;
sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellRewardsFee;
_excludeFromMaxTransaction(newOwner, true);
_excludeFromMaxTransaction(address(this), true);
_excludeFromMaxTransaction(address(0xdead), true);
TreasuryAddress = address(0x3FE2831C6047914c4CdBB57CC8b6b2bfb1565944);
EcosystemAddress = address(0x45a6770320FBC276A338FE07411Fc8237Eb4440e);
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 updateBuyFees(uint256 _treasuryFee, uint256 _liquidityFee, uint256 _rewardsFee) external onlyOwner {
buyTreasuryFee = _treasuryFee;
buyLiquidityFee = _liquidityFee;
buyRewardsFee = _rewardsFee;
buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyRewardsFee;
require(buyTotalFees <= 20, "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 <= 20, "Fees must be 30% or less");
}
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 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;
}
}
function setEcosystemAddress(address _EcosystemAddress) external onlyOwner {
require(_EcosystemAddress != address(0), "_EcosystemAddress address cannot be 0");
EcosystemAddress = payable(_EcosystemAddress);
emit UpdatedEcosystemAddress(_EcosystemAddress);
}
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}("");
}
}
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 18 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
setEcosystemAddress 0xa8e01b28
address _EcosystemAddress
transfer 0xa9059cbb
address recipient
uint256 amount
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
Recent Transactions
No transactions found for this address