Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x7129dfb8fF205cE88Ce9B32e2b6b50C5B470274c
Balance 1.7019 ETH
Nonce 1
Code Size 20049 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

20049 bytes
0x6080604052600436106103395760003560e01c806379cde594116101ab578063b1284d34116100f7578063d58a5fc411610095578063e4b725161161006f578063e4b7251614610be5578063e5551cde14610c10578063f0869f7214610c39578063f2fde38b14610c7657610340565b8063d58a5fc414610b42578063dd62ed3e14610b7f578063e3f9fc6314610bbc57610340565b8063b9ccf21d116100d1578063b9ccf21d14610a98578063bbc0c74214610ac3578063be30877f14610aee578063d0bf9c5414610b1957610340565b8063b1284d3414610a09578063b41356c914610a32578063b825aedc14610a5b57610340565b80639579d51411610164578063a457c2d71161013e578063a457c2d71461093d578063a8602fea1461097a578063a9059cbb146109a3578063b0ac1571146109e057610340565b80639579d514146108ac57806395d89b41146108e95780639ec09e1e1461091457610340565b806379cde594146107c257806380ea3de1146107ff578063853828b614610828578063897534a91461083f5780638a8c523c1461086a5780638da5cb5b1461088157610340565b80633e9ffbea116102855780635facf12e1161022357806369ec8e9c116101fd57806369ec8e9c1461070857806370a0823114610745578063715018a61461078257806377348de91461079957610340565b80635facf12e1461067757806361db2446146106b457806367243482146106df57610340565b80634e6be5441161025f5780634e6be544146105fd5780634fb0b7e71461060757806351c6590a146106305780635b78f35f1461064c57610340565b80633e9ffbea1461059257806340c10f19146105a95780634626402b146105d257610340565b806323b872dd116102f2578063349c70d5116102cc578063349c70d5146104d65780633732e21414610513578063375632931461053e578063395093511461055557610340565b806323b872dd14610443578063313ce5671461048057806332cb6b0c146104ab57610340565b80630126ec501461034557806304646a491461036e57806306fdde0314610399578063095ea7b3146103c457806317700f011461040157806318160ddd1461041857610340565b3661034057005b600080fd5b34801561035157600080fd5b5061036c60048036038101906103679190613c55565b610c9f565b005b34801561037a57600080fd5b50610383610d88565b6040516103909190614453565b60405180910390f35b3480156103a557600080fd5b506103ae610d8e565b6040516103bb9190614191565b60405180910390f35b3480156103d057600080fd5b506103eb60048036038101906103e69190613b43565b610e20565b6040516103f89190614176565b60405180910390f35b34801561040d57600080fd5b50610416610e43565b005b34801561042457600080fd5b5061042d610edc565b60405161043a9190614453565b60405180910390f35b34801561044f57600080fd5b5061046a60048036038101906104659190613af0565b610ee6565b6040516104779190614176565b60405180910390f35b34801561048c57600080fd5b50610495610f15565b6040516104a291906144c8565b60405180910390f35b3480156104b757600080fd5b506104c0610f1e565b6040516104cd9190614453565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f89190613a29565b610f2e565b60405161050a9190614453565b60405180910390f35b34801561051f57600080fd5b50610528610f46565b6040516105359190614453565b60405180910390f35b34801561054a57600080fd5b50610553610f4c565b005b34801561056157600080fd5b5061057c60048036038101906105779190613b43565b610f57565b6040516105899190614176565b60405180910390f35b34801561059e57600080fd5b506105a7611001565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190613b43565b6110db565b005b3480156105de57600080fd5b506105e7611165565b6040516105f491906140fa565b60405180910390f35b61060561118b565b005b34801561061357600080fd5b5061062e60048036038101906106299190613a29565b6111a6565b005b61064a60048036038101906106459190613c28565b6112c6565b005b34801561065857600080fd5b50610661611475565b60405161066e9190614453565b60405180910390f35b34801561068357600080fd5b5061069e60048036038101906106999190613a29565b61147b565b6040516106ab9190614453565b60405180910390f35b3480156106c057600080fd5b506106c96115af565b6040516106d69190614453565b60405180910390f35b3480156106eb57600080fd5b5061070660048036038101906107019190613b83565b6115b5565b005b34801561071457600080fd5b5061072f600480360381019061072a9190613a29565b6116d7565b60405161073c9190614176565b60405180910390f35b34801561075157600080fd5b5061076c60048036038101906107679190613a29565b61172d565b6040516107799190614453565b60405180910390f35b34801561078e57600080fd5b50610797611776565b005b3480156107a557600080fd5b506107c060048036038101906107bb9190613c28565b6117fe565b005b3480156107ce57600080fd5b506107e960048036038101906107e49190613a29565b6118c8565b6040516107f69190614453565b60405180910390f35b34801561080b57600080fd5b5061082660048036038101906108219190613c28565b611911565b005b34801561083457600080fd5b5061083d6119e9565b005b34801561084b57600080fd5b50610854611ab5565b6040516108619190614453565b60405180910390f35b34801561087657600080fd5b5061087f611abb565b005b34801561088d57600080fd5b50610896611b54565b6040516108a391906140df565b60405180910390f35b3480156108b857600080fd5b506108d360048036038101906108ce9190613a29565b611b7e565b6040516108e09190614453565b60405180910390f35b3480156108f557600080fd5b506108fe611b96565b60405161090b9190614191565b60405180910390f35b34801561092057600080fd5b5061093b60048036038101906109369190613c55565b611c28565b005b34801561094957600080fd5b50610964600480360381019061095f9190613b43565b611d11565b6040516109719190614176565b60405180910390f35b34801561098657600080fd5b506109a1600480360381019061099c9190613a83565b611dfb565b005b3480156109af57600080fd5b506109ca60048036038101906109c59190613b43565b611ebb565b6040516109d79190614176565b60405180910390f35b3480156109ec57600080fd5b50610a076004803603810190610a029190613c28565b611ede565b005b348015610a1557600080fd5b50610a306004803603810190610a2b9190613c28565b611f64565b005b348015610a3e57600080fd5b50610a596004803603810190610a549190613a29565b61202e565b005b348015610a6757600080fd5b50610a826004803603810190610a7d9190613a29565b61214d565b604051610a8f9190614453565b60405180910390f35b348015610aa457600080fd5b50610aad612165565b604051610aba9190614176565b60405180910390f35b348015610acf57600080fd5b50610ad8612178565b604051610ae59190614176565b60405180910390f35b348015610afa57600080fd5b50610b0361218b565b604051610b109190614453565b60405180910390f35b348015610b2557600080fd5b50610b406004803603810190610b3b9190613c28565b612191565b005b348015610b4e57600080fd5b50610b696004803603810190610b649190613a29565b61225b565b604051610b7691906144c8565b60405180910390f35b348015610b8b57600080fd5b50610ba66004803603810190610ba19190613ab0565b6122b2565b604051610bb39190614453565b60405180910390f35b348015610bc857600080fd5b50610be36004803603810190610bde9190613bfb565b612339565b005b348015610bf157600080fd5b50610bfa6123d2565b604051610c079190614453565b60405180910390f35b348015610c1c57600080fd5b50610c376004803603810190610c329190613bfb565b6123d8565b005b348015610c4557600080fd5b50610c606004803603810190610c5b9190613a29565b612471565b604051610c6d9190614453565b60405180910390f35b348015610c8257600080fd5b50610c9d6004803603810190610c989190613a29565b6124ba565b005b610ca76125b2565b73ffffffffffffffffffffffffffffffffffffffff16610cc5611b54565b73ffffffffffffffffffffffffffffffffffffffff1614610d1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1290614393565b60405180910390fd5b600f54821115610d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d57906141d3565b60405180910390fd5b610d6b3082846125ba565b81600f6000828254610d7d9190614696565b925050819055505050565b600b5481565b606060038054610d9d90614776565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc990614776565b8015610e165780601f10610deb57610100808354040283529160200191610e16565b820191906000526020600020905b815481529060010190602001808311610df957829003601f168201915b5050505050905090565b600080610e2b6125b2565b9050610e38818585612769565b600191505092915050565b610e4b6125b2565b73ffffffffffffffffffffffffffffffffffffffff16610e69611b54565b73ffffffffffffffffffffffffffffffffffffffff1614610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690614393565b60405180910390fd5b6000601460166101000a81548160ff021916908315150217905550565b6000601254905090565b600080610ef16125b2565b9050610efe858285612934565b610f098585856129c0565b60019150509392505050565b60006012905090565b6b033b2e3c9fd0803ce800000081565b60196020528060005260406000206000915090505481565b600f5481565b610f5533612f9d565b565b600080610f626125b2565b9050610ff6818585600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ff191906145b5565b612769565b600191505092915050565b6110096125b2565b73ffffffffffffffffffffffffffffffffffffffff16611027611b54565b73ffffffffffffffffffffffffffffffffffffffff161461107d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107490614393565b60405180910390fd5b600061271060065461108d610edc565b611097919061463c565b6110a1919061460b565b905060006110ae3061172d565b90508181106110bb578190505b60148054906101000a900460ff166110d7576110d681613045565b5b5050565b6110e36125b2565b73ffffffffffffffffffffffffffffffffffffffff16611101611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611157576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114e90614393565b60405180910390fd5b6111618282613404565b5050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b34600e600082825461119d91906145b5565b92505081905550565b6111ae6125b2565b73ffffffffffffffffffffffffffffffffffffffff166111cc611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121990614393565b60405180910390fd5b61122b816116d7565b1561126b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611262906143b3565b60405180910390fd5b6001601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6112ce6125b2565b73ffffffffffffffffffffffffffffffffffffffff166112ec611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133990614393565b60405180910390fd5b6001601460156101000a81548160ff0219169083151502179055506113673082613404565b61139430601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612769565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7193430846000806113e0611b54565b426040518863ffffffff1660e01b815260040161140296959493929190614115565b6060604051808303818588803b15801561141b57600080fd5b505af115801561142f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906114549190613c95565b5050506000601460156101000a81548160ff02191690831515021790555050565b600c5481565b6000601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806115265750601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561153457600090506115aa565b6000601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e546115839190614696565b90506012546115918461172d565b8261159c919061463c565b6115a6919061460b565b9150505b919050565b600e5481565b6115bd6125b2565b73ffffffffffffffffffffffffffffffffffffffff166115db611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611631576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162890614393565b60405180910390fd5b8051825114611675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166c906142d3565b60405180910390fd5b60005b82518110156116d2576116bf838281518110611697576116966148af565b5b60200260200101518383815181106116b2576116b16148af565b5b6020026020010151613404565b80806116ca906147d9565b915050611678565b505050565b6000601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61177e6125b2565b73ffffffffffffffffffffffffffffffffffffffff1661179c611b54565b73ffffffffffffffffffffffffffffffffffffffff16146117f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e990614393565b60405180910390fd5b6117fc60006134ed565b565b6118066125b2565b73ffffffffffffffffffffffffffffffffffffffff16611824611b54565b73ffffffffffffffffffffffffffffffffffffffff161461187a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161187190614393565b60405180910390fd5b6107d081106118be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b5906143f3565b60405180910390fd5b8060068190555050565b6000601960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119196125b2565b73ffffffffffffffffffffffffffffffffffffffff16611937611b54565b73ffffffffffffffffffffffffffffffffffffffff161461198d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198490614393565b60405180910390fd5b6201518081111580156119a05750600081115b6119df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d6906143d3565b60405180910390fd5b80600b8190555050565b6119f16125b2565b73ffffffffffffffffffffffffffffffffffffffff16611a0f611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611a65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5c90614393565b60405180910390fd5b611a6d611b54565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611ab2573d6000803e3d6000fd5b50565b60105481565b611ac36125b2565b73ffffffffffffffffffffffffffffffffffffffff16611ae1611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2e90614393565b60405180910390fd5b6001601460166101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60176020528060005260406000206000915090505481565b606060048054611ba590614776565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd190614776565b8015611c1e5780601f10611bf357610100808354040283529160200191611c1e565b820191906000526020600020905b815481529060010190602001808311611c0157829003601f168201915b5050505050905090565b611c306125b2565b73ffffffffffffffffffffffffffffffffffffffff16611c4e611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90614393565b60405180910390fd5b601054821115611ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce090614353565b60405180910390fd5b611cf43082846125ba565b8160106000828254611d069190614696565b925050819055505050565b600080611d1c6125b2565b90506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015611de2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd990614433565b60405180910390fd5b611def8286868403612769565b60019250505092915050565b611e036125b2565b73ffffffffffffffffffffffffffffffffffffffff16611e21611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6e90614393565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080611ec66125b2565b9050611ed38185856129c0565b600191505092915050565b611ee66125b2565b73ffffffffffffffffffffffffffffffffffffffff16611f04611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5190614393565b60405180910390fd5b80600c8190555050565b611f6c6125b2565b73ffffffffffffffffffffffffffffffffffffffff16611f8a611b54565b73ffffffffffffffffffffffffffffffffffffffff1614611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd790614393565b60405180910390fd5b6064811115612024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201b906142f3565b60405180910390fd5b80600a8190555050565b6120366125b2565b73ffffffffffffffffffffffffffffffffffffffff16612054611b54565b73ffffffffffffffffffffffffffffffffffffffff16146120aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a190614393565b60405180910390fd5b6120b3816116d7565b6120f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e9906143b3565b60405180910390fd5b6000601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60186020528060005260406000206000915090505481565b600d60009054906101000a900460ff1681565b601460169054906101000a900460ff1681565b600a5481565b6121996125b2565b73ffffffffffffffffffffffffffffffffffffffff166121b7611b54565b73ffffffffffffffffffffffffffffffffffffffff161461220d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220490614393565b60405180910390fd5b6064811115612251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224890614313565b60405180910390fd5b8060098190555050565b600080612267836118c8565b90506000808211156122a857600060085483426122849190614696565b61228e919061460b565b905060048111156122a257600491506122a6565b8091505b505b8092505050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6123416125b2565b73ffffffffffffffffffffffffffffffffffffffff1661235f611b54565b73ffffffffffffffffffffffffffffffffffffffff16146123b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ac90614393565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b60095481565b6123e06125b2565b73ffffffffffffffffffffffffffffffffffffffff166123fe611b54565b73ffffffffffffffffffffffffffffffffffffffff1614612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b90614393565b60405180910390fd5b80600760006101000a81548160ff02191690831515021790555050565b6000601860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6124c26125b2565b73ffffffffffffffffffffffffffffffffffffffff166124e0611b54565b73ffffffffffffffffffffffffffffffffffffffff1614612536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252d90614393565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161259d90614233565b60405180910390fd5b6125af816134ed565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561262a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262190614273565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561269a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269190614293565b60405180910390fd5b60006126a58461172d565b9050818110156126ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e190614333565b60405180910390fd5b6126f484836135b3565b6126fe8383613645565b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161275b9190614453565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d090614413565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612849576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284090614253565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516129279190614453565b60405180910390a3505050565b600061294084846122b2565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146129ba57818110156129ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a3906142b3565b60405180910390fd5b6129b98484848403612769565b5b50505050565b6129c9836116d7565b806129d957506129d8826116d7565b5b156129ee576129e98383836125ba565b612f98565b60006127106006546129fe610edc565b612a08919061463c565b612a12919061460b565b9050600760009054906101000a900460ff168015612a7d5750601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b15612a905780821115612a8f57600080fd5b5b8082111580612aec5750601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80612b035750601460159054906101000a900460ff165b80612b18575060148054906101000a900460ff165b80612b705750601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b612baf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba6906141f3565b60405180910390fd5b6000612bba3061172d565b90506000600c548210159050828210612bd1578291505b808015612be9575060148054906101000a900460ff16155b8015612c435750601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614155b8015612c5b5750600d60009054906101000a900460ff165b15612c6a57612c6982613045565b5b612c7386612f9d565b612c7c85612f9d565b6000849050600080601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff161480612d2d5750601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16145b15612f8657601460169054906101000a900460ff16612d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7890614373565b60405180910390fd5b6000612d8c896118c8565b9050601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16148015612deb5750600081145b15612e355742601960008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff161415612f8457612e948a612471565b421015612ea057600080fd5b612eb288612ead8c61225b565b6136d7565b809450819550829650505050600b5442612ecc91906145b5565b601860008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550670de0b6b3a764000088612f228c61172d565b612f2c9190614696565b1015612f78576000601960008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b612f838a83856137ac565b5b505b612f918989856125ba565b5050505050505b505050565b6000612fa88261147b565b9050600e54601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000811115613041578173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561303f573d6000803e3d6000fd5b505b5050565b60016014806101000a81548160ff0219169083151502179055506000600267ffffffffffffffff81111561307c5761307b6148de565b5b6040519080825280602002602001820160405280156130aa5781602001602082028036833780820191505090505b50905030816000815181106130c2576130c16148af565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561316457600080fd5b505afa158015613178573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061319c9190613a56565b816001815181106131b0576131af6148af565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061321730601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684612769565b6000479050601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac9478460008530426040518663ffffffff1660e01b815260040161328095949392919061446e565b600060405180830381600087803b15801561329a57600080fd5b505af11580156132ae573d6000803e3d6000fd5b50505050600081476132c09190614696565b90506000600f546010546132d491906145b5565b9050600081601054876132e7919061463c565b6132f1919061460b565b9050600081876133019190614696565b905060008360105486613314919061463c565b61331e919061460b565b90506000818661332e9190614696565b905060008211156133a357601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156133a1573d6000803e3d6000fd5b505b836010546133b19190614696565b60108190555082600f546133c59190614696565b600f8190555080600e546133d991906145b5565b600e81905550505050505050505060006014806101000a81548160ff02191690831515021790555050565b6b033b2e3c9fd0803ce80000008160125461341f91906145b5565b1115613460576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613457906141b3565b60405180910390fd5b806012600082825461347291906145b5565b925050819055506134838282613645565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516134e19190614453565b60405180910390a35050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546135fe9190614696565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461369091906145b5565b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000806000806103e8905060018560ff1614156136f8576103419050613739565b60028560ff16141561370e5761029a9050613738565b60038560ff161415613724576101f49050613737565b60048560ff1614156137365761014d90505b5b5b5b620186a081600a548861374c919061463c565b613756919061463c565b613760919061460b565b9250620186a08160095488613775919061463c565b61377f919061463c565b613789919061460b565b91508183876137989190614696565b6137a29190614696565b9350509250925092565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561381c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381390614213565b60405180910390fd5b6000818361382a91906145b5565b90506138378430836125ba565b826010600082825461384991906145b5565b9250508190555081600f600082825461386291906145b5565b9250508190555050505050565b600061388261387d84614508565b6144e3565b905080838252602082019050828560208602820111156138a5576138a4614912565b5b60005b858110156138d557816138bb888261394f565b8452602084019350602083019250506001810190506138a8565b5050509392505050565b60006138f26138ed84614534565b6144e3565b9050808382526020820190508285602086028201111561391557613914614912565b5b60005b85811015613945578161392b88826139ff565b845260208401935060208301925050600181019050613918565b5050509392505050565b60008135905061395e81614dbf565b92915050565b60008151905061397381614dbf565b92915050565b60008135905061398881614dd6565b92915050565b600082601f8301126139a3576139a261490d565b5b81356139b384826020860161386f565b91505092915050565b600082601f8301126139d1576139d061490d565b5b81356139e18482602086016138df565b91505092915050565b6000813590506139f981614ded565b92915050565b600081359050613a0e81614e04565b92915050565b600081519050613a2381614e04565b92915050565b600060208284031215613a3f57613a3e61491c565b5b6000613a4d8482850161394f565b91505092915050565b600060208284031215613a6c57613a6b61491c565b5b6000613a7a84828501613964565b91505092915050565b600060208284031215613a9957613a9861491c565b5b6000613aa784828501613979565b91505092915050565b60008060408385031215613ac757613ac661491c565b5b6000613ad58582860161394f565b9250506020613ae68582860161394f565b9150509250929050565b600080600060608486031215613b0957613b0861491c565b5b6000613b178682870161394f565b9350506020613b288682870161394f565b9250506040613b39868287016139ff565b9150509250925092565b60008060408385031215613b5a57613b5961491c565b5b6000613b688582860161394f565b9250506020613b79858286016139ff565b9150509250929050565b60008060408385031215613b9a57613b9961491c565b5b600083013567ffffffffffffffff811115613bb857613bb7614917565b5b613bc48582860161398e565b925050602083013567ffffffffffffffff811115613be557613be4614917565b5b613bf1858286016139bc565b9150509250929050565b600060208284031215613c1157613c1061491c565b5b6000613c1f848285016139ea565b91505092915050565b600060208284031215613c3e57613c3d61491c565b5b6000613c4c848285016139ff565b91505092915050565b60008060408385031215613c6c57613c6b61491c565b5b6000613c7a858286016139ff565b9250506020613c8b8582860161394f565b9150509250929050565b600080600060608486031215613cae57613cad61491c565b5b6000613cbc86828701613a14565b9350506020613ccd86828701613a14565b9250506040613cde86828701613a14565b9150509250925092565b6000613cf48383613d0f565b60208301905092915050565b613d09816146dc565b82525050565b613d18816146ca565b82525050565b613d27816146ca565b82525050565b6000613d3882614570565b613d428185614593565b9350613d4d83614560565b8060005b83811015613d7e578151613d658882613ce8565b9750613d7083614586565b925050600181019050613d51565b5085935050505092915050565b613d94816146ee565b82525050565b613da381614731565b82525050565b6000613db48261457b565b613dbe81856145a4565b9350613dce818560208601614743565b613dd781614921565b840191505092915050565b6000613def6013836145a4565b9150613dfa82614932565b602082019050919050565b6000613e12602c836145a4565b9150613e1d8261495b565b604082019050919050565b6000613e35601e836145a4565b9150613e40826149aa565b602082019050919050565b6000613e58601e836145a4565b9150613e63826149d3565b602082019050919050565b6000613e7b6026836145a4565b9150613e86826149fc565b604082019050919050565b6000613e9e6022836145a4565b9150613ea982614a4b565b604082019050919050565b6000613ec1601e836145a4565b9150613ecc82614a9a565b602082019050919050565b6000613ee4601c836145a4565b9150613eef82614ac3565b602082019050919050565b6000613f07601d836145a4565b9150613f1282614aec565b602082019050919050565b6000613f2a6018836145a4565b9150613f3582614b15565b602082019050919050565b6000613f4d601f836145a4565b9150613f5882614b3e565b602082019050919050565b6000613f706020836145a4565b9150613f7b82614b67565b602082019050919050565b6000613f93601f836145a4565b9150613f9e82614b90565b602082019050919050565b6000613fb6602b836145a4565b9150613fc182614bb9565b604082019050919050565b6000613fd96019836145a4565b9150613fe482614c08565b602082019050919050565b6000613ffc6020836145a4565b915061400782614c31565b602082019050919050565b600061401f601c836145a4565b915061402a82614c5a565b602082019050919050565b60006140426027836145a4565b915061404d82614c83565b604082019050919050565b60006140656028836145a4565b915061407082614cd2565b604082019050919050565b60006140886024836145a4565b915061409382614d21565b604082019050919050565b60006140ab6025836145a4565b91506140b682614d70565b604082019050919050565b6140ca8161471a565b82525050565b6140d981614724565b82525050565b60006020820190506140f46000830184613d1e565b92915050565b600060208201905061410f6000830184613d00565b92915050565b600060c08201905061412a6000830189613d1e565b61413760208301886140c1565b6141446040830187613d9a565b6141516060830186613d9a565b61415e6080830185613d1e565b61416b60a08301846140c1565b979650505050505050565b600060208201905061418b6000830184613d8b565b92915050565b600060208201905081810360008301526141ab8184613da9565b905092915050565b600060208201905081810360008301526141cc81613de2565b9050919050565b600060208201905081810360008301526141ec81613e05565b9050919050565b6000602082019050818103600083015261420c81613e28565b9050919050565b6000602082019050818103600083015261422c81613e4b565b9050919050565b6000602082019050818103600083015261424c81613e6e565b9050919050565b6000602082019050818103600083015261426c81613e91565b9050919050565b6000602082019050818103600083015261428c81613eb4565b9050919050565b600060208201905081810360008301526142ac81613ed7565b9050919050565b600060208201905081810360008301526142cc81613efa565b9050919050565b600060208201905081810360008301526142ec81613f1d565b9050919050565b6000602082019050818103600083015261430c81613f40565b9050919050565b6000602082019050818103600083015261432c81613f63565b9050919050565b6000602082019050818103600083015261434c81613f86565b9050919050565b6000602082019050818103600083015261436c81613fa9565b9050919050565b6000602082019050818103600083015261438c81613fcc565b9050919050565b600060208201905081810360008301526143ac81613fef565b9050919050565b600060208201905081810360008301526143cc81614012565b9050919050565b600060208201905081810360008301526143ec81614035565b9050919050565b6000602082019050818103600083015261440c81614058565b9050919050565b6000602082019050818103600083015261442c8161407b565b9050919050565b6000602082019050818103600083015261444c8161409e565b9050919050565b600060208201905061446860008301846140c1565b92915050565b600060a08201905061448360008301886140c1565b6144906020830187613d9a565b81810360408301526144a28186613d2d565b90506144b16060830185613d1e565b6144be60808301846140c1565b9695505050505050565b60006020820190506144dd60008301846140d0565b92915050565b60006144ed6144fe565b90506144f982826147a8565b919050565b6000604051905090565b600067ffffffffffffffff821115614523576145226148de565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561454f5761454e6148de565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b60006145c08261471a565b91506145cb8361471a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614600576145ff614822565b5b828201905092915050565b60006146168261471a565b91506146218361471a565b92508261463157614630614851565b5b828204905092915050565b60006146478261471a565b91506146528361471a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561468b5761468a614822565b5b828202905092915050565b60006146a18261471a565b91506146ac8361471a565b9250828210156146bf576146be614822565b5b828203905092915050565b60006146d5826146fa565b9050919050565b60006146e7826146fa565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061473c8261471a565b9050919050565b60005b83811015614761578082015181840152602081019050614746565b83811115614770576000848401525b50505050565b6000600282049050600182168061478e57607f821691505b602082108114156147a2576147a1614880565b5b50919050565b6147b182614921565b810181811067ffffffffffffffff821117156147d0576147cf6148de565b5b80604052505050565b60006147e48261471a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561481757614816614822565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b7f416d6f756e742063616e6e6f742062652067726561746572207468616e20746f60008201527f74616c5265666c65637465640000000000000000000000000000000000000000602082015250565b7f45786365656473206d6178207472616e73616374696f6e20616d6f756e740000600082015250565b7f7461786174696f6e2066726f6d20746865207a65726f20616464726573730000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f7472616e736665722066726f6d20746865207a65726f20616464726573730000600082015250565b7f7472616e7366657220746f20746865207a65726f206164647265737300000000600082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f6172726179206c656e67746873206d757374206d617463680000000000000000600082015250565b7f5f7265666c656374526174652063616e6e6f7420657863656564203130302500600082015250565b7f5f7472656173757279526174652063616e6e6f74206578636565642031303025600082015250565b7f7472616e7366657220616d6f756e7420657863656564732062616c616e636500600082015250565b7f416d6f756e742063616e6e6f742062652067726561746572207468616e20746f60008201527f74616c5472656173757279000000000000000000000000000000000000000000602082015250565b7f54726164696e67206973206e6f74207965742061637469766500000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4163636f756e74206d757374206e6f74206265206578636c7564656400000000600082015250565b7f5f636f6f6c646f776e506572696f64206d757374206265206c6573732074686160008201527f6e20312064617900000000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f7420736574206d6178207472616e736665722061626f766520323060008201527f2070657263656e74000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b614dc8816146ca565b8114614dd357600080fd5b50565b614ddf816146dc565b8114614dea57600080fd5b50565b614df6816146ee565b8114614e0157600080fd5b50565b614e0d8161471a565b8114614e1857600080fd5b5056fea26469706673582212206a54420b8dff7030f8aea35df836775c0522fafc52c689362d1fc8ab73ede26664736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: No
AJINU.sol 1338 lines
// File: contracts/AJINU.sol

