Address Contract Partially Verified
Address
0x454bFf91E0543bD6e9f85AA8D0b40B9C65a2ff0F
Balance
0 ETH
Nonce
1
Code Size
21448 bytes
Creator
0x09Cc746f...A5a7 at tx 0x80063f15...aea92b
Indexed Transactions
0
Contract Bytecode
21448 bytes
0x60806040526004361061021e5760003560e01c80637688c58411610123578063c0246668116100ab578063e884f2601161006f578063e884f260146107dd578063f1d5f517146107f4578063f242ab411461081d578063f2fde38b14610848578063fd1bc2ca1461087157610225565b8063c02466681461070a578063c9567bf914610733578063d08893581461074a578063dd62ed3e14610773578063dd9cdaed146107b057610225565b80639a7a23d6116100f25780639a7a23d614610611578063a457c2d71461063a578063a9059cbb14610677578063ae7ed567146106b4578063bfd201f5146106e157610225565b80637688c584146105595780638da5cb5b1461058f5780639374ae82146105ba57806395d89b41146105e657610225565b806339509351116101a65780635c85974f116101755780635c85974f1461048a5780635d098b38146104b357806370a08231146104dc578063715018a6146105195780637571336a1461053057610225565b806339509351146103df5780633b0aacbc1461041c5780633ff5ad781461044557806356cd40e71461047357610225565b806318160ddd116101ed57806318160ddd146102e45780631cffccf41461030f5780631f53ac021461034e57806323b872dd14610377578063313ce567146103b457610225565b806306fdde031461022a578063095ea7b3146102555780630d075d9c146102925780630f683e90146102bb57610225565b3661022557005b600080fd5b34801561023657600080fd5b5061023f61089c565b60405161024c9190613ccf565b60405180910390f35b34801561026157600080fd5b5061027c60048036038101906102779190613d8a565b61092e565b6040516102899190613de5565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190613e00565b61094c565b005b3480156102c757600080fd5b506102e260048036038101906102dd9190613e00565b610a90565b005b3480156102f057600080fd5b506102f9610bd4565b6040516103069190613e62565b60405180910390f35b34801561031b57600080fd5b5061033660048036038101906103319190613e7d565b610bde565b60405161034593929190613eaa565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613e7d565b610cd7565b005b34801561038357600080fd5b5061039e60048036038101906103999190613ee1565b610e13565b6040516103ab9190613de5565b60405180910390f35b3480156103c057600080fd5b506103c9610f0b565b6040516103d69190613f50565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613d8a565b610f14565b6040516104139190613de5565b60405180910390f35b34801561042857600080fd5b50610443600480360381019061043e9190613e7d565b610fc0565b005b34801561045157600080fd5b5061045a6110fc565b60405161046a9493929190613f6b565b60405180910390f35b34801561047f57600080fd5b50610488611136565b005b34801561049657600080fd5b506104b160048036038101906104ac9190613fb0565b6111fc565b005b3480156104bf57600080fd5b506104da60048036038101906104d59190613e7d565b61131e565b005b3480156104e857600080fd5b5061050360048036038101906104fe9190613e7d565b61145a565b6040516105109190613e62565b60405180910390f35b34801561052557600080fd5b5061052e6114a2565b005b34801561053c57600080fd5b5061055760048036038101906105529190614009565b61152a565b005b34801561056557600080fd5b5061056e61164f565b6040516105869c9b9a99989796959493929190614049565b60405180910390f35b34801561059b57600080fd5b506105a46116ab565b6040516105b19190614112565b60405180910390f35b3480156105c657600080fd5b506105cf6116d5565b6040516105dd92919061412d565b60405180910390f35b3480156105f257600080fd5b506105fb6116f3565b6040516106089190613ccf565b60405180910390f35b34801561061d57600080fd5b5061063860048036038101906106339190614009565b611785565b005b34801561064657600080fd5b50610661600480360381019061065c9190613d8a565b61189d565b60405161066e9190613de5565b60405180910390f35b34801561068357600080fd5b5061069e60048036038101906106999190613d8a565b611988565b6040516106ab9190613de5565b60405180910390f35b3480156106c057600080fd5b506106c96119a6565b6040516106d893929190614156565b60405180910390f35b3480156106ed57600080fd5b5061070860048036038101906107039190613e00565b6119cc565b005b34801561071657600080fd5b50610731600480360381019061072c9190614009565b611b10565b005b34801561073f57600080fd5b50610748611c35565b005b34801561075657600080fd5b50610771600480360381019061076c919061418d565b611d16565b005b34801561077f57600080fd5b5061079a600480360381019061079591906141e0565b611ebf565b6040516107a79190613e62565b60405180910390f35b3480156107bc57600080fd5b506107c5611f46565b6040516107d493929190614220565b60405180910390f35b3480156107e957600080fd5b506107f2611fbf565b005b34801561080057600080fd5b5061081b60048036038101906108169190613fb0565b612085565b005b34801561082957600080fd5b506108326121a7565b60405161083f9190614112565b60405180910390f35b34801561085457600080fd5b5061086f600480360381019061086a9190613e7d565b6121cb565b005b34801561087d57600080fd5b506108866122c2565b6040516108939190613de5565b60405180910390f35b6060600380546108ab90614286565b80601f01602080910402602001604051908101604052809291908181526020018280546108d790614286565b80156109245780601f106108f957610100808354040283529160200191610924565b820191906000526020600020905b81548152906001019060200180831161090757829003601f168201915b5050505050905090565b600061094261093b6122d5565b84846122dd565b6001905092915050565b6109546122d5565b73ffffffffffffffffffffffffffffffffffffffff166109726116ab565b73ffffffffffffffffffffffffffffffffffffffff16146109c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bf90614303565b60405180910390fd5b8260138190555081601481905550806015819055506015546014546013546109f09190614352565b6109fa9190614352565b60128190555060286012541115610a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3d906143f8565b60405180910390fd5b7f3d839c4d8187eded7cfbdfb38e8c68ae748d7c674400c8c3b8c837ba2933d1ac601254601354601454601554604051610a839493929190614418565b60405180910390a1505050565b610a986122d5565b73ffffffffffffffffffffffffffffffffffffffff16610ab66116ab565b73ffffffffffffffffffffffffffffffffffffffff1614610b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0390614303565b60405180910390fd5b826017819055508160188190555080601981905550601954601854601754610b349190614352565b610b3e9190614352565b60168190555060286016541115610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b81906144cf565b60405180910390fd5b7f5453929bc359b94bdd2542a6d8391ca15fe386d74f044db5277328a36de3c650601654601754601854601954604051610bc79493929190614418565b60405180910390a1505050565b6000600254905090565b6000806000602160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169250602260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169150602360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690509193909250565b610cdf6122d5565b73ffffffffffffffffffffffffffffffffffffffff16610cfd6116ab565b73ffffffffffffffffffffffffffffffffffffffff1614610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a90614303565b60405180910390fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167fc246820312f1be47e3958d661d0c150c01b96d1fe3df1e38edd76693ffa8122b60405160405180910390a380601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610e208484846124a6565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610e6b6122d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290614561565b60405180910390fd5b610eff85610ef76122d5565b8584036122dd565b60019150509392505050565b60006012905090565b6000610fb6610f216122d5565b848460016000610f2f6122d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fb19190614352565b6122dd565b6001905092915050565b610fc86122d5565b73ffffffffffffffffffffffffffffffffffffffff16610fe66116ab565b73ffffffffffffffffffffffffffffffffffffffff161461103c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103390614303565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f1c3fdcf16dce794746858765f6acfdac41e7355deba3a0d04cef33a3710ca47c60405160405180910390a380600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080600080600960009054906101000a900460ff169350600960019054906101000a900460ff169250600a549150600b54905090919293565b61113e6122d5565b73ffffffffffffffffffffffffffffffffffffffff1661115c6116ab565b73ffffffffffffffffffffffffffffffffffffffff16146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a990614303565b60405180910390fd5b6000600960006101000a81548160ff021916908315150217905550427ff4eaa75eae08ae80c3daf791438dac1cff2cfd3b0bad2304ec7bbb067e50261660405160405180910390a2565b6112046122d5565b73ffffffffffffffffffffffffffffffffffffffff166112226116ab565b73ffffffffffffffffffffffffffffffffffffffff1614611278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126f90614303565b60405180910390fd5b60018110156112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b3906145cd565b60405180910390fd5b6103e86112c7610bd4565b826112d291906145ed565b6112dc919061465e565b600b819055507fff3dd5e80294197918c284bbfc3dadd97d0b40ce92106110946329088f80068a600b546040516113139190613e62565b60405180910390a150565b6113266122d5565b73ffffffffffffffffffffffffffffffffffffffff166113446116ab565b73ffffffffffffffffffffffffffffffffffffffff161461139a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139190614303565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f6561b9230f88b321fdeb59c7270bbc86bff9cc287436017533bb79146b13fa5a60405160405180910390a380601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6114aa6122d5565b73ffffffffffffffffffffffffffffffffffffffff166114c86116ab565b73ffffffffffffffffffffffffffffffffffffffff161461151e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151590614303565b60405180910390fd5b6115286000613211565b565b6115326122d5565b73ffffffffffffffffffffffffffffffffffffffff166115506116ab565b73ffffffffffffffffffffffffffffffffffffffff16146115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d90614303565b60405180910390fd5b80602260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4b89c347592b1d537e066cb4ed98d87696ae35164745d7e370e4add16941dc92826040516116439190613de5565b60405180910390a25050565b6000806000806000806000806000806000806012549b506013549a50601454995060155498506016549750601754965060185495506019549450601a549350601b549250601c549150601d549050909192939495969798999a9b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600d60019054906101000a900460ff169150600e5490509091565b60606004805461170290614286565b80601f016020809104026020016040519081016040528092919081815260200182805461172e90614286565b801561177b5780601f106117505761010080835404028352916020019161177b565b820191906000526020600020905b81548152906001019060200180831161175e57829003601f168201915b5050505050905090565b61178d6122d5565b73ffffffffffffffffffffffffffffffffffffffff166117ab6116ab565b73ffffffffffffffffffffffffffffffffffffffff1614611801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f890614303565b60405180910390fd5b7f000000000000000000000000405e4aa4acebc77b4333ccca8c6271424791bb7f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361188f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188690614701565b60405180910390fd5b61189982826132d7565b5050565b600080600160006118ac6122d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015611969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196090614793565b60405180910390fd5b61197d6119746122d5565b858584036122dd565b600191505092915050565b600061199c6119956122d5565b84846124a6565b6001905092915050565b6000806000600660159054906101000a900460ff16925060075491506008549050909192565b6119d46122d5565b73ffffffffffffffffffffffffffffffffffffffff166119f26116ab565b73ffffffffffffffffffffffffffffffffffffffff1614611a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3f90614303565b60405180910390fd5b82601b8190555081601c8190555080601d81905550601d54601c54601b54611a709190614352565b611a7a9190614352565b601a819055506006601a541115611ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abd90614825565b60405180910390fd5b7f29ca25f871e92385edcc1db1ce9c82a11549def46dbee1cff41bbed1dcac6ecb601a54601b54601c54601d54604051611b039493929190614418565b60405180910390a1505050565b611b186122d5565b73ffffffffffffffffffffffffffffffffffffffff16611b366116ab565b73ffffffffffffffffffffffffffffffffffffffff1614611b8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8390614303565b60405180910390fd5b80602160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611c299190613de5565b60405180910390a25050565b611c3d6122d5565b73ffffffffffffffffffffffffffffffffffffffff16611c5b6116ab565b73ffffffffffffffffffffffffffffffffffffffff1614611cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca890614303565b60405180910390fd5b6001600d60006101000a81548160ff0219169083151502179055506001600660156101000a81548160ff021916908315150217905550427fb3da2db3dfc3778f99852546c6e9ab39ec253f9de7b0847afec61bd27878e92360405160405180910390a2565b611d1e6122d5565b73ffffffffffffffffffffffffffffffffffffffff16611d3c6116ab565b73ffffffffffffffffffffffffffffffffffffffff1614611d92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8990614303565b60405180910390fd5b6001821015611dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcd906148b7565b60405180910390fd5b81811015611e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1090614949565b60405180910390fd5b82600660156101000a81548160ff0219169083151502179055506103e882611e3f610bd4565b611e4991906145ed565b611e53919061465e565b6007819055506103e881611e65610bd4565b611e6f91906145ed565b611e79919061465e565b6008819055507f52cd2cdb42ff0eeec9362d7ed5b04f64c8d022697128b5378fc51cea7e63c779838383604051611eb293929190614156565b60405180910390a1505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16925092509250909192565b611fc76122d5565b73ffffffffffffffffffffffffffffffffffffffff16611fe56116ab565b73ffffffffffffffffffffffffffffffffffffffff161461203b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203290614303565b60405180910390fd5b6000600960016101000a81548160ff021916908315150217905550427f26e776fcf7ca20aa79b5b946e9b5111f47205539ece9d7a7995271dd6a8b5bad60405160405180910390a2565b61208d6122d5565b73ffffffffffffffffffffffffffffffffffffffff166120ab6116ab565b73ffffffffffffffffffffffffffffffffffffffff1614612101576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f890614303565b60405180910390fd5b6005811015612145576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213c906149db565b60405180910390fd5b6103e8612150610bd4565b8261215b91906145ed565b612165919061465e565b600a819055507f12528a3c61e0f3b2d6fc707a9fc58b1af86e252cad0d7f4c154ebeabb162dace600a5460405161219c9190613e62565b60405180910390a150565b7f000000000000000000000000405e4aa4acebc77b4333ccca8c6271424791bb7f81565b6121d36122d5565b73ffffffffffffffffffffffffffffffffffffffff166121f16116ab565b73ffffffffffffffffffffffffffffffffffffffff1614612247576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223e90614303565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036122b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ad90614a6d565b60405180910390fd5b6122bf81613211565b50565b600d60009054906101000a900460ff1681565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361234c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234390614aff565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036123bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b290614b91565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516124999190613e62565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c90614c23565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257b90614cb5565b60405180910390fd5b6000810361259d5761259883836000613378565b61320c565b600960009054906101000a900460ff1615612c60576125ba6116ab565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561262857506125f86116ab565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126615750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561269b575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126b45750600660149054906101000a900460ff16155b15612c5f57600d60009054906101000a900460ff166127ae57602160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061276e5750602160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6127ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a490614d21565b60405180910390fd5b5b600960019054906101000a900460ff1615612976576127cb6116ab565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415801561285257507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128aa57507f000000000000000000000000405e4aa4acebc77b4333ccca8c6271424791bb7f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156129755743600c60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410612930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292790614dd9565b60405180910390fd5b43600c60003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b5b602360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612a195750602260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612ac057600b54811115612a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5a90614e6b565b60405180910390fd5b600a54612a6f8361145a565b82612a7a9190614352565b1115612abb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab290614ed7565b60405180910390fd5b612c5e565b602360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612b635750602260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612bb257600b54811115612bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba490614f69565b60405180910390fd5b612c5d565b602260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612c5c57600a54612c0f8361145a565b82612c1a9190614352565b1115612c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5290614ed7565b60405180910390fd5b5b5b5b5b5b6000612c6b3061145a565b905060006007548210159050808015612c905750600660159054906101000a900460ff165b8015612ca95750600660149054906101000a900460ff16155b8015612cff5750602360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612d555750602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612dab5750602160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612def576001600660146101000a81548160ff021916908315150217905550612dd36135f7565b6000600660146101000a81548160ff0219169083151502179055505b6000600660149054906101000a900460ff16159050602160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612ea55750602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612eaf57600090505b600081156131fc57602360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612f1257506000601654115b15612fdf57612f3f6064612f31601654886138ba90919063ffffffff16565b6138d090919063ffffffff16565b905060165460185482612f5291906145ed565b612f5c919061465e565b601f6000828254612f6d9190614352565b9250508190555060165460195482612f8591906145ed565b612f8f919061465e565b60206000828254612fa09190614352565b9250508190555060165460175482612fb891906145ed565b612fc2919061465e565b601e6000828254612fd39190614352565b925050819055506131d8565b602360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561303a57506000601254115b15613107576130676064613059601254886138ba90919063ffffffff16565b6138d090919063ffffffff16565b90506012546014548261307a91906145ed565b613084919061465e565b601f60008282546130959190614352565b92505081905550601254601554826130ad91906145ed565b6130b7919061465e565b602060008282546130c89190614352565b92505081905550601254601354826130e091906145ed565b6130ea919061465e565b601e60008282546130fb9190614352565b925050819055506131d7565b6000601a5411156131d65761313a606461312c601a54886138ba90919063ffffffff16565b6138d090919063ffffffff16565b9050601a54601c548261314d91906145ed565b613157919061465e565b601f60008282546131689190614352565b92505081905550601a54601d548261318091906145ed565b61318a919061465e565b6020600082825461319b9190614352565b92505081905550601a54601b54826131b391906145ed565b6131bd919061465e565b601e60008282546131ce9190614352565b925050819055505b5b5b60008111156131ed576131ec873083613378565b5b80856131f99190614f89565b94505b613207878787613378565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80602360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036133e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133de90614c23565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344d90614cb5565b60405180910390fd5b6134618383836138e6565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156134e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134de9061502f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461357a9190614352565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516135de9190613e62565b60405180910390a36135f18484846138eb565b50505050565b60006136023061145a565b90506000602054601e54601f546136199190614352565b6136239190614352565b90506000808303613636575050506138b8565b6008548311156136465760085492505b6000600283601f548661365991906145ed565b613663919061465e565b61366d919061465e565b9050600061368482866138f090919063ffffffff16565b9050600047905061369482613906565b60006136a982476138f090919063ffffffff16565b905060006136d4876136c6601e54856138ba90919063ffffffff16565b6138d090919063ffffffff16565b905060006136ff886136f1602054866138ba90919063ffffffff16565b6138d090919063ffffffff16565b905060008183856137109190614f89565b61371a9190614f89565b90506000601f819055506000601e819055506000602081905550601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161377a90615080565b60006040518083038185875af1925050503d80600081146137b7576040519150601f19603f3d011682016040523d82523d6000602084013e6137bc565b606091505b5050809850506000871180156137d25750600081115b1561381f576137e18782613b43565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618682601f5460405161381693929190615095565b60405180910390a15b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161386590615080565b60006040518083038185875af1925050503d80600081146138a2576040519150601f19603f3d011682016040523d82523d6000602084013e6138a7565b606091505b505080985050505050505050505050505b565b600081836138c891906145ed565b905092915050565b600081836138de919061465e565b905092915050565b505050565b505050565b600081836138fe9190614f89565b905092915050565b6000600267ffffffffffffffff811115613923576139226150cc565b5b6040519080825280602002602001820160405280156139515781602001602082028036833780820191505090505b5090503081600081518110613969576139686150fb565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613a0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a32919061513f565b81600181518110613a4657613a456150fb565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613aab307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846122dd565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401613b0d95949392919061526f565b600060405180830381600087803b158015613b2757600080fd5b505af1158015613b3b573d6000803e3d6000fd5b505050505050565b613b6e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846122dd565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d719823085600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518863ffffffff1660e01b8152600401613bf5969594939291906152c9565b60606040518083038185885af1158015613c13573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613c38919061533f565b5050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c79578082015181840152602081019050613c5e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ca182613c3f565b613cab8185613c4a565b9350613cbb818560208601613c5b565b613cc481613c85565b840191505092915050565b60006020820190508181036000830152613ce98184613c96565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d2182613cf6565b9050919050565b613d3181613d16565b8114613d3c57600080fd5b50565b600081359050613d4e81613d28565b92915050565b6000819050919050565b613d6781613d54565b8114613d7257600080fd5b50565b600081359050613d8481613d5e565b92915050565b60008060408385031215613da157613da0613cf1565b5b6000613daf85828601613d3f565b9250506020613dc085828601613d75565b9150509250929050565b60008115159050919050565b613ddf81613dca565b82525050565b6000602082019050613dfa6000830184613dd6565b92915050565b600080600060608486031215613e1957613e18613cf1565b5b6000613e2786828701613d75565b9350506020613e3886828701613d75565b9250506040613e4986828701613d75565b9150509250925092565b613e5c81613d54565b82525050565b6000602082019050613e776000830184613e53565b92915050565b600060208284031215613e9357613e92613cf1565b5b6000613ea184828501613d3f565b91505092915050565b6000606082019050613ebf6000830186613dd6565b613ecc6020830185613dd6565b613ed96040830184613dd6565b949350505050565b600080600060608486031215613efa57613ef9613cf1565b5b6000613f0886828701613d3f565b9350506020613f1986828701613d3f565b9250506040613f2a86828701613d75565b9150509250925092565b600060ff82169050919050565b613f4a81613f34565b82525050565b6000602082019050613f656000830184613f41565b92915050565b6000608082019050613f806000830187613dd6565b613f8d6020830186613dd6565b613f9a6040830185613e53565b613fa76060830184613e53565b95945050505050565b600060208284031215613fc657613fc5613cf1565b5b6000613fd484828501613d75565b91505092915050565b613fe681613dca565b8114613ff157600080fd5b50565b60008135905061400381613fdd565b92915050565b600080604083850312156140205761401f613cf1565b5b600061402e85828601613d3f565b925050602061403f85828601613ff4565b9150509250929050565b60006101808201905061405f600083018f613e53565b61406c602083018e613e53565b614079604083018d613e53565b614086606083018c613e53565b614093608083018b613e53565b6140a060a083018a613e53565b6140ad60c0830189613e53565b6140ba60e0830188613e53565b6140c8610100830187613e53565b6140d6610120830186613e53565b6140e4610140830185613e53565b6140f2610160830184613e53565b9d9c50505050505050505050505050565b61410c81613d16565b82525050565b60006020820190506141276000830184614103565b92915050565b60006040820190506141426000830185613dd6565b61414f6020830184613e53565b9392505050565b600060608201905061416b6000830186613dd6565b6141786020830185613e53565b6141856040830184613e53565b949350505050565b6000806000606084860312156141a6576141a5613cf1565b5b60006141b486828701613ff4565b93505060206141c586828701613d75565b92505060406141d686828701613d75565b9150509250925092565b600080604083850312156141f7576141f6613cf1565b5b600061420585828601613d3f565b925050602061421685828601613d3f565b9150509250929050565b60006060820190506142356000830186614103565b6142426020830185614103565b61424f6040830184614103565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061429e57607f821691505b6020821081036142b1576142b0614257565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142ed602083613c4a565b91506142f8826142b7565b602082019050919050565b6000602082019050818103600083015261431c816142e0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061435d82613d54565b915061436883613d54565b92508282019050808211156143805761437f614323565b5b92915050565b7f546f74616c20627579206665652063616e6e6f7420626520686967686572207460008201527f68616e2034302500000000000000000000000000000000000000000000000000602082015250565b60006143e2602783613c4a565b91506143ed82614386565b604082019050919050565b60006020820190508181036000830152614411816143d5565b9050919050565b600060808201905061442d6000830187613e53565b61443a6020830186613e53565b6144476040830185613e53565b6144546060830184613e53565b95945050505050565b7f546f74616c2073656c6c206665652063616e6e6f74206265206869676865722060008201527f7468616e20343025000000000000000000000000000000000000000000000000602082015250565b60006144b9602883613c4a565b91506144c48261445d565b604082019050919050565b600060208201905081810360008301526144e8816144ac565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b600061454b602883613c4a565b9150614556826144ef565b604082019050919050565b6000602082019050818103600083015261457a8161453e565b9050919050565b7f43616e6e6f7420736574206d61785478206c6f776572207468616e20302e3125600082015250565b60006145b7602083613c4a565b91506145c282614581565b602082019050919050565b600060208201905081810360008301526145e6816145aa565b9050919050565b60006145f882613d54565b915061460383613d54565b925082820261461181613d54565b9150828204841483151761462857614627614323565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061466982613d54565b915061467483613d54565b9250826146845761468361462f565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006146eb603983613c4a565b91506146f68261468f565b604082019050919050565b6000602082019050818103600083015261471a816146de565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b600061477d602583613c4a565b915061478882614721565b604082019050919050565b600060208201905081810360008301526147ac81614770565b9050919050565b7f546f74616c207472616e73666572206665652063616e6e6f742062652068696760008201527f686572207468616e203625000000000000000000000000000000000000000000602082015250565b600061480f602b83613c4a565b915061481a826147b3565b604082019050919050565b6000602082019050818103600083015261483e81614802565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e312520746f74616c20737570706c792e00000000000000000000000000602082015250565b60006148a1603383613c4a565b91506148ac82614845565b604082019050919050565b600060208201905081810360008301526148d081614894565b9050919050565b7f6d6178696d756d20616d6f756e742063616e742062652068696768657220746860008201527f616e206d696e696d756d00000000000000000000000000000000000000000000602082015250565b6000614933602a83613c4a565b915061493e826148d7565b604082019050919050565b6000602082019050818103600083015261496281614926565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b60006149c5602483613c4a565b91506149d082614969565b604082019050919050565b600060208201905081810360008301526149f4816149b8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a57602683613c4a565b9150614a62826149fb565b604082019050919050565b60006020820190508181036000830152614a8681614a4a565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614ae9602483613c4a565b9150614af482614a8d565b604082019050919050565b60006020820190508181036000830152614b1881614adc565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b7b602283613c4a565b9150614b8682614b1f565b604082019050919050565b60006020820190508181036000830152614baa81614b6e565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614c0d602583613c4a565b9150614c1882614bb1565b604082019050919050565b60006020820190508181036000830152614c3c81614c00565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c9f602383613c4a565b9150614caa82614c43565b604082019050919050565b60006020820190508181036000830152614cce81614c92565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b6000614d0b601683613c4a565b9150614d1682614cd5565b602082019050919050565b60006020820190508181036000830152614d3a81614cfe565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c60008201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b6000614dc3604983613c4a565b9150614dce82614d41565b606082019050919050565b60006020820190508181036000830152614df281614db6565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d617854782e0000000000000000000000000000000000000000000000000000602082015250565b6000614e55602683613c4a565b9150614e6082614df9565b604082019050919050565b60006020820190508181036000830152614e8481614e48565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000614ec1601383613c4a565b9150614ecc82614e8b565b602082019050919050565b60006020820190508181036000830152614ef081614eb4565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d617854782e00000000000000000000000000000000000000000000000000602082015250565b6000614f53602783613c4a565b9150614f5e82614ef7565b604082019050919050565b60006020820190508181036000830152614f8281614f46565b9050919050565b6000614f9482613d54565b9150614f9f83613d54565b9250828203905081811115614fb757614fb6614323565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000615019602683613c4a565b915061502482614fbd565b604082019050919050565b600060208201905081810360008301526150488161500c565b9050919050565b600081905092915050565b50565b600061506a60008361504f565b91506150758261505a565b600082019050919050565b600061508b8261505d565b9150819050919050565b60006060820190506150aa6000830186613e53565b6150b76020830185613e53565b6150c46040830184613e53565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061513981613d28565b92915050565b60006020828403121561515557615154613cf1565b5b60006151638482850161512a565b91505092915050565b6000819050919050565b6000819050919050565b600061519b6151966151918461516c565b615176565b613d54565b9050919050565b6151ab81615180565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6151e681613d16565b82525050565b60006151f883836151dd565b60208301905092915050565b6000602082019050919050565b600061521c826151b1565b61522681856151bc565b9350615231836151cd565b8060005b8381101561526257815161524988826151ec565b975061525483615204565b925050600181019050615235565b5085935050505092915050565b600060a0820190506152846000830188613e53565b61529160208301876151a2565b81810360408301526152a38186615211565b90506152b26060830185614103565b6152bf6080830184613e53565b9695505050505050565b600060c0820190506152de6000830189614103565b6152eb6020830188613e53565b6152f860408301876151a2565b61530560608301866151a2565b6153126080830185614103565b61531f60a0830184613e53565b979650505050505050565b60008151905061533981613d5e565b92915050565b60008060006060848603121561535857615357613cf1565b5b60006153668682870161532a565b93505060206153778682870161532a565b92505060406153888682870161532a565b915050925092509256fea2646970667358221220ac472c5e9767aa93d3ee2b5b590ad23034c69ae5f99cff52dcfbec13a1786e5964736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: No
STAI.sol 1270 lines
// https://t.me/StarlinkAI_portal
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
library SafeMath {
function tryAdd(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
function trySub(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
function tryMul(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
function tryDiv(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
function tryMod(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
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);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
}
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
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_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(
address account
) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(
address owner,
address spender
) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
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");
_beforeTokenTransfer(sender, recipient, amount);
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);
_afterTokenTransfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), 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);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed theDeployer
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
function transferOwnership(address theDeployer) public virtual onlyOwner {
require(
theDeployer != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(theDeployer);
}
/**
* @dev Transfers ownership of the contract to a new account (`theDeployer`).
* Internal function without access restriction.
*/
function _transferOwnership(address theDeployer) internal virtual {
address oldOwner = _owner;
_owner = theDeployer;
emit OwnershipTransferred(oldOwner, theDeployer);
}
}
interface IDexFactory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IDexPair {
function sync() external;
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB, uint256 liquidity);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract STAI is ERC20, Ownable {
using SafeMath for uint256;
IDexRouter private immutable dexRouter;
address public immutable dexPair;
address private theDeployer = 0x09Cc746fBD4B8d85bD4bd2EAb9686E7889abA5a7;
// Swapback
bool private swapping;
bool private swapbackEnabled = false;
uint256 private swapBackValueMin;
uint256 private swapBackValueMax;
//Anti-whale
bool private limitsInEffect = true;
bool private trasnferDelayEnabled = true;
uint256 private maxWallet;
uint256 private maxTx;
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool public tradingOn = false;
// burn
bool private burnEnabled = true;
uint256 private lastSync = 0;
// Fee receivers
address private autoLPReceiver;
address private MarketingReceiver;
address private devReceiver;
uint256 private totalBuyFee;
uint256 private buyMarketingFee;
uint256 private buyLPFee;
uint256 private buyDevelopmentFee;
uint256 private totalSellFee;
uint256 private sellMarketingFee;
uint256 private sellLpFee;
uint256 private sellDevelopmentFee;
uint256 private totalTransferFee;
uint256 private transferMarketingFee;
uint256 private transferLpFee;
uint256 private transferDevelopmentFee;
uint256 private tokensForMarketing;
uint256 private tokensForLiquidity;
uint256 private tokensForDev;
/******************/
// exlcude from fees and max transaction amount
mapping(address => bool) private isFeeExempt;
mapping(address => bool) private isTxLimitExempt;
mapping(address => bool) private automatedMarketMakerPairs;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event ExcludeFromLimits(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
event TradingEnabled(uint256 indexed timestamp);
event LimitsRemoved(uint256 indexed timestamp);
event DisabledTransferDelay(uint256 indexed timestamp);
event SwapbackSettingsUpdated(
bool enabled,
uint256 swapBackValueMin,
uint256 swapBackValueMax
);
event MaxTxUpdated(uint256 maxTx);
event MaxWalletUpdated(uint256 maxWallet);
event MarketingReceiverUpdated(
address indexed newWallet,
address indexed oldWallet
);
event devReceiverUpdated(
address indexed newWallet,
address indexed oldWallet
);
event lpReceiverUpdated(
address indexed newWallet,
address indexed oldWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiquidity
);
event BuyFeeUpdated(
uint256 totalBuyFee,
uint256 buyMarketingFee,
uint256 buyLPFee,
uint256 buyDevelopmentFee
);
event SellFeeUpdated(
uint256 totalSellFee,
uint256 sellMarketingFee,
uint256 sellLpFee,
uint256 sellDevelopmentFee
);
event TransferFeeUpdated(
uint256 totalTransferFee,
uint256 transferMarketingFee,
uint256 transferLpFee,
uint256 transferDevelopmentFee
);
constructor() ERC20("Starlink AI", "STAI") {
IDexRouter _dexRouter = IDexRouter(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
lastSync = block.timestamp;
excludeFromMaxTransaction(address(_dexRouter), true);
dexRouter = _dexRouter;
dexPair = IDexFactory(_dexRouter.factory()).createPair(
address(this),
_dexRouter.WETH()
);
excludeFromMaxTransaction(address(dexPair), true);
_setAutomatedMarketMakerPair(address(dexPair), true);
uint256 _buyMarketingFee = 15;
uint256 _buyLPFee = 0;
uint256 _buyDevelopmentFee = 15;
uint256 _sellMarketingFee = 15;
uint256 _sellLpFee = 0;
uint256 _sellDevelopmentFee = 15;
uint256 _transferMarketingFee = 5;
uint256 _transferLpFee = 0;
uint256 _transferDevelopmentFee = 0;
uint256 totalSupply = 100000000 * 10 ** decimals();
maxTx = (totalSupply * 20) / 1000;
maxWallet = (totalSupply * 20) / 1000;
swapBackValueMin = (totalSupply * 2) / 1000;
swapBackValueMax = (totalSupply * 30) / 1000;
buyMarketingFee = _buyMarketingFee;
buyLPFee = _buyLPFee;
buyDevelopmentFee = _buyDevelopmentFee;
totalBuyFee = buyMarketingFee + buyLPFee + buyDevelopmentFee;
sellMarketingFee = _sellMarketingFee;
sellLpFee = _sellLpFee;
sellDevelopmentFee = _sellDevelopmentFee;
totalSellFee = sellMarketingFee + sellLpFee + sellDevelopmentFee;
transferMarketingFee = _transferMarketingFee;
transferLpFee = _transferLpFee;
transferDevelopmentFee = _transferDevelopmentFee;
totalTransferFee = transferMarketingFee + transferLpFee + transferDevelopmentFee;
MarketingReceiver = address(0x4097dA26a9f8b919CeAf0C39B45eD2C84f54b44f);
devReceiver = address(0x6d5B096966856d992756F530eaDE4dC550A04346);
autoLPReceiver = address(0x6d5B096966856d992756F530eaDE4dC550A04346);
// exclude from paying fees or having max transaction amount
excludeFromFees(theDeployer, true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromMaxTransaction(theDeployer, true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
excludeFromMaxTransaction(autoLPReceiver, true);
transferOwnership(theDeployer);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(theDeployer, totalSupply);
}
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @notice Information about the swapback settings
* @return _swapbackEnabled if swapback is enabled
* @return _swapBackValueMin the minimum amount of tokens in the contract balance to trigger swapback
* @return _swapBackValueMax the maximum amount of tokens in the contract balance to trigger swapback
*/
function swapbackInfo()
external
view
returns (
bool _swapbackEnabled,
uint256 _swapBackValueMin,
uint256 _swapBackValueMax
)
{
_swapbackEnabled = swapbackEnabled;
_swapBackValueMin = swapBackValueMin;
_swapBackValueMax = swapBackValueMax;
}
function antiWhaleInfo()
external
view
returns (
bool _limitsInEffect,
bool _trasnferDelayEnabled,
uint256 _maxWallet,
uint256 _maxTx
)
{
_limitsInEffect = limitsInEffect;
_trasnferDelayEnabled = trasnferDelayEnabled;
_maxWallet = maxWallet;
_maxTx = maxTx;
}
function feeReceivers()
external
view
returns (
address _autoLPReceiver,
address _MarketingReceiver,
address _devReceiver
)
{
return (autoLPReceiver, MarketingReceiver, devReceiver);
}
function feeRates()
external
view
returns (
uint256 _totalBuyFee,
uint256 _buyMarketingFee,
uint256 _buyLPFee,
uint256 _buyDevelopmentFee,
uint256 _totalSellFee,
uint256 _sellMarketingFee,
uint256 _sellLpFee,
uint256 _sellDevelopmentFee,
uint256 _totalTransferFee,
uint256 _transferMarketingFee,
uint256 _transferLpFee,
uint256 _transferDevelopmentFee
)
{
_totalBuyFee = totalBuyFee;
_buyMarketingFee = buyMarketingFee;
_buyLPFee = buyLPFee;
_buyDevelopmentFee = buyDevelopmentFee;
_totalSellFee = totalSellFee;
_sellMarketingFee = sellMarketingFee;
_sellLpFee = sellLpFee;
_sellDevelopmentFee = sellDevelopmentFee;
_totalTransferFee = totalTransferFee;
_transferMarketingFee = transferMarketingFee;
_transferLpFee = transferLpFee;
_transferDevelopmentFee = transferDevelopmentFee;
}
/**
* @notice If the wallet is excluded from fees and max transaction amount and if the wallet is a automated market maker pair
* @param _target The wallet to check
* @return _isFeeExempt If the wallet is excluded from fees
* @return _isTxLimitExempt If the wallet is excluded from max transaction amount
* @return _automatedMarketMakerPairs If the wallet is a automated market maker pair
*/
function checkAddressPermissions(
address _target
)
external
view
returns (
bool _isFeeExempt,
bool _isTxLimitExempt,
bool _automatedMarketMakerPairs
)
{
_isFeeExempt = isFeeExempt[_target];
_isTxLimitExempt = isTxLimitExempt[_target];
_automatedMarketMakerPairs = automatedMarketMakerPairs[_target];
}
/**
* @notice Information related to the burn function
* @return _burnEnabled If burn is enabled
* @return _lastSync The last time burn was called
*/
function burnInfo() external view returns (bool _burnEnabled, uint256 _lastSync) {
_burnEnabled = burnEnabled;
_lastSync = lastSync;
}
receive() external payable {}
/**
* @notice Opens public trading for the token
* @dev onlyOwner.
*/
function openTrading() external onlyOwner {
tradingOn = true;
swapbackEnabled = true;
emit TradingEnabled(block.timestamp);
}
function RemoveLimits() external onlyOwner {
limitsInEffect = false;
emit LimitsRemoved(block.timestamp);
}
function disableTransferDelay() external onlyOwner {
trasnferDelayEnabled = false;
emit DisabledTransferDelay(block.timestamp);
}
function setSwapBackSettings(
bool _enabled,
uint256 _min,
uint256 _max
) external onlyOwner {
require(
_min >= 1,
"Swap amount cannot be lower than 0.1% total supply."
);
require(_max >= _min, "maximum amount cant be higher than minimum");
swapbackEnabled = _enabled;
swapBackValueMin = (totalSupply() * _min) / 1000;
swapBackValueMax = (totalSupply() * _max) / 1000;
emit SwapbackSettingsUpdated(_enabled, _min, _max);
}
/**
* @notice Changes the maximum amount of tokens that can be bought or sold in a single transaction
* @dev onlyOwner.
* Emits an {MaxTxUpdated} event
* @param newNum Base 1000, so 1% = 10
*/
function setTxLimit(uint256 newNum) external onlyOwner {
require(newNum >= 1, "Cannot set maxTx lower than 0.1%");
maxTx = (newNum * totalSupply()) / 1000;
emit MaxTxUpdated(maxTx);
}
/**
* @notice Changes the maximum amount of tokens a wallet can hold
* @dev onlyOwner.
* Emits an {MaxWalletUpdated} event
* @param newNum Base 1000, so 1% = 10
*/
function setWalletLimit(uint256 newNum) external onlyOwner {
require(newNum >= 5, "Cannot set maxWallet lower than 0.5%");
maxWallet = (newNum * totalSupply()) / 1000;
emit MaxWalletUpdated(maxWallet);
}
/**
* @notice Sets if a wallet is excluded from the max wallet and tx limits
* @dev onlyOwner.
* Emits an {ExcludeFromLimits} event
* @param updAds The wallet to update
* @param isEx If the wallet is excluded or not
*/
function excludeFromMaxTransaction(
address updAds,
bool isEx
) public onlyOwner {
isTxLimitExempt[updAds] = isEx;
emit ExcludeFromLimits(updAds, isEx);
}
function setBuyFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _DevelopmentFee
) external onlyOwner {
buyMarketingFee = _marketingFee;
buyLPFee = _liquidityFee;
buyDevelopmentFee = _DevelopmentFee;
totalBuyFee = buyMarketingFee + buyLPFee + buyDevelopmentFee;
require(totalBuyFee <= 40, "Total buy fee cannot be higher than 40%");
emit BuyFeeUpdated(totalBuyFee, buyMarketingFee, buyLPFee, buyDevelopmentFee);
}
function setSellFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _DevelopmentFee
) external onlyOwner {
sellMarketingFee = _marketingFee;
sellLpFee = _liquidityFee;
sellDevelopmentFee = _DevelopmentFee;
totalSellFee = sellMarketingFee + sellLpFee + sellDevelopmentFee;
require(
totalSellFee <= 40,
"Total sell fee cannot be higher than 40%"
);
emit SellFeeUpdated(totalSellFee, sellMarketingFee, sellLpFee, sellDevelopmentFee);
}
function setTransferFees(
uint256 _marketingFee,
uint256 _liquidityFee,
uint256 _DevelopmentFee
) external onlyOwner {
transferMarketingFee = _marketingFee;
transferLpFee = _liquidityFee;
transferDevelopmentFee = _DevelopmentFee;
totalTransferFee = transferMarketingFee + transferLpFee + transferDevelopmentFee;
require(
totalTransferFee <= 6,
"Total transfer fee cannot be higher than 6%"
);
emit TransferFeeUpdated(
totalTransferFee,
transferMarketingFee,
transferLpFee,
transferDevelopmentFee
);
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
isFeeExempt[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(
address pair,
bool value
) public onlyOwner {
require(
pair != dexPair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
/**
* @notice Sets the marketing wallet
* @dev onlyOwner.
* Emits an {MarketingReceiverUpdated} event
* @param newWallet The new marketing wallet
*/
function setMarketingWallet(address newWallet) external onlyOwner {
emit MarketingReceiverUpdated(newWallet, MarketingReceiver);
MarketingReceiver = newWallet;
}
/**
* @notice Sets the LP receiver
* @dev onlyOwner.
* Emits an {lpReceiverUpdated} event
* @param newWallet The new dev wallet
*/
function setLPWallet(address newWallet) external onlyOwner {
emit lpReceiverUpdated(newWallet, autoLPReceiver);
autoLPReceiver = newWallet;
}
/**
* @notice Sets the dev wallet
* @dev onlyOwner.
* Emits an {devReceiverUpdated} event
* @param newWallet The new dev wallet
*/
function setDevWallet(address newWallet) external onlyOwner {
emit devReceiverUpdated(newWallet, devReceiver);
devReceiver = newWallet;
}
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");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (limitsInEffect) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingOn) {
require(
isFeeExempt[from] || isFeeExempt[to],
"Trading is not active."
);
}
// at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.
if (trasnferDelayEnabled) {
if (
to != owner() &&
to != address(dexRouter) &&
to != address(dexPair)
) {
require(
_holderLastTransferTimestamp[tx.origin] <
block.number,
"_transfer:: Transfer Delay enabled. Only one purchase per block allowed."
);
_holderLastTransferTimestamp[tx.origin] = block.number;
}
}
//when buy
if (automatedMarketMakerPairs[from] && !isTxLimitExempt[to]) {
require(
amount <= maxTx,
"Buy transfer amount exceeds the maxTx."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] && !isTxLimitExempt[from]
) {
require(
amount <= maxTx,
"Sell transfer amount exceeds the maxTx."
);
} else if (!isTxLimitExempt[to]) {
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapBackValueMin;
if (
canSwap &&
swapbackEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!isFeeExempt[from] &&
!isFeeExempt[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (isFeeExempt[from] || isFeeExempt[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && totalSellFee > 0) {
fees = amount.mul(totalSellFee).div(100);
tokensForLiquidity += (fees * sellLpFee) / totalSellFee;
tokensForDev += (fees * sellDevelopmentFee) / totalSellFee;
tokensForMarketing += (fees * sellMarketingFee) / totalSellFee;
}
// on buy
else if (automatedMarketMakerPairs[from] && totalBuyFee > 0) {
fees = amount.mul(totalBuyFee).div(100);
tokensForLiquidity += (fees * buyLPFee) / totalBuyFee;
tokensForDev += (fees * buyDevelopmentFee) / totalBuyFee;
tokensForMarketing += (fees * buyMarketingFee) / totalBuyFee;
}
// on transfer
else if (totalTransferFee > 0) {
fees = amount.mul(totalTransferFee).div(100);
tokensForLiquidity += (fees * transferLpFee) / totalTransferFee;
tokensForDev += (fees * transferDevelopmentFee) / totalTransferFee;
tokensForMarketing +=
(fees * transferMarketingFee) /
totalTransferFee;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = dexRouter.WETH();
_approve(address(this), address(dexRouter), tokenAmount);
// make the swap
dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(dexRouter), tokenAmount);
// add the liquidity
dexRouter.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0, // slippage is unavoidable
0, // slippage is unavoidable
autoLPReceiver,
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity +
tokensForMarketing +
tokensForDev;
bool success;
if (contractBalance == 0) {
return;
}
if (contractBalance > swapBackValueMax) {
contractBalance = swapBackValueMax;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
totalTokensToSwap /
2;
uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(
totalTokensToSwap
);
uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev;
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForDev = 0;
(success, ) = address(devReceiver).call{value: ethForDev}("");
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(
amountToSwapForETH,
ethForLiquidity,
tokensForLiquidity
);
}
(success, ) = address(MarketingReceiver).call{value: address(this).balance}(
""
);
}
}
Read Contract
allowance 0xdd62ed3e → uint256
antiWhaleInfo 0x3ff5ad78 → bool, bool, uint256, uint256
balanceOf 0x70a08231 → uint256
burnInfo 0x9374ae82 → bool, uint256
checkAddressPermissions 0x1cffccf4 → bool, bool, bool
decimals 0x313ce567 → uint8
dexPair 0xf242ab41 → address
feeRates 0x7688c584 → uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256
feeReceivers 0xdd9cdaed → address, address, address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapbackInfo 0xae7ed567 → bool, uint256, uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOn 0xfd1bc2ca → bool
Write Contract 22 functions
These functions modify contract state and require a wallet transaction to execute.
RemoveLimits 0x56cd40e7
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
openTrading 0xc9567bf9
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setBuyFees 0x0d075d9c
uint256 _marketingFee
uint256 _liquidityFee
uint256 _DevelopmentFee
setDevWallet 0x1f53ac02
address newWallet
setLPWallet 0x3b0aacbc
address newWallet
setMarketingWallet 0x5d098b38
address newWallet
setSellFees 0x0f683e90
uint256 _marketingFee
uint256 _liquidityFee
uint256 _DevelopmentFee
setSwapBackSettings 0xd0889358
bool _enabled
uint256 _min
uint256 _max
setTransferFees 0xbfd201f5
uint256 _marketingFee
uint256 _liquidityFee
uint256 _DevelopmentFee
setTxLimit 0x5c85974f
uint256 newNum
setWalletLimit 0xf1d5f517
uint256 newNum
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address theDeployer
Recent Transactions
No transactions found for this address