Address Contract Partially Verified
Address
0x7bDF3FF2513a4f467Bc25B7fD4B8404Ad8126cB3
Balance
0.014848 ETH
Nonce
1
Code Size
19254 bytes
Creator
0x2B52743F...133d at tx 0x0c65e7cf...7abcec
Indexed Transactions
0
Contract Bytecode
19254 bytes
0x60806040526004361061023f5760003560e01c80637571336a1161012e578063c0246668116100ab578063dd62ed3e1161006f578063dd62ed3e146108bf578063e16830a8146108fc578063f2fde38b14610925578063f5b3c3bf1461094e578063f887ea401461098b57610246565b8063c0246668146107e9578063c16dd4a414610812578063c18bc1951461083b578063d212a69a14610864578063d3f6a1571461089657610246565b80639fccce32116100f25780639fccce3214610702578063a457c2d71461072d578063a9059cbb1461076a578063b8863115146107a7578063b9e418e7146107d257610246565b80637571336a1461061b5780638da5cb5b146106445780638ea5220f1461066f57806395d89b411461069a57806396880b17146106c557610246565b8063313ce567116101bc5780634fbee193116101805780634fbee19314610522578063555467a11461055f5780636ddd17131461059c57806370a08231146105c7578063715018a61461060457610246565b8063313ce5671461043d5780633265e846146104685780633950935114610491578063455a4396146104ce57806349bd5a5e146104f757610246565b80631a8145bb116102035780631a8145bb146103445780631c6e8a751461036f5780631cdd3be3146103985780631f3fed8f146103d557806323b872dd1461040057610246565b806306fdde031461024b578063095ea7b31461027657806310d5de53146102b357806311a582c3146102f057806318160ddd1461031957610246565b3661024657005b600080fd5b34801561025757600080fd5b506102606109b6565b60405161026d919061397e565b60405180910390f35b34801561028257600080fd5b5061029d60048036038101906102989190613a39565b610a48565b6040516102aa9190613a94565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190613aaf565b610a66565b6040516102e79190613a94565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613adc565b610a86565b005b34801561032557600080fd5b5061032e610c57565b60405161033b9190613b2b565b60405180910390f35b34801561035057600080fd5b50610359610c61565b6040516103669190613b2b565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190613b72565b610c67565b005b3480156103a457600080fd5b506103bf60048036038101906103ba9190613aaf565b610d1b565b6040516103cc9190613a94565b60405180910390f35b3480156103e157600080fd5b506103ea610d3b565b6040516103f79190613b2b565b60405180910390f35b34801561040c57600080fd5b5061042760048036038101906104229190613b9f565b610d41565b6040516104349190613a94565b60405180910390f35b34801561044957600080fd5b50610452610e1a565b60405161045f9190613c0e565b60405180910390f35b34801561047457600080fd5b5061048f600480360381019061048a9190613c55565b610e23565b005b34801561049d57600080fd5b506104b860048036038101906104b39190613a39565b6110fc565b6040516104c59190613a94565b60405180910390f35b3480156104da57600080fd5b506104f560048036038101906104f09190613ce2565b6111af565b005b34801561050357600080fd5b5061050c6112a1565b6040516105199190613d31565b60405180910390f35b34801561052e57600080fd5b5061054960048036038101906105449190613aaf565b6112c5565b6040516105569190613a94565b60405180910390f35b34801561056b57600080fd5b5061058660048036038101906105819190613d4c565b61131b565b6040516105939190613a94565b60405180910390f35b3480156105a857600080fd5b506105b16113c4565b6040516105be9190613a94565b60405180910390f35b3480156105d357600080fd5b506105ee60048036038101906105e99190613aaf565b6113d7565b6040516105fb9190613b2b565b60405180910390f35b34801561061057600080fd5b5061061961141f565b005b34801561062757600080fd5b50610642600480360381019061063d9190613ce2565b611577565b005b34801561065057600080fd5b50610659611669565b6040516106669190613d31565b60405180910390f35b34801561067b57600080fd5b50610684611693565b6040516106919190613d31565b60405180910390f35b3480156106a657600080fd5b506106af6116b9565b6040516106bc919061397e565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e79190613aaf565b61174b565b6040516106f99190613a94565b60405180910390f35b34801561070e57600080fd5b5061071761176b565b6040516107249190613b2b565b60405180910390f35b34801561073957600080fd5b50610754600480360381019061074f9190613a39565b611771565b6040516107619190613a94565b60405180910390f35b34801561077657600080fd5b50610791600480360381019061078c9190613a39565b61183e565b60405161079e9190613a94565b60405180910390f35b3480156107b357600080fd5b506107bc61185c565b6040516107c99190613a94565b60405180910390f35b3480156107de57600080fd5b506107e761186f565b005b3480156107f557600080fd5b50610810600480360381019061080b9190613ce2565b611951565b005b34801561081e57600080fd5b5061083960048036038101906108349190613ce2565b611a43565b005b34801561084757600080fd5b50610862600480360381019061085d9190613d4c565b611bc4565b005b34801561087057600080fd5b50610879611cf9565b60405161088d989796959493929190613d79565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b89190613df7565b611d97565b005b3480156108cb57600080fd5b506108e660048036038101906108e19190613df7565b611eb4565b6040516108f39190613b2b565b60405180910390f35b34801561090857600080fd5b50610923600480360381019061091e9190613ce2565b611f3b565b005b34801561093157600080fd5b5061094c60048036038101906109479190613aaf565b61202d565b005b34801561095a57600080fd5b5061097560048036038101906109709190613aaf565b6121f4565b6040516109829190613a94565b60405180910390f35b34801561099757600080fd5b506109a0612214565b6040516109ad9190613e96565b60405180910390f35b6060600380546109c590613ee0565b80601f01602080910402602001604051908101604052809291908181526020018280546109f190613ee0565b8015610a3e5780601f10610a1357610100808354040283529160200191610a3e565b820191906000526020600020905b815481529060010190602001808311610a2157829003601f168201915b5050505050905090565b6000610a5c610a55612296565b848461229e565b6001905092915050565b60136020528060005260406000206000915054906101000a900460ff1681565b610a8e612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1490613f5e565b60405180910390fd5b6064610b27610c57565b610b319190613fdc565b6103e883610b3d610c57565b610b47919061400d565b610b519190613fdc565b1015610b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b89906140d9565b60405180910390fd5b6064610b9c610c57565b610ba69190613fdc565b6103e882610bb2610c57565b610bbc919061400d565b610bc69190613fdc565b1015610c07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfe9061416b565b60405180910390fd5b6103e882610c13610c57565b610c1d919061400d565b610c279190613fdc565b6008819055506103e881610c39610c57565b610c43919061400d565b610c4d9190613fdc565b6009819055505050565b6000600254905090565b600f5481565b610c6f612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610cfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf590613f5e565b60405180910390fd5b80600c60016101000a81548160ff02191690831515021790555050565b60166020528060005260406000206000915054906101000a900460ff1681565b600e5481565b6000610d4e848484612389565b610e0f84610d5a612296565b610e0a85604051806060016040528060288152602001614ad960289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610dc0612296565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f429092919063ffffffff16565b61229e565b600190509392505050565b60006012905090565b610e2b612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610eba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb190613f5e565b60405180910390fd5b85600d60000160016101000a81548160ff021916908360ff16021790555084600d60000160036101000a81548160ff021916908360ff16021790555083600d60000160026101000a81548160ff021916908360ff160217905550600d60000160029054906101000a900460ff16600d60000160039054906101000a900460ff16600d60000160019054906101000a900460ff16610f57919061418b565b610f61919061418b565b600d60000160006101000a81548160ff021916908360ff16021790555082600d60000160056101000a81548160ff021916908360ff16021790555081600d60000160076101000a81548160ff021916908360ff16021790555080600d60000160066101000a81548160ff021916908360ff160217905550600d60000160069054906101000a900460ff16600d60000160079054906101000a900460ff16600d60000160059054906101000a900460ff1661101b919061418b565b611025919061418b565b600d60000160046101000a81548160ff021916908360ff160217905550601e600d60000160009054906101000a900460ff1660ff16111561109b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110929061420e565b60405180910390fd5b601e600d60000160049054906101000a900460ff1660ff1611156110f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110eb9061420e565b60405180910390fd5b505050505050565b60006111a5611109612296565b846111a0856001600061111a612296565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461223890919063ffffffff16565b61229e565b6001905092915050565b6111b7612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611246576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123d90613f5e565b60405180910390fd5b80601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b7f00000000000000000000000019f96bdc38c929b53b7ba5331a9399da04a5f32f81565b6000601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000611325612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146113b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ab90613f5e565b60405180910390fd5b81600b8190555060019050919050565b600c60019054906101000a900460ff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611427612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ad90613f5e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61157f612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461160e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160590613f5e565b60405180910390fd5b80601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060600480546116c890613ee0565b80601f01602080910402602001604051908101604052809291908181526020018280546116f490613ee0565b80156117415780601f1061171657610100808354040283529160200191611741565b820191906000526020600020905b81548152906001019060200180831161172457829003601f168201915b5050505050905090565b60146020528060005260406000206000915054906101000a900460ff1681565b60105481565b600061183461177e612296565b8461182f85604051806060016040528060258152602001614a8e60259139600160006117a8612296565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f429092919063ffffffff16565b61229e565b6001905092915050565b600061185261184b612296565b8484612389565b6001905092915050565b600c60029054906101000a900460ff1681565b611877612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fd90613f5e565b60405180910390fd5b6001600c60006101000a81548160ff0219169083151502179055506001600c60016101000a81548160ff021916908315150217905550600243611949919061422e565b601181905550565b611959612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119df90613f5e565b60405180910390fd5b80601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b611a4b612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ada576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad190613f5e565b60405180910390fd5b7f00000000000000000000000019f96bdc38c929b53b7ba5331a9399da04a5f32f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b60906142d0565b60405180910390fd5b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b611bcc612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5290613f5e565b60405180910390fd5b6064611c65610c57565b611c6f9190613fdc565b6103e882611c7b610c57565b611c85919061400d565b611c8f9190613fdc565b1015611cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc790614362565b60405180910390fd5b6103e881611cdc610c57565b611ce6919061400d565b611cf09190613fdc565b600a8190555050565b600d8060000160009054906101000a900460ff16908060000160019054906101000a900460ff16908060000160029054906101000a900460ff16908060000160039054906101000a900460ff16908060000160049054906101000a900460ff16908060000160059054906101000a900460ff16908060000160069054906101000a900460ff16908060000160079054906101000a900460ff16905088565b611d9f612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590613f5e565b60405180910390fd5b81600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b611f43612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc990613f5e565b60405180910390fd5b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b612035612296565b73ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146120c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bb90613f5e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212b906143f4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60156020528060005260406000206000915054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6000808284612247919061422e565b90508381101561228c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228390614460565b60405180910390fd5b8091505092915050565b600033905090565b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161237c9190613b2b565b60405180910390a3505050565b60008114156123a35761239e83836000612fa6565b612f3d565b6123ab611669565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561241957506123e9611669565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156124325750600c60029054906101000a900460ff16155b1561289b57600c60009054906101000a900460ff1661252c57601260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806124ec5750601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b61252b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612522906144cc565b60405180910390fd5b5b601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156125cf5750601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561261e57600854811115612619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261090614538565b60405180910390fd5b61270d565b601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680156126c15750601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561270c5760095481111561270b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612702906145a4565b60405180910390fd5b5b5b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166127b757600a5461276a836113d7565b82612775919061422e565b11156127b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ad90614610565b60405180910390fd5b5b601660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615801561285b5750601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b61289a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128919061467c565b60405180910390fd5b5b60006128a6306113d7565b90506000600b5482101590508080156128cb5750600c60019054906101000a900460ff165b80156128e45750600c60029054906101000a900460ff16155b80156129395750601560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b801561298f5750601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156129e55750601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612a29576001600c60026101000a81548160ff021916908315150217905550612a0d613150565b6000600c60026101000a81548160ff0219169083151502179055505b6000600c60029054906101000a900460ff16159050601260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612adf5750601260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612ae957600090505b8015612f2e576000601154431015612b8b57612b226064612b1460638861343e90919063ffffffff16565b6134b990919063ffffffff16565b90506063605e82612b33919061400d565b612b3d9190613fdc565b600e6000828254612b4e919061422e565b925050819055506063600582612b64919061400d565b612b6e9190613fdc565b60106000828254612b7f919061422e565b92505081905550612f09565b601560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612bf957506000600d60000160049054906101000a900460ff1660ff16115b15612d4b57612c396064612c2b600d60000160049054906101000a900460ff1660ff168861343e90919063ffffffff16565b6134b990919063ffffffff16565b9050600d60000160049054906101000a900460ff1660ff16600d60000160079054906101000a900460ff1660ff1682612c72919061400d565b612c7c9190613fdc565b600f6000828254612c8d919061422e565b92505081905550600d60000160049054906101000a900460ff1660ff16600d60000160059054906101000a900460ff1660ff1682612ccb919061400d565b612cd59190613fdc565b600e6000828254612ce6919061422e565b92505081905550600d60000160049054906101000a900460ff1660ff16600d60000160069054906101000a900460ff1660ff1682612d24919061400d565b612d2e9190613fdc565b60106000828254612d3f919061422e565b92505081905550612f08565b601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168015612db957506000600d60000160009054906101000a900460ff1660ff16115b15612f0757612df96064612deb600d60000160009054906101000a900460ff1660ff168861343e90919063ffffffff16565b6134b990919063ffffffff16565b9050600d60000160009054906101000a900460ff1660ff16600d60000160039054906101000a900460ff1660ff1682612e32919061400d565b612e3c9190613fdc565b600f6000828254612e4d919061422e565b92505081905550600d60000160009054906101000a900460ff1660ff16600d60000160019054906101000a900460ff1660ff1682612e8b919061400d565b612e959190613fdc565b600e6000828254612ea6919061422e565b92505081905550600d60000160009054906101000a900460ff1660ff16600d60000160029054906101000a900460ff1660ff1682612ee4919061400d565b612eee9190613fdc565b60106000828254612eff919061422e565b925050819055505b5b5b6000811115612f1e57612f1d873083612fa6565b5b8085612f2a919061469c565b9450505b612f39868686612fa6565b5050505b505050565b6000838311158290612f8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f81919061397e565b60405180910390fd5b5060008385612f99919061469c565b9050809150509392505050565b61301181604051806060016040528060268152602001614ab3602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612f429092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506130a4816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461223890919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516131439190613b2b565b60405180910390a3505050565b600061315b306113d7565b90506000601054600e54600f54613172919061422e565b61317c919061422e565b905060008083148061318e5750600082145b1561319b5750505061343c565b6014600b546131aa919061400d565b8311156131c3576014600b546131c0919061400d565b92505b6000600283600f54866131d6919061400d565b6131e09190613fdc565b6131ea9190613fdc565b90506000613201828661350390919063ffffffff16565b905060004790506132118261354d565b6000613226824761350390919063ffffffff16565b9050600061325187613243600e548561343e90919063ffffffff16565b6134b990919063ffffffff16565b9050600061327c8861326e6010548661343e90919063ffffffff16565b6134b990919063ffffffff16565b90506000818361328c919061422e565b84613297919061469c565b90506000600f819055506000600e8190555060006010819055506000871180156132c15750600081115b1561330a576132d08782613799565b7f28fc98272ce761178794ad6768050fea1648e07f1e2ffe15afd3a290f838148686826040516133019291906146d0565b60405180910390a15b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16834761334f919061469c565b60405161335b9061472a565b60006040518083038185875af1925050503d8060008114613398576040519150601f19603f3d011682016040523d82523d6000602084013e61339d565b606091505b505080985050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516133e99061472a565b60006040518083038185875af1925050503d8060008114613426576040519150601f19603f3d011682016040523d82523d6000602084013e61342b565b606091505b505080985050505050505050505050505b565b60008083141561345157600090506134b3565b6000828461345f919061400d565b905082848261346e9190613fdc565b146134ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a5906147b1565b60405180910390fd5b809150505b92915050565b60006134fb83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613882565b905092915050565b600061354583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f42565b905092915050565b6000600267ffffffffffffffff81111561356a576135696147d1565b5b6040519080825280602002602001820160405280156135985781602001602082028036833780820191505090505b50905030816000815181106135b0576135af614800565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561365057600080fd5b505afa158015613664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136889190614844565b8160018151811061369c5761369b614800565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050613701307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461229e565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac9478360008430426040518663ffffffff1660e01b815260040161376395949392919061496a565b600060405180830381600087803b15801561377d57600080fd5b505af1158015613791573d6000803e3d6000fd5b505050505050565b6137c4307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461229e565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663f305d71982308560008030426040518863ffffffff1660e01b8152600401613829969594939291906149c4565b6060604051808303818588803b15801561384257600080fd5b505af1158015613856573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061387b9190614a3a565b5050505050565b600080831182906138c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138c0919061397e565b60405180910390fd5b50600083856138d89190613fdc565b9050809150509392505050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561391f578082015181840152602081019050613904565b8381111561392e576000848401525b50505050565b6000601f19601f8301169050919050565b6000613950826138e5565b61395a81856138f0565b935061396a818560208601613901565b61397381613934565b840191505092915050565b600060208201905081810360008301526139988184613945565b905092915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139d0826139a5565b9050919050565b6139e0816139c5565b81146139eb57600080fd5b50565b6000813590506139fd816139d7565b92915050565b6000819050919050565b613a1681613a03565b8114613a2157600080fd5b50565b600081359050613a3381613a0d565b92915050565b60008060408385031215613a5057613a4f6139a0565b5b6000613a5e858286016139ee565b9250506020613a6f85828601613a24565b9150509250929050565b60008115159050919050565b613a8e81613a79565b82525050565b6000602082019050613aa96000830184613a85565b92915050565b600060208284031215613ac557613ac46139a0565b5b6000613ad3848285016139ee565b91505092915050565b60008060408385031215613af357613af26139a0565b5b6000613b0185828601613a24565b9250506020613b1285828601613a24565b9150509250929050565b613b2581613a03565b82525050565b6000602082019050613b406000830184613b1c565b92915050565b613b4f81613a79565b8114613b5a57600080fd5b50565b600081359050613b6c81613b46565b92915050565b600060208284031215613b8857613b876139a0565b5b6000613b9684828501613b5d565b91505092915050565b600080600060608486031215613bb857613bb76139a0565b5b6000613bc6868287016139ee565b9350506020613bd7868287016139ee565b9250506040613be886828701613a24565b9150509250925092565b600060ff82169050919050565b613c0881613bf2565b82525050565b6000602082019050613c236000830184613bff565b92915050565b613c3281613bf2565b8114613c3d57600080fd5b50565b600081359050613c4f81613c29565b92915050565b60008060008060008060c08789031215613c7257613c716139a0565b5b6000613c8089828a01613c40565b9650506020613c9189828a01613c40565b9550506040613ca289828a01613c40565b9450506060613cb389828a01613c40565b9350506080613cc489828a01613c40565b92505060a0613cd589828a01613c40565b9150509295509295509295565b60008060408385031215613cf957613cf86139a0565b5b6000613d07858286016139ee565b9250506020613d1885828601613b5d565b9150509250929050565b613d2b816139c5565b82525050565b6000602082019050613d466000830184613d22565b92915050565b600060208284031215613d6257613d616139a0565b5b6000613d7084828501613a24565b91505092915050565b600061010082019050613d8f600083018b613bff565b613d9c602083018a613bff565b613da96040830189613bff565b613db66060830188613bff565b613dc36080830187613bff565b613dd060a0830186613bff565b613ddd60c0830185613bff565b613dea60e0830184613bff565b9998505050505050505050565b60008060408385031215613e0e57613e0d6139a0565b5b6000613e1c858286016139ee565b9250506020613e2d858286016139ee565b9150509250929050565b6000819050919050565b6000613e5c613e57613e52846139a5565b613e37565b6139a5565b9050919050565b6000613e6e82613e41565b9050919050565b6000613e8082613e63565b9050919050565b613e9081613e75565b82525050565b6000602082019050613eab6000830184613e87565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613ef857607f821691505b60208210811415613f0c57613f0b613eb1565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613f486020836138f0565b9150613f5382613f12565b602082019050919050565b60006020820190508181036000830152613f7781613f3b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fe782613a03565b9150613ff283613a03565b92508261400257614001613f7e565b5b828204905092915050565b600061401882613a03565b915061402383613a03565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561405c5761405b613fad565b5b828202905092915050565b7f6d6178427579416d6f756e74206d75737420626520686967686572207468616e60008201527f2031250000000000000000000000000000000000000000000000000000000000602082015250565b60006140c36023836138f0565b91506140ce82614067565b604082019050919050565b600060208201905081810360008301526140f2816140b6565b9050919050565b7f6d617853656c6c416d6f756e74206d757374206265206869676865722074686160008201527f6e20312500000000000000000000000000000000000000000000000000000000602082015250565b60006141556024836138f0565b9150614160826140f9565b604082019050919050565b6000602082019050818103600083015261418481614148565b9050919050565b600061419682613bf2565b91506141a183613bf2565b92508260ff038211156141b7576141b6613fad565b5b828201905092915050565b7f4d757374206b656570206665657320617420333025206f72206c657373000000600082015250565b60006141f8601d836138f0565b9150614203826141c2565b602082019050919050565b60006020820190508181036000830152614227816141eb565b9050919050565b600061423982613a03565b915061424483613a03565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561427957614278613fad565b5b828201905092915050565b7f4d757374206b65657020756e6973776170563250616972000000000000000000600082015250565b60006142ba6017836138f0565b91506142c582614284565b602082019050919050565b600060208201905081810360008301526142e9816142ad565b9050919050565b7f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e2060008201527f3125000000000000000000000000000000000000000000000000000000000000602082015250565b600061434c6022836138f0565b9150614357826142f0565b604082019050919050565b6000602082019050818103600083015261437b8161433f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006143de6026836138f0565b91506143e982614382565b604082019050919050565b6000602082019050818103600083015261440d816143d1565b9050919050565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000600082015250565b600061444a601b836138f0565b915061445582614414565b602082019050919050565b600060208201905081810360008301526144798161443d565b9050919050565b7f54726164696e67206973206e6f74206163746976652e00000000000000000000600082015250565b60006144b66016836138f0565b91506144c182614480565b602082019050919050565b600060208201905081810360008301526144e5816144a9565b9050919050565b7f627579207472616e73666572206f766572206d617820616d6f756e7400000000600082015250565b6000614522601c836138f0565b915061452d826144ec565b602082019050919050565b6000602082019050818103600083015261455181614515565b9050919050565b7f53656c6c207472616e73666572206f766572206d617820616d6f756e74000000600082015250565b600061458e601d836138f0565b915061459982614558565b602082019050919050565b600060208201905081810360008301526145bd81614581565b9050919050565b7f4d61782077616c6c657420657863656564656400000000000000000000000000600082015250565b60006145fa6013836138f0565b9150614605826145c4565b602082019050919050565b60006020820190508181036000830152614629816145ed565b9050919050565b7f426c61636b6c6973746564206164647265737300000000000000000000000000600082015250565b60006146666013836138f0565b915061467182614630565b602082019050919050565b6000602082019050818103600083015261469581614659565b9050919050565b60006146a782613a03565b91506146b283613a03565b9250828210156146c5576146c4613fad565b5b828203905092915050565b60006040820190506146e56000830185613b1c565b6146f26020830184613b1c565b9392505050565b600081905092915050565b50565b60006147146000836146f9565b915061471f82614704565b600082019050919050565b600061473582614707565b9150819050919050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b600061479b6021836138f0565b91506147a68261473f565b604082019050919050565b600060208201905081810360008301526147ca8161478e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061483e816139d7565b92915050565b60006020828403121561485a576148596139a0565b5b60006148688482850161482f565b91505092915050565b6000819050919050565b600061489661489161488c84614871565b613e37565b613a03565b9050919050565b6148a68161487b565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6148e1816139c5565b82525050565b60006148f383836148d8565b60208301905092915050565b6000602082019050919050565b6000614917826148ac565b61492181856148b7565b935061492c836148c8565b8060005b8381101561495d57815161494488826148e7565b975061494f836148ff565b925050600181019050614930565b5085935050505092915050565b600060a08201905061497f6000830188613b1c565b61498c602083018761489d565b818103604083015261499e818661490c565b90506149ad6060830185613d22565b6149ba6080830184613b1c565b9695505050505050565b600060c0820190506149d96000830189613d22565b6149e66020830188613b1c565b6149f3604083018761489d565b614a00606083018661489d565b614a0d6080830185613d22565b614a1a60a0830184613b1c565b979650505050505050565b600081519050614a3481613a0d565b92915050565b600080600060608486031215614a5357614a526139a0565b5b6000614a6186828701614a25565b9350506020614a7286828701614a25565b9250506040614a8386828701614a25565b915050925092509256fe45524332303a206465637265617365642063616e6e6f742062652062656c6f77207a65726f45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a2646970667358221220de886b003367b644ed8c8e42e78b1307e15b75f9beffbb7590cb66015049f6b964736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
MUSK.sol 1022 lines
// SPDX-License-Identifier: MIT
//telegram: https://t.me/musk_erc
//twitter: https://twitter.com/musk_erc
// website: https://elonmuskcoin.io
pragma solidity 0.8.9;
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns(address pair);
}
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;
}
}
contract ERC20 is Context, IERC20, IERC20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns(string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns(string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless this function is
* overridden;
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns(uint8) {
return 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 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 cannot be 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 {
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, 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 {
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
}
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns(uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns(uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns(uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns(uint256) {
return div(a, b, "SafeMath: division by 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;
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns(address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
library SafeMathInt {
int256 private constant MIN_INT256 = int256(1) << 255;
int256 private constant MAX_INT256 = ~(int256(1) << 255);
/**
* @dev Multiplies two int256 variables and fails on overflow.
*/
function mul(int256 a, int256 b) internal pure returns(int256) {
int256 c = a * b;
// Detect overflow when multiplying MIN_INT256 with -1
require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
require((b == 0) || (c / b == a));
return c;
}
/**
* @dev Division of two int256 variables and fails on overflow.
*/
function div(int256 a, int256 b) internal pure returns(int256) {
// Prevent overflow when dividing MIN_INT256 by -1
require(b != -1 || a != MIN_INT256);
// Solidity already throws when dividing by 0.
return a / b;
}
/**
* @dev Subtracts two int256 variables and fails on overflow.
*/
function sub(int256 a, int256 b) internal pure returns(int256) {
int256 c = a - b;
require((b >= 0 && c <= a) || (b < 0 && c > a));
return c;
}
/**
* @dev Adds two int256 variables and fails on overflow.
*/
function add(int256 a, int256 b) internal pure returns(int256) {
int256 c = a + b;
require((b >= 0 && c >= a) || (b < 0 && c < a));
return c;
}
/**
* @dev Converts to absolute value, and fails on overflow.
*/
function abs(int256 a) internal pure returns(int256) {
require(a != MIN_INT256);
return a < 0 ? -a : a;
}
function toUint256Safe(int256 a) internal pure returns(uint256) {
require(a >= 0);
return uint256(a);
}
}
library SafeMathUint {
function toInt256Safe(uint256 a) internal pure returns(int256) {
int256 b = int256(a);
require(b >= 0);
return b;
}
}
interface IUniswapV2Router01 {
function factory() external pure returns(address);
function WETH() external pure returns(address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns(uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns(uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns(uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns(uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns(uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns(uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns(uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns(uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns(uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns(uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns(uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns(uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns(uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns(uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns(uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns(uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns(uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns(uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns(uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
contract MUSK is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable router;
address public immutable uniswapV2Pair;
// addresses
address public devWallet;
address private marketingWallet;
// limits
uint256 private maxBuyAmount;
uint256 private maxSellAmount;
uint256 private maxWalletAmount;
uint256 private thresholdSwapAmount;
// status flags
bool private isTrading = false;
bool public swapEnabled = false;
bool public isSwapping;
struct Fees {
uint8 buyTotalFees;
uint8 buyMarketingFee;
uint8 buyDevFee;
uint8 buyLiquidityFee;
uint8 sellTotalFees;
uint8 sellMarketingFee;
uint8 sellDevFee;
uint8 sellLiquidityFee;
}
Fees public _fees = Fees({
buyTotalFees: 0,
buyMarketingFee: 0,
buyDevFee:0,
buyLiquidityFee: 0,
sellTotalFees: 0,
sellMarketingFee: 0,
sellDevFee:0,
sellLiquidityFee: 0
});
uint256 public tokensForMarketing;
uint256 public tokensForLiquidity;
uint256 public tokensForDev;
uint256 private taxTill;
// exclude from fees and max transaction amount
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
mapping(address => bool) public _isExcludedMaxWalletAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping(address => bool) public marketPair;
mapping(address => bool) public _isBlacklisted;
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived
);
constructor() ERC20("Elon Musk", "MUSK") {
router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(address(this), router.WETH());
_isExcludedMaxTransactionAmount[address(router)] = true;
_isExcludedMaxTransactionAmount[address(uniswapV2Pair)] = true;
_isExcludedMaxTransactionAmount[owner()] = true;
_isExcludedMaxTransactionAmount[address(this)] = true;
_isExcludedFromFees[owner()] = true;
_isExcludedFromFees[address(this)] = true;
_isExcludedMaxWalletAmount[owner()] = true;
_isExcludedMaxWalletAmount[address(this)] = true;
_isExcludedMaxWalletAmount[address(uniswapV2Pair)] = true;
marketPair[address(uniswapV2Pair)] = true;
approve(address(router), type(uint256).max);
uint256 totalSupply = 1e10 * 1e18;
maxBuyAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn
maxSellAmount = totalSupply * 1 / 100; // 1% maxTransactionAmountTxn
maxWalletAmount = totalSupply * 1 / 100; // 1% maxWallet
thresholdSwapAmount = totalSupply * 1 / 10000; // 0.01% swap wallet
_fees.buyMarketingFee = 2;
_fees.buyLiquidityFee = 1;
_fees.buyDevFee = 1;
_fees.buyTotalFees = _fees.buyMarketingFee + _fees.buyLiquidityFee + _fees.buyDevFee;
_fees.sellMarketingFee = 2;
_fees.sellLiquidityFee = 1;
_fees.sellDevFee = 1;
_fees.sellTotalFees = _fees.sellMarketingFee + _fees.sellLiquidityFee + _fees.sellDevFee;
marketingWallet = address(0xc585ba763c9916f77f82cca388F1D4Dc48Bf3b1D);
devWallet = address(0xc585ba763c9916f77f82cca388F1D4Dc48Bf3b1D);
// exclude from paying fees or having max transaction amount
/*
_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 {
}
// once enabled, can never be turned off
function swapTrading() external onlyOwner {
isTrading = true;
swapEnabled = true;
taxTill = block.number + 2;
}
// change the minimum amount of tokens to sell from fees
function updateThresholdSwapAmount(uint256 newAmount) external onlyOwner returns(bool){
thresholdSwapAmount = newAmount;
return true;
}
function updateMaxTxnAmount(uint256 newMaxBuy, uint256 newMaxSell) external onlyOwner {
require(((totalSupply() * newMaxBuy) / 1000) >= (totalSupply() / 100), "maxBuyAmount must be higher than 1%");
require(((totalSupply() * newMaxSell) / 1000) >= (totalSupply() / 100), "maxSellAmount must be higher than 1%");
maxBuyAmount = (totalSupply() * newMaxBuy) / 1000;
maxSellAmount = (totalSupply() * newMaxSell) / 1000;
}
function updateMaxWalletAmount(uint256 newPercentage) external onlyOwner {
require(((totalSupply() * newPercentage) / 1000) >= (totalSupply() / 100), "Cannot set maxWallet lower than 1%");
maxWalletAmount = (totalSupply() * newPercentage) / 1000;
}
// only use to disable contract sales if absolutely necessary (emergency use only)
function toggleSwapEnabled(bool enabled) external onlyOwner(){
swapEnabled = enabled;
}
function blacklistAddress(address account, bool value) external onlyOwner{
_isBlacklisted[account] = value;
}
function updateFees(uint8 _marketingFeeBuy, uint8 _liquidityFeeBuy,uint8 _devFeeBuy,uint8 _marketingFeeSell, uint8 _liquidityFeeSell,uint8 _devFeeSell) external onlyOwner{
_fees.buyMarketingFee = _marketingFeeBuy;
_fees.buyLiquidityFee = _liquidityFeeBuy;
_fees.buyDevFee = _devFeeBuy;
_fees.buyTotalFees = _fees.buyMarketingFee + _fees.buyLiquidityFee + _fees.buyDevFee;
_fees.sellMarketingFee = _marketingFeeSell;
_fees.sellLiquidityFee = _liquidityFeeSell;
_fees.sellDevFee = _devFeeSell;
_fees.sellTotalFees = _fees.sellMarketingFee + _fees.sellLiquidityFee + _fees.sellDevFee;
require(_fees.buyTotalFees <= 30, "Must keep fees at 30% or less");
require(_fees.sellTotalFees <= 30, "Must keep fees at 30% or less");
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
}
function excludeFromWalletLimit(address account, bool excluded) public onlyOwner {
_isExcludedMaxWalletAmount[account] = excluded;
}
function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function setMarketPair(address pair, bool value) public onlyOwner {
require(pair != uniswapV2Pair, "Must keep uniswapV2Pair");
marketPair[pair] = value;
}
function setWallets(address _marketingWallet,address _devWallet) external onlyOwner{
marketingWallet = _marketingWallet;
devWallet = _devWallet;
}
function isExcludedFromFees(address account) public view returns(bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address sender,
address recipient,
uint256 amount
) internal override {
if (amount == 0) {
super._transfer(sender, recipient, 0);
return;
}
if (
sender != owner() &&
recipient != owner() &&
!isSwapping
) {
if (!isTrading) {
require(_isExcludedFromFees[sender] || _isExcludedFromFees[recipient], "Trading is not active.");
}
if (marketPair[sender] && !_isExcludedMaxTransactionAmount[recipient]) {
require(amount <= maxBuyAmount, "buy transfer over max amount");
}
else if (marketPair[recipient] && !_isExcludedMaxTransactionAmount[sender]) {
require(amount <= maxSellAmount, "Sell transfer over max amount");
}
if (!_isExcludedMaxWalletAmount[recipient]) {
require(amount + balanceOf(recipient) <= maxWalletAmount, "Max wallet exceeded");
}
require(!_isBlacklisted[sender] && !_isBlacklisted[recipient], "Blacklisted address");
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= thresholdSwapAmount;
if (
canSwap &&
swapEnabled &&
!isSwapping &&
marketPair[recipient] &&
!_isExcludedFromFees[sender] &&
!_isExcludedFromFees[recipient]
) {
isSwapping = true;
swapBack();
isSwapping = false;
}
bool takeFee = !isSwapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[sender] || _isExcludedFromFees[recipient]) {
takeFee = false;
}
// only take fees on buys/sells, do not take on wallet transfers
if (takeFee) {
uint256 fees = 0;
if(block.number < taxTill) {
fees = amount.mul(99).div(100);
tokensForMarketing += (fees * 94) / 99;
tokensForDev += (fees * 5) / 99;
} else if (marketPair[recipient] && _fees.sellTotalFees > 0) {
fees = amount.mul(_fees.sellTotalFees).div(100);
tokensForLiquidity += fees * _fees.sellLiquidityFee / _fees.sellTotalFees;
tokensForMarketing += fees * _fees.sellMarketingFee / _fees.sellTotalFees;
tokensForDev += fees * _fees.sellDevFee / _fees.sellTotalFees;
}
// on buy
else if (marketPair[sender] && _fees.buyTotalFees > 0) {
fees = amount.mul(_fees.buyTotalFees).div(100);
tokensForLiquidity += fees * _fees.buyLiquidityFee / _fees.buyTotalFees;
tokensForMarketing += fees * _fees.buyMarketingFee / _fees.buyTotalFees;
tokensForDev += fees * _fees.buyDevFee / _fees.buyTotalFees;
}
if (fees > 0) {
super._transfer(sender, address(this), fees);
}
amount -= fees;
}
super._transfer(sender, recipient, amount);
}
function swapTokensForEth(uint256 tAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = router.WETH();
_approve(address(this), address(router), tAmount);
// make the swap
router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function addLiquidity(uint256 tAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(router), tAmount);
// add the liquidity
router.addLiquidityETH{ value: ethAmount } (address(this), tAmount, 0, 0 , address(this), block.timestamp);
}
function swapBack() private {
uint256 contractTokenBalance = balanceOf(address(this));
uint256 toSwap = tokensForLiquidity + tokensForMarketing + tokensForDev;
bool success;
if (contractTokenBalance == 0 || toSwap == 0) { return; }
if (contractTokenBalance > thresholdSwapAmount * 20) {
contractTokenBalance = thresholdSwapAmount * 20;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = contractTokenBalance * tokensForLiquidity / toSwap / 2;
uint256 amountToSwapForETH = contractTokenBalance.sub(liquidityTokens);
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(amountToSwapForETH);
uint256 newBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing = newBalance.mul(tokensForMarketing).div(toSwap);
uint256 ethForDev = newBalance.mul(tokensForDev).div(toSwap);
uint256 ethForLiquidity = newBalance - (ethForMarketing + ethForDev);
tokensForLiquidity = 0;
tokensForMarketing = 0;
tokensForDev = 0;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity);
}
(success,) = address(devWallet).call{ value: (address(this).balance - ethForMarketing) } ("");
(success,) = address(marketingWallet).call{ value: address(this).balance } ("");
}
}
Read Contract
_fees 0xd212a69a → uint8, uint8, uint8, uint8, uint8, uint8, uint8, uint8
_isBlacklisted 0x1cdd3be3 → bool
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
_isExcludedMaxWalletAmount 0x96880b17 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
isExcludedFromFees 0x4fbee193 → bool
isSwapping 0xb8863115 → bool
marketPair 0xf5b3c3bf → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
router 0xf887ea40 → address
swapEnabled 0x6ddd1713 → bool
symbol 0x95d89b41 → string
tokensForDev 0x9fccce32 → uint256
tokensForLiquidity 0x1a8145bb → uint256
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blacklistAddress 0x455a4396
address account
bool value
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
excludeFromWalletLimit 0xe16830a8
address account
bool excluded
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
renounceOwnership 0x715018a6
No parameters
setMarketPair 0xc16dd4a4
address pair
bool value
setWallets 0xd3f6a157
address _marketingWallet
address _devWallet
swapTrading 0xb9e418e7
No parameters
toggleSwapEnabled 0x1c6e8a75
bool enabled
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateFees 0x3265e846
uint8 _marketingFeeBuy
uint8 _liquidityFeeBuy
uint8 _devFeeBuy
uint8 _marketingFeeSell
uint8 _liquidityFeeSell
uint8 _devFeeSell
updateMaxTxnAmount 0x11a582c3
uint256 newMaxBuy
uint256 newMaxSell
updateMaxWalletAmount 0xc18bc195
uint256 newPercentage
updateThresholdSwapAmount 0x555467a1
uint256 newAmount
returns: bool
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address