Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x52E6654AEe5d59E13aE30B48F8F5dBeb97F708Cd
Balance 0 ETH
Nonce 1
Code Size 15907 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15907 bytes
0x608060405260043610610228575f3560e01c8063715018a611610122578063a9059cbb116100aa578063dd62ed3e1161006e578063dd62ed3e14610783578063e2f45605146107bf578063f2fde38b146107e9578063f8b45b0514610811578063ffb54a991461083b5761022f565b8063a9059cbb146106b5578063c0246668146106f1578063c876d0b914610719578063c8c8ebe414610743578063c9567bf91461076d5761022f565b806395d89b41116100f157806395d89b41146105fb5780639a7a23d6146106255780639b6365451461064d578063a0ef91df14610663578063a457c2d7146106795761022f565b8063715018a61461056b57806371f5f01a146105815780637571336a146105a95780638da5cb5b146105d15761022f565b806339509351116101b05780634fbee193116101745780634fbee1931461047757806352f7c988146104b3578063583e0568146104db5780636ddd17131461050557806370a082311461052f5761022f565b806339509351146103a95780633edab509146103e557806342966c68146103fb578063470624021461042357806349bd5a5e1461044d5761022f565b806323b872dd116101f757806323b872dd146102d95780632b14ca56146103155780632cb743f71461033f578063311028af14610355578063313ce5671461037f5761022f565b806306fdde0314610233578063095ea7b31461025d578063139864a81461029957806318160ddd146102af5761022f565b3661022f57005b5f80fd5b34801561023e575f80fd5b50610247610865565b6040516102549190612ba3565b60405180910390f35b348015610268575f80fd5b50610283600480360381019061027e9190612c54565b6108f5565b6040516102909190612cac565b60405180910390f35b3480156102a4575f80fd5b506102ad610917565b005b3480156102ba575f80fd5b506102c3610933565b6040516102d09190612cd4565b60405180910390f35b3480156102e4575f80fd5b506102ff60048036038101906102fa9190612ced565b61093c565b60405161030c9190612cac565b60405180910390f35b348015610320575f80fd5b5061032961096a565b6040516103369190612cd4565b60405180910390f35b34801561034a575f80fd5b50610353610970565b005b348015610360575f80fd5b50610369610a0a565b6040516103769190612cd4565b60405180910390f35b34801561038a575f80fd5b50610393610a10565b6040516103a09190612d58565b60405180910390f35b3480156103b4575f80fd5b506103cf60048036038101906103ca9190612c54565b610a18565b6040516103dc9190612cac565b60405180910390f35b3480156103f0575f80fd5b506103f9610a4e565b005b348015610406575f80fd5b50610421600480360381019061041c9190612d71565b610c75565b005b34801561042e575f80fd5b50610437610c89565b6040516104449190612cd4565b60405180910390f35b348015610458575f80fd5b50610461610c8f565b60405161046e9190612dab565b60405180910390f35b348015610482575f80fd5b5061049d60048036038101906104989190612dc4565b610cb4565b6040516104aa9190612cac565b60405180910390f35b3480156104be575f80fd5b506104d960048036038101906104d49190612def565b610d06565b005b3480156104e6575f80fd5b506104ef610d20565b6040516104fc9190612e88565b60405180910390f35b348015610510575f80fd5b50610519610d44565b6040516105269190612cac565b60405180910390f35b34801561053a575f80fd5b5061055560048036038101906105509190612dc4565b610d57565b6040516105629190612cd4565b60405180910390f35b348015610576575f80fd5b5061057f610d9c565b005b34801561058c575f80fd5b506105a760048036038101906105a29190612d71565b610daf565b005b3480156105b4575f80fd5b506105cf60048036038101906105ca9190612ecb565b610e43565b005b3480156105dc575f80fd5b506105e5610ea3565b6040516105f29190612dab565b60405180910390f35b348015610606575f80fd5b5061060f610ecb565b60405161061c9190612ba3565b60405180910390f35b348015610630575f80fd5b5061064b60048036038101906106469190612ecb565b610f5b565b005b348015610658575f80fd5b50610661611000565b005b34801561066e575f80fd5b50610677611073565b005b348015610684575f80fd5b5061069f600480360381019061069a9190612c54565b61115a565b6040516106ac9190612cac565b60405180910390f35b3480156106c0575f80fd5b506106db60048036038101906106d69190612c54565b6111cf565b6040516106e89190612cac565b60405180910390f35b3480156106fc575f80fd5b5061071760048036038101906107129190612ecb565b6111f1565b005b348015610724575f80fd5b5061072d61129f565b60405161073a9190612cac565b60405180910390f35b34801561074e575f80fd5b506107576112b2565b6040516107649190612cd4565b60405180910390f35b348015610778575f80fd5b506107816112b8565b005b34801561078e575f80fd5b506107a960048036038101906107a49190612f09565b6112f7565b6040516107b69190612cd4565b60405180910390f35b3480156107ca575f80fd5b506107d3611379565b6040516107e09190612cd4565b60405180910390f35b3480156107f4575f80fd5b5061080f600480360381019061080a9190612dc4565b61137f565b005b34801561081c575f80fd5b50610825611401565b6040516108329190612cd4565b60405180910390f35b348015610846575f80fd5b5061084f611407565b60405161085c9190612cac565b60405180910390f35b60606003805461087490612f74565b80601f01602080910402602001604051908101604052809291908181526020018280546108a090612f74565b80156108eb5780601f106108c2576101008083540402835291602001916108eb565b820191905f5260205f20905b8154815290600101906020018083116108ce57829003601f168201915b5050505050905090565b5f806108ff611419565b905061090c818585611420565b600191505092915050565b61091f6115e3565b600954600d81905550600954600c81905550565b5f600254905090565b5f80610946611419565b9050610953858285611661565b61095e8585856116ec565b60019150509392505050565b600b5481565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166109b0611419565b73ffffffffffffffffffffffffffffffffffffffff16146109cf575f80fd5b5f6109d930610d57565b9050610a073060075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836116ec565b50565b60095481565b5f6009905090565b5f80610a22611419565b9050610a43818585610a3485896112f7565b610a3e9190612fd1565b611420565b600191505092915050565b610a566115e3565b60115f9054906101000a900460ff1615610aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9c9061304e565b60405180910390fd5b610ad2307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d600954611420565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d7194730610b1930610d57565b5f8073a4b61fb221062b1ac0ff96aeb79af6751987c11b426040518863ffffffff1660e01b8152600401610b52969594939291906130a5565b60606040518083038185885af1158015610b6e573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610b939190613118565b50505060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610c32929190613168565b6020604051808303815f875af1158015610c4e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7291906131a3565b50565b610c86610c80611419565b826122d3565b50565b600a5481565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b610d0e6115e3565b80600b8190555081600a819055505050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b601160019054906101000a900460ff1681565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610da46115e3565b610dad5f612496565b565b60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610def611419565b73ffffffffffffffffffffffffffffffffffffffff1614610e0e575f80fd5b5f610e1830610d57565b90505f60648383610e2991906131ce565b610e33919061323c565b9050610e3e81612559565b505050565b610e4b6115e3565b8060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060048054610eda90612f74565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0690612f74565b8015610f515780601f10610f2857610100808354040283529160200191610f51565b820191905f5260205f20905b815481529060010190602001808311610f3457829003601f168201915b5050505050905090565b610f636115e3565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ff2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe9906132dc565b60405180910390fd5b610ffc82826127ad565b5050565b6110086115e3565b600e60019054906101000a900460ff16611057576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104e90613344565b60405180910390fd5b5f600e60016101000a81548160ff021916908315150217905550565b5f47116110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ac906133ac565b60405180910390fd5b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166110f5611419565b73ffffffffffffffffffffffffffffffffffffffff1614611114575f80fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015611157573d5f803e3d5ffd5b50565b5f80611164611419565b90505f61117182866112f7565b9050838110156111b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ad9061343a565b60405180910390fd5b6111c38286868403611420565b60019250505092915050565b5f806111d9611419565b90506111e68185856116ec565b600191505092915050565b6111f96115e3565b8060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516112939190612cac565b60405180910390a25050565b600e60019054906101000a900460ff1681565b600d5481565b6112c06115e3565b6001601160016101000a81548160ff021916908315150217905550600160115f6101000a81548160ff021916908315150217905550565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60105481565b6113876115e3565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036113f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ec906134c8565b60405180910390fd5b6113fe81612496565b50565b600c5481565b60115f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148590613556565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f3906135e4565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516115d69190612cd4565b60405180910390a3505050565b6115eb611419565b73ffffffffffffffffffffffffffffffffffffffff16611609610ea3565b73ffffffffffffffffffffffffffffffffffffffff161461165f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116569061364c565b60405180910390fd5b565b5f61166c84846112f7565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146116e657818110156116d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cf906136b4565b60405180910390fd5b6116e58484848403611420565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361175a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175190613742565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bf906137d0565b60405180910390fd5b5f81036117df576117da83835f61284b565b6122ce565b6117e7610ea3565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156118555750611825610ea3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561188d57505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156118c7575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156118df5750600e5f9054906101000a900460ff16155b15611f625760115f9054906101000a900460ff166119d25760125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611992575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b6119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890613838565b60405180910390fd5b5b600e60019054906101000a900460ff168015611a35575060125f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015611a88575060125f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611c88577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015611b36575060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611c875743600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054108015611bc3575043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054105b611c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf9906138c6565b60405180910390fd5b43600f5f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555043600f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b60145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611d25575060135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611dcc57600d54811115611d6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6690613954565b60405180910390fd5b600c54611d7b83610d57565b82611d869190612fd1565b1115611dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbe906139bc565b60405180910390fd5b611f61565b60145f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff168015611e69575060135f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611eb857600d54811115611eb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eaa90613a4a565b60405180910390fd5b611f60565b60135f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611f5f57600c54611f1283610d57565b82611f1d9190612fd1565b1115611f5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f55906139bc565b60405180910390fd5b5b5b5b5b5f611f6c30610d57565b90505f60105482119050808015611f8f5750601160019054906101000a900460ff165b8015611fa75750600e5f9054906101000a900460ff16155b8015611ffa575060145f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b801561204d575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b80156120a0575060125f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156120e2576001600e5f6101000a81548160ff0219169083151502179055506120c883612ab7565b5f600e5f6101000a81548160ff0219169083151502179055505b5f600e5f9054906101000a900460ff16158015612146575060125f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b8015612199575060125f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b90505f81156122be5760145f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561222057612219606461220b600b5488612aff90919063ffffffff16565b612b1490919063ffffffff16565b905061229b565b60145f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561229a576122976064612289600a5488612aff90919063ffffffff16565b612b1490919063ffffffff16565b90505b5b5f8111156122af576122ae87308361284b565b5b80856122bb9190613a68565b94505b6122c987878761284b565b505050505b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233890613b0b565b60405180910390fd5b61234c825f83612b29565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156123cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c690613b99565b60405180910390fd5b8181035f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508160025f82825403925050819055505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161247e9190612cd4565b60405180910390a3612491835f84612b2e565b505050565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f600267ffffffffffffffff81111561257557612574613bb7565b5b6040519080825280602002602001820160405280156125a35781602001602082028036833780820191505090505b50905030815f815181106125ba576125b9613be4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561265d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906126819190613c25565b8160018151811061269557612694613be4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506126fa307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611420565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8460085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16426040518663ffffffff1660e01b815260040161277c959493929190613d07565b5f604051808303815f87803b158015612793575f80fd5b505af11580156127a5573d5f803e3d5ffd5b505050505050565b8060145f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508015158273ffffffffffffffffffffffffffffffffffffffff167fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab60405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b090613742565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612927576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291e906137d0565b60405180910390fd5b612932838383612b29565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050818110156129b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ac90613dcf565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a9e9190612cd4565b60405180910390a3612ab1848484612b2e565b50505050565b5f612ac130610d57565b90505f8103612ad05750612afc565b5f819050601054811115612ae45760105490505b82811115612af0578290505b612af981612559565b50505b50565b5f8183612b0c91906131ce565b905092915050565b5f8183612b21919061323c565b905092915050565b505050565b505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612b7582612b33565b612b7f8185612b3d565b9350612b8f818560208601612b4d565b612b9881612b5b565b840191505092915050565b5f6020820190508181035f830152612bbb8184612b6b565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612bf082612bc7565b9050919050565b612c0081612be6565b8114612c0a575f80fd5b50565b5f81359050612c1b81612bf7565b92915050565b5f819050919050565b612c3381612c21565b8114612c3d575f80fd5b50565b5f81359050612c4e81612c2a565b92915050565b5f8060408385031215612c6a57612c69612bc3565b5b5f612c7785828601612c0d565b9250506020612c8885828601612c40565b9150509250929050565b5f8115159050919050565b612ca681612c92565b82525050565b5f602082019050612cbf5f830184612c9d565b92915050565b612cce81612c21565b82525050565b5f602082019050612ce75f830184612cc5565b92915050565b5f805f60608486031215612d0457612d03612bc3565b5b5f612d1186828701612c0d565b9350506020612d2286828701612c0d565b9250506040612d3386828701612c40565b9150509250925092565b5f60ff82169050919050565b612d5281612d3d565b82525050565b5f602082019050612d6b5f830184612d49565b92915050565b5f60208284031215612d8657612d85612bc3565b5b5f612d9384828501612c40565b91505092915050565b612da581612be6565b82525050565b5f602082019050612dbe5f830184612d9c565b92915050565b5f60208284031215612dd957612dd8612bc3565b5b5f612de684828501612c0d565b91505092915050565b5f8060408385031215612e0557612e04612bc3565b5b5f612e1285828601612c40565b9250506020612e2385828601612c40565b9150509250929050565b5f819050919050565b5f612e50612e4b612e4684612bc7565b612e2d565b612bc7565b9050919050565b5f612e6182612e36565b9050919050565b5f612e7282612e57565b9050919050565b612e8281612e68565b82525050565b5f602082019050612e9b5f830184612e79565b92915050565b612eaa81612c92565b8114612eb4575f80fd5b50565b5f81359050612ec581612ea1565b92915050565b5f8060408385031215612ee157612ee0612bc3565b5b5f612eee85828601612c0d565b9250506020612eff85828601612eb7565b9150509250929050565b5f8060408385031215612f1f57612f1e612bc3565b5b5f612f2c85828601612c0d565b9250506020612f3d85828601612c0d565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612f8b57607f821691505b602082108103612f9e57612f9d612f47565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612fdb82612c21565b9150612fe683612c21565b9250828201905080821115612ffe57612ffd612fa4565b5b92915050565b7f54726164696e6720697320616c7265616479206f70656e0000000000000000005f82015250565b5f613038601783612b3d565b915061304382613004565b602082019050919050565b5f6020820190508181035f8301526130658161302c565b9050919050565b5f819050919050565b5f61308f61308a6130858461306c565b612e2d565b612c21565b9050919050565b61309f81613075565b82525050565b5f60c0820190506130b85f830189612d9c565b6130c56020830188612cc5565b6130d26040830187613096565b6130df6060830186613096565b6130ec6080830185612d9c565b6130f960a0830184612cc5565b979650505050505050565b5f8151905061311281612c2a565b92915050565b5f805f6060848603121561312f5761312e612bc3565b5b5f61313c86828701613104565b935050602061314d86828701613104565b925050604061315e86828701613104565b9150509250925092565b5f60408201905061317b5f830185612d9c565b6131886020830184612cc5565b9392505050565b5f8151905061319d81612ea1565b92915050565b5f602082840312156131b8576131b7612bc3565b5b5f6131c58482850161318f565b91505092915050565b5f6131d882612c21565b91506131e383612c21565b92508282026131f181612c21565b9150828204841483151761320857613207612fa4565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61324682612c21565b915061325183612c21565b9250826132615761326061320f565b5b828204905092915050565b7f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d205f8201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000602082015250565b5f6132c6603983612b3d565b91506132d18261326c565b604082019050919050565b5f6020820190508181035f8301526132f3816132ba565b9050919050565b7f416c72656164792064697361626c6564210000000000000000000000000000005f82015250565b5f61332e601183612b3d565b9150613339826132fa565b602082019050919050565b5f6020820190508181035f83015261335b81613322565b9050919050565b7f546f6b656e3a206e6f2045544820696e2074686520636f6e74726163740000005f82015250565b5f613396601d83612b3d565b91506133a182613362565b602082019050919050565b5f6020820190508181035f8301526133c38161338a565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f613424602583612b3d565b915061342f826133ca565b604082019050919050565b5f6020820190508181035f83015261345181613418565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6134b2602683612b3d565b91506134bd82613458565b604082019050919050565b5f6020820190508181035f8301526134df816134a6565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613540602483612b3d565b915061354b826134e6565b604082019050919050565b5f6020820190508181035f83015261356d81613534565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6135ce602283612b3d565b91506135d982613574565b604082019050919050565b5f6020820190508181035f8301526135fb816135c2565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613636602083612b3d565b915061364182613602565b602082019050919050565b5f6020820190508181035f8301526136638161362a565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f61369e601d83612b3d565b91506136a98261366a565b602082019050919050565b5f6020820190508181035f8301526136cb81613692565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61372c602583612b3d565b9150613737826136d2565b604082019050919050565b5f6020820190508181035f83015261375981613720565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6137ba602383612b3d565b91506137c582613760565b604082019050919050565b5f6020820190508181035f8301526137e7816137ae565b9050919050565b7f54726164696e67206973206e6f74206163746976652e000000000000000000005f82015250565b5f613822601683612b3d565b915061382d826137ee565b602082019050919050565b5f6020820190508181035f83015261384f81613816565b9050919050565b7f5f7472616e736665723a3a205472616e736665722044656c617920656e61626c5f8201527f65642e202054727920616761696e206c617465722e0000000000000000000000602082015250565b5f6138b0603583612b3d565b91506138bb82613856565b604082019050919050565b5f6020820190508181035f8301526138dd816138a4565b9050919050565b7f427579207472616e7366657220616d6f756e74206578636565647320746865205f8201527f6d61785472616e73616374696f6e416d6f756e742e0000000000000000000000602082015250565b5f61393e603583612b3d565b9150613949826138e4565b604082019050919050565b5f6020820190508181035f83015261396b81613932565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f6139a6601383612b3d565b91506139b182613972565b602082019050919050565b5f6020820190508181035f8301526139d38161399a565b9050919050565b7f53656c6c207472616e7366657220616d6f756e742065786365656473207468655f8201527f206d61785472616e73616374696f6e416d6f756e742e00000000000000000000602082015250565b5f613a34603683612b3d565b9150613a3f826139da565b604082019050919050565b5f6020820190508181035f830152613a6181613a28565b9050919050565b5f613a7282612c21565b9150613a7d83612c21565b9250828203905081811115613a9557613a94612fa4565b5b92915050565b7f45524332303a206275726e2066726f6d20746865207a65726f206164647265735f8201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b5f613af5602183612b3d565b9150613b0082613a9b565b604082019050919050565b5f6020820190508181035f830152613b2281613ae9565b9050919050565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e5f8201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b5f613b83602283612b3d565b9150613b8e82613b29565b604082019050919050565b5f6020820190508181035f830152613bb081613b77565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613c1f81612bf7565b92915050565b5f60208284031215613c3a57613c39612bc3565b5b5f613c4784828501613c11565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613c8281612be6565b82525050565b5f613c938383613c79565b60208301905092915050565b5f602082019050919050565b5f613cb582613c50565b613cbf8185613c5a565b9350613cca83613c6a565b805f5b83811015613cfa578151613ce18882613c88565b9750613cec83613c9f565b925050600181019050613ccd565b5085935050505092915050565b5f60a082019050613d1a5f830188612cc5565b613d276020830187613096565b8181036040830152613d398186613cab565b9050613d486060830185612d9c565b613d556080830184612cc5565b9695505050505050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613db9602683612b3d565b9150613dc482613d5f565b604082019050919050565b5f6020820190508181035f830152613de681613dad565b905091905056fea2646970667358221220988562b1eaab5911b82557d2c8ef724c9c157794a8063ed03567bd4bcd0303d464736f6c634300081a0033