/**
 *Submitted for verification at Etherscan.io on 2022-03-28
*/

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol

pragma solidity >=0.6.2;

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);
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol

pragma solidity >=0.6.2;


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;
}

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

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 Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    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;
}

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

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;
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract 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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @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_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

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

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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) {
        address owner = _msgSender();
        _approve(owner, spender, _allowances[owner][spender] + 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) {
        address owner = _msgSender();
        uint256 currentAllowance = _allowances[owner][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
    unchecked {
        _approve(owner, spender, currentAllowance - subtractedValue);
    }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
    unchecked {
        _balances[from] = fromBalance - amount;
    }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
    unchecked {
        _balances[account] = accountBalance - amount;
    }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

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

    /**
     * @dev Spend `amount` form the allowance of `owner` toward `spender`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
        unchecked {
            _approve(owner, spender, currentAllowance - amount);
        }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: contracts/AJINU.sol


pragma solidity ^0.8.0;

contract AJINU is ERC20, Ownable {

    modifier lockSwap {
        _inSwap = true;
        _;
        _inSwap = false;
    }

    modifier liquidityAdd {
        _inLiquidityAdd = true;
        _;
        _inLiquidityAdd = false;
    }

    uint256 public constant MAX_SUPPLY = 1_000_000_000 ether;

    // _maxTransfer set to 10 means the max transfer is 0.10% of the total supply
    uint256 internal _maxTransfer = 10;
    bool internal _isMaxBuyTransferEnabled = true;
    uint256 internal _taxReliefInterval = 7 days;
    uint256 public treasuryRate = 15;
    uint256 public reflectRate = 15;
    uint256 public cooldownPeriod = 1 days;
    /// @notice Contract AJINU balance threshold before `_swap` is invoked
    uint256 public minTokenBalance = 1000000 ether;
    bool public swapFees = true;

    // total wei reflected ever
    uint256 public ethReflectionBasis;
    uint256 public totalReflected;
    uint256 public totalTreasury;

    address payable public treasuryWallet;

    uint256 internal _totalSupply = 0;
    IUniswapV2Router02 internal _router = IUniswapV2Router02(address(0));
    address internal _pair;
    bool internal _inSwap = false;
    bool internal _inLiquidityAdd = false;
    bool public tradingActive = false;

    mapping(address => uint256) private _balances;
    mapping(address => bool) private _taxExcluded;
    mapping(address => uint256) public lastReflectionBasis;
    mapping(address => uint256) public cooldownExpiresAt;
    mapping(address => uint256) public taxReliefStartDate;

    constructor(
        address _uniswapFactory,
        address _uniswapRouter,
        address payable _treasuryWallet
    ) ERC20("AntiJeet Inu", "AJINU") Ownable() {
        addTaxExcluded(owner());
        addTaxExcluded(address(0));
        addTaxExcluded(_treasuryWallet);
        addTaxExcluded(address(this));

        treasuryWallet = _treasuryWallet;

        _router = IUniswapV2Router02(_uniswapRouter);
        IUniswapV2Factory uniswapContract = IUniswapV2Factory(_uniswapFactory);
        _pair = uniswapContract.createPair(address(this), _router.WETH());
    }

    /// @notice Change the address of the treasury wallet
    /// @param _treasuryWallet The new address of the treasury wallet
    function setTreasuryWallet(address payable _treasuryWallet) external onlyOwner() {
        treasuryWallet = _treasuryWallet;
    }

    /// @notice Change the treasury tax rate
    /// @param _treasuryRate The new treasury tax rate
    function setTreasuryRate(uint256 _treasuryRate) external onlyOwner() {
        require(_treasuryRate <= 100, "_treasuryRate cannot exceed 100%");
        treasuryRate = _treasuryRate;
    }

    /// @notice Change the reflection tax rate
    /// @param _reflectRate The new reflection tax rate
    function setReflectRate(uint256 _reflectRate) external onlyOwner() {
        require(_reflectRate <= 100, "_reflectRate cannot exceed 100%");
        reflectRate = _reflectRate;
    }

    /// @notice Change the minimum contract AJINU balance before `_swap` gets invoked
    /// @param _minTokenBalance The new minimum balance
    function setMinTokenBalance(uint256 _minTokenBalance) external onlyOwner() {
        minTokenBalance = _minTokenBalance;
    }

    /// @notice Change the cooldown period
    /// @param _cooldownPeriod The new cooldown period
    function setCooldownPeriod(uint256 _cooldownPeriod) external onlyOwner() {
        require(_cooldownPeriod <= 1 days && _cooldownPeriod > 0, "_cooldownPeriod must be less than 1 day");
        cooldownPeriod = _cooldownPeriod;
    }

    /// @notice Rescue AJINU from the treasury amount
    /// @dev Should only be used in an emergency
    /// @param _amount The amount of AJINU to rescue
    /// @param _recipient The recipient of the rescued AJINU
    function rescueTreasuryTokens(uint256 _amount, address _recipient) external onlyOwner() {
        require(_amount <= totalTreasury, "Amount cannot be greater than totalTreasury");
        _rawTransfer(address(this), _recipient, _amount);
        totalTreasury -= _amount;
    }

    /// @notice Rescue AJINU from the reflection amount
    /// @dev Should only be used in an emergency
    /// @param _amount The amount of AJINU to rescue
    /// @param _recipient The recipient of the rescued AJINU
    function rescueReflectionTokens(uint256 _amount, address _recipient) external onlyOwner() {
        require(_amount <= totalReflected, "Amount cannot be greater than totalReflected");
        _rawTransfer(address(this), _recipient, _amount);
        totalReflected -= _amount;
    }

    function addLiquidity(uint256 tokens) external payable onlyOwner() liquidityAdd {
        _mint(address(this), tokens);
        _approve(address(this), address(_router), tokens);

        _router.addLiquidityETH{value : msg.value}(
            address(this),
            tokens,
            0,
            0,
            owner(),
        // solhint-disable-next-line not-rely-on-time
            block.timestamp
        );
    }

    /// @notice Enables trading on Uniswap
    function enableTrading() external onlyOwner {
        tradingActive = true;
    }

    /// @notice Disables trading on Uniswap
    function disableTrading() external onlyOwner {
        tradingActive = false;
    }

    function addReflection() external payable {
        ethReflectionBasis += msg.value;
    }

    function isTaxExcluded(address account) public view returns (bool) {
        return _taxExcluded[account];
    }

    function addTaxExcluded(address account) public onlyOwner() {
        require(!isTaxExcluded(account), "Account must not be excluded");

        _taxExcluded[account] = true;
    }

    function removeTaxExcluded(address account) external onlyOwner() {
        require(isTaxExcluded(account), "Account must not be excluded");

        _taxExcluded[account] = false;
    }

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

    function _addBalance(address account, uint256 amount) internal {
        _balances[account] = _balances[account] + amount;
    }

    function _subtractBalance(address account, uint256 amount) internal {
        _balances[account] = _balances[account] - amount;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal override {
        if (isTaxExcluded(sender) || isTaxExcluded(recipient)) {
            _rawTransfer(sender, recipient, amount);
            return;
        }

        uint256 maxTxAmount = totalSupply() * _maxTransfer / 10000;

        if(_isMaxBuyTransferEnabled && sender == _pair) {
            require(amount <= maxTxAmount);
        }

        require(amount <= maxTxAmount || sender == _pair || _inLiquidityAdd || _inSwap || recipient == address(_router), "Exceeds max transaction amount");

        uint256 contractTokenBalance = balanceOf(address(this));
        bool overMinTokenBalance = contractTokenBalance >= minTokenBalance;

        if (contractTokenBalance >= maxTxAmount) {
            contractTokenBalance = maxTxAmount;
        }

        if (
            overMinTokenBalance &&
            !_inSwap &&
            sender != _pair &&
            swapFees
        ) {
            _swap(contractTokenBalance);
        }

        _claimReflection(payable(sender));
        _claimReflection(payable(recipient));

        uint256 send = amount;
        uint256 reflect;
        uint256 treasury;
        if (sender == _pair || recipient == _pair) {
            require(tradingActive, "Trading is not yet active");
            uint256 userTaxReliefStartDate = getTaxReliefStartDate(recipient);
            if (sender == _pair && userTaxReliefStartDate == 0) {
                taxReliefStartDate[recipient] = block.timestamp;
            }
            if (recipient == _pair) {
                // sell
                require(block.timestamp >= getCooldownExpiration(sender));
                (
                send,
                reflect,
                treasury
                ) = _getTaxAmounts(amount, getUserTaxRelief(sender));

                // set cooldown period
                cooldownExpiresAt[sender] = block.timestamp + cooldownPeriod;
                // reset taxReliefStartDate
                if (balanceOf(sender) - amount < 1 ether) {
                    taxReliefStartDate[sender] = 0;
                }

                _takeTaxes(sender, treasury, reflect);
            }
        }
        _rawTransfer(sender, recipient, send);
    }

    function getCooldownExpiration(address addr) public view returns (uint256) {
        return cooldownExpiresAt[addr];
    }

    function getTaxReliefStartDate(address addr) public view returns (uint256) {
        return taxReliefStartDate[addr];
    }

    function getUserTaxRelief(address addr) public view returns (uint8) {
        uint256 userTaxReliefStartDate = getTaxReliefStartDate(addr);

        // get tax relief
        uint8 taxReliefInterval = 0;

        if(userTaxReliefStartDate > 0) {
            // calculate the difference in weeks between the current time vs when the users tax relief starts
            uint256 taxReliefDateDifference = (block.timestamp - userTaxReliefStartDate) / _taxReliefInterval;
            if(taxReliefDateDifference > 4) {
                taxReliefInterval = 4;
            } else {
                taxReliefInterval = uint8(taxReliefDateDifference);
            }
        }

        return taxReliefInterval;
    }

    function unclaimedReflection(address addr) public view returns (uint256) {
        if (addr == _pair || addr == address(_router)) return 0;

        uint256 basisDifference = ethReflectionBasis - lastReflectionBasis[addr];
        return basisDifference * balanceOf(addr) / _totalSupply;
    }

    /// @notice Claims reflection pool ETH
    /// @param addr The address to claim the reflection for
    function _claimReflection(address payable addr) internal {
        uint256 unclaimed = unclaimedReflection(addr);
        lastReflectionBasis[addr] = ethReflectionBasis;
        if (unclaimed > 0) {
            addr.transfer(unclaimed);
        }
    }

    function claimReflection() external {
        _claimReflection(payable(msg.sender));
    }

    /// @notice Perform a Uniswap v2 swap from AJINU to ETH and handle tax distribution
    /// @param amount The amount of AJINU to swap in wei
    /// @dev `amount` is always <= this contract's ETH balance. Calculate and distribute treasury and reflection taxes
    function _swap(uint256 amount) internal lockSwap {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _router.WETH();

        _approve(address(this), address(_router), amount);

        uint256 contractEthBalance = address(this).balance;

        _router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            amount,
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 tradeValue = address(this).balance - contractEthBalance;

        uint256 totalTaxes = totalTreasury + totalReflected;
        uint256 treasuryAmount = amount * totalTreasury / totalTaxes;
        uint256 reflectedAmount = amount - treasuryAmount;

        uint256 treasuryEth = tradeValue * totalTreasury / totalTaxes;
        uint256 reflectedEth = tradeValue - treasuryEth;

        if (treasuryEth > 0) {
            treasuryWallet.transfer(treasuryEth);
        }
        totalTreasury = totalTreasury - treasuryAmount;
        totalReflected = totalReflected - reflectedAmount;
        ethReflectionBasis = ethReflectionBasis + reflectedEth;
    }

    function swapAll() external onlyOwner() {
        uint256 maxTxAmount = totalSupply() * _maxTransfer / 10000;
        uint256 contractTokenBalance = balanceOf(address(this));

        if (contractTokenBalance >= maxTxAmount)
        {
            contractTokenBalance = maxTxAmount;
        }

        if (
            !_inSwap
        ) {
            _swap(contractTokenBalance);
        }
    }

    function withdrawAll() external onlyOwner() {
        payable(owner()).transfer(address(this).balance);
    }

    /// @notice Transfers AJINU from an account to this contract for taxes
    /// @param _account The account to transfer AJINU from
    /// @param _treasuryAmount The amount of treasury tax to transfer
    /// @param _reflectAmount The amount of reflection tax to transfer
    function _takeTaxes(
        address _account,
        uint256 _treasuryAmount,
        uint256 _reflectAmount
    ) internal {
        require(_account != address(0), "taxation from the zero address");

        uint256 totalAmount = _treasuryAmount + _reflectAmount;
        _rawTransfer(_account, address(this), totalAmount);
        totalTreasury += _treasuryAmount;
        totalReflected += _reflectAmount;
    }

    /// @notice Get a breakdown of send and tax amounts
    /// @param amount The amount to tax in wei
    /// @return send The raw amount to send
    /// @return reflect The raw reflection tax amount
    /// @return treasury The raw treasury tax amount
    function _getTaxAmounts(uint256 amount, uint8 taxReliefInterval)
    internal
    view
    returns (
        uint256 send,
        uint256 reflect,
        uint256 treasury
    )
    {
        uint256 taxRelief = 1000;

        if(taxReliefInterval == 1) {
            taxRelief = 833;
        } else if (taxReliefInterval == 2) {
            taxRelief = 666;
        } else if (taxReliefInterval == 3) {
            taxRelief = 500;
        } else if (taxReliefInterval == 4) {
            taxRelief = 333;
        }

        reflect = amount * reflectRate * taxRelief / 100000;
        treasury = amount * treasuryRate * taxRelief / 100000;
        send = amount - reflect - treasury;
    }

    // modified from OpenZeppelin ERC20
    function _rawTransfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        require(sender != address(0), "transfer from the zero address");
        require(recipient != address(0), "transfer to the zero address");

        uint256 senderBalance = balanceOf(sender);
        require(senderBalance >= amount, "transfer amount exceeds balance");
    unchecked {
        _subtractBalance(sender, amount);
    }
        _addBalance(recipient, amount);

        emit Transfer(sender, recipient, amount);
    }

    function setMaxTransfer(uint256 maxTransfer) external onlyOwner() {
        require(maxTransfer < 2000, "Cannot set max transfer above 20 percent");
        _maxTransfer = maxTransfer;
    }

    function setIsMaxBuyTransferEnabled(bool isMaxBuyTransferEnabled) external onlyOwner() {
        _isMaxBuyTransferEnabled = isMaxBuyTransferEnabled;
    }

    /// @notice Enable or disable whether swap occurs during `_transfer`
    /// @param _swapFees If true, enables swap during `_transfer`
    function setSwapFees(bool _swapFees) external onlyOwner() {
        swapFees = _swapFees;
    }

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

    function _mint(address account, uint256 amount) internal override {
        require(_totalSupply + amount <= MAX_SUPPLY, "Max supply exceeded");
        _totalSupply += amount;
        _addBalance(account, amount);
        emit Transfer(address(0), account, amount);
    }

    function mint(address account, uint256 amount) external onlyOwner() {
        _mint(account, amount);
    }

    function airdrop(address[] memory accounts, uint256[] memory amounts) external onlyOwner() {
        require(accounts.length == amounts.length, "array lengths must match");

        for (uint256 i = 0; i < accounts.length; i++) {
            _mint(accounts[i], amounts[i]);
        }
    }

    receive() external payable {}
}

Read Contract

MAX_SUPPLY 0x32cb6b0c → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
cooldownExpiresAt 0xb825aedc → uint256
cooldownPeriod 0x04646a49 → uint256
decimals 0x313ce567 → uint8
ethReflectionBasis 0x61db2446 → uint256
getCooldownExpiration 0xf0869f72 → uint256
getTaxReliefStartDate 0x79cde594 → uint256
getUserTaxRelief 0xd58a5fc4 → uint8
isTaxExcluded 0x69ec8e9c → bool
lastReflectionBasis 0x9579d514 → uint256
minTokenBalance 0x5b78f35f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
reflectRate 0xbe30877f → uint256
swapFees 0xb9ccf21d → bool
symbol 0x95d89b41 → string
taxReliefStartDate 0x349c70d5 → uint256
totalReflected 0x3732e214 → uint256
totalSupply 0x18160ddd → uint256
totalTreasury 0x897534a9 → uint256
tradingActive 0xbbc0c742 → bool
treasuryRate 0xe4b72516 → uint256
treasuryWallet 0x4626402b → address
unclaimedReflection 0x5facf12e → uint256

Write Contract 28 functions

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

addLiquidity 0x51c6590a
uint256 tokens
addReflection 0x4e6be544
No parameters
addTaxExcluded 0x4fb0b7e7
address account
airdrop 0x67243482
address[] accounts
uint256[] amounts
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
claimReflection 0x37563293
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTrading 0x17700f01
No parameters
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
mint 0x40c10f19
address account
uint256 amount
removeTaxExcluded 0xb41356c9
address account
renounceOwnership 0x715018a6
No parameters
rescueReflectionTokens 0x0126ec50
uint256 _amount
address _recipient
rescueTreasuryTokens 0x9ec09e1e
uint256 _amount
address _recipient
setCooldownPeriod 0x80ea3de1
uint256 _cooldownPeriod
setIsMaxBuyTransferEnabled 0xe5551cde
bool isMaxBuyTransferEnabled
setMaxTransfer 0x77348de9
uint256 maxTransfer
setMinTokenBalance 0xb0ac1571
uint256 _minTokenBalance
setReflectRate 0xb1284d34
uint256 _reflectRate
setSwapFees 0xe3f9fc63
bool _swapFees
setTreasuryRate 0xd0bf9c54
uint256 _treasuryRate
setTreasuryWallet 0xa8602fea
address _treasuryWallet
swapAll 0x3e9ffbea
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawAll 0x853828b6
No parameters

Token Balances (1)

View Transfers →
WETH 0

Recent Transactions

No transactions found for this address