Address Contract Partially Verified
Address
0xd055Ec4c393cf8564489b9347aD3EF01eD4896D1
Balance
0.060000 ETH
Nonce
1
Code Size
16898 bytes
Creator
0x8C853C32...059c at tx 0x771d05a6...469209
Indexed Transactions
0
Contract Bytecode
16898 bytes
0x6080604052600436106101c65760003560e01c806370a08231116100f7578063a457c2d711610095578063cf61629b11610064578063cf61629b14610642578063dd62ed3e1461066b578063f2fde38b146106a8578063f6caa0b2146106d1576101cd565b8063a457c2d714610588578063a9059cbb146105c5578063b3e254ff14610602578063c9567bf91461062b576101cd565b806380829424116100d157806380829424146104f25780638da5cb5b1461051b57806395d89b411461054657806399b1cee514610571576101cd565b806370a0823114610475578063715018a6146104b25780637f21b623146104c9576101cd565b806325d69c9f11610164578063395093511161013e57806339509351146103a257806353541bc5146103df57806354868ac51461041e5780635c1039e414610447576101cd565b806325d69c9f14610321578063313ce5671461034e578063368ef22614610379576101cd565b8063167ad3fd116101a0578063167ad3fd1461026357806318160ddd1461028c5780631d3fb5fb146102b757806323b872dd146102e4576101cd565b806306fdde03146101d2578063095ea7b3146101fd578063121bb6e81461023a576101cd565b366101cd57005b600080fd5b3480156101de57600080fd5b506101e76106fa565b6040516101f49190612ea8565b60405180910390f35b34801561020957600080fd5b50610224600480360381019061021f9190612f63565b61078c565b6040516102319190612fbe565b60405180910390f35b34801561024657600080fd5b50610261600480360381019061025c9190613005565b6107aa565b005b34801561026f57600080fd5b5061028a60048036038101906102859190613058565b610953565b005b34801561029857600080fd5b506102a1610a1f565b6040516102ae9190613094565b60405180910390f35b3480156102c357600080fd5b506102cc610a29565b6040516102db939291906130af565b60405180910390f35b3480156102f057600080fd5b5061030b600480360381019061030691906130e6565b610a4f565b6040516103189190612fbe565b60405180910390f35b34801561032d57600080fd5b50610336610b47565b604051610345939291906130af565b60405180910390f35b34801561035a57600080fd5b50610363610b6d565b6040516103709190613155565b60405180910390f35b34801561038557600080fd5b506103a0600480360381019061039b9190613058565b610b76565b005b3480156103ae57600080fd5b506103c960048036038101906103c49190612f63565b610c83565b6040516103d69190612fbe565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613170565b610d2f565b6040516104159392919061319d565b60405180910390f35b34801561042a57600080fd5b5061044560048036038101906104409190613058565b610e28565b005b34801561045357600080fd5b5061045c610f35565b60405161046c94939291906131e3565b60405180910390f35b34801561048157600080fd5b5061049c60048036038101906104979190613170565b610f75565b6040516104a99190613094565b60405180910390f35b3480156104be57600080fd5b506104c7610fbd565b005b3480156104d557600080fd5b506104f060048036038101906104eb9190613170565b611045565b005b3480156104fe57600080fd5b5061051960048036038101906105149190613058565b611181565b005b34801561052757600080fd5b506105306112a3565b60405161053d9190613228565b60405180910390f35b34801561055257600080fd5b5061055b6112cd565b6040516105689190612ea8565b60405180910390f35b34801561057d57600080fd5b5061058661135f565b005b34801561059457600080fd5b506105af60048036038101906105aa9190612f63565b61142d565b6040516105bc9190612fbe565b60405180910390f35b3480156105d157600080fd5b506105ec60048036038101906105e79190612f63565b611518565b6040516105f99190612fbe565b60405180910390f35b34801561060e57600080fd5b5061062960048036038101906106249190613058565b611536565b005b34801561063757600080fd5b50610640611658565b005b34801561064e57600080fd5b5061066960048036038101906106649190613243565b611739565b005b34801561067757600080fd5b50610692600480360381019061068d9190613283565b61185e565b60405161069f9190613094565b60405180910390f35b3480156106b457600080fd5b506106cf60048036038101906106ca9190613170565b6118e5565b005b3480156106dd57600080fd5b506106f860048036038101906106f39190613243565b6119dc565b005b606060038054610709906132f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610735906132f2565b80156107825780601f1061075757610100808354040283529160200191610782565b820191906000526020600020905b81548152906001019060200180831161076557829003601f168201915b5050505050905090565b60006107a0610799611b01565b8484611b09565b6001905092915050565b6107b2611b01565b73ffffffffffffffffffffffffffffffffffffffff166107d06112a3565b73ffffffffffffffffffffffffffffffffffffffff1614610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d9061336f565b60405180910390fd5b600182101561086a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086190613401565b60405180910390fd5b818110156108ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a490613493565b60405180910390fd5b82600560156101000a81548160ff021916908315150217905550612710826108d3610a1f565b6108dd91906134e2565b6108e79190613553565b600681905550612710816108f9610a1f565b61090391906134e2565b61090d9190613553565b6007819055507f52cd2cdb42ff0eeec9362d7ed5b04f64c8d022697128b5378fc51cea7e63c779838383604051610946939291906130af565b60405180910390a1505050565b61095b611b01565b73ffffffffffffffffffffffffffffffffffffffff166109796112a3565b73ffffffffffffffffffffffffffffffffffffffff16146109cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c69061336f565b60405180910390fd5b8060108190555060646010541115610a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a13906135f6565b60405180910390fd5b50565b6000600254905090565b6000806000600560159054906101000a900460ff16925060065491506007549050909192565b6000610a5c848484611cd2565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610aa7611b01565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90613688565b60405180910390fd5b610b3b85610b33611b01565b858403611b09565b60019150509392505050565b6000806000600960009054906101000a900460ff169250600a549150600b549050909192565b60006012905090565b610b7e611b01565b73ffffffffffffffffffffffffffffffffffffffff16610b9c6112a3565b73ffffffffffffffffffffffffffffffffffffffff1614610bf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be99061336f565b60405180910390fd5b80600e819055506064600e541115610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c369061371a565b60405180910390fd5b7f38513c502b0ab4834ac1df9502b76f75dcf7092469782cfd0db7fe664388e25e600e54600e54600e54604051610c789392919061373a565b60405180910390a150565b6000610d25610c90611b01565b848460016000610c9e611b01565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d209190613771565b611b09565b6001905092915050565b6000806000601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169250601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169150601360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690509193909250565b610e30611b01565b73ffffffffffffffffffffffffffffffffffffffff16610e4e6112a3565b73ffffffffffffffffffffffffffffffffffffffff1614610ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9b9061336f565b60405180910390fd5b80600f819055506064600f541115610ef1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee890613817565b60405180910390fd5b7fcb5f36df892836a2eaedc349de29a7581176990398ee185d16eaa8f6c1abd8f1600f54600f54600f54604051610f2a9392919061373a565b60405180910390a150565b600080600080600e549350600f5492506010549150600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090919293565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fc5611b01565b73ffffffffffffffffffffffffffffffffffffffff16610fe36112a3565b73ffffffffffffffffffffffffffffffffffffffff1614611039576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110309061336f565b60405180910390fd5b611043600061276c565b565b61104d611b01565b73ffffffffffffffffffffffffffffffffffffffff1661106b6112a3565b73ffffffffffffffffffffffffffffffffffffffff16146110c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b89061336f565b60405180910390fd5b600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8616c7a330e3cf61290821331585511f1e2778171e2b005fb5ec60cfe874dc6760405160405180910390a380600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611189611b01565b73ffffffffffffffffffffffffffffffffffffffff166111a76112a3565b73ffffffffffffffffffffffffffffffffffffffff16146111fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f49061336f565b60405180910390fd5b6002811015611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890613883565b60405180910390fd5b6103e861124c610a1f565b8261125791906134e2565b6112619190613553565b600b819055507fff3dd5e80294197918c284bbfc3dadd97d0b40ce92106110946329088f80068a600b546040516112989190613094565b60405180910390a150565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546112dc906132f2565b80601f0160208091040260200160405190810160405280929190818152602001828054611308906132f2565b80156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b5050505050905090565b611367611b01565b73ffffffffffffffffffffffffffffffffffffffff166113856112a3565b73ffffffffffffffffffffffffffffffffffffffff16146113db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d29061336f565b60405180910390fd5b6000600960006101000a81548160ff0219169083151502179055506000601081905550427ff4eaa75eae08ae80c3daf791438dac1cff2cfd3b0bad2304ec7bbb067e50261660405160405180910390a2565b6000806001600061143c611b01565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156114f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f090613915565b60405180910390fd5b61150d611504611b01565b85858403611b09565b600191505092915050565b600061152c611525611b01565b8484611cd2565b6001905092915050565b61153e611b01565b73ffffffffffffffffffffffffffffffffffffffff1661155c6112a3565b73ffffffffffffffffffffffffffffffffffffffff16146115b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a99061336f565b60405180910390fd5b60058110156115f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ed906139a7565b60405180910390fd5b6103e8611601610a1f565b8261160c91906134e2565b6116169190613553565b600a819055507f12528a3c61e0f3b2d6fc707a9fc58b1af86e252cad0d7f4c154ebeabb162dace600a5460405161164d9190613094565b60405180910390a150565b611660611b01565b73ffffffffffffffffffffffffffffffffffffffff1661167e6112a3565b73ffffffffffffffffffffffffffffffffffffffff16146116d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cb9061336f565b60405180910390fd5b6001600d60006101000a81548160ff0219169083151502179055506001600560156101000a81548160ff021916908315150217905550427fb3da2db3dfc3778f99852546c6e9ab39ec253f9de7b0847afec61bd27878e92360405160405180910390a2565b611741611b01565b73ffffffffffffffffffffffffffffffffffffffff1661175f6112a3565b73ffffffffffffffffffffffffffffffffffffffff16146117b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ac9061336f565b60405180910390fd5b80601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7826040516118529190612fbe565b60405180910390a25050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6118ed611b01565b73ffffffffffffffffffffffffffffffffffffffff1661190b6112a3565b73ffffffffffffffffffffffffffffffffffffffff1614611961576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119589061336f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c790613a39565b60405180910390fd5b6119d98161276c565b50565b6119e4611b01565b73ffffffffffffffffffffffffffffffffffffffff16611a026112a3565b73ffffffffffffffffffffffffffffffffffffffff1614611a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4f9061336f565b60405180910390fd5b80601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f4b89c347592b1d537e066cb4ed98d87696ae35164745d7e370e4add16941dc9282604051611af59190612fbe565b60405180910390a25050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6f90613acb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611be7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bde90613b5d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611cc59190613094565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3890613bef565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da790613c81565b60405180910390fd5b60008103611dc957611dc483836000612832565b612767565b600960009054906101000a900460ff16156122c457611de66112a3565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015611e545750611e246112a3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611e8d5750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611ec7575061dead73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015611ee05750600560149054906101000a900460ff16155b156122c357600d60009054906101000a900460ff16611fda57601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611f9a5750601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611fd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd090613d13565b60405180910390fd5b5b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561207d5750601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561212457600b548111156120c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120be90613da5565b60405180910390fd5b600a546120d383610f75565b826120de9190613771565b111561211f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211690613e11565b60405180910390fd5b6122c2565b601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156121c75750601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561221657600b54811115612211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220890613ea3565b60405180910390fd5b6122c1565b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166122c057600a5461227383610f75565b8261227e9190613771565b11156122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b690613e11565b60405180910390fd5b5b5b5b5b5b60006122cf30610f75565b9050600060065482101590508080156122f45750600560159054906101000a900460ff165b801561230d5750600560149054906101000a900460ff16155b80156123635750601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156123b95750601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561240f5750601160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b801561241d57504260085414155b15612469576001600560146101000a81548160ff02191690831515021790555061244683612ab1565b426008819055506000600560146101000a81548160ff0219169083151502179055505b6000600560149054906101000a900460ff16159050601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061251f5750601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561252957600090505b6000811561275757601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561258c57506000600f54115b156125c0576125b960646125ab600f5488612ba590919063ffffffff16565b612bbb90919063ffffffff16565b9050612733565b601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16801561261b57506000600e54115b1561264f57612648606461263a600e5488612ba590919063ffffffff16565b612bbb90919063ffffffff16565b9050612732565b60006010541180156126ab5750601360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156127015750601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156127315761272e606461272060105488612ba590919063ffffffff16565b612bbb90919063ffffffff16565b90505b5b5b600081111561274857612747873083612832565b5b80856127549190613ec3565b94505b612762878787612832565b505050505b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036128a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289890613bef565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612910576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290790613c81565b60405180910390fd5b61291b838383612bd1565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156129a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299890613f69565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a349190613771565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612a989190613094565b60405180910390a3612aab848484612bd6565b50505050565b6000612abc30610f75565b90506000808203612ace575050612ba2565b600754821115612ade5760075491505b600f83612aeb91906134e2565b821115612b0257600f83612aff91906134e2565b91505b6000829050612b1081612bdb565b600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051612b5690613fba565b60006040518083038185875af1925050503d8060008114612b93576040519150601f19603f3d011682016040523d82523d6000602084013e612b98565b606091505b5050809250505050505b50565b60008183612bb391906134e2565b905092915050565b60008183612bc99190613553565b905092915050565b505050565b505050565b6000600267ffffffffffffffff811115612bf857612bf7613fcf565b5b604051908082528060200260200182016040528015612c265781602001602082028036833780820191505090505b5090503081600081518110612c3e57612c3d613ffe565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d079190614042565b81600181518110612d1b57612d1a613ffe565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612d80307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611b09565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b8152600401612de2959493929190614172565b600060405180830381600087803b158015612dfc57600080fd5b505af1158015612e10573d6000803e3d6000fd5b505050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612e52578082015181840152602081019050612e37565b60008484015250505050565b6000601f19601f8301169050919050565b6000612e7a82612e18565b612e848185612e23565b9350612e94818560208601612e34565b612e9d81612e5e565b840191505092915050565b60006020820190508181036000830152612ec28184612e6f565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612efa82612ecf565b9050919050565b612f0a81612eef565b8114612f1557600080fd5b50565b600081359050612f2781612f01565b92915050565b6000819050919050565b612f4081612f2d565b8114612f4b57600080fd5b50565b600081359050612f5d81612f37565b92915050565b60008060408385031215612f7a57612f79612eca565b5b6000612f8885828601612f18565b9250506020612f9985828601612f4e565b9150509250929050565b60008115159050919050565b612fb881612fa3565b82525050565b6000602082019050612fd36000830184612faf565b92915050565b612fe281612fa3565b8114612fed57600080fd5b50565b600081359050612fff81612fd9565b92915050565b60008060006060848603121561301e5761301d612eca565b5b600061302c86828701612ff0565b935050602061303d86828701612f4e565b925050604061304e86828701612f4e565b9150509250925092565b60006020828403121561306e5761306d612eca565b5b600061307c84828501612f4e565b91505092915050565b61308e81612f2d565b82525050565b60006020820190506130a96000830184613085565b92915050565b60006060820190506130c46000830186612faf565b6130d16020830185613085565b6130de6040830184613085565b949350505050565b6000806000606084860312156130ff576130fe612eca565b5b600061310d86828701612f18565b935050602061311e86828701612f18565b925050604061312f86828701612f4e565b9150509250925092565b600060ff82169050919050565b61314f81613139565b82525050565b600060208201905061316a6000830184613146565b92915050565b60006020828403121561318657613185612eca565b5b600061319484828501612f18565b91505092915050565b60006060820190506131b26000830186612faf565b6131bf6020830185612faf565b6131cc6040830184612faf565b949350505050565b6131dd81612eef565b82525050565b60006080820190506131f86000830187613085565b6132056020830186613085565b6132126040830185613085565b61321f60608301846131d4565b95945050505050565b600060208201905061323d60008301846131d4565b92915050565b6000806040838503121561325a57613259612eca565b5b600061326885828601612f18565b925050602061327985828601612ff0565b9150509250929050565b6000806040838503121561329a57613299612eca565b5b60006132a885828601612f18565b92505060206132b985828601612f18565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061330a57607f821691505b60208210810361331d5761331c6132c3565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613359602083612e23565b915061336482613323565b602082019050919050565b600060208201905081810360008301526133888161334c565b9050919050565b7f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60008201527f20302e30312520746f74616c20737570706c792e000000000000000000000000602082015250565b60006133eb603483612e23565b91506133f68261338f565b604082019050919050565b6000602082019050818103600083015261341a816133de565b9050919050565b7f6d6178696d756d20616d6f756e742063616e742062652068696768657220746860008201527f616e206d696e696d756d00000000000000000000000000000000000000000000602082015250565b600061347d602a83612e23565b915061348882613421565b604082019050919050565b600060208201905081810360008301526134ac81613470565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006134ed82612f2d565b91506134f883612f2d565b925082820261350681612f2d565b9150828204841483151761351d5761351c6134b3565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061355e82612f2d565b915061356983612f2d565b92508261357957613578613524565b5b828204905092915050565b7f546f74616c207472616e73666572206665652063616e6e6f742062652068696760008201527f686572207468616e203130302500000000000000000000000000000000000000602082015250565b60006135e0602d83612e23565b91506135eb82613584565b604082019050919050565b6000602082019050818103600083015261360f816135d3565b9050919050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b6000613672602883612e23565b915061367d82613616565b604082019050919050565b600060208201905081810360008301526136a181613665565b9050919050565b7f546f74616c20627579206665652063616e6e6f7420626520686967686572207460008201527f68616e2031303025000000000000000000000000000000000000000000000000602082015250565b6000613704602883612e23565b915061370f826136a8565b604082019050919050565b60006020820190508181036000830152613733816136f7565b9050919050565b600060608201905061374f6000830186613085565b61375c6020830185613085565b6137696040830184613085565b949350505050565b600061377c82612f2d565b915061378783612f2d565b925082820190508082111561379f5761379e6134b3565b5b92915050565b7f546f74616c2073656c6c206665652063616e6e6f74206265206869676865722060008201527f7468616e20313030250000000000000000000000000000000000000000000000602082015250565b6000613801602983612e23565b915061380c826137a5565b604082019050919050565b60006020820190508181036000830152613830816137f4565b9050919050565b7f43616e6e6f7420736574206d61785478206c6f776572207468616e20302e3225600082015250565b600061386d602083612e23565b915061387882613837565b602082019050919050565b6000602082019050818103600083015261389c81613860565b9050919050565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b60006138ff602583612e23565b915061390a826138a3565b604082019050919050565b6000602082019050818103600083015261392e816138f2565b9050919050565b7f43616e6e6f74207365742077616c6c65744c696d6974206c6f7765722074686160008201527f6e20302e35250000000000000000000000000000000000000000000000000000602082015250565b6000613991602683612e23565b915061399c82613935565b604082019050919050565b600060208201905081810360008301526139c081613984565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613a23602683612e23565b9150613a2e826139c7565b604082019050919050565b60006020820190508181036000830152613a5281613a16565b9050919050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000613ab5602483612e23565b9150613ac082613a59565b604082019050919050565b60006020820190508181036000830152613ae481613aa8565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b47602283612e23565b9150613b5282613aeb565b604082019050919050565b60006020820190508181036000830152613b7681613b3a565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613bd9602583612e23565b9150613be482613b7d565b604082019050919050565b60006020820190508181036000830152613c0881613bcc565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000613c6b602383612e23565b9150613c7682613c0f565b604082019050919050565b60006020820190508181036000830152613c9a81613c5e565b9050919050565b7f5f7472616e736665723a3a2054726164696e67206973206e6f7420616374697660008201527f652e000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cfd602283612e23565b9150613d0882613ca1565b604082019050919050565b60006020820190508181036000830152613d2c81613cf0565b9050919050565b7f427579207472616e7366657220616d6f756e742065786365656473207468652060008201527f6d617854782e0000000000000000000000000000000000000000000000000000602082015250565b6000613d8f602683612e23565b9150613d9a82613d33565b604082019050919050565b60006020820190508181036000830152613dbe81613d82565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b6000613dfb601383612e23565b9150613e0682613dc5565b602082019050919050565b60006020820190508181036000830152613e2a81613dee565b9050919050565b7f53656c6c207472616e7366657220616d6f756e7420657863656564732074686560008201527f206d617854782e00000000000000000000000000000000000000000000000000602082015250565b6000613e8d602783612e23565b9150613e9882613e31565b604082019050919050565b60006020820190508181036000830152613ebc81613e80565b9050919050565b6000613ece82612f2d565b9150613ed983612f2d565b9250828203905081811115613ef157613ef06134b3565b5b92915050565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b6000613f53602683612e23565b9150613f5e82613ef7565b604082019050919050565b60006020820190508181036000830152613f8281613f46565b9050919050565b600081905092915050565b50565b6000613fa4600083613f89565b9150613faf82613f94565b600082019050919050565b6000613fc582613f97565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061403c81612f01565b92915050565b60006020828403121561405857614057612eca565b5b60006140668482850161402d565b91505092915050565b6000819050919050565b6000819050919050565b600061409e6140996140948461406f565b614079565b612f2d565b9050919050565b6140ae81614083565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6140e981612eef565b82525050565b60006140fb83836140e0565b60208301905092915050565b6000602082019050919050565b600061411f826140b4565b61412981856140bf565b9350614134836140d0565b8060005b8381101561416557815161414c88826140ef565b975061415783614107565b925050600181019050614138565b5085935050505092915050565b600060a0820190506141876000830188613085565b61419460208301876140a5565b81810360408301526141a68186614114565b90506141b560608301856131d4565b6141c26080830184613085565b969550505050505056fea2646970667358221220414e3ea18e974dd2f2bd69773abed60bdec4f7be8efc105eeaa60807850eaf3564736f6c63430008130033
Verified Source Code Partial Match
Compiler: v0.8.19+commit.7dd6d404
EVM: paris
Optimization: No
DOGGEN.sol 1385 lines
/*
* SPDX-License-Identifier: MIT
* https://doggensnout.vip/
* https://x.com/doggensnouts
* https://t.me/doggensnouts
*/
pragma solidity 0.8.19;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
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);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(
uint256 a,
uint256 b
) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
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);
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(
address account
) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(
address owner,
address spender
) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(
address spender,
uint256 amount
) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the upd allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(
currentAllowance >= amount,
"ERC20: transfer amount exceeds allowance"
);
unchecked {
_approve(sender, _msgSender(), currentAllowance - 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 upd allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(
address spender,
uint256 addedValue
) public virtual returns (bool) {
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][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 upd 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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(
currentAllowance >= subtractedValue,
"ERC20: decreased allowance below zero"
);
unchecked {
_approve(_msgSender(), spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `sender` to `recipient`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
uint256 senderBalance = _balances[sender];
require(
senderBalance >= amount,
"ERC20: transfer amount exceeds balance"
);
unchecked {
_balances[sender] = senderBalance - amount;
}
_balances[recipient] += amount;
emit Transfer(sender, recipient, amount);
_afterTokenTransfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
}
_totalSupply -= amount;
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev 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 {}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
interface IDexFactory {
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 IDexRouter {
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 swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
contract DOGGEN is ERC20, Ownable {
using SafeMath for uint256;
IDexRouter private immutable dexRouter;
address private immutable dexPair;
// Swapback
bool private onSwapback;
bool private isSwapbackEnabled = false;
uint256 private minSwapback;
uint256 private maxSwapback;
uint256 private lastSwapback;
//Anti-whale
bool private limitsOn = true;
uint256 private walletLimit;
uint256 private maxTx;
mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch
bool private tradingEnabled = false;
// Fees
address private marketingWallet;
uint256 private buyTaxTotal;
uint256 private sellTaxTotal;
uint256 private transferTaxTotal;
/******************/
// exclude from fees and max transaction amount
mapping(address => bool) private transferTaxExempt;
mapping(address => bool) private transferLimitExempt;
mapping(address => bool) private automatedMarketMakerPairs;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
event UpdateUniswapV2Router(
address indexed newAddress,
address indexed oldAddress
);
event ExcludeFromFees(address indexed account, bool isExcluded);
event ExcludeFromLimits(address indexed account, bool isExcluded);
event SetPairLPool(address indexed pair, bool indexed value);
event TradingEnabled(uint256 indexed timestamp);
event LimitsRemoved(uint256 indexed timestamp);
event DisabledTransferDelay(uint256 indexed timestamp);
event SwapbackSettingsUpdated(
bool enabled,
uint256 minSwapback,
uint256 maxSwapback
);
event MaxTxUpdated(uint256 maxTx);
event MaxWalletUpdated(uint256 walletLimit);
event MarketingWalletUpdated(
address indexed newWallet,
address indexed oldWallet
);
event BuyFeeUpdated(
uint256 buyTaxTotal,
uint256 buyMarketingTax,
uint256 buyProjectTax
);
event SellFeeUpdated(
uint256 sellTaxTotal,
uint256 sellMarketingTax,
uint256 sellProjectTax
);
constructor() ERC20("Doggensnout", "DOGGEN") {
IDexRouter _dexRouter = IDexRouter(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
limitsMaxExempt(address(_dexRouter), true);
dexRouter = _dexRouter;
dexPair = IDexFactory(_dexRouter.factory()).createPair(
address(this),
_dexRouter.WETH()
);
limitsMaxExempt(address(dexPair), true);
_LPset(address(dexPair), true);
uint256 _totalSupply = 690_420_000_000_000 * 10 ** decimals();
lastSwapback = block.timestamp;
maxTx = (_totalSupply * 10) / 1000;
walletLimit = (_totalSupply * 10) / 1000;
minSwapback = (_totalSupply * 1) / 1000;
maxSwapback = (_totalSupply * 2) / 100;
buyTaxTotal = 30;
sellTaxTotal = 30;
transferTaxTotal = 0;
marketingWallet = address(0xeDCb9C967C8FBb62fB042F855094714E5700Cb22);
// exclude from paying fees or having max transaction amount
taxesSetExempt(msg.sender, true);
taxesSetExempt(address(this), true);
taxesSetExempt(address(0xdead), true);
taxesSetExempt(marketingWallet, true);
limitsMaxExempt(msg.sender, true);
limitsMaxExempt(address(this), true);
limitsMaxExempt(address(0xdead), true);
limitsMaxExempt(marketingWallet, true);
transferOwnership(msg.sender);
/*
_mint is an internal function in ERC20.sol that is only called here,
and CANNOT be called ever again
*/
_mint(msg.sender, _totalSupply);
}
receive() external payable {}
/**
* @notice Opens public trading for the token
* @dev onlyOwner.
*/
function openTrading() external onlyOwner {
tradingEnabled = true;
isSwapbackEnabled = true;
emit TradingEnabled(block.timestamp);
}
/**
* @notice Removes the max wallet and max transaction limits
* @dev onlyOwner.
* Emits an {LimitsRemoved} event
*/
function disableLimitNow() external onlyOwner {
limitsOn = false;
transferTaxTotal = 0;
emit LimitsRemoved(block.timestamp);
}
/**
* @notice sets if swapback is enabled and sets the minimum and maximum amounts
* @dev onlyOwner.
* Emits an {SwapbackSettingsUpdated} event
* @param _caSBcEnabled If swapback is enabled
* @param _caSBcTrigger The minimum amount of tokens the contract must have before swapping tokens for ETH. Base 10000, so 1% = 100.
* @param _caSBcLimit The maximum amount of tokens the contract can swap for ETH. Base 10000, so 1% = 100.
*/
function newSwapB(
bool _caSBcEnabled,
uint256 _caSBcTrigger,
uint256 _caSBcLimit
) external onlyOwner {
require(
_caSBcTrigger >= 1,
"Swap amount cannot be lower than 0.01% total supply."
);
require(
_caSBcLimit >= _caSBcTrigger,
"maximum amount cant be higher than minimum"
);
isSwapbackEnabled = _caSBcEnabled;
minSwapback = (totalSupply() * _caSBcTrigger) / 10000;
maxSwapback = (totalSupply() * _caSBcLimit) / 10000;
emit SwapbackSettingsUpdated(_caSBcEnabled, _caSBcTrigger, _caSBcLimit);
}
/**
* @notice Changes the maximum amount of tokens that can be bought or sold in a single transaction
* @dev onlyOwner.
* Emits an {MaxTxUpdated} event
* @param _maxTx Base 1000, so 1% = 10
*/
function limitsTxChange(uint256 _maxTx) external onlyOwner {
require(_maxTx >= 2, "Cannot set maxTx lower than 0.2%");
maxTx = (_maxTx * totalSupply()) / 1000;
emit MaxTxUpdated(maxTx);
}
/**
* @notice Changes the maximum amount of tokens a wallet can hold
* @dev onlyOwner.
* Emits an {MaxWalletUpdated} event
* @param _walletLimit Base 1000, so 1% = 10
*/
function limitsWalletChange(
uint256 _walletLimit
) external onlyOwner {
require(_walletLimit >= 5, "Cannot set walletLimit lower than 0.5%");
walletLimit = (_walletLimit * totalSupply()) / 1000;
emit MaxWalletUpdated(walletLimit);
}
/**
* @notice Sets if a wallet is excluded from the max wallet and tx limits
* @dev onlyOwner.
* Emits an {ExcludeFromLimits} event
* @param _add The wallet to update
* @param _excluded If the wallet is excluded or not
*/
function limitsMaxExempt(
address _add,
bool _excluded
) public onlyOwner {
transferLimitExempt[_add] = _excluded;
emit ExcludeFromLimits(_add, _excluded);
}
/**
* @notice Sets the fees for buys
* @dev onlyOwner.
* Emits a {BuyFeeUpdated} event
* All fees added up must be less than 100
* @param _value The fee for the marketing wallet
*/
function taxesBuyChange(uint256 _value) external onlyOwner {
buyTaxTotal = _value;
require(buyTaxTotal <= 100, "Total buy fee cannot be higher than 100%");
emit BuyFeeUpdated(buyTaxTotal, buyTaxTotal, buyTaxTotal);
}
/**
* @notice Sets the fees for sells
* @dev onlyOwner.
* Emits a {SellFeeUpdated} event
* All fees added up must be less than 100
* @param _value The fee for the marketing wallet
*/
function taxesSellChange(uint256 _value) external onlyOwner {
sellTaxTotal = _value;
require(
sellTaxTotal <= 100,
"Total sell fee cannot be higher than 100%"
);
emit SellFeeUpdated(sellTaxTotal, sellTaxTotal, sellTaxTotal);
}
function taxesTransferChange(uint256 _value) external onlyOwner {
transferTaxTotal = _value;
require(
transferTaxTotal <= 100,
"Total transfer fee cannot be higher than 100%"
);
}
/**
* @notice Sets if an address is excluded from fees
* @dev onlyOwner.
* Emits an {ExcludeFromFees} event
* @param _add The wallet to update
* @param _excluded If the wallet is excluded or not
*/
function taxesSetExempt(
address _add,
bool _excluded
) public onlyOwner {
transferTaxExempt[_add] = _excluded;
emit ExcludeFromFees(_add, _excluded);
}
function _LPset(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetPairLPool(pair, value);
}
/**
* @notice Sets the marketing wallet
* @dev onlyOwner.
* Emits an {MarketingWalletUpdated} event
* @param _marketing The new marketing wallet
*/
function taxesReceiverNew(address _marketing) external onlyOwner {
emit MarketingWalletUpdated(_marketing, marketingWallet);
marketingWallet = _marketing;
}
/**
* @notice Information about the swapback settings
* @return _isSwapbackEnabled if swapback is enabled
* @return _caSBcackValueMin the minimum amount of tokens in the contract balance to trigger swapback
* @return _caSBcackValueMax the maximum amount of tokens in the contract balance to trigger swapback
*/
function swapBRead()
external
view
returns (
bool _isSwapbackEnabled,
uint256 _caSBcackValueMin,
uint256 _caSBcackValueMax
)
{
_isSwapbackEnabled = isSwapbackEnabled;
_caSBcackValueMin = minSwapback;
_caSBcackValueMax = maxSwapback;
}
/**
* @notice Information about the anti whale parameters
* @return _limitsOn if the wallet limits are in effect
* @return _walletLimit The maximum amount of tokens that can be held by a wallet
* @return _maxTx The maximum amount of tokens that can be bought or sold in a single transaction
*/
function maxLimsCR()
external
view
returns (bool _limitsOn, uint256 _walletLimit, uint256 _maxTx)
{
_limitsOn = limitsOn;
_walletLimit = walletLimit;
_maxTx = maxTx;
}
/**
* @notice Fees for buys, sells, and transfers
* @return _buyTaxTotal The total fee for buys
* @return _sellTaxTotal The total fee for sells
* @return _transferTaxTotal The total fee for transfers
* @return _receiver The wallet that receives the fees
*/
function taxesCVI()
external
view
returns (
uint256 _buyTaxTotal,
uint256 _sellTaxTotal,
uint256 _transferTaxTotal,
address _receiver
)
{
_buyTaxTotal = buyTaxTotal;
_sellTaxTotal = sellTaxTotal;
_transferTaxTotal = transferTaxTotal;
_receiver = marketingWallet;
}
/**
* @notice If the wallet is excluded from fees and max transaction amount and if the wallet is a automated market maker pair
* @param _target The wallet to check
* @return _transferTaxExempt If the wallet is excluded from fees
* @return _transferLimitExempt If the wallet is excluded from max transaction amount
* @return _automatedMarketMakerPairs If the wallet is a automated market maker pair
*/
function addressPrmV(
address _target
)
external
view
returns (
bool _transferTaxExempt,
bool _transferLimitExempt,
bool _automatedMarketMakerPairs
)
{
_transferTaxExempt = transferTaxExempt[_target];
_transferLimitExempt = transferLimitExempt[_target];
_automatedMarketMakerPairs = automatedMarketMakerPairs[_target];
}
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 (limitsOn) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!onSwapback
) {
if (!tradingEnabled) {
require(
transferTaxExempt[from] || transferTaxExempt[to],
"_transfer:: Trading is not active."
);
}
//when buy
if (
automatedMarketMakerPairs[from] && !transferLimitExempt[to]
) {
require(
amount <= maxTx,
"Buy transfer amount exceeds the maxTx."
);
require(
amount + balanceOf(to) <= walletLimit,
"Max wallet exceeded"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] && !transferLimitExempt[from]
) {
require(
amount <= maxTx,
"Sell transfer amount exceeds the maxTx."
);
} else if (!transferLimitExempt[to]) {
require(
amount + balanceOf(to) <= walletLimit,
"Max wallet exceeded"
);
}
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= minSwapback;
if (
canSwap &&
isSwapbackEnabled &&
!onSwapback &&
!automatedMarketMakerPairs[from] &&
!transferTaxExempt[from] &&
!transferTaxExempt[to] &&
lastSwapback != block.timestamp
) {
onSwapback = true;
swapBack(amount);
lastSwapback = block.timestamp;
onSwapback = false;
}
bool takeFee = !onSwapback;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (transferTaxExempt[from] || transferTaxExempt[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellTaxTotal > 0) {
fees = amount.mul(sellTaxTotal).div(100);
}
// on buy
else if (automatedMarketMakerPairs[from] && buyTaxTotal > 0) {
fees = amount.mul(buyTaxTotal).div(100);
}
// on transfers
else if (
transferTaxTotal > 0 &&
!automatedMarketMakerPairs[from] &&
!automatedMarketMakerPairs[to]
) {
fees = amount.mul(transferTaxTotal).div(100);
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function internalSwapback(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = dexRouter.WETH();
_approve(address(this), address(dexRouter), tokenAmount);
// make the swap
dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function swapBack(uint256 amount) private {
uint256 contractBalance = balanceOf(address(this));
bool success;
if (contractBalance == 0) {
return;
}
if (contractBalance > maxSwapback) {
contractBalance = maxSwapback;
}
if (contractBalance > amount * 15) {
contractBalance = amount * 15;
}
uint256 amountToSwapForETH = contractBalance;
internalSwapback(amountToSwapForETH);
(success, ) = address(marketingWallet).call{
value: address(this).balance
}("");
}
}
Read Contract
addressPrmV 0x53541bc5 → bool, bool, bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
maxLimsCR 0x25d69c9f → bool, uint256, uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapBRead 0x1d3fb5fb → bool, uint256, uint256
symbol 0x95d89b41 → string
taxesCVI 0x5c1039e4 → uint256, uint256, uint256, address
totalSupply 0x18160ddd → uint256
Write Contract 18 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
disableLimitNow 0x99b1cee5
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
limitsMaxExempt 0xf6caa0b2
address _add
bool _excluded
limitsTxChange 0x80829424
uint256 _maxTx
limitsWalletChange 0xb3e254ff
uint256 _walletLimit
newSwapB 0x121bb6e8
bool _caSBcEnabled
uint256 _caSBcTrigger
uint256 _caSBcLimit
openTrading 0xc9567bf9
No parameters
renounceOwnership 0x715018a6
No parameters
taxesBuyChange 0x368ef226
uint256 _value
taxesReceiverNew 0x7f21b623
address _marketing
taxesSellChange 0x54868ac5
uint256 _value
taxesSetExempt 0xcf61629b
address _add
bool _excluded
taxesTransferChange 0x167ad3fd
uint256 _value
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address