Address Contract Partially Verified
Address
0x17b51b1DA73A02DB9dC20A71684Dc3EA70A0Dded
Balance
0.300000 ETH
Nonce
1
Code Size
15850 bytes
Creator
0x65688E0c...A665 at tx 0x3ad436d4...d6273c
Indexed Transactions
0
Contract Bytecode
15850 bytes
0x608060405260043610610233575f3560e01c80638da5cb5b1161012d578063bbc0c742116100aa578063e884f2601161006e578063e884f26014610854578063f1f50a021461086a578063f2fde38b14610880578063f852b42d146108a8578063f8b45b05146108d05761023a565b8063bbc0c74214610772578063c647b20e1461079c578063c78d0fa0146107c4578063cc1776d3146107ee578063dd62ed3e146108185761023a565b80639e93ad8e116100f15780639e93ad8e1461067e578063a457c2d7146106a8578063a9059cbb146106e4578063ab5a188714610720578063b2c25bce146107485761023a565b80638da5cb5b1461059c5780638ea64376146105c65780638ed6795e146105f057806391b296951461061857806395d89b41146106545761023a565b80634f7041a5116101bb578063707789c51161017f578063707789c5146104bc57806370945d5f146104e457806370a082311461050e578063715018a61461054a5780638d3e6e40146105605761023a565b80634f7041a5146103ee578063540dd452146104185780635d0044ca146104545780635d58ce361461047c5780636162c92e146104a65761023a565b806323b872dd1161020257806323b872dd146102f8578063313ce56714610334578063395093511461035e578063452ed4f11461039a5780634a62bb65146103c45761023a565b806306fdde031461023e5780630758d92414610268578063095ea7b31461029257806318160ddd146102ce5761023a565b3661023a57005b5f80fd5b348015610249575f80fd5b506102526108fa565b60405161025f9190612bfe565b60405180910390f35b348015610273575f80fd5b5061027c61098a565b6040516102899190612c98565b60405180910390f35b34801561029d575f80fd5b506102b860048036038101906102b39190612d23565b6109ae565b6040516102c59190612d7b565b60405180910390f35b3480156102d9575f80fd5b506102e26109d0565b6040516102ef9190612da3565b60405180910390f35b348015610303575f80fd5b5061031e60048036038101906103199190612dbc565b6109d9565b60405161032b9190612d7b565b60405180910390f35b34801561033f575f80fd5b50610348610a07565b6040516103559190612e27565b60405180910390f35b348015610369575f80fd5b50610384600480360381019061037f9190612d23565b610a0f565b6040516103919190612d7b565b60405180910390f35b3480156103a5575f80fd5b506103ae610a45565b6040516103bb9190612e4f565b60405180910390f35b3480156103cf575f80fd5b506103d8610a69565b6040516103e59190612d7b565b60405180910390f35b3480156103f9575f80fd5b50610402610a7c565b60405161040f9190612da3565b60405180910390f35b348015610423575f80fd5b5061043e60048036038101906104399190612e68565b610a82565b60405161044b9190612d7b565b60405180910390f35b34801561045f575f80fd5b5061047a60048036038101906104759190612e93565b610a9f565b005b348015610487575f80fd5b50610490610c16565b60405161049d9190612da3565b60405180910390f35b3480156104b1575f80fd5b506104ba610c1d565b005b3480156104c7575f80fd5b506104e260048036038101906104dd9190612e68565b610d30565b005b3480156104ef575f80fd5b506104f8610e77565b6040516105059190612da3565b60405180910390f35b348015610519575f80fd5b50610534600480360381019061052f9190612e68565b610e7d565b6040516105419190612da3565b60405180910390f35b348015610555575f80fd5b5061055e610ec2565b005b34801561056b575f80fd5b5061058660048036038101906105819190612e68565b611015565b6040516105939190612d7b565b60405180910390f35b3480156105a7575f80fd5b506105b0611032565b6040516105bd9190612e4f565b60405180910390f35b3480156105d1575f80fd5b506105da61105a565b6040516105e79190612e4f565b60405180910390f35b3480156105fb575f80fd5b5061061660048036038101906106119190612ee8565b61107f565b005b348015610623575f80fd5b5061063e60048036038101906106399190612e68565b611214565b60405161064b9190612d7b565b60405180910390f35b34801561065f575f80fd5b50610668611231565b6040516106759190612bfe565b60405180910390f35b348015610689575f80fd5b506106926112c1565b60405161069f9190612da3565b60405180910390f35b3480156106b3575f80fd5b506106ce60048036038101906106c99190612d23565b6112c7565b6040516106db9190612d7b565b60405180910390f35b3480156106ef575f80fd5b5061070a60048036038101906107059190612d23565b61133c565b6040516107179190612d7b565b60405180910390f35b34801561072b575f80fd5b5061074660048036038101906107419190612e93565b61135e565b005b348015610753575f80fd5b5061075c6114d6565b6040516107699190612d7b565b60405180910390f35b34801561077d575f80fd5b506107866114e8565b6040516107939190612d7b565b60405180910390f35b3480156107a7575f80fd5b506107c260048036038101906107bd9190612f26565b6114fa565b005b3480156107cf575f80fd5b506107d8611614565b6040516107e59190612da3565b60405180910390f35b3480156107f9575f80fd5b5061080261161a565b60405161080f9190612da3565b60405180910390f35b348015610823575f80fd5b5061083e60048036038101906108399190612f64565b611620565b60405161084b9190612da3565b60405180910390f35b34801561085f575f80fd5b506108686116a2565b005b348015610875575f80fd5b5061087e611753565b005b34801561088b575f80fd5b506108a660048036038101906108a19190612e68565b611854565b005b3480156108b3575f80fd5b506108ce60048036038101906108c99190612ee8565b611a16565b005b3480156108db575f80fd5b506108e4611c3f565b6040516108f19190612da3565b60405180910390f35b60606003805461090990612fcf565b80601f016020809104026020016040519081016040528092919081815260200182805461093590612fcf565b80156109805780601f1061095757610100808354040283529160200191610980565b820191905f5260205f20905b81548152906001019060200180831161096357829003601f168201915b5050505050905090565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f806109b8611c45565b90506109c5818585611c4c565b600191505092915050565b5f600254905090565b5f806109e3611c45565b90506109f0858285611e0f565b6109fb858585611e9a565b60019150509392505050565b5f6012905090565b5f80610a19611c45565b9050610a3a818585610a2b8589611620565b610a35919061302c565b611c4c565b600191505092915050565b7f000000000000000000000000ee9e3d2471e9fa64a648599b57b5dc6cde30250e81565b600760019054906101000a900460ff1681565b60105481565b6009602052805f5260405f205f915054906101000a900460ff1681565b610aa7611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2c906130a9565b60405180910390fd5b610b3d610a07565b600a610b4991906131f6565b60646001610b556109d0565b610b5f9190613240565b610b6991906132ae565b610b7391906132ae565b811015610bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bac90613328565b60405180910390fd5b610bbd610a07565b600a610bc991906131f6565b81610bd49190613240565b600f819055507fde064515fae8f8bb6d8ff19d2c6ba704322def7494147d8a971266430ade0788600f54604051610c0b9190612da3565b60405180910390a150565b5f47905090565b610c25611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610caa906130a9565b60405180910390fd5b5f600760016101000a81548160ff0219169083151502179055505f60075f6101000a81548160ff021916908315150217905550610cee6109d0565b600e81905550610cfc6109d0565b600f819055507fa4ffae85e880608d5d4365c2b682786545d136145537788e7e0940dff9f0b98c60405160405180910390a1565b610d38611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbd906130a9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90613390565b60405180910390fd5b80600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610eca611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4f906130a9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600a602052805f5260405f205f915054906101000a900460ff1681565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611087611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110c906130a9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a906133f8565b60405180910390fd5b8060095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f998cce27cbf44405c67eb636a634d5e2f2e6ff248b3d71fbbbb022f3c4c6dd2d8282604051611208929190613416565b60405180910390a15050565b600c602052805f5260405f205f915054906101000a900460ff1681565b60606004805461124090612fcf565b80601f016020809104026020016040519081016040528092919081815260200182805461126c90612fcf565b80156112b75780601f1061128e576101008083540402835291602001916112b7565b820191905f5260205f20905b81548152906001019060200180831161129a57829003601f168201915b5050505050905090565b61271081565b5f806112d1611c45565b90505f6112de8286611620565b905083811015611323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131a906134ad565b60405180910390fd5b6113308286868403611c4c565b60019250505092915050565b5f80611346611c45565b9050611353818585611e9a565b600191505092915050565b611366611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113eb906130a9565b60405180910390fd5b6113fc610a07565b600a61140891906131f6565b6103e860056114156109d0565b61141f9190613240565b61142991906132ae565b61143391906132ae565b811015611475576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146c90613515565b60405180910390fd5b61147d610a07565b600a61148991906131f6565b816114949190613240565b600e819055507fbd5d3777a4ca05c2475cf0dd89d6a70173f775d8b42722c19d597cd7c870c4c7600e546040516114cb9190612da3565b60405180910390a150565b60075f9054906101000a900460ff1681565b600b5f9054906101000a900460ff1681565b611502611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611590576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611587906130a9565b60405180910390fd5b816010819055507f5380a61520019ce8270d583f62f1b2b9f4f4372e1acaaf708f4865cecece05086010546040516115c89190612da3565b60405180910390a1806011819055507fa02824f65350567bc405e202b741e7ca6274004a9feeb44149df72b8bd599c976011546040516116089190612da3565b60405180910390a15050565b60085481565b60115481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b6116aa611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611738576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172f906130a9565b60405180910390fd5b5f60075f6101000a81548160ff021916908315150217905550565b61175b611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e0906130a9565b60405180910390fd5b600b5f9054906101000a900460ff1615611838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182f9061357d565b60405180910390fd5b6001600b5f6101000a81548160ff021916908315150217905550565b61185c611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146118ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e1906130a9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194f9061360b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a38060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611a1e611c45565b73ffffffffffffffffffffffffffffffffffffffff1660055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611aac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa3906130a9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b11906133f8565b60405180910390fd5b80611bae577f000000000000000000000000ee9e3d2471e9fa64a648599b57b5dc6cde30250e73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba490613673565b60405180910390fd5b5b80600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055507f8f9f40630a1d139e6cf69b4f447ca47a36f10a017524efaa38252e516fa227ce8282604051611c33929190613416565b60405180910390a15050565b600f5481565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb190613701565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611d28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1f9061378f565b60405180910390fd5b8060015f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611e029190612da3565b60405180910390a3505050565b5f611e1a8484611620565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114611e945781811015611e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7d906137f7565b60405180910390fd5b611e938484848403611c4c565b5b50505050565b60095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611f35575060095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b80611f4c5750600760029054906101000a900460ff165b15611f6157611f5c838383611ff9565b611ff4565b600b5f9054906101000a900460ff16611faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa69061385f565b60405180910390fd5b611fba838383612265565b81611fc5919061387d565b9050600760019054906101000a900460ff1615611fe857611fe783838361243c565b5b611ff3838383611ff9565b5b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e90613920565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036120d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120cc906139ae565b60405180910390fd5b6120e0838383612899565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612163576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215a90613a3c565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550815f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161224c9190612da3565b60405180910390a361225f84848461289e565b50505050565b5f60085461227230610e7d565b1015801561228d5750600760029054906101000a900460ff16155b80156122e05750600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15612323576001600760026101000a81548160ff0219169083151502179055506123086128a3565b5f600760026101000a81548160ff0219169083151502179055505b5f600c5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561237b57505f601154115b156123a257612710601154846123919190613240565b61239b91906132ae565b905061241d565b600c5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156123f957505f601054115b1561241c576127106010548461240f9190613240565b61241991906132ae565b90505b5b5f81111561243157612430853083611ff9565b5b809150509392505050565b60075f9054906101000a900460ff16156125bb577f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141580156124f35750600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156125ba574360065f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205410612577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256e90613aa4565b60405180910390fd5b4360065f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b5b600c5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680156126585750600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156126ff57600e548111156126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990613b0c565b60405180910390fd5b600f546126ae83610e7d565b826126b9919061302c565b11156126fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f190613b74565b60405180910390fd5b612894565b600c5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16801561279c5750600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156127eb57600e548111156127e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127dd90613b0c565b60405180910390fd5b612893565b600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1661289257600f5461284583610e7d565b82612850919061302c565b1115612891576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288890613b74565b60405180910390fd5b5b5b5b505050565b505050565b505050565b5f6128ad30610e7d565b90505f81036128bc5750612984565b60286008546128cb9190613240565b8111156128e45760286008546128e19190613240565b90505b6128ed81612986565b5f471115612982575f600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161293b90613bbf565b5f6040518083038185875af1925050503d805f8114612975576040519150601f19603f3d011682016040523d82523d5f602084013e61297a565b606091505b505080915050505b505b565b5f600267ffffffffffffffff8111156129a2576129a1613bd3565b5b6040519080825280602002602001820160405280156129d05781602001602082028036833780820191505090505b50905030815f815181106129e7576129e6613c00565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a8a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612aae9190613c41565b81600181518110612ac257612ac1613c00565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612b5d959493929190613d5c565b5f604051808303815f87803b158015612b74575f80fd5b505af1158015612b86573d5f803e3d5ffd5b505050505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612bd082612b8e565b612bda8185612b98565b9350612bea818560208601612ba8565b612bf381612bb6565b840191505092915050565b5f6020820190508181035f830152612c168184612bc6565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f612c60612c5b612c5684612c1e565b612c3d565b612c1e565b9050919050565b5f612c7182612c46565b9050919050565b5f612c8282612c67565b9050919050565b612c9281612c78565b82525050565b5f602082019050612cab5f830184612c89565b92915050565b5f80fd5b5f612cbf82612c1e565b9050919050565b612ccf81612cb5565b8114612cd9575f80fd5b50565b5f81359050612cea81612cc6565b92915050565b5f819050919050565b612d0281612cf0565b8114612d0c575f80fd5b50565b5f81359050612d1d81612cf9565b92915050565b5f8060408385031215612d3957612d38612cb1565b5b5f612d4685828601612cdc565b9250506020612d5785828601612d0f565b9150509250929050565b5f8115159050919050565b612d7581612d61565b82525050565b5f602082019050612d8e5f830184612d6c565b92915050565b612d9d81612cf0565b82525050565b5f602082019050612db65f830184612d94565b92915050565b5f805f60608486031215612dd357612dd2612cb1565b5b5f612de086828701612cdc565b9350506020612df186828701612cdc565b9250506040612e0286828701612d0f565b9150509250925092565b5f60ff82169050919050565b612e2181612e0c565b82525050565b5f602082019050612e3a5f830184612e18565b92915050565b612e4981612cb5565b82525050565b5f602082019050612e625f830184612e40565b92915050565b5f60208284031215612e7d57612e7c612cb1565b5b5f612e8a84828501612cdc565b91505092915050565b5f60208284031215612ea857612ea7612cb1565b5b5f612eb584828501612d0f565b91505092915050565b612ec781612d61565b8114612ed1575f80fd5b50565b5f81359050612ee281612ebe565b92915050565b5f8060408385031215612efe57612efd612cb1565b5b5f612f0b85828601612cdc565b9250506020612f1c85828601612ed4565b9150509250929050565b5f8060408385031215612f3c57612f3b612cb1565b5b5f612f4985828601612d0f565b9250506020612f5a85828601612d0f565b9150509250929050565b5f8060408385031215612f7a57612f79612cb1565b5b5f612f8785828601612cdc565b9250506020612f9885828601612cdc565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612fe657607f821691505b602082108103612ff957612ff8612fa2565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61303682612cf0565b915061304183612cf0565b925082820190508082111561305957613058612fff565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613093602083612b98565b915061309e8261305f565b602082019050919050565b5f6020820190508181035f8301526130c081613087565b9050919050565b5f8160011c9050919050565b5f808291508390505b600185111561311c578086048111156130f8576130f7612fff565b5b60018516156131075780820291505b8081029050613115856130c7565b94506130dc565b94509492505050565b5f8261313457600190506131ef565b81613141575f90506131ef565b8160018114613157576002811461316157613190565b60019150506131ef565b60ff84111561317357613172612fff565b5b8360020a91508482111561318a57613189612fff565b5b506131ef565b5060208310610133831016604e8410600b84101617156131c55782820a9050838111156131c0576131bf612fff565b5b6131ef565b6131d284848460016130d3565b925090508184048111156131e9576131e8612fff565b5b81810290505b9392505050565b5f61320082612cf0565b915061320b83612e0c565b92506132387fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484613125565b905092915050565b5f61324a82612cf0565b915061325583612cf0565b925082820261326381612cf0565b9150828204841483151761327a57613279612fff565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6132b882612cf0565b91506132c383612cf0565b9250826132d3576132d2613281565b5b828204905092915050565b7f4d757374206265203e3d203125000000000000000000000000000000000000005f82015250565b5f613312600d83612b98565b915061331d826132de565b602082019050919050565b5f6020820190508181035f83015261333f81613306565b9050919050565b7f7a65726f206164647265737300000000000000000000000000000000000000005f82015250565b5f61337a600c83612b98565b915061338582613346565b602082019050919050565b5f6020820190508181035f8301526133a78161336e565b9050919050565b7f5a65726f204164647265737300000000000000000000000000000000000000005f82015250565b5f6133e2600c83612b98565b91506133ed826133ae565b602082019050919050565b5f6020820190508181035f83015261340f816133d6565b9050919050565b5f6040820190506134295f830185612e40565b6134366020830184612d6c565b9392505050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f775f8201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b5f613497602583612b98565b91506134a28261343d565b604082019050919050565b5f6020820190508181035f8301526134c48161348b565b9050919050565b7f4d757374206265203e3d20302e352500000000000000000000000000000000005f82015250565b5f6134ff600f83612b98565b915061350a826134cb565b602082019050919050565b5f6020820190508181035f83015261352c816134f3565b9050919050565b7f54726164696e67206163746976650000000000000000000000000000000000005f82015250565b5f613567600e83612b98565b915061357282613533565b602082019050919050565b5f6020820190508181035f8301526135948161355b565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6135f5602683612b98565b91506136008261359b565b604082019050919050565b5f6020820190508181035f830152613622816135e9565b9050919050565b7f50616972000000000000000000000000000000000000000000000000000000005f82015250565b5f61365d600483612b98565b915061366882613629565b602082019050919050565b5f6020820190508181035f83015261368a81613651565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f6136eb602483612b98565b91506136f682613691565b604082019050919050565b5f6020820190508181035f830152613718816136df565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f613779602283612b98565b91506137848261371f565b604082019050919050565b5f6020820190508181035f8301526137a68161376d565b9050919050565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000005f82015250565b5f6137e1601d83612b98565b91506137ec826137ad565b602082019050919050565b5f6020820190508181035f83015261380e816137d5565b9050919050565b7f54726164696e67206e6f742061637469766500000000000000000000000000005f82015250565b5f613849601283612b98565b915061385482613815565b602082019050919050565b5f6020820190508181035f8301526138768161383d565b9050919050565b5f61388782612cf0565b915061389283612cf0565b92508282039050818111156138aa576138a9612fff565b5b92915050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61390a602583612b98565b9150613915826138b0565b604082019050919050565b5f6020820190508181035f830152613937816138fe565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f613998602383612b98565b91506139a38261393e565b604082019050919050565b5f6020820190508181035f8301526139c58161398c565b9050919050565b7f45524332303a207472616e7366657220616d6f756e74206578636565647320625f8201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b5f613a26602683612b98565b9150613a31826139cc565b604082019050919050565b5f6020820190508181035f830152613a5381613a1a565b9050919050565b7f5472616e736665722044656c617920656e61626c65642e0000000000000000005f82015250565b5f613a8e601783612b98565b9150613a9982613a5a565b602082019050919050565b5f6020820190508181035f830152613abb81613a82565b9050919050565b7f4d61782074782065786365656465642e000000000000000000000000000000005f82015250565b5f613af6601083612b98565b9150613b0182613ac2565b602082019050919050565b5f6020820190508181035f830152613b2381613aea565b9050919050565b7f4d61782077616c6c6574206578636565646564000000000000000000000000005f82015250565b5f613b5e601383612b98565b9150613b6982613b2a565b602082019050919050565b5f6020820190508181035f830152613b8b81613b52565b9050919050565b5f81905092915050565b50565b5f613baa5f83613b92565b9150613bb582613b9c565b5f82019050919050565b5f613bc982613b9f565b9150819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f81519050613c3b81612cc6565b92915050565b5f60208284031215613c5657613c55612cb1565b5b5f613c6384828501613c2d565b91505092915050565b5f819050919050565b5f613c8f613c8a613c8584613c6c565b612c3d565b612cf0565b9050919050565b613c9f81613c75565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b613cd781612cb5565b82525050565b5f613ce88383613cce565b60208301905092915050565b5f602082019050919050565b5f613d0a82613ca5565b613d148185613caf565b9350613d1f83613cbf565b805f5b83811015613d4f578151613d368882613cdd565b9750613d4183613cf4565b925050600181019050613d22565b5085935050505092915050565b5f60a082019050613d6f5f830188612d94565b613d7c6020830187613c96565b8181036040830152613d8e8186613d00565b9050613d9d6060830185612e40565b613daa6080830184612d94565b969550505050505056fea264697066735822122097629eadb60e6f465ba7ed94be456f8ac59f619234963408fd3b4855c106bbe464736f6c63430008190033
Verified Source Code Partial Match
Compiler: v0.8.25+commit.b61c2a91
EVM: cancun
Optimization: No
foxxy.sol 737 lines
pragma solidity 0.8.25;
// SPDX-License-Identifier: MIT
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 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 {
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}.
*
* 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;
}
function contractEthBalance() external view returns (uint256) {
return address(this).balance;
}
/**
* @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 default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() external virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
interface IDexRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external;
}
interface IDexFactory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
contract foxxy is ERC20, Ownable {
mapping(address => uint256) private _holderLastTransferBlock; // to hold last Transfers temporarily during launch
bool public transferDelayInEffect = true;
bool public limitsInEffect = true;
bool private swapping;
uint256 public swapTokensAtAmt;
uint256 public constant FEE_DIVISOR = 10000;
mapping (address => bool) public exemptFromTaxes;
mapping (address => bool) public exemptFromLimits;
bool public tradingActive;
mapping (address => bool) public isLPPair;
address public opsAddress;
uint256 public maxTrans;
uint256 public maxWallet;
uint256 public buyTax;
uint256 public sellTax;
address public immutable lpPair;
IDexRouter public immutable dexRouter;
// events
event UpdatedMaxTrans(uint256 newMax);
event UpdatedWalletLimit(uint256 newMax);
event SetExemptFromFees(address _address, bool _isExempt);
event SetExemptFromLimits(address _address, bool _isExempt);
event RemovedLimits();
event UpdatedBuyTax(uint256 newAmt);
event UpdatedSellTax(uint256 newAmt);
// constructor
constructor()
ERC20("FOXXY", "FOXXY")
{
address newOwner = 0x65688E0c6C18379f3825CD67ac51e57dfdF0A665;
_mint(newOwner, 420_690_000_000 * 1e18);
uint256 _totalSupply = totalSupply();
address _v2Router;
// @dev assumes WETH pair
if(block.chainid == 1){
_v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
} else if(block.chainid == 5){
_v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
} else {
revert("Chain not configured");
}
dexRouter = IDexRouter(_v2Router);
maxTrans = _totalSupply * 10 / 1000;
maxWallet = _totalSupply * 10 / 1000;
swapTokensAtAmt = _totalSupply * 25 / 100000;
opsAddress = 0x4F5B0a8436ec5e7645c545aa34F8e39108590d8e;
buyTax = 2000; // 1% = 100
sellTax = 4000; // 1% = 100
lpPair = IDexFactory(dexRouter.factory()).createPair(address(this), dexRouter.WETH());
isLPPair[lpPair] = true;
exemptFromLimits[lpPair] = true;
exemptFromLimits[newOwner] = true;
exemptFromLimits[address(this)] = true;
exemptFromLimits[address(dexRouter)] = true;
exemptFromTaxes[newOwner] = true;
exemptFromTaxes[address(this)] = true;
exemptFromTaxes[address(dexRouter)] = true;
_approve(address(this), address(dexRouter), type(uint256).max);
transferOwnership(newOwner);
}
// owner functions
function changeExemptFromFees(address _address, bool _isExempt) external onlyOwner {
require(_address != address(0), "Zero Address");
exemptFromTaxes[_address] = _isExempt;
emit SetExemptFromFees(_address, _isExempt);
}
function changeExemptFromLimits(address _address, bool _isExempt) external onlyOwner {
require(_address != address(0), "Zero Address");
if(!_isExempt){
require(_address != lpPair, "Pair");
}
exemptFromLimits[_address] = _isExempt;
emit SetExemptFromLimits(_address, _isExempt);
}
function setMaxTransaction(uint256 newNumInTokens) external onlyOwner {
require(newNumInTokens >= (totalSupply() * 5 / 1000)/(10**decimals()), "Must be >= 0.5%");
maxTrans = newNumInTokens * (10**decimals());
emit UpdatedMaxTrans(maxTrans);
}
function setMaxWallet(uint256 newNumInTokens) external onlyOwner {
require(newNumInTokens >= (totalSupply() * 1 / 100)/(10**decimals()), "Must be >= 1%");
maxWallet = newNumInTokens * (10**decimals());
emit UpdatedWalletLimit(maxWallet);
}
function setTaxes(uint256 _buyTax, uint256 _sellTax) external onlyOwner {
buyTax = _buyTax;
emit UpdatedBuyTax(buyTax);
sellTax = _sellTax;
emit UpdatedSellTax(sellTax);
}
function enableTradeStart() external onlyOwner {
require(!tradingActive, "Trading active");
tradingActive = true;
}
function removeAllRestrictions() external onlyOwner {
limitsInEffect = false;
transferDelayInEffect = false;
maxTrans = totalSupply();
maxWallet = totalSupply();
emit RemovedLimits();
}
function disableTransferDelay() external onlyOwner {
transferDelayInEffect = false;
}
function setOpsAddress(address _address) external onlyOwner {
require(_address != address(0), "zero address");
opsAddress = _address;
}
receive() external payable {}
function _transfer(
address from,
address to,
uint256 amount
) internal virtual override {
if(exemptFromTaxes[from] || exemptFromTaxes[to] || swapping){
super._transfer(from,to,amount);
return;
}
require(tradingActive, "Trading not active");
amount -= routeTax(from, to, amount);
if(limitsInEffect){
checkRestrictions(from, to, amount);
}
super._transfer(from,to,amount);
}
function checkRestrictions(address from, address to, uint256 amount) internal {
if (transferDelayInEffect){
if (to != address(dexRouter) && !isLPPair[to]){
require(_holderLastTransferBlock[tx.origin] < block.number, "Transfer Delay enabled.");
_holderLastTransferBlock[tx.origin] = block.number;
}
}
// buy
if (isLPPair[from] && !exemptFromLimits[to]) {
require(amount <= maxTrans, "Max tx exceeded.");
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
// sell
else if (isLPPair[to] && !exemptFromLimits[from]) {
require(amount <= maxTrans, "Max tx exceeded.");
}
else if(!exemptFromLimits[to]) {
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
function routeTax(address from, address to, uint256 amount) internal returns (uint256){
if(balanceOf(address(this)) >= swapTokensAtAmt && !swapping && !isLPPair[from]) {
swapping = true;
swap();
swapping = false;
}
uint256 tax = 0;
// on sell
if (isLPPair[to] && sellTax > 0){
tax = amount * sellTax / FEE_DIVISOR;
}
// on buy
else if(isLPPair[from] && buyTax > 0) {
tax = amount * buyTax / FEE_DIVISOR;
}
if(tax > 0){
super._transfer(from, address(this), tax);
}
return tax;
}
function swapTokensForETH(uint256 tokenAmt) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = dexRouter.WETH();
dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmt,
0,
path,
address(this),
block.timestamp
);
}
function swap() private {
uint256 contractBalance = balanceOf(address(this));
if(contractBalance == 0) {return;}
if(contractBalance > swapTokensAtAmt * 40){
contractBalance = swapTokensAtAmt * 40;
}
swapTokensForETH(contractBalance);
if(address(this).balance > 0){
bool success;
(success, ) = opsAddress.call{value: address(this).balance}("");
}
}
}
Read Contract
FEE_DIVISOR 0x9e93ad8e → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
buyTax 0x4f7041a5 → uint256
contractEthBalance 0x5d58ce36 → uint256
decimals 0x313ce567 → uint8
dexRouter 0x0758d924 → address
exemptFromLimits 0x8d3e6e40 → bool
exemptFromTaxes 0x540dd452 → bool
isLPPair 0x91b29695 → bool
limitsInEffect 0x4a62bb65 → bool
lpPair 0x452ed4f1 → address
maxTrans 0x70945d5f → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
opsAddress 0x8ea64376 → address
owner 0x8da5cb5b → address
sellTax 0xcc1776d3 → uint256
swapTokensAtAmt 0xc78d0fa0 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
transferDelayInEffect 0xb2c25bce → bool
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
changeExemptFromFees 0x8ed6795e
address _address
bool _isExempt
changeExemptFromLimits 0xf852b42d
address _address
bool _isExempt
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableTransferDelay 0xe884f260
No parameters
enableTradeStart 0xf1f50a02
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeAllRestrictions 0x6162c92e
No parameters
renounceOwnership 0x715018a6
No parameters
setMaxTransaction 0xab5a1887
uint256 newNumInTokens
setMaxWallet 0x5d0044ca
uint256 newNumInTokens
setOpsAddress 0x707789c5
address _address
setTaxes 0xc647b20e
uint256 _buyTax
uint256 _sellTax
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address