Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x338B2dF632004c108b37A08B235D368a251Cc452
Balance 0 ETH
Nonce 1
Code Size 21442 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

21442 bytes
0x6080604052600436106102e7575f3560e01c8063751039fc1161018f578063c0246668116100db578063dd62ed3e11610094578063f11a24d31161006e578063f11a24d314610b34578063f2fde38b14610b5e578063f637434214610b86578063f8b45b0514610bb0576102ee565b8063dd62ed3e14610aa4578063e52fb9ec14610ae0578063e884f26014610b0a576102ee565b8063c02466681461099a578063c876d0b9146109c2578063cc2ffe7c146109ec578063cfd1940e14610a16578063d422818c14610a52578063d85ba06314610a7a576102ee565b80639a7a23d611610148578063a0d82dc511610122578063a0d82dc5146108bc578063a457c2d7146108e6578063a9059cbb14610922578063b62496f51461095e576102ee565b80639a7a23d6146108405780639c3b4fdc146108685780639fccce3214610892576102ee565b8063751039fc1461075c5780637571336a146107865780637ebb640a146107ae5780638da5cb5b146107d6578063957aa58c1461080057806395d89b4114610816576102ee565b8063313ce5671161024e5780635c068a8c116102075780636ddd1713116101e15780636ddd1713146106b657806370a08231146106e0578063715018a61461071c5780637437681e14610732576102ee565b80635c068a8c146106385780636a486a8e146106625780636b2fb1241461068c576102ee565b8063313ce5671461051c5780633950935114610546578063404e51291461058257806349bd5a5e146105aa5780634fbee193146105d457806358c84e7014610610576102ee565b8063184f5c6a116102a0578063184f5c6a146104125780631864217b1461043a5780631a8145bb146104645780631cce34ee1461048e57806322b55037146104b857806323b872dd146104e0576102ee565b806306fdde03146102f2578063095ea7b31461031c57806310d5de531461035857806311704f52146103945780631694505e146103be57806318160ddd146103e8576102ee565b366102ee57005b5f80fd5b3480156102fd575f80fd5b50610306610bda565b6040516103139190613f0b565b60405180910390f35b348015610327575f80fd5b50610342600480360381019061033d9190613fbc565b610c6a565b60405161034f9190614014565b60405180910390f35b348015610363575f80fd5b5061037e6004803603810190610379919061402d565b610c87565b60405161038b9190614014565b60405180910390f35b34801561039f575f80fd5b506103a8610ca4565b6040516103b59190614014565b60405180910390f35b3480156103c9575f80fd5b506103d2610cb7565b6040516103df91906140b3565b60405180910390f35b3480156103f3575f80fd5b506103fc610cdb565b60405161040991906140db565b60405180910390f35b34801561041d575f80fd5b506104386004803603810190610433919061411e565b610ce4565b005b348015610445575f80fd5b5061044e610d97565b60405161045b9190614014565b60405180910390f35b34801561046f575f80fd5b50610478610daa565b60405161048591906140db565b60405180910390f35b348015610499575f80fd5b506104a2610db0565b6040516104af9190614014565b60405180910390f35b3480156104c3575f80fd5b506104de60048036038101906104d99190614149565b610dc2565b005b3480156104eb575f80fd5b5061050660048036038101906105019190614187565b610fd4565b6040516105139190614014565b60405180910390f35b348015610527575f80fd5b506105306110a8565b60405161053d91906141f2565b60405180910390f35b348015610551575f80fd5b5061056c60048036038101906105679190613fbc565b6110b0565b6040516105799190614014565b60405180910390f35b34801561058d575f80fd5b506105a860048036038101906105a3919061420b565b61115e565b005b3480156105b5575f80fd5b506105be61124c565b6040516105cb9190614258565b60405180910390f35b3480156105df575f80fd5b506105fa60048036038101906105f5919061402d565b611270565b6040516106079190614014565b60405180910390f35b34801561061b575f80fd5b5061063660048036038101906106319190614271565b6112c2565b005b348015610643575f80fd5b5061064c6114b0565b60405161065991906140db565b60405180910390f35b34801561066d575f80fd5b506106766114b6565b60405161068391906140db565b60405180910390f35b348015610697575f80fd5b506106a06114bc565b6040516106ad91906140db565b60405180910390f35b3480156106c1575f80fd5b506106ca6114c2565b6040516106d79190614014565b60405180910390f35b3480156106eb575f80fd5b506107066004803603810190610701919061402d565b6114d5565b60405161071391906140db565b60405180910390f35b348015610727575f80fd5b5061073061151a565b005b34801561073d575f80fd5b5061074661166d565b60405161075391906140db565b60405180910390f35b348015610767575f80fd5b50610770611673565b60405161077d9190614014565b60405180910390f35b348015610791575f80fd5b506107ac60048036038101906107a7919061420b565b61172a565b005b3480156107b9575f80fd5b506107d460048036038101906107cf91906142fa565b611818565b005b3480156107e1575f80fd5b506107ea6119d2565b6040516107f79190614258565b60405180910390f35b34801561080b575f80fd5b506108146119fa565b005b348015610821575f80fd5b5061082a611acf565b6040516108379190613f0b565b60405180910390f35b34801561084b575f80fd5b506108666004803603810190610861919061420b565b611b5f565b005b348015610873575f80fd5b5061087c611c91565b60405161088991906140db565b60405180910390f35b34801561089d575f80fd5b506108a6611c97565b6040516108b391906140db565b60405180910390f35b3480156108c7575f80fd5b506108d0611c9d565b6040516108dd91906140db565b60405180910390f35b3480156108f1575f80fd5b5061090c60048036038101906109079190613fbc565b611ca3565b6040516109199190614014565b60405180910390f35b34801561092d575f80fd5b5061094860048036038101906109439190613fbc565b611d6b565b6040516109559190614014565b60405180910390f35b348015610969575f80fd5b50610984600480360381019061097f919061402d565b611d88565b6040516109919190614014565b60405180910390f35b3480156109a5575f80fd5b506109c060048036038101906109bb919061420b565b611da4565b005b3480156109cd575f80fd5b506109d6611ee0565b6040516109e39190614014565b60405180910390f35b3480156109f7575f80fd5b50610a00611ef2565b604051610a0d91906140db565b60405180910390f35b348015610a21575f80fd5b50610a3c6004803603810190610a379190614338565b611ef8565b604051610a499190614014565b60405180910390f35b348015610a5d575f80fd5b50610a786004803603810190610a73919061411e565b612066565b005b348015610a85575f80fd5b50610a8e612119565b604051610a9b91906140db565b60405180910390f35b348015610aaf575f80fd5b50610aca6004803603810190610ac59190614149565b61211f565b604051610ad791906140db565b60405180910390f35b348015610aeb575f80fd5b50610af46121a1565b604051610b0191906140db565b60405180910390f35b348015610b15575f80fd5b50610b1e6121a7565b604051610b2b9190614014565b60405180910390f35b348015610b3f575f80fd5b50610b4861225e565b604051610b5591906140db565b60405180910390f35b348015610b69575f80fd5b50610b846004803603810190610b7f919061402d565b612264565b005b348015610b91575f80fd5b50610b9a612426565b604051610ba791906140db565b60405180910390f35b348015610bbb575f80fd5b50610bc461242c565b604051610bd191906140db565b60405180910390f35b606060038054610be990614390565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1590614390565b8015610c605780601f10610c3757610100808354040283529160200191610c60565b820191905f5260205f20905b815481529060010190602001808311610c4357829003601f168201915b5050505050905090565b5f610c7d610c76612432565b8484612439565b6001905092915050565b601f602052805f5260405f205f915054906101000a900460ff1681565b600d60019054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b610cec612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610d7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d719061440a565b60405180910390fd5b80600d60036101000a81548160ff02191690831515021790555050565b600d60039054906101000a900460ff1681565b601b5481565b600d5f9054906101000a900460ff1681565b610dca612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4f9061440a565b60405180910390fd5b600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f02f8a1483978974a6412ba3a67040b4daa4fc0dfe9439a7295f9a9538394f63560405160405180910390a381600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f90b8024c4923d3873ff5b9fcb43d0360d4b9217fa41225d07ba379993552e74360405160405180910390a38060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b5f610fe08484846125fc565b61109d84610fec612432565b611098856040518060600160405280602881526020016153406028913960015f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f61104f612432565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546133279092919063ffffffff16565b612439565b600190509392505050565b5f6012905090565b5f6111546110bc612432565b8461114f8560015f6110cc612432565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461338990919063ffffffff16565b612439565b6001905092915050565b611166612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111eb9061440a565b60405180910390fd5b8060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b7f0000000000000000000000002e7e62ddab9d72c4248a14bcbe0b3b236b2932d181565b5f601e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b6112ca612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134f9061440a565b60405180910390fd5b601554861115801561136c57506014548511155b801561137a57506013548411155b801561138857506019548311155b801561139657506018548211155b80156113a457506017548111155b6113e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113da90614498565b60405180910390fd5b85601581905550846014819055508360138190555060135460145460155461140b91906144e3565b61141591906144e3565b60128190555082601981905550816018819055508060178190555060175460185460195461144391906144e3565b61144d91906144e3565b601681905550601e601254111580156114695750601e60165411155b6114a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149f90614560565b60405180910390fd5b505050505050565b60135481565b60165481565b60175481565b600d60029054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611522612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146115b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a79061440a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600a5481565b5f61167c612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461170a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117019061440a565b60405180910390fd5b5f600d5f6101000a81548160ff0219169083151502179055506001905090565b611732612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b79061440a565b60405180910390fd5b80601f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b611820612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a59061440a565b60405180910390fd5b670de0b6b3a76400006103e860016118c4610cdb565b6118ce919061457e565b6118d891906145ec565b6118e291906145ec565b821015611924576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191b9061468c565b60405180910390fd5b670de0b6b3a76400006103e8600561193a610cdb565b611944919061457e565b61194e91906145ec565b61195891906145ec565b81101561199a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119919061471a565b60405180910390fd5b670de0b6b3a7640000826119ae919061457e565b600a81905550670de0b6b3a7640000816119c8919061457e565b600c819055505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611a02612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a879061440a565b60405180910390fd5b6001600d60016101000a81548160ff0219169083151502179055506001600d60026101000a81548160ff02191690831515021790555043601d81905550565b606060048054611ade90614390565b80601f0160208091040260200160405190810160405280929190818152602001828054611b0a90614390565b8015611b555780601f10611b2c57610100808354040283529160200191611b55565b820191905f5260205f20905b815481529060010190602001808311611b3857829003601f168201915b5050505050905090565b611b67612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bec9061440a565b60405180910390fd5b7f0000000000000000000000002e7e62ddab9d72c4248a14bcbe0b3b236b2932d173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7a906147a8565b60405180910390fd5b611c8d82826133e6565b5050565b60155481565b601c5481565b60195481565b5f611d61611caf612432565b84611d5c856040518060600160405280602581526020016153686025913960015f611cd8612432565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546133279092919063ffffffff16565b612439565b6001905092915050565b5f611d7e611d77612432565b84846125fc565b6001905092915050565b60208052805f5260405f205f915054906101000a900460ff1681565b611dac612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e319061440a565b60405180910390fd5b80601e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611ed49190614014565b60405180910390a25050565b60115f9054906101000a900460ff1681565b601a5481565b5f611f01612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f869061440a565b60405180910390fd5b620186a06001611f9d610cdb565b611fa7919061457e565b611fb191906145ec565b821015611ff3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fea90614836565b60405180910390fd5b6103e86005612000610cdb565b61200a919061457e565b61201491906145ec565b821115612056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161204d906148c4565b60405180910390fd5b81600b8190555060019050919050565b61206e612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f39061440a565b60405180910390fd5b80600d60026101000a81548160ff02191690831515021790555050565b60125481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600b5481565b5f6121b0612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461223e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122359061440a565b60405180910390fd5b5f60115f6101000a81548160ff0219169083151502179055506001905090565b60145481565b61226c612432565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146122fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f19061440a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235f90614952565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60185481565b600c5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249e906149e0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c90614a6e565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516125ef91906140db565b60405180910390a3505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361266a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266190614afc565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126cf90614b8a565b60405180910390fd5b60105f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015612776575060105f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b6127b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ac90614c18565b60405180910390fd5b5f81036127cc576127c783835f613484565b613322565b600d5f9054906101000a900460ff1615612e72576127e86119d2565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561285657506128266119d2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561288e57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128c8575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156128e0575060085f9054906101000a900460ff16155b15612e7157600d60019054906101000a900460ff166129d457601e5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806129945750601e5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6129d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ca90614c80565b60405180910390fd5b5b60115f9054906101000a900460ff1615612b97576129f06119d2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612a7757507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612acf57507f0000000000000000000000002e7e62ddab9d72c4248a14bcbe0b3b236b2932d173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15612b965743600e5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410612b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4a90614d34565b60405180910390fd5b43600e5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612c345750601f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612cdb57600a54811115612c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7590614dc2565b60405180910390fd5b600c54612c8a836114d5565b82612c9591906144e3565b1115612cd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ccd90614e2a565b60405180910390fd5b612e70565b60205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015612d785750601f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612dc757600a54811115612dc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db990614eb8565b60405180910390fd5b612e6f565b601f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16612e6e57600c54612e21836114d5565b82612e2c91906144e3565b1115612e6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6490614e2a565b60405180910390fd5b5b5b5b5b5b5f612e7c306114d5565b90505f600b548210159050808015612ea05750600d60029054906101000a900460ff165b8015612eb8575060085f9054906101000a900460ff16155b8015612f0b575060205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612f5e5750601e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612fb15750601e5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612ff257600160085f6101000a81548160ff021916908315150217905550612fd861370d565b5f60085f6101000a81548160ff0219169083151502179055505b5f60085f9054906101000a900460ff16159050601e5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806130a05750601e5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b156130a9575f90505b5f81156133125760205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561310757505f601654115b156131d157613134606461312660165488613a0890919063ffffffff16565b613a7f90919063ffffffff16565b905060165460185482613147919061457e565b61315191906145ec565b601b5f82825461316191906144e3565b9250508190555060165460195482613179919061457e565b61318391906145ec565b601c5f82825461319391906144e3565b92505081905550601654601754826131ab919061457e565b6131b591906145ec565b601a5f8282546131c591906144e3565b925050819055506132ef565b60205f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561322857505f601254115b156132ee57613255606461324760125488613a0890919063ffffffff16565b613a7f90919063ffffffff16565b905060125460145482613268919061457e565b61327291906145ec565b601b5f82825461328291906144e3565b925050819055506012546015548261329a919061457e565b6132a491906145ec565b601c5f8282546132b491906144e3565b92505081905550601254601354826132cc919061457e565b6132d691906145ec565b601a5f8282546132e691906144e3565b925050819055505b5b5f81111561330357613302873083613484565b5b808561330f9190614ed6565b94505b61331d878787613484565b505050505b505050565b5f83831115829061336e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133659190613f0b565b60405180910390fd5b505f838561337c9190614ed6565b9050809150509392505050565b5f80828461339791906144e3565b9050838110156133dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d390614f53565b60405180910390fd5b8091505092915050565b8060205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036134f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e990614afc565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613560576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161355790614b8a565b60405180910390fd5b61356b838383613ac8565b6135d48160405180606001604052806026815260200161531a602691395f808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546133279092919063ffffffff16565b5f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550613663815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461338990919063ffffffff16565b5f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161370091906140db565b60405180910390a3505050565b5f613717306114d5565b90505f601c54601a54601b5461372d91906144e3565b61373791906144e3565b90505f8083148061374757505f82145b1561375457505050613a06565b5f1515600d60039054906101000a900460ff1615150361379b576014600b5461377d919061457e565b831115613796576014600b54613793919061457e565b92505b6137a7565b6137a4306114d5565b92505b5f600283601b54866137b9919061457e565b6137c391906145ec565b6137cd91906145ec565b90505f6137e38286613acd90919063ffffffff16565b90505f4790506137f282613b16565b5f6138068247613acd90919063ffffffff16565b90505f61383087613822601a5485613a0890919063ffffffff16565b613a7f90919063ffffffff16565b90505f61385a8861384c601c5486613a0890919063ffffffff16565b613a7f90919063ffffffff16565b90505f81838561386a9190614ed6565b6138749190614ed6565b90505f601b819055505f601a819055505f601c8190555060095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516138d090614f9e565b5f6040518083038185875af1925050503d805f811461390a576040519150601f19603f3d011682016040523d82523d5f602084013e61390f565b606091505b5050809850505f8711801561392357505f81115b15613970576139328782613d49565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618682601b5460405161396793929190614fb2565b60405180910390a15b600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516139b690614f9e565b5f6040518083038185875af1925050503d805f81146139f0576040519150601f19603f3d011682016040523d82523d5f602084013e6139f5565b606091505b505080985050505050505050505050505b565b5f808303613a18575f9050613a79565b5f8284613a25919061457e565b9050828482613a3491906145ec565b14613a74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a6b90615057565b60405180910390fd5b809150505b92915050565b5f613ac083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e20565b905092915050565b505050565b5f613b0e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613327565b905092915050565b5f600267ffffffffffffffff811115613b3257613b31615075565b5b604051908082528060200260200182016040528015613b605781602001602082028036833780820191505090505b50905030815f81518110613b7757613b766150a2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015613c1a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c3e91906150e3565b81600181518110613c5257613c516150a2565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613cb7307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612439565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401613d189594939291906151fe565b5f604051808303815f87803b158015613d2f575f80fd5b505af1158015613d41573d5f803e3d5ffd5b505050505050565b613d74307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84612439565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f8030426040518863ffffffff1660e01b8152600401613dd896959493929190615256565b60606040518083038185885af1158015613df4573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190613e1991906152c9565b5050505050565b5f8083118290613e66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e5d9190613f0b565b60405180910390fd5b505f8385613e7491906145ec565b9050809150509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015613eb8578082015181840152602081019050613e9d565b5f8484015250505050565b5f601f19601f8301169050919050565b5f613edd82613e81565b613ee78185613e8b565b9350613ef7818560208601613e9b565b613f0081613ec3565b840191505092915050565b5f6020820190508181035f830152613f238184613ed3565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613f5882613f2f565b9050919050565b613f6881613f4e565b8114613f72575f80fd5b50565b5f81359050613f8381613f5f565b92915050565b5f819050919050565b613f9b81613f89565b8114613fa5575f80fd5b50565b5f81359050613fb681613f92565b92915050565b5f8060408385031215613fd257613fd1613f2b565b5b5f613fdf85828601613f75565b9250506020613ff085828601613fa8565b9150509250929050565b5f8115159050919050565b61400e81613ffa565b82525050565b5f6020820190506140275f830184614005565b92915050565b5f6020828403121561404257614041613f2b565b5b5f61404f84828501613f75565b91505092915050565b5f819050919050565b5f61407b61407661407184613f2f565b614058565b613f2f565b9050919050565b5f61408c82614061565b9050919050565b5f61409d82614082565b9050919050565b6140ad81614093565b82525050565b5f6020820190506140c65f8301846140a4565b92915050565b6140d581613f89565b82525050565b5f6020820190506140ee5f8301846140cc565b92915050565b6140fd81613ffa565b8114614107575f80fd5b50565b5f81359050614118816140f4565b92915050565b5f6020828403121561413357614132613f2b565b5b5f6141408482850161410a565b91505092915050565b5f806040838503121561415f5761415e613f2b565b5b5f61416c85828601613f75565b925050602061417d85828601613f75565b9150509250929050565b5f805f6060848603121561419e5761419d613f2b565b5b5f6141ab86828701613f75565b93505060206141bc86828701613f75565b92505060406141cd86828701613fa8565b9150509250925092565b5f60ff82169050919050565b6141ec816141d7565b82525050565b5f6020820190506142055f8301846141e3565b92915050565b5f806040838503121561422157614220613f2b565b5b5f61422e85828601613f75565b925050602061423f8582860161410a565b9150509250929050565b61425281613f4e565b82525050565b5f60208201905061426b5f830184614249565b92915050565b5f805f805f8060c0878903121561428b5761428a613f2b565b5b5f61429889828a01613fa8565b96505060206142a989828a01613fa8565b95505060406142ba89828a01613fa8565b94505060606142cb89828a01613fa8565b93505060806142dc89828a01613fa8565b92505060a06142ed89828a01613fa8565b9150509295509295509295565b5f80604083850312156143105761430f613f2b565b5b5f61431d85828601613fa8565b925050602061432e85828601613fa8565b9150509250929050565b5f6020828403121561434d5761434c613f2b565b5b5f61435a84828501613fa8565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806143a757607f821691505b6020821081036143ba576143b9614363565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6143f4602083613e8b565b91506143ff826143c0565b602082019050919050565b5f6020820190508181035f830152614421816143e8565b9050919050565b7f46656573206d757374206265206c6f776572207468656e2074686520637572725f8201527f656e740000000000000000000000000000000000000000000000000000000000602082015250565b5f614482602383613e8b565b915061448d82614428565b604082019050919050565b5f6020820190508181035f8301526144af81614476565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6144ed82613f89565b91506144f883613f89565b92508282019050808211156145105761450f6144b6565b5b92915050565b7f466565732063616e6e6f7420626520686967686572207468656e2033302500005f82015250565b5f61454a601e83613e8b565b915061455582614516565b602082019050919050565b5f6020820190508181035f8301526145778161453e565b9050919050565b5f61458882613f89565b915061459383613f89565b92508282026145a181613f89565b915082820484148315176145b8576145b76144b6565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6145f682613f89565b915061460183613f89565b925082614611576146106145bf565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e74205f8201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b5f614676602f83613e8b565b91506146818261461c565b604082019050919050565b5f6020820190508181035f8301526146a38161466a565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e205f8201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b5f614704602483613e8b565b915061470f826146aa565b604082019050919050565b5f6020820190508181035f830152614731816146f8565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f614792603983613e8b565b915061479d82614738565b604082019050919050565b5f6020820190508181035f8301526147bf81614786565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e5f8201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b5f614820603583613e8b565b915061482b826147c6565b604082019050919050565b5f6020820190508181035f83015261484d81614814565b9050919050565b7f5377617020616d6f756e742063616e6e6f7420626520686967686572207468615f8201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b5f6148ae603483613e8b565b91506148b982614854565b604082019050919050565b5f6020820190508181035f8301526148db816148a2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61493c602683613e8b565b9150614947826148e2565b604082019050919050565b5f6020820190508181035f83015261496981614930565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6149ca602483613e8b565b91506149d582614970565b604082019050919050565b5f6020820190508181035f8301526149f7816149be565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f614a58602283613e8b565b9150614a63826149fe565b604082019050919050565b5f6020820190508181035f830152614a8581614a4c565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f614ae6602583613e8b565b9150614af182614a8c565b604082019050919050565b5f6020820190508181035f830152614b1381614ada565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f614b74602383613e8b565b9150614b7f82614b1a565b604082019050919050565b5f6020820190508181035f830152614ba181614b68565b9050919050565b7f596f752068617665206265656e20626c61636b6c69737465642066726f6d20745f8201527f72616e73666572696e6720746f6b656e73000000000000000000000000000000602082015250565b5f614c02603183613e8b565b9150614c0d82614ba8565b604082019050919050565b5f6020820190508181035f830152614c2f81614bf6565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f614c6a601683613e8b565b9150614c7582614c36565b602082019050919050565b5f6020820190508181035f830152614c9781614c5e565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e20204f6e6c79206f6e652070757263686173652070657220626c6f636b60208201527f20616c6c6f7765642e0000000000000000000000000000000000000000000000604082015250565b5f614d1e604983613e8b565b9150614d2982614c9e565b606082019050919050565b5f6020820190508181035f830152614d4b81614d12565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f614dac603583613e8b565b9150614db782614d52565b604082019050919050565b5f6020820190508181035f830152614dd981614da0565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f614e14601383613e8b565b9150614e1f82614de0565b602082019050919050565b5f6020820190508181035f830152614e4181614e08565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f614ea2603683613e8b565b9150614ead82614e48565b604082019050919050565b5f6020820190508181035f830152614ecf81614e96565b9050919050565b5f614ee082613f89565b9150614eeb83613f89565b9250828203905081811115614f0357614f026144b6565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f614f3d601b83613e8b565b9150614f4882614f09565b602082019050919050565b5f6020820190508181035f830152614f6a81614f31565b9050919050565b5f81905092915050565b50565b5f614f895f83614f71565b9150614f9482614f7b565b5f82019050919050565b5f614fa882614f7e565b9150819050919050565b5f606082019050614fc55f8301866140cc565b614fd260208301856140cc565b614fdf60408301846140cc565b949350505050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f615041602183613e8b565b915061504c82614fe7565b604082019050919050565b5f6020820190508181035f83015261506e81615035565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f815190506150dd81613f5f565b92915050565b5f602082840312156150f8576150f7613f2b565b5b5f615105848285016150cf565b91505092915050565b5f819050919050565b5f61513161512c6151278461510e565b614058565b613f89565b9050919050565b61514181615117565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61517981613f4e565b82525050565b5f61518a8383615170565b60208301905092915050565b5f602082019050919050565b5f6151ac82615147565b6151b68185615151565b93506151c183615161565b805f5b838110156151f15781516151d8888261517f565b97506151e383615196565b9250506001810190506151c4565b5085935050505092915050565b5f60a0820190506152115f8301886140cc565b61521e6020830187615138565b818103604083015261523081866151a2565b905061523f6060830185614249565b61524c60808301846140cc565b9695505050505050565b5f60c0820190506152695f830189614249565b61527660208301886140cc565b6152836040830187615138565b6152906060830186615138565b61529d6080830185614249565b6152aa60a08301846140cc565b979650505050505050565b5f815190506152c381613f92565b92915050565b5f805f606084860312156152e0576152df613f2b565b5b5f6152ed868287016152b5565b93505060206152fe868287016152b5565b925050604061530f868287016152b5565b915050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207aa04727c3e709fdc7eae3bcf8546da3b2905503b155332ca3cbcef2fbf6510664736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: No
TwitterCoin.sol 958 lines
/*


https://t.me/TwitterCoinETH


*/

