Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x6E83E5C738dB6805Ce334d586c2575deEcA2E8c9
Balance 0 ETH
Nonce 1
Code Size 20017 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

20017 bytes
0x6080604052600436106103035760003560e01c80637571336a11610190578063c0246668116100dc578063dd62ed3e11610095578063f11a24d31161006f578063f11a24d314610bab578063f2fde38b14610bd6578063f637434214610bff578063f8b45b0514610c2a5761030a565b8063dd62ed3e14610b18578063dfbb2d5414610b55578063e2f4560514610b805761030a565b8063c024666814610a08578063c18bc19514610a31578063c876d0b914610a5a578063c8c8ebe414610a85578063d257b34f14610ab0578063d85ba06314610aed5761030a565b8063975d71e211610149578063a9059cbb11610123578063a9059cbb1461093a578063b62496f514610977578063bbc0c742146109b4578063bf933c78146109df5761030a565b8063975d71e2146108a95780639a7a23d6146108d4578063a457c2d7146108fd5761030a565b80637571336a146107bd5780637ab43983146107e65780638a8c523c146108115780638da5cb5b146108285780638ea5220f1461085357806395d89b411461087e5761030a565b80632b2c19f31161024f5780634fbee193116102085780636ddd1713116101e25780636ddd17131461071357806370a082311461073e578063715018a61461077b578063751039fc146107925761030a565b80634fbee1931461068257806366ca9b83146106bf5780636a486a8e146106e85761030a565b80632b2c19f31461056e578063313ce5671461059957806339509351146105c457806349bd5a5e1461060157806349fd5dd81461062c5780634a62bb65146106575761030a565b806318160ddd116102bc5780631a8145bb116102965780631a8145bb146104b2578063203e727e146104dd57806323b872dd1461050657806327c8f835146105435761030a565b806318160ddd146104335780631816467f1461045e57806319570aad146104875761030a565b806302dbd8f81461030f578063047fc9aa1461033857806306fdde0314610363578063095ea7b31461038e57806310d5de53146103cb5780631694505e146104085761030a565b3661030a57005b600080fd5b34801561031b57600080fd5b5061033660048036038101906103319190613981565b610c55565b005b34801561034457600080fd5b5061034d610d5a565b60405161035a91906139d0565b60405180910390f35b34801561036f57600080fd5b50610378610d60565b6040516103859190613a84565b60405180910390f35b34801561039a57600080fd5b506103b560048036038101906103b09190613b04565b610df2565b6040516103c29190613b5f565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed9190613b7a565b610e10565b6040516103ff9190613b5f565b60405180910390f35b34801561041457600080fd5b5061041d610e30565b60405161042a9190613c06565b60405180910390f35b34801561043f57600080fd5b50610448610e54565b60405161045591906139d0565b60405180910390f35b34801561046a57600080fd5b5061048560048036038101906104809190613b7a565b610e5e565b005b34801561049357600080fd5b5061049c610f39565b6040516104a991906139d0565b60405180910390f35b3480156104be57600080fd5b506104c7610f3f565b6040516104d491906139d0565b60405180910390f35b3480156104e957600080fd5b5061050460048036038101906104ff9190613c21565b610f45565b005b34801561051257600080fd5b5061052d60048036038101906105289190613c4e565b611079565b60405161053a9190613b5f565b60405180910390f35b34801561054f57600080fd5b50610558611152565b6040516105659190613cb0565b60405180910390f35b34801561057a57600080fd5b50610583611158565b6040516105909190613cb0565b60405180910390f35b3480156105a557600080fd5b506105ae61117e565b6040516105bb9190613ce7565b60405180910390f35b3480156105d057600080fd5b506105eb60048036038101906105e69190613b04565b611187565b6040516105f89190613b5f565b60405180910390f35b34801561060d57600080fd5b5061061661123a565b6040516106239190613cb0565b60405180910390f35b34801561063857600080fd5b5061064161125e565b60405161064e91906139d0565b60405180910390f35b34801561066357600080fd5b5061066c611264565b6040516106799190613b5f565b60405180910390f35b34801561068e57600080fd5b506106a960048036038101906106a49190613b7a565b611277565b6040516106b69190613b5f565b60405180910390f35b3480156106cb57600080fd5b506106e660048036038101906106e19190613981565b6112cd565b005b3480156106f457600080fd5b506106fd6113d2565b60405161070a91906139d0565b60405180910390f35b34801561071f57600080fd5b506107286113d8565b6040516107359190613b5f565b60405180910390f35b34801561074a57600080fd5b5061076560048036038101906107609190613b7a565b6113eb565b60405161077291906139d0565b60405180910390f35b34801561078757600080fd5b50610790611433565b005b34801561079e57600080fd5b506107a761158b565b6040516107b49190613b5f565b60405180910390f35b3480156107c957600080fd5b506107e460048036038101906107df9190613d2e565b611646565b005b3480156107f257600080fd5b506107fb611738565b60405161080891906139d0565b60405180910390f35b34801561081d57600080fd5b5061082661173e565b005b34801561083457600080fd5b5061083d61180d565b60405161084a9190613cb0565b60405180910390f35b34801561085f57600080fd5b50610868611837565b6040516108759190613cb0565b60405180910390f35b34801561088a57600080fd5b5061089361185d565b6040516108a09190613a84565b60405180910390f35b3480156108b557600080fd5b506108be6118ef565b6040516108cb91906139d0565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f69190613d2e565b6118f5565b005b34801561090957600080fd5b50610924600480360381019061091f9190613b04565b611a29565b6040516109319190613b5f565b60405180910390f35b34801561094657600080fd5b50610961600480360381019061095c9190613b04565b611af6565b60405161096e9190613b5f565b60405180910390f35b34801561098357600080fd5b5061099e60048036038101906109999190613b7a565b611b14565b6040516109ab9190613b5f565b60405180910390f35b3480156109c057600080fd5b506109c9611b34565b6040516109d69190613b5f565b60405180910390f35b3480156109eb57600080fd5b50610a066004803603810190610a019190613b7a565b611b47565b005b348015610a1457600080fd5b50610a2f6004803603810190610a2a9190613d2e565b611c22565b005b348015610a3d57600080fd5b50610a586004803603810190610a539190613c21565b611d62565b005b348015610a6657600080fd5b50610a6f611e96565b604051610a7c9190613b5f565b60405180910390f35b348015610a9157600080fd5b50610a9a611ea9565b604051610aa791906139d0565b60405180910390f35b348015610abc57600080fd5b50610ad76004803603810190610ad29190613c21565b611eaf565b604051610ae49190613b5f565b60405180910390f35b348015610af957600080fd5b50610b0261201f565b604051610b0f91906139d0565b60405180910390f35b348015610b2457600080fd5b50610b3f6004803603810190610b3a9190613d6e565b612025565b604051610b4c91906139d0565b60405180910390f35b348015610b6157600080fd5b50610b6a6120ac565b604051610b7791906139d0565b60405180910390f35b348015610b8c57600080fd5b50610b956120b2565b604051610ba291906139d0565b60405180910390f35b348015610bb757600080fd5b50610bc06120b8565b604051610bcd91906139d0565b60405180910390f35b348015610be257600080fd5b50610bfd6004803603810190610bf89190613b7a565b6120be565b005b348015610c0b57600080fd5b50610c14612285565b604051610c2191906139d0565b60405180910390f35b348015610c3657600080fd5b50610c3f61228b565b604051610c4c91906139d0565b60405180910390f35b610c5d6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce390613dfa565b60405180910390fd5b8160108190555080601181905550601154601054610d0a9190613e49565b600f819055506004600f541115610d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4d90613eeb565b60405180910390fd5b5050565b60165481565b606060038054610d6f90613f3a565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9b90613f3a565b8015610de85780601f10610dbd57610100808354040283529160200191610de8565b820191906000526020600020905b815481529060010190602001808311610dcb57829003601f168201915b5050505050905090565b6000610e06610dff6122ef565b84846122f7565b6001905092915050565b60186020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000600254905090565b610e666122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eec90613dfa565b60405180910390fd5b80600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60135481565b60125481565b610f4d6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610fdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd390613dfa565b60405180910390fd5b6009600a610fea919061409f565b6103e86001610ff7610e54565b61100191906140ea565b61100b9190614173565b6110159190614173565b811015611057576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104e90614216565b60405180910390fd5b6009600a611065919061409f565b8161107091906140ea565b60088190555050565b60006110868484846124c2565b611147846110926122ef565b61114285604051806060016040528060288152602001614daf60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006110f86122ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f2e9092919063ffffffff16565b6122f7565b600190509392505050565b61dead81565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006009905090565b60006112306111946122ef565b8461122b85600160006111a56122ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461229190919063ffffffff16565b6122f7565b6001905092915050565b7f000000000000000000000000351e05c3bd49193718d591d068495fc29b10dc2b81565b60115481565b600b60009054906101000a900460ff1681565b6000601760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6112d56122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611364576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135b90613dfa565b60405180910390fd5b81600d8190555080600e81905550600e54600d546113829190613e49565b600c819055506004600c5411156113ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c590613eeb565b60405180910390fd5b5050565b600f5481565b600b60029054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61143b6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c190613dfa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60006115956122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161b90613dfa565b60405180910390fd5b6000600b60006101000a81548160ff0219169083151502179055506001905090565b61164e6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146116dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d490613dfa565b60405180910390fd5b80601860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60145481565b6117466122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cc90613dfa565b60405180910390fd5b6001600b60016101000a81548160ff0219169083151502179055506001600b60026101000a81548160ff021916908315150217905550565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606004805461186c90613f3a565b80601f016020809104026020016040519081016040528092919081815260200182805461189890613f3a565b80156118e55780601f106118ba576101008083540402835291602001916118e5565b820191906000526020600020905b8154815290600101906020018083116118c857829003601f168201915b5050505050905090565b60155481565b6118fd6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461198c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198390613dfa565b60405180910390fd5b7f000000000000000000000000351e05c3bd49193718d591d068495fc29b10dc2b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a12906142a8565b60405180910390fd5b611a258282612f92565b5050565b6000611aec611a366122ef565b84611ae785604051806060016040528060258152602001614dd76025913960016000611a606122ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f2e9092919063ffffffff16565b6122f7565b6001905092915050565b6000611b0a611b036122ef565b84846124c2565b6001905092915050565b60196020528060005260406000206000915054906101000a900460ff1681565b600b60019054906101000a900460ff1681565b611b4f6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd590613dfa565b60405180910390fd5b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611c2a6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611cb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb090613dfa565b60405180910390fd5b80601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df782604051611d569190613b5f565b60405180910390a25050565b611d6a6122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611df9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df090613dfa565b60405180910390fd5b6009600a611e07919061409f565b6103e86005611e14610e54565b611e1e91906140ea565b611e289190614173565b611e329190614173565b811015611e74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6b9061433a565b60405180910390fd5b6009600a611e82919061409f565b81611e8d91906140ea565b600a8190555050565b600b60039054906101000a900460ff1681565b60085481565b6000611eb96122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3f90613dfa565b60405180910390fd5b620186a06001611f56610e54565b611f6091906140ea565b611f6a9190614173565b821015611fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa3906143cc565b60405180910390fd5b6103e86005611fb9610e54565b611fc391906140ea565b611fcd9190614173565b82111561200f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120069061445e565b60405180910390fd5b8160098190555060019050919050565b600c5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600e5481565b60095481565b600d5481565b6120c66122ef565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214c90613dfa565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156121c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121bc906144f0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60105481565b600a5481565b60008082846122a09190613e49565b9050838110156122e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122dc9061455c565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612367576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235e906145ee565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ce90614680565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516124b591906139d0565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612532576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252990614712565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612599906147a4565b60405180910390fd5b60008114156125bc576125b783836000613033565b612f29565b600b60009054906101000a900460ff1615612ab7576125d961180d565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612647575061261761180d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126805750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126ba575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156126d35750600560149054906101000a900460ff16155b15612ab657600b60019054906101000a900460ff166127cd57601760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061278d5750601760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6127cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c390614810565b60405180910390fd5b5b601960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156128705750601860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612917576008548111156128ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b1906148a2565b60405180910390fd5b600a546128c6836113eb565b826128d19190613e49565b1115612912576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129099061490e565b60405180910390fd5b612ab5565b601960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156129ba5750601860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612a0957600854811115612a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129fb906149a0565b60405180910390fd5b612ab4565b601860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612ab357600a54612a66836113eb565b82612a719190613e49565b1115612ab2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa99061490e565b60405180910390fd5b5b5b5b5b5b6000612ac2306113eb565b905060006009548210159050808015612ae75750600b60029054906101000a900460ff165b8015612b005750600560149054906101000a900460ff16155b8015612b565750601960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612bac5750601760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b8015612c025750601760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612c46576001600560146101000a81548160ff021916908315150217905550612c2a6132c8565b6000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612cfc5750601760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612d0657600090505b60008115612f1957601960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612d6957506000600f54115b15612e0357612d966064612d88600f548861349890919063ffffffff16565b61351390919063ffffffff16565b9050600f5460105482612da991906140ea565b612db39190614173565b60126000828254612dc49190613e49565b92505081905550600f5460115482612ddc91906140ea565b612de69190614173565b60136000828254612df79190613e49565b92505081905550612ef5565b601960008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612e5e57506000600c54115b15612ef457612e8b6064612e7d600c548861349890919063ffffffff16565b61351390919063ffffffff16565b9050600c54600d5482612e9e91906140ea565b612ea89190614173565b60126000828254612eb99190613e49565b92505081905550600c54600e5482612ed191906140ea565b612edb9190614173565b60136000828254612eec9190613e49565b925050819055505b5b6000811115612f0a57612f09873083613033565b5b8085612f1691906149c0565b94505b612f24878787613033565b505050505b505050565b6000838311158290612f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6d9190613a84565b60405180910390fd5b5060008385612f8591906149c0565b9050809150509392505050565b80601960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156130a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309a90614712565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613113576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310a906147a4565b60405180910390fd5b61311e83838361355d565b61318981604051806060016040528060268152602001614d89602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f2e9092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061321c816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461229190919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516132bb91906139d0565b60405180910390a3505050565b60006132d3306113eb565b905060006013546012546132e79190613e49565b90506000808314806132f95750600082145b1561330657505050613496565b600560095461331591906140ea565b83111561332e57600560095461332b91906140ea565b92505b60006002836012548661334191906140ea565b61334b9190614173565b6133559190614173565b9050600061336c828661356290919063ffffffff16565b9050600047905061337c826135ac565b6000613391824761356290919063ffffffff16565b905060006133bc876133ae6013548561349890919063ffffffff16565b61351390919063ffffffff16565b9050600081836133cc91906149c0565b9050600060128190555060006013819055506000861180156133ee5750600081115b156133fe576133fd86826137f8565b5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161344490614a25565b60006040518083038185875af1925050503d8060008114613481576040519150601f19603f3d011682016040523d82523d6000602084013e613486565b606091505b5050809750505050505050505050505b565b6000808314156134ab576000905061350d565b600082846134b991906140ea565b90508284826134c89190614173565b14613508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ff90614aac565b60405180910390fd5b809150505b92915050565b600061355583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506138e3565b905092915050565b505050565b60006135a483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f2e565b905092915050565b6000600267ffffffffffffffff8111156135c9576135c8614acc565b5b6040519080825280602002602001820160405280156135f75781602001602082028036833780820191505090505b509050308160008151811061360f5761360e614afb565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156136af57600080fd5b505afa1580156136c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136e79190614b3f565b816001815181106136fb576136fa614afb565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613760307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846122f7565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b81526004016137c2959493929190614c65565b600060405180830381600087803b1580156137dc57600080fd5b505af11580156137f0573d6000803e3d6000fd5b505050505050565b613823307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d846122f7565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71982308560008061dead426040518863ffffffff1660e01b815260040161388a96959493929190614cbf565b6060604051808303818588803b1580156138a357600080fd5b505af11580156138b7573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906138dc9190614d35565b5050505050565b6000808311829061392a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139219190613a84565b60405180910390fd5b50600083856139399190614173565b9050809150509392505050565b600080fd5b6000819050919050565b61395e8161394b565b811461396957600080fd5b50565b60008135905061397b81613955565b92915050565b6000806040838503121561399857613997613946565b5b60006139a68582860161396c565b92505060206139b78582860161396c565b9150509250929050565b6139ca8161394b565b82525050565b60006020820190506139e560008301846139c1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a25578082015181840152602081019050613a0a565b83811115613a34576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a56826139eb565b613a6081856139f6565b9350613a70818560208601613a07565b613a7981613a3a565b840191505092915050565b60006020820190508181036000830152613a9e8184613a4b565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613ad182613aa6565b9050919050565b613ae181613ac6565b8114613aec57600080fd5b50565b600081359050613afe81613ad8565b92915050565b60008060408385031215613b1b57613b1a613946565b5b6000613b2985828601613aef565b9250506020613b3a8582860161396c565b9150509250929050565b60008115159050919050565b613b5981613b44565b82525050565b6000602082019050613b746000830184613b50565b92915050565b600060208284031215613b9057613b8f613946565b5b6000613b9e84828501613aef565b91505092915050565b6000819050919050565b6000613bcc613bc7613bc284613aa6565b613ba7565b613aa6565b9050919050565b6000613bde82613bb1565b9050919050565b6000613bf082613bd3565b9050919050565b613c0081613be5565b82525050565b6000602082019050613c1b6000830184613bf7565b92915050565b600060208284031215613c3757613c36613946565b5b6000613c458482850161396c565b91505092915050565b600080600060608486031215613c6757613c66613946565b5b6000613c7586828701613aef565b9350506020613c8686828701613aef565b9250506040613c978682870161396c565b9150509250925092565b613caa81613ac6565b82525050565b6000602082019050613cc56000830184613ca1565b92915050565b600060ff82169050919050565b613ce181613ccb565b82525050565b6000602082019050613cfc6000830184613cd8565b92915050565b613d0b81613b44565b8114613d1657600080fd5b50565b600081359050613d2881613d02565b92915050565b60008060408385031215613d4557613d44613946565b5b6000613d5385828601613aef565b9250506020613d6485828601613d19565b9150509250929050565b60008060408385031215613d8557613d84613946565b5b6000613d9385828601613aef565b9250506020613da485828601613aef565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613de46020836139f6565b9150613def82613dae565b602082019050919050565b60006020820190508181036000830152613e1381613dd7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e548261394b565b9150613e5f8361394b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e9457613e93613e1a565b5b828201905092915050565b7f4d757374206b6565702066656573206174203425206f72206c65737300000000600082015250565b6000613ed5601c836139f6565b9150613ee082613e9f565b602082019050919050565b60006020820190508181036000830152613f0481613ec8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f5257607f821691505b60208210811415613f6657613f65613f0b565b5b50919050565b60008160011c9050919050565b6000808291508390505b6001851115613fc357808604811115613f9f57613f9e613e1a565b5b6001851615613fae5780820291505b8081029050613fbc85613f6c565b9450613f83565b94509492505050565b600082613fdc5760019050614098565b81613fea5760009050614098565b8160018114614000576002811461400a57614039565b6001915050614098565b60ff84111561401c5761401b613e1a565b5b8360020a91508482111561403357614032613e1a565b5b50614098565b5060208310610133831016604e8410600b841016171561406e5782820a90508381111561406957614068613e1a565b5b614098565b61407b8484846001613f79565b9250905081840481111561409257614091613e1a565b5b81810290505b9392505050565b60006140aa8261394b565b91506140b583613ccb565b92506140e27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613fcc565b905092915050565b60006140f58261394b565b91506141008361394b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561413957614138613e1a565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061417e8261394b565b91506141898361394b565b92508261419957614198614144565b5b828204905092915050565b7f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060008201527f6c6f776572207468616e20302e31250000000000000000000000000000000000602082015250565b6000614200602f836139f6565b915061420b826141a4565b604082019050919050565b6000602082019050818103600083015261422f816141f3565b9050919050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060008201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b60006142926039836139f6565b915061429d82614236565b604082019050919050565b600060208201905081810360008301526142c181614285565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f302e352500000000000000000000000000000000000000000000000000000000602082015250565b60006143246024836139f6565b915061432f826142c8565b604082019050919050565b6000602082019050818103600083015261435381614317565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e3030312520746f74616c20737570706c792e0000000000000000000000602082015250565b60006143b66035836139f6565b91506143c18261435a565b604082019050919050565b600060208201905081810360008301526143e5816143a9565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206869676865722074686160008201527f6e20302e352520746f74616c20737570706c792e000000000000000000000000602082015250565b60006144486034836139f6565b9150614453826143ec565b604082019050919050565b600060208201905081810360008301526144778161443b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006144da6026836139f6565b91506144e58261447e565b604082019050919050565b60006020820190508181036000830152614509816144cd565b9050919050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b6000614546601b836139f6565b915061455182614510565b602082019050919050565b6000602082019050818103600083015261457581614539565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006145d86024836139f6565b91506145e38261457c565b604082019050919050565b60006020820190508181036000830152614607816145cb565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b600061466a6022836139f6565b91506146758261460e565b604082019050919050565b600060208201905081810360008301526146998161465d565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006146fc6025836139f6565b9150614707826146a0565b604082019050919050565b6000602082019050818103600083015261472b816146ef565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b600061478e6023836139f6565b915061479982614732565b604082019050919050565b600060208201905081810360008301526147bd81614781565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b60006147fa6016836139f6565b9150614805826147c4565b602082019050919050565b60006020820190508181036000830152614829816147ed565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b600061488c6035836139f6565b915061489782614830565b604082019050919050565b600060208201905081810360008301526148bb8161487f565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006148f86013836139f6565b9150614903826148c2565b602082019050919050565b60006020820190508181036000830152614927816148eb565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b600061498a6036836139f6565b91506149958261492e565b604082019050919050565b600060208201905081810360008301526149b98161497d565b9050919050565b60006149cb8261394b565b91506149d68361394b565b9250828210156149e9576149e8613e1a565b5b828203905092915050565b600081905092915050565b50565b6000614a0f6000836149f4565b9150614a1a826149ff565b600082019050919050565b6000614a3082614a02565b9150819050919050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b6000614a966021836139f6565b9150614aa182614a3a565b604082019050919050565b60006020820190508181036000830152614ac581614a89565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050614b3981613ad8565b92915050565b600060208284031215614b5557614b54613946565b5b6000614b6384828501614b2a565b91505092915050565b6000819050919050565b6000614b91614b8c614b8784614b6c565b613ba7565b61394b565b9050919050565b614ba181614b76565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614bdc81613ac6565b82525050565b6000614bee8383614bd3565b60208301905092915050565b6000602082019050919050565b6000614c1282614ba7565b614c1c8185614bb2565b9350614c2783614bc3565b8060005b83811015614c58578151614c3f8882614be2565b9750614c4a83614bfa565b925050600181019050614c2b565b5085935050505092915050565b600060a082019050614c7a60008301886139c1565b614c876020830187614b98565b8181036040830152614c998186614c07565b9050614ca86060830185613ca1565b614cb560808301846139c1565b9695505050505050565b600060c082019050614cd46000830189613ca1565b614ce160208301886139c1565b614cee6040830187614b98565b614cfb6060830186614b98565b614d086080830185613ca1565b614d1560a08301846139c1565b979650505050505050565b600081519050614d2f81613955565b92915050565b600080600060608486031215614d4e57614d4d613946565b5b6000614d5c86828701614d20565b9350506020614d6d86828701614d20565b9250506040614d7e86828701614d20565b915050925092509256fe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220570210fc5e140a1148c4880b3338f3f9dd41e4062eae803b8392be4fe1e4b3d764736f6c63430008090033

