Address Contract Partially Verified
Address
0xFf36D462436784A6Fc2CefbC724A40EC15fCbf72
Balance
0.000000000 ETH
Nonce
1
Code Size
11773 bytes
Creator
0xeE0eAD66...f59C at tx 0xd87d5925...c04598
Indexed Transactions
0
Contract Bytecode
11773 bytes
0x6080604052600436106102cd5760003560e01c806375f0a87411610175578063a9059cbb116100dc578063dc0aa9cf11610095578063e7dad4f91161006f578063e7dad4f9146108f3578063f18dba261461092c578063f2fde38b1461094c578063f34eb0b81461096c57600080fd5b8063dc0aa9cf1461086d578063dcda6af31461088d578063dd62ed3e146108ad57600080fd5b8063a9059cbb146107c2578063ab0d8b85146107e2578063b6a9987214610802578063c49b9a8014610817578063d12a768814610837578063d3f6a1571461084d57600080fd5b80638da5cb5b1161012e5780638da5cb5b146107195780638ea5220f1461073757806391142cb31461075757806395d89b411461076d5780639b0e2e8614610782578063a457c2d7146107a257600080fd5b806375f0a874146106595780637ca2ea441461067957806385141a771461069957806385d4787b146106b9578063870d365d146106d95780638a5c5085146106f957600080fd5b8063313ce567116102345780634a74bb02116101ed5780636c0a24eb116101c75780636c0a24eb146105ee57806370a0823114610604578063715018a61461062457806371b9189c1461063957600080fd5b80634a74bb02146105645780635342acb4146105855780635ee58efc146105be57600080fd5b8063313ce567146104ad578063317d9453146104cf57806339509351146104e45780633bd5d173146105045780634549b0391461052457806349bd5a5e1461054457600080fd5b806313114a9d1161028657806313114a9d146103e55780631694505e146103fa57806318160ddd1461043857806323b872dd1461044d57806327a14fc21461046d5780632d8381191461048d57600080fd5b8063024022f7146102d9578063035ae135146102fb5780630492f0551461031b57806306fdde0314610344578063095ea7b3146103665780630ddc09761461039657600080fd5b366102d457005b600080fd5b3480156102e557600080fd5b506102f96102f4366004612713565b61098c565b005b34801561030757600080fd5b506102f9610316366004612713565b6109cf565b34801561032757600080fd5b50610331600e5481565b6040519081526020015b60405180910390f35b34801561035057600080fd5b50610359610a05565b60405161033b9190612755565b34801561037257600080fd5b506103866103813660046127bf565b610a97565b604051901515815260200161033b565b3480156103a257600080fd5b506015546016546017546018546019546103bd949392919085565b604080519586526020860194909452928401919091526060830152608082015260a00161033b565b3480156103f157600080fd5b50600954610331565b34801561040657600080fd5b50600c54610420906201000090046001600160a01b031681565b6040516001600160a01b03909116815260200161033b565b34801561044457600080fd5b50600754610331565b34801561045957600080fd5b506103866104683660046127eb565b610aae565b34801561047957600080fd5b506102f961048836600461282c565b610b17565b34801561049957600080fd5b506103316104a836600461282c565b610b55565b3480156104b957600080fd5b50600c5460405160ff909116815260200161033b565b3480156104db57600080fd5b50610331610bd9565b3480156104f057600080fd5b506103866104ff3660046127bf565b610be9565b34801561051057600080fd5b506102f961051f36600461282c565b610c1f565b34801561053057600080fd5b5061033161053f36600461285a565b610c95565b34801561055057600080fd5b50600d54610420906001600160a01b031681565b34801561057057600080fd5b50600d5461038690600160a81b900460ff1681565b34801561059157600080fd5b506103866105a0366004612886565b6001600160a01b031660009081526005602052604090205460ff1690565b3480156105ca57600080fd5b50601a54601b546105d9919082565b6040805192835260208301919091520161033b565b3480156105fa57600080fd5b50610331600f5481565b34801561061057600080fd5b5061033161061f366004612886565b610d22565b34801561063057600080fd5b506102f9610d44565b34801561064557600080fd5b506102f9610654366004612713565b610db8565b34801561066557600080fd5b50601254610420906001600160a01b031681565b34801561068557600080fd5b506102f961069436600461282c565b610dee565b3480156106a557600080fd5b50601454610420906001600160a01b031681565b3480156106c557600080fd5b506102f96106d436600461290e565b610e2c565b3480156106e557600080fd5b506103316106f436600461282c565b610e64565b34801561070557600080fd5b506102f961071436600461282c565b610ff5565b34801561072557600080fd5b506000546001600160a01b0316610420565b34801561074357600080fd5b50601354610420906001600160a01b031681565b34801561076357600080fd5b5061033160115481565b34801561077957600080fd5b50610359611024565b34801561078e57600080fd5b506102f961079d36600461290e565b611033565b3480156107ae57600080fd5b506103866107bd3660046127bf565b611068565b3480156107ce57600080fd5b506103866107dd3660046127bf565b6110b7565b3480156107ee57600080fd5b506102f96107fd366004612713565b6110c4565b34801561080e57600080fd5b506102f96110fa565b34801561082357600080fd5b506102f96108323660046129ad565b611318565b34801561084357600080fd5b5061033160105481565b34801561085957600080fd5b506102f96108683660046129c8565b61139a565b34801561087957600080fd5b506102f9610888366004612a01565b6113f2565b34801561089957600080fd5b506102f96108a8366004612a3c565b611436565b3480156108b957600080fd5b506103316108c83660046129c8565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b3480156108ff57600080fd5b5061038661090e366004612886565b6001600160a01b031660009081526004602052604090205460ff1690565b34801561093857600080fd5b506102f9610947366004612aa8565b611589565b34801561095857600080fd5b506102f9610967366004612886565b611617565b34801561097857600080fd5b506102f961098736600461282c565b611701565b6000546001600160a01b031633146109bf5760405162461bcd60e51b81526004016109b690612aca565b60405180910390fd5b6109cb8282600061173f565b5050565b6000546001600160a01b031633146109f95760405162461bcd60e51b81526004016109b690612aca565b6109cb828260016117af565b6060600a8054610a1490612aff565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4090612aff565b8015610a8d5780601f10610a6257610100808354040283529160200191610a8d565b820191906000526020600020905b815481529060010190602001808311610a7057829003601f168201915b5050505050905090565b6000610aa4338484611819565b5060015b92915050565b6000610abb84848461193d565b610b0d8433610b0885604051806060016040528060288152602001612d7b602891396001600160a01b038a1660009081526003602090815260408083203384529091529020549190611e4b565b611819565b5060019392505050565b6000546001600160a01b03163314610b415760405162461bcd60e51b81526004016109b690612aca565b610b4f81633b9aca00612b50565b600f5550565b6000600854821115610bbc5760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b60648201526084016109b6565b6000610bc6611e85565b9050610bd28382611ea8565b9392505050565b6000610be430610d22565b905090565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091610aa4918590610b089086611eea565b336000610c2b83611f49565b505050506001600160a01b038416600090815260016020526040902054919250610c5791905082611f98565b6001600160a01b038316600090815260016020526040902055600854610c7d9082611f98565b600855600954610c8d9084611eea565b600955505050565b6000600754831115610ce95760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c790060448201526064016109b6565b81610d08576000610cf984611f49565b50939550610aa8945050505050565b6000610d1384611f49565b50929550610aa8945050505050565b6001600160a01b038116600090815260016020526040812054610aa890610b55565b6000546001600160a01b03163314610d6e5760405162461bcd60e51b81526004016109b690612aca565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03163314610de25760405162461bcd60e51b81526004016109b690612aca565b6109cb8282600161173f565b6000546001600160a01b03163314610e185760405162461bcd60e51b81526004016109b690612aca565b610e2681633b9aca00612b50565b60105550565b6000546001600160a01b03163314610e565760405162461bcd60e51b81526004016109b690612aca565b610e61816001611fda565b50565b604080516002808252606082018352600092839291906020830190803683370190505090503081600081518110610e9d57610e9d612b6f565b60200260200101906001600160a01b031690816001600160a01b031681525050600c60029054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f349190612b85565b81600181518110610f4757610f47612b6f565b6001600160a01b039283166020918202929092010152600c5460405163d06ca61f60e01b8152620100009091049091169063d06ca61f90610f8e9086908590600401612be6565b600060405180830381865afa158015610fab573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610fd39190810190612c07565b600181518110610fe557610fe5612b6f565b6020026020010151915050919050565b6000546001600160a01b0316331461101f5760405162461bcd60e51b81526004016109b690612aca565b601155565b6060600b8054610a1490612aff565b6000546001600160a01b0316331461105d5760405162461bcd60e51b81526004016109b690612aca565b610e61816000611fda565b6000610aa43384610b0885604051806060016040528060258152602001612da3602591393360009081526003602090815260408083206001600160a01b038d1684529091529020549190611e4b565b6000610aa433848461193d565b6000546001600160a01b031633146110ee5760405162461bcd60e51b81526004016109b690612aca565b6109cb828260006117af565b6000546001600160a01b031633146111245760405162461bcd60e51b81526004016109b690612aca565b600d546001600160a01b0316156111885760405162461bcd60e51b815260206004820152602260248201527f556e69737761705632506169722068617320616c7265616479206265656e2073604482015261195d60f21b60648201526084016109b6565b600c60029054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ff9190612b85565b6001600160a01b031663c9c6539630600c60029054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611261573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112859190612b85565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156112d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f69190612b85565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146113425760405162461bcd60e51b81526004016109b690612aca565b600d8054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061138f90831515815260200190565b60405180910390a150565b6000546001600160a01b031633146113c45760405162461bcd60e51b81526004016109b690612aca565b601280546001600160a01b039384166001600160a01b03199182161790915560138054929093169116179055565b6000546001600160a01b0316331461141c5760405162461bcd60e51b81526004016109b690612aca565b601594909455601692909255601891909155601755601955565b3360009081526005602052604081205460ff166114ab5760405162461bcd60e51b815260206004820152602d60248201527f41697264726f702063616e206f6e6c7920626520646f6e65206279206578636c60448201526c756465642066726f6d2066656560981b60648201526084016109b6565b83821461150d5760405162461bcd60e51b815260206004820152602a60248201527f486f6c6465727320616e6420616d6f756e74206c656e677468206d757374206260448201526965207468652073616d6560b01b60648201526084016109b6565b83811015611582576115703386868481811061152b5761152b612b6f565b90506020020160208101906115409190612886565b85858581811061155257611552612b6f565b90506020020135633b9aca006115689190612b50565b60008061206b565b61157b600182612c8d565b905061150d565b5050505050565b6000546001600160a01b031633146115b35760405162461bcd60e51b81526004016109b690612aca565b6115bd8282611eea565b60641461160c5760405162461bcd60e51b815260206004820152601d60248201527f4665652070657263656e74616765206d75737420657175616c2031303000000060448201526064016109b6565b601a91909155601b55565b6000546001600160a01b031633146116415760405162461bcd60e51b81526004016109b690612aca565b6001600160a01b0381166116a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109b6565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461172b5760405162461bcd60e51b81526004016109b690612aca565b61173981633b9aca00612b50565b600e5550565b60005b828110156117a957600084848381811061175e5761175e612b6f565b90506020020160208101906117739190612886565b6001600160a01b03166000908152600560205260409020805460ff191684151517905550806117a181612ca5565b915050611742565b50505050565b60005b828110156117a95760008484838181106117ce576117ce612b6f565b90506020020160208101906117e39190612886565b6001600160a01b03166000908152600660205260409020805460ff1916841515179055508061181181612ca5565b9150506117b2565b6001600160a01b03831661187b5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109b6565b6001600160a01b0382166118dc5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109b6565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166119a15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109b6565b6001600160a01b038216611a035760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109b6565b60008111611a655760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b60648201526084016109b6565b600d546001600160a01b0316611abd5760405162461bcd60e51b815260206004820152601e60248201527f556e697377617056325061697220686173206e6f74206265656e20736574000060448201526064016109b6565b6001600160a01b038316600090815260056020526040812054819060ff16158015611b0157506001600160a01b03841660009081526005602052604090205460ff16155b8015611b1b57506000546001600160a01b03868116911614155b8015611b3557506000546001600160a01b03858116911614155b90506000611b4c84611b4687610d22565b90611eea565b9050611b606000546001600160a01b031690565b6001600160a01b0316866001600160a01b031614158015611b8f57506000546001600160a01b03868116911614155b8015611ba957506014546001600160a01b03868116911614155b15611c54576001600160a01b03861660009081526004602052604090205460ff16158015611bf057506001600160a01b03851660009081526004602052604090205460ff16155b611c545760405162461bcd60e51b815260206004820152602f60248201527f626f747320617265206e6f7420616c6c6f77656420746f2073656c6c206f722060448201526e7472616e7366657220746f6b656e7360881b60648201526084016109b6565b600d546001600160a01b0387811691161480611c8857506001600160a01b03861660009081526006602052604090205460ff165b15611d1257600e54841115611cf05760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b60648201526084016109b6565b600f54811115611d125760405162461bcd60e51b81526004016109b690612cc0565b600d546001600160a01b03878116911614801590611d3d5750600d546001600160a01b038681169116145b80611d8457506001600160a01b03861660009081526006602052604090205460ff16158015611d8457506001600160a01b03851660009081526006602052604090205460ff165b15611d955760019250611d9561209f565b600d546001600160a01b03878116911614801590611dc15750600d546001600160a01b03868116911614155b8015611de657506001600160a01b03861660009081526006602052604090205460ff16155b8015611e0b57506001600160a01b03851660009081526006602052604090205460ff16155b15611e365760009150600f54811115611e365760405162461bcd60e51b81526004016109b690612cc0565b611e43868686858761206b565b505050505050565b60008184841115611e6f5760405162461bcd60e51b81526004016109b69190612755565b506000611e7c8486612d05565b95945050505050565b6000806000611e926120eb565b9092509050611ea18282611ea8565b9250505090565b6000610bd283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612120565b600080611ef78385612c8d565b905083811015610bd25760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016109b6565b6000806000806000806000806000611f608a61214e565b9250925092506000806000611f7e8d8686611f79611e85565b612190565b919f909e50909c50959a5093985091965092945050505050565b6000610bd283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e4b565b60005b8251811015612066576000838281518110611ffa57611ffa612b6f565b602002602001015190508215612032576001600160a01b0381166000908152600460205260409020805460ff19166001179055612053565b6001600160a01b0381166000908152600460205260409020805460ff191690555b508061205e81612ca5565b915050611fdd565b505050565b6014805461ffff60a01b1916600160a01b8415150260ff60a81b191617600160a81b831515021790556115828585856121e0565b60006120aa30610d22565b905060105481101580156120c85750600d54600160a01b900460ff16155b80156120dd5750600d54600160a81b900460ff165b15610e6157610e61816122d7565b60085460075460009182916121008282611ea8565b821015612117576008546007549350935050509091565b90939092509050565b600081836121415760405162461bcd60e51b81526004016109b69190612755565b506000611e7c8486612d1c565b60008060008061215d856123be565b9050600061216a866123ff565b905060006121828261217c8986611f98565b90611f98565b979296509094509092505050565b600080808061219f8886612463565b905060006121ad8887612463565b905060006121bb8888612463565b905060006121cd8261217c8686611f98565b939b939a50919850919650505050505050565b6000806000806000806121f287611f49565b6001600160a01b038f16600090815260016020526040902054959b509399509197509550935091506122249087611f98565b6001600160a01b03808b1660009081526001602052604080822093909355908a16815220546122539086611eea565b6001600160a01b038916600090815260016020526040902055612275816124e2565b61227f848361252c565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516122c491815260200190565b60405180910390a3505050505050505050565b600d805460ff60a01b1916600160a01b1790556122f381612550565b601a5447906000906123139060649061230d908590612463565b90611ea8565b90506000612334606461230d601a600101548661246390919063ffffffff16565b6012546040519192506001600160a01b03169083156108fc029084906000818181858888f1935050505015801561236f573d6000803e3d6000fd5b506013546040516001600160a01b039091169082156108fc029083906000818181858888f193505050501580156123aa573d6000803e3d6000fd5b5050600d805460ff60a01b19169055505050565b6014546000908190600160a01b900460ff16156123f05750601554601454600160a81b900460ff16156123f057506017545b610bd2606461230d8584612463565b6014546000908190600160a01b900460ff16156123f05750601654601454600160a81b900460ff16156123f05750601854600061243b84610e64565b9050601154811061245757601954612454908390611eea565b91505b50610bd2606461230d85845b60008261247257506000610aa8565b600061247e8385612b50565b90508261248b8583612d1c565b14610bd25760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016109b6565b60006124ec611e85565b905060006124fa8383612463565b306000908152600160205260409020549091506125179082611eea565b30600090815260016020526040902055505050565b6008546125399083611f98565b6008556009546125499082611eea565b6009555050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061258557612585612b6f565b60200260200101906001600160a01b031690816001600160a01b031681525050600c60029054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156125f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061261c9190612b85565b8160018151811061262f5761262f612b6f565b6001600160a01b039283166020918202929092010152600c5461265b9130916201000090041684611819565b600c5460405163791ac94760e01b8152620100009091046001600160a01b03169063791ac94790612699908590600090869030904290600401612d3e565b600060405180830381600087803b1580156126b357600080fd5b505af1158015611e43573d6000803e3d6000fd5b60008083601f8401126126d957600080fd5b50813567ffffffffffffffff8111156126f157600080fd5b6020830191508360208260051b850101111561270c57600080fd5b9250929050565b6000806020838503121561272657600080fd5b823567ffffffffffffffff81111561273d57600080fd5b612749858286016126c7565b90969095509350505050565b600060208083528351808285015260005b8181101561278257858101830151858201604001528201612766565b81811115612794576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b0381168114610e6157600080fd5b600080604083850312156127d257600080fd5b82356127dd816127aa565b946020939093013593505050565b60008060006060848603121561280057600080fd5b833561280b816127aa565b9250602084013561281b816127aa565b929592945050506040919091013590565b60006020828403121561283e57600080fd5b5035919050565b8035801515811461285557600080fd5b919050565b6000806040838503121561286d57600080fd5b8235915061287d60208401612845565b90509250929050565b60006020828403121561289857600080fd5b8135610bd2816127aa565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156128e2576128e26128a3565b604052919050565b600067ffffffffffffffff821115612904576129046128a3565b5060051b60200190565b6000602080838503121561292157600080fd5b823567ffffffffffffffff81111561293857600080fd5b8301601f8101851361294957600080fd5b803561295c612957826128ea565b6128b9565b81815260059190911b8201830190838101908783111561297b57600080fd5b928401925b828410156129a2578335612993816127aa565b82529284019290840190612980565b979650505050505050565b6000602082840312156129bf57600080fd5b610bd282612845565b600080604083850312156129db57600080fd5b82356129e6816127aa565b915060208301356129f6816127aa565b809150509250929050565b600080600080600060a08688031215612a1957600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b60008060008060408587031215612a5257600080fd5b843567ffffffffffffffff80821115612a6a57600080fd5b612a76888389016126c7565b90965094506020870135915080821115612a8f57600080fd5b50612a9c878288016126c7565b95989497509550505050565b60008060408385031215612abb57600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612b1357607f821691505b60208210811415612b3457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b6a57612b6a612b3a565b500290565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b9757600080fd5b8151610bd2816127aa565b600081518084526020808501945080840160005b83811015612bdb5781516001600160a01b031687529582019590820190600101612bb6565b509495945050505050565b828152604060208201526000612bff6040830184612ba2565b949350505050565b60006020808385031215612c1a57600080fd5b825167ffffffffffffffff811115612c3157600080fd5b8301601f81018513612c4257600080fd5b8051612c50612957826128ea565b81815260059190911b82018301908381019087831115612c6f57600080fd5b928401925b828410156129a257835182529284019290840190612c74565b60008219821115612ca057612ca0612b3a565b500190565b6000600019821415612cb957612cb9612b3a565b5060010190565b60208082526025908201527f57616c6c65742063616e6e6f7420657863656564206d61782057616c6c6574206040820152641b1a5b5a5d60da1b606082015260800190565b600082821015612d1757612d17612b3a565b500390565b600082612d3957634e487b7160e01b600052601260045260246000fd5b500490565b85815284602082015260a060408201526000612d5d60a0830186612ba2565b6001600160a01b039490941660608301525060800152939250505056fe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e86573e0e08cf79f04dbd70ec12657a4297029eabdaa6925655f5b409927525e64736f6c634300080c0033
Verified Source Code Partial Match
Compiler: v0.8.12+commit.f00d7308
EVM: london
Optimization: Yes (200 runs)
COMMUNITYDOGE.sol 898 lines
//https://t.me/CommunityDogeOfficial
//We were abandoned by the dev that originally launched CDOGE but the Community
//is taking over. This is the Community Doge Revenge !
//Take the power back and give it back to the communities
pragma solidity ^0.8.12;
// SPDX-License-Identifier: Unlicensed
interface IERC20 {
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 Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
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) {
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;
}
}
abstract contract Context {
//function _msgSender() internal view virtual returns (address payable) {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
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;
}
}
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IUniswapV2Router02 {
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function factory() external pure returns (address);
function WETH() external pure returns (address);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}
contract COMMUNITYDOGE is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
event SwapAndLiquifyEnabledUpdated(bool enabled);
event SwapAndLiquify(
uint256 tokensSwapped,
uint256 ethReceived,
uint256 tokensIntoLiqudity
);
modifier lockTheSwap {
inSwapAndLiquify = true;
_;
inSwapAndLiquify = false;
}
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private botWallets;
mapping (address => bool) private _isExcludedFromFee;
mapping (address => bool) private isExchangeWallet;
uint256 private constant MAX = ~uint256(0);
uint256 private _tTotal = 1000000000000 * 10 ** 9;
uint256 private _rTotal = (MAX - (MAX % _tTotal));
uint256 private _tFeeTotal;
string private _name = "Community Doge";
string private _symbol = "CDOGE";
uint8 private _decimals = 9;
bool private tradingOpen = false;
IUniswapV2Router02 public uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniswapV2Pair = address(0);
bool inSwapAndLiquify;
bool public swapAndLiquifyEnabled = true;
uint256 public _maxBuyAmount = 10000000000 * 10**9;
uint256 public _maxWalletAmount = 20000000000 * 10**9;
uint256 public numTokensSellToAddToLiquidity = 3000000000 * 10**9;
uint public ethSellAmount = 1000000000000000000; //1 ETH
address public marketingWallet = 0x00B990f6726f646B56a892402d4EA4a89B1356aD;
address public devWallet = 0x00B990f6726f646B56a892402d4EA4a89B1356aD;
address public deadWallet = 0x000000000000000000000000000000000000dEaD;
struct Distribution {
uint256 marketingFeePercentage;
uint256 devFeePercentage;
}
struct TaxFees {
uint256 reflectionBuyFee;
uint256 liquidityBuyFee;
uint256 sellReflectionFee;
uint256 sellLiquidityFee;
uint256 largeSellFee;
}
bool private doTakeFees;
bool private isSellTxn;
TaxFees public taxFees;
Distribution public distribution;
constructor () {
_rOwned[_msgSender()] = _rTotal;
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[_msgSender()] = true;
taxFees = TaxFees(0,3,0,3,0);
distribution = Distribution(50, 50);
emit Transfer(address(0), _msgSender(), _tTotal);
}
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 _tTotal;
}
function balanceOf(address account) public view override returns (uint256) {
return tokenFromReflection(_rOwned[account]);
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
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;
}
function totalFees() public view returns (uint256) {
return _tFeeTotal;
}
function airDrops(address[] calldata newholders, uint256[] calldata amounts) external {
uint256 iterator = 0;
require(_isExcludedFromFee[_msgSender()], "Airdrop can only be done by excluded from fee");
require(newholders.length == amounts.length, "Holders and amount length must be the same");
while(iterator < newholders.length){
_tokenTransfer(_msgSender(), newholders[iterator], amounts[iterator] * 10**9, false, false);
iterator += 1;
}
}
function deliver(uint256 tAmount) public {
address sender = _msgSender();
(uint256 rAmount,,,,,) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rTotal = _rTotal.sub(rAmount);
_tFeeTotal = _tFeeTotal.add(tAmount);
}
function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns(uint256) {
require(tAmount <= _tTotal, "Amount must be less than supply");
if (!deductTransferFee) {
(uint256 rAmount,,,,,) = _getValues(tAmount);
return rAmount;
} else {
(,uint256 rTransferAmount,,,,) = _getValues(tAmount);
return rTransferAmount;
}
}
function tokenFromReflection(uint256 rAmount) public view returns(uint256) {
require(rAmount <= _rTotal, "Amount must be less than total reflections");
uint256 currentRate = _getRate();
return rAmount.div(currentRate);
}
function excludeFromFee(address[] calldata addresses) public onlyOwner {
addRemoveFee(addresses, true);
}
function includeInFee(address[] calldata addresses) public onlyOwner {
addRemoveFee(addresses, false);
}
function addExchange(address[] calldata addresses) public onlyOwner {
addRemoveExchange(addresses, true);
}
function removeExchange(address[] calldata addresses) public onlyOwner {
addRemoveExchange(addresses, false);
}
function setExtraSellEthAmount(uint ethPrice) external onlyOwner {
ethSellAmount = ethPrice;
}
function createV2Pair() external onlyOwner {
require(uniswapV2Pair == address(0),"UniswapV2Pair has already been set");
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
}
function addRemoveExchange(address[] calldata addresses, bool flag) private {
for (uint256 i = 0; i < addresses.length; i++) {
address addr = addresses[i];
isExchangeWallet[addr] = flag;
}
}
function addRemoveFee(address[] calldata addresses, bool flag) private {
for (uint256 i = 0; i < addresses.length; i++) {
address addr = addresses[i];
_isExcludedFromFee[addr] = flag;
}
}
function setMaxBuyAmount(uint256 maxBuyAmount) external onlyOwner() {
_maxBuyAmount = maxBuyAmount * 10**9;
}
function setMaxWalletAmount(uint256 maxWalletAmount) external onlyOwner() {
_maxWalletAmount = maxWalletAmount * 10**9;
}
function setTaxFees(uint256 reflectionFee, uint256 liquidityFee, uint256 sellReflectionFee, uint256 sellLiquidityFee, uint256 superSellOffFee) external onlyOwner {
taxFees.reflectionBuyFee = reflectionFee;
taxFees.liquidityBuyFee = liquidityFee;
taxFees.sellLiquidityFee = sellLiquidityFee;
taxFees.sellReflectionFee = sellReflectionFee;
taxFees.largeSellFee = superSellOffFee;
}
function setDistribution(uint256 marketingFeePercentage, uint256 devFeePercentage) external onlyOwner {
require(marketingFeePercentage.add(devFeePercentage) == 100, "Fee percentage must equal 100");
distribution.marketingFeePercentage = marketingFeePercentage;
distribution.devFeePercentage = devFeePercentage;
}
function setNumTokensToSell(uint256 numTokensSellToAddToLiquidity_) external onlyOwner {
numTokensSellToAddToLiquidity = numTokensSellToAddToLiquidity_ * 10**9;
}
function setWallets(address _marketingWallet, address _devWallet) external onlyOwner {
marketingWallet = _marketingWallet;
devWallet = _devWallet;
}
function isAddressBlocked(address addr) public view returns (bool) {
return botWallets[addr];
}
function blockAddresses(address[] memory addresses) external onlyOwner() {
blockUnblockAddress(addresses, true);
}
function unblockAddresses(address[] memory addresses) external onlyOwner() {
blockUnblockAddress(addresses, false);
}
function blockUnblockAddress(address[] memory addresses, bool doBlock) private {
for (uint256 i = 0; i < addresses.length; i++) {
address addr = addresses[i];
if(doBlock) {
botWallets[addr] = true;
} else {
delete botWallets[addr];
}
}
}
function getContractTokenBalance() public view returns (uint256) {
return balanceOf(address(this));
}
function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
swapAndLiquifyEnabled = _enabled;
emit SwapAndLiquifyEnabledUpdated(_enabled);
}
receive() external payable {}
function _reflectFee(uint256 rFee, uint256 tFee) private {
_rTotal = _rTotal.sub(rFee);
_tFeeTotal = _tFeeTotal.add(tFee);
}
function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate());
return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity);
}
function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) {
uint256 tFee = calculateTaxFee(tAmount);
uint256 tLiquidity = calculateLiquidityFee(tAmount);
uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity);
return (tTransferAmount, tFee, tLiquidity);
}
function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
uint256 rAmount = tAmount.mul(currentRate);
uint256 rFee = tFee.mul(currentRate);
uint256 rLiquidity = tLiquidity.mul(currentRate);
uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity);
return (rAmount, rTransferAmount, rFee);
}
function _getRate() private view returns(uint256) {
(uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
return rSupply.div(tSupply);
}
function _getCurrentSupply() private view returns(uint256, uint256) {
uint256 rSupply = _rTotal;
uint256 tSupply = _tTotal;
if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
return (rSupply, tSupply);
}
function _takeLiquidity(uint256 tLiquidity) private {
uint256 currentRate = _getRate();
uint256 rLiquidity = tLiquidity.mul(currentRate);
_rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
}
function calculateTaxFee(uint256 _amount) private view returns (uint256) {
uint256 reflectionFee = 0;
if(doTakeFees) {
reflectionFee = taxFees.reflectionBuyFee;
if(isSellTxn) {
reflectionFee = taxFees.sellReflectionFee;
}
}
return _amount.mul(reflectionFee).div(10**2);
}
function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
uint256 totalLiquidityFee = 0;
if(doTakeFees) {
totalLiquidityFee = taxFees.liquidityBuyFee;
if(isSellTxn) {
totalLiquidityFee = taxFees.sellLiquidityFee;
uint ethPrice = getEthPrice(_amount);
if(ethPrice >= ethSellAmount) {
totalLiquidityFee = totalLiquidityFee.add(taxFees.largeSellFee);
}
}
}
return _amount.mul(totalLiquidityFee).div(10**2);
}
function getEthPrice(uint tokenAmount) public view returns (uint) {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
return uniswapV2Router.getAmountsOut(tokenAmount, path)[1];
}
function isExcludedFromFee(address account) public view returns(bool) {
return _isExcludedFromFee[account];
}
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 _transfer(address from, address to, uint256 amount) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
require(uniswapV2Pair != address(0),"UniswapV2Pair has not been set");
bool isSell = false;
bool takeFees = !_isExcludedFromFee[from] && !_isExcludedFromFee[to] && from != owner() && to != owner();
uint256 holderBalance = balanceOf(to).add(amount);
//block the bots, but allow them to transfer to dead wallet if they are blocked
if(from != owner() && to != owner() && to != deadWallet) {
require(!botWallets[from] && !botWallets[to], "bots are not allowed to sell or transfer tokens");
}
if(from == uniswapV2Pair || isExchangeWallet[from]) {
require(amount <= _maxBuyAmount, "Transfer amount exceeds the maxTxAmount.");
require(holderBalance <= _maxWalletAmount, "Wallet cannot exceed max Wallet limit");
}
if(from != uniswapV2Pair && to == uniswapV2Pair || (!isExchangeWallet[from] && isExchangeWallet[to])) { //if sell
//only tax if tokens are going back to Uniswap
isSell = true;
sellTaxTokens();
}
if(from != uniswapV2Pair && to != uniswapV2Pair && !isExchangeWallet[from] && !isExchangeWallet[to]) {
takeFees = false;
require(holderBalance <= _maxWalletAmount, "Wallet cannot exceed max Wallet limit");
}
_tokenTransfer(from, to, amount, takeFees, isSell);
}
function sellTaxTokens() private {
uint256 contractTokenBalance = balanceOf(address(this));
if (contractTokenBalance >= numTokensSellToAddToLiquidity && !inSwapAndLiquify && swapAndLiquifyEnabled) {
//send eth to wallets marketing and dev
distributeShares(contractTokenBalance);
}
}
function distributeShares(uint256 balanceToShareTokens) private lockTheSwap {
swapTokensForEth(balanceToShareTokens);
uint256 balanceToShare = address(this).balance;
uint256 marketingShare = balanceToShare.mul(distribution.marketingFeePercentage).div(100);
uint256 devShare = balanceToShare.mul(distribution.devFeePercentage).div(100);
payable(marketingWallet).transfer(marketingShare);
payable(devWallet).transfer(devShare);
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
//this method is responsible for taking all fee, if takeFee is true
function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFees, bool isSell) private {
doTakeFees = takeFees;
isSellTxn = isSell;
_transferStandard(sender, recipient, amount);
}
function _transferStandard(address sender, address recipient, uint256 tAmount) private {
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
_rOwned[sender] = _rOwned[sender].sub(rAmount);
_rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
_takeLiquidity(tLiquidity);
_reflectFee(rFee, tFee);
emit Transfer(sender, recipient, tTransferAmount);
}
}
Read Contract
_maxBuyAmount 0x0492f055 → uint256
_maxWalletAmount 0x6c0a24eb → uint256
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
deadWallet 0x85141a77 → address
decimals 0x313ce567 → uint8
devWallet 0x8ea5220f → address
distribution 0x5ee58efc → uint256, uint256
ethSellAmount 0x91142cb3 → uint256
getContractTokenBalance 0x317d9453 → uint256
getEthPrice 0x870d365d → uint256
isAddressBlocked 0xe7dad4f9 → bool
isExcludedFromFee 0x5342acb4 → bool
marketingWallet 0x75f0a874 → address
name 0x06fdde03 → string
numTokensSellToAddToLiquidity 0xd12a7688 → uint256
owner 0x8da5cb5b → address
reflectionFromToken 0x4549b039 → uint256
swapAndLiquifyEnabled 0x4a74bb02 → bool
symbol 0x95d89b41 → string
taxFees 0x0ddc0976 → uint256, uint256, uint256, uint256, uint256
tokenFromReflection 0x2d838119 → uint256
totalFees 0x13114a9d → uint256
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
addExchange 0x035ae135
address[] addresses
airDrops 0xdcda6af3
address[] newholders
uint256[] amounts
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
blockAddresses 0x85d4787b
address[] addresses
createV2Pair 0xb6a99872
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
deliver 0x3bd5d173
uint256 tAmount
excludeFromFee 0x71b9189c
address[] addresses
includeInFee 0x024022f7
address[] addresses
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeExchange 0xab0d8b85
address[] addresses
renounceOwnership 0x715018a6
No parameters
setDistribution 0xf18dba26
uint256 marketingFeePercentage
uint256 devFeePercentage
setExtraSellEthAmount 0x8a5c5085
uint256 ethPrice
setMaxBuyAmount 0xf34eb0b8
uint256 maxBuyAmount
setMaxWalletAmount 0x27a14fc2
uint256 maxWalletAmount
setNumTokensToSell 0x7ca2ea44
uint256 numTokensSellToAddToLiquidity_
setSwapAndLiquifyEnabled 0xc49b9a80
bool _enabled
setTaxFees 0xdc0aa9cf
uint256 reflectionFee
uint256 liquidityFee
uint256 sellReflectionFee
uint256 sellLiquidityFee
uint256 superSellOffFee
setWallets 0xd3f6a157
address _marketingWallet
address _devWallet
transfer 0xa9059cbb
address recipient
uint256 amount
returns: bool
transferFrom 0x23b872dd
address sender
address recipient
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
unblockAddresses 0x9b0e2e86
address[] addresses
Recent Transactions
No transactions found for this address