Verified Source Code Partial Match

Compiler: v0.8.26+commit.8a97fa7a EVM: cancun Optimization: No
SUGOI.sol 730 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma experimental ABIEncoderV2;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

abstract contract Ownable is Context {
    address private _owner;

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

    constructor() {
        _transferOwnership(_msgSender());
    }

    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

interface IERC20 {

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function totalSupply() external view returns (uint256);

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

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

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

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

    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

interface IERC20Metadata is IERC20 {

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

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

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

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

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

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

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

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

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

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

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

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

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

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);

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

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
    external
    view
    returns (
        uint112 reserve0,
        uint112 reserve1,
        uint32 blockTimestampLast
    );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

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

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

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
    external
    returns (
        uint256 amountA,
        uint256 amountB,
        uint256 liquidity
    );

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

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

library SafeMath {

    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

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

    function per(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= 100, "Percentage must be between 0 and 100");
        return a * b / 100;
    }

    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

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

    function decimals() public view virtual override returns (uint8) {
        return 9;
    }

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

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

    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

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

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

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

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

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

    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;
        unchecked {
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

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

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

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

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

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

    IUniswapV2Router02 public immutable _uniswapV2Router;
    address public uniswapV2Pair;
    address private devWallet;
    address private marketingWallet;
    address private constant deadAddress = address(0xdead);

    uint8 private constant _decimals = 9;
    uint256 public initialTotalSupply = 10000000000 * 10**_decimals;

    uint256 public buyFee = 0;
    uint256 public sellFee = 0;

    // 1% is max wallet
    uint256 public maxWallet = (initialTotalSupply * 10)/1000;
    uint256 public maxTransactionAmount = maxWallet;

    bool private swapping;

    bool public transferDelayEnabled = true;
    mapping(address => uint256) private _holderLastTransferTimestamp;
    
    //swap for 0.2%
    uint256 public swapTokensAtAmount = (initialTotalSupply * 2)/1000;

    bool public tradingOpen = false;
    bool public swapEnabled = false;

    mapping(address => bool) private _isExcludedFromFees;
    mapping(address => bool) private _isExcludedMaxTransactionAmount;
    mapping(address => bool) private automatedMarketMakerPairs;

    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    constructor() ERC20("Tsutsuji", "TSUJI"){
        _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        marketingWallet = payable(0xE54ee16AF5A5c2Ae51190F2145b1e6Fa2813E158);
        devWallet = payable(_msgSender());

        excludeFromFees(address(this), true);
        excludeFromFees(address(0xdead), true);
        excludeFromMaxTransaction(address(_uniswapV2Router), true);
        excludeFromMaxTransaction(address(this), true);
        excludeFromMaxTransaction(address(0xdead), true);
        excludeFromMaxTransaction(address(_msgSender()), true);
        excludeFromMaxTransaction(marketingWallet, true);
        excludeFromMaxTransaction(devWallet, true);
        excludeFromFees(address(_msgSender()), true);
        excludeFromFees(marketingWallet, true);
        excludeFromFees(devWallet, true);

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this), _uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
        // mint
        _mint(devWallet, initialTotalSupply);
    }

    receive() external payable {}

    function addLPToUniswap() external onlyOwner() {
        require(!tradingOpen,"Trading is already open");
        _approve(address(this), address(_uniswapV2Router), initialTotalSupply);
        _uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            balanceOf(address(this)),
            0,
            0,
            0xA4b61FB221062B1aC0Ff96aEb79aF6751987c11B,
            block.timestamp
        );
        IERC20(uniswapV2Pair).approve(address(_uniswapV2Router), type(uint).max);
    }

    function burn(uint256 amount) external {
        _burn(_msgSender(), amount);
    }

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        _isExcludedMaxTransactionAmount[updAds] = isEx;
    }


    function openTrading() external onlyOwner() {
        swapEnabled = true;
        tradingOpen = true;
    }

    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 isExcludedFromFees(address account) public view returns (bool) {
        return _isExcludedFromFees[account];
    }

    function _transfer(address from, address to, uint256 amount) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        if (amount == 0) {
            super._transfer(from, to, 0);
            return;
        }

        if (from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping) {
            if (!tradingOpen) {
                require(_isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active.");
            }

            if (transferDelayEnabled && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]){
                    if (to != address(_uniswapV2Router) && to != address(uniswapV2Pair)){
                        require(_holderLastTransferTimestamp[tx.origin] < block.number && _holderLastTransferTimestamp[to] < block.number, "_transfer:: Transfer Delay enabled.  Try again later.");
                        _holderLastTransferTimestamp[tx.origin] = block.number;
                        _holderLastTransferTimestamp[to] = block.number;
                    }
            }

            if (automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to]) {
                require(amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount.");
                require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
            }
            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(amount);
            swapping = false;
        }

        bool takeFee = !swapping && !_isExcludedFromFees[from] && !_isExcludedFromFees[to];

        uint256 fees = 0;
        if (takeFee) {
            if (automatedMarketMakerPairs[to]) {
                fees = amount.mul(sellFee).div(100);
            }
            else if(automatedMarketMakerPairs[from]) {
                fees = amount.mul(buyFee).div(100);
            }
            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }
            amount -= fees;
        }
        super._transfer(from, to, amount);
    }

    function swapTokensForEth(uint256 tokenAmount) private {
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = _uniswapV2Router.WETH();
        _approve(address(this), address(_uniswapV2Router), tokenAmount);
        _uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0,
            path,
            marketingWallet,
            block.timestamp
        );
    }

    function setFee(uint256 _buyFee, uint256 _sellFee) external onlyOwner {
        sellFee = _sellFee;
        buyFee = _buyFee;
    }

    function stopTransferDelay() external onlyOwner {
        require(transferDelayEnabled, "Already disabled!");
        transferDelayEnabled = false;
    }


    function removeTheLimits() external onlyOwner {
        maxTransactionAmount = initialTotalSupply;
        maxWallet = initialTotalSupply;
    }

    function manualSwapToken(uint256 percent) external {
        require(_msgSender() == marketingWallet);
        uint256 contractBalance = balanceOf(address(this));
        uint256 swapAmount = contractBalance * percent / 100;
        swapTokensForEth(swapAmount);
    }

    function withdrawEth() external {
        require(address(this).balance > 0, "Token: no ETH in the contract");
        require(_msgSender() == devWallet);
        payable(msg.sender).transfer(address(this).balance);
    }

    function tokensWithdraw() external {
        require(_msgSender() == devWallet);
        uint256 amount = balanceOf(address(this));
        _transfer(address(this), devWallet, amount);
    }

    function swapBack(uint256 tokenAmount) private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0) {
            return;
        }
        uint256 tokensToSwap = contractBalance;

        if (tokensToSwap > swapTokensAtAmount) {
            tokensToSwap = swapTokensAtAmount;
        }

        if(tokensToSwap > tokenAmount) {
            tokensToSwap = tokenAmount;
        }

        swapTokensForEth(tokensToSwap);
    }
}

Read Contract

_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyFee 0x47062402 → uint256
decimals 0x313ce567 → uint8
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellFee 0x2b14ca56 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
transferDelayEnabled 0xc876d0b9 → bool
uniswapV2Pair 0x49bd5a5e → address

Write Contract 19 functions

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

addLPToUniswap 0x3edab509
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burn 0x42966c68
uint256 amount
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
manualSwapToken 0x71f5f01a
uint256 percent
openTrading 0xc9567bf9
No parameters
removeTheLimits 0x139864a8
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setFee 0x52f7c988
uint256 _buyFee
uint256 _sellFee
stopTransferDelay 0x9b636545
No parameters
tokensWithdraw 0x2cb743f7
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
withdrawEth 0xa0ef91df
No parameters

Recent Transactions

No transactions found for this address