// SPDX-License-Identifier: Unlicensed

pragma solidity 0.8.20;
 
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }
 
    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
 
interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);
 
    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);
 
    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
 
    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);
 
    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
 
    event Mint(address indexed sender, uint amount0, uint amount1);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);
 
    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);
 
    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;
 
    function initialize(address, address) external;
}
 
interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);
 
    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);
 
    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);
 
    function createPair(address tokenA, address tokenB) external returns (address pair);
 
    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}
 
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 {
    using SafeMath for uint256;
 
    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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        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);
 
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);
 
        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(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 {}
}
 
library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
 
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;
 
        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {

        if (a == 0) {
            return 0;
        }
 
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
 
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
 
        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}
 
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() public 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;
    }
}
 
 
 
library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;
 
        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);
 
        // Solidity already throws when dividing by 0.
        return a / b;
    }

    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }
 
 
    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}
 
library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}
 
 
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);
 
    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
 
    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
 
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);
 
    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
 
contract TwitterCoin is ERC20, Ownable {

    string _name = "Twitter Coin";
    string _symbol = "TWTC";

    using SafeMath for uint256;
 
    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
 
    bool private isSwapping;
 
    address private treasuryWallet;
    address private devWallet;
 
    uint256 public maxTx;
    uint256 public swapTreshold;
    uint256 public maxWallet;
 
    bool public limitsActive = true;
    bool public tradingLive = true;
    bool public swapEnabled = true;
    bool public shouldContractSellAll = false;
 
     // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
 
    // Seller Map
    mapping (address => uint256) private _holderFirstBuyTimestamp;
 
    // Blacklist Map
    mapping (address => bool) private _blacklist;
    bool public transferDelayEnabled = true;
 
    uint256 public buyTotalFees;
    uint256 public buyTreasuryFee;
    uint256 public buyLiquidityFee;
    uint256 public buyDevFee;
 
    uint256 public sellTotalFees;
    uint256 public sellTreasuryFee;
    uint256 public sellLiquidityFee;
    uint256 public sellDevFee;
 
    uint256 public tokensForTreasury;
    uint256 public tokensForLiquidity;
    uint256 public tokensForDev;
 
    // block number of opened trading
    uint256 launchedAt;
 
    /******************/
 
    // exclude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;
 
    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;
 
    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);
 
    event ExcludeFromFees(address indexed account, bool isExcluded);
 
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
 
    event treasuryWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event devWalletUpdated(address indexed newWallet, address indexed oldWallet);
 
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiquidity
    );
 
    event AutoNukeLP();
 
    event ManualNukeLP();
 
    constructor() ERC20(_name, _symbol) {
 
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
 
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
 
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
 
        uint256 _buyTreasuryFee = 20;
        uint256 _buyLiquidityFee = 0;
        uint256 _buyDevFee = 0;
 
        uint256 _sellTreasuryFee = 50;
        uint256 _sellLiquidityFee = 0;
        uint256 _sellDevFee = 0;
 
        uint256 totalSupply = 1000000 * 1e18;
 
        maxTx = totalSupply * 20 / 1000; // 2%
        maxWallet = totalSupply * 20 / 1000; // 2% 
        swapTreshold = totalSupply * 1 / 1000; // 0.05%
 
        buyTreasuryFee = _buyTreasuryFee;
        buyLiquidityFee = _buyLiquidityFee;
        buyDevFee = _buyDevFee;
        buyTotalFees = buyTreasuryFee + buyLiquidityFee + buyDevFee;
 
        sellTreasuryFee = _sellTreasuryFee;
        sellLiquidityFee = _sellLiquidityFee;
        sellDevFee = _sellDevFee;
        sellTotalFees = sellTreasuryFee + sellLiquidityFee + sellDevFee;

        treasuryWallet = address(0x168E756FB48dFd30C45eb1e4B7d9924f91c68116);
        devWallet = address(0x168E756FB48dFd30C45eb1e4B7d9924f91c68116);
 
        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromFees(address(treasuryWallet), true);
 
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(address(devWallet), true);
        excludeFromMaxTransaction(address(treasuryWallet), true);
 
        /*
            _mint is an internal function in ERC20.sol that is only called here,
            and CANNOT be called ever again
        */
        _mint(msg.sender, totalSupply);
    }
 
    receive() external payable {
 
    }
 
    // once enabled, can never be turned off
    function live() external onlyOwner {
       
        tradingLive = true;
        swapEnabled = true;
        launchedAt = block.number;
       
        
    }
 
    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool){
        limitsActive = false;
        return true;
    }
 
    // disable Transfer delay - cannot be reenabled
    function disableTransferDelay() external onlyOwner returns (bool){
        transferDelayEnabled = false;
        return true;
    }

    function enableEmptyContract(bool enabled) external onlyOwner{
        shouldContractSellAll = enabled;
    }
 
     // change the minimum amount of tokens to sell from fees
    function setSwapTreshold(uint256 newAmount) external onlyOwner returns (bool){
        require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
        require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
        swapTreshold = newAmount;
        return true;
    }
 
    function updateTransactionLimits(uint256 _maxTx, uint256 _maxWallet) external onlyOwner {
        require(_maxTx >= (totalSupply() * 1 / 1000)/1e18, "Cannot set maxTransactionAmount lower than 0.1%");
        require(_maxWallet >= (totalSupply() * 5 / 1000)/1e18, "Cannot set maxWallet lower than 0.5%");
        maxTx = _maxTx * (10**18);
        maxWallet = _maxWallet * (10**18);
    }
 
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function reduceFees(
        uint256 _devBuyFee,
        uint256 _liquidityBuyFee,
        uint256 _treasuryBuyFee,
        uint256 _devSellFee,
        uint256 _liquiditySellFee,
        uint256 _treasurySellFee
    ) external onlyOwner {
        require(_devBuyFee <= buyDevFee &&
         _liquidityBuyFee <= buyLiquidityFee && 
         _treasuryBuyFee <= buyTreasuryFee &&
         _devSellFee <= sellDevFee && 
         _liquiditySellFee <= sellLiquidityFee &&
         _treasurySellFee <= sellTreasuryFee, "Fees must be lower then the current");

        buyDevFee = _devBuyFee;
        buyLiquidityFee = _liquidityBuyFee;
        buyTreasuryFee = _treasuryBuyFee;
        buyTotalFees = buyDevFee + buyLiquidityFee + buyTreasuryFee;
        sellDevFee = _devSellFee;
        sellLiquidityFee = _liquiditySellFee;
        sellTreasuryFee = _treasurySellFee;
        sellTotalFees = sellDevFee + sellLiquidityFee + sellTreasuryFee;
        require(buyTotalFees <= 30 && sellTotalFees <= 30, "Fees cannot be higher then 30%");
    }

    // only use to disable contract sales if absolutely necessary (emergency use only)
    function updateContrattSellEnabled(bool enabled) external onlyOwner(){
        swapEnabled = enabled;
    }
 
    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }
 
    function blacklist(address account, bool isBlacklisted) public onlyOwner {
        _blacklist[account] = isBlacklisted;
    }
 
    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");
 
        _setAutomatedMarketMakerPair(pair, value);
    }
 
    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;
 
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateFeeRecivers(address newTreasuryWallet, address newDevWallet) external onlyOwner{
        emit treasuryWalletUpdated(newTreasuryWallet, treasuryWallet);
        treasuryWallet = newTreasuryWallet;
        emit devWalletUpdated(newDevWallet, devWallet);
        devWallet = newDevWallet;
    }

 
  
    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }
 
    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(!_blacklist[to] && !_blacklist[from], "You have been blacklisted from transfering tokens");
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
 
        if(limitsActive){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !isSwapping
            ){
                if(!tradingLive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }
 
                // at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.  
                if (transferDelayEnabled){
                    if (to != owner() && to != address(uniswapV2Router) && to != address(uniswapV2Pair)){
                        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] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTx, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
 
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTx, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if(!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }
        }
 
        uint256 contractTokenBalance = balanceOf(address(this));
 
        bool canSwap = contractTokenBalance >= swapTreshold;
 
        if( 
            canSwap &&
            swapEnabled &&
            !isSwapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            isSwapping = true;
 
            swapBack();
 
            isSwapping = false;
        }
 
        bool takeFee = !isSwapping;
 
        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[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] && sellTotalFees > 0){
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForDev += fees * sellDevFee / sellTotalFees;
                tokensForTreasury += fees * sellTreasuryFee / sellTotalFees;
            }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
                fees = amount.mul(buyTotalFees).div(100);
                tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForDev += fees * buyDevFee / buyTotalFees;
                tokensForTreasury += fees * buyTreasuryFee / buyTotalFees;
            }
 
            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] = uniswapV2Router.WETH();
 
        _approve(address(this), address(uniswapV2Router), tokenAmount);
 
        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
 
    }
 
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);
 
        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            address(this),
            block.timestamp
        );
    }
 
    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForTreasury + tokensForDev;
        bool success;
 
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}
 
        if(shouldContractSellAll == false){
            if(contractBalance > swapTreshold * 20){
                contractBalance = swapTreshold * 20;
            }
        }else{
            contractBalance = balanceOf(address(this));
        }
        
 
        // 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(tokensForTreasury).div(totalTokensToSwap);
        uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap);
        uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev;
 
 
        tokensForLiquidity = 0;
        tokensForTreasury = 0;
        tokensForDev = 0;
 
        (success,) = address(devWallet).call{value: ethForDev}("");
 
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
            emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity);
        }
 
        (success,) = address(treasuryWallet).call{value: address(this).balance}("");
    }
}