Verified Source Code Partial Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: No
KidsInu.sol 1238 lines
/*

https://twitter.com/KidsInu

4% tax for each buy and sell where the following is allocated per swap:
- 2% added to liquidity
- 2% sent to "Save the Children"
  ETH address: 0x494c42b7E9CC25735a601A71513710b4F3969C8C via "The Giving Block"
  Link: https://support.savethechildren.org/site/SPageNavigator/donation__crypto.html
  Donation history and screenshots will be posted in main website at http://kidsinu.eth

*/

// SPDX-License-Identifier: Unlicensed

pragma solidity 0.8.9;

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

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

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

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

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

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

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

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


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;

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

    /**
     * @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: mint to the zero address");

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

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



library SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    /**
     * @dev Multiplies two int256 variables and fails on overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;

        // Detect overflow when multiplying MIN_INT256 with -1
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }

    /**
     * @dev Division of two int256 variables and fails on overflow.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        // Prevent overflow when dividing MIN_INT256 by -1
        require(b != -1 || a != MIN_INT256);

        // Solidity already throws when dividing by 0.
        return a / b;
    }

    /**
     * @dev Subtracts two int256 variables and fails on overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }

    /**
     * @dev Adds two int256 variables and fails on overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    /**
     * @dev Converts to absolute value, and fails on overflow.
     */
    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }


    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}


interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

contract KidsInu is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public constant deadAddress = address(0xdead);

    bool private swapping;

    address public devWallet;
    address public GivingBlockWallet;

    uint8 constant _decimals = 9;
    
    uint256 public maxTransactionAmount;
    uint256 public swapTokensAtAmount;
    uint256 public maxWallet;

    bool public limitsInEffect = true;
    bool public tradingActive = false;
    bool public swapEnabled = false;

    bool public transferDelayEnabled = false;

    uint256 public buyTotalFees;
    uint256 public buyLiquidityFee;
    uint256 public buyGivingBlockWalletFee;
    
    uint256 public sellTotalFees;
    uint256 public sellLiquidityFee;
    uint256 public sellGivingBlockWalletFee;
    
    uint256 public tokensForLiquidity;
    uint256 public tokensForGivingBlockWallet;

    uint256 public walletDigit;
    uint256 public transDigit;
    uint256 public supply;
    
    /******************/

    // exlcude from fees and max transaction amount
    mapping (address => bool) private _isExcludedFromFees;
    mapping (address => bool) public _isExcludedMaxTransactionAmount;

    // store addresses that a automatic market maker pairs. Any transfer *to* these addresses
    // could be subject to a maximum transfer amount
    mapping (address => bool) public automatedMarketMakerPairs;

    event UpdateUniswapV2Router(address indexed newAddress, address indexed oldAddress);

    event ExcludeFromFees(address indexed account, bool isExcluded);

    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    constructor() ERC20("Kids Inu", "KINU") {

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        uniswapV2Router = _uniswapV2Router;
        
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
        
        uint256 _buyLiquidityFee = 2;
        uint256 _buyGivingBlockWalletFee = 2;

        uint256 _sellLiquidityFee = 2;
        uint256 _sellGivingBlockWalletFee = 2;
        
        uint256 totalSupply = 4 * 1e9 * 10 ** _decimals;
        supply += totalSupply;
        
        walletDigit = 25;
        transDigit = 25;

        maxTransactionAmount = supply * transDigit / 1000;
        swapTokensAtAmount = supply * 75 / 100000; // 0.075% swap wallet;
        maxWallet = supply * walletDigit / 1000;

        buyLiquidityFee = _buyLiquidityFee;
        buyGivingBlockWalletFee = _buyGivingBlockWalletFee;
        buyTotalFees = buyLiquidityFee + buyGivingBlockWalletFee;
        
        sellLiquidityFee = _sellLiquidityFee;
        sellGivingBlockWalletFee = _sellGivingBlockWalletFee;
        sellTotalFees = sellLiquidityFee + sellGivingBlockWalletFee;
        
        GivingBlockWallet = 0x494c42b7E9CC25735a601A71513710b4F3969C8C; //set as GivingBlock wallet

        // exclude from paying fees or having max transaction amount
        excludeFromFees(owner(), true);
        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        
        excludeFromMaxTransaction(owner(), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);

        _approve(owner(), address(uniswapV2Router), totalSupply);

        _mint(msg.sender, 4 * 1e9 * 10 ** _decimals);

        tradingActive = false;
        swapEnabled = false;

    }

    receive() external payable {

  	}

        // once enabled, can never be turned off
    function enableTrading() external onlyOwner {
        tradingActive = true;
        swapEnabled = true;
    }

    // remove limits after token is stable
    function removeLimits() external onlyOwner returns (bool){
        limitsInEffect = false;
        return true;
    }
    
     // change the minimum amount of tokens to sell from fees
    function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool){
  	    require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply.");
  	    require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply.");
  	    swapTokensAtAmount = newAmount;
  	    return true;
  	}
    
    function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 1 / 1000)/(10 ** _decimals), "Cannot set maxTransactionAmount lower than 0.1%");
        maxTransactionAmount = newNum * (10** _decimals);
    }

    function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
        require(newNum >= (totalSupply() * 5 / 1000)/(10 ** _decimals), "Cannot set maxWallet lower than 0.5%");
        maxWallet = newNum * (10** _decimals);
    }
    
    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }

    function updateBuyFees(uint256 _liquidityFee, uint _buyGivingBlockWalletFee) external onlyOwner {
        buyLiquidityFee = _liquidityFee;
        buyGivingBlockWalletFee = _buyGivingBlockWalletFee;
        buyTotalFees = buyLiquidityFee + buyGivingBlockWalletFee;
        require(buyTotalFees <= 4, "Must keep fees at 4% or less");
    }
    
    function updateSellFees(uint256 _liquidityFee, uint _sellGivingBlockWalletFee) external onlyOwner {
        sellLiquidityFee = _liquidityFee;
        sellGivingBlockWalletFee = _sellGivingBlockWalletFee;
        sellTotalFees = sellLiquidityFee + sellGivingBlockWalletFee;
        require(sellTotalFees <= 4, "Must keep fees at 4% or less");
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        _isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs");

        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        automatedMarketMakerPairs[pair] = value;

        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateDevWallet(address newWallet) external onlyOwner {
        devWallet = newWallet;
    }

    function updateGivingBlockWallet(address newWallet) external onlyOwner {
        GivingBlockWallet = newWallet;
    }
    

    function isExcludedFromFees(address account) public view returns(bool) {
        return _isExcludedFromFees[account];
    }

    function updateLimits() private {
        maxTransactionAmount = supply * transDigit / 100;
        swapTokensAtAmount = supply * 5 / 10000; // 0.05% swap wallet;
        maxWallet = supply * walletDigit / 100;
    }


    
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        
         if(amount == 0) {
            super._transfer(from, to, 0);
            return;
        }
        
        if(limitsInEffect){
            if (
                from != owner() &&
                to != owner() &&
                to != address(0) &&
                to != address(0xdead) &&
                !swapping
            ){
                if(!tradingActive){
                    require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
                }


                //when buy
                if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                        require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                        require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
                
                //when sell
                else if (automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from]) {
                        require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
                }
                else if(!_isExcludedMaxTransactionAmount[to]){
                    require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
                }
            }
        }
        
        
        
		uint256 contractTokenBalance = balanceOf(address(this));
        
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if( 
            canSwap &&
            swapEnabled &&
            !swapping &&
            !automatedMarketMakerPairs[from] &&
            !_isExcludedFromFees[from] &&
            !_isExcludedFromFees[to]
        ) {
            swapping = true;
            
            swapBack();

            swapping = false;
        }
        
        bool takeFee = !swapping;

        // if any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
            takeFee = false;
        }
        
        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if(takeFee){
            // on sell
            if (automatedMarketMakerPairs[to] && sellTotalFees > 0){
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForGivingBlockWallet += fees * sellGivingBlockWalletFee / sellTotalFees;
            }
            // on buy
            else if(automatedMarketMakerPairs[from] && buyTotalFees > 0) {
        	    fees = amount.mul(buyTotalFees).div(100);
        	    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForGivingBlockWallet += fees * buyGivingBlockWalletFee / buyTotalFees;
            }
            
            if(fees > 0){
                super._transfer(from, address(this), fees);
            }
        	
        	amount -= fees;
        }

        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {

        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // make the swap
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
        
    }
    
    
    
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

        // add the liquidity
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            deadAddress,
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        uint256 totalTokensToSwap = tokensForLiquidity + tokensForGivingBlockWallet;
        bool success;
        
        if(contractBalance == 0 || totalTokensToSwap == 0) {return;}

        if(contractBalance > swapTokensAtAmount * 5){
          contractBalance = swapTokensAtAmount * 5;
        }
        
        // Halve the amount of liquidity tokens
        uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2;
        uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens);
        
        uint256 initialETHBalance = address(this).balance;

        swapTokensForEth(amountToSwapForETH); 
        
        uint256 ethBalance = address(this).balance.sub(initialETHBalance);
        
        uint256 ethForGivingBlock = ethBalance.mul(tokensForGivingBlockWallet).div(totalTokensToSwap);
        
        uint256 ethForLiquidity = ethBalance - ethForGivingBlock;
        
        
        tokensForLiquidity = 0;
        tokensForGivingBlockWallet = 0;
        
        if(liquidityTokens > 0 && ethForLiquidity > 0){
            addLiquidity(liquidityTokens, ethForLiquidity);
        }
        
        (success,) = address(GivingBlockWallet).call{value: address(this).balance}("");
    }


}

Read Contract

GivingBlockWallet 0x2b2c19f3 → address
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyGivingBlockWalletFee 0xdfbb2d54 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
buyTotalFees 0xd85ba063 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
limitsInEffect 0x4a62bb65 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellGivingBlockWalletFee 0x49fd5dd8 → uint256
sellLiquidityFee 0xf6374342 → uint256
sellTotalFees 0x6a486a8e → uint256
supply 0x047fc9aa → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForGivingBlockWallet 0x19570aad → uint256
tokensForLiquidity 0x1a8145bb → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transDigit 0x975d71e2 → uint256
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
walletDigit 0x7ab43983 → uint256

Write Contract 19 functions

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

approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
returns: bool
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x66ca9b83
uint256 _liquidityFee
uint256 _buyGivingBlockWalletFee
updateDevWallet 0x1816467f
address newWallet
updateGivingBlockWallet 0xbf933c78
address newWallet
updateMaxTxnAmount 0x203e727e
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0x02dbd8f8
uint256 _liquidityFee
uint256 _sellGivingBlockWalletFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
returns: bool

Recent Transactions

No transactions found for this address