Read Contract

_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyDevFee 0x9c3b4fdc → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyTotalFees 0xd85ba063 → uint256
buyTreasuryFee 0x5c068a8c → uint256
decimals 0x313ce567 → uint8
isExcludedFromFees 0x4fbee193 → bool
limitsActive 0x1cce34ee → bool
maxTx 0x7437681e → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellDevFee 0xa0d82dc5 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellTotalFees 0x6a486a8e → uint256
sellTreasuryFee 0x6b2fb124 → uint256
shouldContractSellAll 0x1864217b → bool
swapEnabled 0x6ddd1713 → bool
swapTreshold 0xe52fb9ec → uint256
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForTreasury 0xcc2ffe7c → uint256
totalSupply 0x18160ddd → uint256
tradingLive 0x11704f52 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address

Write Contract 20 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklist 0x404e5129
address account
bool isBlacklisted
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
returns: bool
enableEmptyContract 0x184f5c6a
bool enabled
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
live 0x957aa58c
No parameters
reduceFees 0x58c84e70
uint256 _devBuyFee
uint256 _liquidityBuyFee
uint256 _treasuryBuyFee
uint256 _devSellFee
uint256 _liquiditySellFee
uint256 _treasurySellFee
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setSwapTreshold 0xcfd1940e
uint256 newAmount
returns: bool
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateContrattSellEnabled 0xd422818c
bool enabled
updateFeeRecivers 0x22b55037
address newTreasuryWallet
address newDevWallet
updateTransactionLimits 0x7ebb640a
uint256 _maxTx
uint256 _maxWallet

Recent Transactions

No transactions found for this address